[13:22:52]ConnectInit Can't connect to host [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]recv_with_timeout no data received [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:00]accept exits with 9 [13:27:00]New connection [13:27:00]New thread 3066805604 created [13:27:00]Thread 3066662244 joined [13:27:00]Waiting for new connection... [13:27:00] Sock 9.Parse request [13:27:00]Sock 9.Check first char [13:27:00]Sock 9.First char is OK [13:27:00]request: POST /json_proto HTTP/1.0 [13:27:00]Method: POST [13:27:00]URL: /json_proto [13:27:00]Method is POST - this is cgi request [13:27:00]url: /json_proto [13:27:00]query_string will be loaded in cgi processing [13:27:00]execute_cgi json_proto POST (null) [13:27:00]execute_cgi path=json_proto method=POST [13:27:00]POST find Content-Length [13:27:00]Host: 172.17.39.131:8080 [13:27:00]Content-Length: 669 [13:27:00]Content-Type: application/json [13:27:00] [13:27:00]POST finish read [13:27:00]Found Content-Length = 669 [13:27:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 0.010, "sum" : 0.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:00]execute_script... [13:27: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)190615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 0.010, "sum" : 0.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:00]POST & json_proto [13:27:00]process_json_proto [13:27:00]json parsed OK: [13:27:00]protocol is kg_v1.0 [13:27:00]action value=close_receipt [13:27:00]process_action close_receipt [13:27:00]cmd_close_receipt [13:27:00]MH_GetDate [13:27:00]Write to MH i2c: F0 00 00 F6 75 5A [13:27:00]Write i2c OK [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: F0 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: F0 09 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: F0 09 00 F6 75 00 30 4B 1A 67 86 57 24 65 C5 [13:27:00]GetLastDocTimeStamp 1729775803 [13:27:00]current date 1729776432 [13:27:00]FM_GetShiftState [13:27:00]SAM_PROTO_GetShiftState [13:27:00]wFMCommunicate request_size=4 [13:27:00]MH_SAM_APDU [13:27:00]CAPDU: 80 13 01 00 [13:27:00]Write to MH i2c: E2 08 00 F7 75 80 13 01 00 00 00 00 00 E9 [13:27:00]Write i2c OK [13:27:00]MH_I2C_Read... [13:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:00]Read from MH i2c: E2 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 0E 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 0E 00 F7 75 00 09 00 01 09 95 19 67 00 00 00 00 90 00 13 [13:27:00]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:27:00]wFMCommunicate OK [13:27:00]SAM_PROTO_GetShiftState done [13:27:00]FM_GetShiftState done [13:27:00]opened in 1729729801 [13:27:00]opened+sec_in_day 1729816201 [13:27:00]quantity*price = 76 [13:27:00]sum+1 = 77 [13:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 0.00 Внесено: 2000.00 СДАЧА: 2000.00 НСП 1% : 0.01 НДС 12% : 0.08 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 96 24.10.2024 13:27 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74652 ФПД: 175209930646577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132712&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74652&fm=175209930646577&tin=02508201610067®Number=0000000000091691&sum=0 [13:27:01]StoreToDocumentArchive [13:27:01]shift 510 fd 74652 [13:27:01]save to /storage/0510/doc_00074652 [13:27:01]save last doc name /storage/0510/doc_00074652 to /storage/kkm_last_doc_name [13:27:01]save OK [13:27:01]Clear old archive folders... [13:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:27:01]tlvbuf is 00AF0F10 [13:27:01]SAM_PROTO_ClearQueue [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 09 00 00 [13:27:01]Write to MH i2c: E2 08 00 04 76 80 09 00 00 00 00 00 00 EC [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 04 76 00 90 00 EE [13:27:02]RAPDU: 90 00 [13:27:02]wFMCommunicate OK [13:27:02]SAM_PROTO_ClearQueue done [13:27:02]KKMCreateOFDPacket [13:27:02]OFDProtocolAddRootSTLVToBuf [13:27:02]FM_MakeSignedData [13:27:02]FM_MakeSignedData [13:27:02]SAM_PROTO_SignData [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 0D 01 02 [13:27:02]Write to MH i2c: E2 08 00 05 76 80 0D 01 02 00 00 00 00 F4 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 05 76 00 90 00 EF [13:27:02]RAPDU: 90 00 [13:27:02]wFMCommunicate OK [13:27:02]wFMCommunicate request_size=255 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 23 01 00 35 04 06 00 9F 5A 3D AD [13:27:02]Write to MH i2c: E2 02 01 06 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 23 01 00 35 04 06 00 9F 5A 3D AD 00 00 94 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 06 76 00 90 00 F0 [13:27:02]RAPDU: 90 00 [13:27:02]wFMCommunicate OK [13:27:02]wFMCommunicate request_size=7 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 0D 02 02 02 64 31 [13:27:02]Write to MH i2c: E2 0A 00 07 76 80 0D 02 02 02 00 64 31 00 00 90 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 03 00 07 76 00 90 00 F1 [13:27:02]RAPDU: 90 00 [13:27:02]wFMCommunicate OK [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 0D 03 02 [13:27:02]Write to MH i2c: E2 08 00 08 76 80 0D 03 02 00 00 00 00 F9 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0B 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0B 00 08 76 00 DA 57 5C E9 AD 94 DD 7F 90 00 0D [13:27:02]RAPDU: DA 57 5C E9 AD 94 DD 7F 90 00 [13:27:02]wFMCommunicate OK [13:27:02]SAM_PROTO_SignData done [13:27:02]FM_MakeSignedData done [13:27:02]CreateOFDProtocolMessage [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 11 00 00 [13:27:02]Write to MH i2c: E2 08 00 09 76 80 11 00 00 00 00 00 00 F9 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 17 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 17 00 09 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 51 [13:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:27:02]wFMCommunicate OK [13:27:02]CreateOFDProtocolMessage done [13:27:02]OFDSenderStorePacket 74652 [13:27:02]StoreOFDPacket docnum=74652 [13:27:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 BA 92 04 01 C1 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 23 01 00 35 04 06 00 9F 5A 3D AD 64 31 DA 57 5C E9 AD 94 DD 7F [13:27:02]CheckFolder [13:27:02]dirname=/storage/ofd_packets [13:27:02]CheckFolder done [13:27:02]ProducePacketName [13:27:02]name=ofd_packets/00074652 [13:27:02]NVStorageSaveData ofd_packets/00074652 [13:27:02]File name is /storage/ofd_packets/00074652 [13:27:02]Write 298 bytes [13:27:02]NVStorageSaveData done [13:27:02]OFDSenderStorePacket done [13:27:02]KKMCreateOFDPacket done [13:27:02]NVStorageSaveData kkm_last_timestamp [13:27:02]File name is /storage/kkm_last_timestamp [13:27:02]Write 4 bytes [13:27:02]NVStorageSaveData done [13:27:02]ExternCall_PrintAddStr [13:27:02]wPrintStart [13:27:02]Write to MH i2c: 01 00 00 0A 76 80 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 07 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 07 00 0A 76 00 00 00 00 00 FF 0F 95 [13:27:02]RasterBufferAndPrint [13:27:02]line Счет N : (1)190615 [13:27:02]line ИНН: 02508201610067 [13:27:02]line Контрольно-Кассовый Чек [13:27:02]line ПРОДАЖА [13:27:02]line ТРК (МРК, ГНК) : 41 [13:27:02]line Товар: 2710194210 [13:27:02]line ДТ-К-4 [13:27:02]line 0.010 * 76.20 [13:27:02]line = 0.76 [13:27:02]line НДС 12% НСП 1% [13:27:02]line > о реализуемом товаре [13:27:02]line ОКРУГЛЕНИЕ: -0.76 [13:27:02]line ИТОГО: 0.00 [13:27:02]line Внесено: 2000.00 [13:27:02]line СДАЧА: 2000.00 [13:27:02]line НСП 1% : 0.01 [13:27:02]line НДС 12% : 0.08 [13:27:02]line Наличными: 0.00 [13:27:02]line Безнал.: 0.00 [13:27:02]line Место: АЗС № 142 "Партнер Нефть" [13:27:02]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:27:02]line СНО: Общий режим [13:27:02]line Чек 96 24.10.2024 13:27 [13:27:02]line Смена: 510 ФФД: 1.0 [13:27:02]line ЗНМ: 0300000089 [13:27:02]line РНМ: 0000000000091691 [13:27:02]line Версия ККМ: 001 [13:27:02]line ФМ: 0000000000871795 [13:27:02]line ФД: 74652 [13:27:02]line ФПД: 175209930646577 [13:27:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132712&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74652&fm=175209930646577&tin=02508201610067®Number=0000000000091691&sum=0 [13:27:02]OFD Sender: Processing packet 74652 [packets to send 13, broken 12] [13:27:02]ProducePacketName [13:27:02]name=ofd_packets/00074652 [13:27:02]OFD Sender: To server: pG, [13:27:02]CommunicateWithHost lk.salyk.kg:30040 [13:27:02]ConnectInit lk.salyk.kg [13:27:02]written 0, free lines is 4095 [13:27:03]Connected sock=10 [13:27:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 BA 92 04 01 C1 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 23 01 00 35 04 06 00 9F 5A 3D AD 64 31 DA 57 5C E9 AD 94 DD 7F [13:27:03]Write to MH i2c: 01 00 00 35 76 AB [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: 01 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: 01 07 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: 01 07 00 35 76 00 00 00 00 00 B3 0C 71 [13:27:03]RasterBufferAndPrint [13:27:03]line [13:27:03]line [13:27:03]line [13:27:03]line [13:27:03]line [13:27:03]written 0, free lines is 3258 [13:27:03]MH_Cut [13:27:03]Write to MH i2c: D1 01 00 3C 76 01 84 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: D1 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: D1 01 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: D1 01 00 3C 76 00 83 [13:27:03]Write to MH i2c: 01 00 00 3D 76 B3 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 11 B4 47 00 D9 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 23 01 00 F4 03 04 00 B2 F2 19 67 B6 04 01 00 00 73 25 54 D5 41 48 25 FA [13:27:03]CommunicateWithHost err = 0 [13:27:03]CheckOFDResponse [13:27:03]1017 (14) - 77093643461234 [13:27:03]1041 (16) - 0000000000871795 [13:27:03]1040 (4) - 74652 [13:27:03]1012 (4) - 24.10.2024 07:09 [13:27:03]1206 (1) - 0 [13:27:03]OFD Sender: Remove packet 74652 [13:27:03]ProducePacketName [13:27:03]name=ofd_packets/00074652 [13:27:03]NVStorageDeleteData [13:27:03]OFD Sender: No OFD packet to send [13:27:04]*** Cut start [13:27:04]*** Partial cut [13:27:04]*** CUTSNS_PIN = 1 [13:27:04]*** CUTSNS_PIN = 0 [13:27:04]*** Brake cut motor [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]*** Stop cut motor [13:27:04]*** Cut end [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 3D 76 00 00 00 00 00 FF 0F C8 [13:27:04]process_action close_receipt done [13:27:04]requested_data is exist [13:27:04]produce_requested_data [13:27:04]requested_item fm.sn is exist - process it [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 11 00 00 [13:27:04]Write to MH i2c: E2 08 00 3E 76 80 11 00 00 00 00 00 00 2E [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 3E 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 86 [13:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:27:04]wFMCommunicate OK [13:27:04]requested_item fd.num is exist - process it [13:27:04]SAM_PROTO_GetFieldsCounters [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 13 00 00 [13:27:04]Write to MH i2c: E2 08 00 3F 76 80 13 00 00 00 00 00 00 31 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 62 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 62 00 3F 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9C 23 01 00 0E 04 04 00 FE 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 37 [13:27:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9C 23 01 00 0E 04 04 00 FE 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 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_GetFieldsCounters done [13:27:04]requested_item shift.num is exist - process it [13:27:04]requested_item shift.opened is exist - process it [13:27:04]req_shift_opened [13:27:04]FM_GetShiftState [13:27:04]SAM_PROTO_GetShiftState [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 13 01 00 [13:27:04]Write to MH i2c: E2 08 00 40 76 80 13 01 00 00 00 00 00 33 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:05]Read from MH i2c: E2 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: E2 0E 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: E2 0E 00 40 76 00 09 00 01 09 95 19 67 00 00 00 00 90 00 5D [13:27:05]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:27:05]wFMCommunicate OK [13:27:05]SAM_PROTO_GetShiftState done [13:27:05]FM_GetShiftState done [13:27:05]req_shift_opened done [13:27:05]requested_item shift.open_date is exist - process it [13:27:05]req_shift_open_date [13:27:05]req_shift_open_date done [13:27:05]produce_requested_data done [13:27:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74652,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:27:05]process_action_free close_receipt [13:27:05]json_value_free [13:27:05]json_value_free done [13:27:05]process_json_proto returns [13:27:05]Send response to host [13:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74652,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:27:05]free response buf [13:27:05]execute_script done [13:27:05]execute_script returns [13:27:05]free content buf [13:27:05]Sock 9.Close socket [13:27:05]Sock 9.Thread stoped [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:36]accept exits with 8 [13:28:36]New connection [13:28:36]New thread 3066662244 created [13:28:36]Thread 3066805604 joined [13:28:36]Waiting for new connection... [13:28:36] Sock 8.Parse request [13:28:36]Sock 8.Check first char [13:28:36]Sock 8.First char is OK [13:28:36]request: POST /json_proto HTTP/1.0 [13:28:36]Method: POST [13:28:36]URL: /json_proto [13:28:36]Method is POST - this is cgi request [13:28:36]url: /json_proto [13:28:36]query_string will be loaded in cgi processing [13:28:36]execute_cgi json_proto POST (null) [13:28:36]execute_cgi path=json_proto method=POST [13:28:36]POST find Content-Length [13:28:36]Host: 172.17.39.131:8080 [13:28:36]Content-Length: 679 [13:28:36]Content-Type: application/json [13:28:36] [13:28:36]POST finish read [13:28:36]Found Content-Length = 679 [13:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:36]execute_script... [13:28:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:36]POST & json_proto [13:28:36]process_json_proto [13:28:36]json parsed OK: [13:28:36]protocol is kg_v1.0 [13:28:36]action value=close_receipt [13:28:36]process_action close_receipt [13:28:36]cmd_close_receipt [13:28:36]MH_GetDate [13:28:36]Write to MH i2c: F0 00 00 41 76 A6 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: F0 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: F0 09 00 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: F0 09 00 41 76 00 8F 4B 1A 67 86 57 24 65 70 [13:28:36]GetLastDocTimeStamp 1729776432 [13:28:36]current date 1729776527 [13:28:36]FM_GetShiftState [13:28:36]SAM_PROTO_GetShiftState [13:28:36]wFMCommunicate request_size=4 [13:28:36]MH_SAM_APDU [13:28:36]CAPDU: 80 13 01 00 [13:28:36]Write to MH i2c: E2 08 00 42 76 80 13 01 00 00 00 00 00 35 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:36]Read from MH i2c: E2 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: E2 0E 00 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: E2 0E 00 42 76 00 09 00 01 09 95 19 67 00 00 00 00 90 00 5F [13:28:36]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:28:36]wFMCommunicate OK [13:28:36]SAM_PROTO_GetShiftState done [13:28:36]FM_GetShiftState done [13:28:36]opened in 1729729801 [13:28:36]opened+sec_in_day 1729816201 [13:28:36]quantity*price = 200025 [13:28:36]sum+1 = 200026 [13:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 97 24.10.2024 13:28 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74653 ФПД: 52159307682893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132847&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74653&fm=52159307682893&tin=02508201610067®Number=0000000000091691&sum=200000 [13:28:37]StoreToDocumentArchive [13:28:37]shift 510 fd 74653 [13:28:37]save to /storage/0510/doc_00074653 [13:28:37]save last doc name /storage/0510/doc_00074653 to /storage/kkm_last_doc_name [13:28:37]save OK [13:28:37]Clear old archive folders... [13:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:37]tlvbuf is 00A9DE70 [13:28:37]SAM_PROTO_ClearQueue [13:28:37]wFMCommunicate request_size=4 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 09 00 00 [13:28:37]Write to MH i2c: E2 08 00 4F 76 80 09 00 00 00 00 00 00 37 [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 4F 76 00 90 00 39 [13:28:37]RAPDU: 90 00 [13:28:37]wFMCommunicate OK [13:28:37]SAM_PROTO_ClearQueue done [13:28:37]KKMCreateOFDPacket [13:28:37]OFDProtocolAddRootSTLVToBuf [13:28:37]FM_MakeSignedData [13:28:37]FM_MakeSignedData [13:28:37]SAM_PROTO_SignData [13:28:37]wFMCommunicate request_size=4 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 0D 01 02 [13:28:37]Write to MH i2c: E2 08 00 50 76 80 0D 01 02 00 00 00 00 3F [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 50 76 00 90 00 3A [13:28:37]RAPDU: 90 00 [13:28:37]wFMCommunicate OK [13:28:37]wFMCommunicate request_size=255 [13:28:37]MH_SAM_APDU [13:28: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 61 00 00 00 F4 03 04 00 8F 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 23 01 00 35 04 06 00 2F 70 49 01 [13:28:37]Write to MH i2c: E2 02 01 51 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 61 00 00 00 F4 03 04 00 8F 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 23 01 00 35 04 06 00 2F 70 49 01 00 00 1C [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 51 76 00 90 00 3B [13:28:37]RAPDU: 90 00 [13:28:37]wFMCommunicate OK [13:28:37]wFMCommunicate request_size=7 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 0D 02 02 02 94 4D [13:28:37]Write to MH i2c: E2 0A 00 52 76 80 0D 02 02 02 00 94 4D 00 00 27 [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 52 76 00 90 00 3C [13:28:37]RAPDU: 90 00 [13:28:37]wFMCommunicate OK [13:28:37]wFMCommunicate request_size=4 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 0D 03 02 [13:28:37]Write to MH i2c: E2 08 00 53 76 80 0D 03 02 00 00 00 00 44 [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 0B 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 0B 00 53 76 00 51 D9 92 9F A8 AD 64 AC 90 00 05 [13:28:37]RAPDU: 51 D9 92 9F A8 AD 64 AC 90 00 [13:28:37]wFMCommunicate OK [13:28:37]SAM_PROTO_SignData done [13:28:37]FM_MakeSignedData done [13:28:37]CreateOFDProtocolMessage [13:28:37]wFMCommunicate request_size=4 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 11 00 00 [13:28:37]Write to MH i2c: E2 08 00 54 76 80 11 00 00 00 00 00 00 44 [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 17 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 17 00 54 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9C [13:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:28:37]wFMCommunicate OK [13:28:37]CreateOFDProtocolMessage done [13:28:37]OFDSenderStorePacket 74653 [13:28:37]StoreOFDPacket docnum=74653 [13:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 4E 2D 04 01 62 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 61 00 00 00 F4 03 04 00 8F 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 23 01 00 35 04 06 00 2F 70 49 01 94 4D 51 D9 92 9F A8 AD 64 AC [13:28:37]CheckFolder [13:28:37]dirname=/storage/ofd_packets [13:28:37]CheckFolder done [13:28:37]ProducePacketName [13:28:37]name=ofd_packets/00074653 [13:28:37]NVStorageSaveData ofd_packets/00074653 [13:28:37]File name is /storage/ofd_packets/00074653 [13:28:37]Write 298 bytes [13:28:37]NVStorageSaveData done [13:28:37]OFDSenderStorePacket done [13:28:37]KKMCreateOFDPacket done [13:28:37]NVStorageSaveData kkm_last_timestamp [13:28:37]File name is /storage/kkm_last_timestamp [13:28:37]Write 4 bytes [13:28:37]NVStorageSaveData done [13:28:37]ExternCall_PrintAddStr [13:28:37]wPrintStart [13:28:37]Write to MH i2c: 01 00 00 55 76 CB [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: 01 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: 01 07 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: 01 07 00 55 76 00 00 00 00 00 FF 0F E0 [13:28:37]RasterBufferAndPrint [13:28:37]line Счет N : (1)190617 [13:28:37]line ИНН: 02508201610067 [13:28:37]line Контрольно-Кассовый Чек [13:28:37]line ПРОДАЖА [13:28:37]line ТРК (МРК, ГНК) : 31 [13:28:37]line Товар: 2710194210 [13:28:37]line ДТ-К-4 [13:28:37]line 26.250 * 76.20 [13:28:37]line = 2000.25 [13:28:37]line НДС 12% НСП 1% [13:28:37]line > о реализуемом товаре [13:28:37]line ОКРУГЛЕНИЕ: -0.25 [13:28:37]line ИТОГО: 2000.00 [13:28:37]line Внесено: 2000.00 [13:28:37]line СДАЧА: 0.00 [13:28:37]line НСП 1% : 17.70 [13:28:37]line НДС 12% : 212.42 [13:28:37]line Наличными: 2000.00 [13:28:37]line Безнал.: 0.00 [13:28:37]line Место: АЗС № 142 "Партнер Нефть" [13:28:37]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:28:37]line СНО: Общий режим [13:28:37]line Чек 97 24.10.2024 13:28 [13:28:37]line Смена: 510 ФФД: 1.0 [13:28:37]line ЗНМ: 0300000089 [13:28:37]line РНМ: 0000000000091691 [13:28:37]line Версия ККМ: 001 [13:28:37]line ФМ: 0000000000871795 [13:28:37]line ФД: 74653 [13:28:37]line ФПД: 52159307682893 [13:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132847&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74653&fm=52159307682893&tin=02508201610067®Number=0000000000091691&sum=200000 [13:28:38]OFD Sender: Processing packet 74653 [packets to send 13, broken 12] [13:28:38]ProducePacketName [13:28:38]name=ofd_packets/00074653 [13:28:38]OFD Sender: To server: pG, [13:28:38]CommunicateWithHost lk.salyk.kg:30040 [13:28:38]ConnectInit lk.salyk.kg [13:28:38]written 0, free lines is 4095 [13:28:38]Connected sock=10 [13:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 4E 2D 04 01 62 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 61 00 00 00 F4 03 04 00 8F 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 23 01 00 35 04 06 00 2F 70 49 01 94 4D 51 D9 92 9F A8 AD 64 AC [13:28:38]Write to MH i2c: 01 00 00 80 76 F6 [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 07 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 07 00 80 76 00 00 00 00 00 A3 0C AC [13:28:38]RasterBufferAndPrint [13:28:38]line [13:28:38]line [13:28:38]line [13:28:38]line [13:28:38]line [13:28:38]written 0, free lines is 3241 [13:28:38]MH_Cut [13:28:38]Write to MH i2c: D1 01 00 87 76 01 CF [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: D1 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: D1 01 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: D1 01 00 87 76 00 CE [13:28:38]Write to MH i2c: 01 00 00 88 76 FE [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D6 C8 47 00 28 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 23 01 00 F4 03 04 00 11 F3 19 67 B6 04 01 00 00 45 BE 3C 2B 2C 41 B6 1A [13:28:38]CommunicateWithHost err = 0 [13:28:38]CheckOFDResponse [13:28:38]1017 (14) - 77093643461234 [13:28:38]1041 (16) - 0000000000871795 [13:28:38]1040 (4) - 74653 [13:28:38]1012 (4) - 24.10.2024 07:11 [13:28:38]1206 (1) - 0 [13:28:38]OFD Sender: Remove packet 74653 [13:28:38]ProducePacketName [13:28:38]name=ofd_packets/00074653 [13:28:38]NVStorageDeleteData [13:28:39]OFD Sender: No OFD packet to send [13:28:39]*** Cut start [13:28:39]*** Partial cut [13:28:39]*** CUTSNS_PIN = 1 [13:28:39]*** CUTSNS_PIN = 0 [13:28:39]*** Brake cut motor [13:28:40]Read from MH i2c: 01 [13:28:40]MH_I2C_Read... [13:28:40]*** Stop cut motor [13:28:40]*** Cut end [13:28:40]Read from MH i2c: 01 07 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: 01 07 00 88 76 00 00 00 00 00 FF 0F 13 [13:28:40]process_action close_receipt done [13:28:40]requested_data is exist [13:28:40]produce_requested_data [13:28:40]requested_item fm.sn is exist - process it [13:28:40]wFMCommunicate request_size=4 [13:28:40]MH_SAM_APDU [13:28:40]CAPDU: 80 11 00 00 [13:28:40]Write to MH i2c: E2 08 00 89 76 80 11 00 00 00 00 00 00 79 [13:28:40]Write i2c OK [13:28:40]MH_I2C_Read... [13:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:40]Read from MH i2c: E2 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 17 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 17 00 89 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D1 [13:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:28:40]wFMCommunicate OK [13:28:40]requested_item fd.num is exist - process it [13:28:40]SAM_PROTO_GetFieldsCounters [13:28:40]wFMCommunicate request_size=4 [13:28:40]MH_SAM_APDU [13:28:40]CAPDU: 80 13 00 00 [13:28:40]Write to MH i2c: E2 08 00 8A 76 80 13 00 00 00 00 00 00 7C [13:28:40]Write i2c OK [13:28:40]MH_I2C_Read... [13:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:40]Read from MH i2c: E2 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 62 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 62 00 8A 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9D 23 01 00 0E 04 04 00 FE 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 86 [13:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9D 23 01 00 0E 04 04 00 FE 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 [13:28:40]wFMCommunicate OK [13:28:40]SAM_PROTO_GetFieldsCounters done [13:28:40]requested_item shift.num is exist - process it [13:28:40]requested_item shift.opened is exist - process it [13:28:40]req_shift_opened [13:28:40]FM_GetShiftState [13:28:40]SAM_PROTO_GetShiftState [13:28:40]wFMCommunicate request_size=4 [13:28:40]MH_SAM_APDU [13:28:40]CAPDU: 80 13 01 00 [13:28:40]Write to MH i2c: E2 08 00 8B 76 80 13 01 00 00 00 00 00 7E [13:28:40]Write i2c OK [13:28:40]MH_I2C_Read... [13:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:40]Read from MH i2c: E2 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 0E 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 0E 00 8B 76 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A8 [13:28:40]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:28:40]wFMCommunicate OK [13:28:40]SAM_PROTO_GetShiftState done [13:28:40]FM_GetShiftState done [13:28:40]req_shift_opened done [13:28:40]requested_item shift.open_date is exist - process it [13:28:40]req_shift_open_date [13:28:40]req_shift_open_date done [13:28:40]produce_requested_data done [13:28:40]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74653,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:28:40]process_action_free close_receipt [13:28:40]json_value_free [13:28:40]json_value_free done [13:28:40]process_json_proto returns [13:28:40]Send response to host [13:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74653,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:28:40]free response buf [13:28:40]execute_script done [13:28:40]execute_script returns [13:28:40]free content buf [13:28:40]Sock 8.Close socket [13:28:40]Sock 8.Thread stoped [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:05]accept exits with 9 [13:30:05]New connection [13:30:05]New thread 3066805604 created [13:30:05]Thread 3066662244 joined [13:30:05]Waiting for new connection... [13:30:05] Sock 9.Parse request [13:30:05]Sock 9.Check first char [13:30:05]Sock 9.First char is OK [13:30:05]request: POST /json_proto HTTP/1.0 [13:30:05]Method: POST [13:30:05]URL: /json_proto [13:30:05]Method is POST - this is cgi request [13:30:05]url: /json_proto [13:30:05]query_string will be loaded in cgi processing [13:30:05]execute_cgi json_proto POST (null) [13:30:05]execute_cgi path=json_proto method=POST [13:30:05]POST find Content-Length [13:30:05]Host: 172.17.39.131:8080 [13:30:05]Content-Length: 766 [13:30:05]Content-Type: application/json [13:30:05] [13:30:05]POST finish read [13:30:05]Found Content-Length = 766 [13:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:05]execute_script... [13:30: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)190618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:05]POST & json_proto [13:30:05]process_json_proto [13:30:05]json parsed OK: [13:30:05]protocol is kg_v1.0 [13:30:05]action value=close_receipt [13:30:05]process_action close_receipt [13:30:05]cmd_close_receipt [13:30:05]MH_GetDate [13:30:05]Write to MH i2c: F0 00 00 8C 76 F1 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: F0 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: F0 09 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: F0 09 00 8C 76 00 E9 4B 1A 67 86 57 24 65 15 [13:30:05]GetLastDocTimeStamp 1729776527 [13:30:05]current date 1729776617 [13:30:05]FM_GetShiftState [13:30:05]SAM_PROTO_GetShiftState [13:30:05]wFMCommunicate request_size=4 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 13 01 00 [13:30:05]Write to MH i2c: E2 08 00 8D 76 80 13 01 00 00 00 00 00 80 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 0E 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 0E 00 8D 76 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AA [13:30:05]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:30:05]wFMCommunicate OK [13:30:05]SAM_PROTO_GetShiftState done [13:30:05]FM_GetShiftState done [13:30:05]opened in 1729729801 [13:30:05]opened+sec_in_day 1729816201 [13:30:05]quantity*price = 150037 [13:30:05]sum+1 = 150039 [13:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 98 24.10.2024 13:30 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74654 ФПД: 201683359767189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133017&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74654&fm=201683359767189&tin=02508201610067®Number=0000000000091691&sum=150038 [13:30:06]StoreToDocumentArchive [13:30:06]shift 510 fd 74654 [13:30:06]save to /storage/0510/doc_00074654 [13:30:06]save last doc name /storage/0510/doc_00074654 to /storage/kkm_last_doc_name [13:30:06]save OK [13:30:06]Clear old archive folders... [13:30:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:06]tlvbuf is 00A8C730 [13:30:06]SAM_PROTO_ClearQueue [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 09 00 00 [13:30:06]Write to MH i2c: E2 08 00 9A 76 80 09 00 00 00 00 00 00 82 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 9A 76 00 90 00 84 [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]SAM_PROTO_ClearQueue done [13:30:07]KKMCreateOFDPacket [13:30:07]OFDProtocolAddRootSTLVToBuf [13:30:07]FM_MakeSignedData [13:30:07]FM_MakeSignedData [13:30:07]SAM_PROTO_SignData [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 0D 01 02 [13:30:07]Write to MH i2c: E2 08 00 9B 76 80 0D 01 02 00 00 00 00 8A [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 9B 76 00 90 00 85 [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]wFMCommunicate request_size=255 [13:30:07]MH_SAM_APDU [13:30: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 23 01 00 35 04 06 00 B7 6E 11 04 [13:30:07]Write to MH i2c: E2 02 01 9C 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 23 01 00 35 04 06 00 B7 6E 11 04 00 00 EB [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 9C 76 00 90 00 86 [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]wFMCommunicate request_size=7 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 0D 02 02 02 1A 95 [13:30:07]Write to MH i2c: E2 0A 00 9D 76 80 0D 02 02 02 00 1A 95 00 00 40 [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 9D 76 00 90 00 87 [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 0D 03 02 [13:30:07]Write to MH i2c: E2 08 00 9E 76 80 0D 03 02 00 00 00 00 8F [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 0B 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 0B 00 9E 76 00 9E 85 93 23 33 48 B5 41 90 00 DA [13:30:07]RAPDU: 9E 85 93 23 33 48 B5 41 90 00 [13:30:07]wFMCommunicate OK [13:30:07]SAM_PROTO_SignData done [13:30:07]FM_MakeSignedData done [13:30:07]CreateOFDProtocolMessage [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 11 00 00 [13:30:07]Write to MH i2c: E2 08 00 9F 76 80 11 00 00 00 00 00 00 8F [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 17 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 17 00 9F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E7 [13:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:30:07]wFMCommunicate OK [13:30:07]CreateOFDProtocolMessage done [13:30:07]OFDSenderStorePacket 74654 [13:30:07]StoreOFDPacket docnum=74654 [13:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 32 58 04 01 2B 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 23 01 00 35 04 06 00 B7 6E 11 04 1A 95 9E 85 93 23 33 48 B5 41 [13:30:07]CheckFolder [13:30:07]dirname=/storage/ofd_packets [13:30:07]CheckFolder done [13:30:07]ProducePacketName [13:30:07]name=ofd_packets/00074654 [13:30:07]NVStorageSaveData ofd_packets/00074654 [13:30:07]File name is /storage/ofd_packets/00074654 [13:30:07]Write 298 bytes [13:30:07]NVStorageSaveData done [13:30:07]OFDSenderStorePacket done [13:30:07]KKMCreateOFDPacket done [13:30:07]NVStorageSaveData kkm_last_timestamp [13:30:07]File name is /storage/kkm_last_timestamp [13:30:07]Write 4 bytes [13:30:07]NVStorageSaveData done [13:30:07]ExternCall_PrintAddStr [13:30:07]wPrintStart [13:30:07]Write to MH i2c: 01 00 00 A0 76 16 [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 07 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 07 00 A0 76 00 00 00 00 00 FF 0F 2B [13:30:07]RasterBufferAndPrint [13:30:07]line Счет N : (1)190618 [13:30:07]line ИНН: 02508201610067 [13:30:07]line Контрольно-Кассовый Чек [13:30:07]line ПРОДАЖА [13:30:07]line ТРК (МРК, ГНК) : 41 [13:30:07]line Товар: 2710194210 [13:30:07]line ДТ-К-4 [13:30:07]line 19.690 * 76.20 [13:30:07]line = 1500.38 [13:30:07]line НДС 12% НСП 1% [13:30:07]line > о реализуемом товаре [13:30:07]line ИТОГО: 1500.38 [13:30:07]line НСП 1% : 13.28 [13:30:07]line НДС 12% : 159.33 [13:30:07]line Наличными: 0.00 [13:30:07]line Безнал.: 1500.38 [13:30:07]line Место: АЗС № 142 "Партнер Нефть" [13:30:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:30:07]line СНО: Общий режим [13:30:07]line Чек 98 24.10.2024 13:30 [13:30:07]line Смена: 510 ФФД: 1.0 [13:30:07]line ЗНМ: 0300000089 [13:30:07]line РНМ: 0000000000091691 [13:30:07]line Версия ККМ: 001 [13:30:07]line Платежная система: Mbank [13:30:07]line ФМ: 0000000000871795 [13:30:07]line ФД: 74654 [13:30:07]line ФПД: 201683359767189 [13:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133017&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74654&fm=201683359767189&tin=02508201610067®Number=0000000000091691&sum=150038 [13:30:07]OFD Sender: Processing packet 74654 [packets to send 13, broken 12] [13:30:07]ProducePacketName [13:30:07]name=ofd_packets/00074654 [13:30:07]OFD Sender: To server: pG, [13:30:07]CommunicateWithHost lk.salyk.kg:30040 [13:30:07]ConnectInit lk.salyk.kg [13:30:07]written 0, free lines is 4095 [13:30:08]Connected sock=10 [13:30:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 32 58 04 01 2B 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 4B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 23 01 00 35 04 06 00 B7 6E 11 04 1A 95 9E 85 93 23 33 48 B5 41 [13:30:08]Write to MH i2c: 01 00 00 C9 76 3F [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 07 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 07 00 C9 76 00 00 00 00 00 D0 0C 22 [13:30:08]RasterBufferAndPrint [13:30:08]line [13:30:08]line [13:30:08]line [13:30:08]line [13:30:08]line [13:30:08]written 0, free lines is 3284 [13:30:08]MH_Cut [13:30:08]Write to MH i2c: D1 01 00 D0 76 01 18 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: D1 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: D1 01 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: D1 01 00 D0 76 00 17 [13:30:08]Write to MH i2c: 01 00 00 D1 76 47 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1B E4 47 00 F2 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 23 01 00 F4 03 04 00 6B F3 19 67 B6 04 01 00 00 F8 BF 1C A8 7E 1E 65 AE [13:30:08]CommunicateWithHost err = 0 [13:30:08]CheckOFDResponse [13:30:08]1017 (14) - 77093643461234 [13:30:08]1041 (16) - 0000000000871795 [13:30:08]1040 (4) - 74654 [13:30:08]1012 (4) - 24.10.2024 07:12 [13:30:08]1206 (1) - 0 [13:30:08]OFD Sender: Remove packet 74654 [13:30:08]ProducePacketName [13:30:08]name=ofd_packets/00074654 [13:30:08]NVStorageDeleteData [13:30:08]OFD Sender: No OFD packet to send [13:30:09]*** Cut start [13:30:09]*** Partial cut [13:30:09]*** CUTSNS_PIN = 1 [13:30:09]*** CUTSNS_PIN = 0 [13:30:09]*** Brake cut motor [13:30:09]Read from MH i2c: 01 [13:30:09]MH_I2C_Read... [13:30:09]*** Stop cut motor [13:30:09]*** Cut end [13:30:09]Read from MH i2c: 01 07 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: 01 07 00 D1 76 00 00 00 00 00 FF 0F 5C [13:30:09]process_action close_receipt done [13:30:09]requested_data is exist [13:30:09]produce_requested_data [13:30:09]requested_item fm.sn is exist - process it [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 11 00 00 [13:30:09]Write to MH i2c: E2 08 00 D2 76 80 11 00 00 00 00 00 00 C2 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 17 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 17 00 D2 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1A [13:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:30:09]wFMCommunicate OK [13:30:09]requested_item fd.num is exist - process it [13:30:09]SAM_PROTO_GetFieldsCounters [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 13 00 00 [13:30:09]Write to MH i2c: E2 08 00 D3 76 80 13 00 00 00 00 00 00 C5 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 62 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 62 00 D3 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9E 23 01 00 0E 04 04 00 FE 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 D3 [13:30:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9E 23 01 00 0E 04 04 00 FE 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 [13:30:09]wFMCommunicate OK [13:30:09]SAM_PROTO_GetFieldsCounters done [13:30:09]requested_item shift.num is exist - process it [13:30:09]requested_item shift.opened is exist - process it [13:30:09]req_shift_opened [13:30:09]FM_GetShiftState [13:30:09]SAM_PROTO_GetShiftState [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 13 01 00 [13:30:09]Write to MH i2c: E2 08 00 D4 76 80 13 01 00 00 00 00 00 C7 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 0E 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 0E 00 D4 76 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F1 [13:30:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:30:09]wFMCommunicate OK [13:30:09]SAM_PROTO_GetShiftState done [13:30:09]FM_GetShiftState done [13:30:09]req_shift_opened done [13:30:09]requested_item shift.open_date is exist - process it [13:30:09]req_shift_open_date [13:30:09]req_shift_open_date done [13:30:09]produce_requested_data done [13:30:09]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74654,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:30:09]process_action_free close_receipt [13:30:09]json_value_free [13:30:09]json_value_free done [13:30:09]process_json_proto returns [13:30:09]Send response to host [13:30:23]OFD Sender: No OFD packet to send [13:30:28]int [13:30:28]Write to MH i2c: 01 00 00 D5 76 4B [13:30:28]*** FLAG_PRN_PAP1 set [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: 01 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: 01 07 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: 01 07 00 D5 76 00 01 00 00 00 FF 0F 61 [13:30:28]state=0 [13:30:28]No paper [13:30:28]int [13:30:28]Write to MH i2c: 01 00 00 D6 76 4C [13:30:28]*** FLAG_PRN_PAP2 set [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: 01 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: 01 07 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: 01 07 00 D6 76 00 03 00 00 00 FF 0F 64 [13:30:28]state=0 [13:30:28]No paper [13:30:28]Cover opened [13:30:28]recv_with_timeout no data received [13:30:28]OFD Sender: No OFD packet to send [13:30:30]int [13:30:30]Write to MH i2c: 01 00 00 D7 76 4D [13:30:30]*** FLAG_PRN_PAP2 reset [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 07 00 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 07 00 D7 76 00 01 00 00 00 FF 0F 63 [13:30:30]state=3 [13:30:30]No paper [13:30:30]Cover closed [13:30:30]int [13:30:30]Write to MH i2c: 01 00 00 D8 76 4E [13:30:30]*** FLAG_PRN_PAP2 set [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 07 00 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 07 00 D8 76 00 03 00 00 00 FF 0F 66 [13:30:30]state=0 [13:30:30]No paper [13:30:30]Cover opened [13:30:33]OFD Sender: No OFD packet to send [13:30:35]Write to MH i2c: 01 00 00 D9 76 4F [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 07 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 07 00 D9 76 00 03 00 00 00 FF 0F 67 [13:30:35]state=3 [13:30:35]No paper [13:30:35]Cover opened [13:30:38]OFD Sender: No OFD packet to send [13:30:40]Write to MH i2c: 01 00 00 DA 76 50 [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 07 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 07 00 DA 76 00 03 00 00 00 FF 0F 68 [13:30:40]state=3 [13:30:40]No paper [13:30:40]Cover opened [13:30:42]int [13:30:42]Write to MH i2c: 01 00 00 DB 76 51 [13:30:42]*** FLAG_PRN_PAP2 reset [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 DB 76 00 01 00 00 00 FF 0F 67 [13:30:42]state=3 [13:30:42]No paper [13:30:42]Cover closed [13:30:42]int [13:30:42]Write to MH i2c: 01 00 00 DC 76 52 [13:30:42]*** FLAG_PRN_PAP1 reset [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 DC 76 00 00 00 00 00 FF 0F 67 [13:30:42]state=0 [13:30:43]OFD Sender: No OFD packet to send [13:30:44]int [13:30:44]Write to MH i2c: 01 00 00 DD 76 53 [13:30:44]*** FLAG_PRN_PAP1 set [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 DD 76 00 01 00 00 00 FF 0F 69 [13:30:44]state=0 [13:30:44]No paper [13:30:44]int [13:30:44]Write to MH i2c: 01 00 00 DE 76 54 [13:30:44]*** FLAG_PRN_PAP2 set [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 DE 76 00 03 00 00 00 FF 0F 6C [13:30:44]state=0 [13:30:44]No paper [13:30:44]Cover opened [13:30:46]int [13:30:46]Write to MH i2c: 01 00 00 DF 76 55 [13:30:46]*** FLAG_PRN_PAP2 reset [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: 01 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: 01 07 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: 01 07 00 DF 76 00 01 00 00 00 FF 0F 6B [13:30:46]state=3 [13:30:46]No paper [13:30:46]Cover closed [13:30:46]int [13:30:46]Write to MH i2c: 01 00 00 E0 76 56 [13:30:46]*** FLAG_PRN_PAP1 reset [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: 01 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: 01 07 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: 01 07 00 E0 76 00 00 00 00 00 FF 0F 6B [13:30:46]state=0 [13:30:47]int [13:30:47]Write to MH i2c: 01 00 00 E1 76 57 [13:30:47]*** FLAG_PRN_PAP1 set [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 E1 76 00 01 00 00 00 FF 0F 6D [13:30:47]state=0 [13:30:47]No paper [13:30:47]int [13:30:47]Write to MH i2c: 01 00 00 E2 76 58 [13:30:47]*** FLAG_PRN_PAP2 set [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 E2 76 00 03 00 00 00 FF 0F 70 [13:30:47]state=0 [13:30:47]No paper [13:30:47]Cover opened [13:30:48]int [13:30:48]Write to MH i2c: 01 00 00 E3 76 59 [13:30:48]*** FLAG_PRN_PAP1 reset [13:30:48]*** FLAG_PRN_PAP2 reset [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 E3 76 00 00 00 00 00 FF 0F 6E [13:30:48]state=3 [13:30:48]Cover closed [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:52]accept exits with 8 [13:38:52]New connection [13:38:52]New thread 3066662244 created [13:38:52]Thread 3066805604 joined [13:38:52]Waiting for new connection... [13:38:52] Sock 8.Parse request [13:38:52]Sock 8.Check first char [13:38:52]Sock 8.First char is OK [13:38:52]request: POST /json_proto HTTP/1.0 [13:38:52]Method: POST [13:38:52]URL: /json_proto [13:38:52]Method is POST - this is cgi request [13:38:52]url: /json_proto [13:38:52]query_string will be loaded in cgi processing [13:38:52]execute_cgi json_proto POST (null) [13:38:52]execute_cgi path=json_proto method=POST [13:38:52]POST find Content-Length [13:38:52]Host: 172.17.39.131:8080 [13:38:52]Content-Length: 677 [13:38:52]Content-Type: application/json [13:38:52] [13:38:52]POST finish read [13:38:52]Found Content-Length = 677 [13:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:52]execute_script... [13:38: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)190620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:52]POST & json_proto [13:38:52]process_json_proto [13:38:52]json parsed OK: [13:38:52]protocol is kg_v1.0 [13:38:52]action value=close_receipt [13:38:52]process_action close_receipt [13:38:52]cmd_close_receipt [13:38:52]MH_GetDate [13:38:52]Write to MH i2c: F0 00 00 E4 76 49 [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: F0 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: F0 09 00 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: F0 09 00 E4 76 00 F7 4D 1A 67 86 57 24 65 7D [13:38:52]GetLastDocTimeStamp 1729776617 [13:38:52]current date 1729777143 [13:38:52]FM_GetShiftState [13:38:52]SAM_PROTO_GetShiftState [13:38:52]wFMCommunicate request_size=4 [13:38:52]MH_SAM_APDU [13:38:52]CAPDU: 80 13 01 00 [13:38:52]Write to MH i2c: E2 08 00 E5 76 80 13 01 00 00 00 00 00 D8 [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:52]Read from MH i2c: E2 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: E2 0E 00 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: E2 0E 00 E5 76 00 09 00 01 09 95 19 67 00 00 00 00 90 00 02 [13:38:52]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:38:52]wFMCommunicate OK [13:38:52]SAM_PROTO_GetShiftState done [13:38:52]FM_GetShiftState done [13:38:52]opened in 1729729801 [13:38:52]opened+sec_in_day 1729816201 [13:38:52]quantity*price = 40006 [13:38:52]sum+1 = 40007 [13:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 99 24.10.2024 13:39 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74655 ФПД: 231040874584545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133903&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74655&fm=231040874584545&tin=02508201610067®Number=0000000000091691&sum=40000 [13:38:53]StoreToDocumentArchive [13:38:53]shift 510 fd 74655 [13:38:53]save to /storage/0510/doc_00074655 [13:38:53]save last doc name /storage/0510/doc_00074655 to /storage/kkm_last_doc_name [13:38:53]save OK [13:38:53]Clear old archive folders... [13:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:53]tlvbuf is 007C6580 [13:38:53]SAM_PROTO_ClearQueue [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 09 00 00 [13:38:53]Write to MH i2c: E2 08 00 F2 76 80 09 00 00 00 00 00 00 DA [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 F2 76 00 90 00 DC [13:38:53]RAPDU: 90 00 [13:38:53]wFMCommunicate OK [13:38:53]SAM_PROTO_ClearQueue done [13:38:53]KKMCreateOFDPacket [13:38:53]OFDProtocolAddRootSTLVToBuf [13:38:53]FM_MakeSignedData [13:38:53]FM_MakeSignedData [13:38:53]SAM_PROTO_SignData [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 0D 01 02 [13:38:53]Write to MH i2c: E2 08 00 F3 76 80 0D 01 02 00 00 00 00 E2 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 F3 76 00 90 00 DD [13:38:53]RAPDU: 90 00 [13:38:53]wFMCommunicate OK [13:38:53]wFMCommunicate request_size=255 [13:38:53]MH_SAM_APDU [13:38: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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F7 4D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 23 01 00 35 04 06 00 D2 [13:38:53]Write to MH i2c: E2 02 01 F4 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F7 4D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 23 01 00 35 04 06 00 D2 00 00 02 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 F4 76 00 90 00 DE [13:38:53]RAPDU: 90 00 [13:38:53]wFMCommunicate OK [13:38:53]wFMCommunicate request_size=10 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 0D 02 02 05 21 65 42 19 E1 [13:38:53]Write to MH i2c: E2 0D 00 F5 76 80 0D 02 02 05 00 21 65 42 19 E1 00 00 B1 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:54]Read from MH i2c: E2 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 F5 76 00 90 00 DF [13:38:54]RAPDU: 90 00 [13:38:54]wFMCommunicate OK [13:38:54]wFMCommunicate request_size=4 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 0D 03 02 [13:38:54]Write to MH i2c: E2 08 00 F6 76 80 0D 03 02 00 00 00 00 E7 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:54]Read from MH i2c: E2 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 0B 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 0B 00 F6 76 00 86 74 12 35 AD 32 2B 01 90 00 34 [13:38:54]RAPDU: 86 74 12 35 AD 32 2B 01 90 00 [13:38:54]wFMCommunicate OK [13:38:54]SAM_PROTO_SignData done [13:38:54]FM_MakeSignedData done [13:38:54]CreateOFDProtocolMessage [13:38:54]wFMCommunicate request_size=4 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 11 00 00 [13:38:54]Write to MH i2c: E2 08 00 F7 76 80 11 00 00 00 00 00 00 E7 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:54]Read from MH i2c: E2 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 17 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 17 00 F7 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3F [13:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:38:54]wFMCommunicate OK [13:38:54]CreateOFDProtocolMessage done [13:38:54]OFDSenderStorePacket 74655 [13:38:54]StoreOFDPacket docnum=74655 [13:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1C 25 07 01 87 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F7 4D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 23 01 00 35 04 06 00 D2 21 65 42 19 E1 86 74 12 35 AD 32 2B 01 [13:38:54]CheckFolder [13:38:54]dirname=/storage/ofd_packets [13:38:54]CheckFolder done [13:38:54]ProducePacketName [13:38:54]name=ofd_packets/00074655 [13:38:54]NVStorageSaveData ofd_packets/00074655 [13:38:54]File name is /storage/ofd_packets/00074655 [13:38:54]Write 301 bytes [13:38:54]NVStorageSaveData done [13:38:54]OFDSenderStorePacket done [13:38:54]KKMCreateOFDPacket done [13:38:54]NVStorageSaveData kkm_last_timestamp [13:38:54]File name is /storage/kkm_last_timestamp [13:38:54]Write 4 bytes [13:38:54]NVStorageSaveData done [13:38:54]ExternCall_PrintAddStr [13:38:54]wPrintStart [13:38:54]Write to MH i2c: 01 00 00 F8 76 6E [13:38:54]OFD Sender: Processing packet 74655 [packets to send 13, broken 12] [13:38:54]ProducePacketName [13:38:54]name=ofd_packets/00074655 [13:38:54]OFD Sender: To server: pG, [13:38:54]CommunicateWithHost lk.salyk.kg:30040 [13:38:54]ConnectInit lk.salyk.kg [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 07 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 07 00 F8 76 00 00 00 00 00 FF 0F 83 [13:38:54]RasterBufferAndPrint [13:38:54]line Счет N : (1)190620 [13:38:54]line ИНН: 02508201610067 [13:38:54]line Контрольно-Кассовый Чек [13:38:54]line ПРОДАЖА [13:38:54]line ТРК (МРК, ГНК) : 21 [13:38:54]line Товар: 2710124130 [13:38:54]line Аи-92-К-5 [13:38:54]line 5.980 * 66.90 [13:38:54]line = 400.06 [13:38:54]line НДС 12% НСП 1% [13:38:54]line > о реализуемом товаре [13:38:54]line ОКРУГЛЕНИЕ: -0.06 [13:38:54]line ИТОГО: 400.00 [13:38:54]line Внесено: 400.00 [13:38:54]line СДАЧА: 0.00 [13:38:54]line НСП 1% : 3.54 [13:38:54]line НДС 12% : 42.48 [13:38:54]line Наличными: 400.00 [13:38:54]line Безнал.: 0.00 [13:38:54]line Место: АЗС № 142 "Партнер Нефть" [13:38:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:38:54]line СНО: Общий режим [13:38:54]line Чек 99 24.10.2024 13:39 [13:38:54]line Смена: 510 ФФД: 1.0 [13:38:54]line ЗНМ: 0300000089 [13:38:54]line РНМ: 0000000000091691 [13:38:54]line Версия ККМ: 001 [13:38:54]line ФМ: 0000000000871795 [13:38:54]line ФД: 74655 [13:38:54]line ФПД: 231040874584545 [13:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133903&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74655&fm=231040874584545&tin=02508201610067®Number=0000000000091691&sum=40000 [13:38:54]Connected sock=10 [13:38:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1C 25 07 01 87 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F7 4D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 23 01 00 35 04 06 00 D2 21 65 42 19 E1 86 74 12 35 AD 32 2B 01 [13:38:54]written 0, free lines is 4095 [13:38:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1F 98 47 00 DC 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 23 01 00 F4 03 04 00 79 F5 19 67 B6 04 01 00 00 C6 ED A6 D1 30 DB D2 BD [13:38:54]CommunicateWithHost err = 0 [13:38:54]CheckOFDResponse [13:38:54]1017 (14) - 77093643461234 [13:38:54]1041 (16) - 0000000000871795 [13:38:54]1040 (4) - 74655 [13:38:54]1012 (4) - 24.10.2024 07:21 [13:38:54]1206 (1) - 0 [13:38:54]OFD Sender: Remove packet 74655 [13:38:54]ProducePacketName [13:38:54]name=ofd_packets/00074655 [13:38:54]NVStorageDeleteData [13:38:54]Write to MH i2c: 01 00 00 23 77 9A [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 07 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 07 00 23 77 00 00 00 00 00 9A 0C 47 [13:38:54]RasterBufferAndPrint [13:38:54]line [13:38:54]line [13:38:54]line [13:38:54]line [13:38:54]line [13:38:54]written 0, free lines is 3233 [13:38:54]MH_Cut [13:38:54]Write to MH i2c: D1 01 00 2A 77 01 73 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: D1 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: D1 01 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: D1 01 00 2A 77 00 72 [13:38:54]Write to MH i2c: 01 00 00 2B 77 A2 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:55]OFD Sender: No OFD packet to send [13:38:55]*** Cut start [13:38:55]*** Partial cut [13:38:55]*** CUTSNS_PIN = 1 [13:38:55]*** CUTSNS_PIN = 0 [13:38:56]*** Brake cut motor [13:38:56]Read from MH i2c: 01 [13:38:56]MH_I2C_Read... [13:38:56]*** Stop cut motor [13:38:56]*** Cut end [13:38:56]Read from MH i2c: 01 07 00 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: 01 07 00 2B 77 00 00 00 00 00 FF 0F B7 [13:38:56]process_action close_receipt done [13:38:56]requested_data is exist [13:38:56]produce_requested_data [13:38:56]requested_item fm.sn is exist - process it [13:38:56]wFMCommunicate request_size=4 [13:38:56]MH_SAM_APDU [13:38:56]CAPDU: 80 11 00 00 [13:38:56]Write to MH i2c: E2 08 00 2C 77 80 11 00 00 00 00 00 00 1D [13:38:56]Write i2c OK [13:38:56]MH_I2C_Read... [13:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:56]Read from MH i2c: E2 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: E2 17 00 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: E2 17 00 2C 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [13:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:38:56]wFMCommunicate OK [13:38:56]requested_item fd.num is exist - process it [13:38:56]SAM_PROTO_GetFieldsCounters [13:38:56]wFMCommunicate request_size=4 [13:38:56]MH_SAM_APDU [13:38:56]CAPDU: 80 13 00 00 [13:38:56]Write to MH i2c: E2 08 00 2D 77 80 13 00 00 00 00 00 00 20 [13:38:56]Write i2c OK [13:38:56]MH_I2C_Read... [13:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:56]Read from MH i2c: E2 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: E2 62 00 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: E2 62 00 2D 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9F 23 01 00 0E 04 04 00 FE 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 32 [13:38:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9F 23 01 00 0E 04 04 00 FE 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 [13:38:56]wFMCommunicate OK [13:38:56]SAM_PROTO_GetFieldsCounters done [13:38:56]requested_item shift.num is exist - process it [13:38:56]requested_item shift.opened is exist - process it [13:38:56]req_shift_opened [13:38:56]FM_GetShiftState [13:38:56]SAM_PROTO_GetShiftState [13:38:56]wFMCommunicate request_size=4 [13:38:56]MH_SAM_APDU [13:38:56]CAPDU: 80 13 01 00 [13:38:56]Write to MH i2c: E2 08 00 2E 77 80 13 01 00 00 00 00 00 22 [13:38:56]Write i2c OK [13:38:56]MH_I2C_Read... [13:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:56]Read from MH i2c: E2 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: E2 0E 00 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: E2 0E 00 2E 77 00 09 00 01 09 95 19 67 00 00 00 00 90 00 4C [13:38:56]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:38:56]wFMCommunicate OK [13:38:56]SAM_PROTO_GetShiftState done [13:38:56]FM_GetShiftState done [13:38:56]req_shift_opened done [13:38:56]requested_item shift.open_date is exist - process it [13:38:56]req_shift_open_date [13:38:56]req_shift_open_date done [13:38:56]produce_requested_data done [13:38:56]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74655,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:38:56]process_action_free close_receipt [13:38:56]json_value_free [13:38:56]json_value_free done [13:38:56]process_json_proto returns [13:38:56]Send response to host [13:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74655,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:38:56]free response buf [13:38:56]execute_script done [13:38:56]execute_script returns [13:38:56]free content buf [13:38:56]Sock 8.Close socket [13:38:56]Sock 8.Thread stoped [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]accept exits with 9 [13:39:20]New connection [13:39:20]New thread 3066805604 created [13:39:20]Thread 3066662244 joined [13:39:20]Waiting for new connection... [13:39:20] Sock 9.Parse request [13:39:20]Sock 9.Check first char [13:39:20]Sock 9.First char is OK [13:39:20]request: POST /json_proto HTTP/1.0 [13:39:20]Method: POST [13:39:20]URL: /json_proto [13:39:20]Method is POST - this is cgi request [13:39:20]url: /json_proto [13:39:20]query_string will be loaded in cgi processing [13:39:20]execute_cgi json_proto POST (null) [13:39:20]execute_cgi path=json_proto method=POST [13:39:20]POST find Content-Length [13:39:20]Host: 172.17.39.131:8080 [13:39:20]Content-Length: 685 [13:39:20]Content-Type: application/json [13:39:20] [13:39:20]POST finish read [13:39:20]Found Content-Length = 685 [13:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 69.170, "sum" : 2690.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2690.00, "payments": [ { "type": 0, "sum" : 2690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:20]execute_script... [13:39: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)190619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 69.170, "sum" : 2690.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2690.00, "payments": [ { "type": 0, "sum" : 2690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:20]POST & json_proto [13:39:20]process_json_proto [13:39:20]json parsed OK: [13:39:20]protocol is kg_v1.0 [13:39:20]action value=close_receipt [13:39:20]process_action close_receipt [13:39:20]cmd_close_receipt [13:39:20]MH_GetDate [13:39:20]Write to MH i2c: F0 00 00 2F 77 95 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: F0 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: F0 09 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: F0 09 00 2F 77 00 13 4E 1A 67 86 57 24 65 E6 [13:39:20]GetLastDocTimeStamp 1729777143 [13:39:20]current date 1729777171 [13:39:20]FM_GetShiftState [13:39:20]SAM_PROTO_GetShiftState [13:39:20]wFMCommunicate request_size=4 [13:39:20]MH_SAM_APDU [13:39:20]CAPDU: 80 13 01 00 [13:39:20]Write to MH i2c: E2 08 00 30 77 80 13 01 00 00 00 00 00 24 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:20]Read from MH i2c: E2 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 0E 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 0E 00 30 77 00 09 00 01 09 95 19 67 00 00 00 00 90 00 4E [13:39:20]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:39:20]wFMCommunicate OK [13:39:20]SAM_PROTO_GetShiftState done [13:39:20]FM_GetShiftState done [13:39:20]opened in 1729729801 [13:39:20]opened+sec_in_day 1729816201 [13:39:20]quantity*price = 269071 [13:39:20]sum+1 = 269072 [13:39:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2690.00 Внесено: 3000.00 СДАЧА: 310.00 НСП 1% : 23.81 НДС 12% : 285.74 Наличными: 2690.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 100 24.10.2024 13:39 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74656 ФПД: 147072229410860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133931&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74656&fm=147072229410860&tin=02508201610067®Number=0000000000091691&sum=269000 [13:39:21]StoreToDocumentArchive [13:39:21]shift 510 fd 74656 [13:39:21]save to /storage/0510/doc_00074656 [13:39:21]save last doc name /storage/0510/doc_00074656 to /storage/kkm_last_doc_name [13:39:21]save OK [13:39:21]Clear old archive folders... [13:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:39:21]tlvbuf is 0087C480 [13:39:21]SAM_PROTO_ClearQueue [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 09 00 00 [13:39:21]Write to MH i2c: E2 08 00 3D 77 80 09 00 00 00 00 00 00 26 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 3D 77 00 90 00 28 [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_ClearQueue done [13:39:21]KKMCreateOFDPacket [13:39:21]OFDProtocolAddRootSTLVToBuf [13:39:21]FM_MakeSignedData [13:39:21]FM_MakeSignedData [13:39:21]SAM_PROTO_SignData [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 01 02 [13:39:21]Write to MH i2c: E2 08 00 3E 77 80 0D 01 02 00 00 00 00 2E [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 3E 77 00 90 00 29 [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=255 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 0E 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 0F 1B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 6F 00 00 00 00 07 04 06 00 C8 1A 04 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 13 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 23 01 00 35 04 06 00 85 C2 [13:39:21]Write to MH i2c: E2 02 01 3F 77 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 0E 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 0F 1B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 6F 00 00 00 00 07 04 06 00 C8 1A 04 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 13 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 23 01 00 35 04 06 00 85 C2 00 00 12 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 3F 77 00 90 00 2A [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=9 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 02 02 04 EB FD 88 2C [13:39:21]Write to MH i2c: E2 0C 00 40 77 80 0D 02 02 04 00 EB FD 88 2C 00 00 D5 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 40 77 00 90 00 2B [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 03 02 [13:39:21]Write to MH i2c: E2 08 00 41 77 80 0D 03 02 00 00 00 00 33 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0B 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0B 00 41 77 00 A4 73 BA 6F 24 98 7D E1 90 00 8E [13:39:21]RAPDU: A4 73 BA 6F 24 98 7D E1 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_SignData done [13:39:21]FM_MakeSignedData done [13:39:21]CreateOFDProtocolMessage [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 11 00 00 [13:39:21]Write to MH i2c: E2 08 00 42 77 80 11 00 00 00 00 00 00 33 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 17 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 17 00 42 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8B [13:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:39:21]wFMCommunicate OK [13:39:21]CreateOFDProtocolMessage done [13:39:21]OFDSenderStorePacket 74656 [13:39:21]StoreOFDPacket docnum=74656 [13:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 DC D7 06 01 59 1A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 0E 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 0F 1B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 6F 00 00 00 00 07 04 06 00 C8 1A 04 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 13 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 23 01 00 35 04 06 00 85 C2 EB FD 88 2C A4 73 BA 6F 24 98 7D E1 [13:39:21]CheckFolder [13:39:21]dirname=/storage/ofd_packets [13:39:21]CheckFolder done [13:39:21]ProducePacketName [13:39:21]name=ofd_packets/00074656 [13:39:21]NVStorageSaveData ofd_packets/00074656 [13:39:21]File name is /storage/ofd_packets/00074656 [13:39:21]Write 300 bytes [13:39:21]NVStorageSaveData done [13:39:21]OFDSenderStorePacket done [13:39:21]KKMCreateOFDPacket done [13:39:21]NVStorageSaveData kkm_last_timestamp [13:39:21]File name is /storage/kkm_last_timestamp [13:39:21]Write 4 bytes [13:39:21]NVStorageSaveData done [13:39:21]ExternCall_PrintAddStr [13:39:21]wPrintStart [13:39:21]Write to MH i2c: 01 00 00 43 77 BA [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 07 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 07 00 43 77 00 00 00 00 00 FF 0F CF [13:39:21]RasterBufferAndPrint [13:39:21]line Счет N : (1)190619 [13:39:21]line ИНН: 02508201610067 [13:39:21]line Контрольно-Кассовый Чек [13:39:21]line ПРОДАЖА [13:39:21]line ТРК (МРК, ГНК) : 51 [13:39:21]line Товар: 2711190000 [13:39:21]line ГАЗ-К-3 [13:39:21]line 69.170 * 38.90 [13:39:21]line = 2690.71 [13:39:21]line НДС 12% НСП 1% [13:39:21]line > о реализуемом товаре [13:39:21]line ОКРУГЛЕНИЕ: -0.71 [13:39:21]line ИТОГО: 2690.00 [13:39:21]line Внесено: 3000.00 [13:39:21]line СДАЧА: 310.00 [13:39:21]line НСП 1% : 23.81 [13:39:21]line НДС 12% : 285.74 [13:39:21]line Наличными: 2690.00 [13:39:21]line Безнал.: 0.00 [13:39:21]line Место: АЗС № 142 "Партнер Нефть" [13:39:21]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:39:21]line СНО: Общий режим [13:39:21]line Чек 100 24.10.2024 13:39 [13:39:21]line Смена: 510 ФФД: 1.0 [13:39:21]line ЗНМ: 0300000089 [13:39:21]line РНМ: 0000000000091691 [13:39:21]line Версия ККМ: 001 [13:39:21]line ФМ: 0000000000871795 [13:39:21]line ФД: 74656 [13:39:21]line ФПД: 147072229410860 [13:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133931&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74656&fm=147072229410860&tin=02508201610067®Number=0000000000091691&sum=269000 [13:39:22]written 0, free lines is 4095 [13:39:22]OFD Sender: Processing packet 74656 [packets to send 13, broken 12] [13:39:22]ProducePacketName [13:39:22]name=ofd_packets/00074656 [13:39:22]OFD Sender: To server: pG, [13:39:22]CommunicateWithHost lk.salyk.kg:30040 [13:39:22]ConnectInit lk.salyk.kg [13:39:22]Connected sock=10 [13:39:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 DC D7 06 01 59 1A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 0E 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 0F 1B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 6F 00 00 00 00 07 04 06 00 C8 1A 04 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 13 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 23 01 00 35 04 06 00 85 C2 EB FD 88 2C A4 73 BA 6F 24 98 7D E1 [13:39:22]Write to MH i2c: 01 00 00 6E 77 E5 [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 07 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 07 00 6E 77 00 00 00 00 00 A7 0C 9F [13:39:22]RasterBufferAndPrint [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]written 0, free lines is 3245 [13:39:22]MH_Cut [13:39:22]Write to MH i2c: D1 01 00 75 77 01 BE [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: D1 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: D1 01 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: D1 01 00 75 77 00 BD [13:39:22]Write to MH i2c: 01 00 00 76 77 ED [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B8 7B 47 00 58 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 23 01 00 F4 03 04 00 95 F5 19 67 B6 04 01 00 00 C6 87 DB 0B 5B 36 59 0F [13:39:22]CommunicateWithHost err = 0 [13:39:22]CheckOFDResponse [13:39:22]1017 (14) - 77093643461234 [13:39:22]1041 (16) - 0000000000871795 [13:39:22]1040 (4) - 74656 [13:39:22]1012 (4) - 24.10.2024 07:21 [13:39:22]1206 (1) - 0 [13:39:22]OFD Sender: Remove packet 74656 [13:39:22]ProducePacketName [13:39:22]name=ofd_packets/00074656 [13:39:22]NVStorageDeleteData [13:39:23]OFD Sender: No OFD packet to send [13:39:23]*** Cut start [13:39:23]*** Partial cut [13:39:23]*** CUTSNS_PIN = 1 [13:39:23]*** CUTSNS_PIN = 0 [13:39:23]*** Brake cut motor [13:39:24]Read from MH i2c: 01 [13:39:24]MH_I2C_Read... [13:39:24]*** Stop cut motor [13:39:24]*** Cut end [13:39:24]Read from MH i2c: 01 07 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: 01 07 00 76 77 00 00 00 00 00 FF 0F 02 [13:39:24]process_action close_receipt done [13:39:24]requested_data is exist [13:39:24]produce_requested_data [13:39:24]requested_item fm.sn is exist - process it [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 11 00 00 [13:39:24]Write to MH i2c: E2 08 00 77 77 80 11 00 00 00 00 00 00 68 [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 17 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 17 00 77 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C0 [13:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:39:24]wFMCommunicate OK [13:39:24]requested_item fd.num is exist - process it [13:39:24]SAM_PROTO_GetFieldsCounters [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 13 00 00 [13:39:24]Write to MH i2c: E2 08 00 78 77 80 13 00 00 00 00 00 00 6B [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 62 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 62 00 78 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A0 23 01 00 0E 04 04 00 FE 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 81 [13:39:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A0 23 01 00 0E 04 04 00 FE 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 [13:39:24]wFMCommunicate OK [13:39:24]SAM_PROTO_GetFieldsCounters done [13:39:24]requested_item shift.num is exist - process it [13:39:24]requested_item shift.opened is exist - process it [13:39:24]req_shift_opened [13:39:24]FM_GetShiftState [13:39:24]SAM_PROTO_GetShiftState [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 13 01 00 [13:39:24]Write to MH i2c: E2 08 00 79 77 80 13 01 00 00 00 00 00 6D [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 0E 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 0E 00 79 77 00 09 00 01 09 95 19 67 00 00 00 00 90 00 97 [13:39:24]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:39:24]wFMCommunicate OK [13:39:24]SAM_PROTO_GetShiftState done [13:39:24]FM_GetShiftState done [13:39:24]req_shift_opened done [13:39:24]requested_item shift.open_date is exist - process it [13:39:24]req_shift_open_date [13:39:24]req_shift_open_date done [13:39:24]produce_requested_data done [13:39:24]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74656,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:39:24]process_action_free close_receipt [13:39:24]json_value_free [13:39:24]json_value_free done [13:39:24]process_json_proto returns [13:39:24]Send response to host [13:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74656,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:39:24]free response buf [13:39:24]execute_script done [13:39:24]execute_script returns [13:39:24]free content buf [13:39:24]Sock 9.Close socket [13:39:24]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:51]accept exits with 8 [13:41:51]New connection [13:41:51]New thread 3066662244 created [13:41:51]Thread 3066805604 joined [13:41:51]Waiting for new connection... [13:41:51] Sock 8.Parse request [13:41:51]Sock 8.Check first char [13:41:51]Sock 8.First char is OK [13:41:51]request: POST /json_proto HTTP/1.0 [13:41:51]Method: POST [13:41:51]URL: /json_proto [13:41:51]Method is POST - this is cgi request [13:41:51]url: /json_proto [13:41:51]query_string will be loaded in cgi processing [13:41:51]execute_cgi json_proto POST (null) [13:41:51]execute_cgi path=json_proto method=POST [13:41:51]POST find Content-Length [13:41:51]Host: 172.17.39.131:8080 [13:41:51]Content-Length: 682 [13:41:51]Content-Type: application/json [13:41:51] [13:41:51]POST finish read [13:41:51]Found Content-Length = 682 [13:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:51]execute_script... [13:41: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)190621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:51]POST & json_proto [13:41:51]process_json_proto [13:41:51]json parsed OK: [13:41:51]protocol is kg_v1.0 [13:41:51]action value=close_receipt [13:41:51]process_action close_receipt [13:41:51]cmd_close_receipt [13:41:51]MH_GetDate [13:41:51]Write to MH i2c: F0 00 00 7A 77 E0 [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: F0 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: F0 09 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: F0 09 00 7A 77 00 AA 4E 1A 67 86 57 24 65 C8 [13:41:51]GetLastDocTimeStamp 1729777171 [13:41:51]current date 1729777322 [13:41:51]FM_GetShiftState [13:41:51]SAM_PROTO_GetShiftState [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 13 01 00 [13:41:51]Write to MH i2c: E2 08 00 7B 77 80 13 01 00 00 00 00 00 6F [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0E 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0E 00 7B 77 00 09 00 01 09 95 19 67 00 00 00 00 90 00 99 [13:41:51]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:41:51]wFMCommunicate OK [13:41:51]SAM_PROTO_GetShiftState done [13:41:51]FM_GetShiftState done [13:41:51]opened in 1729729801 [13:41:51]opened+sec_in_day 1729816201 [13:41:51]quantity*price = 100015 [13:41:51]sum+1 = 100017 [13:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 101 24.10.2024 13:42 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74657 ФПД: 47397022596993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134202&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74657&fm=47397022596993&tin=02508201610067®Number=0000000000091691&sum=100000 [13:41:52]StoreToDocumentArchive [13:41:52]shift 510 fd 74657 [13:41:52]save to /storage/0510/doc_00074657 [13:41:52]save last doc name /storage/0510/doc_00074657 to /storage/kkm_last_doc_name [13:41:52]save OK [13:41:52]Clear old archive folders... [13:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:52]tlvbuf is 00AF1760 [13:41:52]SAM_PROTO_ClearQueue [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 09 00 00 [13:41:52]Write to MH i2c: E2 08 00 88 77 80 09 00 00 00 00 00 00 71 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 88 77 00 90 00 73 [13:41:52]RAPDU: 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_ClearQueue done [13:41:52]KKMCreateOFDPacket [13:41:52]OFDProtocolAddRootSTLVToBuf [13:41:52]FM_MakeSignedData [13:41:52]FM_MakeSignedData [13:41:52]SAM_PROTO_SignData [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 0D 01 02 [13:41:52]Write to MH i2c: E2 08 00 89 77 80 0D 01 02 00 00 00 00 79 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 89 77 00 90 00 74 [13:41:52]RAPDU: 90 00 [13:41:52]wFMCommunicate OK [13:41:52]wFMCommunicate request_size=255 [13:41:52]MH_SAM_APDU [13:41: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 23 01 00 35 04 06 00 2B [13:41:52]Write to MH i2c: E2 02 01 8A 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 23 01 00 35 04 06 00 2B 00 00 D5 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 8A 77 00 90 00 75 [13:41:52]RAPDU: 90 00 [13:41:52]wFMCommunicate OK [13:41:52]wFMCommunicate request_size=10 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 0D 02 02 05 1B 7A B1 FF 81 [13:41:52]Write to MH i2c: E2 0D 00 8B 77 80 0D 02 02 05 00 1B 7A B1 FF 81 00 00 4C [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 8B 77 00 90 00 76 [13:41:52]RAPDU: 90 00 [13:41:52]wFMCommunicate OK [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 0D 03 02 [13:41:52]Write to MH i2c: E2 08 00 8C 77 80 0D 03 02 00 00 00 00 7E [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0B 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0B 00 8C 77 00 E1 AD 7B 38 B6 BE 63 46 90 00 DD [13:41:52]RAPDU: E1 AD 7B 38 B6 BE 63 46 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_SignData done [13:41:52]FM_MakeSignedData done [13:41:52]CreateOFDProtocolMessage [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 11 00 00 [13:41:52]Write to MH i2c: E2 08 00 8D 77 80 11 00 00 00 00 00 00 7E [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 17 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 17 00 8D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D6 [13:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:41:52]wFMCommunicate OK [13:41:52]CreateOFDProtocolMessage done [13:41:52]OFDSenderStorePacket 74657 [13:41:52]StoreOFDPacket docnum=74657 [13:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EE F3 07 01 82 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 23 01 00 35 04 06 00 2B 1B 7A B1 FF 81 E1 AD 7B 38 B6 BE 63 46 [13:41:52]CheckFolder [13:41:52]dirname=/storage/ofd_packets [13:41:52]CheckFolder done [13:41:52]ProducePacketName [13:41:52]name=ofd_packets/00074657 [13:41:52]NVStorageSaveData ofd_packets/00074657 [13:41:52]File name is /storage/ofd_packets/00074657 [13:41:52]Write 301 bytes [13:41:52]NVStorageSaveData done [13:41:52]OFDSenderStorePacket done [13:41:52]KKMCreateOFDPacket done [13:41:52]NVStorageSaveData kkm_last_timestamp [13:41:52]File name is /storage/kkm_last_timestamp [13:41:52]Write 4 bytes [13:41:52]NVStorageSaveData done [13:41:52]ExternCall_PrintAddStr [13:41:52]wPrintStart [13:41:52]Write to MH i2c: 01 00 00 8E 77 05 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: 01 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: 01 07 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: 01 07 00 8E 77 00 00 00 00 00 FF 0F 1A [13:41:52]RasterBufferAndPrint [13:41:52]line Счет N : (1)190621 [13:41:52]line ИНН: 02508201610067 [13:41:52]line Контрольно-Кассовый Чек [13:41:52]line ПРОДАЖА [13:41:52]line ТРК (МРК, ГНК) : 21 [13:41:52]line Товар: 2710124130 [13:41:52]line Аи-92-К-5 [13:41:52]line 14.950 * 66.90 [13:41:52]line = 1000.16 [13:41:52]line НДС 12% НСП 1% [13:41:52]line > о реализуемом товаре [13:41:52]line ОКРУГЛЕНИЕ: -0.16 [13:41:52]line ИТОГО: 1000.00 [13:41:52]line Внесено: 1000.00 [13:41:52]line СДАЧА: 0.00 [13:41:52]line НСП 1% : 8.85 [13:41:52]line НДС 12% : 106.21 [13:41:52]line Наличными: 1000.00 [13:41:52]line Безнал.: 0.00 [13:41:52]line Место: АЗС № 142 "Партнер Нефть" [13:41:52]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:41:52]line СНО: Общий режим [13:41:52]line Чек 101 24.10.2024 13:42 [13:41:52]line Смена: 510 ФФД: 1.0 [13:41:52]line ЗНМ: 0300000089 [13:41:52]line РНМ: 0000000000091691 [13:41:52]line Версия ККМ: 001 [13:41:52]line ФМ: 0000000000871795 [13:41:52]line ФД: 74657 [13:41:52]line ФПД: 47397022596993 [13:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134202&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74657&fm=47397022596993&tin=02508201610067®Number=0000000000091691&sum=100000 [13:41:53]written 0, free lines is 4095 [13:41:53]OFD Sender: Processing packet 74657 [packets to send 13, broken 12] [13:41:53]ProducePacketName [13:41:53]name=ofd_packets/00074657 [13:41:53]OFD Sender: To server: pG, [13:41:53]CommunicateWithHost lk.salyk.kg:30040 [13:41:53]ConnectInit lk.salyk.kg [13:41:53]Connected sock=10 [13:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EE F3 07 01 82 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 4E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 23 01 00 35 04 06 00 2B 1B 7A B1 FF 81 E1 AD 7B 38 B6 BE 63 46 [13:41:53]Write to MH i2c: 01 00 00 B9 77 30 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 B9 77 00 00 00 00 00 9B 0C DE [13:41:53]RasterBufferAndPrint [13:41:53]line [13:41:53]line [13:41:53]line [13:41:53]line [13:41:53]line [13:41:53]written 0, free lines is 3236 [13:41:53]MH_Cut [13:41:53]Write to MH i2c: D1 01 00 C0 77 01 09 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: D1 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: D1 01 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: D1 01 00 C0 77 00 08 [13:41:53]Write to MH i2c: 01 00 00 C1 77 38 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 29 7A 47 00 F0 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 23 01 00 F4 03 04 00 2C F6 19 67 B6 04 01 00 00 0F 3A 8A 27 6B 52 EC 77 [13:41:53]CommunicateWithHost err = 0 [13:41:53]CheckOFDResponse [13:41:53]1017 (14) - 77093643461234 [13:41:53]1041 (16) - 0000000000871795 [13:41:53]1040 (4) - 74657 [13:41:53]1012 (4) - 24.10.2024 07:24 [13:41:53]1206 (1) - 0 [13:41:53]OFD Sender: Remove packet 74657 [13:41:53]ProducePacketName [13:41:53]name=ofd_packets/00074657 [13:41:53]NVStorageDeleteData [13:41:54]OFD Sender: No OFD packet to send [13:41:54]*** Cut start [13:41:54]*** Partial cut [13:41:54]*** CUTSNS_PIN = 1 [13:41:54]*** CUTSNS_PIN = 0 [13:41:54]*** Brake cut motor [13:41:55]Read from MH i2c: 01 [13:41:55]MH_I2C_Read... [13:41:55]*** Stop cut motor [13:41:55]*** Cut end [13:41:55]Read from MH i2c: 01 07 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 C1 77 00 00 00 00 00 FF 0F 4D [13:41:55]process_action close_receipt done [13:41:55]requested_data is exist [13:41:55]produce_requested_data [13:41:55]requested_item fm.sn is exist - process it [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 11 00 00 [13:41:55]Write to MH i2c: E2 08 00 C2 77 80 11 00 00 00 00 00 00 B3 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 17 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 17 00 C2 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0B [13:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:41:55]wFMCommunicate OK [13:41:55]requested_item fd.num is exist - process it [13:41:55]SAM_PROTO_GetFieldsCounters [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 13 00 00 [13:41:55]Write to MH i2c: E2 08 00 C3 77 80 13 00 00 00 00 00 00 B6 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 62 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 62 00 C3 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A1 23 01 00 0E 04 04 00 FE 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 D0 [13:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A1 23 01 00 0E 04 04 00 FE 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 [13:41:55]wFMCommunicate OK [13:41:55]SAM_PROTO_GetFieldsCounters done [13:41:55]requested_item shift.num is exist - process it [13:41:55]requested_item shift.opened is exist - process it [13:41:55]req_shift_opened [13:41:55]FM_GetShiftState [13:41:55]SAM_PROTO_GetShiftState [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 13 01 00 [13:41:55]Write to MH i2c: E2 08 00 C4 77 80 13 01 00 00 00 00 00 B8 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 0E 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 0E 00 C4 77 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E2 [13:41:55]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:41:55]wFMCommunicate OK [13:41:55]SAM_PROTO_GetShiftState done [13:41:55]FM_GetShiftState done [13:41:55]req_shift_opened done [13:41:55]requested_item shift.open_date is exist - process it [13:41:55]req_shift_open_date [13:41:55]req_shift_open_date done [13:41:55]produce_requested_data done [13:41:55]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74657,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:41:55]process_action_free close_receipt [13:41:55]json_value_free [13:41:55]json_value_free done [13:41:55]process_json_proto returns [13:41:55]Send response to host [13:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74657,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:41:55]free response buf [13:41:55]execute_script done [13:41:55]execute_script returns [13:41:55]free content buf [13:41:55]Sock 8.Close socket [13:41:55]Sock 8.Thread stoped [13:41:59]OFD Sender: No OFD packet to send [13:42:02]int [13:42:02]Write to MH i2c: 01 00 00 C5 77 3C [13:42:02]*** FLAG_PRN_KEY set [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 07 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 07 00 C5 77 00 08 00 00 00 FF 0F 59 [13:42:02]state=0 [13:42:02]Key pressed [13:42:02]Feed [13:42:02]Write to MH i2c: D8 00 00 C6 77 14 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: D8 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: D8 01 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: D8 01 00 C6 77 00 15 [13:42:02]int [13:42:02]Write to MH i2c: 01 00 00 C7 77 3E [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 07 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 07 00 C7 77 00 48 00 00 00 3C 00 C9 [13:42:02]state=2 [13:42:02]Key pressed [13:42:03]int [13:42:03]Write to MH i2c: 01 00 00 C8 77 3F [13:42:03]*** FLAG_PRN_KEY reset [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 C8 77 00 00 00 00 00 F9 0F 4E [13:42:03]state=2 [13:42:03]Stop feed [13:42:03]int [13:42:03]Write to MH i2c: 01 00 00 C9 77 40 [13:42:03]*** FLAG_PRN_KEY set [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 C9 77 00 08 00 00 00 FF 0F 5D [13:42:03]state=0 [13:42:03]Key pressed [13:42:03]Feed [13:42:03]Write to MH i2c: D8 00 00 CA 77 18 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: D8 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: D8 01 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: D8 01 00 CA 77 00 19 [13:42:03]int [13:42:03]Write to MH i2c: 01 00 00 CB 77 42 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 CB 77 00 48 00 00 00 3C 00 CD [13:42:03]state=2 [13:42:03]Key pressed [13:42:03]int [13:42:03]Write to MH i2c: 01 00 00 CC 77 43 [13:42:03]*** FLAG_PRN_KEY reset [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 CC 77 00 00 00 00 00 F5 0F 4E [13:42:03]state=2 [13:42:03]Stop feed [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:50]accept exits with 9 [13:43:50]New connection [13:43:50]New thread 3066805604 created [13:43:50]Thread 3066662244 joined [13:43:50]Waiting for new connection... [13:43:50] Sock 9.Parse request [13:43:50]Sock 9.Check first char [13:43:50]Sock 9.First char is OK [13:43:50]request: POST /json_proto HTTP/1.0 [13:43:50]Method: POST [13:43:50]URL: /json_proto [13:43:50]Method is POST - this is cgi request [13:43:50]url: /json_proto [13:43:50]query_string will be loaded in cgi processing [13:43:50]execute_cgi json_proto POST (null) [13:43:50]execute_cgi path=json_proto method=POST [13:43:50]POST find Content-Length [13:43:50]Host: 172.17.39.131:8080 [13:43:50]Content-Length: 677 [13:43:50]Content-Type: application/json [13:43:50] [13:43:50]POST finish read [13:43:50]Found Content-Length = 677 [13:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:50]execute_script... [13:43: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)190623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:50]POST & json_proto [13:43:50]process_json_proto [13:43:50]json parsed OK: [13:43:50]protocol is kg_v1.0 [13:43:50]action value=close_receipt [13:43:50]process_action close_receipt [13:43:50]cmd_close_receipt [13:43:50]MH_GetDate [13:43:50]Write to MH i2c: F0 00 00 CD 77 33 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: F0 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: F0 09 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: F0 09 00 CD 77 00 21 4F 1A 67 86 57 24 65 93 [13:43:50]GetLastDocTimeStamp 1729777322 [13:43:50]current date 1729777441 [13:43:50]FM_GetShiftState [13:43:50]SAM_PROTO_GetShiftState [13:43:50]wFMCommunicate request_size=4 [13:43:50]MH_SAM_APDU [13:43:50]CAPDU: 80 13 01 00 [13:43:50]Write to MH i2c: E2 08 00 CE 77 80 13 01 00 00 00 00 00 C2 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:50]Read from MH i2c: E2 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 0E 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 0E 00 CE 77 00 09 00 01 09 95 19 67 00 00 00 00 90 00 EC [13:43:50]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:43:50]wFMCommunicate OK [13:43:50]SAM_PROTO_GetShiftState done [13:43:50]FM_GetShiftState done [13:43:50]opened in 1729729801 [13:43:50]opened+sec_in_day 1729816201 [13:43:50]quantity*price = 50041 [13:43:50]sum+1 = 50042 [13:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 102 24.10.2024 13:44 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74658 ФПД: 278079939655588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134402&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74658&fm=278079939655588&tin=02508201610067®Number=0000000000091691&sum=50000 [13:43:51]StoreToDocumentArchive [13:43:51]shift 510 fd 74658 [13:43:51]save to /storage/0510/doc_00074658 [13:43:51]save last doc name /storage/0510/doc_00074658 to /storage/kkm_last_doc_name [13:43:51]save OK [13:43:51]Clear old archive folders... [13:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:51]tlvbuf is 007C61E0 [13:43:51]SAM_PROTO_ClearQueue [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 09 00 00 [13:43:51]Write to MH i2c: E2 08 00 DB 77 80 09 00 00 00 00 00 00 C4 [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 DB 77 00 90 00 C6 [13:43:51]RAPDU: 90 00 [13:43:51]wFMCommunicate OK [13:43:51]SAM_PROTO_ClearQueue done [13:43:51]KKMCreateOFDPacket [13:43:51]OFDProtocolAddRootSTLVToBuf [13:43:51]FM_MakeSignedData [13:43:51]FM_MakeSignedData [13:43:51]SAM_PROTO_SignData [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 0D 01 02 [13:43:51]Write to MH i2c: E2 08 00 DC 77 80 0D 01 02 00 00 00 00 CC [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 03 00 DC 77 00 90 00 C7 [13:43:51]RAPDU: 90 00 [13:43:51]wFMCommunicate OK [13:43:51]wFMCommunicate request_size=255 [13:43:51]MH_SAM_APDU [13:43: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 22 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 23 01 00 35 04 06 00 FC [13:43:51]Write to MH i2c: E2 02 01 DD 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 22 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 23 01 00 35 04 06 00 FC 00 00 7A [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 DD 77 00 90 00 C8 [13:43:52]RAPDU: 90 00 [13:43:52]wFMCommunicate OK [13:43:52]wFMCommunicate request_size=10 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 0D 02 02 05 E9 88 05 B7 A4 [13:43:52]Write to MH i2c: E2 0D 00 DE 77 80 0D 02 02 05 00 E9 88 05 B7 A4 00 00 AA [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 DE 77 00 90 00 C9 [13:43:52]RAPDU: 90 00 [13:43:52]wFMCommunicate OK [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 0D 03 02 [13:43:52]Write to MH i2c: E2 08 00 DF 77 80 0D 03 02 00 00 00 00 D1 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0B 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0B 00 DF 77 00 DC 0B 2D 5A 6B 0C 14 3E 90 00 09 [13:43:52]RAPDU: DC 0B 2D 5A 6B 0C 14 3E 90 00 [13:43:52]wFMCommunicate OK [13:43:52]SAM_PROTO_SignData done [13:43:52]FM_MakeSignedData done [13:43:52]CreateOFDProtocolMessage [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 11 00 00 [13:43:52]Write to MH i2c: E2 08 00 E0 77 80 11 00 00 00 00 00 00 D1 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 E0 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 29 [13:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:43:52]wFMCommunicate OK [13:43:52]CreateOFDProtocolMessage done [13:43:52]OFDSenderStorePacket 74658 [13:43:52]StoreOFDPacket docnum=74658 [13:43:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 27 07 01 C8 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 22 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 23 01 00 35 04 06 00 FC E9 88 05 B7 A4 DC 0B 2D 5A 6B 0C 14 3E [13:43:52]CheckFolder [13:43:52]dirname=/storage/ofd_packets [13:43:52]CheckFolder done [13:43:52]ProducePacketName [13:43:52]name=ofd_packets/00074658 [13:43:52]NVStorageSaveData ofd_packets/00074658 [13:43:52]File name is /storage/ofd_packets/00074658 [13:43:52]Write 301 bytes [13:43:52]NVStorageSaveData done [13:43:52]OFDSenderStorePacket done [13:43:52]KKMCreateOFDPacket done [13:43:52]NVStorageSaveData kkm_last_timestamp [13:43:52]File name is /storage/kkm_last_timestamp [13:43:52]Write 4 bytes [13:43:52]NVStorageSaveData done [13:43:52]ExternCall_PrintAddStr [13:43:52]wPrintStart [13:43:52]Write to MH i2c: 01 00 00 E1 77 58 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 E1 77 00 00 00 00 00 FF 0F 6D [13:43:52]RasterBufferAndPrint [13:43:52]line Счет N : (1)190623 [13:43:52]line ИНН: 02508201610067 [13:43:52]line Контрольно-Кассовый Чек [13:43:52]line ПРОДАЖА [13:43:52]line ТРК (МРК, ГНК) : 21 [13:43:52]line Товар: 2710124130 [13:43:52]line Аи-92-К-5 [13:43:52]line 7.480 * 66.90 [13:43:52]line = 500.41 [13:43:52]line НДС 12% НСП 1% [13:43:52]line > о реализуемом товаре [13:43:52]line ОКРУГЛЕНИЕ: -0.41 [13:43:52]line ИТОГО: 500.00 [13:43:52]line Внесено: 500.00 [13:43:52]line СДАЧА: 0.00 [13:43:52]line НСП 1% : 4.43 [13:43:52]line НДС 12% : 53.14 [13:43:52]line Наличными: 500.00 [13:43:52]line Безнал.: 0.00 [13:43:52]line Место: АЗС № 142 "Партнер Нефть" [13:43:52]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:43:52]line СНО: Общий режим [13:43:52]line Чек 102 24.10.2024 13:44 [13:43:52]line Смена: 510 ФФД: 1.0 [13:43:52]line ЗНМ: 0300000089 [13:43:52]line РНМ: 0000000000091691 [13:43:52]line Версия ККМ: 001 [13:43:52]line ФМ: 0000000000871795 [13:43:52]line ФД: 74658 [13:43:52]line ФПД: 278079939655588 [13:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134402&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74658&fm=278079939655588&tin=02508201610067®Number=0000000000091691&sum=50000 [13:43:52]written 0, free lines is 4095 [13:43:52]OFD Sender: Processing packet 74658 [packets to send 13, broken 12] [13:43:52]ProducePacketName [13:43:52]name=ofd_packets/00074658 [13:43:52]OFD Sender: To server: pG, [13:43:52]CommunicateWithHost lk.salyk.kg:30040 [13:43:52]ConnectInit lk.salyk.kg [13:43:52]Connected sock=10 [13:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 27 07 01 C8 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 22 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 23 01 00 35 04 06 00 FC E9 88 05 B7 A4 DC 0B 2D 5A 6B 0C 14 3E [13:43:53]Write to MH i2c: 01 00 00 0C 78 84 [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 07 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 07 00 0C 78 00 00 00 00 00 A4 0C 3B [13:43:53]RasterBufferAndPrint [13:43:53]line [13:43:53]line [13:43:53]line [13:43:53]line [13:43:53]line [13:43:53]written 0, free lines is 3242 [13:43:53]MH_Cut [13:43:53]Write to MH i2c: D1 01 00 13 78 01 5D [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: D1 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: D1 01 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: D1 01 00 13 78 00 5C [13:43:53]Write to MH i2c: 01 00 00 14 78 8C [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 50 7E 47 00 ED 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 23 01 00 F4 03 04 00 A4 F6 19 67 B6 04 01 00 00 B0 3E C1 57 80 E9 EF E2 [13:43:53]CommunicateWithHost err = 0 [13:43:53]CheckOFDResponse [13:43:53]1017 (14) - 77093643461234 [13:43:53]1041 (16) - 0000000000871795 [13:43:53]1040 (4) - 74658 [13:43:53]1012 (4) - 24.10.2024 07:26 [13:43:53]1206 (1) - 0 [13:43:53]OFD Sender: Remove packet 74658 [13:43:53]ProducePacketName [13:43:53]name=ofd_packets/00074658 [13:43:53]NVStorageDeleteData [13:43:53]OFD Sender: No OFD packet to send [13:43:53]*** Cut start [13:43:53]*** Partial cut [13:43:53]*** CUTSNS_PIN = 1 [13:43:54]*** CUTSNS_PIN = 0 [13:43:54]*** Brake cut motor [13:43:54]Read from MH i2c: 01 [13:43:54]MH_I2C_Read... [13:43:54]*** Stop cut motor [13:43:54]*** Cut end [13:43:54]Read from MH i2c: 01 07 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 07 00 14 78 00 00 00 00 00 FF 0F A1 [13:43:54]process_action close_receipt done [13:43:54]requested_data is exist [13:43:54]produce_requested_data [13:43:54]requested_item fm.sn is exist - process it [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 11 00 00 [13:43:54]Write to MH i2c: E2 08 00 15 78 80 11 00 00 00 00 00 00 07 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 17 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 17 00 15 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5F [13:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:43:54]wFMCommunicate OK [13:43:54]requested_item fd.num is exist - process it [13:43:54]SAM_PROTO_GetFieldsCounters [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 13 00 00 [13:43:54]Write to MH i2c: E2 08 00 16 78 80 13 00 00 00 00 00 00 0A [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 62 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 62 00 16 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A2 23 01 00 0E 04 04 00 FE 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 28 [13:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A2 23 01 00 0E 04 04 00 FE 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 [13:43:54]wFMCommunicate OK [13:43:54]SAM_PROTO_GetFieldsCounters done [13:43:54]requested_item shift.num is exist - process it [13:43:54]requested_item shift.opened is exist - process it [13:43:54]req_shift_opened [13:43:54]FM_GetShiftState [13:43:54]SAM_PROTO_GetShiftState [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 13 01 00 [13:43:54]Write to MH i2c: E2 08 00 17 78 80 13 01 00 00 00 00 00 0C [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 0E 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 0E 00 17 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 36 [13:43:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:43:54]wFMCommunicate OK [13:43:54]SAM_PROTO_GetShiftState done [13:43:54]FM_GetShiftState done [13:43:54]req_shift_opened done [13:43:54]requested_item shift.open_date is exist - process it [13:43:54]req_shift_open_date [13:43:54]req_shift_open_date done [13:43:54]produce_requested_data done [13:43:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74658,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:43:54]process_action_free close_receipt [13:43:54]json_value_free [13:43:54]json_value_free done [13:43:54]process_json_proto returns [13:43:54]Send response to host [13:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74658,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:43:54]free response buf [13:43:54]execute_script done [13:43:54]execute_script returns [13:43:54]free content buf [13:43:54]Sock 9.Close socket [13:43:54]Sock 9.Thread stoped [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:11]accept exits with 8 [13:44:11]New connection [13:44:11]New thread 3066662244 created [13:44:11]Thread 3066805604 joined [13:44:11]Waiting for new connection... [13:44:11] Sock 8.Parse request [13:44:11]Sock 8.Check first char [13:44:11]Sock 8.First char is OK [13:44:11]request: POST /json_proto HTTP/1.0 [13:44:11]Method: POST [13:44:11]URL: /json_proto [13:44:11]Method is POST - this is cgi request [13:44:11]url: /json_proto [13:44:11]query_string will be loaded in cgi processing [13:44:11]execute_cgi json_proto POST (null) [13:44:11]execute_cgi path=json_proto method=POST [13:44:11]POST find Content-Length [13:44:11]Host: 172.17.39.131:8080 [13:44:11]Content-Length: 797 [13:44:11]Content-Type: application/json [13:44:11] [13:44:11]POST finish read [13:44:11]Found Content-Length = 797 [13:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379658", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:11]execute_script... [13:44: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)190624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379658", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:11]POST & json_proto [13:44:11]process_json_proto [13:44:11]json parsed OK: [13:44:11]protocol is kg_v1.0 [13:44:11]action value=close_receipt [13:44:11]process_action close_receipt [13:44:11]cmd_close_receipt [13:44:11]MH_GetDate [13:44:11]Write to MH i2c: F0 00 00 18 78 7F [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: F0 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: F0 09 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: F0 09 00 18 78 00 37 4F 1A 67 86 57 24 65 F5 [13:44:11]GetLastDocTimeStamp 1729777442 [13:44:11]current date 1729777463 [13:44:11]FM_GetShiftState [13:44:11]SAM_PROTO_GetShiftState [13:44:11]wFMCommunicate request_size=4 [13:44:11]MH_SAM_APDU [13:44:11]CAPDU: 80 13 01 00 [13:44:11]Write to MH i2c: E2 08 00 19 78 80 13 01 00 00 00 00 00 0E [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:11]Read from MH i2c: E2 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 0E 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 0E 00 19 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 38 [13:44:11]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:44:11]wFMCommunicate OK [13:44:11]SAM_PROTO_GetShiftState done [13:44:11]FM_GetShiftState done [13:44:11]opened in 1729729801 [13:44:11]opened+sec_in_day 1729816201 [13:44:11]quantity*price = 0 [13:44:11]sum+1 = 1 [13:44:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 103 24.10.2024 13:44 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливные Талоны 4379658 ФМ: 0000000000871795 ФД: 74659 ФПД: 94681183609127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134423&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74659&fm=94681183609127&tin=02508201610067®Number=0000000000091691&sum=0 [13:44:12]StoreToDocumentArchive [13:44:12]shift 510 fd 74659 [13:44:12]save to /storage/0510/doc_00074659 [13:44:12]save last doc name /storage/0510/doc_00074659 to /storage/kkm_last_doc_name [13:44:12]save OK [13:44:12]Clear old archive folders... [13:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:44:12]tlvbuf is 00AF1070 [13:44:12]SAM_PROTO_ClearQueue [13:44:12]wFMCommunicate request_size=4 [13:44:12]MH_SAM_APDU [13:44:12]CAPDU: 80 09 00 00 [13:44:12]Write to MH i2c: E2 08 00 26 78 80 09 00 00 00 00 00 00 10 [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 26 78 00 90 00 12 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_ClearQueue done [13:44:13]KKMCreateOFDPacket [13:44:13]OFDProtocolAddRootSTLVToBuf [13:44:13]FM_MakeSignedData [13:44:13]FM_MakeSignedData [13:44:13]SAM_PROTO_SignData [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 01 02 [13:44:13]Write to MH i2c: E2 08 00 27 78 80 0D 01 02 00 00 00 00 18 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 27 78 00 90 00 13 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=255 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 23 01 00 35 04 06 00 56 1C AE 50 [13:44:13]Write to MH i2c: E2 02 01 28 78 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 23 01 00 35 04 06 00 56 1C AE 50 00 00 8C [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 28 78 00 90 00 14 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=7 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 02 02 02 E1 27 [13:44:13]Write to MH i2c: E2 0A 00 29 78 80 0D 02 02 02 00 E1 27 00 00 27 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 29 78 00 90 00 15 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 03 02 [13:44:13]Write to MH i2c: E2 08 00 2A 78 80 0D 03 02 00 00 00 00 1D [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0B 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0B 00 2A 78 00 3C 6B 65 FA 90 A4 EC 9C 90 00 E0 [13:44:13]RAPDU: 3C 6B 65 FA 90 A4 EC 9C 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_SignData done [13:44:13]FM_MakeSignedData done [13:44:13]CreateOFDProtocolMessage [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 11 00 00 [13:44:13]Write to MH i2c: E2 08 00 2B 78 80 11 00 00 00 00 00 00 1D [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 17 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 17 00 2B 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [13:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:44:13]wFMCommunicate OK [13:44:13]CreateOFDProtocolMessage done [13:44:13]OFDSenderStorePacket 74659 [13:44:13]StoreOFDPacket docnum=74659 [13:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 65 77 04 01 B5 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 23 01 00 35 04 06 00 56 1C AE 50 E1 27 3C 6B 65 FA 90 A4 EC 9C [13:44:13]CheckFolder [13:44:13]dirname=/storage/ofd_packets [13:44:13]CheckFolder done [13:44:13]ProducePacketName [13:44:13]name=ofd_packets/00074659 [13:44:13]NVStorageSaveData ofd_packets/00074659 [13:44:13]File name is /storage/ofd_packets/00074659 [13:44:13]Write 298 bytes [13:44:13]NVStorageSaveData done [13:44:13]OFDSenderStorePacket done [13:44:13]KKMCreateOFDPacket done [13:44:13]NVStorageSaveData kkm_last_timestamp [13:44:13]File name is /storage/kkm_last_timestamp [13:44:13]Write 4 bytes [13:44:13]NVStorageSaveData done [13:44:13]ExternCall_PrintAddStr [13:44:13]wPrintStart [13:44:13]Write to MH i2c: 01 00 00 2C 78 A4 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 2C 78 00 00 00 00 00 FF 0F B9 [13:44:13]RasterBufferAndPrint [13:44:13]line Счет N : (1)190624 [13:44:13]line ИНН: 02508201610067 [13:44:13]line Контрольно-Кассовый Чек [13:44:13]line ПРОДАЖА [13:44:13]line ТРК (МРК, ГНК) : 31 [13:44:13]line Товар: 2710194210 [13:44:13]line ДТ-К-4 [13:44:13]line 20.000 * 0.00 [13:44:13]line = 0.00 [13:44:13]line НДС 12% НСП 1% [13:44:13]line > о реализуемом товаре [13:44:13]line ИТОГО: 0.00 [13:44:13]line НСП 1% : 0.00 [13:44:13]line НДС 12% : 0.00 [13:44:13]line Наличными: 0.00 [13:44:13]line Безнал.: 0.00 [13:44:13]line Место: АЗС № 142 "Партнер Нефть" [13:44:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:44:13]line СНО: Общий режим [13:44:13]line Чек 103 24.10.2024 13:44 [13:44:13]line Смена: 510 ФФД: 1.0 [13:44:13]line ЗНМ: 0300000089 [13:44:13]line РНМ: 0000000000091691 [13:44:13]line Версия ККМ: 001 [13:44:13]line Талоны: Топливные Талоны [13:44:13]line 4379658 [13:44:13]line ФМ: 0000000000871795 [13:44:13]line ФД: 74659 [13:44:13]line ФПД: 94681183609127 [13:44:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134423&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74659&fm=94681183609127&tin=02508201610067®Number=0000000000091691&sum=0 [13:44:13]OFD Sender: Processing packet 74659 [packets to send 13, broken 12] [13:44:13]ProducePacketName [13:44:13]name=ofd_packets/00074659 [13:44:13]OFD Sender: To server: pG, [13:44:13]CommunicateWithHost lk.salyk.kg:30040 [13:44:13]ConnectInit lk.salyk.kg [13:44:13]written 0, free lines is 4095 [13:44:14]Connected sock=10 [13:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 65 77 04 01 B5 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 4F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 23 01 00 35 04 06 00 56 1C AE 50 E1 27 3C 6B 65 FA 90 A4 EC 9C [13:44:14]Write to MH i2c: 01 00 00 56 78 CE [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 56 78 00 00 00 00 00 AE 0C 8F [13:44:14]RasterBufferAndPrint [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]written 0, free lines is 3252 [13:44:14]MH_Cut [13:44:14]Write to MH i2c: D1 01 00 5D 78 01 A7 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 01 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 01 00 5D 78 00 A6 [13:44:14]Write to MH i2c: 01 00 00 5E 78 D6 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B0 02 47 00 FB DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 23 01 00 F4 03 04 00 B9 F6 19 67 B6 04 01 00 00 F5 C8 D3 E2 40 2C E9 0E [13:44:14]CommunicateWithHost err = 0 [13:44:14]CheckOFDResponse [13:44:14]1017 (14) - 77093643461234 [13:44:14]1041 (16) - 0000000000871795 [13:44:14]1040 (4) - 74659 [13:44:14]1012 (4) - 24.10.2024 07:26 [13:44:14]1206 (1) - 0 [13:44:14]OFD Sender: Remove packet 74659 [13:44:14]ProducePacketName [13:44:14]name=ofd_packets/00074659 [13:44:14]NVStorageDeleteData [13:44:14]OFD Sender: No OFD packet to send [13:44:15]*** Cut start [13:44:15]*** Partial cut [13:44:15]*** CUTSNS_PIN = 1 [13:44:15]*** CUTSNS_PIN = 0 [13:44:15]*** Brake cut motor [13:44:15]Read from MH i2c: 01 [13:44:15]MH_I2C_Read... [13:44:15]*** Stop cut motor [13:44:15]*** Cut end [13:44:15]Read from MH i2c: 01 07 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 07 00 5E 78 00 00 00 00 00 FF 0F EB [13:44:15]process_action close_receipt done [13:44:15]requested_data is exist [13:44:15]produce_requested_data [13:44:15]requested_item fm.sn is exist - process it [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 11 00 00 [13:44:15]Write to MH i2c: E2 08 00 5F 78 80 11 00 00 00 00 00 00 51 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 5F 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A9 [13:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:44:15]wFMCommunicate OK [13:44:15]requested_item fd.num is exist - process it [13:44:15]SAM_PROTO_GetFieldsCounters [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 13 00 00 [13:44:15]Write to MH i2c: E2 08 00 60 78 80 13 00 00 00 00 00 00 54 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 62 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 62 00 60 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A3 23 01 00 0E 04 04 00 FE 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 76 [13:44:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A3 23 01 00 0E 04 04 00 FE 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 [13:44:15]wFMCommunicate OK [13:44:15]SAM_PROTO_GetFieldsCounters done [13:44:15]requested_item shift.num is exist - process it [13:44:15]requested_item shift.opened is exist - process it [13:44:15]req_shift_opened [13:44:15]FM_GetShiftState [13:44:15]SAM_PROTO_GetShiftState [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 13 01 00 [13:44:15]Write to MH i2c: E2 08 00 61 78 80 13 01 00 00 00 00 00 56 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 61 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 80 [13:44:16]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:44:16]wFMCommunicate OK [13:44:16]SAM_PROTO_GetShiftState done [13:44:16]FM_GetShiftState done [13:44:16]req_shift_opened done [13:44:16]requested_item shift.open_date is exist - process it [13:44:16]req_shift_open_date [13:44:16]req_shift_open_date done [13:44:16]produce_requested_data done [13:44:16]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74659,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:44:16]process_action_free close_receipt [13:44:16]json_value_free [13:44:16]json_value_free done [13:44:16]process_json_proto returns [13:44:16]Send response to host [13:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74659,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:44:16]free response buf [13:44:16]execute_script done [13:44:16]execute_script returns [13:44:16]free content buf [13:44:16]Sock 8.Close socket [13:44:16]Sock 8.Thread stoped [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:46:58]recv_with_timeout no data received [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:31]accept exits with 9 [13:49:31]New connection [13:49:31]New thread 3066805604 created [13:49:31]Thread 3066662244 joined [13:49:31]Waiting for new connection... [13:49:31] Sock 9.Parse request [13:49:31]Sock 9.Check first char [13:49:31]Sock 9.First char is OK [13:49:31]request: POST /json_proto HTTP/1.0 [13:49:31]Method: POST [13:49:31]URL: /json_proto [13:49:31]Method is POST - this is cgi request [13:49:31]url: /json_proto [13:49:31]query_string will be loaded in cgi processing [13:49:31]execute_cgi json_proto POST (null) [13:49:31]execute_cgi path=json_proto method=POST [13:49:31]POST find Content-Length [13:49:31]Host: 172.17.39.131:8080 [13:49:31]Content-Length: 674 [13:49:31]Content-Type: application/json [13:49:31] [13:49:31]POST finish read [13:49:31]Found Content-Length = 674 [13:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:49:31]execute_script... [13:49: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)190625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:49:31]POST & json_proto [13:49:31]process_json_proto [13:49:31]json parsed OK: [13:49:31]protocol is kg_v1.0 [13:49:31]action value=close_receipt [13:49:31]process_action close_receipt [13:49:31]cmd_close_receipt [13:49:31]MH_GetDate [13:49:31]Write to MH i2c: F0 00 00 62 78 C9 [13:49:31]Write i2c OK [13:49:31]MH_I2C_Read... [13:49:31]Read from MH i2c: F0 [13:49:31]MH_I2C_Read... [13:49:31]Read from MH i2c: F0 09 00 [13:49:31]MH_I2C_Read... [13:49:31]Read from MH i2c: F0 09 00 62 78 00 76 50 1A 67 86 57 24 65 7F [13:49:31]GetLastDocTimeStamp 1729777463 [13:49:31]current date 1729777782 [13:49:31]FM_GetShiftState [13:49:31]SAM_PROTO_GetShiftState [13:49:31]wFMCommunicate request_size=4 [13:49:31]MH_SAM_APDU [13:49:31]CAPDU: 80 13 01 00 [13:49:31]Write to MH i2c: E2 08 00 63 78 80 13 01 00 00 00 00 00 58 [13:49:31]Write i2c OK [13:49:31]MH_I2C_Read... [13:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:31]Read from MH i2c: E2 [13:49:31]MH_I2C_Read... [13:49:31]Read from MH i2c: E2 0E 00 [13:49:31]MH_I2C_Read... [13:49:31]Read from MH i2c: E2 0E 00 63 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 82 [13:49:31]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:49:31]wFMCommunicate OK [13:49:31]SAM_PROTO_GetShiftState done [13:49:31]FM_GetShiftState done [13:49:31]opened in 1729729801 [13:49:31]opened+sec_in_day 1729816201 [13:49:31]quantity*price = 50063 [13:49:31]sum+1 = 50064 [13:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 104 24.10.2024 13:49 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74660 ФПД: 157572169682358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134942&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74660&fm=157572169682358&tin=02508201610067®Number=0000000000091691&sum=50000 [13:49:32]StoreToDocumentArchive [13:49:32]shift 510 fd 74660 [13:49:32]save to /storage/0510/doc_00074660 [13:49:32]save last doc name /storage/0510/doc_00074660 to /storage/kkm_last_doc_name [13:49:32]save OK [13:49:32]Clear old archive folders... [13:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:49:32]tlvbuf is 00AF0F40 [13:49:32]SAM_PROTO_ClearQueue [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 09 00 00 [13:49:32]Write to MH i2c: E2 08 00 70 78 80 09 00 00 00 00 00 00 5A [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 70 78 00 90 00 5C [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]SAM_PROTO_ClearQueue done [13:49:32]KKMCreateOFDPacket [13:49:32]OFDProtocolAddRootSTLVToBuf [13:49:32]FM_MakeSignedData [13:49:32]FM_MakeSignedData [13:49:32]SAM_PROTO_SignData [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 01 02 [13:49:32]Write to MH i2c: E2 08 00 71 78 80 0D 01 02 00 00 00 00 62 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 71 78 00 90 00 5D [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]wFMCommunicate request_size=255 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 68 00 00 00 F4 03 04 00 76 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 23 01 00 35 04 06 00 8F 4F A1 33 [13:49:32]Write to MH i2c: E2 02 01 72 78 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 68 00 00 00 F4 03 04 00 76 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 23 01 00 35 04 06 00 8F 4F A1 33 00 00 9C [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 72 78 00 90 00 5E [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]wFMCommunicate request_size=7 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 02 02 02 4D B6 [13:49:32]Write to MH i2c: E2 0A 00 73 78 80 0D 02 02 02 00 4D B6 00 00 6C [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 73 78 00 90 00 5F [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 03 02 [13:49:32]Write to MH i2c: E2 08 00 74 78 80 0D 03 02 00 00 00 00 67 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 0B 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 0B 00 74 78 00 AB B6 E5 BB 1B 00 05 3D 90 00 C6 [13:49:32]RAPDU: AB B6 E5 BB 1B 00 05 3D 90 00 [13:49:32]wFMCommunicate OK [13:49:32]SAM_PROTO_SignData done [13:49:32]FM_MakeSignedData done [13:49:32]CreateOFDProtocolMessage [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 11 00 00 [13:49:32]Write to MH i2c: E2 08 00 75 78 80 11 00 00 00 00 00 00 67 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 17 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 17 00 75 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BF [13:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:49:32]wFMCommunicate OK [13:49:32]CreateOFDProtocolMessage done [13:49:32]OFDSenderStorePacket 74660 [13:49:32]StoreOFDPacket docnum=74660 [13:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0D C8 04 01 79 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 68 00 00 00 F4 03 04 00 76 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 23 01 00 35 04 06 00 8F 4F A1 33 4D B6 AB B6 E5 BB 1B 00 05 3D [13:49:32]CheckFolder [13:49:32]dirname=/storage/ofd_packets [13:49:32]CheckFolder done [13:49:32]ProducePacketName [13:49:32]name=ofd_packets/00074660 [13:49:32]NVStorageSaveData ofd_packets/00074660 [13:49:32]File name is /storage/ofd_packets/00074660 [13:49:32]Write 298 bytes [13:49:32]NVStorageSaveData done [13:49:32]OFDSenderStorePacket done [13:49:32]KKMCreateOFDPacket done [13:49:32]NVStorageSaveData kkm_last_timestamp [13:49:32]File name is /storage/kkm_last_timestamp [13:49:32]Write 4 bytes [13:49:32]NVStorageSaveData done [13:49:32]ExternCall_PrintAddStr [13:49:32]wPrintStart [13:49:32]Write to MH i2c: 01 00 00 76 78 EE [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: 01 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: 01 07 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: 01 07 00 76 78 00 00 00 00 00 FF 0F 03 [13:49:32]RasterBufferAndPrint [13:49:32]line Счет N : (1)190625 [13:49:32]line ИНН: 02508201610067 [13:49:32]line Контрольно-Кассовый Чек [13:49:32]line ПРОДАЖА [13:49:32]line ТРК (МРК, ГНК) : 41 [13:49:32]line Товар: 2710194210 [13:49:32]line ДТ-К-4 [13:49:32]line 6.570 * 76.20 [13:49:32]line = 500.63 [13:49:32]line НДС 12% НСП 1% [13:49:32]line > о реализуемом товаре [13:49:32]line ОКРУГЛЕНИЕ: -0.63 [13:49:32]line ИТОГО: 500.00 [13:49:32]line Внесено: 500.00 [13:49:32]line СДАЧА: 0.00 [13:49:32]line НСП 1% : 4.43 [13:49:32]line НДС 12% : 53.16 [13:49:32]line Наличными: 500.00 [13:49:32]line Безнал.: 0.00 [13:49:32]line Место: АЗС № 142 "Партнер Нефть" [13:49:32]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:49:32]line СНО: Общий режим [13:49:32]line Чек 104 24.10.2024 13:49 [13:49:32]line Смена: 510 ФФД: 1.0 [13:49:32]line ЗНМ: 0300000089 [13:49:32]line РНМ: 0000000000091691 [13:49:32]line Версия ККМ: 001 [13:49:32]line ФМ: 0000000000871795 [13:49:32]line ФД: 74660 [13:49:32]line ФПД: 157572169682358 [13:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134942&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74660&fm=157572169682358&tin=02508201610067®Number=0000000000091691&sum=50000 [13:49:33]OFD Sender: Processing packet 74660 [packets to send 13, broken 12] [13:49:33]ProducePacketName [13:49:33]name=ofd_packets/00074660 [13:49:33]OFD Sender: To server: pG, [13:49:33]CommunicateWithHost lk.salyk.kg:30040 [13:49:33]ConnectInit lk.salyk.kg [13:49:33]written 0, free lines is 4095 [13:49:33]Connected sock=10 [13:49:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0D C8 04 01 79 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 68 00 00 00 F4 03 04 00 76 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 23 01 00 35 04 06 00 8F 4F A1 33 4D B6 AB B6 E5 BB 1B 00 05 3D [13:49:33]Write to MH i2c: 01 00 00 A1 78 19 [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: 01 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: 01 07 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: 01 07 00 A1 78 00 00 00 00 00 9E 0C CA [13:49:33]RasterBufferAndPrint [13:49:33]line [13:49:33]line [13:49:33]line [13:49:33]line [13:49:33]line [13:49:33]written 0, free lines is 3238 [13:49:33]MH_Cut [13:49:33]Write to MH i2c: D1 01 00 A8 78 01 F2 [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: D1 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: D1 01 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: D1 01 00 A8 78 00 F1 [13:49:33]Write to MH i2c: 01 00 00 A9 78 21 [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 57 16 47 00 4A 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 31 37 39 35 10 04 04 00 A4 23 01 00 F4 03 04 00 F8 F7 19 67 B6 04 01 00 00 FE 90 2C 37 2D 5A 49 2F [13:49:33]CommunicateWithHost err = 0 [13:49:33]CheckOFDResponse [13:49:33]1017 (14) - 77093643461234 [13:49:33]1041 (16) - 0000000000871795 [13:49:33]1040 (4) - 74660 [13:49:33]1012 (4) - 24.10.2024 07:32 [13:49:33]1206 (1) - 0 [13:49:33]OFD Sender: Remove packet 74660 [13:49:33]ProducePacketName [13:49:33]name=ofd_packets/00074660 [13:49:33]NVStorageDeleteData [13:49:34]OFD Sender: No OFD packet to send [13:49:34]*** Cut start [13:49:34]*** Partial cut [13:49:34]*** CUTSNS_PIN = 1 [13:49:34]*** CUTSNS_PIN = 0 [13:49:34]*** Brake cut motor [13:49:35]Read from MH i2c: 01 [13:49:35]MH_I2C_Read... [13:49:35]*** Stop cut motor [13:49:35]*** Cut end [13:49:35]Read from MH i2c: 01 07 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: 01 07 00 A9 78 00 00 00 00 00 FF 0F 36 [13:49:35]process_action close_receipt done [13:49:35]requested_data is exist [13:49:35]produce_requested_data [13:49:35]requested_item fm.sn is exist - process it [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 11 00 00 [13:49:35]Write to MH i2c: E2 08 00 AA 78 80 11 00 00 00 00 00 00 9C [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 17 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 17 00 AA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F4 [13:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:49:35]wFMCommunicate OK [13:49:35]requested_item fd.num is exist - process it [13:49:35]SAM_PROTO_GetFieldsCounters [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 13 00 00 [13:49:35]Write to MH i2c: E2 08 00 AB 78 80 13 00 00 00 00 00 00 9F [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 62 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 62 00 AB 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A4 23 01 00 0E 04 04 00 FE 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 C5 [13:49:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A4 23 01 00 0E 04 04 00 FE 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 [13:49:35]wFMCommunicate OK [13:49:35]SAM_PROTO_GetFieldsCounters done [13:49:35]requested_item shift.num is exist - process it [13:49:35]requested_item shift.opened is exist - process it [13:49:35]req_shift_opened [13:49:35]FM_GetShiftState [13:49:35]SAM_PROTO_GetShiftState [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 13 01 00 [13:49:35]Write to MH i2c: E2 08 00 AC 78 80 13 01 00 00 00 00 00 A1 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0E 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0E 00 AC 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CB [13:49:35]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:49:35]wFMCommunicate OK [13:49:35]SAM_PROTO_GetShiftState done [13:49:35]FM_GetShiftState done [13:49:35]req_shift_opened done [13:49:35]requested_item shift.open_date is exist - process it [13:49:35]req_shift_open_date [13:49:35]req_shift_open_date done [13:49:35]produce_requested_data done [13:49:35]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74660,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:49:35]process_action_free close_receipt [13:49:35]json_value_free [13:49:35]json_value_free done [13:49:35]process_json_proto returns [13:49:35]Send response to host [13:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74660,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:49:35]free response buf [13:49:35]execute_script done [13:49:35]execute_script returns [13:49:35]free content buf [13:49:35]Sock 9.Close socket [13:49:35]Sock 9.Thread stoped [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:00]accept exits with 8 [13:50:00]New connection [13:50:00]New thread 3066662244 created [13:50:00]Thread 3066805604 joined [13:50:00]Waiting for new connection... [13:50:00] Sock 8.Parse request [13:50:00]Sock 8.Check first char [13:50:00]Sock 8.First char is OK [13:50:00]request: POST /json_proto HTTP/1.0 [13:50:00]Method: POST [13:50:00]URL: /json_proto [13:50:00]Method is POST - this is cgi request [13:50:00]url: /json_proto [13:50:00]query_string will be loaded in cgi processing [13:50:00]execute_cgi json_proto POST (null) [13:50:00]execute_cgi path=json_proto method=POST [13:50:00]POST find Content-Length [13:50:00]Host: 172.17.39.131:8080 [13:50:00]Content-Length: 682 [13:50:00]Content-Type: application/json [13:50:00] [13:50:00]POST finish read [13:50:00]Found Content-Length = 682 [13:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:00]execute_script... [13:50: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)190626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:00]POST & json_proto [13:50:00]process_json_proto [13:50:00]json parsed OK: [13:50:00]protocol is kg_v1.0 [13:50:00]action value=close_receipt [13:50:00]process_action close_receipt [13:50:00]cmd_close_receipt [13:50:00]MH_GetDate [13:50:00]Write to MH i2c: F0 00 00 AD 78 14 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: F0 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: F0 09 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: F0 09 00 AD 78 00 93 50 1A 67 86 57 24 65 E7 [13:50:00]GetLastDocTimeStamp 1729777782 [13:50:00]current date 1729777811 [13:50:00]FM_GetShiftState [13:50:00]SAM_PROTO_GetShiftState [13:50:00]wFMCommunicate request_size=4 [13:50:00]MH_SAM_APDU [13:50:00]CAPDU: 80 13 01 00 [13:50:00]Write to MH i2c: E2 08 00 AE 78 80 13 01 00 00 00 00 00 A3 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:00]Read from MH i2c: E2 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 0E 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 0E 00 AE 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CD [13:50:00]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:50:00]wFMCommunicate OK [13:50:00]SAM_PROTO_GetShiftState done [13:50:00]FM_GetShiftState done [13:50:00]opened in 1729729801 [13:50:00]opened+sec_in_day 1729816201 [13:50:00]quantity*price = 100015 [13:50:00]sum+1 = 100017 [13:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 105 24.10.2024 13:50 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74661 ФПД: 62453747809209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135011&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74661&fm=62453747809209&tin=02508201610067®Number=0000000000091691&sum=100000 [13:50:01]StoreToDocumentArchive [13:50:01]shift 510 fd 74661 [13:50:01]save to /storage/0510/doc_00074661 [13:50:01]save last doc name /storage/0510/doc_00074661 to /storage/kkm_last_doc_name [13:50:01]save OK [13:50:01]Clear old archive folders... [13:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:01]tlvbuf is 00A9DAF0 [13:50:01]SAM_PROTO_ClearQueue [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 09 00 00 [13:50:01]Write to MH i2c: E2 08 00 BB 78 80 09 00 00 00 00 00 00 A5 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 BB 78 00 90 00 A7 [13:50:01]RAPDU: 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_ClearQueue done [13:50:01]KKMCreateOFDPacket [13:50:01]OFDProtocolAddRootSTLVToBuf [13:50:01]FM_MakeSignedData [13:50:01]FM_MakeSignedData [13:50:01]SAM_PROTO_SignData [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 0D 01 02 [13:50:01]Write to MH i2c: E2 08 00 BC 78 80 0D 01 02 00 00 00 00 AD [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 BC 78 00 90 00 A8 [13:50:01]RAPDU: 90 00 [13:50:01]wFMCommunicate OK [13:50:01]wFMCommunicate request_size=255 [13:50:01]MH_SAM_APDU [13:50: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 93 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 23 01 00 35 04 06 00 38 [13:50:01]Write to MH i2c: E2 02 01 BD 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 93 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 23 01 00 35 04 06 00 38 00 00 09 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 BD 78 00 90 00 A9 [13:50:01]RAPDU: 90 00 [13:50:01]wFMCommunicate OK [13:50:01]wFMCommunicate request_size=10 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 0D 02 02 05 CD 25 73 FB B9 [13:50:01]Write to MH i2c: E2 0D 00 BE 78 80 0D 02 02 05 00 CD 25 73 FB B9 00 00 D3 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 03 00 BE 78 00 90 00 AA [13:50:01]RAPDU: 90 00 [13:50:01]wFMCommunicate OK [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 0D 03 02 [13:50:01]Write to MH i2c: E2 08 00 BF 78 80 0D 03 02 00 00 00 00 B2 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0B 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0B 00 BF 78 00 8B D7 D9 90 31 C3 3A 19 90 00 C5 [13:50:01]RAPDU: 8B D7 D9 90 31 C3 3A 19 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_SignData done [13:50:01]FM_MakeSignedData done [13:50:01]CreateOFDProtocolMessage [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 11 00 00 [13:50:01]Write to MH i2c: E2 08 00 C0 78 80 11 00 00 00 00 00 00 B2 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 C0 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0A [13:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:50:01]wFMCommunicate OK [13:50:01]CreateOFDProtocolMessage done [13:50:01]OFDSenderStorePacket 74661 [13:50:01]StoreOFDPacket docnum=74661 [13:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6D 49 07 01 3D F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 93 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 23 01 00 35 04 06 00 38 CD 25 73 FB B9 8B D7 D9 90 31 C3 3A 19 [13:50:01]CheckFolder [13:50:01]dirname=/storage/ofd_packets [13:50:01]CheckFolder done [13:50:01]ProducePacketName [13:50:01]name=ofd_packets/00074661 [13:50:01]NVStorageSaveData ofd_packets/00074661 [13:50:01]File name is /storage/ofd_packets/00074661 [13:50:01]Write 301 bytes [13:50:01]NVStorageSaveData done [13:50:01]OFDSenderStorePacket done [13:50:01]KKMCreateOFDPacket done [13:50:01]NVStorageSaveData kkm_last_timestamp [13:50:01]File name is /storage/kkm_last_timestamp [13:50:01]Write 4 bytes [13:50:01]NVStorageSaveData done [13:50:01]ExternCall_PrintAddStr [13:50:01]wPrintStart [13:50:01]Write to MH i2c: 01 00 00 C1 78 39 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: 01 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: 01 07 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: 01 07 00 C1 78 00 00 00 00 00 FF 0F 4E [13:50:01]RasterBufferAndPrint [13:50:01]line Счет N : (1)190626 [13:50:01]line ИНН: 02508201610067 [13:50:01]line Контрольно-Кассовый Чек [13:50:01]line ПРОДАЖА [13:50:01]line ТРК (МРК, ГНК) : 21 [13:50:01]line Товар: 2710124130 [13:50:01]line Аи-92-К-5 [13:50:01]line 14.950 * 66.90 [13:50:01]line = 1000.16 [13:50:01]line НДС 12% НСП 1% [13:50:01]line > о реализуемом товаре [13:50:01]line ОКРУГЛЕНИЕ: -0.16 [13:50:01]line ИТОГО: 1000.00 [13:50:01]line Внесено: 1000.00 [13:50:01]line СДАЧА: 0.00 [13:50:01]line НСП 1% : 8.85 [13:50:01]line НДС 12% : 106.21 [13:50:01]line Наличными: 1000.00 [13:50:01]line Безнал.: 0.00 [13:50:01]line Место: АЗС № 142 "Партнер Нефть" [13:50:01]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:50:01]line СНО: Общий режим [13:50:01]line Чек 105 24.10.2024 13:50 [13:50:01]line Смена: 510 ФФД: 1.0 [13:50:01]line ЗНМ: 0300000089 [13:50:01]line РНМ: 0000000000091691 [13:50:01]line Версия ККМ: 001 [13:50:01]line ФМ: 0000000000871795 [13:50:01]line ФД: 74661 [13:50:01]line ФПД: 62453747809209 [13:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135011&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74661&fm=62453747809209&tin=02508201610067®Number=0000000000091691&sum=100000 [13:50:02]written 0, free lines is 4095 [13:50:02]OFD Sender: Processing packet 74661 [packets to send 13, broken 12] [13:50:02]ProducePacketName [13:50:02]name=ofd_packets/00074661 [13:50:02]OFD Sender: To server: pG, [13:50:02]CommunicateWithHost lk.salyk.kg:30040 [13:50:02]ConnectInit lk.salyk.kg [13:50:02]Connected sock=10 [13:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6D 49 07 01 3D F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 93 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 23 01 00 35 04 06 00 38 CD 25 73 FB B9 8B D7 D9 90 31 C3 3A 19 [13:50:02]Write to MH i2c: 01 00 00 EC 78 64 [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: 01 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: 01 07 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: 01 07 00 EC 78 00 00 00 00 00 AA 0C 21 [13:50:02]RasterBufferAndPrint [13:50:02]line [13:50:02]line [13:50:02]line [13:50:02]line [13:50:02]line [13:50:02]written 0, free lines is 3248 [13:50:02]MH_Cut [13:50:02]Write to MH i2c: D1 01 00 F3 78 01 3D [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: D1 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: D1 01 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: D1 01 00 F3 78 00 3C [13:50:02]Write to MH i2c: 01 00 00 F4 78 6C [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DA B6 47 00 F9 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 31 37 39 35 10 04 04 00 A5 23 01 00 F4 03 04 00 15 F8 19 67 B6 04 01 00 00 34 DE 68 B5 FB C5 37 E5 [13:50:02]CommunicateWithHost err = 0 [13:50:02]CheckOFDResponse [13:50:02]1017 (14) - 77093643461234 [13:50:02]1041 (16) - 0000000000871795 [13:50:02]1040 (4) - 74661 [13:50:02]1012 (4) - 24.10.2024 07:32 [13:50:02]1206 (1) - 0 [13:50:02]OFD Sender: Remove packet 74661 [13:50:02]ProducePacketName [13:50:02]name=ofd_packets/00074661 [13:50:02]NVStorageDeleteData [13:50:03]OFD Sender: No OFD packet to send [13:50:03]*** Cut start [13:50:03]*** Partial cut [13:50:03]*** CUTSNS_PIN = 1 [13:50:03]*** CUTSNS_PIN = 0 [13:50:03]*** Brake cut motor [13:50:04]Read from MH i2c: 01 [13:50:04]MH_I2C_Read... [13:50:04]*** Stop cut motor [13:50:04]*** Cut end [13:50:04]Read from MH i2c: 01 07 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: 01 07 00 F4 78 00 00 00 00 00 FF 0F 81 [13:50:04]process_action close_receipt done [13:50:04]requested_data is exist [13:50:04]produce_requested_data [13:50:04]requested_item fm.sn is exist - process it [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 11 00 00 [13:50:04]Write to MH i2c: E2 08 00 F5 78 80 11 00 00 00 00 00 00 E7 [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 17 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 17 00 F5 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3F [13:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:50:04]wFMCommunicate OK [13:50:04]requested_item fd.num is exist - process it [13:50:04]SAM_PROTO_GetFieldsCounters [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 13 00 00 [13:50:04]Write to MH i2c: E2 08 00 F6 78 80 13 00 00 00 00 00 00 EA [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 62 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 62 00 F6 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A5 23 01 00 0E 04 04 00 FE 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 14 [13:50:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A5 23 01 00 0E 04 04 00 FE 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 [13:50:04]wFMCommunicate OK [13:50:04]SAM_PROTO_GetFieldsCounters done [13:50:04]requested_item shift.num is exist - process it [13:50:04]requested_item shift.opened is exist - process it [13:50:04]req_shift_opened [13:50:04]FM_GetShiftState [13:50:04]SAM_PROTO_GetShiftState [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 13 01 00 [13:50:04]Write to MH i2c: E2 08 00 F7 78 80 13 01 00 00 00 00 00 EC [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 0E 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 0E 00 F7 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 16 [13:50:04]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:50:04]wFMCommunicate OK [13:50:04]SAM_PROTO_GetShiftState done [13:50:04]FM_GetShiftState done [13:50:04]req_shift_opened done [13:50:04]requested_item shift.open_date is exist - process it [13:50:04]req_shift_open_date [13:50:04]req_shift_open_date done [13:50:04]produce_requested_data done [13:50:04]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74661,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:50:04]process_action_free close_receipt [13:50:04]json_value_free [13:50:04]json_value_free done [13:50:04]process_json_proto returns [13:50:04]Send response to host [13:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74661,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:50:04]free response buf [13:50:04]execute_script done [13:50:04]execute_script returns [13:50:04]free content buf [13:50:04]Sock 8.Close socket [13:50:04]Sock 8.Thread stoped [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:19]accept exits with 9 [13:50:19]New connection [13:50:19]New thread 3066805604 created [13:50:19]Thread 3066662244 joined [13:50:19]Waiting for new connection... [13:50:19] Sock 9.Parse request [13:50:19]Sock 9.Check first char [13:50:19]Sock 9.First char is OK [13:50:19]request: POST /json_proto HTTP/1.0 [13:50:19]Method: POST [13:50:19]URL: /json_proto [13:50:19]Method is POST - this is cgi request [13:50:19]url: /json_proto [13:50:19]query_string will be loaded in cgi processing [13:50:19]execute_cgi json_proto POST (null) [13:50:19]execute_cgi path=json_proto method=POST [13:50:19]POST find Content-Length [13:50:19]Host: 172.17.39.131:8080 [13:50:19]Content-Length: 674 [13:50:19]Content-Type: application/json [13:50:19] [13:50:19]POST finish read [13:50:19]Found Content-Length = 674 [13:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:50:19]execute_script... [13:50:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:50:19]POST & json_proto [13:50:19]process_json_proto [13:50:19]json parsed OK: [13:50:19]protocol is kg_v1.0 [13:50:19]action value=close_receipt [13:50:19]process_action close_receipt [13:50:19]cmd_close_receipt [13:50:19]MH_GetDate [13:50:19]Write to MH i2c: F0 00 00 F8 78 5F [13:50:19]Write i2c OK [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: F0 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: F0 09 00 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: F0 09 00 F8 78 00 A7 50 1A 67 86 57 24 65 46 [13:50:19]GetLastDocTimeStamp 1729777811 [13:50:19]current date 1729777831 [13:50:19]FM_GetShiftState [13:50:19]SAM_PROTO_GetShiftState [13:50:19]wFMCommunicate request_size=4 [13:50:19]MH_SAM_APDU [13:50:19]CAPDU: 80 13 01 00 [13:50:19]Write to MH i2c: E2 08 00 F9 78 80 13 01 00 00 00 00 00 EE [13:50:19]Write i2c OK [13:50:19]MH_I2C_Read... [13:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:19]Read from MH i2c: E2 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: E2 0E 00 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: E2 0E 00 F9 78 00 09 00 01 09 95 19 67 00 00 00 00 90 00 18 [13:50:19]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:50:19]wFMCommunicate OK [13:50:19]SAM_PROTO_GetShiftState done [13:50:19]FM_GetShiftState done [13:50:19]opened in 1729729801 [13:50:19]opened+sec_in_day 1729816201 [13:50:19]quantity*price = 30022 [13:50:19]sum+1 = 30024 [13:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 106 24.10.2024 13:50 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74662 ФПД: 91980102231192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135031&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74662&fm=91980102231192&tin=02508201610067®Number=0000000000091691&sum=30000 [13:50:20]StoreToDocumentArchive [13:50:20]shift 510 fd 74662 [13:50:20]save to /storage/0510/doc_00074662 [13:50:20]save last doc name /storage/0510/doc_00074662 to /storage/kkm_last_doc_name [13:50:20]save OK [13:50:20]Clear old archive folders... [13:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:50:20]tlvbuf is 008FD6E0 [13:50:20]SAM_PROTO_ClearQueue [13:50:20]wFMCommunicate request_size=4 [13:50:20]MH_SAM_APDU [13:50:20]CAPDU: 80 09 00 00 [13:50:20]Write to MH i2c: E2 08 00 06 79 80 09 00 00 00 00 00 00 F1 [13:50:20]Write i2c OK [13:50:20]MH_I2C_Read... [13:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:20]Read from MH i2c: E2 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 06 79 00 90 00 F3 [13:50:20]RAPDU: 90 00 [13:50:20]wFMCommunicate OK [13:50:20]SAM_PROTO_ClearQueue done [13:50:20]KKMCreateOFDPacket [13:50:20]OFDProtocolAddRootSTLVToBuf [13:50:20]FM_MakeSignedData [13:50:20]FM_MakeSignedData [13:50:20]SAM_PROTO_SignData [13:50:20]wFMCommunicate request_size=4 [13:50:20]MH_SAM_APDU [13:50:20]CAPDU: 80 0D 01 02 [13:50:20]Write to MH i2c: E2 08 00 07 79 80 0D 01 02 00 00 00 00 F9 [13:50:20]Write i2c OK [13:50:20]MH_I2C_Read... [13:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:20]Read from MH i2c: E2 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 07 79 00 90 00 F4 [13:50:20]RAPDU: 90 00 [13:50:20]wFMCommunicate OK [13:50:20]wFMCommunicate request_size=255 [13:50:20]MH_SAM_APDU [13:50: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 6A 00 00 00 F4 03 04 00 A7 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 23 01 00 35 04 06 00 53 A7 C9 51 [13:50:20]Write to MH i2c: E2 02 01 08 79 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 6A 00 00 00 F4 03 04 00 A7 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 23 01 00 35 04 06 00 53 A7 C9 51 00 00 FF [13:50:20]Write i2c OK [13:50:20]MH_I2C_Read... [13:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:21]Read from MH i2c: E2 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 03 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 03 00 08 79 00 90 00 F5 [13:50:21]RAPDU: 90 00 [13:50:21]wFMCommunicate OK [13:50:21]wFMCommunicate request_size=7 [13:50:21]MH_SAM_APDU [13:50:21]CAPDU: 80 0D 02 02 02 E4 98 [13:50:21]Write to MH i2c: E2 0A 00 09 79 80 0D 02 02 02 00 E4 98 00 00 7C [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:21]Read from MH i2c: E2 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 03 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 03 00 09 79 00 90 00 F6 [13:50:21]RAPDU: 90 00 [13:50:21]wFMCommunicate OK [13:50:21]wFMCommunicate request_size=4 [13:50:21]MH_SAM_APDU [13:50:21]CAPDU: 80 0D 03 02 [13:50:21]Write to MH i2c: E2 08 00 0A 79 80 0D 03 02 00 00 00 00 FE [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:21]Read from MH i2c: E2 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 0B 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 0B 00 0A 79 00 0B F1 4A 49 22 C0 03 1F 90 00 92 [13:50:21]RAPDU: 0B F1 4A 49 22 C0 03 1F 90 00 [13:50:21]wFMCommunicate OK [13:50:21]SAM_PROTO_SignData done [13:50:21]FM_MakeSignedData done [13:50:21]CreateOFDProtocolMessage [13:50:21]wFMCommunicate request_size=4 [13:50:21]MH_SAM_APDU [13:50:21]CAPDU: 80 11 00 00 [13:50:21]Write to MH i2c: E2 08 00 0B 79 80 11 00 00 00 00 00 00 FE [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:21]Read from MH i2c: E2 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 17 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 17 00 0B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 56 [13:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:50:21]wFMCommunicate OK [13:50:21]CreateOFDProtocolMessage done [13:50:21]OFDSenderStorePacket 74662 [13:50:21]StoreOFDPacket docnum=74662 [13:50:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 6B AD 04 01 3A 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 6A 00 00 00 F4 03 04 00 A7 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 23 01 00 35 04 06 00 53 A7 C9 51 E4 98 0B F1 4A 49 22 C0 03 1F [13:50:21]CheckFolder [13:50:21]dirname=/storage/ofd_packets [13:50:21]CheckFolder done [13:50:21]ProducePacketName [13:50:21]name=ofd_packets/00074662 [13:50:21]NVStorageSaveData ofd_packets/00074662 [13:50:21]File name is /storage/ofd_packets/00074662 [13:50:21]Write 298 bytes [13:50:21]NVStorageSaveData done [13:50:21]OFDSenderStorePacket done [13:50:21]KKMCreateOFDPacket done [13:50:21]NVStorageSaveData kkm_last_timestamp [13:50:21]File name is /storage/kkm_last_timestamp [13:50:21]Write 4 bytes [13:50:21]NVStorageSaveData done [13:50:21]ExternCall_PrintAddStr [13:50:21]wPrintStart [13:50:21]Write to MH i2c: 01 00 00 0C 79 85 [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: 01 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: 01 07 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: 01 07 00 0C 79 00 00 00 00 00 FF 0F 9A [13:50:21]RasterBufferAndPrint [13:50:21]line Счет N : (1)190627 [13:50:21]line ИНН: 02508201610067 [13:50:21]line Контрольно-Кассовый Чек [13:50:21]line ПРОДАЖА [13:50:21]line ТРК (МРК, ГНК) : 41 [13:50:21]line Товар: 2710194210 [13:50:21]line ДТ-К-4 [13:50:21]line 3.940 * 76.20 [13:50:21]line = 300.23 [13:50:21]line НДС 12% НСП 1% [13:50:21]line > о реализуемом товаре [13:50:21]line ОКРУГЛЕНИЕ: -0.23 [13:50:21]line ИТОГО: 300.00 [13:50:21]line Внесено: 300.00 [13:50:21]line СДАЧА: 0.00 [13:50:21]line НСП 1% : 2.66 [13:50:21]line НДС 12% : 31.88 [13:50:21]line Наличными: 300.00 [13:50:21]line Безнал.: 0.00 [13:50:21]line Место: АЗС № 142 "Партнер Нефть" [13:50:21]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:50:21]line СНО: Общий режим [13:50:21]line Чек 106 24.10.2024 13:50 [13:50:21]line Смена: 510 ФФД: 1.0 [13:50:21]line ЗНМ: 0300000089 [13:50:21]line РНМ: 0000000000091691 [13:50:21]line Версия ККМ: 001 [13:50:21]line ФМ: 0000000000871795 [13:50:21]line ФД: 74662 [13:50:21]line ФПД: 91980102231192 [13:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135031&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74662&fm=91980102231192&tin=02508201610067®Number=0000000000091691&sum=30000 [13:50:21]OFD Sender: Processing packet 74662 [packets to send 13, broken 12] [13:50:21]ProducePacketName [13:50:21]name=ofd_packets/00074662 [13:50:21]OFD Sender: To server: pG, [13:50:21]CommunicateWithHost lk.salyk.kg:30040 [13:50:21]ConnectInit lk.salyk.kg [13:50:21]written 0, free lines is 4095 [13:50:22]Connected sock=10 [13:50:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 6B AD 04 01 3A 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 6A 00 00 00 F4 03 04 00 A7 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 23 01 00 35 04 06 00 53 A7 C9 51 E4 98 0B F1 4A 49 22 C0 03 1F [13:50:22]Write to MH i2c: 01 00 00 37 79 B0 [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: 01 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: 01 07 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: 01 07 00 37 79 00 00 00 00 00 AA 0C 6D [13:50:22]RasterBufferAndPrint [13:50:22]line [13:50:22]line [13:50:22]line [13:50:22]line [13:50:22]line [13:50:22]written 0, free lines is 3248 [13:50:22]MH_Cut [13:50:22]Write to MH i2c: D1 01 00 3E 79 01 89 [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: D1 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: D1 01 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: D1 01 00 3E 79 00 88 [13:50:22]Write to MH i2c: 01 00 00 3F 79 B8 [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 87 1B 47 00 8E 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 31 37 39 35 10 04 04 00 A6 23 01 00 F4 03 04 00 29 F8 19 67 B6 04 01 00 00 44 D6 A5 01 49 5B E5 36 [13:50:22]CommunicateWithHost err = 0 [13:50:22]CheckOFDResponse [13:50:22]1017 (14) - 77093643461234 [13:50:22]1041 (16) - 0000000000871795 [13:50:22]1040 (4) - 74662 [13:50:22]1012 (4) - 24.10.2024 07:32 [13:50:22]1206 (1) - 0 [13:50:22]OFD Sender: Remove packet 74662 [13:50:22]ProducePacketName [13:50:22]name=ofd_packets/00074662 [13:50:22]NVStorageDeleteData [13:50:22]OFD Sender: No OFD packet to send [13:50:23]*** Cut start [13:50:23]*** Partial cut [13:50:23]*** CUTSNS_PIN = 1 [13:50:23]*** CUTSNS_PIN = 0 [13:50:23]*** Brake cut motor [13:50:23]Read from MH i2c: 01 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: 01 07 00 [13:50:23]MH_I2C_Read... [13:50:23]*** Stop cut motor [13:50:23]*** Cut end [13:50:23]Read from MH i2c: 01 07 00 3F 79 00 00 00 00 00 FF 0F CD [13:50:23]process_action close_receipt done [13:50:23]requested_data is exist [13:50:23]produce_requested_data [13:50:23]requested_item fm.sn is exist - process it [13:50:23]wFMCommunicate request_size=4 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 11 00 00 [13:50:23]Write to MH i2c: E2 08 00 40 79 80 11 00 00 00 00 00 00 33 [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 17 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 17 00 40 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8B [13:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:50:23]wFMCommunicate OK [13:50:23]requested_item fd.num is exist - process it [13:50:23]SAM_PROTO_GetFieldsCounters [13:50:23]wFMCommunicate request_size=4 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 13 00 00 [13:50:23]Write to MH i2c: E2 08 00 41 79 80 13 00 00 00 00 00 00 36 [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 62 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 62 00 41 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A6 23 01 00 0E 04 04 00 FE 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 64 [13:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A6 23 01 00 0E 04 04 00 FE 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 [13:50:23]wFMCommunicate OK [13:50:23]SAM_PROTO_GetFieldsCounters done [13:50:23]requested_item shift.num is exist - process it [13:50:23]requested_item shift.opened is exist - process it [13:50:23]req_shift_opened [13:50:23]FM_GetShiftState [13:50:23]SAM_PROTO_GetShiftState [13:50:23]wFMCommunicate request_size=4 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 13 01 00 [13:50:23]Write to MH i2c: E2 08 00 42 79 80 13 01 00 00 00 00 00 38 [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 0E 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 0E 00 42 79 00 09 00 01 09 95 19 67 00 00 00 00 90 00 62 [13:50:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:50:23]wFMCommunicate OK [13:50:23]SAM_PROTO_GetShiftState done [13:50:23]FM_GetShiftState done [13:50:23]req_shift_opened done [13:50:23]requested_item shift.open_date is exist - process it [13:50:23]req_shift_open_date [13:50:23]req_shift_open_date done [13:50:23]produce_requested_data done [13:50:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74662,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:50:23]process_action_free close_receipt [13:50:23]json_value_free [13:50:23]json_value_free done [13:50:23]process_json_proto returns [13:50:23]Send response to host [13:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74662,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:50:23]free response buf [13:50:23]execute_script done [13:50:23]execute_script returns [13:50:23]free content buf [13:50:23]Sock 9.Close socket [13:50:23]Sock 9.Thread stoped [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:42]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:05]accept exits with 8 [13:51:05]New connection [13:51:05]New thread 3066662244 created [13:51:05]Thread 3066805604 joined [13:51:05]Waiting for new connection... [13:51:05] Sock 8.Parse request [13:51:05]Sock 8.Check first char [13:51:05]Sock 8.First char is OK [13:51:05]request: POST /json_proto HTTP/1.0 [13:51:05]Method: POST [13:51:05]URL: /json_proto [13:51:05]Method is POST - this is cgi request [13:51:05]url: /json_proto [13:51:05]query_string will be loaded in cgi processing [13:51:05]execute_cgi json_proto POST (null) [13:51:05]execute_cgi path=json_proto method=POST [13:51:05]POST find Content-Length [13:51:05]Host: 172.17.39.131:8080 [13:51:05]Content-Length: 674 [13:51:05]Content-Type: application/json [13:51:05] [13:51:05]POST finish read [13:51:05]Found Content-Length = 674 [13:51:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:51:05]execute_script... [13:51: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)190628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:51:05]POST & json_proto [13:51:05]process_json_proto [13:51:05]json parsed OK: [13:51:05]protocol is kg_v1.0 [13:51:05]action value=close_receipt [13:51:05]process_action close_receipt [13:51:05]cmd_close_receipt [13:51:05]MH_GetDate [13:51:05]Write to MH i2c: F0 00 00 43 79 AB [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: F0 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: F0 09 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: F0 09 00 43 79 00 D4 50 1A 67 86 57 24 65 BF [13:51:05]GetLastDocTimeStamp 1729777831 [13:51:05]current date 1729777876 [13:51:05]FM_GetShiftState [13:51:05]SAM_PROTO_GetShiftState [13:51:05]wFMCommunicate request_size=4 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 13 01 00 [13:51:05]Write to MH i2c: E2 08 00 44 79 80 13 01 00 00 00 00 00 3A [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:05]Read from MH i2c: E2 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 0E 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 0E 00 44 79 00 09 00 01 09 95 19 67 00 00 00 00 90 00 64 [13:51:05]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:51:05]wFMCommunicate OK [13:51:05]SAM_PROTO_GetShiftState done [13:51:05]FM_GetShiftState done [13:51:05]opened in 1729729801 [13:51:05]opened+sec_in_day 1729816201 [13:51:05]quantity*price = 20040 [13:51:05]sum+1 = 20042 [13:51:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 107 24.10.2024 13:51 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74663 ФПД: 186342248279398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135116&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74663&fm=186342248279398&tin=02508201610067®Number=0000000000091691&sum=20000 [13:51:06]StoreToDocumentArchive [13:51:06]shift 510 fd 74663 [13:51:06]save to /storage/0510/doc_00074663 [13:51:06]save last doc name /storage/0510/doc_00074663 to /storage/kkm_last_doc_name [13:51:06]save OK [13:51:06]Clear old archive folders... [13:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:51:06]tlvbuf is 00A9D800 [13:51:06]SAM_PROTO_ClearQueue [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 09 00 00 [13:51:06]Write to MH i2c: E2 08 00 51 79 80 09 00 00 00 00 00 00 3C [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 51 79 00 90 00 3E [13:51:06]RAPDU: 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_ClearQueue done [13:51:06]KKMCreateOFDPacket [13:51:06]OFDProtocolAddRootSTLVToBuf [13:51:06]FM_MakeSignedData [13:51:06]FM_MakeSignedData [13:51:06]SAM_PROTO_SignData [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 0D 01 02 [13:51:06]Write to MH i2c: E2 08 00 52 79 80 0D 01 02 00 00 00 00 44 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 52 79 00 90 00 3F [13:51:06]RAPDU: 90 00 [13:51:06]wFMCommunicate OK [13:51:06]wFMCommunicate request_size=255 [13:51:06]MH_SAM_APDU [13:51: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 6B 00 00 00 F4 03 04 00 D4 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 23 01 00 35 04 06 00 A9 7A 2F 83 [13:51:06]Write to MH i2c: E2 02 01 53 79 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 6B 00 00 00 F4 03 04 00 D4 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 23 01 00 35 04 06 00 A9 7A 2F 83 00 00 02 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 53 79 00 90 00 40 [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]wFMCommunicate request_size=7 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 0D 02 02 02 ED 66 [13:51:07]Write to MH i2c: E2 0A 00 54 79 80 0D 02 02 02 00 ED 66 00 00 9E [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 54 79 00 90 00 41 [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]wFMCommunicate request_size=4 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 0D 03 02 [13:51:07]Write to MH i2c: E2 08 00 55 79 80 0D 03 02 00 00 00 00 49 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 0B 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 0B 00 55 79 00 A6 ED A5 97 83 51 DF B8 90 00 84 [13:51:07]RAPDU: A6 ED A5 97 83 51 DF B8 90 00 [13:51:07]wFMCommunicate OK [13:51:07]SAM_PROTO_SignData done [13:51:07]FM_MakeSignedData done [13:51:07]CreateOFDProtocolMessage [13:51:07]wFMCommunicate request_size=4 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 11 00 00 [13:51:07]Write to MH i2c: E2 08 00 56 79 80 11 00 00 00 00 00 00 49 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 17 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 17 00 56 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A1 [13:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:51:07]wFMCommunicate OK [13:51:07]CreateOFDProtocolMessage done [13:51:07]OFDSenderStorePacket 74663 [13:51:07]StoreOFDPacket docnum=74663 [13:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 AA 93 04 01 ED 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 6B 00 00 00 F4 03 04 00 D4 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 23 01 00 35 04 06 00 A9 7A 2F 83 ED 66 A6 ED A5 97 83 51 DF B8 [13:51:07]CheckFolder [13:51:07]dirname=/storage/ofd_packets [13:51:07]CheckFolder done [13:51:07]ProducePacketName [13:51:07]name=ofd_packets/00074663 [13:51:07]NVStorageSaveData ofd_packets/00074663 [13:51:07]File name is /storage/ofd_packets/00074663 [13:51:07]Write 298 bytes [13:51:07]NVStorageSaveData done [13:51:07]OFDSenderStorePacket done [13:51:07]KKMCreateOFDPacket done [13:51:07]NVStorageSaveData kkm_last_timestamp [13:51:07]File name is /storage/kkm_last_timestamp [13:51:07]Write 4 bytes [13:51:07]NVStorageSaveData done [13:51:07]ExternCall_PrintAddStr [13:51:07]wPrintStart [13:51:07]Write to MH i2c: 01 00 00 57 79 D0 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 57 79 00 00 00 00 00 FF 0F E5 [13:51:07]RasterBufferAndPrint [13:51:07]line Счет N : (1)190628 [13:51:07]line ИНН: 02508201610067 [13:51:07]line Контрольно-Кассовый Чек [13:51:07]line ПРОДАЖА [13:51:07]line ТРК (МРК, ГНК) : 41 [13:51:07]line Товар: 2710194210 [13:51:07]line ДТ-К-4 [13:51:07]line 2.630 * 76.20 [13:51:07]line = 200.41 [13:51:07]line НДС 12% НСП 1% [13:51:07]line > о реализуемом товаре [13:51:07]line ОКРУГЛЕНИЕ: -0.41 [13:51:07]line ИТОГО: 200.00 [13:51:07]line Внесено: 200.00 [13:51:07]line СДАЧА: 0.00 [13:51:07]line НСП 1% : 1.77 [13:51:07]line НДС 12% : 21.28 [13:51:07]line Наличными: 200.00 [13:51:07]line Безнал.: 0.00 [13:51:07]line Место: АЗС № 142 "Партнер Нефть" [13:51:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:51:07]line СНО: Общий режим [13:51:07]line Чек 107 24.10.2024 13:51 [13:51:07]line Смена: 510 ФФД: 1.0 [13:51:07]line ЗНМ: 0300000089 [13:51:07]line РНМ: 0000000000091691 [13:51:07]line Версия ККМ: 001 [13:51:07]line ФМ: 0000000000871795 [13:51:07]line ФД: 74663 [13:51:07]line ФПД: 186342248279398 [13:51:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135116&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74663&fm=186342248279398&tin=02508201610067®Number=0000000000091691&sum=20000 [13:51:07]OFD Sender: Processing packet 74663 [packets to send 13, broken 12] [13:51:07]ProducePacketName [13:51:07]name=ofd_packets/00074663 [13:51:07]OFD Sender: To server: pG, [13:51:07]CommunicateWithHost lk.salyk.kg:30040 [13:51:07]ConnectInit lk.salyk.kg [13:51:07]written 0, free lines is 4095 [13:51:07]Connected sock=10 [13:51:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 AA 93 04 01 ED 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 6B 00 00 00 F4 03 04 00 D4 50 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 23 01 00 35 04 06 00 A9 7A 2F 83 ED 66 A6 ED A5 97 83 51 DF B8 [13:51:07]Write to MH i2c: 01 00 00 82 79 FB [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 82 79 00 00 00 00 00 A5 0C B3 [13:51:07]RasterBufferAndPrint [13:51:07]line [13:51:07]line [13:51:07]line [13:51:07]line [13:51:07]line [13:51:07]written 0, free lines is 3242 [13:51:07]MH_Cut [13:51:07]Write to MH i2c: D1 01 00 89 79 01 D4 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: D1 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: D1 01 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: D1 01 00 89 79 00 D3 [13:51:07]Write to MH i2c: 01 00 00 8A 79 03 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A8 B3 47 00 0D 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 23 01 00 F4 03 04 00 57 F8 19 67 B6 04 01 00 00 FB 10 D6 99 56 28 E4 0D [13:51:08]CommunicateWithHost err = 0 [13:51:08]CheckOFDResponse [13:51:08]1017 (14) - 77093643461234 [13:51:08]1041 (16) - 0000000000871795 [13:51:08]1040 (4) - 74663 [13:51:08]1012 (4) - 24.10.2024 07:33 [13:51:08]1206 (1) - 0 [13:51:08]OFD Sender: Remove packet 74663 [13:51:08]ProducePacketName [13:51:08]name=ofd_packets/00074663 [13:51:08]NVStorageDeleteData [13:51:08]OFD Sender: No OFD packet to send [13:51:08]*** Cut start [13:51:08]*** Partial cut [13:51:08]*** CUTSNS_PIN = 1 [13:51:08]*** CUTSNS_PIN = 0 [13:51:09]*** Brake cut motor [13:51:09]Read from MH i2c: 01 [13:51:09]MH_I2C_Read... [13:51:09]*** Stop cut motor [13:51:09]*** Cut end [13:51:09]Read from MH i2c: 01 07 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: 01 07 00 8A 79 00 00 00 00 00 FF 0F 18 [13:51:09]process_action close_receipt done [13:51:09]requested_data is exist [13:51:09]produce_requested_data [13:51:09]requested_item fm.sn is exist - process it [13:51:09]wFMCommunicate request_size=4 [13:51:09]MH_SAM_APDU [13:51:09]CAPDU: 80 11 00 00 [13:51:09]Write to MH i2c: E2 08 00 8B 79 80 11 00 00 00 00 00 00 7E [13:51:09]Write i2c OK [13:51:09]MH_I2C_Read... [13:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:09]Read from MH i2c: E2 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 17 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 17 00 8B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D6 [13:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:51:09]wFMCommunicate OK [13:51:09]requested_item fd.num is exist - process it [13:51:09]SAM_PROTO_GetFieldsCounters [13:51:09]wFMCommunicate request_size=4 [13:51:09]MH_SAM_APDU [13:51:09]CAPDU: 80 13 00 00 [13:51:09]Write to MH i2c: E2 08 00 8C 79 80 13 00 00 00 00 00 00 81 [13:51:09]Write i2c OK [13:51:09]MH_I2C_Read... [13:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:09]Read from MH i2c: E2 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 62 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 62 00 8C 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A7 23 01 00 0E 04 04 00 FE 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 B3 [13:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A7 23 01 00 0E 04 04 00 FE 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 [13:51:09]wFMCommunicate OK [13:51:09]SAM_PROTO_GetFieldsCounters done [13:51:09]requested_item shift.num is exist - process it [13:51:09]requested_item shift.opened is exist - process it [13:51:09]req_shift_opened [13:51:09]FM_GetShiftState [13:51:09]SAM_PROTO_GetShiftState [13:51:09]wFMCommunicate request_size=4 [13:51:09]MH_SAM_APDU [13:51:09]CAPDU: 80 13 01 00 [13:51:09]Write to MH i2c: E2 08 00 8D 79 80 13 01 00 00 00 00 00 83 [13:51:09]Write i2c OK [13:51:09]MH_I2C_Read... [13:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:09]Read from MH i2c: E2 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 0E 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 0E 00 8D 79 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AD [13:51:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:51:09]wFMCommunicate OK [13:51:09]SAM_PROTO_GetShiftState done [13:51:09]FM_GetShiftState done [13:51:09]req_shift_opened done [13:51:09]requested_item shift.open_date is exist - process it [13:51:09]req_shift_open_date [13:51:09]req_shift_open_date done [13:51:09]produce_requested_data done [13:51:09]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74663,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:51:09]process_action_free close_receipt [13:51:09]json_value_free [13:51:09]json_value_free done [13:51:09]process_json_proto returns [13:51:09]Send response to host [13:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74663,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:51:09]free response buf [13:51:09]execute_script done [13:51:09]execute_script returns [13:51:09]free content buf [13:51:09]Sock 8.Close socket [13:51:09]Sock 8.Thread stoped [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:01]accept exits with 9 [13:52:01]New connection [13:52:01]New thread 3066805604 created [13:52:01]Thread 3066662244 joined [13:52:01]Waiting for new connection... [13:52:01] Sock 9.Parse request [13:52:01]Sock 9.Check first char [13:52:01]Sock 9.First char is OK [13:52:01]request: POST /json_proto HTTP/1.0 [13:52:01]Method: POST [13:52:01]URL: /json_proto [13:52:01]Method is POST - this is cgi request [13:52:01]url: /json_proto [13:52:01]query_string will be loaded in cgi processing [13:52:01]execute_cgi json_proto POST (null) [13:52:01]execute_cgi path=json_proto method=POST [13:52:01]POST find Content-Length [13:52:01]Host: 172.17.39.131:8080 [13:52:01]Content-Length: 677 [13:52:01]Content-Type: application/json [13:52:01] [13:52:01]POST finish read [13:52:01]Found Content-Length = 677 [13:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:01]execute_script... [13:52: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)190629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:01]POST & json_proto [13:52:01]process_json_proto [13:52:01]json parsed OK: [13:52:01]protocol is kg_v1.0 [13:52:01]action value=close_receipt [13:52:01]process_action close_receipt [13:52:01]cmd_close_receipt [13:52:01]MH_GetDate [13:52:01]Write to MH i2c: F0 00 00 8E 79 F6 [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: F0 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: F0 09 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: F0 09 00 8E 79 00 0D 51 1A 67 86 57 24 65 44 [13:52:01]GetLastDocTimeStamp 1729777876 [13:52:01]current date 1729777933 [13:52:01]FM_GetShiftState [13:52:01]SAM_PROTO_GetShiftState [13:52:01]wFMCommunicate request_size=4 [13:52:01]MH_SAM_APDU [13:52:01]CAPDU: 80 13 01 00 [13:52:01]Write to MH i2c: E2 08 00 8F 79 80 13 01 00 00 00 00 00 85 [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 0E 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 0E 00 8F 79 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AF [13:52:01]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:52:02]wFMCommunicate OK [13:52:02]SAM_PROTO_GetShiftState done [13:52:02]FM_GetShiftState done [13:52:02]opened in 1729729801 [13:52:02]opened+sec_in_day 1729816201 [13:52:02]quantity*price = 20003 [13:52:02]sum+1 = 20004 [13:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 108 24.10.2024 13:52 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74664 ФПД: 162892882036736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135213&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74664&fm=162892882036736&tin=02508201610067®Number=0000000000091691&sum=20000 [13:52:03]StoreToDocumentArchive [13:52:03]shift 510 fd 74664 [13:52:03]save to /storage/0510/doc_00074664 [13:52:03]save last doc name /storage/0510/doc_00074664 to /storage/kkm_last_doc_name [13:52:03]save OK [13:52:03]Clear old archive folders... [13:52:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:03]tlvbuf is 007EBDC0 [13:52:03]SAM_PROTO_ClearQueue [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 09 00 00 [13:52:03]Write to MH i2c: E2 08 00 9C 79 80 09 00 00 00 00 00 00 87 [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 9C 79 00 90 00 89 [13:52:03]RAPDU: 90 00 [13:52:03]wFMCommunicate OK [13:52:03]SAM_PROTO_ClearQueue done [13:52:03]KKMCreateOFDPacket [13:52:03]OFDProtocolAddRootSTLVToBuf [13:52:03]FM_MakeSignedData [13:52:03]FM_MakeSignedData [13:52:03]SAM_PROTO_SignData [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 0D 01 02 [13:52:03]Write to MH i2c: E2 08 00 9D 79 80 0D 01 02 00 00 00 00 8F [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 9D 79 00 90 00 8A [13:52:03]RAPDU: 90 00 [13:52:03]wFMCommunicate OK [13:52:03]wFMCommunicate request_size=255 [13:52:03]MH_SAM_APDU [13:52: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D 51 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 23 01 00 35 04 06 00 94 [13:52:03]Write to MH i2c: E2 02 01 9E 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D 51 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 23 01 00 35 04 06 00 94 00 00 90 [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 9E 79 00 90 00 8B [13:52:03]RAPDU: 90 00 [13:52:03]wFMCommunicate OK [13:52:03]wFMCommunicate request_size=10 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 0D 02 02 05 26 74 5E C8 00 [13:52:03]Write to MH i2c: E2 0D 00 9F 79 80 0D 02 02 05 00 26 74 5E C8 00 00 00 5C [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 03 00 9F 79 00 90 00 8C [13:52:03]RAPDU: 90 00 [13:52:03]wFMCommunicate OK [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 0D 03 02 [13:52:03]Write to MH i2c: E2 08 00 A0 79 80 0D 03 02 00 00 00 00 94 [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 0B 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 0B 00 A0 79 00 96 6E 39 0F 5B F5 87 1A 90 00 D2 [13:52:03]RAPDU: 96 6E 39 0F 5B F5 87 1A 90 00 [13:52:03]wFMCommunicate OK [13:52:03]SAM_PROTO_SignData done [13:52:03]FM_MakeSignedData done [13:52:03]CreateOFDProtocolMessage [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 11 00 00 [13:52:03]Write to MH i2c: E2 08 00 A1 79 80 11 00 00 00 00 00 00 94 [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 17 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 17 00 A1 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EC [13:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:52:03]wFMCommunicate OK [13:52:03]CreateOFDProtocolMessage done [13:52:03]OFDSenderStorePacket 74664 [13:52:03]StoreOFDPacket docnum=74664 [13:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5C 42 07 01 2E 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D 51 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 23 01 00 35 04 06 00 94 26 74 5E C8 00 96 6E 39 0F 5B F5 87 1A [13:52:03]CheckFolder [13:52:03]dirname=/storage/ofd_packets [13:52:03]CheckFolder done [13:52:03]ProducePacketName [13:52:03]name=ofd_packets/00074664 [13:52:03]NVStorageSaveData ofd_packets/00074664 [13:52:03]File name is /storage/ofd_packets/00074664 [13:52:03]Write 301 bytes [13:52:03]NVStorageSaveData done [13:52:03]OFDSenderStorePacket done [13:52:03]KKMCreateOFDPacket done [13:52:03]NVStorageSaveData kkm_last_timestamp [13:52:03]File name is /storage/kkm_last_timestamp [13:52:03]Write 4 bytes [13:52:03]NVStorageSaveData done [13:52:03]ExternCall_PrintAddStr [13:52:03]wPrintStart [13:52:03]Write to MH i2c: 01 00 00 A2 79 1B [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: 01 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: 01 07 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: 01 07 00 A2 79 00 00 00 00 00 FF 0F 30 [13:52:03]RasterBufferAndPrint [13:52:03]line Счет N : (1)190629 [13:52:03]line ИНН: 02508201610067 [13:52:03]line Контрольно-Кассовый Чек [13:52:03]line ПРОДАЖА [13:52:03]line ТРК (МРК, ГНК) : 21 [13:52:03]line Товар: 2710124130 [13:52:03]line Аи-92-К-5 [13:52:03]line 2.990 * 66.90 [13:52:03]line = 200.03 [13:52:03]line НДС 12% НСП 1% [13:52:03]line > о реализуемом товаре [13:52:03]line ОКРУГЛЕНИЕ: -0.03 [13:52:03]line ИТОГО: 200.00 [13:52:03]line Внесено: 200.00 [13:52:03]line СДАЧА: 0.00 [13:52:03]line НСП 1% : 1.77 [13:52:03]line НДС 12% : 21.24 [13:52:03]line Наличными: 200.00 [13:52:03]line Безнал.: 0.00 [13:52:03]line Место: АЗС № 142 "Партнер Нефть" [13:52:03]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:52:03]line СНО: Общий режим [13:52:03]line Чек 108 24.10.2024 13:52 [13:52:03]line Смена: 510 ФФД: 1.0 [13:52:03]line ЗНМ: 0300000089 [13:52:03]line РНМ: 0000000000091691 [13:52:03]line Версия ККМ: 001 [13:52:03]line ФМ: 0000000000871795 [13:52:03]line ФД: 74664 [13:52:03]line ФПД: 162892882036736 [13:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135213&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74664&fm=162892882036736&tin=02508201610067®Number=0000000000091691&sum=20000 [13:52:04]written 0, free lines is 4095 [13:52:04]OFD Sender: Processing packet 74664 [packets to send 13, broken 12] [13:52:04]ProducePacketName [13:52:04]name=ofd_packets/00074664 [13:52:04]OFD Sender: To server: pG, [13:52:04]CommunicateWithHost lk.salyk.kg:30040 [13:52:04]ConnectInit lk.salyk.kg [13:52:04]Connected sock=10 [13:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5C 42 07 01 2E 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D 51 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 23 01 00 35 04 06 00 94 26 74 5E C8 00 96 6E 39 0F 5B F5 87 1A [13:52:04]Write to MH i2c: 01 00 00 CD 79 46 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 07 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 07 00 CD 79 00 00 00 00 00 AF 0C 08 [13:52:04]RasterBufferAndPrint [13:52:04]line [13:52:04]line [13:52:04]line [13:52:04]line [13:52:04]line [13:52:04]written 0, free lines is 3255 [13:52:04]MH_Cut [13:52:04]Write to MH i2c: D1 01 00 D4 79 01 1F [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: D1 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: D1 01 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: D1 01 00 D4 79 00 1E [13:52:04]Write to MH i2c: 01 00 00 D5 79 4E [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9D 2A 47 00 FA 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 23 01 00 F4 03 04 00 8F F8 19 67 B6 04 01 00 00 5C 63 2F F9 C6 53 77 06 [13:52:04]CommunicateWithHost err = 0 [13:52:04]CheckOFDResponse [13:52:04]1017 (14) - 77093643461234 [13:52:04]1041 (16) - 0000000000871795 [13:52:04]1040 (4) - 74664 [13:52:04]1012 (4) - 24.10.2024 07:34 [13:52:04]1206 (1) - 0 [13:52:04]OFD Sender: Remove packet 74664 [13:52:04]ProducePacketName [13:52:04]name=ofd_packets/00074664 [13:52:04]NVStorageDeleteData [13:52:05]OFD Sender: No OFD packet to send [13:52:05]*** Cut start [13:52:05]*** Partial cut [13:52:05]*** CUTSNS_PIN = 1 [13:52:05]*** CUTSNS_PIN = 0 [13:52:05]*** Brake cut motor [13:52:05]Read from MH i2c: 01 [13:52:05]MH_I2C_Read... [13:52:05]*** Stop cut motor [13:52:05]*** Cut end [13:52:05]Read from MH i2c: 01 07 00 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: 01 07 00 D5 79 00 00 00 00 00 FF 0F 63 [13:52:05]process_action close_receipt done [13:52:05]requested_data is exist [13:52:05]produce_requested_data [13:52:05]requested_item fm.sn is exist - process it [13:52:05]wFMCommunicate request_size=4 [13:52:05]MH_SAM_APDU [13:52:05]CAPDU: 80 11 00 00 [13:52:05]Write to MH i2c: E2 08 00 D6 79 80 11 00 00 00 00 00 00 C9 [13:52:05]Write i2c OK [13:52:05]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 17 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 17 00 D6 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 21 [13:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:52:06]wFMCommunicate OK [13:52:06]requested_item fd.num is exist - process it [13:52:06]SAM_PROTO_GetFieldsCounters [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 13 00 00 [13:52:06]Write to MH i2c: E2 08 00 D7 79 80 13 00 00 00 00 00 00 CC [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 62 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 62 00 D7 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A8 23 01 00 0E 04 04 00 FE 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 02 [13:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A8 23 01 00 0E 04 04 00 FE 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 [13:52:06]wFMCommunicate OK [13:52:06]SAM_PROTO_GetFieldsCounters done [13:52:06]requested_item shift.num is exist - process it [13:52:06]requested_item shift.opened is exist - process it [13:52:06]req_shift_opened [13:52:06]FM_GetShiftState [13:52:06]SAM_PROTO_GetShiftState [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 13 01 00 [13:52:06]Write to MH i2c: E2 08 00 D8 79 80 13 01 00 00 00 00 00 CE [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 0E 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 0E 00 D8 79 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F8 [13:52:06]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [13:52:06]wFMCommunicate OK [13:52:06]SAM_PROTO_GetShiftState done [13:52:06]FM_GetShiftState done [13:52:06]req_shift_opened done [13:52:06]requested_item shift.open_date is exist - process it [13:52:06]req_shift_open_date [13:52:06]req_shift_open_date done [13:52:06]produce_requested_data done [13:52:06]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74664,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [13:52:06]process_action_free close_receipt [13:52:06]json_value_free [13:52:06]json_value_free done [13:52:06]process_json_proto returns [13:52:06]Send response to host [13:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74664,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [13:52:06]free response buf [13:52:06]execute_script done [13:52:06]execute_script returns [13:52:06]free content buf [13:52:06]Sock 9.Close socket [13:52:06]Sock 9.Thread stoped [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:06]accept exits with 8 [14:01:06]New connection [14:01:06]New thread 3066662244 created [14:01:06]Thread 3066805604 joined [14:01:06]Waiting for new connection... [14:01:06] Sock 8.Parse request [14:01:06]Sock 8.Check first char [14:01:06]Sock 8.First char is OK [14:01:06]request: POST /json_proto HTTP/1.0 [14:01:06]Method: POST [14:01:06]URL: /json_proto [14:01:06]Method is POST - this is cgi request [14:01:06]url: /json_proto [14:01:06]query_string will be loaded in cgi processing [14:01:06]execute_cgi json_proto POST (null) [14:01:06]execute_cgi path=json_proto method=POST [14:01:06]POST find Content-Length [14:01:06]Host: 172.17.39.131:8080 [14:01:06]Content-Length: 688 [14:01:06]Content-Type: application/json [14:01:06] [14:01:06]POST finish read [14:01:06]Found Content-Length = 688 [14:01:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:06]execute_script... [14:01: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)190630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:06]POST & json_proto [14:01:06]process_json_proto [14:01:06]json parsed OK: [14:01:06]protocol is kg_v1.0 [14:01:06]action value=close_receipt [14:01:06]process_action close_receipt [14:01:06]cmd_close_receipt [14:01:06]MH_GetDate [14:01:06]Write to MH i2c: F0 00 00 D9 79 41 [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: F0 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: F0 09 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: F0 09 00 D9 79 00 2D 53 1A 67 86 57 24 65 B1 [14:01:06]GetLastDocTimeStamp 1729777933 [14:01:06]current date 1729778477 [14:01:06]FM_GetShiftState [14:01:06]SAM_PROTO_GetShiftState [14:01:06]wFMCommunicate request_size=4 [14:01:06]MH_SAM_APDU [14:01:06]CAPDU: 80 13 01 00 [14:01:06]Write to MH i2c: E2 08 00 DA 79 80 13 01 00 00 00 00 00 D0 [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 0E 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 0E 00 DA 79 00 09 00 01 09 95 19 67 00 00 00 00 90 00 FA [14:01:06]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:01:06]wFMCommunicate OK [14:01:06]SAM_PROTO_GetShiftState done [14:01:06]FM_GetShiftState done [14:01:06]opened in 1729729801 [14:01:06]opened+sec_in_day 1729816201 [14:01:06]quantity*price = 150076 [14:01:06]sum+1 = 150078 [14:01:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 109 24.10.2024 14:01 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74665 ФПД: 100020033298123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140117&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74665&fm=100020033298123&tin=02508201610067®Number=0000000000091691&sum=150000 [14:01:07]StoreToDocumentArchive [14:01:07]shift 510 fd 74665 [14:01:07]save to /storage/0510/doc_00074665 [14:01:07]save last doc name /storage/0510/doc_00074665 to /storage/kkm_last_doc_name [14:01:07]save OK [14:01:07]Clear old archive folders... [14:01:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:01:07]tlvbuf is 008FD940 [14:01:07]SAM_PROTO_ClearQueue [14:01:07]wFMCommunicate request_size=4 [14:01:07]MH_SAM_APDU [14:01:07]CAPDU: 80 09 00 00 [14:01:07]Write to MH i2c: E2 08 00 E7 79 80 09 00 00 00 00 00 00 D2 [14:01:07]Write i2c OK [14:01:07]MH_I2C_Read... [14:01:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:07]Read from MH i2c: E2 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: E2 03 00 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: E2 03 00 E7 79 00 90 00 D4 [14:01:07]RAPDU: 90 00 [14:01:07]wFMCommunicate OK [14:01:07]SAM_PROTO_ClearQueue done [14:01:07]KKMCreateOFDPacket [14:01:07]OFDProtocolAddRootSTLVToBuf [14:01:07]FM_MakeSignedData [14:01:07]FM_MakeSignedData [14:01:07]SAM_PROTO_SignData [14:01:07]wFMCommunicate request_size=4 [14:01:07]MH_SAM_APDU [14:01:07]CAPDU: 80 0D 01 02 [14:01:07]Write to MH i2c: E2 08 00 E8 79 80 0D 01 02 00 00 00 00 DA [14:01:07]Write i2c OK [14:01:07]MH_I2C_Read... [14:01:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:07]Read from MH i2c: E2 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: E2 03 00 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: E2 03 00 E8 79 00 90 00 D5 [14:01:07]RAPDU: 90 00 [14:01:07]wFMCommunicate OK [14:01:07]wFMCommunicate request_size=255 [14:01:07]MH_SAM_APDU [14:01:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6D 00 00 00 F4 03 04 00 2D 53 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 23 01 [14:01:07]Write to MH i2c: E2 02 01 E9 79 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6D 00 00 00 F4 03 04 00 2D 53 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 23 01 00 00 E3 [14:01:07]Write i2c OK [14:01:07]MH_I2C_Read... [14:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:07]Read from MH i2c: E2 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: E2 03 00 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: E2 03 00 E9 79 00 90 00 D6 [14:01:07]RAPDU: 90 00 [14:01:07]wFMCommunicate OK [14:01:07]wFMCommunicate request_size=16 [14:01:07]MH_SAM_APDU [14:01:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5A F7 BA 8E 1E CB [14:01:07]Write to MH i2c: E2 13 00 EA 79 80 0D 02 02 0B 00 00 35 04 06 00 5A F7 BA 8E 1E CB 00 00 B4 [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:08]Read from MH i2c: E2 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 03 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 03 00 EA 79 00 90 00 D7 [14:01:08]RAPDU: 90 00 [14:01:08]wFMCommunicate OK [14:01:08]wFMCommunicate request_size=4 [14:01:08]MH_SAM_APDU [14:01:08]CAPDU: 80 0D 03 02 [14:01:08]Write to MH i2c: E2 08 00 EB 79 80 0D 03 02 00 00 00 00 DF [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:08]Read from MH i2c: E2 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 0B 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 0B 00 EB 79 00 D3 54 45 B0 91 6A 38 E1 90 00 10 [14:01:08]RAPDU: D3 54 45 B0 91 6A 38 E1 90 00 [14:01:08]wFMCommunicate OK [14:01:08]SAM_PROTO_SignData done [14:01:08]FM_MakeSignedData done [14:01:08]CreateOFDProtocolMessage [14:01:08]wFMCommunicate request_size=4 [14:01:08]MH_SAM_APDU [14:01:08]CAPDU: 80 11 00 00 [14:01:08]Write to MH i2c: E2 08 00 EC 79 80 11 00 00 00 00 00 00 DF [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:08]Read from MH i2c: E2 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 17 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 17 00 EC 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 37 [14:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:01:08]wFMCommunicate OK [14:01:08]CreateOFDProtocolMessage done [14:01:08]OFDSenderStorePacket 74665 [14:01:08]StoreOFDPacket docnum=74665 [14:01:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 5C 2C 0D 01 0B 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6D 00 00 00 F4 03 04 00 2D 53 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 23 01 00 35 04 06 00 5A F7 BA 8E 1E CB D3 54 45 B0 91 6A 38 E1 [14:01:08]CheckFolder [14:01:08]dirname=/storage/ofd_packets [14:01:08]CheckFolder done [14:01:08]ProducePacketName [14:01:08]name=ofd_packets/00074665 [14:01:08]NVStorageSaveData ofd_packets/00074665 [14:01:08]File name is /storage/ofd_packets/00074665 [14:01:08]Write 307 bytes [14:01:08]NVStorageSaveData done [14:01:08]OFDSenderStorePacket done [14:01:08]KKMCreateOFDPacket done [14:01:08]NVStorageSaveData kkm_last_timestamp [14:01:08]File name is /storage/kkm_last_timestamp [14:01:08]Write 4 bytes [14:01:08]NVStorageSaveData done [14:01:08]ExternCall_PrintAddStr [14:01:08]wPrintStart [14:01:08]Write to MH i2c: 01 00 00 ED 79 66 [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 07 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 07 00 ED 79 00 00 00 00 00 FF 0F 7B [14:01:08]RasterBufferAndPrint [14:01:08]line Счет N : (1)190630 [14:01:08]line ИНН: 02508201610067 [14:01:08]line Контрольно-Кассовый Чек [14:01:08]line ПРОДАЖА [14:01:08]line ТРК (МРК, ГНК) : 32 [14:01:08]line Товар: 2710194240 [14:01:08]line D-ENERGY ДТ-К-2 [14:01:08]line 19.440 * 77.20 [14:01:08]line = 1500.77 [14:01:08]line НДС 12% НСП 1% [14:01:08]line > о реализуемом товаре [14:01:08]line ОКРУГЛЕНИЕ: -0.77 [14:01:08]line ИТОГО: 1500.00 [14:01:08]line Внесено: 1500.00 [14:01:08]line СДАЧА: 0.00 [14:01:08]line НСП 1% : 13.28 [14:01:08]line НДС 12% : 159.37 [14:01:08]line Наличными: 1500.00 [14:01:08]line Безнал.: 0.00 [14:01:08]line Место: АЗС № 142 "Партнер Нефть" [14:01:08]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:01:08]line СНО: Общий режим [14:01:08]line Чек 109 24.10.2024 14:01 [14:01:08]line Смена: 510 ФФД: 1.0 [14:01:08]line ЗНМ: 0300000089 [14:01:08]line РНМ: 0000000000091691 [14:01:08]line Версия ККМ: 001 [14:01:08]line ФМ: 0000000000871795 [14:01:08]line ФД: 74665 [14:01:08]line ФПД: 100020033298123 [14:01:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140117&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74665&fm=100020033298123&tin=02508201610067®Number=0000000000091691&sum=150000 [14:01:08]OFD Sender: Processing packet 74665 [packets to send 13, broken 12] [14:01:08]ProducePacketName [14:01:08]name=ofd_packets/00074665 [14:01:08]OFD Sender: To server: pG, [14:01:08]CommunicateWithHost lk.salyk.kg:30040 [14:01:08]ConnectInit lk.salyk.kg [14:01:08]written 0, free lines is 4095 [14:01:08]Connected sock=11 [14:01:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 5C 2C 0D 01 0B 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6D 00 00 00 F4 03 04 00 2D 53 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 23 01 00 35 04 06 00 5A F7 BA 8E 1E CB D3 54 45 B0 91 6A 38 E1 [14:01:08]Write to MH i2c: 01 00 00 18 7A 92 [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 07 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 07 00 18 7A 00 00 00 00 00 A7 0C 4C [14:01:08]RasterBufferAndPrint [14:01:08]line [14:01:08]line [14:01:08]line [14:01:08]line [14:01:08]line [14:01:08]written 0, free lines is 3245 [14:01:08]MH_Cut [14:01:08]Write to MH i2c: D1 01 00 1F 7A 01 6B [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: D1 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: D1 01 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: D1 01 00 1F 7A 00 6A [14:01:08]Write to MH i2c: 01 00 00 20 7A 9A [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BE 42 47 00 58 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 31 37 39 35 10 04 04 00 A9 23 01 00 F4 03 04 00 B0 FA 19 67 B6 04 01 00 00 77 B8 94 29 BF D2 25 B0 [14:01:09]CommunicateWithHost err = 0 [14:01:09]CheckOFDResponse [14:01:09]1017 (14) - 77093643461234 [14:01:09]1041 (16) - 0000000000871795 [14:01:09]1040 (4) - 74665 [14:01:09]1012 (4) - 24.10.2024 07:43 [14:01:09]1206 (1) - 0 [14:01:09]OFD Sender: Remove packet 74665 [14:01:09]ProducePacketName [14:01:09]name=ofd_packets/00074665 [14:01:09]NVStorageDeleteData [14:01:09]OFD Sender: No OFD packet to send [14:01:09]*** Cut start [14:01:09]*** Partial cut [14:01:09]*** CUTSNS_PIN = 1 [14:01:09]*** CUTSNS_PIN = 0 [14:01:10]*** Brake cut motor [14:01:10]Read from MH i2c: 01 [14:01:10]MH_I2C_Read... [14:01:10]*** Stop cut motor [14:01:10]*** Cut end [14:01:10]Read from MH i2c: 01 07 00 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: 01 07 00 20 7A 00 00 00 00 00 FF 0F AF [14:01:10]process_action close_receipt done [14:01:10]requested_data is exist [14:01:10]produce_requested_data [14:01:10]requested_item fm.sn is exist - process it [14:01:10]wFMCommunicate request_size=4 [14:01:10]MH_SAM_APDU [14:01:10]CAPDU: 80 11 00 00 [14:01:10]Write to MH i2c: E2 08 00 21 7A 80 11 00 00 00 00 00 00 15 [14:01:10]Write i2c OK [14:01:10]MH_I2C_Read... [14:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:10]Read from MH i2c: E2 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 17 00 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 17 00 21 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6D [14:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:01:10]wFMCommunicate OK [14:01:10]requested_item fd.num is exist - process it [14:01:10]SAM_PROTO_GetFieldsCounters [14:01:10]wFMCommunicate request_size=4 [14:01:10]MH_SAM_APDU [14:01:10]CAPDU: 80 13 00 00 [14:01:10]Write to MH i2c: E2 08 00 22 7A 80 13 00 00 00 00 00 00 18 [14:01:10]Write i2c OK [14:01:10]MH_I2C_Read... [14:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:10]Read from MH i2c: E2 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 62 00 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 62 00 22 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A9 23 01 00 0E 04 04 00 FE 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 52 [14:01:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A9 23 01 00 0E 04 04 00 FE 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 [14:01:10]wFMCommunicate OK [14:01:10]SAM_PROTO_GetFieldsCounters done [14:01:10]requested_item shift.num is exist - process it [14:01:10]requested_item shift.opened is exist - process it [14:01:10]req_shift_opened [14:01:10]FM_GetShiftState [14:01:10]SAM_PROTO_GetShiftState [14:01:10]wFMCommunicate request_size=4 [14:01:10]MH_SAM_APDU [14:01:10]CAPDU: 80 13 01 00 [14:01:10]Write to MH i2c: E2 08 00 23 7A 80 13 01 00 00 00 00 00 1A [14:01:10]Write i2c OK [14:01:10]MH_I2C_Read... [14:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:10]Read from MH i2c: E2 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 0E 00 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 0E 00 23 7A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 44 [14:01:10]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:01:10]wFMCommunicate OK [14:01:10]SAM_PROTO_GetShiftState done [14:01:10]FM_GetShiftState done [14:01:10]req_shift_opened done [14:01:10]requested_item shift.open_date is exist - process it [14:01:10]req_shift_open_date [14:01:10]req_shift_open_date done [14:01:10]produce_requested_data done [14:01:10]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74665,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:01:10]process_action_free close_receipt [14:01:10]json_value_free [14:01:10]json_value_free done [14:01:10]process_json_proto returns [14:01:10]Send response to host [14:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74665,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:01:10]free response buf [14:01:10]execute_script done [14:01:10]execute_script returns [14:01:10]free content buf [14:01:10]Sock 8.Close socket [14:01:10]Sock 8.Thread stoped [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:15]recv_with_timeout no data received [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:08]accept exits with 9 [14:05:08]New connection [14:05:08]New thread 3066805604 created [14:05:08]Thread 3066662244 joined [14:05:08]Waiting for new connection... [14:05:08] Sock 9.Parse request [14:05:08]Sock 9.Check first char [14:05:08]Sock 9.First char is OK [14:05:08]request: POST /json_proto HTTP/1.0 [14:05:08]Method: POST [14:05:08]URL: /json_proto [14:05:08]Method is POST - this is cgi request [14:05:08]url: /json_proto [14:05:08]query_string will be loaded in cgi processing [14:05:08]execute_cgi json_proto POST (null) [14:05:08]execute_cgi path=json_proto method=POST [14:05:08]POST find Content-Length [14:05:08]Host: 172.17.39.131:8080 [14:05:08]Content-Length: 803 [14:05:08]Content-Type: application/json [14:05:08] [14:05:08]POST finish read [14:05:08]Found Content-Length = 803 [14:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 42.920, "sum" : 2871.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", "payments": [ { "type": 1, "sum" : 2871.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:08]execute_script... [14:05: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)190631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 42.920, "sum" : 2871.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", "payments": [ { "type": 1, "sum" : 2871.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:08]POST & json_proto [14:05:08]process_json_proto [14:05:08]json parsed OK: [14:05:08]protocol is kg_v1.0 [14:05:08]action value=close_receipt [14:05:08]process_action close_receipt [14:05:08]cmd_close_receipt [14:05:08]MH_GetDate [14:05:08]Write to MH i2c: F0 00 00 24 7A 8D [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: F0 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: F0 09 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: F0 09 00 24 7A 00 1F 54 1A 67 86 57 24 65 F0 [14:05:08]GetLastDocTimeStamp 1729778477 [14:05:08]current date 1729778719 [14:05:08]FM_GetShiftState [14:05:08]SAM_PROTO_GetShiftState [14:05:08]wFMCommunicate request_size=4 [14:05:08]MH_SAM_APDU [14:05:08]CAPDU: 80 13 01 00 [14:05:08]Write to MH i2c: E2 08 00 25 7A 80 13 01 00 00 00 00 00 1C [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:08]Read from MH i2c: E2 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 0E 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 0E 00 25 7A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 46 [14:05:08]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:05:08]wFMCommunicate OK [14:05:08]SAM_PROTO_GetShiftState done [14:05:08]FM_GetShiftState done [14:05:08]opened in 1729729801 [14:05:08]opened+sec_in_day 1729816201 [14:05:08]quantity*price = 287134 [14:05:08]sum+1 = 287136 [14:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2871.35 НСП 1% : 25.41 НДС 12% : 304.92 Наличными: 0.00 Безнал.: 2871.35 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 110 24.10.2024 14:05 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 74666 ФПД: 87257706602571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140519&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74666&fm=87257706602571&tin=02508201610067®Number=0000000000091691&sum=287135 [14:05:09]StoreToDocumentArchive [14:05:09]shift 510 fd 74666 [14:05:09]save to /storage/0510/doc_00074666 [14:05:09]save last doc name /storage/0510/doc_00074666 to /storage/kkm_last_doc_name [14:05:09]save OK [14:05:09]Clear old archive folders... [14:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:09]tlvbuf is 00AF12F0 [14:05:09]SAM_PROTO_ClearQueue [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 09 00 00 [14:05:09]Write to MH i2c: E2 08 00 32 7A 80 09 00 00 00 00 00 00 1E [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 32 7A 00 90 00 20 [14:05:09]RAPDU: 90 00 [14:05:09]wFMCommunicate OK [14:05:09]SAM_PROTO_ClearQueue done [14:05:09]KKMCreateOFDPacket [14:05:09]OFDProtocolAddRootSTLVToBuf [14:05:09]FM_MakeSignedData [14:05:09]FM_MakeSignedData [14:05:09]SAM_PROTO_SignData [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 0D 01 02 [14:05:09]Write to MH i2c: E2 08 00 33 7A 80 0D 01 02 00 00 00 00 26 [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 33 7A 00 90 00 21 [14:05:09]RAPDU: 90 00 [14:05:09]wFMCommunicate OK [14:05:09]wFMCommunicate request_size=255 [14:05:09]MH_SAM_APDU [14:05: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 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 61 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 1F 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 23 01 00 35 04 06 00 4F [14:05:09]Write to MH i2c: E2 02 01 34 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 61 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 1F 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 23 01 00 35 04 06 00 4F 00 00 D4 [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 34 7A 00 90 00 22 [14:05:09]RAPDU: 90 00 [14:05:09]wFMCommunicate OK [14:05:09]wFMCommunicate request_size=10 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 0D 02 02 05 5C 44 9B 20 4B [14:05:09]Write to MH i2c: E2 0D 00 35 7A 80 0D 02 02 05 00 5C 44 9B 20 4B 00 00 D9 [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 03 00 35 7A 00 90 00 23 [14:05:09]RAPDU: 90 00 [14:05:09]wFMCommunicate OK [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 0D 03 02 [14:05:09]Write to MH i2c: E2 08 00 36 7A 80 0D 03 02 00 00 00 00 2B [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 0B 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 0B 00 36 7A 00 2E 8C 93 29 76 A4 CF 46 90 00 D1 [14:05:09]RAPDU: 2E 8C 93 29 76 A4 CF 46 90 00 [14:05:09]wFMCommunicate OK [14:05:09]SAM_PROTO_SignData done [14:05:09]FM_MakeSignedData done [14:05:09]CreateOFDProtocolMessage [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 11 00 00 [14:05:09]Write to MH i2c: E2 08 00 37 7A 80 11 00 00 00 00 00 00 2B [14:05:09]OFD Sender: No OFD packet to send [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 17 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 17 00 37 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [14:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:05:10]wFMCommunicate OK [14:05:10]CreateOFDProtocolMessage done [14:05:10]OFDSenderStorePacket 74666 [14:05:10]StoreOFDPacket docnum=74666 [14:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F1 54 07 01 73 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 61 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 1F 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 23 01 00 35 04 06 00 4F 5C 44 9B 20 4B 2E 8C 93 29 76 A4 CF 46 [14:05:10]CheckFolder [14:05:10]dirname=/storage/ofd_packets [14:05:10]CheckFolder done [14:05:10]ProducePacketName [14:05:10]name=ofd_packets/00074666 [14:05:10]NVStorageSaveData ofd_packets/00074666 [14:05:10]File name is /storage/ofd_packets/00074666 [14:05:10]Write 301 bytes [14:05:10]NVStorageSaveData done [14:05:10]OFDSenderStorePacket done [14:05:10]KKMCreateOFDPacket done [14:05:10]NVStorageSaveData kkm_last_timestamp [14:05:10]File name is /storage/kkm_last_timestamp [14:05:10]Write 4 bytes [14:05:10]NVStorageSaveData done [14:05:10]ExternCall_PrintAddStr [14:05:10]wPrintStart [14:05:10]Write to MH i2c: 01 00 00 38 7A B2 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 07 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 07 00 38 7A 00 00 00 00 00 FF 0F C7 [14:05:10]RasterBufferAndPrint [14:05:10]line Счет N : (1)190631 [14:05:10]line ИНН: 02508201610067 [14:05:10]line Контрольно-Кассовый Чек [14:05:10]line ПРОДАЖА [14:05:10]line ТРК (МРК, ГНК) : 21 [14:05:10]line Товар: 2710124130 [14:05:10]line Аи-92-К-5 [14:05:10]line 42.920 * 66.90 [14:05:10]line = 2871.35 [14:05:10]line НДС 12% НСП 1% [14:05:10]line > о реализуемом товаре [14:05:10]line ИТОГО: 2871.35 [14:05:10]line НСП 1% : 25.41 [14:05:10]line НДС 12% : 304.92 [14:05:10]line Наличными: 0.00 [14:05:10]line Безнал.: 2871.35 [14:05:10]line Место: АЗС № 142 "Партнер Нефть" [14:05:10]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:05:10]line СНО: Общий режим [14:05:10]line Чек 110 24.10.2024 14:05 [14:05:10]line Смена: 510 ФФД: 1.0 [14:05:10]line ЗНМ: 0300000089 [14:05:10]line РНМ: 0000000000091691 [14:05:10]line Версия ККМ: 001 [14:05:10]line Платежная система: O! деньги [14:05:10]line ФМ: 0000000000871795 [14:05:10]line ФД: 74666 [14:05:10]line ФПД: 87257706602571 [14:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140519&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74666&fm=87257706602571&tin=02508201610067®Number=0000000000091691&sum=287135 [14:05:10]written 0, free lines is 4095 [14:05:10]OFD Sender: Processing packet 74666 [packets to send 13, broken 12] [14:05:10]ProducePacketName [14:05:10]name=ofd_packets/00074666 [14:05:10]OFD Sender: To server: pG, [14:05:10]CommunicateWithHost lk.salyk.kg:30040 [14:05:10]ConnectInit lk.salyk.kg [14:05:10]Connected sock=10 [14:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F1 54 07 01 73 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 61 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 1F 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 23 01 00 35 04 06 00 4F 5C 44 9B 20 4B 2E 8C 93 29 76 A4 CF 46 [14:05:10]Write to MH i2c: 01 00 00 62 7A DC [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 07 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 07 00 62 7A 00 00 00 00 00 C5 0C B4 [14:05:10]RasterBufferAndPrint [14:05:10]line [14:05:10]line [14:05:10]line [14:05:10]line [14:05:10]line [14:05:10]written 0, free lines is 3275 [14:05:10]MH_Cut [14:05:10]Write to MH i2c: D1 01 00 69 7A 01 B5 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: D1 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: D1 01 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: D1 01 00 69 7A 00 B4 [14:05:10]Write to MH i2c: 01 00 00 6A 7A E4 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 09 A0 47 00 3E 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 23 01 00 F4 03 04 00 A1 FB 19 67 B6 04 01 00 00 E5 19 A3 22 CF EE E8 DD [14:05:10]CommunicateWithHost err = 0 [14:05:10]CheckOFDResponse [14:05:10]1017 (14) - 77093643461234 [14:05:10]1041 (16) - 0000000000871795 [14:05:10]1040 (4) - 74666 [14:05:10]1012 (4) - 24.10.2024 07:47 [14:05:10]1206 (1) - 0 [14:05:10]OFD Sender: Remove packet 74666 [14:05:10]ProducePacketName [14:05:10]name=ofd_packets/00074666 [14:05:10]NVStorageDeleteData [14:05:11]OFD Sender: No OFD packet to send [14:05:11]*** Cut start [14:05:11]*** Partial cut [14:05:11]*** CUTSNS_PIN = 1 [14:05:11]*** CUTSNS_PIN = 0 [14:05:11]*** Brake cut motor [14:05:12]Read from MH i2c: 01 [14:05:12]MH_I2C_Read... [14:05:12]*** Stop cut motor [14:05:12]*** Cut end [14:05:12]Read from MH i2c: 01 07 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 6A 7A 00 00 00 00 00 FF 0F F9 [14:05:12]process_action close_receipt done [14:05:12]requested_data is exist [14:05:12]produce_requested_data [14:05:12]requested_item fm.sn is exist - process it [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 11 00 00 [14:05:12]Write to MH i2c: E2 08 00 6B 7A 80 11 00 00 00 00 00 00 5F [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 6B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B7 [14:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:05:12]wFMCommunicate OK [14:05:12]requested_item fd.num is exist - process it [14:05:12]SAM_PROTO_GetFieldsCounters [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 13 00 00 [14:05:12]Write to MH i2c: E2 08 00 6C 7A 80 13 00 00 00 00 00 00 62 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 62 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 62 00 6C 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AA 23 01 00 0E 04 04 00 FE 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 A0 [14:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AA 23 01 00 0E 04 04 00 FE 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 [14:05:12]wFMCommunicate OK [14:05:12]SAM_PROTO_GetFieldsCounters done [14:05:12]requested_item shift.num is exist - process it [14:05:12]requested_item shift.opened is exist - process it [14:05:12]req_shift_opened [14:05:12]FM_GetShiftState [14:05:12]SAM_PROTO_GetShiftState [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 13 01 00 [14:05:12]Write to MH i2c: E2 08 00 6D 7A 80 13 01 00 00 00 00 00 64 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 0E 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 0E 00 6D 7A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 8E [14:05:12]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:05:12]wFMCommunicate OK [14:05:12]SAM_PROTO_GetShiftState done [14:05:12]FM_GetShiftState done [14:05:12]req_shift_opened done [14:05:12]requested_item shift.open_date is exist - process it [14:05:12]req_shift_open_date [14:05:12]req_shift_open_date done [14:05:12]produce_requested_data done [14:05:12]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74666,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:05:12]process_action_free close_receipt [14:05:12]json_value_free [14:05:12]json_value_free done [14:05:12]process_json_proto returns [14:05:12]Send response to host [14:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74666,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:05:12]free response buf [14:05:12]execute_script done [14:05:12]execute_script returns [14:05:12]free content buf [14:05:12]Sock 9.Close socket [14:05:12]Sock 9.Thread stoped [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:54]accept exits with 8 [14:05:54]New connection [14:05:54]New thread 3066662244 created [14:05:54]Thread 3066805604 joined [14:05:54]Waiting for new connection... [14:05:54] Sock 8.Parse request [14:05:54]Sock 8.Check first char [14:05:54]Sock 8.First char is OK [14:05:54]request: POST /json_proto HTTP/1.0 [14:05:54]Method: POST [14:05:54]URL: /json_proto [14:05:54]Method is POST - this is cgi request [14:05:54]url: /json_proto [14:05:54]query_string will be loaded in cgi processing [14:05:54]execute_cgi json_proto POST (null) [14:05:54]execute_cgi path=json_proto method=POST [14:05:54]POST find Content-Length [14:05:54]Host: 172.17.39.131:8080 [14:05:54]Content-Length: 677 [14:05:54]Content-Type: application/json [14:05:54] [14:05:54]POST finish read [14:05:54]Found Content-Length = 677 [14:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:54]execute_script... [14:05: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)190632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:54]POST & json_proto [14:05:54]process_json_proto [14:05:54]json parsed OK: [14:05:54]protocol is kg_v1.0 [14:05:54]action value=close_receipt [14:05:54]process_action close_receipt [14:05:54]cmd_close_receipt [14:05:54]MH_GetDate [14:05:54]Write to MH i2c: F0 00 00 6E 7A D7 [14:05:54]Write i2c OK [14:05:54]MH_I2C_Read... [14:05:54]Read from MH i2c: F0 [14:05:54]MH_I2C_Read... [14:05:54]Read from MH i2c: F0 09 00 [14:05:54]MH_I2C_Read... [14:05:54]Read from MH i2c: F0 09 00 6E 7A 00 4D 54 1A 67 86 57 24 65 68 [14:05:54]GetLastDocTimeStamp 1729778719 [14:05:54]current date 1729778765 [14:05:54]FM_GetShiftState [14:05:54]SAM_PROTO_GetShiftState [14:05:54]wFMCommunicate request_size=4 [14:05:54]MH_SAM_APDU [14:05:54]CAPDU: 80 13 01 00 [14:05:54]Write to MH i2c: E2 08 00 6F 7A 80 13 01 00 00 00 00 00 66 [14:05:54]Write i2c OK [14:05:54]MH_I2C_Read... [14:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:54]Read from MH i2c: E2 [14:05:54]MH_I2C_Read... [14:05:54]Read from MH i2c: E2 0E 00 [14:05:54]MH_I2C_Read... [14:05:54]Read from MH i2c: E2 0E 00 6F 7A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 90 [14:05:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:05:54]wFMCommunicate OK [14:05:54]SAM_PROTO_GetShiftState done [14:05:54]FM_GetShiftState done [14:05:54]opened in 1729729801 [14:05:54]opened+sec_in_day 1729816201 [14:05:54]quantity*price = 50041 [14:05:54]sum+1 = 50042 [14:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 111 24.10.2024 14:06 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74667 ФПД: 271274744411997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140606&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74667&fm=271274744411997&tin=02508201610067®Number=0000000000091691&sum=50000 [14:05:55]StoreToDocumentArchive [14:05:55]shift 510 fd 74667 [14:05:55]save to /storage/0510/doc_00074667 [14:05:55]save last doc name /storage/0510/doc_00074667 to /storage/kkm_last_doc_name [14:05:55]save OK [14:05:55]Clear old archive folders... [14:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:55]tlvbuf is 00AF1520 [14:05:55]SAM_PROTO_ClearQueue [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 09 00 00 [14:05:55]Write to MH i2c: E2 08 00 7C 7A 80 09 00 00 00 00 00 00 68 [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 03 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 03 00 7C 7A 00 90 00 6A [14:05:55]RAPDU: 90 00 [14:05:55]wFMCommunicate OK [14:05:55]SAM_PROTO_ClearQueue done [14:05:55]KKMCreateOFDPacket [14:05:55]OFDProtocolAddRootSTLVToBuf [14:05:55]FM_MakeSignedData [14:05:55]FM_MakeSignedData [14:05:55]SAM_PROTO_SignData [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 0D 01 02 [14:05:55]Write to MH i2c: E2 08 00 7D 7A 80 0D 01 02 00 00 00 00 70 [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 03 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 03 00 7D 7A 00 90 00 6B [14:05:55]RAPDU: 90 00 [14:05:55]wFMCommunicate OK [14:05:55]wFMCommunicate request_size=255 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4E 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 23 01 00 35 04 06 00 F6 [14:05:55]Write to MH i2c: E2 02 01 7E 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4E 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 23 01 00 35 04 06 00 F6 00 00 5B [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:56]Read from MH i2c: E2 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 7E 7A 00 90 00 6C [14:05:56]RAPDU: 90 00 [14:05:56]wFMCommunicate OK [14:05:56]wFMCommunicate request_size=10 [14:05:56]MH_SAM_APDU [14:05:56]CAPDU: 80 0D 02 02 05 B9 12 C6 F7 5D [14:05:56]Write to MH i2c: E2 0D 00 7F 7A 80 0D 02 02 05 00 B9 12 C6 F7 5D 00 00 62 [14:05:56]Write i2c OK [14:05:56]MH_I2C_Read... [14:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:56]Read from MH i2c: E2 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 7F 7A 00 90 00 6D [14:05:56]RAPDU: 90 00 [14:05:56]wFMCommunicate OK [14:05:56]wFMCommunicate request_size=4 [14:05:56]MH_SAM_APDU [14:05:56]CAPDU: 80 0D 03 02 [14:05:56]Write to MH i2c: E2 08 00 80 7A 80 0D 03 02 00 00 00 00 75 [14:05:56]Write i2c OK [14:05:56]MH_I2C_Read... [14:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:56]Read from MH i2c: E2 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 0B 00 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 0B 00 80 7A 00 EC 88 24 4B 51 55 EA 7D 90 00 66 [14:05:56]RAPDU: EC 88 24 4B 51 55 EA 7D 90 00 [14:05:56]wFMCommunicate OK [14:05:56]SAM_PROTO_SignData done [14:05:56]FM_MakeSignedData done [14:05:56]CreateOFDProtocolMessage [14:05:56]wFMCommunicate request_size=4 [14:05:56]MH_SAM_APDU [14:05:56]CAPDU: 80 11 00 00 [14:05:56]Write to MH i2c: E2 08 00 81 7A 80 11 00 00 00 00 00 00 75 [14:05:56]Write i2c OK [14:05:56]MH_I2C_Read... [14:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:56]Read from MH i2c: E2 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 17 00 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 17 00 81 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CD [14:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:05:56]wFMCommunicate OK [14:05:56]CreateOFDProtocolMessage done [14:05:56]OFDSenderStorePacket 74667 [14:05:56]StoreOFDPacket docnum=74667 [14:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 23 13 07 01 0A 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4E 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 23 01 00 35 04 06 00 F6 B9 12 C6 F7 5D EC 88 24 4B 51 55 EA 7D [14:05:56]CheckFolder [14:05:56]dirname=/storage/ofd_packets [14:05:56]CheckFolder done [14:05:56]ProducePacketName [14:05:56]name=ofd_packets/00074667 [14:05:56]NVStorageSaveData ofd_packets/00074667 [14:05:56]File name is /storage/ofd_packets/00074667 [14:05:56]Write 301 bytes [14:05:56]NVStorageSaveData done [14:05:56]OFDSenderStorePacket done [14:05:56]KKMCreateOFDPacket done [14:05:56]NVStorageSaveData kkm_last_timestamp [14:05:56]File name is /storage/kkm_last_timestamp [14:05:56]Write 4 bytes [14:05:56]NVStorageSaveData done [14:05:56]ExternCall_PrintAddStr [14:05:56]wPrintStart [14:05:56]Write to MH i2c: 01 00 00 82 7A FC [14:05:56]Write i2c OK [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: 01 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: 01 07 00 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: 01 07 00 82 7A 00 00 00 00 00 FF 0F 11 [14:05:56]RasterBufferAndPrint [14:05:56]line Счет N : (1)190632 [14:05:56]line ИНН: 02508201610067 [14:05:56]line Контрольно-Кассовый Чек [14:05:56]line ПРОДАЖА [14:05:56]line ТРК (МРК, ГНК) : 21 [14:05:56]line Товар: 2710124130 [14:05:56]line Аи-92-К-5 [14:05:56]line 7.480 * 66.90 [14:05:56]line = 500.41 [14:05:56]line НДС 12% НСП 1% [14:05:56]line > о реализуемом товаре [14:05:56]line ОКРУГЛЕНИЕ: -0.41 [14:05:56]line ИТОГО: 500.00 [14:05:56]line Внесено: 500.00 [14:05:56]line СДАЧА: 0.00 [14:05:56]line НСП 1% : 4.43 [14:05:56]line НДС 12% : 53.14 [14:05:56]line Наличными: 500.00 [14:05:56]line Безнал.: 0.00 [14:05:56]line Место: АЗС № 142 "Партнер Нефть" [14:05:56]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:05:56]line СНО: Общий режим [14:05:56]line Чек 111 24.10.2024 14:06 [14:05:56]line Смена: 510 ФФД: 1.0 [14:05:56]line ЗНМ: 0300000089 [14:05:56]line РНМ: 0000000000091691 [14:05:56]line Версия ККМ: 001 [14:05:56]line ФМ: 0000000000871795 [14:05:56]line ФД: 74667 [14:05:56]line ФПД: 271274744411997 [14:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140606&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74667&fm=271274744411997&tin=02508201610067®Number=0000000000091691&sum=50000 [14:05:56]written 0, free lines is 4095 [14:05:56]OFD Sender: Processing packet 74667 [packets to send 13, broken 12] [14:05:56]ProducePacketName [14:05:56]name=ofd_packets/00074667 [14:05:56]OFD Sender: To server: pG, [14:05:56]CommunicateWithHost lk.salyk.kg:30040 [14:05:56]ConnectInit lk.salyk.kg [14:05:57]Write to MH i2c: 01 00 00 AD 7A 27 [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 07 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 07 00 AD 7A 00 00 00 00 00 97 0C D1 [14:05:57]RasterBufferAndPrint [14:05:57]line [14:05:57]line [14:05:57]line [14:05:57]line [14:05:57]line [14:05:57]written 0, free lines is 3227 [14:05:57]MH_Cut [14:05:57]Write to MH i2c: D1 01 00 B4 7A 01 00 [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: D1 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: D1 01 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: D1 01 00 B4 7A 00 FF [14:05:57]Write to MH i2c: 01 00 00 B5 7A 2F [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]*** Cut start [14:05:57]*** Partial cut [14:05:57]*** CUTSNS_PIN = 1 [14:05:57]*** CUTSNS_PIN = 0 [14:05:58]*** Brake cut motor [14:05:58]Connected sock=11 [14:05:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 23 13 07 01 0A 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4E 54 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 23 01 00 35 04 06 00 F6 B9 12 C6 F7 5D EC 88 24 4B 51 55 EA 7D [14:05:58]Read from MH i2c: 01 [14:05:58]MH_I2C_Read... [14:05:58]*** Stop cut motor [14:05:58]*** Cut end [14:05:58]Read from MH i2c: 01 07 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: 01 07 00 B5 7A 00 00 00 00 00 FF 0F 44 [14:05:58]process_action close_receipt done [14:05:58]requested_data is exist [14:05:58]produce_requested_data [14:05:58]requested_item fm.sn is exist - process it [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 11 00 00 [14:05:58]Write to MH i2c: E2 08 00 B6 7A 80 11 00 00 00 00 00 00 AA [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 17 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 17 00 B6 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [14:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:05:58]wFMCommunicate OK [14:05:58]requested_item fd.num is exist - process it [14:05:58]SAM_PROTO_GetFieldsCounters [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 13 00 00 [14:05:58]Write to MH i2c: E2 08 00 B7 7A 80 13 00 00 00 00 00 00 AD [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 62 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 62 00 B7 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AB 23 01 00 0E 04 04 00 FE 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 EF [14:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AB 23 01 00 0E 04 04 00 FE 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 [14:05:58]wFMCommunicate OK [14:05:58]SAM_PROTO_GetFieldsCounters done [14:05:58]requested_item shift.num is exist - process it [14:05:58]requested_item shift.opened is exist - process it [14:05:58]req_shift_opened [14:05:58]FM_GetShiftState [14:05:58]SAM_PROTO_GetShiftState [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 13 01 00 [14:05:58]Write to MH i2c: E2 08 00 B8 7A 80 13 01 00 00 00 00 00 AF [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 82 3A 47 00 79 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 23 01 00 F4 03 04 00 D1 FB 19 67 B6 04 01 00 00 4E 07 3F 93 3C 6A 1B 22 [14:05:58]CommunicateWithHost err = 0 [14:05:58]CheckOFDResponse [14:05:58]1017 (14) - 77093643461234 [14:05:58]1041 (16) - 0000000000871795 [14:05:58]1040 (4) - 74667 [14:05:58]1012 (4) - 24.10.2024 07:48 [14:05:58]1206 (1) - 0 [14:05:58]OFD Sender: Remove packet 74667 [14:05:58]ProducePacketName [14:05:58]name=ofd_packets/00074667 [14:05:58]NVStorageDeleteData [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:58]Read from MH i2c: E2 0E 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 0E 00 B8 7A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D9 [14:05:58]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:05:58]wFMCommunicate OK [14:05:58]SAM_PROTO_GetShiftState done [14:05:58]FM_GetShiftState done [14:05:58]req_shift_opened done [14:05:58]requested_item shift.open_date is exist - process it [14:05:58]req_shift_open_date [14:05:58]req_shift_open_date done [14:05:58]produce_requested_data done [14:05:58]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74667,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:05:58]process_action_free close_receipt [14:05:58]json_value_free [14:05:58]json_value_free done [14:05:58]process_json_proto returns [14:05:58]Send response to host [14:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74667,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:05:58]free response buf [14:05:58]execute_script done [14:05:58]execute_script returns [14:05:58]free content buf [14:05:58]Sock 8.Close socket [14:05:58]Sock 8.Thread stoped [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:28]int [14:06:28]Write to MH i2c: 01 00 00 B9 7A 33 [14:06:28]*** FLAG_PRN_KEY set [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 B9 7A 00 08 00 00 00 FF 0F 50 [14:06:28]state=0 [14:06:28]Key pressed [14:06:28]Feed [14:06:28]Write to MH i2c: D8 00 00 BA 7A 0B [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: D8 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: D8 01 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: D8 01 00 BA 7A 00 0C [14:06:28]int [14:06:28]Write to MH i2c: 01 00 00 BB 7A 35 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 BB 7A 00 48 00 00 00 3C 00 C0 [14:06:28]state=2 [14:06:28]Key pressed [14:06:28]int [14:06:28]Write to MH i2c: 01 00 00 BC 7A 36 [14:06:28]*** FLAG_PRN_KEY reset [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 BC 7A 00 00 00 00 00 F5 0F 41 [14:06:28]state=2 [14:06:28]Stop feed [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:05]recv_with_timeout no data received [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:10]accept exits with 10 [14:25:10]New connection [14:25:10]New thread 3066805604 created [14:25:10]Thread 3066662244 joined [14:25:10]Waiting for new connection... [14:25:10] Sock 10.Parse request [14:25:10]Sock 10.Check first char [14:25:10]Sock 10.First char is OK [14:25:10]request: POST /json_proto HTTP/1.0 [14:25:10]Method: POST [14:25:10]URL: /json_proto [14:25:10]Method is POST - this is cgi request [14:25:10]url: /json_proto [14:25:10]query_string will be loaded in cgi processing [14:25:10]execute_cgi json_proto POST (null) [14:25:10]execute_cgi path=json_proto method=POST [14:25:10]POST find Content-Length [14:25:10]Host: 172.17.39.131:8080 [14:25:10]Content-Length: 679 [14:25:10]Content-Type: application/json [14:25:10] [14:25:10]POST finish read [14:25:10]Found Content-Length = 679 [14:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:10]execute_script... [14:25: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)190634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:10]POST & json_proto [14:25:10]process_json_proto [14:25:10]json parsed OK: [14:25:10]protocol is kg_v1.0 [14:25:10]action value=close_receipt [14:25:10]process_action close_receipt [14:25:10]cmd_close_receipt [14:25:10]MH_GetDate [14:25:10]Write to MH i2c: F0 00 00 BD 7A 26 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: F0 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: F0 09 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: F0 09 00 BD 7A 00 D2 58 1A 67 86 57 24 65 40 [14:25:10]GetLastDocTimeStamp 1729778766 [14:25:10]current date 1729779922 [14:25:10]FM_GetShiftState [14:25:10]SAM_PROTO_GetShiftState [14:25:10]wFMCommunicate request_size=4 [14:25:10]MH_SAM_APDU [14:25:10]CAPDU: 80 13 01 00 [14:25:10]Write to MH i2c: E2 08 00 BE 7A 80 13 01 00 00 00 00 00 B5 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:10]Read from MH i2c: E2 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 0E 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 0E 00 BE 7A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 DF [14:25:10]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:25:10]wFMCommunicate OK [14:25:10]SAM_PROTO_GetShiftState done [14:25:10]FM_GetShiftState done [14:25:10]opened in 1729729801 [14:25:10]opened+sec_in_day 1729816201 [14:25:10]quantity*price = 200025 [14:25:10]sum+1 = 200026 [14:25:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 112 24.10.2024 14:25 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74668 ФПД: 129634667175731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142522&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74668&fm=129634667175731&tin=02508201610067®Number=0000000000091691&sum=200000 [14:25:12]StoreToDocumentArchive [14:25:12]shift 510 fd 74668 [14:25:12]save to /storage/0510/doc_00074668 [14:25:12]save last doc name /storage/0510/doc_00074668 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=248 [14:25:12]tlvbuf is 007C64D0 [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 CB 7A 80 09 00 00 00 00 00 00 B7 [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 CB 7A 00 90 00 B9 [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 CC 7A 80 0D 01 02 00 00 00 00 BF [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 CC 7A 00 90 00 BA [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 D2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 23 01 00 35 04 06 00 75 E6 EC 49 [14:25:12]Write to MH i2c: E2 02 01 CD 7A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 D2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 23 01 00 35 04 06 00 75 E6 EC 49 00 00 B1 [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 CD 7A 00 90 00 BB [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]wFMCommunicate request_size=7 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 02 02 02 9F 33 [14:25:12]Write to MH i2c: E2 0A 00 CE 7A 80 0D 02 02 02 00 9F 33 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 CE 7A 00 90 00 BC [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 CF 7A 80 0D 03 02 00 00 00 00 C4 [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 CF 7A 00 F4 9B DB F4 D9 5E 7D BC 90 00 93 [14:25:12]RAPDU: F4 9B DB F4 D9 5E 7D BC 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 D0 7A 80 11 00 00 00 00 00 00 C4 [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 D0 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1C [14:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:25:12]wFMCommunicate OK [14:25:12]CreateOFDProtocolMessage done [14:25:12]OFDSenderStorePacket 74668 [14:25:12]StoreOFDPacket docnum=74668 [14:25:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 46 9E 04 01 7D 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 D2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 23 01 00 35 04 06 00 75 E6 EC 49 9F 33 F4 9B DB F4 D9 5E 7D BC [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/00074668 [14:25:12]NVStorageSaveData ofd_packets/00074668 [14:25:12]File name is /storage/ofd_packets/00074668 [14:25:12]Write 298 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 D1 7A 4B [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 D1 7A 00 00 00 00 00 FF 0F 60 [14:25:12]RasterBufferAndPrint [14:25:12]line Счет N : (1)190634 [14:25:12]line ИНН: 02508201610067 [14:25:12]line Контрольно-Кассовый Чек [14:25:12]line ПРОДАЖА [14:25:12]line ТРК (МРК, ГНК) : 31 [14:25:12]line Товар: 2710194210 [14:25:12]line ДТ-К-4 [14:25:12]line 26.250 * 76.20 [14:25:12]line = 2000.25 [14:25:12]line НДС 12% НСП 1% [14:25:12]line > о реализуемом товаре [14:25:12]line ОКРУГЛЕНИЕ: -0.25 [14:25:12]line ИТОГО: 2000.00 [14:25:12]line Внесено: 2000.00 [14:25:12]line СДАЧА: 0.00 [14:25:12]line НСП 1% : 17.70 [14:25:12]line НДС 12% : 212.42 [14:25:12]line Наличными: 2000.00 [14:25:12]line Безнал.: 0.00 [14:25:12]line Место: АЗС № 142 "Партнер Нефть" [14:25:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:25:12]line СНО: Общий режим [14:25:12]line Чек 112 24.10.2024 14:25 [14:25:12]line Смена: 510 ФФД: 1.0 [14:25:12]line ЗНМ: 0300000089 [14:25:12]line РНМ: 0000000000091691 [14:25:12]line Версия ККМ: 001 [14:25:12]line ФМ: 0000000000871795 [14:25:12]line ФД: 74668 [14:25:12]line ФПД: 129634667175731 [14:25:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142522&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74668&fm=129634667175731&tin=02508201610067®Number=0000000000091691&sum=200000 [14:25:12]OFD Sender: Processing packet 74668 [packets to send 13, broken 12] [14:25:12]ProducePacketName [14:25:12]name=ofd_packets/00074668 [14:25:12]OFD Sender: To server: pG, [14:25:12]CommunicateWithHost lk.salyk.kg:30040 [14:25:12]ConnectInit lk.salyk.kg [14:25:12]written 0, free lines is 4095 [14:25:13]Connected sock=9 [14:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 46 9E 04 01 7D 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 D2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 23 01 00 35 04 06 00 75 E6 EC 49 9F 33 F4 9B DB F4 D9 5E 7D BC [14:25:13]Write to MH i2c: 01 00 00 FC 7A 76 [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 FC 7A 00 00 00 00 00 B0 0C 39 [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 3254 [14:25:13]MH_Cut [14:25:13]Write to MH i2c: D1 01 00 03 7B 01 50 [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 03 7B 00 4F [14:25:13]Write to MH i2c: 01 00 00 04 7B 7F [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CC A6 47 00 07 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 23 01 00 F4 03 04 00 54 00 1A 67 B6 04 01 00 00 6A DC 87 AD 91 ED BF 34 [14:25:13]CommunicateWithHost err = 0 [14:25:13]CheckOFDResponse [14:25:13]1017 (14) - 77093643461234 [14:25:13]1041 (16) - 0000000000871795 [14:25:13]1040 (4) - 74668 [14:25:13]1012 (4) - 24.10.2024 08:07 [14:25:13]1206 (1) - 0 [14:25:13]OFD Sender: Remove packet 74668 [14:25:13]ProducePacketName [14:25:13]name=ofd_packets/00074668 [14:25:13]NVStorageDeleteData [14:25:14]OFD Sender: No OFD packet to send [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:14]Read from MH i2c: 01 [14:25:14]MH_I2C_Read... [14:25:14]*** Stop cut motor [14:25:14]*** Cut end [14:25:14]Read from MH i2c: 01 07 00 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: 01 07 00 04 7B 00 00 00 00 00 FF 0F 94 [14:25:14]process_action close_receipt done [14:25:14]requested_data is exist [14:25:14]produce_requested_data [14:25:14]requested_item fm.sn is exist - process it [14:25:14]wFMCommunicate request_size=4 [14:25:14]MH_SAM_APDU [14:25:14]CAPDU: 80 11 00 00 [14:25:14]Write to MH i2c: E2 08 00 05 7B 80 11 00 00 00 00 00 00 FA [14:25:14]Write i2c OK [14:25:14]MH_I2C_Read... [14:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:14]Read from MH i2c: E2 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 17 00 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 17 00 05 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 52 [14:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:25:14]wFMCommunicate OK [14:25:14]requested_item fd.num is exist - process it [14:25:14]SAM_PROTO_GetFieldsCounters [14:25:14]wFMCommunicate request_size=4 [14:25:14]MH_SAM_APDU [14:25:14]CAPDU: 80 13 00 00 [14:25:14]Write to MH i2c: E2 08 00 06 7B 80 13 00 00 00 00 00 00 FD [14:25:14]Write i2c OK [14:25:14]MH_I2C_Read... [14:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:15]Read from MH i2c: E2 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 62 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 62 00 06 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AC 23 01 00 0E 04 04 00 FE 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 43 [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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AC 23 01 00 0E 04 04 00 FE 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 [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 07 7B 80 13 01 00 00 00 00 00 FF [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 07 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 29 [14:25:15]RAPDU: 09 00 01 09 95 19 67 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":"0000000000871795","fd.num":74668,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [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":"0000000000871795","fd.num":74668,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [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 10.Close socket [14:25:15]Sock 10.Thread stoped [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:42]accept exits with 8 [14:25:42]New connection [14:25:42]New thread 3066662244 created [14:25:42]Thread 3066805604 joined [14:25:42]Waiting for new connection... [14:25:42] Sock 8.Parse request [14:25:42]Sock 8.Check first char [14:25:42]Sock 8.First char is OK [14:25:42]request: POST /json_proto HTTP/1.0 [14:25:42]Method: POST [14:25:42]URL: /json_proto [14:25:42]Method is POST - this is cgi request [14:25:42]url: /json_proto [14:25:42]query_string will be loaded in cgi processing [14:25:42]execute_cgi json_proto POST (null) [14:25:42]execute_cgi path=json_proto method=POST [14:25:42]POST find Content-Length [14:25:42]Host: 172.17.39.131:8080 [14:25:42]Content-Length: 685 [14:25:42]Content-Type: application/json [14:25:42] [14:25:42]POST finish read [14:25:42]Found Content-Length = 685 [14:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:25:42]execute_script... [14:25: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)190633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:25:42]POST & json_proto [14:25:42]process_json_proto [14:25:42]json parsed OK: [14:25:42]protocol is kg_v1.0 [14:25:42]action value=close_receipt [14:25:42]process_action close_receipt [14:25:42]cmd_close_receipt [14:25:42]MH_GetDate [14:25:42]Write to MH i2c: F0 00 00 08 7B 72 [14:25:42]Write i2c OK [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: F0 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: F0 09 00 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: F0 09 00 08 7B 00 F2 58 1A 67 86 57 24 65 AC [14:25:42]GetLastDocTimeStamp 1729779922 [14:25:42]current date 1729779954 [14:25:42]FM_GetShiftState [14:25:42]SAM_PROTO_GetShiftState [14:25:42]wFMCommunicate request_size=4 [14:25:42]MH_SAM_APDU [14:25:42]CAPDU: 80 13 01 00 [14:25:42]Write to MH i2c: E2 08 00 09 7B 80 13 01 00 00 00 00 00 01 [14:25:42]Write i2c OK [14:25:42]MH_I2C_Read... [14:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:42]Read from MH i2c: E2 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: E2 0E 00 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: E2 0E 00 09 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 2B [14:25:42]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:25:42]wFMCommunicate OK [14:25:42]SAM_PROTO_GetShiftState done [14:25:42]FM_GetShiftState done [14:25:42]opened in 1729729801 [14:25:42]opened+sec_in_day 1729816201 [14:25:42]quantity*price = 100011 [14:25:42]sum+1 = 100013 [14:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 113 24.10.2024 14:25 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74669 ФПД: 237887313643211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142554&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74669&fm=237887313643211&tin=02508201610067®Number=0000000000091691&sum=100000 [14:25:43]StoreToDocumentArchive [14:25:43]shift 510 fd 74669 [14:25:43]save to /storage/0510/doc_00074669 [14:25:43]save last doc name /storage/0510/doc_00074669 to /storage/kkm_last_doc_name [14:25:43]save OK [14:25:43]Clear old archive folders... [14:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:25:43]tlvbuf is 007EB930 [14:25:43]SAM_PROTO_ClearQueue [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 09 00 00 [14:25:43]Write to MH i2c: E2 08 00 16 7B 80 09 00 00 00 00 00 00 03 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 16 7B 00 90 00 05 [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]SAM_PROTO_ClearQueue done [14:25:43]KKMCreateOFDPacket [14:25:43]OFDProtocolAddRootSTLVToBuf [14:25:43]FM_MakeSignedData [14:25:43]FM_MakeSignedData [14:25:43]SAM_PROTO_SignData [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 0D 01 02 [14:25:43]Write to MH i2c: E2 08 00 17 7B 80 0D 01 02 00 00 00 00 0B [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 17 7B 00 90 00 06 [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]wFMCommunicate request_size=255 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 23 01 00 35 04 06 00 D8 5B [14:25:43]Write to MH i2c: E2 02 01 18 7B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 23 01 00 35 04 06 00 D8 5B 00 00 B1 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:44]OFD Sender: No OFD packet to send [14:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:44]Read from MH i2c: E2 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 03 00 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 03 00 18 7B 00 90 00 07 [14:25:44]RAPDU: 90 00 [14:25:44]wFMCommunicate OK [14:25:44]wFMCommunicate request_size=9 [14:25:44]MH_SAM_APDU [14:25:44]CAPDU: 80 0D 02 02 04 74 D3 86 CB [14:25:44]Write to MH i2c: E2 0C 00 19 7B 80 0D 02 02 04 00 74 D3 86 CB 00 00 AE [14:25:44]Write i2c OK [14:25:44]MH_I2C_Read... [14:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:44]Read from MH i2c: E2 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 03 00 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 03 00 19 7B 00 90 00 08 [14:25:44]RAPDU: 90 00 [14:25:44]wFMCommunicate OK [14:25:44]wFMCommunicate request_size=4 [14:25:44]MH_SAM_APDU [14:25:44]CAPDU: 80 0D 03 02 [14:25:44]Write to MH i2c: E2 08 00 1A 7B 80 0D 03 02 00 00 00 00 10 [14:25:44]Write i2c OK [14:25:44]MH_I2C_Read... [14:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:44]Read from MH i2c: E2 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 0B 00 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 0B 00 1A 7B 00 CA 6B 99 1A 3C D8 14 D1 90 00 F2 [14:25:44]RAPDU: CA 6B 99 1A 3C D8 14 D1 90 00 [14:25:44]wFMCommunicate OK [14:25:44]SAM_PROTO_SignData done [14:25:44]FM_MakeSignedData done [14:25:44]CreateOFDProtocolMessage [14:25:44]wFMCommunicate request_size=4 [14:25:44]MH_SAM_APDU [14:25:44]CAPDU: 80 11 00 00 [14:25:44]Write to MH i2c: E2 08 00 1B 7B 80 11 00 00 00 00 00 00 10 [14:25:44]Write i2c OK [14:25:44]MH_I2C_Read... [14:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:44]Read from MH i2c: E2 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 17 00 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: E2 17 00 1B 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 68 [14:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:25:44]wFMCommunicate OK [14:25:44]CreateOFDProtocolMessage done [14:25:44]OFDSenderStorePacket 74669 [14:25:44]StoreOFDPacket docnum=74669 [14:25:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 40 48 06 01 0A CD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 23 01 00 35 04 06 00 D8 5B 74 D3 86 CB CA 6B 99 1A 3C D8 14 D1 [14:25:44]CheckFolder [14:25:44]dirname=/storage/ofd_packets [14:25:44]CheckFolder done [14:25:44]ProducePacketName [14:25:44]name=ofd_packets/00074669 [14:25:44]NVStorageSaveData ofd_packets/00074669 [14:25:44]File name is /storage/ofd_packets/00074669 [14:25:44]Write 300 bytes [14:25:44]NVStorageSaveData done [14:25:44]OFDSenderStorePacket done [14:25:44]KKMCreateOFDPacket done [14:25:44]NVStorageSaveData kkm_last_timestamp [14:25:44]File name is /storage/kkm_last_timestamp [14:25:44]Write 4 bytes [14:25:44]NVStorageSaveData done [14:25:44]ExternCall_PrintAddStr [14:25:44]wPrintStart [14:25:44]Write to MH i2c: 01 00 00 1C 7B 97 [14:25:44]Write i2c OK [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: 01 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: 01 07 00 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: 01 07 00 1C 7B 00 00 00 00 00 FF 0F AC [14:25:44]RasterBufferAndPrint [14:25:44]line Счет N : (1)190633 [14:25:44]line ИНН: 02508201610067 [14:25:44]line Контрольно-Кассовый Чек [14:25:44]line ПРОДАЖА [14:25:44]line ТРК (МРК, ГНК) : 51 [14:25:44]line Товар: 2711190000 [14:25:44]line ГАЗ-К-3 [14:25:44]line 25.710 * 38.90 [14:25:44]line = 1000.12 [14:25:44]line НДС 12% НСП 1% [14:25:44]line > о реализуемом товаре [14:25:44]line ОКРУГЛЕНИЕ: -0.12 [14:25:44]line ИТОГО: 1000.00 [14:25:44]line Внесено: 1000.00 [14:25:44]line СДАЧА: 0.00 [14:25:44]line НСП 1% : 8.85 [14:25:44]line НДС 12% : 106.21 [14:25:44]line Наличными: 1000.00 [14:25:44]line Безнал.: 0.00 [14:25:44]line Место: АЗС № 142 "Партнер Нефть" [14:25:44]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:25:44]line СНО: Общий режим [14:25:44]line Чек 113 24.10.2024 14:25 [14:25:44]line Смена: 510 ФФД: 1.0 [14:25:44]line ЗНМ: 0300000089 [14:25:44]line РНМ: 0000000000091691 [14:25:44]line Версия ККМ: 001 [14:25:44]line ФМ: 0000000000871795 [14:25:44]line ФД: 74669 [14:25:44]line ФПД: 237887313643211 [14:25:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142554&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74669&fm=237887313643211&tin=02508201610067®Number=0000000000091691&sum=100000 [14:25:44]OFD Sender: Processing packet 74669 [packets to send 13, broken 12] [14:25:44]ProducePacketName [14:25:44]name=ofd_packets/00074669 [14:25:44]OFD Sender: To server: pG, [14:25:44]CommunicateWithHost lk.salyk.kg:30040 [14:25:44]ConnectInit lk.salyk.kg [14:25:44]written 0, free lines is 4095 [14:25:44]Connected sock=10 [14:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 40 48 06 01 0A CD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 58 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 23 01 00 35 04 06 00 D8 5B 74 D3 86 CB CA 6B 99 1A 3C D8 14 D1 [14:25:45]Write to MH i2c: 01 00 00 47 7B C2 [14:25:45]Write i2c OK [14:25:45]MH_I2C_Read... [14:25:45]Read from MH i2c: 01 [14:25:45]MH_I2C_Read... [14:25:45]Read from MH i2c: 01 07 00 [14:25:45]MH_I2C_Read... [14:25:45]Read from MH i2c: 01 07 00 47 7B 00 00 00 00 00 9B 0C 70 [14:25:45]RasterBufferAndPrint [14:25:45]line [14:25:45]line [14:25:45]line [14:25:45]line [14:25:45]line [14:25:45]written 0, free lines is 3236 [14:25:45]MH_Cut [14:25:45]Write to MH i2c: D1 01 00 4E 7B 01 9B [14:25:45]Write i2c OK [14:25:45]MH_I2C_Read... [14:25:45]Read from MH i2c: D1 [14:25:45]MH_I2C_Read... [14:25:45]Read from MH i2c: D1 01 00 [14:25:45]MH_I2C_Read... [14:25:45]Read from MH i2c: D1 01 00 4E 7B 00 9A [14:25:45]Write to MH i2c: 01 00 00 4F 7B CA [14:25:45]Write i2c OK [14:25:45]MH_I2C_Read... [14:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 55 AA 47 00 DA 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 23 01 00 F4 03 04 00 74 00 1A 67 B6 04 01 00 00 EB B5 95 14 1D DB 30 F8 [14:25:45]CommunicateWithHost err = 0 [14:25:45]CheckOFDResponse [14:25:45]1017 (14) - 77093643461234 [14:25:45]1041 (16) - 0000000000871795 [14:25:45]1040 (4) - 74669 [14:25:45]1012 (4) - 24.10.2024 08:08 [14:25:45]1206 (1) - 0 [14:25:45]OFD Sender: Remove packet 74669 [14:25:45]ProducePacketName [14:25:45]name=ofd_packets/00074669 [14:25:45]NVStorageDeleteData [14:25:45]OFD Sender: No OFD packet to send [14:25:45]*** Cut start [14:25:45]*** Partial cut [14:25:45]*** CUTSNS_PIN = 1 [14:25:46]*** CUTSNS_PIN = 0 [14:25:46]*** Brake cut motor [14:25:46]Read from MH i2c: 01 [14:25:46]MH_I2C_Read... [14:25:46]*** Stop cut motor [14:25:46]*** Cut end [14:25:46]Read from MH i2c: 01 07 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: 01 07 00 4F 7B 00 00 00 00 00 FF 0F DF [14:25:46]process_action close_receipt done [14:25:46]requested_data is exist [14:25:46]produce_requested_data [14:25:46]requested_item fm.sn is exist - process it [14:25:46]wFMCommunicate request_size=4 [14:25:46]MH_SAM_APDU [14:25:46]CAPDU: 80 11 00 00 [14:25:46]Write to MH i2c: E2 08 00 50 7B 80 11 00 00 00 00 00 00 45 [14:25:46]Write i2c OK [14:25:46]MH_I2C_Read... [14:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:46]Read from MH i2c: E2 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 17 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 17 00 50 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9D [14:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:25:46]wFMCommunicate OK [14:25:46]requested_item fd.num is exist - process it [14:25:46]SAM_PROTO_GetFieldsCounters [14:25:46]wFMCommunicate request_size=4 [14:25:46]MH_SAM_APDU [14:25:46]CAPDU: 80 13 00 00 [14:25:46]Write to MH i2c: E2 08 00 51 7B 80 13 00 00 00 00 00 00 48 [14:25:46]Write i2c OK [14:25:46]MH_I2C_Read... [14:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:46]Read from MH i2c: E2 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 62 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 62 00 51 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AD 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [14:25: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AD 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:46]wFMCommunicate OK [14:25:46]SAM_PROTO_GetFieldsCounters done [14:25:46]requested_item shift.num is exist - process it [14:25:46]requested_item shift.opened is exist - process it [14:25:46]req_shift_opened [14:25:46]FM_GetShiftState [14:25:46]SAM_PROTO_GetShiftState [14:25:46]wFMCommunicate request_size=4 [14:25:46]MH_SAM_APDU [14:25:46]CAPDU: 80 13 01 00 [14:25:46]Write to MH i2c: E2 08 00 52 7B 80 13 01 00 00 00 00 00 4A [14:25:46]Write i2c OK [14:25:46]MH_I2C_Read... [14:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:46]Read from MH i2c: E2 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 0E 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 0E 00 52 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 74 [14:25:46]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:25:46]wFMCommunicate OK [14:25:46]SAM_PROTO_GetShiftState done [14:25:46]FM_GetShiftState done [14:25:46]req_shift_opened done [14:25:46]requested_item shift.open_date is exist - process it [14:25:46]req_shift_open_date [14:25:46]req_shift_open_date done [14:25:46]produce_requested_data done [14:25:46]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74669,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:25:46]process_action_free close_receipt [14:25:46]json_value_free [14:25:46]json_value_free done [14:25:46]process_json_proto returns [14:25:46]Send response to host [14:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74669,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:25:46]free response buf [14:25:46]execute_script done [14:25:46]execute_script returns [14:25:46]free content buf [14:25:46]Sock 8.Close socket [14:25:46]Sock 8.Thread stoped [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:04]accept exits with 9 [14:31:04]New connection [14:31:04]New thread 3066805604 created [14:31:04]Thread 3066662244 joined [14:31:04]Waiting for new connection... [14:31:04] Sock 9.Parse request [14:31:04]Sock 9.Check first char [14:31:04]Sock 9.First char is OK [14:31:04]request: POST /json_proto HTTP/1.0 [14:31:04]Method: POST [14:31:04]URL: /json_proto [14:31:04]Method is POST - this is cgi request [14:31:04]url: /json_proto [14:31:04]query_string will be loaded in cgi processing [14:31:04]execute_cgi json_proto POST (null) [14:31:04]execute_cgi path=json_proto method=POST [14:31:04]POST find Content-Length [14:31:04]Host: 172.17.39.131:8080 [14:31:04]Content-Length: 766 [14:31:04]Content-Type: application/json [14:31:04] [14:31:04]POST finish read [14:31:04]Found Content-Length = 766 [14:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:04]execute_script... [14:31: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)190635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:04]POST & json_proto [14:31:04]process_json_proto [14:31:04]json parsed OK: [14:31:04]protocol is kg_v1.0 [14:31:04]action value=close_receipt [14:31:04]process_action close_receipt [14:31:04]cmd_close_receipt [14:31:04]MH_GetDate [14:31:04]Write to MH i2c: F0 00 00 53 7B BD [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: F0 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: F0 09 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: F0 09 00 53 7B 00 34 5A 1A 67 86 57 24 65 3B [14:31:04]GetLastDocTimeStamp 1729779954 [14:31:04]current date 1729780276 [14:31:04]FM_GetShiftState [14:31:04]SAM_PROTO_GetShiftState [14:31:04]wFMCommunicate request_size=4 [14:31:04]MH_SAM_APDU [14:31:04]CAPDU: 80 13 01 00 [14:31:04]Write to MH i2c: E2 08 00 54 7B 80 13 01 00 00 00 00 00 4C [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 0E 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 0E 00 54 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 76 [14:31:04]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:31:04]wFMCommunicate OK [14:31:04]SAM_PROTO_GetShiftState done [14:31:04]FM_GetShiftState done [14:31:04]opened in 1729729801 [14:31:04]opened+sec_in_day 1729816201 [14:31:04]quantity*price = 50041 [14:31:04]sum+1 = 50042 [14:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 114 24.10.2024 14:31 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74670 ФПД: 183321935130401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143116&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74670&fm=183321935130401&tin=02508201610067®Number=0000000000091691&sum=50041 [14:31:05]StoreToDocumentArchive [14:31:05]shift 510 fd 74670 [14:31:05]save to /storage/0510/doc_00074670 [14:31:05]save last doc name /storage/0510/doc_00074670 to /storage/kkm_last_doc_name [14:31:05]save OK [14:31:05]Clear old archive folders... [14:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:05]tlvbuf is 00A9DBC0 [14:31:05]SAM_PROTO_ClearQueue [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 09 00 00 [14:31:05]Write to MH i2c: E2 08 00 61 7B 80 09 00 00 00 00 00 00 4E [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 61 7B 00 90 00 50 [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]SAM_PROTO_ClearQueue done [14:31:05]KKMCreateOFDPacket [14:31:05]OFDProtocolAddRootSTLVToBuf [14:31:05]FM_MakeSignedData [14:31:05]FM_MakeSignedData [14:31:05]SAM_PROTO_SignData [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 0D 01 02 [14:31:05]Write to MH i2c: E2 08 00 62 7B 80 0D 01 02 00 00 00 00 56 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 62 7B 00 90 00 51 [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]wFMCommunicate request_size=255 [14:31:05]MH_SAM_APDU [14:31: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 34 5A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 23 01 00 35 04 06 00 A6 [14:31:05]Write to MH i2c: E2 02 01 63 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 34 5A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 23 01 00 35 04 06 00 A6 00 00 35 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]OFD Sender: No OFD packet to send [14:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 03 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 03 00 63 7B 00 90 00 52 [14:31:06]RAPDU: 90 00 [14:31:06]wFMCommunicate OK [14:31:06]wFMCommunicate request_size=10 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 0D 02 02 05 BA F6 D2 AF 21 [14:31:06]Write to MH i2c: E2 0D 00 64 7B 80 0D 02 02 05 00 BA F6 D2 AF 21 00 00 B5 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 03 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 03 00 64 7B 00 90 00 53 [14:31:06]RAPDU: 90 00 [14:31:06]wFMCommunicate OK [14:31:06]wFMCommunicate request_size=4 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 0D 03 02 [14:31:06]Write to MH i2c: E2 08 00 65 7B 80 0D 03 02 00 00 00 00 5B [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 0B 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 0B 00 65 7B 00 E4 8D AC 46 A2 99 57 CC 90 00 1D [14:31:06]RAPDU: E4 8D AC 46 A2 99 57 CC 90 00 [14:31:06]wFMCommunicate OK [14:31:06]SAM_PROTO_SignData done [14:31:06]FM_MakeSignedData done [14:31:06]CreateOFDProtocolMessage [14:31:06]wFMCommunicate request_size=4 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 11 00 00 [14:31:06]Write to MH i2c: E2 08 00 66 7B 80 11 00 00 00 00 00 00 5B [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 17 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 17 00 66 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B3 [14:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:31:06]wFMCommunicate OK [14:31:06]CreateOFDProtocolMessage done [14:31:06]OFDSenderStorePacket 74670 [14:31:06]StoreOFDPacket docnum=74670 [14:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 7A 07 01 23 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 34 5A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 23 01 00 35 04 06 00 A6 BA F6 D2 AF 21 E4 8D AC 46 A2 99 57 CC [14:31:06]CheckFolder [14:31:06]dirname=/storage/ofd_packets [14:31:06]CheckFolder done [14:31:06]ProducePacketName [14:31:06]name=ofd_packets/00074670 [14:31:06]NVStorageSaveData ofd_packets/00074670 [14:31:06]File name is /storage/ofd_packets/00074670 [14:31:06]Write 301 bytes [14:31:06]NVStorageSaveData done [14:31:06]OFDSenderStorePacket done [14:31:06]KKMCreateOFDPacket done [14:31:06]NVStorageSaveData kkm_last_timestamp [14:31:06]File name is /storage/kkm_last_timestamp [14:31:06]Write 4 bytes [14:31:06]NVStorageSaveData done [14:31:06]ExternCall_PrintAddStr [14:31:06]wPrintStart [14:31:06]Write to MH i2c: 01 00 00 67 7B E2 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 07 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 07 00 67 7B 00 00 00 00 00 FF 0F F7 [14:31:06]RasterBufferAndPrint [14:31:06]line Счет N : (1)190635 [14:31:06]line ИНН: 02508201610067 [14:31:06]line Контрольно-Кассовый Чек [14:31:06]line ПРОДАЖА [14:31:06]line ТРК (МРК, ГНК) : 21 [14:31:06]line Товар: 2710124130 [14:31:06]line Аи-92-К-5 [14:31:06]line 7.480 * 66.90 [14:31:06]line = 500.41 [14:31:06]line НДС 12% НСП 1% [14:31:06]line > о реализуемом товаре [14:31:06]line ИТОГО: 500.41 [14:31:06]line НСП 1% : 4.43 [14:31:06]line НДС 12% : 53.14 [14:31:06]line Наличными: 0.00 [14:31:06]line Безнал.: 500.41 [14:31:06]line Место: АЗС № 142 "Партнер Нефть" [14:31:06]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:31:06]line СНО: Общий режим [14:31:06]line Чек 114 24.10.2024 14:31 [14:31:06]line Смена: 510 ФФД: 1.0 [14:31:06]line ЗНМ: 0300000089 [14:31:06]line РНМ: 0000000000091691 [14:31:06]line Версия ККМ: 001 [14:31:06]line Платежная система: Mbank [14:31:06]line ФМ: 0000000000871795 [14:31:06]line ФД: 74670 [14:31:06]line ФПД: 183321935130401 [14:31:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143116&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74670&fm=183321935130401&tin=02508201610067®Number=0000000000091691&sum=50041 [14:31:06]written 0, free lines is 4095 [14:31:06]OFD Sender: Processing packet 74670 [packets to send 13, broken 12] [14:31:06]ProducePacketName [14:31:06]name=ofd_packets/00074670 [14:31:06]OFD Sender: To server: pG, [14:31:06]CommunicateWithHost lk.salyk.kg:30040 [14:31:06]ConnectInit lk.salyk.kg [14:31:06]Connected sock=10 [14:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 7A 07 01 23 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 34 5A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 23 01 00 35 04 06 00 A6 BA F6 D2 AF 21 E4 8D AC 46 A2 99 57 CC [14:31:06]Write to MH i2c: 01 00 00 90 7B 0B [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 07 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 07 00 90 7B 00 00 00 00 00 C3 0C E1 [14:31:06]RasterBufferAndPrint [14:31:06]line [14:31:06]line [14:31:06]line [14:31:06]line [14:31:06]line [14:31:06]written 0, free lines is 3272 [14:31:06]MH_Cut [14:31:06]Write to MH i2c: D1 01 00 97 7B 01 E4 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: D1 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: D1 01 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: D1 01 00 97 7B 00 E3 [14:31:06]Write to MH i2c: 01 00 00 98 7B 13 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 2B 81 47 00 2E 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 23 01 00 F4 03 04 00 B6 01 1A 67 B6 04 01 00 00 0B C5 1E 17 B6 83 1C 9F [14:31:07]CommunicateWithHost err = 0 [14:31:07]CheckOFDResponse [14:31:07]1017 (14) - 77093643461234 [14:31:07]1041 (16) - 0000000000871795 [14:31:07]1040 (4) - 74670 [14:31:07]1012 (4) - 24.10.2024 08:13 [14:31:07]1206 (1) - 0 [14:31:07]OFD Sender: Remove packet 74670 [14:31:07]ProducePacketName [14:31:07]name=ofd_packets/00074670 [14:31:07]NVStorageDeleteData [14:31:07]OFD Sender: No OFD packet to send [14:31:07]*** Cut start [14:31:07]*** Partial cut [14:31:07]*** CUTSNS_PIN = 1 [14:31:07]*** CUTSNS_PIN = 0 [14:31:08]*** Brake cut motor [14:31:08]Read from MH i2c: 01 [14:31:08]MH_I2C_Read... [14:31:08]*** Stop cut motor [14:31:08]*** Cut end [14:31:08]Read from MH i2c: 01 07 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: 01 07 00 98 7B 00 00 00 00 00 FF 0F 28 [14:31:08]process_action close_receipt done [14:31:08]requested_data is exist [14:31:08]produce_requested_data [14:31:08]requested_item fm.sn is exist - process it [14:31:08]wFMCommunicate request_size=4 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 11 00 00 [14:31:08]Write to MH i2c: E2 08 00 99 7B 80 11 00 00 00 00 00 00 8E [14:31:08]Write i2c OK [14:31:08]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 17 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 17 00 99 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E6 [14:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:31:08]wFMCommunicate OK [14:31:08]requested_item fd.num is exist - process it [14:31:08]SAM_PROTO_GetFieldsCounters [14:31:08]wFMCommunicate request_size=4 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 13 00 00 [14:31:08]Write to MH i2c: E2 08 00 9A 7B 80 13 00 00 00 00 00 00 91 [14:31:08]Write i2c OK [14:31:08]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 62 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 62 00 9A 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AE 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [14:31:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AE 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:08]wFMCommunicate OK [14:31:08]SAM_PROTO_GetFieldsCounters done [14:31:08]requested_item shift.num is exist - process it [14:31:08]requested_item shift.opened is exist - process it [14:31:08]req_shift_opened [14:31:08]FM_GetShiftState [14:31:08]SAM_PROTO_GetShiftState [14:31:08]wFMCommunicate request_size=4 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 13 01 00 [14:31:08]Write to MH i2c: E2 08 00 9B 7B 80 13 01 00 00 00 00 00 93 [14:31:08]Write i2c OK [14:31:08]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 0E 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 0E 00 9B 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BD [14:31:08]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:31:08]wFMCommunicate OK [14:31:08]SAM_PROTO_GetShiftState done [14:31:08]FM_GetShiftState done [14:31:08]req_shift_opened done [14:31:08]requested_item shift.open_date is exist - process it [14:31:08]req_shift_open_date [14:31:08]req_shift_open_date done [14:31:08]produce_requested_data done [14:31:08]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74670,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:31:08]process_action_free close_receipt [14:31:08]json_value_free [14:31:08]json_value_free done [14:31:08]process_json_proto returns [14:31:08]Send response to host [14:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74670,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:31:08]free response buf [14:31:08]execute_script done [14:31:08]execute_script returns [14:31:08]free content buf [14:31:08]Sock 9.Close socket [14:31:08]Sock 9.Thread stoped [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:39]accept exits with 8 [14:37:39]New connection [14:37:39]New thread 3066662244 created [14:37:39]Thread 3066805604 joined [14:37:39]Waiting for new connection... [14:37:39] Sock 8.Parse request [14:37:39]Sock 8.Check first char [14:37:39]Sock 8.First char is OK [14:37:39]request: POST /json_proto HTTP/1.0 [14:37:39]Method: POST [14:37:39]URL: /json_proto [14:37:39]Method is POST - this is cgi request [14:37:39]url: /json_proto [14:37:39]query_string will be loaded in cgi processing [14:37:39]execute_cgi json_proto POST (null) [14:37:39]execute_cgi path=json_proto method=POST [14:37:39]POST find Content-Length [14:37:39]Host: 172.17.39.131:8080 [14:37:39]Content-Length: 677 [14:37:39]Content-Type: application/json [14:37:39] [14:37:39]POST finish read [14:37:39]Found Content-Length = 677 [14:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:39]execute_script... [14:37: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)190636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:39]POST & json_proto [14:37:39]process_json_proto [14:37:39]json parsed OK: [14:37:39]protocol is kg_v1.0 [14:37:39]action value=close_receipt [14:37:39]process_action close_receipt [14:37:39]cmd_close_receipt [14:37:39]MH_GetDate [14:37:39]Write to MH i2c: F0 00 00 9C 7B 06 [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: F0 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: F0 09 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: F0 09 00 9C 7B 00 BE 5B 1A 67 86 57 24 65 0F [14:37:39]GetLastDocTimeStamp 1729780276 [14:37:39]current date 1729780670 [14:37:39]FM_GetShiftState [14:37:39]SAM_PROTO_GetShiftState [14:37:39]wFMCommunicate request_size=4 [14:37:39]MH_SAM_APDU [14:37:39]CAPDU: 80 13 01 00 [14:37:39]Write to MH i2c: E2 08 00 9D 7B 80 13 01 00 00 00 00 00 95 [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:39]Read from MH i2c: E2 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 0E 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 0E 00 9D 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BF [14:37:39]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:37:39]wFMCommunicate OK [14:37:39]SAM_PROTO_GetShiftState done [14:37:39]FM_GetShiftState done [14:37:39]opened in 1729729801 [14:37:39]opened+sec_in_day 1729816201 [14:37:39]quantity*price = 60009 [14:37:39]sum+1 = 60010 [14:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 115 24.10.2024 14:37 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74671 ФПД: 4148199759351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143750&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74671&fm=4148199759351&tin=02508201610067®Number=0000000000091691&sum=60000 [14:37:40]StoreToDocumentArchive [14:37:40]shift 510 fd 74671 [14:37:40]save to /storage/0510/doc_00074671 [14:37:40]save last doc name /storage/0510/doc_00074671 to /storage/kkm_last_doc_name [14:37:40]save OK [14:37:40]Clear old archive folders... [14:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:40]tlvbuf is 00A9DD00 [14:37:40]SAM_PROTO_ClearQueue [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 09 00 00 [14:37:40]Write to MH i2c: E2 08 00 AA 7B 80 09 00 00 00 00 00 00 97 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 AA 7B 00 90 00 99 [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]SAM_PROTO_ClearQueue done [14:37:40]KKMCreateOFDPacket [14:37:40]OFDProtocolAddRootSTLVToBuf [14:37:40]FM_MakeSignedData [14:37:40]FM_MakeSignedData [14:37:40]SAM_PROTO_SignData [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 01 02 [14:37:40]Write to MH i2c: E2 08 00 AB 7B 80 0D 01 02 00 00 00 00 9F [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 AB 7B 00 90 00 9A [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]wFMCommunicate request_size=255 [14:37:40]MH_SAM_APDU [14:37: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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE 5B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 23 01 00 35 04 06 00 03 [14:37:40]Write to MH i2c: E2 02 01 AC 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE 5B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 23 01 00 35 04 06 00 03 00 00 F3 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 AC 7B 00 90 00 9B [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]wFMCommunicate request_size=10 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 02 02 05 C5 D3 F9 1D F7 [14:37:40]Write to MH i2c: E2 0D 00 AD 7B 80 0D 02 02 05 00 C5 D3 F9 1D F7 00 00 51 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 AD 7B 00 90 00 9C [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 03 02 [14:37:40]Write to MH i2c: E2 08 00 AE 7B 80 0D 03 02 00 00 00 00 A4 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0B 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0B 00 AE 7B 00 BB 4B C4 CD FA 86 8D 6D 90 00 B6 [14:37:40]RAPDU: BB 4B C4 CD FA 86 8D 6D 90 00 [14:37:40]wFMCommunicate OK [14:37:40]SAM_PROTO_SignData done [14:37:40]FM_MakeSignedData done [14:37:40]CreateOFDProtocolMessage [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 11 00 00 [14:37:40]Write to MH i2c: E2 08 00 AF 7B 80 11 00 00 00 00 00 00 A4 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 17 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 17 00 AF 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FC [14:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:37:40]wFMCommunicate OK [14:37:40]CreateOFDProtocolMessage done [14:37:40]OFDSenderStorePacket 74671 [14:37:40]StoreOFDPacket docnum=74671 [14:37:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 B3 07 01 60 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE 5B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 23 01 00 35 04 06 00 03 C5 D3 F9 1D F7 BB 4B C4 CD FA 86 8D 6D [14:37:40]CheckFolder [14:37:40]dirname=/storage/ofd_packets [14:37:40]CheckFolder done [14:37:40]ProducePacketName [14:37:40]name=ofd_packets/00074671 [14:37:40]NVStorageSaveData ofd_packets/00074671 [14:37:40]File name is /storage/ofd_packets/00074671 [14:37:40]Write 301 bytes [14:37:40]NVStorageSaveData done [14:37:40]OFDSenderStorePacket done [14:37:40]KKMCreateOFDPacket done [14:37:40]NVStorageSaveData kkm_last_timestamp [14:37:40]File name is /storage/kkm_last_timestamp [14:37:40]Write 4 bytes [14:37:40]NVStorageSaveData done [14:37:40]ExternCall_PrintAddStr [14:37:40]wPrintStart [14:37:40]Write to MH i2c: 01 00 00 B0 7B 2B [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: 01 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: 01 07 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: 01 07 00 B0 7B 00 00 00 00 00 FF 0F 40 [14:37:40]RasterBufferAndPrint [14:37:40]line Счет N : (1)190636 [14:37:40]line ИНН: 02508201610067 [14:37:40]line Контрольно-Кассовый Чек [14:37:40]line ПРОДАЖА [14:37:40]line ТРК (МРК, ГНК) : 21 [14:37:40]line Товар: 2710124130 [14:37:40]line Аи-92-К-5 [14:37:40]line 8.970 * 66.90 [14:37:40]line = 600.09 [14:37:40]line НДС 12% НСП 1% [14:37:40]line > о реализуемом товаре [14:37:40]line ОКРУГЛЕНИЕ: -0.09 [14:37:40]line ИТОГО: 600.00 [14:37:40]line Внесено: 600.00 [14:37:40]line СДАЧА: 0.00 [14:37:40]line НСП 1% : 5.31 [14:37:40]line НДС 12% : 63.73 [14:37:40]line Наличными: 600.00 [14:37:40]line Безнал.: 0.00 [14:37:40]line Место: АЗС № 142 "Партнер Нефть" [14:37:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:37:40]line СНО: Общий режим [14:37:40]line Чек 115 24.10.2024 14:37 [14:37:40]line Смена: 510 ФФД: 1.0 [14:37:40]line ЗНМ: 0300000089 [14:37:40]line РНМ: 0000000000091691 [14:37:40]line Версия ККМ: 001 [14:37:40]line ФМ: 0000000000871795 [14:37:40]line ФД: 74671 [14:37:41]line ФПД: 4148199759351 [14:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143750&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74671&fm=4148199759351&tin=02508201610067®Number=0000000000091691&sum=60000 [14:37:41]OFD Sender: Processing packet 74671 [packets to send 13, broken 12] [14:37:41]ProducePacketName [14:37:41]name=ofd_packets/00074671 [14:37:41]OFD Sender: To server: pG, [14:37:41]CommunicateWithHost lk.salyk.kg:30040 [14:37:41]ConnectInit lk.salyk.kg [14:37:41]written 0, free lines is 4095 [14:37:41]Connected sock=10 [14:37:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 B3 07 01 60 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 BE 5B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 23 01 00 35 04 06 00 03 C5 D3 F9 1D F7 BB 4B C4 CD FA 86 8D 6D [14:37:41]Write to MH i2c: 01 00 00 DB 7B 56 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 DB 7B 00 00 00 00 00 AD 0C 16 [14:37:41]RasterBufferAndPrint [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]written 0, free lines is 3251 [14:37:41]MH_Cut [14:37:41]Write to MH i2c: D1 01 00 E2 7B 01 2F [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 01 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 01 00 E2 7B 00 2E [14:37:41]Write to MH i2c: 01 00 00 E3 7B 5E [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D7 96 47 00 43 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 31 37 39 35 10 04 04 00 AF 23 01 00 F4 03 04 00 40 03 1A 67 B6 04 01 00 00 9F 3B BC 82 07 A6 40 F6 [14:37:41]CommunicateWithHost err = 0 [14:37:41]CheckOFDResponse [14:37:41]1017 (14) - 77093643461234 [14:37:41]1041 (16) - 0000000000871795 [14:37:41]1040 (4) - 74671 [14:37:41]1012 (4) - 24.10.2024 08:20 [14:37:41]1206 (1) - 0 [14:37:41]OFD Sender: Remove packet 74671 [14:37:41]ProducePacketName [14:37:41]name=ofd_packets/00074671 [14:37:41]NVStorageDeleteData [14:37:42]OFD Sender: No OFD packet to send [14:37:42]*** Cut start [14:37:42]*** Partial cut [14:37:42]*** CUTSNS_PIN = 1 [14:37:42]*** CUTSNS_PIN = 0 [14:37:42]*** Brake cut motor [14:37:42]Read from MH i2c: 01 [14:37:42]MH_I2C_Read... [14:37:43]*** Stop cut motor [14:37:43]*** Cut end [14:37:43]Read from MH i2c: 01 07 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 07 00 E3 7B 00 00 00 00 00 FF 0F 73 [14:37:43]process_action close_receipt done [14:37:43]requested_data is exist [14:37:43]produce_requested_data [14:37:43]requested_item fm.sn is exist - process it [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 11 00 00 [14:37:43]Write to MH i2c: E2 08 00 E4 7B 80 11 00 00 00 00 00 00 D9 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:43]Read from MH i2c: E2 17 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 17 00 E4 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 31 [14:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:37:43]wFMCommunicate OK [14:37:43]requested_item fd.num is exist - process it [14:37:43]SAM_PROTO_GetFieldsCounters [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 13 00 00 [14:37:43]Write to MH i2c: E2 08 00 E5 7B 80 13 00 00 00 00 00 00 DC [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 62 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 62 00 E5 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AF 23 01 00 0E 04 04 00 FE 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 2E [14:37:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AF 23 01 00 0E 04 04 00 FE 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 [14:37:43]wFMCommunicate OK [14:37:43]SAM_PROTO_GetFieldsCounters done [14:37:43]requested_item shift.num is exist - process it [14:37:43]requested_item shift.opened is exist - process it [14:37:43]req_shift_opened [14:37:43]FM_GetShiftState [14:37:43]SAM_PROTO_GetShiftState [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 13 01 00 [14:37:43]Write to MH i2c: E2 08 00 E6 7B 80 13 01 00 00 00 00 00 DE [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 0E 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 0E 00 E6 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 08 [14:37:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:37:43]wFMCommunicate OK [14:37:43]SAM_PROTO_GetShiftState done [14:37:43]FM_GetShiftState done [14:37:43]req_shift_opened done [14:37:43]requested_item shift.open_date is exist - process it [14:37:43]req_shift_open_date [14:37:43]req_shift_open_date done [14:37:43]produce_requested_data done [14:37:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74671,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:37:43]process_action_free close_receipt [14:37:43]json_value_free [14:37:43]json_value_free done [14:37:43]process_json_proto returns [14:37:43]Send response to host [14:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74671,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:37:43]free response buf [14:37:43]execute_script done [14:37:43]execute_script returns [14:37:43]free content buf [14:37:43]Sock 8.Close socket [14:37:43]Sock 8.Thread stoped [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:39]accept exits with 9 [14:39:39]New connection [14:39:39]New thread 3066805604 created [14:39:39]Thread 3066662244 joined [14:39:39]Waiting for new connection... [14:39:39] Sock 9.Parse request [14:39:39]Sock 9.Check first char [14:39:39]Sock 9.First char is OK [14:39:39]request: POST /json_proto HTTP/1.0 [14:39:39]Method: POST [14:39:39]URL: /json_proto [14:39:39]Method is POST - this is cgi request [14:39:39]url: /json_proto [14:39:39]query_string will be loaded in cgi processing [14:39:39]execute_cgi json_proto POST (null) [14:39:39]execute_cgi path=json_proto method=POST [14:39:39]POST find Content-Length [14:39:39]Host: 172.17.39.131:8080 [14:39:39]Content-Length: 682 [14:39:39]Content-Type: application/json [14:39:39] [14:39:39]POST finish read [14:39:39]Found Content-Length = 682 [14:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:39]execute_script... [14:39: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)190637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:39]POST & json_proto [14:39:39]process_json_proto [14:39:39]json parsed OK: [14:39:39]protocol is kg_v1.0 [14:39:39]action value=close_receipt [14:39:39]process_action close_receipt [14:39:39]cmd_close_receipt [14:39:39]MH_GetDate [14:39:39]Write to MH i2c: F0 00 00 E7 7B 51 [14:39:39]Write i2c OK [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: F0 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: F0 09 00 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: F0 09 00 E7 7B 00 36 5C 1A 67 86 57 24 65 D3 [14:39:39]GetLastDocTimeStamp 1729780670 [14:39:39]current date 1729780790 [14:39:39]FM_GetShiftState [14:39:39]SAM_PROTO_GetShiftState [14:39:39]wFMCommunicate request_size=4 [14:39:39]MH_SAM_APDU [14:39:39]CAPDU: 80 13 01 00 [14:39:39]Write to MH i2c: E2 08 00 E8 7B 80 13 01 00 00 00 00 00 E0 [14:39:39]Write i2c OK [14:39:39]MH_I2C_Read... [14:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:39]Read from MH i2c: E2 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: E2 0E 00 [14:39:39]MH_I2C_Read... [14:39:39]Read from MH i2c: E2 0E 00 E8 7B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 0A [14:39:39]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:39:39]wFMCommunicate OK [14:39:39]SAM_PROTO_GetShiftState done [14:39:39]FM_GetShiftState done [14:39:39]opened in 1729729801 [14:39:39]opened+sec_in_day 1729816201 [14:39:39]quantity*price = 100015 [14:39:39]sum+1 = 100017 [14:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 116 24.10.2024 14:39 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74672 ФПД: 238699613553725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143950&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74672&fm=238699613553725&tin=02508201610067®Number=0000000000091691&sum=100000 [14:39:40]StoreToDocumentArchive [14:39:40]shift 510 fd 74672 [14:39:40]save to /storage/0510/doc_00074672 [14:39:40]save last doc name /storage/0510/doc_00074672 to /storage/kkm_last_doc_name [14:39:40]save OK [14:39:40]Clear old archive folders... [14:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:40]tlvbuf is 00825720 [14:39:40]SAM_PROTO_ClearQueue [14:39:40]wFMCommunicate request_size=4 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 09 00 00 [14:39:40]Write to MH i2c: E2 08 00 F5 7B 80 09 00 00 00 00 00 00 E2 [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 F5 7B 00 90 00 E4 [14:39:40]RAPDU: 90 00 [14:39:40]wFMCommunicate OK [14:39:40]SAM_PROTO_ClearQueue done [14:39:40]KKMCreateOFDPacket [14:39:40]OFDProtocolAddRootSTLVToBuf [14:39:40]FM_MakeSignedData [14:39:40]FM_MakeSignedData [14:39:40]SAM_PROTO_SignData [14:39:40]wFMCommunicate request_size=4 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 0D 01 02 [14:39:40]Write to MH i2c: E2 08 00 F6 7B 80 0D 01 02 00 00 00 00 EA [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 F6 7B 00 90 00 E5 [14:39:40]RAPDU: 90 00 [14:39:40]wFMCommunicate OK [14:39:40]wFMCommunicate request_size=255 [14:39:40]MH_SAM_APDU [14:39: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 36 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 23 01 00 35 04 06 00 D9 [14:39:40]Write to MH i2c: E2 02 01 F7 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 36 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 23 01 00 35 04 06 00 D9 00 00 AC [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 F7 7B 00 90 00 E6 [14:39:40]RAPDU: 90 00 [14:39:40]wFMCommunicate OK [14:39:40]wFMCommunicate request_size=10 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 0D 02 02 05 18 95 AC 84 3D [14:39:40]Write to MH i2c: E2 0D 00 F8 7B 80 0D 02 02 05 00 18 95 AC 84 3D 00 00 11 [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 03 00 F8 7B 00 90 00 E7 [14:39:40]RAPDU: 90 00 [14:39:40]wFMCommunicate OK [14:39:40]wFMCommunicate request_size=4 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 0D 03 02 [14:39:40]Write to MH i2c: E2 08 00 F9 7B 80 0D 03 02 00 00 00 00 EF [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 0B 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 0B 00 F9 7B 00 55 14 5F 4E 62 1D 71 9C 90 00 92 [14:39:40]RAPDU: 55 14 5F 4E 62 1D 71 9C 90 00 [14:39:40]wFMCommunicate OK [14:39:40]SAM_PROTO_SignData done [14:39:40]FM_MakeSignedData done [14:39:40]CreateOFDProtocolMessage [14:39:40]wFMCommunicate request_size=4 [14:39:40]MH_SAM_APDU [14:39:40]CAPDU: 80 11 00 00 [14:39:40]Write to MH i2c: E2 08 00 FA 7B 80 11 00 00 00 00 00 00 EF [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:40]Read from MH i2c: E2 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 17 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: E2 17 00 FA 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 47 [14:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:39:40]wFMCommunicate OK [14:39:40]CreateOFDProtocolMessage done [14:39:40]OFDSenderStorePacket 74672 [14:39:40]StoreOFDPacket docnum=74672 [14:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C0 B1 07 01 B3 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 36 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 23 01 00 35 04 06 00 D9 18 95 AC 84 3D 55 14 5F 4E 62 1D 71 9C [14:39:40]CheckFolder [14:39:40]dirname=/storage/ofd_packets [14:39:40]CheckFolder done [14:39:40]ProducePacketName [14:39:40]name=ofd_packets/00074672 [14:39:40]NVStorageSaveData ofd_packets/00074672 [14:39:40]File name is /storage/ofd_packets/00074672 [14:39:40]Write 301 bytes [14:39:40]NVStorageSaveData done [14:39:40]OFDSenderStorePacket done [14:39:40]KKMCreateOFDPacket done [14:39:40]NVStorageSaveData kkm_last_timestamp [14:39:40]File name is /storage/kkm_last_timestamp [14:39:40]Write 4 bytes [14:39:40]NVStorageSaveData done [14:39:40]ExternCall_PrintAddStr [14:39:40]wPrintStart [14:39:40]Write to MH i2c: 01 00 00 FB 7B 76 [14:39:40]Write i2c OK [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: 01 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: 01 07 00 [14:39:40]MH_I2C_Read... [14:39:40]Read from MH i2c: 01 07 00 FB 7B 00 00 00 00 00 FF 0F 8B [14:39:40]RasterBufferAndPrint [14:39:40]line Счет N : (1)190637 [14:39:40]line ИНН: 02508201610067 [14:39:40]line Контрольно-Кассовый Чек [14:39:40]line ПРОДАЖА [14:39:40]line ТРК (МРК, ГНК) : 21 [14:39:40]line Товар: 2710124130 [14:39:40]line Аи-92-К-5 [14:39:40]line 14.950 * 66.90 [14:39:40]line = 1000.16 [14:39:40]line НДС 12% НСП 1% [14:39:40]line > о реализуемом товаре [14:39:40]line ОКРУГЛЕНИЕ: -0.16 [14:39:40]line ИТОГО: 1000.00 [14:39:40]line Внесено: 1000.00 [14:39:40]line СДАЧА: 0.00 [14:39:40]line НСП 1% : 8.85 [14:39:40]line НДС 12% : 106.21 [14:39:40]line Наличными: 1000.00 [14:39:40]line Безнал.: 0.00 [14:39:40]line Место: АЗС № 142 "Партнер Нефть" [14:39:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:39:40]line СНО: Общий режим [14:39:40]line Чек 116 24.10.2024 14:39 [14:39:40]line Смена: 510 ФФД: 1.0 [14:39:40]line ЗНМ: 0300000089 [14:39:40]line РНМ: 0000000000091691 [14:39:40]line Версия ККМ: 001 [14:39:40]line ФМ: 0000000000871795 [14:39:40]line ФД: 74672 [14:39:40]line ФПД: 238699613553725 [14:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143950&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74672&fm=238699613553725&tin=02508201610067®Number=0000000000091691&sum=100000 [14:39:41]OFD Sender: Processing packet 74672 [packets to send 13, broken 12] [14:39:41]ProducePacketName [14:39:41]name=ofd_packets/00074672 [14:39:41]OFD Sender: To server: pG, [14:39:41]CommunicateWithHost lk.salyk.kg:30040 [14:39:41]ConnectInit lk.salyk.kg [14:39:41]written 0, free lines is 4095 [14:39:41]Connected sock=10 [14:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C0 B1 07 01 B3 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 36 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 23 01 00 35 04 06 00 D9 18 95 AC 84 3D 55 14 5F 4E 62 1D 71 9C [14:39:41]Write to MH i2c: 01 00 00 26 7C A2 [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: 01 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: 01 07 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: 01 07 00 26 7C 00 00 00 00 00 A9 0C 5E [14:39:41]RasterBufferAndPrint [14:39:41]line [14:39:41]line [14:39:41]line [14:39:41]line [14:39:41]line [14:39:41]written 0, free lines is 3246 [14:39:41]MH_Cut [14:39:41]Write to MH i2c: D1 01 00 2D 7C 01 7B [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: D1 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: D1 01 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: D1 01 00 2D 7C 00 7A [14:39:41]Write to MH i2c: 01 00 00 2E 7C AA [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6B F8 47 00 E2 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 23 01 00 F4 03 04 00 B8 03 1A 67 B6 04 01 00 00 8D CE DB DB 1E 91 61 EA [14:39:41]CommunicateWithHost err = 0 [14:39:41]CheckOFDResponse [14:39:41]1017 (14) - 77093643461234 [14:39:41]1041 (16) - 0000000000871795 [14:39:41]1040 (4) - 74672 [14:39:41]1012 (4) - 24.10.2024 08:22 [14:39:41]1206 (1) - 0 [14:39:41]OFD Sender: Remove packet 74672 [14:39:41]ProducePacketName [14:39:41]name=ofd_packets/00074672 [14:39:41]NVStorageDeleteData [14:39:42]OFD Sender: No OFD packet to send [14:39:42]*** Cut start [14:39:42]*** Partial cut [14:39:42]*** CUTSNS_PIN = 1 [14:39:42]*** CUTSNS_PIN = 0 [14:39:42]*** Brake cut motor [14:39:43]Read from MH i2c: 01 [14:39:43]MH_I2C_Read... [14:39:43]*** Stop cut motor [14:39:43]*** Cut end [14:39:43]Read from MH i2c: 01 07 00 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: 01 07 00 2E 7C 00 00 00 00 00 FF 0F BF [14:39:43]process_action close_receipt done [14:39:43]requested_data is exist [14:39:43]produce_requested_data [14:39:43]requested_item fm.sn is exist - process it [14:39:43]wFMCommunicate request_size=4 [14:39:43]MH_SAM_APDU [14:39:43]CAPDU: 80 11 00 00 [14:39:43]Write to MH i2c: E2 08 00 2F 7C 80 11 00 00 00 00 00 00 25 [14:39:43]Write i2c OK [14:39:43]MH_I2C_Read... [14:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:43]Read from MH i2c: E2 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 17 00 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 17 00 2F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7D [14:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:39:43]wFMCommunicate OK [14:39:43]requested_item fd.num is exist - process it [14:39:43]SAM_PROTO_GetFieldsCounters [14:39:43]wFMCommunicate request_size=4 [14:39:43]MH_SAM_APDU [14:39:43]CAPDU: 80 13 00 00 [14:39:43]Write to MH i2c: E2 08 00 30 7C 80 13 00 00 00 00 00 00 28 [14:39:43]Write i2c OK [14:39:43]MH_I2C_Read... [14:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:43]Read from MH i2c: E2 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 62 00 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 62 00 30 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B0 23 01 00 0E 04 04 00 FE 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 7E [14:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B0 23 01 00 0E 04 04 00 FE 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 [14:39:43]wFMCommunicate OK [14:39:43]SAM_PROTO_GetFieldsCounters done [14:39:43]requested_item shift.num is exist - process it [14:39:43]requested_item shift.opened is exist - process it [14:39:43]req_shift_opened [14:39:43]FM_GetShiftState [14:39:43]SAM_PROTO_GetShiftState [14:39:43]wFMCommunicate request_size=4 [14:39:43]MH_SAM_APDU [14:39:43]CAPDU: 80 13 01 00 [14:39:43]Write to MH i2c: E2 08 00 31 7C 80 13 01 00 00 00 00 00 2A [14:39:43]Write i2c OK [14:39:43]MH_I2C_Read... [14:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:43]Read from MH i2c: E2 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 0E 00 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 0E 00 31 7C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 54 [14:39:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:39:43]wFMCommunicate OK [14:39:43]SAM_PROTO_GetShiftState done [14:39:43]FM_GetShiftState done [14:39:43]req_shift_opened done [14:39:43]requested_item shift.open_date is exist - process it [14:39:43]req_shift_open_date [14:39:43]req_shift_open_date done [14:39:43]produce_requested_data done [14:39:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74672,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:39:43]process_action_free close_receipt [14:39:43]json_value_free [14:39:43]json_value_free done [14:39:43]process_json_proto returns [14:39:43]Send response to host [14:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74672,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:39:43]free response buf [14:39:43]execute_script done [14:39:43]execute_script returns [14:39:43]free content buf [14:39:43]Sock 9.Close socket [14:39:43]Sock 9.Thread stoped [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [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:45]accept exits with 8 [14:42:45]New connection [14:42:45]New thread 3066662244 created [14:42:45]Thread 3066805604 joined [14:42:45]Waiting for new connection... [14:42:45] Sock 8.Parse request [14:42:45]Sock 8.Check first char [14:42:45]Sock 8.First char is OK [14:42:45]request: POST /json_proto HTTP/1.0 [14:42:45]Method: POST [14:42:45]URL: /json_proto [14:42:45]Method is POST - this is cgi request [14:42:45]url: /json_proto [14:42:45]query_string will be loaded in cgi processing [14:42:45]execute_cgi json_proto POST (null) [14:42:45]execute_cgi path=json_proto method=POST [14:42:45]POST find Content-Length [14:42:45]Host: 172.17.39.131:8080 [14:42:45]Content-Length: 800 [14:42:45]Content-Type: application/json [14:42:45] [14:42:45]POST finish read [14:42:45]Found Content-Length = 800 [14:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:45]execute_script... [14:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:45]POST & json_proto [14:42:45]process_json_proto [14:42:45]json parsed OK: [14:42:45]protocol is kg_v1.0 [14:42:45]action value=close_receipt [14:42:45]process_action close_receipt [14:42:45]cmd_close_receipt [14:42:45]MH_GetDate [14:42:45]Write to MH i2c: F0 00 00 32 7C 9D [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: F0 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: F0 09 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: F0 09 00 32 7C 00 F1 5C 1A 67 86 57 24 65 DA [14:42:45]GetLastDocTimeStamp 1729780790 [14:42:45]current date 1729780977 [14:42:45]FM_GetShiftState [14:42:45]SAM_PROTO_GetShiftState [14:42:45]wFMCommunicate request_size=4 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 13 01 00 [14:42:45]Write to MH i2c: E2 08 00 33 7C 80 13 01 00 00 00 00 00 2C [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 0E 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 0E 00 33 7C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 56 [14:42:45]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:42:45]wFMCommunicate OK [14:42:45]SAM_PROTO_GetShiftState done [14:42:45]FM_GetShiftState done [14:42:45]opened in 1729729801 [14:42:45]opened+sec_in_day 1729816201 [14:42:45]quantity*price = 300075 [14:42:45]sum+1 = 300077 [14:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 117 24.10.2024 14:42 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 74673 ФПД: 217735349437324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144257&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74673&fm=217735349437324&tin=02508201610067®Number=0000000000091691&sum=300076 [14:42:46]StoreToDocumentArchive [14:42:46]shift 510 fd 74673 [14:42:46]save to /storage/0510/doc_00074673 [14:42:46]save last doc name /storage/0510/doc_00074673 to /storage/kkm_last_doc_name [14:42:46]save OK [14:42:46]Clear old archive folders... [14:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:42:46]tlvbuf is 00825250 [14:42:46]SAM_PROTO_ClearQueue [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 09 00 00 [14:42:46]Write to MH i2c: E2 08 00 40 7C 80 09 00 00 00 00 00 00 2E [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 40 7C 00 90 00 30 [14:42:46]RAPDU: 90 00 [14:42:46]wFMCommunicate OK [14:42:46]SAM_PROTO_ClearQueue done [14:42:46]KKMCreateOFDPacket [14:42:46]OFDProtocolAddRootSTLVToBuf [14:42:46]FM_MakeSignedData [14:42:46]FM_MakeSignedData [14:42:46]SAM_PROTO_SignData [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 0D 01 02 [14:42:46]Write to MH i2c: E2 08 00 41 7C 80 0D 01 02 00 00 00 00 36 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 41 7C 00 90 00 31 [14:42:46]RAPDU: 90 00 [14:42:46]wFMCommunicate OK [14:42:46]wFMCommunicate request_size=255 [14:42:46]MH_SAM_APDU [14:42: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F1 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 23 01 00 35 04 06 00 C6 07 76 28 [14:42:46]Write to MH i2c: E2 02 01 42 7C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F1 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 23 01 00 35 04 06 00 C6 07 76 28 00 00 13 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 03 00 42 7C 00 90 00 32 [14:42:46]RAPDU: 90 00 [14:42:46]wFMCommunicate OK [14:42:46]wFMCommunicate request_size=7 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 0D 02 02 02 83 8C [14:42:46]Write to MH i2c: E2 0A 00 43 7C 80 0D 02 02 02 00 83 8C 00 00 4C [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:47]Read from MH i2c: E2 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 03 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 03 00 43 7C 00 90 00 33 [14:42:47]RAPDU: 90 00 [14:42:47]wFMCommunicate OK [14:42:47]wFMCommunicate request_size=4 [14:42:47]MH_SAM_APDU [14:42:47]CAPDU: 80 0D 03 02 [14:42:47]Write to MH i2c: E2 08 00 44 7C 80 0D 03 02 00 00 00 00 3B [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:47]Read from MH i2c: E2 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0B 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0B 00 44 7C 00 00 0B 24 57 91 9D C7 CC 90 00 83 [14:42:47]RAPDU: 00 0B 24 57 91 9D C7 CC 90 00 [14:42:47]wFMCommunicate OK [14:42:47]SAM_PROTO_SignData done [14:42:47]FM_MakeSignedData done [14:42:47]CreateOFDProtocolMessage [14:42:47]wFMCommunicate request_size=4 [14:42:47]MH_SAM_APDU [14:42:47]CAPDU: 80 11 00 00 [14:42:47]Write to MH i2c: E2 08 00 45 7C 80 11 00 00 00 00 00 00 3B [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:47]Read from MH i2c: E2 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 17 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 17 00 45 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 93 [14:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:42:47]wFMCommunicate OK [14:42:47]CreateOFDProtocolMessage done [14:42:47]OFDSenderStorePacket 74673 [14:42:47]StoreOFDPacket docnum=74673 [14:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 2C FD 04 01 BE 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F1 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 23 01 00 35 04 06 00 C6 07 76 28 83 8C 00 0B 24 57 91 9D C7 CC [14:42:47]CheckFolder [14:42:47]dirname=/storage/ofd_packets [14:42:47]CheckFolder done [14:42:47]ProducePacketName [14:42:47]name=ofd_packets/00074673 [14:42:47]NVStorageSaveData ofd_packets/00074673 [14:42:47]File name is /storage/ofd_packets/00074673 [14:42:47]Write 298 bytes [14:42:47]NVStorageSaveData done [14:42:47]OFDSenderStorePacket done [14:42:47]KKMCreateOFDPacket done [14:42:47]NVStorageSaveData kkm_last_timestamp [14:42:47]File name is /storage/kkm_last_timestamp [14:42:47]Write 4 bytes [14:42:47]NVStorageSaveData done [14:42:47]ExternCall_PrintAddStr [14:42:47]wPrintStart [14:42:47]Write to MH i2c: 01 00 00 46 7C C2 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 07 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 07 00 46 7C 00 00 00 00 00 FF 0F D7 [14:42:47]RasterBufferAndPrint [14:42:47]line Счет N : (1)190639 [14:42:47]line ИНН: 02508201610067 [14:42:47]line Контрольно-Кассовый Чек [14:42:47]line ПРОДАЖА [14:42:47]line ТРК (МРК, ГНК) : 31 [14:42:47]line Товар: 2710194210 [14:42:47]line ДТ-К-4 [14:42:47]line 39.380 * 76.20 [14:42:47]line = 3000.76 [14:42:47]line НДС 12% НСП 1% [14:42:47]line > о реализуемом товаре [14:42:47]line ИТОГО: 3000.76 [14:42:47]line НСП 1% : 26.55 [14:42:47]line НДС 12% : 318.66 [14:42:47]line Наличными: 0.00 [14:42:47]line Безнал.: 3000.76 [14:42:47]line Место: АЗС № 142 "Партнер Нефть" [14:42:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:42:47]line СНО: Общий режим [14:42:47]line Чек 117 24.10.2024 14:42 [14:42:47]line Смена: 510 ФФД: 1.0 [14:42:47]line ЗНМ: 0300000089 [14:42:47]line РНМ: 0000000000091691 [14:42:47]line Версия ККМ: 001 [14:42:47]line Платежная система: O! деньги [14:42:47]line ФМ: 0000000000871795 [14:42:47]line ФД: 74673 [14:42:47]line ФПД: 217735349437324 [14:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144257&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74673&fm=217735349437324&tin=02508201610067®Number=0000000000091691&sum=300076 [14:42:47]OFD Sender: Processing packet 74673 [packets to send 13, broken 12] [14:42:47]ProducePacketName [14:42:47]name=ofd_packets/00074673 [14:42:47]OFD Sender: To server: pG, [14:42:47]CommunicateWithHost lk.salyk.kg:30040 [14:42:47]ConnectInit lk.salyk.kg [14:42:47]written 0, free lines is 4095 [14:42:47]Connected sock=10 [14:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 2C FD 04 01 BE 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F1 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 23 01 00 35 04 06 00 C6 07 76 28 83 8C 00 0B 24 57 91 9D C7 CC [14:42:47]Write to MH i2c: 01 00 00 70 7C EC [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 07 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: 01 07 00 70 7C 00 00 00 00 00 B2 0C B1 [14:42:47]RasterBufferAndPrint [14:42:47]line [14:42:47]line [14:42:47]line [14:42:47]line [14:42:47]line [14:42:47]written 0, free lines is 3254 [14:42:47]MH_Cut [14:42:47]Write to MH i2c: D1 01 00 77 7C 01 C5 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: D1 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: D1 01 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: D1 01 00 77 7C 00 C4 [14:42:47]Write to MH i2c: 01 00 00 78 7C F4 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 02 B5 47 00 9F B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 23 01 00 F4 03 04 00 73 04 1A 67 B6 04 01 00 00 BD F9 96 1D 64 86 87 0A [14:42:48]CommunicateWithHost err = 0 [14:42:48]CheckOFDResponse [14:42:48]1017 (14) - 77093643461234 [14:42:48]1041 (16) - 0000000000871795 [14:42:48]1040 (4) - 74673 [14:42:48]1012 (4) - 24.10.2024 08:25 [14:42:48]1206 (1) - 0 [14:42:48]OFD Sender: Remove packet 74673 [14:42:48]ProducePacketName [14:42:48]name=ofd_packets/00074673 [14:42:48]NVStorageDeleteData [14:42:48]OFD Sender: No OFD packet to send [14:42:48]*** Cut start [14:42:48]*** Partial cut [14:42:48]*** CUTSNS_PIN = 1 [14:42:48]*** CUTSNS_PIN = 0 [14:42:49]*** Brake cut motor [14:42:49]Read from MH i2c: 01 [14:42:49]MH_I2C_Read... [14:42:49]*** Stop cut motor [14:42:49]*** Cut end [14:42:49]Read from MH i2c: 01 07 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 07 00 78 7C 00 00 00 00 00 FF 0F 09 [14:42:49]process_action close_receipt done [14:42:49]requested_data is exist [14:42:49]produce_requested_data [14:42:49]requested_item fm.sn is exist - process it [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 11 00 00 [14:42:49]Write to MH i2c: E2 08 00 79 7C 80 11 00 00 00 00 00 00 6F [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 79 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C7 [14:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:42:49]wFMCommunicate OK [14:42:49]requested_item fd.num is exist - process it [14:42:49]SAM_PROTO_GetFieldsCounters [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 13 00 00 [14:42:49]Write to MH i2c: E2 08 00 7A 7C 80 13 00 00 00 00 00 00 72 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 62 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 62 00 7A 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B1 23 01 00 0E 04 04 00 FE 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 CC [14:42:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B1 23 01 00 0E 04 04 00 FE 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 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_GetFieldsCounters done [14:42:49]requested_item shift.num is exist - process it [14:42:49]requested_item shift.opened is exist - process it [14:42:49]req_shift_opened [14:42:49]FM_GetShiftState [14:42:49]SAM_PROTO_GetShiftState [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 13 01 00 [14:42:49]Write to MH i2c: E2 08 00 7B 7C 80 13 01 00 00 00 00 00 74 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0E 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0E 00 7B 7C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 9E [14:42:49]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_GetShiftState done [14:42:49]FM_GetShiftState done [14:42:49]req_shift_opened done [14:42:49]requested_item shift.open_date is exist - process it [14:42:49]req_shift_open_date [14:42:49]req_shift_open_date done [14:42:49]produce_requested_data done [14:42:49]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74673,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:42:49]process_action_free close_receipt [14:42:49]json_value_free [14:42:49]json_value_free done [14:42:49]process_json_proto returns [14:42:49]Send response to host [14:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74673,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:42:49]free response buf [14:42:49]execute_script done [14:42:49]execute_script returns [14:42:49]free content buf [14:42:49]Sock 8.Close socket [14:42:49]Sock 8.Thread stoped [14:42:53]OFD Sender: No OFD packet to send [14:42:57]accept exits with 9 [14:42:57]New connection [14:42:57]New thread 3066805604 created [14:42:57]Thread 3066662244 joined [14:42:57]Waiting for new connection... [14:42:57] Sock 9.Parse request [14:42:57]Sock 9.Check first char [14:42:57]Sock 9.First char is OK [14:42:57]request: POST /json_proto HTTP/1.0 [14:42:57]Method: POST [14:42:57]URL: /json_proto [14:42:57]Method is POST - this is cgi request [14:42:57]url: /json_proto [14:42:57]query_string will be loaded in cgi processing [14:42:57]execute_cgi json_proto POST (null) [14:42:57]execute_cgi path=json_proto method=POST [14:42:57]POST find Content-Length [14:42:57]Host: 172.17.39.131:8080 [14:42:57]Content-Length: 775 [14:42:57]Content-Type: application/json [14:42:57] [14:42:57]POST finish read [14:42:57]Found Content-Length = 775 [14:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:57]execute_script... [14:42: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)190638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:57]POST & json_proto [14:42:57]process_json_proto [14:42:57]json parsed OK: [14:42:57]protocol is kg_v1.0 [14:42:57]action value=close_receipt [14:42:57]process_action close_receipt [14:42:57]cmd_close_receipt [14:42:57]MH_GetDate [14:42:57]Write to MH i2c: F0 00 00 7C 7C E7 [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: F0 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: F0 09 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: F0 09 00 7C 7C 00 FD 5C 1A 67 86 57 24 65 30 [14:42:57]GetLastDocTimeStamp 1729780977 [14:42:57]current date 1729780989 [14:42:57]FM_GetShiftState [14:42:57]SAM_PROTO_GetShiftState [14:42:57]wFMCommunicate request_size=4 [14:42:57]MH_SAM_APDU [14:42:57]CAPDU: 80 13 01 00 [14:42:57]Write to MH i2c: E2 08 00 7D 7C 80 13 01 00 00 00 00 00 76 [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:57]Read from MH i2c: E2 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 0E 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 0E 00 7D 7C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A0 [14:42:57]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:42:57]wFMCommunicate OK [14:42:57]SAM_PROTO_GetShiftState done [14:42:57]FM_GetShiftState done [14:42:57]opened in 1729729801 [14:42:57]opened+sec_in_day 1729816201 [14:42:57]quantity*price = 200025 [14:42:57]sum+1 = 200026 [14:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 118 24.10.2024 14:43 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74674 ФПД: 242427162071826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144309&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74674&fm=242427162071826&tin=02508201610067®Number=0000000000091691&sum=200025 [14:42:58]StoreToDocumentArchive [14:42:58]shift 510 fd 74674 [14:42:58]save to /storage/0510/doc_00074674 [14:42:58]save last doc name /storage/0510/doc_00074674 to /storage/kkm_last_doc_name [14:42:58]save OK [14:42:58]Clear old archive folders... [14:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:42:58]tlvbuf is 008AB0F0 [14:42:58]SAM_PROTO_ClearQueue [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 09 00 00 [14:42:58]Write to MH i2c: E2 08 00 8A 7C 80 09 00 00 00 00 00 00 78 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 8A 7C 00 90 00 7A [14:42:59]RAPDU: 90 00 [14:42:59]wFMCommunicate OK [14:42:59]SAM_PROTO_ClearQueue done [14:42:59]KKMCreateOFDPacket [14:42:59]OFDProtocolAddRootSTLVToBuf [14:42:59]FM_MakeSignedData [14:42:59]FM_MakeSignedData [14:42:59]SAM_PROTO_SignData [14:42:59]wFMCommunicate request_size=4 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 0D 01 02 [14:42:59]Write to MH i2c: E2 08 00 8B 7C 80 0D 01 02 00 00 00 00 80 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 8B 7C 00 90 00 7B [14:42:59]RAPDU: 90 00 [14:42:59]wFMCommunicate OK [14:42:59]wFMCommunicate request_size=255 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FD 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 23 01 [14:42:59]Write to MH i2c: E2 02 01 8C 7C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FD 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 23 01 00 00 98 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 8C 7C 00 90 00 7C [14:42:59]RAPDU: 90 00 [14:42:59]wFMCommunicate OK [14:42:59]wFMCommunicate request_size=16 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DC 7C 78 E1 13 12 [14:42:59]Write to MH i2c: E2 13 00 8D 7C 80 0D 02 02 0B 00 00 35 04 06 00 DC 7C 78 E1 13 12 00 00 AE [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 03 00 8D 7C 00 90 00 7D [14:42:59]RAPDU: 90 00 [14:42:59]wFMCommunicate OK [14:42:59]wFMCommunicate request_size=4 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 0D 03 02 [14:42:59]Write to MH i2c: E2 08 00 8E 7C 80 0D 03 02 00 00 00 00 85 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 0B 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 0B 00 8E 7C 00 A7 6B B9 8A 3A 0D 2A E8 90 00 34 [14:42:59]RAPDU: A7 6B B9 8A 3A 0D 2A E8 90 00 [14:42:59]wFMCommunicate OK [14:42:59]SAM_PROTO_SignData done [14:42:59]FM_MakeSignedData done [14:42:59]CreateOFDProtocolMessage [14:42:59]wFMCommunicate request_size=4 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 11 00 00 [14:42:59]Write to MH i2c: E2 08 00 8F 7C 80 11 00 00 00 00 00 00 85 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 17 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 17 00 8F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DD [14:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:42:59]wFMCommunicate OK [14:42:59]CreateOFDProtocolMessage done [14:42:59]OFDSenderStorePacket 74674 [14:42:59]StoreOFDPacket docnum=74674 [14:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 07 4D 0D 01 10 00 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FD 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 23 01 00 35 04 06 00 DC 7C 78 E1 13 12 A7 6B B9 8A 3A 0D 2A E8 [14:42:59]CheckFolder [14:42:59]dirname=/storage/ofd_packets [14:42:59]CheckFolder done [14:42:59]ProducePacketName [14:42:59]name=ofd_packets/00074674 [14:42:59]NVStorageSaveData ofd_packets/00074674 [14:42:59]File name is /storage/ofd_packets/00074674 [14:42:59]Write 307 bytes [14:42:59]NVStorageSaveData done [14:42:59]OFDSenderStorePacket done [14:42:59]KKMCreateOFDPacket done [14:42:59]NVStorageSaveData kkm_last_timestamp [14:42:59]File name is /storage/kkm_last_timestamp [14:42:59]Write 4 bytes [14:42:59]NVStorageSaveData done [14:42:59]ExternCall_PrintAddStr [14:42:59]wPrintStart [14:42:59]Write to MH i2c: 01 00 00 90 7C 0C [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 90 7C 00 00 00 00 00 FF 0F 21 [14:42:59]RasterBufferAndPrint [14:42:59]line Счет N : (1)190638 [14:42:59]line ИНН: 02508201610067 [14:42:59]line Контрольно-Кассовый Чек [14:42:59]line ПРОДАЖА [14:42:59]line ТРК (МРК, ГНК) : 42 [14:42:59]line Товар: 2710194240 [14:42:59]line D-ENERGY ДТ-К-2 [14:42:59]line 25.910 * 77.20 [14:42:59]line = 2000.25 [14:42:59]line НДС 12% НСП 1% [14:42:59]line > о реализуемом товаре [14:42:59]line ИТОГО: 2000.25 [14:42:59]line НСП 1% : 17.70 [14:42:59]line НДС 12% : 212.42 [14:42:59]line Наличными: 0.00 [14:42:59]line Безнал.: 2000.25 [14:42:59]line Место: АЗС № 142 "Партнер Нефть" [14:42:59]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:42:59]line СНО: Общий режим [14:42:59]line Чек 118 24.10.2024 14:43 [14:42:59]line Смена: 510 ФФД: 1.0 [14:42:59]line ЗНМ: 0300000089 [14:42:59]line РНМ: 0000000000091691 [14:42:59]line Версия ККМ: 001 [14:42:59]line Платежная система: Mbank [14:42:59]line ФМ: 0000000000871795 [14:42:59]line ФД: 74674 [14:42:59]line ФПД: 242427162071826 [14:42:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144309&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74674&fm=242427162071826&tin=02508201610067®Number=0000000000091691&sum=200025 [14:42:59]written 0, free lines is 4095 [14:42:59]OFD Sender: Processing packet 74674 [packets to send 13, broken 12] [14:42:59]ProducePacketName [14:42:59]name=ofd_packets/00074674 [14:42:59]OFD Sender: To server: pG, [14:42:59]CommunicateWithHost lk.salyk.kg:30040 [14:42:59]ConnectInit lk.salyk.kg [14:42:59]Write to MH i2c: 01 00 00 B9 7C 35 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 B9 7C 00 00 00 00 00 CE 0C 16 [14:42:59]RasterBufferAndPrint [14:42:59]line [14:42:59]line [14:42:59]line [14:42:59]line [14:42:59]line [14:42:59]written 0, free lines is 3284 [14:42:59]MH_Cut [14:42:59]Write to MH i2c: D1 01 00 C0 7C 01 0E [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: D1 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: D1 01 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: D1 01 00 C0 7C 00 0D [14:42:59]Write to MH i2c: 01 00 00 C1 7C 3D [14:43:00]Write i2c OK [14:43:00]MH_I2C_Read... [14:43:00]*** Cut start [14:43:00]*** Partial cut [14:43:00]*** CUTSNS_PIN = 1 [14:43:00]*** CUTSNS_PIN = 0 [14:43:01]*** Brake cut motor [14:43:01]Read from MH i2c: 01 [14:43:01]MH_I2C_Read... [14:43:01]*** Stop cut motor [14:43:01]*** Cut end [14:43:01]Read from MH i2c: 01 07 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: 01 07 00 C1 7C 00 00 00 00 00 FF 0F 52 [14:43:01]process_action close_receipt done [14:43:01]requested_data is exist [14:43:01]produce_requested_data [14:43:01]requested_item fm.sn is exist - process it [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 11 00 00 [14:43:01]Write to MH i2c: E2 08 00 C2 7C 80 11 00 00 00 00 00 00 B8 [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 17 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 17 00 C2 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 10 [14:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:43:01]wFMCommunicate OK [14:43:01]requested_item fd.num is exist - process it [14:43:01]SAM_PROTO_GetFieldsCounters [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 13 00 00 [14:43:01]Write to MH i2c: E2 08 00 C3 7C 80 13 00 00 00 00 00 00 BB [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 62 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 62 00 C3 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B2 23 01 00 0E 04 04 00 FE 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 19 [14:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B2 23 01 00 0E 04 04 00 FE 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 [14:43:01]wFMCommunicate OK [14:43:01]SAM_PROTO_GetFieldsCounters done [14:43:01]requested_item shift.num is exist - process it [14:43:01]requested_item shift.opened is exist - process it [14:43:01]req_shift_opened [14:43:01]FM_GetShiftState [14:43:01]SAM_PROTO_GetShiftState [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 13 01 00 [14:43:01]Write to MH i2c: E2 08 00 C4 7C 80 13 01 00 00 00 00 00 BD [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 0E 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 0E 00 C4 7C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E7 [14:43:01]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:43:01]wFMCommunicate OK [14:43:01]SAM_PROTO_GetShiftState done [14:43:01]FM_GetShiftState done [14:43:01]req_shift_opened done [14:43:01]requested_item shift.open_date is exist - process it [14:43:01]req_shift_open_date [14:43:01]req_shift_open_date done [14:43:01]produce_requested_data done [14:43:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74674,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:43:01]process_action_free close_receipt [14:43:01]json_value_free [14:43:01]json_value_free done [14:43:01]process_json_proto returns [14:43:01]Send response to host [14:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74674,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:43:01]free response buf [14:43:01]execute_script done [14:43:01]execute_script returns [14:43:01]free content buf [14:43:01]Sock 9.Close socket [14:43:01]Sock 9.Thread stoped [14:45:11]ConnectInit Can't connect to host [14:45:11]CommunicateWithHost connect error [14:45:11]CommunicateWithHost err = -1 [14:45:11]OFD Sender: Server communicate error [14:45:16]OFD Sender: Processing packet 74674 [packets to send 13, broken 12] [14:45:16]ProducePacketName [14:45:16]name=ofd_packets/00074674 [14:45:16]OFD Sender: To server: pG, [14:45:16]CommunicateWithHost lk.salyk.kg:30040 [14:45:16]ConnectInit lk.salyk.kg [14:45:16]Connected sock=10 [14:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 07 4D 0D 01 10 00 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FD 5C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 23 01 00 35 04 06 00 DC 7C 78 E1 13 12 A7 6B B9 8A 3A 0D 2A E8 [14:45:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E4 A0 47 00 7B FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 23 01 00 F4 03 04 00 08 05 1A 67 B6 04 01 00 00 6B D4 75 94 AD 91 D0 E7 [14:45:17]CommunicateWithHost err = 0 [14:45:17]CheckOFDResponse [14:45:17]1017 (14) - 77093643461234 [14:45:17]1041 (16) - 0000000000871795 [14:45:17]1040 (4) - 74674 [14:45:17]1012 (4) - 24.10.2024 08:27 [14:45:17]1206 (1) - 0 [14:45:17]OFD Sender: Remove packet 74674 [14:45:17]ProducePacketName [14:45:17]name=ofd_packets/00074674 [14:45:17]NVStorageDeleteData [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:25]accept exits with 8 [14:45:25]New connection [14:45:25]New thread 3066662244 created [14:45:25]Thread 3066805604 joined [14:45:25]Waiting for new connection... [14:45:25] Sock 8.Parse request [14:45:25]Sock 8.Check first char [14:45:25]Sock 8.First char is OK [14:45:25]request: POST /json_proto HTTP/1.0 [14:45:25]Method: POST [14:45:25]URL: /json_proto [14:45:25]Method is POST - this is cgi request [14:45:25]url: /json_proto [14:45:25]query_string will be loaded in cgi processing [14:45:25]execute_cgi json_proto POST (null) [14:45:25]execute_cgi path=json_proto method=POST [14:45:25]POST find Content-Length [14:45:25]Host: 172.17.39.131:8080 [14:45:25]Content-Length: 682 [14:45:25]Content-Type: application/json [14:45:25] [14:45:25]POST finish read [14:45:25]Found Content-Length = 682 [14:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:25]execute_script... [14:45: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)190640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:25]POST & json_proto [14:45:25]process_json_proto [14:45:25]json parsed OK: [14:45:25]protocol is kg_v1.0 [14:45:25]action value=close_receipt [14:45:25]process_action close_receipt [14:45:25]cmd_close_receipt [14:45:25]MH_GetDate [14:45:25]Write to MH i2c: F0 00 00 C5 7C 30 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: F0 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: F0 09 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: F0 09 00 C5 7C 00 91 5D 1A 67 86 57 24 65 0E [14:45:25]GetLastDocTimeStamp 1729780989 [14:45:25]current date 1729781137 [14:45:25]FM_GetShiftState [14:45:25]SAM_PROTO_GetShiftState [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 13 01 00 [14:45:25]Write to MH i2c: E2 08 00 C6 7C 80 13 01 00 00 00 00 00 BF [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0E 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0E 00 C6 7C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E9 [14:45:25]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:45:25]wFMCommunicate OK [14:45:25]SAM_PROTO_GetShiftState done [14:45:25]FM_GetShiftState done [14:45:25]opened in 1729729801 [14:45:25]opened+sec_in_day 1729816201 [14:45:25]quantity*price = 120018 [14:45:25]sum+1 = 120020 [14:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 119 24.10.2024 14:45 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74675 ФПД: 269301473186041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144537&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74675&fm=269301473186041&tin=02508201610067®Number=0000000000091691&sum=120000 [14:45:26]StoreToDocumentArchive [14:45:26]shift 510 fd 74675 [14:45:26]save to /storage/0510/doc_00074675 [14:45:26]save last doc name /storage/0510/doc_00074675 to /storage/kkm_last_doc_name [14:45:26]save OK [14:45:26]Clear old archive folders... [14:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:26]tlvbuf is 008900A0 [14:45:26]SAM_PROTO_ClearQueue [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 09 00 00 [14:45:26]Write to MH i2c: E2 08 00 D3 7C 80 09 00 00 00 00 00 00 C1 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 D3 7C 00 90 00 C3 [14:45:26]RAPDU: 90 00 [14:45:26]wFMCommunicate OK [14:45:26]SAM_PROTO_ClearQueue done [14:45:26]KKMCreateOFDPacket [14:45:26]OFDProtocolAddRootSTLVToBuf [14:45:26]FM_MakeSignedData [14:45:26]FM_MakeSignedData [14:45:26]SAM_PROTO_SignData [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 0D 01 02 [14:45:26]Write to MH i2c: E2 08 00 D4 7C 80 0D 01 02 00 00 00 00 C9 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 D4 7C 00 90 00 C4 [14:45:26]RAPDU: 90 00 [14:45:26]wFMCommunicate OK [14:45:26]wFMCommunicate request_size=255 [14:45:26]MH_SAM_APDU [14:45: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 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 23 01 00 35 04 06 00 F4 [14:45:26]Write to MH i2c: E2 02 01 D5 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 23 01 00 35 04 06 00 F4 00 00 15 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 D5 7C 00 90 00 C5 [14:45:26]RAPDU: 90 00 [14:45:26]wFMCommunicate OK [14:45:26]wFMCommunicate request_size=10 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 0D 02 02 05 ED A2 A5 90 F9 [14:45:26]Write to MH i2c: E2 0D 00 D6 7C 80 0D 02 02 05 00 ED A2 A5 90 F9 00 00 93 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 D6 7C 00 90 00 C6 [14:45:27]RAPDU: 90 00 [14:45:27]wFMCommunicate OK [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 0D 03 02 [14:45:27]Write to MH i2c: E2 08 00 D7 7C 80 0D 03 02 00 00 00 00 CE [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 0B 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 0B 00 D7 7C 00 C5 BB 40 76 A5 CB 4A 79 90 00 38 [14:45:27]RAPDU: C5 BB 40 76 A5 CB 4A 79 90 00 [14:45:27]wFMCommunicate OK [14:45:27]SAM_PROTO_SignData done [14:45:27]FM_MakeSignedData done [14:45:27]CreateOFDProtocolMessage [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 11 00 00 [14:45:27]Write to MH i2c: E2 08 00 D8 7C 80 11 00 00 00 00 00 00 CE [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 17 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 17 00 D8 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 26 [14:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:45:27]wFMCommunicate OK [14:45:27]CreateOFDProtocolMessage done [14:45:27]OFDSenderStorePacket 74675 [14:45:27]StoreOFDPacket docnum=74675 [14:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1D 59 07 01 FF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 23 01 00 35 04 06 00 F4 ED A2 A5 90 F9 C5 BB 40 76 A5 CB 4A 79 [14:45:27]CheckFolder [14:45:27]dirname=/storage/ofd_packets [14:45:27]CheckFolder done [14:45:27]ProducePacketName [14:45:27]name=ofd_packets/00074675 [14:45:27]NVStorageSaveData ofd_packets/00074675 [14:45:27]File name is /storage/ofd_packets/00074675 [14:45:27]Write 301 bytes [14:45:27]NVStorageSaveData done [14:45:27]OFDSenderStorePacket done [14:45:27]KKMCreateOFDPacket done [14:45:27]NVStorageSaveData kkm_last_timestamp [14:45:27]File name is /storage/kkm_last_timestamp [14:45:27]Write 4 bytes [14:45:27]NVStorageSaveData done [14:45:27]ExternCall_PrintAddStr [14:45:27]wPrintStart [14:45:27]Write to MH i2c: 01 00 00 D9 7C 55 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 07 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 07 00 D9 7C 00 00 00 00 00 FF 0F 6A [14:45:27]RasterBufferAndPrint [14:45:27]line Счет N : (1)190640 [14:45:27]line ИНН: 02508201610067 [14:45:27]line Контрольно-Кассовый Чек [14:45:27]line ПРОДАЖА [14:45:27]line ТРК (МРК, ГНК) : 21 [14:45:27]line Товар: 2710124130 [14:45:27]line Аи-92-К-5 [14:45:27]line 17.940 * 66.90 [14:45:27]line = 1200.19 [14:45:27]line НДС 12% НСП 1% [14:45:27]line > о реализуемом товаре [14:45:27]line ОКРУГЛЕНИЕ: -0.19 [14:45:27]line ИТОГО: 1200.00 [14:45:27]line Внесено: 1200.00 [14:45:27]line СДАЧА: 0.00 [14:45:27]line НСП 1% : 10.62 [14:45:27]line НДС 12% : 127.45 [14:45:27]line Наличными: 1200.00 [14:45:27]line Безнал.: 0.00 [14:45:27]line Место: АЗС № 142 "Партнер Нефть" [14:45:27]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:45:27]line СНО: Общий режим [14:45:27]line Чек 119 24.10.2024 14:45 [14:45:27]line Смена: 510 ФФД: 1.0 [14:45:27]line ЗНМ: 0300000089 [14:45:27]line РНМ: 0000000000091691 [14:45:27]line Версия ККМ: 001 [14:45:27]line ФМ: 0000000000871795 [14:45:27]line ФД: 74675 [14:45:27]line ФПД: 269301473186041 [14:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144537&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74675&fm=269301473186041&tin=02508201610067®Number=0000000000091691&sum=120000 [14:45:27]written 0, free lines is 4095 [14:45:27]OFD Sender: Processing packet 74675 [packets to send 13, broken 12] [14:45:27]ProducePacketName [14:45:27]name=ofd_packets/00074675 [14:45:27]OFD Sender: To server: pG, [14:45:27]CommunicateWithHost lk.salyk.kg:30040 [14:45:27]ConnectInit lk.salyk.kg [14:45:27]Connected sock=11 [14:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1D 59 07 01 FF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 23 01 00 35 04 06 00 F4 ED A2 A5 90 F9 C5 BB 40 76 A5 CB 4A 79 [14:45:27]Write to MH i2c: 01 00 00 04 7D 81 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 07 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 07 00 04 7D 00 00 00 00 00 A0 0C 34 [14:45:27]RasterBufferAndPrint [14:45:27]line [14:45:27]line [14:45:27]line [14:45:27]line [14:45:27]line [14:45:27]written 0, free lines is 3238 [14:45:27]MH_Cut [14:45:27]Write to MH i2c: D1 01 00 0B 7D 01 5A [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: D1 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: D1 01 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: D1 01 00 0B 7D 00 59 [14:45:27]Write to MH i2c: 01 00 00 0C 7D 89 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 44 ED 47 00 00 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 31 37 39 35 10 04 04 00 B3 23 01 00 F4 03 04 00 13 05 1A 67 B6 04 01 00 00 52 7F B9 17 BE DA 5A 45 [14:45:27]CommunicateWithHost err = 0 [14:45:27]CheckOFDResponse [14:45:27]1017 (14) - 77093643461234 [14:45:27]1041 (16) - 0000000000871795 [14:45:27]1040 (4) - 74675 [14:45:27]1012 (4) - 24.10.2024 08:28 [14:45:27]1206 (1) - 0 [14:45:27]OFD Sender: Remove packet 74675 [14:45:27]ProducePacketName [14:45:27]name=ofd_packets/00074675 [14:45:27]NVStorageDeleteData [14:45:28]OFD Sender: No OFD packet to send [14:45:28]*** Cut start [14:45:28]*** Partial cut [14:45:28]*** CUTSNS_PIN = 1 [14:45:28]*** CUTSNS_PIN = 0 [14:45:29]*** Brake cut motor [14:45:29]Read from MH i2c: 01 [14:45:29]MH_I2C_Read... [14:45:29]*** Stop cut motor [14:45:29]*** Cut end [14:45:29]Read from MH i2c: 01 07 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: 01 07 00 0C 7D 00 00 00 00 00 FF 0F 9E [14:45:29]process_action close_receipt done [14:45:29]requested_data is exist [14:45:29]produce_requested_data [14:45:29]requested_item fm.sn is exist - process it [14:45:29]wFMCommunicate request_size=4 [14:45:29]MH_SAM_APDU [14:45:29]CAPDU: 80 11 00 00 [14:45:29]Write to MH i2c: E2 08 00 0D 7D 80 11 00 00 00 00 00 00 04 [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:29]Read from MH i2c: E2 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 17 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 17 00 0D 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5C [14:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:45:29]wFMCommunicate OK [14:45:29]requested_item fd.num is exist - process it [14:45:29]SAM_PROTO_GetFieldsCounters [14:45:29]wFMCommunicate request_size=4 [14:45:29]MH_SAM_APDU [14:45:29]CAPDU: 80 13 00 00 [14:45:29]Write to MH i2c: E2 08 00 0E 7D 80 13 00 00 00 00 00 00 07 [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:29]Read from MH i2c: E2 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 62 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 62 00 0E 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B3 23 01 00 0E 04 04 00 FE 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 69 [14:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B3 23 01 00 0E 04 04 00 FE 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 [14:45:29]wFMCommunicate OK [14:45:29]SAM_PROTO_GetFieldsCounters done [14:45:29]requested_item shift.num is exist - process it [14:45:29]requested_item shift.opened is exist - process it [14:45:29]req_shift_opened [14:45:29]FM_GetShiftState [14:45:29]SAM_PROTO_GetShiftState [14:45:29]wFMCommunicate request_size=4 [14:45:29]MH_SAM_APDU [14:45:29]CAPDU: 80 13 01 00 [14:45:29]Write to MH i2c: E2 08 00 0F 7D 80 13 01 00 00 00 00 00 09 [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:29]Read from MH i2c: E2 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 0E 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 0E 00 0F 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 33 [14:45:29]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:45:29]wFMCommunicate OK [14:45:29]SAM_PROTO_GetShiftState done [14:45:29]FM_GetShiftState done [14:45:29]req_shift_opened done [14:45:29]requested_item shift.open_date is exist - process it [14:45:29]req_shift_open_date [14:45:29]req_shift_open_date done [14:45:29]produce_requested_data done [14:45:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74675,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:45:29]process_action_free close_receipt [14:45:29]json_value_free [14:45:29]json_value_free done [14:45:29]process_json_proto returns [14:45:29]Send response to host [14:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74675,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:45:29]free response buf [14:45:29]execute_script done [14:45:29]execute_script returns [14:45:29]free content buf [14:45:29]Sock 8.Close socket [14:45:29]Sock 8.Thread stoped [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:29]accept exits with 9 [14:46:29]New connection [14:46:29]New thread 3066805604 created [14:46:29]Thread 3066662244 joined [14:46:29]Waiting for new connection... [14:46:29] Sock 9.Parse request [14:46:29]Sock 9.Check first char [14:46:29]Sock 9.First char is OK [14:46:29]request: POST /json_proto HTTP/1.0 [14:46:29]Method: POST [14:46:29]URL: /json_proto [14:46:29]Method is POST - this is cgi request [14:46:29]url: /json_proto [14:46:29]query_string will be loaded in cgi processing [14:46:29]execute_cgi json_proto POST (null) [14:46:29]execute_cgi path=json_proto method=POST [14:46:29]POST find Content-Length [14:46:29]Host: 172.17.39.131:8080 [14:46:29]Content-Length: 677 [14:46:29]Content-Type: application/json [14:46:29] [14:46:29]POST finish read [14:46:29]Found Content-Length = 677 [14:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:29]execute_script... [14:46: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)190641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:29]POST & json_proto [14:46:29]process_json_proto [14:46:29]json parsed OK: [14:46:29]protocol is kg_v1.0 [14:46:29]action value=close_receipt [14:46:29]process_action close_receipt [14:46:29]cmd_close_receipt [14:46:29]MH_GetDate [14:46:29]Write to MH i2c: F0 00 00 10 7D 7C [14:46:29]Write i2c OK [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: F0 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: F0 09 00 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: F0 09 00 10 7D 00 D1 5D 1A 67 86 57 24 65 9A [14:46:29]GetLastDocTimeStamp 1729781137 [14:46:29]current date 1729781201 [14:46:29]FM_GetShiftState [14:46:29]SAM_PROTO_GetShiftState [14:46:29]wFMCommunicate request_size=4 [14:46:29]MH_SAM_APDU [14:46:29]CAPDU: 80 13 01 00 [14:46:29]Write to MH i2c: E2 08 00 11 7D 80 13 01 00 00 00 00 00 0B [14:46:29]Write i2c OK [14:46:29]MH_I2C_Read... [14:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:29]Read from MH i2c: E2 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: E2 0E 00 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: E2 0E 00 11 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 35 [14:46:29]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:46:29]wFMCommunicate OK [14:46:29]SAM_PROTO_GetShiftState done [14:46:29]FM_GetShiftState done [14:46:29]opened in 1729729801 [14:46:29]opened+sec_in_day 1729816201 [14:46:29]quantity*price = 35055 [14:46:29]sum+1 = 35057 [14:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 120 24.10.2024 14:46 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74676 ФПД: 40123612845252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144641&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74676&fm=40123612845252&tin=02508201610067®Number=0000000000091691&sum=35000 [14:46:30]StoreToDocumentArchive [14:46:30]shift 510 fd 74676 [14:46:30]save to /storage/0510/doc_00074676 [14:46:30]save last doc name /storage/0510/doc_00074676 to /storage/kkm_last_doc_name [14:46:30]save OK [14:46:30]Clear old archive folders... [14:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:30]tlvbuf is 007D2D10 [14:46:30]SAM_PROTO_ClearQueue [14:46:30]wFMCommunicate request_size=4 [14:46:30]MH_SAM_APDU [14:46:30]CAPDU: 80 09 00 00 [14:46:30]Write to MH i2c: E2 08 00 1E 7D 80 09 00 00 00 00 00 00 0D [14:46:30]Write i2c OK [14:46:30]MH_I2C_Read... [14:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:30]Read from MH i2c: E2 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 03 00 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 03 00 1E 7D 00 90 00 0F [14:46:30]RAPDU: 90 00 [14:46:30]wFMCommunicate OK [14:46:30]SAM_PROTO_ClearQueue done [14:46:30]KKMCreateOFDPacket [14:46:30]OFDProtocolAddRootSTLVToBuf [14:46:30]FM_MakeSignedData [14:46:30]FM_MakeSignedData [14:46:30]SAM_PROTO_SignData [14:46:30]wFMCommunicate request_size=4 [14:46:30]MH_SAM_APDU [14:46:30]CAPDU: 80 0D 01 02 [14:46:30]Write to MH i2c: E2 08 00 1F 7D 80 0D 01 02 00 00 00 00 15 [14:46:30]Write i2c OK [14:46:30]MH_I2C_Read... [14:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:30]Read from MH i2c: E2 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 03 00 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 03 00 1F 7D 00 90 00 10 [14:46:30]RAPDU: 90 00 [14:46:30]wFMCommunicate OK [14:46:30]wFMCommunicate request_size=255 [14:46:30]MH_SAM_APDU [14:46: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 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 23 01 00 35 04 06 00 24 [14:46:30]Write to MH i2c: E2 02 01 20 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 23 01 00 35 04 06 00 24 00 00 D7 [14:46:30]Write i2c OK [14:46:30]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 20 7D 00 90 00 11 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]wFMCommunicate request_size=10 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 02 02 05 7E 01 B0 D4 C4 [14:46:31]Write to MH i2c: E2 0D 00 21 7D 80 0D 02 02 05 00 7E 01 B0 D4 C4 00 00 E9 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 21 7D 00 90 00 12 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 03 02 [14:46:31]Write to MH i2c: E2 08 00 22 7D 80 0D 03 02 00 00 00 00 1A [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 0B 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 0B 00 22 7D 00 E0 35 ED 7D 06 88 33 44 90 00 9F [14:46:31]RAPDU: E0 35 ED 7D 06 88 33 44 90 00 [14:46:31]wFMCommunicate OK [14:46:31]SAM_PROTO_SignData done [14:46:31]FM_MakeSignedData done [14:46:31]CreateOFDProtocolMessage [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 11 00 00 [14:46:31]Write to MH i2c: E2 08 00 23 7D 80 11 00 00 00 00 00 00 1A [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 17 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 17 00 23 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 72 [14:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:46:31]wFMCommunicate OK [14:46:31]CreateOFDProtocolMessage done [14:46:31]OFDSenderStorePacket 74676 [14:46:31]StoreOFDPacket docnum=74676 [14:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 88 4D 07 01 BD 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 23 01 00 35 04 06 00 24 7E 01 B0 D4 C4 E0 35 ED 7D 06 88 33 44 [14:46:31]CheckFolder [14:46:31]dirname=/storage/ofd_packets [14:46:31]CheckFolder done [14:46:31]ProducePacketName [14:46:31]name=ofd_packets/00074676 [14:46:31]NVStorageSaveData ofd_packets/00074676 [14:46:31]File name is /storage/ofd_packets/00074676 [14:46:31]Write 301 bytes [14:46:31]NVStorageSaveData done [14:46:31]OFDSenderStorePacket done [14:46:31]KKMCreateOFDPacket done [14:46:31]NVStorageSaveData kkm_last_timestamp [14:46:31]File name is /storage/kkm_last_timestamp [14:46:31]Write 4 bytes [14:46:31]NVStorageSaveData done [14:46:31]ExternCall_PrintAddStr [14:46:31]wPrintStart [14:46:31]Write to MH i2c: 01 00 00 24 7D A1 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: 01 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: 01 07 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: 01 07 00 24 7D 00 00 00 00 00 FF 0F B6 [14:46:31]RasterBufferAndPrint [14:46:31]line Счет N : (1)190641 [14:46:31]line ИНН: 02508201610067 [14:46:31]line Контрольно-Кассовый Чек [14:46:31]line ПРОДАЖА [14:46:31]line ТРК (МРК, ГНК) : 21 [14:46:31]line Товар: 2710124130 [14:46:31]line Аи-92-К-5 [14:46:31]line 5.240 * 66.90 [14:46:31]line = 350.56 [14:46:31]line НДС 12% НСП 1% [14:46:31]line > о реализуемом товаре [14:46:31]line ОКРУГЛЕНИЕ: -0.56 [14:46:31]line ИТОГО: 350.00 [14:46:31]line Внесено: 350.00 [14:46:31]line СДАЧА: 0.00 [14:46:31]line НСП 1% : 3.10 [14:46:31]line НДС 12% : 37.23 [14:46:31]line Наличными: 350.00 [14:46:31]line Безнал.: 0.00 [14:46:31]line Место: АЗС № 142 "Партнер Нефть" [14:46:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:46:31]line СНО: Общий режим [14:46:31]line Чек 120 24.10.2024 14:46 [14:46:31]line Смена: 510 ФФД: 1.0 [14:46:31]line ЗНМ: 0300000089 [14:46:31]line РНМ: 0000000000091691 [14:46:31]line Версия ККМ: 001 [14:46:31]line ФМ: 0000000000871795 [14:46:31]line ФД: 74676 [14:46:31]line ФПД: 40123612845252 [14:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144641&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74676&fm=40123612845252&tin=02508201610067®Number=0000000000091691&sum=35000 [14:46:31]written 0, free lines is 4095 [14:46:31]OFD Sender: Processing packet 74676 [packets to send 13, broken 12] [14:46:31]ProducePacketName [14:46:31]name=ofd_packets/00074676 [14:46:31]OFD Sender: To server: pG, [14:46:31]CommunicateWithHost lk.salyk.kg:30040 [14:46:31]ConnectInit lk.salyk.kg [14:46:31]Connected sock=10 [14:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 88 4D 07 01 BD 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 5D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 23 01 00 35 04 06 00 24 7E 01 B0 D4 C4 E0 35 ED 7D 06 88 33 44 [14:46:32]Write to MH i2c: 01 00 00 4F 7D CC [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 4F 7D 00 00 00 00 00 A3 0C 82 [14:46:32]RasterBufferAndPrint [14:46:32]line [14:46:32]line [14:46:32]line [14:46:32]line [14:46:32]line [14:46:32]written 0, free lines is 3242 [14:46:32]MH_Cut [14:46:32]Write to MH i2c: D1 01 00 56 7D 01 A5 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: D1 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: D1 01 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: D1 01 00 56 7D 00 A4 [14:46:32]Write to MH i2c: 01 00 00 57 7D D4 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B8 82 47 00 E6 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 23 01 00 F4 03 04 00 53 05 1A 67 B6 04 01 00 00 B0 EA E7 1C 78 80 B9 E1 [14:46:32]CommunicateWithHost err = 0 [14:46:32]CheckOFDResponse [14:46:32]1017 (14) - 77093643461234 [14:46:32]1041 (16) - 0000000000871795 [14:46:32]1040 (4) - 74676 [14:46:32]1012 (4) - 24.10.2024 08:29 [14:46:32]1206 (1) - 0 [14:46:32]OFD Sender: Remove packet 74676 [14:46:32]ProducePacketName [14:46:32]name=ofd_packets/00074676 [14:46:32]NVStorageDeleteData [14:46:32]OFD Sender: No OFD packet to send [14:46:33]*** Cut start [14:46:33]*** Partial cut [14:46:33]*** CUTSNS_PIN = 1 [14:46:33]*** CUTSNS_PIN = 0 [14:46:33]*** Brake cut motor [14:46:33]Read from MH i2c: 01 [14:46:33]MH_I2C_Read... [14:46:33]*** Stop cut motor [14:46:33]*** Cut end [14:46:33]Read from MH i2c: 01 07 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 57 7D 00 00 00 00 00 FF 0F E9 [14:46:33]process_action close_receipt done [14:46:33]requested_data is exist [14:46:33]produce_requested_data [14:46:33]requested_item fm.sn is exist - process it [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 11 00 00 [14:46:33]Write to MH i2c: E2 08 00 58 7D 80 11 00 00 00 00 00 00 4F [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:33]Read from MH i2c: E2 17 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 17 00 58 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A7 [14:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:46:33]wFMCommunicate OK [14:46:33]requested_item fd.num is exist - process it [14:46:33]SAM_PROTO_GetFieldsCounters [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 13 00 00 [14:46:33]Write to MH i2c: E2 08 00 59 7D 80 13 00 00 00 00 00 00 52 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 62 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 62 00 59 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B4 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [14:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B4 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:33]wFMCommunicate OK [14:46:33]SAM_PROTO_GetFieldsCounters done [14:46:33]requested_item shift.num is exist - process it [14:46:33]requested_item shift.opened is exist - process it [14:46:33]req_shift_opened [14:46:33]FM_GetShiftState [14:46:33]SAM_PROTO_GetShiftState [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 13 01 00 [14:46:33]Write to MH i2c: E2 08 00 5A 7D 80 13 01 00 00 00 00 00 54 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 0E 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 0E 00 5A 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 7E [14:46:33]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:46:33]wFMCommunicate OK [14:46:33]SAM_PROTO_GetShiftState done [14:46:33]FM_GetShiftState done [14:46:33]req_shift_opened done [14:46:33]requested_item shift.open_date is exist - process it [14:46:33]req_shift_open_date [14:46:33]req_shift_open_date done [14:46:33]produce_requested_data done [14:46:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74676,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:46:33]process_action_free close_receipt [14:46:33]json_value_free [14:46:33]json_value_free done [14:46:33]process_json_proto returns [14:46:33]Send response to host [14:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74676,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:46:33]free response buf [14:46:33]execute_script done [14:46:33]execute_script returns [14:46:33]free content buf [14:46:33]Sock 9.Close socket [14:46:33]Sock 9.Thread stoped [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:31]accept exits with 8 [14:47:31]New connection [14:47:31]New thread 3066662244 created [14:47:31]Thread 3066805604 joined [14:47:31]Waiting for new connection... [14:47:31] Sock 8.Parse request [14:47:31]Sock 8.Check first char [14:47:31]Sock 8.First char is OK [14:47:31]request: POST /json_proto HTTP/1.0 [14:47:31]Method: POST [14:47:31]URL: /json_proto [14:47:31]Method is POST - this is cgi request [14:47:31]url: /json_proto [14:47:31]query_string will be loaded in cgi processing [14:47:31]execute_cgi json_proto POST (null) [14:47:31]execute_cgi path=json_proto method=POST [14:47:31]POST find Content-Length [14:47:31]Host: 172.17.39.131:8080 [14:47:31]Content-Length: 682 [14:47:31]Content-Type: application/json [14:47:31] [14:47:31]POST finish read [14:47:31]Found Content-Length = 682 [14:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:31]execute_script... [14:47: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)190642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:31]POST & json_proto [14:47:31]process_json_proto [14:47:31]json parsed OK: [14:47:31]protocol is kg_v1.0 [14:47:31]action value=close_receipt [14:47:31]process_action close_receipt [14:47:31]cmd_close_receipt [14:47:31]MH_GetDate [14:47:31]Write to MH i2c: F0 00 00 5B 7D C7 [14:47:31]Write i2c OK [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: F0 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: F0 09 00 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: F0 09 00 5B 7D 00 0E 5E 1A 67 86 57 24 65 23 [14:47:31]GetLastDocTimeStamp 1729781201 [14:47:31]current date 1729781262 [14:47:31]FM_GetShiftState [14:47:31]SAM_PROTO_GetShiftState [14:47:31]wFMCommunicate request_size=4 [14:47:31]MH_SAM_APDU [14:47:31]CAPDU: 80 13 01 00 [14:47:31]Write to MH i2c: E2 08 00 5C 7D 80 13 01 00 00 00 00 00 56 [14:47:31]Write i2c OK [14:47:31]MH_I2C_Read... [14:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:31]Read from MH i2c: E2 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: E2 0E 00 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: E2 0E 00 5C 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 80 [14:47:31]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:47:31]wFMCommunicate OK [14:47:31]SAM_PROTO_GetShiftState done [14:47:31]FM_GetShiftState done [14:47:31]opened in 1729729801 [14:47:31]opened+sec_in_day 1729816201 [14:47:31]quantity*price = 100015 [14:47:31]sum+1 = 100017 [14:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 121 24.10.2024 14:47 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74677 ФПД: 59606335466623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144742&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74677&fm=59606335466623&tin=02508201610067®Number=0000000000091691&sum=100000 [14:47:32]StoreToDocumentArchive [14:47:32]shift 510 fd 74677 [14:47:32]save to /storage/0510/doc_00074677 [14:47:32]save last doc name /storage/0510/doc_00074677 to /storage/kkm_last_doc_name [14:47:32]save OK [14:47:32]Clear old archive folders... [14:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:32]tlvbuf is 007D2D30 [14:47:32]SAM_PROTO_ClearQueue [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 09 00 00 [14:47:32]Write to MH i2c: E2 08 00 69 7D 80 09 00 00 00 00 00 00 58 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 69 7D 00 90 00 5A [14:47:32]RAPDU: 90 00 [14:47:32]wFMCommunicate OK [14:47:32]SAM_PROTO_ClearQueue done [14:47:32]KKMCreateOFDPacket [14:47:32]OFDProtocolAddRootSTLVToBuf [14:47:32]FM_MakeSignedData [14:47:32]FM_MakeSignedData [14:47:32]SAM_PROTO_SignData [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 0D 01 02 [14:47:32]Write to MH i2c: E2 08 00 6A 7D 80 0D 01 02 00 00 00 00 60 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 6A 7D 00 90 00 5B [14:47:32]RAPDU: 90 00 [14:47:32]wFMCommunicate OK [14:47:32]wFMCommunicate request_size=255 [14:47:32]MH_SAM_APDU [14:47: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0E 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 23 01 00 35 04 06 00 36 [14:47:32]Write to MH i2c: E2 02 01 6B 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0E 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 23 01 00 35 04 06 00 36 00 00 63 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 6B 7D 00 90 00 5C [14:47:32]RAPDU: 90 00 [14:47:32]wFMCommunicate OK [14:47:32]wFMCommunicate request_size=10 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 0D 02 02 05 36 2E 73 AC 7F [14:47:32]Write to MH i2c: E2 0D 00 6C 7D 80 0D 02 02 05 00 36 2E 73 AC 7F 00 00 6F [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 03 00 6C 7D 00 90 00 5D [14:47:32]RAPDU: 90 00 [14:47:32]wFMCommunicate OK [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 0D 03 02 [14:47:32]Write to MH i2c: E2 08 00 6D 7D 80 0D 03 02 00 00 00 00 65 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]OFD Sender: No OFD packet to send [14:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 0B 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 0B 00 6D 7D 00 C2 75 C5 C2 FC B2 31 30 90 00 33 [14:47:32]RAPDU: C2 75 C5 C2 FC B2 31 30 90 00 [14:47:32]wFMCommunicate OK [14:47:32]SAM_PROTO_SignData done [14:47:32]FM_MakeSignedData done [14:47:32]CreateOFDProtocolMessage [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 11 00 00 [14:47:32]Write to MH i2c: E2 08 00 6E 7D 80 11 00 00 00 00 00 00 65 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 17 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 17 00 6E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BD [14:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:47:32]wFMCommunicate OK [14:47:32]CreateOFDProtocolMessage done [14:47:32]OFDSenderStorePacket 74677 [14:47:32]StoreOFDPacket docnum=74677 [14:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5A 99 07 01 D2 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0E 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 23 01 00 35 04 06 00 36 36 2E 73 AC 7F C2 75 C5 C2 FC B2 31 30 [14:47:32]CheckFolder [14:47:32]dirname=/storage/ofd_packets [14:47:32]CheckFolder done [14:47:32]ProducePacketName [14:47:32]name=ofd_packets/00074677 [14:47:32]NVStorageSaveData ofd_packets/00074677 [14:47:32]File name is /storage/ofd_packets/00074677 [14:47:32]Write 301 bytes [14:47:32]NVStorageSaveData done [14:47:32]OFDSenderStorePacket done [14:47:32]KKMCreateOFDPacket done [14:47:32]NVStorageSaveData kkm_last_timestamp [14:47:32]File name is /storage/kkm_last_timestamp [14:47:32]Write 4 bytes [14:47:32]NVStorageSaveData done [14:47:32]ExternCall_PrintAddStr [14:47:32]wPrintStart [14:47:32]Write to MH i2c: 01 00 00 6F 7D EC [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: 01 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: 01 07 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: 01 07 00 6F 7D 00 00 00 00 00 FF 0F 01 [14:47:32]RasterBufferAndPrint [14:47:32]line Счет N : (1)190642 [14:47:32]line ИНН: 02508201610067 [14:47:32]line Контрольно-Кассовый Чек [14:47:32]line ПРОДАЖА [14:47:32]line ТРК (МРК, ГНК) : 21 [14:47:32]line Товар: 2710124130 [14:47:32]line Аи-92-К-5 [14:47:32]line 14.950 * 66.90 [14:47:32]line = 1000.16 [14:47:32]line НДС 12% НСП 1% [14:47:32]line > о реализуемом товаре [14:47:32]line ОКРУГЛЕНИЕ: -0.16 [14:47:32]line ИТОГО: 1000.00 [14:47:32]line Внесено: 1000.00 [14:47:32]line СДАЧА: 0.00 [14:47:32]line НСП 1% : 8.85 [14:47:32]line НДС 12% : 106.21 [14:47:32]line Наличными: 1000.00 [14:47:32]line Безнал.: 0.00 [14:47:32]line Место: АЗС № 142 "Партнер Нефть" [14:47:32]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:47:32]line СНО: Общий режим [14:47:32]line Чек 121 24.10.2024 14:47 [14:47:32]line Смена: 510 ФФД: 1.0 [14:47:32]line ЗНМ: 0300000089 [14:47:32]line РНМ: 0000000000091691 [14:47:32]line Версия ККМ: 001 [14:47:32]line ФМ: 0000000000871795 [14:47:32]line ФД: 74677 [14:47:32]line ФПД: 59606335466623 [14:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144742&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74677&fm=59606335466623&tin=02508201610067®Number=0000000000091691&sum=100000 [14:47:33]OFD Sender: Processing packet 74677 [packets to send 13, broken 12] [14:47:33]ProducePacketName [14:47:33]name=ofd_packets/00074677 [14:47:33]OFD Sender: To server: pG, [14:47:33]CommunicateWithHost lk.salyk.kg:30040 [14:47:33]ConnectInit lk.salyk.kg [14:47:33]written 0, free lines is 4095 [14:47:33]Connected sock=10 [14:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5A 99 07 01 D2 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0E 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 23 01 00 35 04 06 00 36 36 2E 73 AC 7F C2 75 C5 C2 FC B2 31 30 [14:47:33]Write to MH i2c: 01 00 00 9A 7D 17 [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: 01 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: 01 07 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: 01 07 00 9A 7D 00 00 00 00 00 AA 0C D4 [14:47:33]RasterBufferAndPrint [14:47:33]line [14:47:33]line [14:47:33]line [14:47:33]line [14:47:33]line [14:47:33]written 0, free lines is 3248 [14:47:33]MH_Cut [14:47:33]Write to MH i2c: D1 01 00 A1 7D 01 F0 [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: D1 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: D1 01 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: D1 01 00 A1 7D 00 EF [14:47:33]Write to MH i2c: 01 00 00 A2 7D 1F [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 FF E4 47 00 AF 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 31 37 39 35 10 04 04 00 B5 23 01 00 F4 03 04 00 90 05 1A 67 B6 04 01 00 00 FF 02 28 D3 31 AB 32 4C [14:47:33]CommunicateWithHost err = 0 [14:47:33]CheckOFDResponse [14:47:33]1017 (14) - 77093643461234 [14:47:33]1041 (16) - 0000000000871795 [14:47:33]1040 (4) - 74677 [14:47:33]1012 (4) - 24.10.2024 08:30 [14:47:33]1206 (1) - 0 [14:47:33]OFD Sender: Remove packet 74677 [14:47:33]ProducePacketName [14:47:33]name=ofd_packets/00074677 [14:47:33]NVStorageDeleteData [14:47:34]OFD Sender: No OFD packet to send [14:47:34]*** Cut start [14:47:34]*** Partial cut [14:47:34]*** CUTSNS_PIN = 1 [14:47:34]*** CUTSNS_PIN = 0 [14:47:34]*** Brake cut motor [14:47:35]Read from MH i2c: 01 [14:47:35]MH_I2C_Read... [14:47:35]*** Stop cut motor [14:47:35]*** Cut end [14:47:35]Read from MH i2c: 01 07 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: 01 07 00 A2 7D 00 00 00 00 00 FF 0F 34 [14:47:35]process_action close_receipt done [14:47:35]requested_data is exist [14:47:35]produce_requested_data [14:47:35]requested_item fm.sn is exist - process it [14:47:35]wFMCommunicate request_size=4 [14:47:35]MH_SAM_APDU [14:47:35]CAPDU: 80 11 00 00 [14:47:35]Write to MH i2c: E2 08 00 A3 7D 80 11 00 00 00 00 00 00 9A [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:35]Read from MH i2c: E2 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 17 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 17 00 A3 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F2 [14:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:47:35]wFMCommunicate OK [14:47:35]requested_item fd.num is exist - process it [14:47:35]SAM_PROTO_GetFieldsCounters [14:47:35]wFMCommunicate request_size=4 [14:47:35]MH_SAM_APDU [14:47:35]CAPDU: 80 13 00 00 [14:47:35]Write to MH i2c: E2 08 00 A4 7D 80 13 00 00 00 00 00 00 9D [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:35]Read from MH i2c: E2 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 62 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 62 00 A4 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B5 23 01 00 0E 04 04 00 FE 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 07 [14:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B5 23 01 00 0E 04 04 00 FE 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 [14:47:35]wFMCommunicate OK [14:47:35]SAM_PROTO_GetFieldsCounters done [14:47:35]requested_item shift.num is exist - process it [14:47:35]requested_item shift.opened is exist - process it [14:47:35]req_shift_opened [14:47:35]FM_GetShiftState [14:47:35]SAM_PROTO_GetShiftState [14:47:35]wFMCommunicate request_size=4 [14:47:35]MH_SAM_APDU [14:47:35]CAPDU: 80 13 01 00 [14:47:35]Write to MH i2c: E2 08 00 A5 7D 80 13 01 00 00 00 00 00 9F [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:35]Read from MH i2c: E2 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 0E 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 0E 00 A5 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 C9 [14:47:35]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:47:35]wFMCommunicate OK [14:47:35]SAM_PROTO_GetShiftState done [14:47:35]FM_GetShiftState done [14:47:35]req_shift_opened done [14:47:35]requested_item shift.open_date is exist - process it [14:47:35]req_shift_open_date [14:47:35]req_shift_open_date done [14:47:35]produce_requested_data done [14:47:35]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74677,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:47:35]process_action_free close_receipt [14:47:35]json_value_free [14:47:35]json_value_free done [14:47:35]process_json_proto returns [14:47:35]Send response to host [14:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74677,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:47:35]free response buf [14:47:35]execute_script done [14:47:35]execute_script returns [14:47:35]free content buf [14:47:35]Sock 8.Close socket [14:47:35]Sock 8.Thread stoped [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:49]accept exits with 9 [14:47:49]New connection [14:47:49]New thread 3066805604 created [14:47:49]Thread 3066662244 joined [14:47:49]Waiting for new connection... [14:47:49] Sock 9.Parse request [14:47:49]Sock 9.Check first char [14:47:49]Sock 9.First char is OK [14:47:49]request: POST /json_proto HTTP/1.0 [14:47:49]Method: POST [14:47:49]URL: /json_proto [14:47:49]Method is POST - this is cgi request [14:47:49]url: /json_proto [14:47:49]query_string will be loaded in cgi processing [14:47:49]execute_cgi json_proto POST (null) [14:47:49]execute_cgi path=json_proto method=POST [14:47:49]POST find Content-Length [14:47:49]Host: 172.17.39.131:8080 [14:47:49]Content-Length: 674 [14:47:49]Content-Type: application/json [14:47:49] [14:47:49]POST finish read [14:47:49]Found Content-Length = 674 [14:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:49]execute_script... [14:47: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)190643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:49]POST & json_proto [14:47:49]process_json_proto [14:47:49]json parsed OK: [14:47:49]protocol is kg_v1.0 [14:47:49]action value=close_receipt [14:47:49]process_action close_receipt [14:47:49]cmd_close_receipt [14:47:49]MH_GetDate [14:47:49]Write to MH i2c: F0 00 00 A6 7D 12 [14:47:49]Write i2c OK [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: F0 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: F0 09 00 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: F0 09 00 A6 7D 00 21 5E 1A 67 86 57 24 65 81 [14:47:49]GetLastDocTimeStamp 1729781262 [14:47:49]current date 1729781281 [14:47:49]FM_GetShiftState [14:47:49]SAM_PROTO_GetShiftState [14:47:49]wFMCommunicate request_size=4 [14:47:49]MH_SAM_APDU [14:47:49]CAPDU: 80 13 01 00 [14:47:49]Write to MH i2c: E2 08 00 A7 7D 80 13 01 00 00 00 00 00 A1 [14:47:49]Write i2c OK [14:47:49]MH_I2C_Read... [14:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:49]Read from MH i2c: E2 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: E2 0E 00 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: E2 0E 00 A7 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CB [14:47:49]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:47:49]wFMCommunicate OK [14:47:49]SAM_PROTO_GetShiftState done [14:47:49]FM_GetShiftState done [14:47:49]opened in 1729729801 [14:47:49]opened+sec_in_day 1729816201 [14:47:49]quantity*price = 30022 [14:47:49]sum+1 = 30024 [14:47:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 122 24.10.2024 14:48 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74678 ФПД: 88499832562567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144801&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74678&fm=88499832562567&tin=02508201610067®Number=0000000000091691&sum=30000 [14:47:51]StoreToDocumentArchive [14:47:51]shift 510 fd 74678 [14:47:51]save to /storage/0510/doc_00074678 [14:47:51]save last doc name /storage/0510/doc_00074678 to /storage/kkm_last_doc_name [14:47:51]save OK [14:47:51]Clear old archive folders... [14:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:47:51]tlvbuf is 00AF1410 [14:47:51]SAM_PROTO_ClearQueue [14:47:51]wFMCommunicate request_size=4 [14:47:51]MH_SAM_APDU [14:47:51]CAPDU: 80 09 00 00 [14:47:51]Write to MH i2c: E2 08 00 B4 7D 80 09 00 00 00 00 00 00 A3 [14:47:51]Write i2c OK [14:47:51]MH_I2C_Read... [14:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:51]Read from MH i2c: E2 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 B4 7D 00 90 00 A5 [14:47:51]RAPDU: 90 00 [14:47:51]wFMCommunicate OK [14:47:51]SAM_PROTO_ClearQueue done [14:47:51]KKMCreateOFDPacket [14:47:51]OFDProtocolAddRootSTLVToBuf [14:47:51]FM_MakeSignedData [14:47:51]FM_MakeSignedData [14:47:51]SAM_PROTO_SignData [14:47:51]wFMCommunicate request_size=4 [14:47:51]MH_SAM_APDU [14:47:51]CAPDU: 80 0D 01 02 [14:47:51]Write to MH i2c: E2 08 00 B5 7D 80 0D 01 02 00 00 00 00 AB [14:47:51]Write i2c OK [14:47:51]MH_I2C_Read... [14:47:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:51]Read from MH i2c: E2 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 B5 7D 00 90 00 A6 [14:47:51]RAPDU: 90 00 [14:47:51]wFMCommunicate OK [14:47:51]wFMCommunicate request_size=255 [14:47:51]MH_SAM_APDU [14:47: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 7A 00 00 00 F4 03 04 00 21 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 23 01 00 35 04 06 00 50 7D 79 15 [14:47:51]Write to MH i2c: E2 02 01 B6 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 7A 00 00 00 F4 03 04 00 21 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 23 01 00 35 04 06 00 50 7D 79 15 00 00 A0 [14:47:51]Write i2c OK [14:47:51]MH_I2C_Read... [14:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:51]Read from MH i2c: E2 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 B6 7D 00 90 00 A7 [14:47:51]RAPDU: 90 00 [14:47:51]wFMCommunicate OK [14:47:51]wFMCommunicate request_size=7 [14:47:51]MH_SAM_APDU [14:47:51]CAPDU: 80 0D 02 02 02 23 87 [14:47:51]Write to MH i2c: E2 0A 00 B7 7D 80 0D 02 02 02 00 23 87 00 00 5C [14:47:51]Write i2c OK [14:47:51]MH_I2C_Read... [14:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:51]Read from MH i2c: E2 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 03 00 B7 7D 00 90 00 A8 [14:47:51]RAPDU: 90 00 [14:47:51]wFMCommunicate OK [14:47:51]wFMCommunicate request_size=4 [14:47:51]MH_SAM_APDU [14:47:51]CAPDU: 80 0D 03 02 [14:47:51]Write to MH i2c: E2 08 00 B8 7D 80 0D 03 02 00 00 00 00 B0 [14:47:51]Write i2c OK [14:47:51]MH_I2C_Read... [14:47:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:51]Read from MH i2c: E2 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 0B 00 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 0B 00 B8 7D 00 0E 9B 8F 06 EB CE 90 76 90 00 AE [14:47:51]RAPDU: 0E 9B 8F 06 EB CE 90 76 90 00 [14:47:51]wFMCommunicate OK [14:47:51]SAM_PROTO_SignData done [14:47:51]FM_MakeSignedData done [14:47:51]CreateOFDProtocolMessage [14:47:51]wFMCommunicate request_size=4 [14:47:51]MH_SAM_APDU [14:47:51]CAPDU: 80 11 00 00 [14:47:51]Write to MH i2c: E2 08 00 B9 7D 80 11 00 00 00 00 00 00 B0 [14:47:51]Write i2c OK [14:47:51]MH_I2C_Read... [14:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:51]Read from MH i2c: E2 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 17 00 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: E2 17 00 B9 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 08 [14:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:47:51]wFMCommunicate OK [14:47:51]CreateOFDProtocolMessage done [14:47:51]OFDSenderStorePacket 74678 [14:47:51]StoreOFDPacket docnum=74678 [14:47:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 60 6F 04 01 BE 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 7A 00 00 00 F4 03 04 00 21 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 23 01 00 35 04 06 00 50 7D 79 15 23 87 0E 9B 8F 06 EB CE 90 76 [14:47:51]CheckFolder [14:47:51]dirname=/storage/ofd_packets [14:47:51]CheckFolder done [14:47:51]ProducePacketName [14:47:51]name=ofd_packets/00074678 [14:47:51]NVStorageSaveData ofd_packets/00074678 [14:47:51]File name is /storage/ofd_packets/00074678 [14:47:51]Write 298 bytes [14:47:51]NVStorageSaveData done [14:47:51]OFDSenderStorePacket done [14:47:51]KKMCreateOFDPacket done [14:47:51]NVStorageSaveData kkm_last_timestamp [14:47:51]File name is /storage/kkm_last_timestamp [14:47:51]Write 4 bytes [14:47:51]NVStorageSaveData done [14:47:51]ExternCall_PrintAddStr [14:47:51]wPrintStart [14:47:51]Write to MH i2c: 01 00 00 BA 7D 37 [14:47:51]Write i2c OK [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: 01 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: 01 07 00 [14:47:51]MH_I2C_Read... [14:47:51]Read from MH i2c: 01 07 00 BA 7D 00 00 00 00 00 FF 0F 4C [14:47:51]RasterBufferAndPrint [14:47:51]line Счет N : (1)190643 [14:47:51]line ИНН: 02508201610067 [14:47:51]line Контрольно-Кассовый Чек [14:47:51]line ПРОДАЖА [14:47:51]line ТРК (МРК, ГНК) : 41 [14:47:51]line Товар: 2710194210 [14:47:51]line ДТ-К-4 [14:47:51]line 3.940 * 76.20 [14:47:51]line = 300.23 [14:47:51]line НДС 12% НСП 1% [14:47:51]line > о реализуемом товаре [14:47:51]line ОКРУГЛЕНИЕ: -0.23 [14:47:51]line ИТОГО: 300.00 [14:47:51]line Внесено: 300.00 [14:47:51]line СДАЧА: 0.00 [14:47:51]line НСП 1% : 2.66 [14:47:51]line НДС 12% : 31.88 [14:47:51]line Наличными: 300.00 [14:47:51]line Безнал.: 0.00 [14:47:51]line Место: АЗС № 142 "Партнер Нефть" [14:47:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:47:51]line СНО: Общий режим [14:47:51]line Чек 122 24.10.2024 14:48 [14:47:51]line Смена: 510 ФФД: 1.0 [14:47:51]line ЗНМ: 0300000089 [14:47:51]line РНМ: 0000000000091691 [14:47:51]line Версия ККМ: 001 [14:47:51]line ФМ: 0000000000871795 [14:47:51]line ФД: 74678 [14:47:51]line ФПД: 88499832562567 [14:47:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144801&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74678&fm=88499832562567&tin=02508201610067®Number=0000000000091691&sum=30000 [14:47:51]OFD Sender: Processing packet 74678 [packets to send 13, broken 12] [14:47:51]ProducePacketName [14:47:51]name=ofd_packets/00074678 [14:47:51]OFD Sender: To server: pG, [14:47:51]CommunicateWithHost lk.salyk.kg:30040 [14:47:51]ConnectInit lk.salyk.kg [14:47:51]written 0, free lines is 4095 [14:47:52]Connected sock=10 [14:47:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 60 6F 04 01 BE 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 7A 00 00 00 F4 03 04 00 21 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 23 01 00 35 04 06 00 50 7D 79 15 23 87 0E 9B 8F 06 EB CE 90 76 [14:47:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 90 E7 47 00 F0 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 23 01 00 F4 03 04 00 A3 05 1A 67 B6 04 01 00 00 B7 F6 B8 C2 EA 0E 18 4C [14:47:52]CommunicateWithHost err = 0 [14:47:52]CheckOFDResponse [14:47:52]1017 (14) - 77093643461234 [14:47:52]1041 (16) - 0000000000871795 [14:47:52]1040 (4) - 74678 [14:47:52]1012 (4) - 24.10.2024 08:30 [14:47:52]1206 (1) - 0 [14:47:52]OFD Sender: Remove packet 74678 [14:47:52]ProducePacketName [14:47:52]name=ofd_packets/00074678 [14:47:52]NVStorageDeleteData [14:47:52]Write to MH i2c: 01 00 00 E5 7D 62 [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: 01 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: 01 07 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: 01 07 00 E5 7D 00 00 00 00 00 B6 0C 2B [14:47:52]RasterBufferAndPrint [14:47:52]line [14:47:52]line [14:47:52]line [14:47:52]line [14:47:52]line [14:47:52]written 0, free lines is 3262 [14:47:52]MH_Cut [14:47:52]Write to MH i2c: D1 01 00 EC 7D 01 3B [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: D1 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: D1 01 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: D1 01 00 EC 7D 00 3A [14:47:52]Write to MH i2c: 01 00 00 ED 7D 6A [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]OFD Sender: No OFD packet to send [14:47:53]*** Cut start [14:47:53]*** Partial cut [14:47:53]*** CUTSNS_PIN = 1 [14:47:53]*** CUTSNS_PIN = 0 [14:47:53]*** Brake cut motor [14:47:53]Read from MH i2c: 01 [14:47:53]MH_I2C_Read... [14:47:53]*** Stop cut motor [14:47:53]*** Cut end [14:47:53]Read from MH i2c: 01 07 00 [14:47:53]MH_I2C_Read... [14:47:53]Read from MH i2c: 01 07 00 ED 7D 00 00 00 00 00 FF 0F 7F [14:47:53]process_action close_receipt done [14:47:53]requested_data is exist [14:47:53]produce_requested_data [14:47:53]requested_item fm.sn is exist - process it [14:47:53]wFMCommunicate request_size=4 [14:47:53]MH_SAM_APDU [14:47:53]CAPDU: 80 11 00 00 [14:47:53]Write to MH i2c: E2 08 00 EE 7D 80 11 00 00 00 00 00 00 E5 [14:47:53]Write i2c OK [14:47:53]MH_I2C_Read... [14:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:53]Read from MH i2c: E2 [14:47:53]MH_I2C_Read... [14:47:53]Read from MH i2c: E2 17 00 [14:47:53]MH_I2C_Read... [14:47:53]Read from MH i2c: E2 17 00 EE 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3D [14:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:47:53]wFMCommunicate OK [14:47:53]requested_item fd.num is exist - process it [14:47:53]SAM_PROTO_GetFieldsCounters [14:47:53]wFMCommunicate request_size=4 [14:47:53]MH_SAM_APDU [14:47:53]CAPDU: 80 13 00 00 [14:47:53]Write to MH i2c: E2 08 00 EF 7D 80 13 00 00 00 00 00 00 E8 [14:47:53]Write i2c OK [14:47:53]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 62 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 62 00 EF 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B6 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:47:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B6 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:54]wFMCommunicate OK [14:47:54]SAM_PROTO_GetFieldsCounters done [14:47:54]requested_item shift.num is exist - process it [14:47:54]requested_item shift.opened is exist - process it [14:47:54]req_shift_opened [14:47:54]FM_GetShiftState [14:47:54]SAM_PROTO_GetShiftState [14:47:54]wFMCommunicate request_size=4 [14:47:54]MH_SAM_APDU [14:47:54]CAPDU: 80 13 01 00 [14:47:54]Write to MH i2c: E2 08 00 F0 7D 80 13 01 00 00 00 00 00 EA [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 0E 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 0E 00 F0 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 14 [14:47:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:47:54]wFMCommunicate OK [14:47:54]SAM_PROTO_GetShiftState done [14:47:54]FM_GetShiftState done [14:47:54]req_shift_opened done [14:47:54]requested_item shift.open_date is exist - process it [14:47:54]req_shift_open_date [14:47:54]req_shift_open_date done [14:47:54]produce_requested_data done [14:47:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74678,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:47:54]process_action_free close_receipt [14:47:54]json_value_free [14:47:54]json_value_free done [14:47:54]process_json_proto returns [14:47:54]Send response to host [14:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74678,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:47:54]free response buf [14:47:54]execute_script done [14:47:54]execute_script returns [14:47:54]free content buf [14:47:54]Sock 9.Close socket [14:47:54]Sock 9.Thread stoped [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]accept exits with 8 [14:48:57]New connection [14:48:57]New thread 3066662244 created [14:48:57]Thread 3066805604 joined [14:48:57]Waiting for new connection... [14:48:57] Sock 8.Parse request [14:48:57]Sock 8.Check first char [14:48:57]Sock 8.First char is OK [14:48:57]request: POST /json_proto HTTP/1.0 [14:48:57]Method: POST [14:48:57]URL: /json_proto [14:48:57]Method is POST - this is cgi request [14:48:57]url: /json_proto [14:48:57]query_string will be loaded in cgi processing [14:48:57]execute_cgi json_proto POST (null) [14:48:57]execute_cgi path=json_proto method=POST [14:48:57]POST find Content-Length [14:48:57]Host: 172.17.39.131:8080 [14:48:57]Content-Length: 678 [14:48:57]Content-Type: application/json [14:48:57] [14:48:57]POST finish read [14:48:57]Found Content-Length = 678 [14:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:57]execute_script... [14:48: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)190644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:57]POST & json_proto [14:48:57]process_json_proto [14:48:57]json parsed OK: [14:48:57]protocol is kg_v1.0 [14:48:57]action value=close_receipt [14:48:57]process_action close_receipt [14:48:57]cmd_close_receipt [14:48:57]MH_GetDate [14:48:57]Write to MH i2c: F0 00 00 F1 7D 5D [14:48:57]Write i2c OK [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: F0 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: F0 09 00 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: F0 09 00 F1 7D 00 65 5E 1A 67 86 57 24 65 10 [14:48:57]GetLastDocTimeStamp 1729781281 [14:48:57]current date 1729781349 [14:48:57]FM_GetShiftState [14:48:57]SAM_PROTO_GetShiftState [14:48:57]wFMCommunicate request_size=4 [14:48:57]MH_SAM_APDU [14:48:57]CAPDU: 80 13 01 00 [14:48:57]Write to MH i2c: E2 08 00 F2 7D 80 13 01 00 00 00 00 00 EC [14:48:57]Write i2c OK [14:48:57]MH_I2C_Read... [14:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:57]Read from MH i2c: E2 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 0E 00 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 0E 00 F2 7D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 16 [14:48:57]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:48:57]wFMCommunicate OK [14:48:57]SAM_PROTO_GetShiftState done [14:48:57]FM_GetShiftState done [14:48:57]opened in 1729729801 [14:48:57]opened+sec_in_day 1729816201 [14:48:57]quantity*price = 80012 [14:48:57]sum+1 = 80013 [14:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 123 24.10.2024 14:49 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74679 ФПД: 158605086515495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144909&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74679&fm=158605086515495&tin=02508201610067®Number=0000000000091691&sum=80000 [14:48:58]StoreToDocumentArchive [14:48:58]shift 510 fd 74679 [14:48:58]save to /storage/0510/doc_00074679 [14:48:58]save last doc name /storage/0510/doc_00074679 to /storage/kkm_last_doc_name [14:48:58]save OK [14:48:58]Clear old archive folders... [14:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:58]tlvbuf is 007EBB30 [14:48:58]SAM_PROTO_ClearQueue [14:48:58]wFMCommunicate request_size=4 [14:48:58]MH_SAM_APDU [14:48:58]CAPDU: 80 09 00 00 [14:48:58]Write to MH i2c: E2 08 00 FF 7D 80 09 00 00 00 00 00 00 EE [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:58]Read from MH i2c: E2 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 03 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 03 00 FF 7D 00 90 00 F0 [14:48:58]RAPDU: 90 00 [14:48:58]wFMCommunicate OK [14:48:58]SAM_PROTO_ClearQueue done [14:48:58]KKMCreateOFDPacket [14:48:58]OFDProtocolAddRootSTLVToBuf [14:48:58]FM_MakeSignedData [14:48:58]FM_MakeSignedData [14:48:58]SAM_PROTO_SignData [14:48:58]wFMCommunicate request_size=4 [14:48:58]MH_SAM_APDU [14:48:58]CAPDU: 80 0D 01 02 [14:48:58]Write to MH i2c: E2 08 00 00 7E 80 0D 01 02 00 00 00 00 F7 [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:58]Read from MH i2c: E2 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 03 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 03 00 00 7E 00 90 00 F2 [14:48:58]RAPDU: 90 00 [14:48:58]wFMCommunicate OK [14:48:58]wFMCommunicate request_size=255 [14:48:58]MH_SAM_APDU [14:48: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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 23 01 00 35 04 06 00 90 [14:48:58]Write to MH i2c: E2 02 01 01 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 23 01 00 35 04 06 00 90 00 00 A1 [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 01 7E 00 90 00 F3 [14:48:59]RAPDU: 90 00 [14:48:59]wFMCommunicate OK [14:48:59]wFMCommunicate request_size=10 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 0D 02 02 05 40 1F D7 61 27 [14:48:59]Write to MH i2c: E2 0D 00 02 7E 80 0D 02 02 05 00 40 1F D7 61 27 00 00 C2 [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 02 7E 00 90 00 F4 [14:48:59]RAPDU: 90 00 [14:48:59]wFMCommunicate OK [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 0D 03 02 [14:48:59]Write to MH i2c: E2 08 00 03 7E 80 0D 03 02 00 00 00 00 FC [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0B 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0B 00 03 7E 00 4E 27 F5 B7 09 A2 40 43 90 00 4C [14:48:59]RAPDU: 4E 27 F5 B7 09 A2 40 43 90 00 [14:48:59]wFMCommunicate OK [14:48:59]SAM_PROTO_SignData done [14:48:59]FM_MakeSignedData done [14:48:59]CreateOFDProtocolMessage [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 11 00 00 [14:48:59]Write to MH i2c: E2 08 00 04 7E 80 11 00 00 00 00 00 00 FC [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 17 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 17 00 04 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 54 [14:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:48:59]wFMCommunicate OK [14:48:59]CreateOFDProtocolMessage done [14:48:59]OFDSenderStorePacket 74679 [14:48:59]StoreOFDPacket docnum=74679 [14:48:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 E6 07 01 18 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 23 01 00 35 04 06 00 90 40 1F D7 61 27 4E 27 F5 B7 09 A2 40 43 [14:48:59]CheckFolder [14:48:59]dirname=/storage/ofd_packets [14:48:59]CheckFolder done [14:48:59]ProducePacketName [14:48:59]name=ofd_packets/00074679 [14:48:59]NVStorageSaveData ofd_packets/00074679 [14:48:59]File name is /storage/ofd_packets/00074679 [14:48:59]Write 301 bytes [14:48:59]NVStorageSaveData done [14:48:59]OFDSenderStorePacket done [14:48:59]KKMCreateOFDPacket done [14:48:59]NVStorageSaveData kkm_last_timestamp [14:48:59]File name is /storage/kkm_last_timestamp [14:48:59]Write 4 bytes [14:48:59]NVStorageSaveData done [14:48:59]ExternCall_PrintAddStr [14:48:59]wPrintStart [14:48:59]Write to MH i2c: 01 00 00 05 7E 83 [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: 01 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: 01 07 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: 01 07 00 05 7E 00 00 00 00 00 FF 0F 98 [14:48:59]RasterBufferAndPrint [14:48:59]line Счет N : (1)190644 [14:48:59]line ИНН: 02508201610067 [14:48:59]line Контрольно-Кассовый Чек [14:48:59]line ПРОДАЖА [14:48:59]line ТРК (МРК, ГНК) : 21 [14:48:59]line Товар: 2710124130 [14:48:59]line Аи-92-К-5 [14:48:59]line 11.960 * 66.90 [14:48:59]line = 800.12 [14:48:59]line НДС 12% НСП 1% [14:48:59]line > о реализуемом товаре [14:48:59]line ОКРУГЛЕНИЕ: -0.12 [14:48:59]line ИТОГО: 800.00 [14:48:59]line Внесено: 800.00 [14:48:59]line СДАЧА: 0.00 [14:48:59]line НСП 1% : 7.08 [14:48:59]line НДС 12% : 84.97 [14:48:59]line Наличными: 800.00 [14:48:59]line Безнал.: 0.00 [14:48:59]line Место: АЗС № 142 "Партнер Нефть" [14:48:59]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:48:59]line СНО: Общий режим [14:48:59]line Чек 123 24.10.2024 14:49 [14:48:59]line Смена: 510 ФФД: 1.0 [14:48:59]line ЗНМ: 0300000089 [14:48:59]line РНМ: 0000000000091691 [14:48:59]line Версия ККМ: 001 [14:48:59]line ФМ: 0000000000871795 [14:48:59]line ФД: 74679 [14:48:59]line ФПД: 158605086515495 [14:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144909&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74679&fm=158605086515495&tin=02508201610067®Number=0000000000091691&sum=80000 [14:48:59]written 0, free lines is 4095 [14:48:59]OFD Sender: Processing packet 74679 [packets to send 13, broken 12] [14:48:59]ProducePacketName [14:48:59]name=ofd_packets/00074679 [14:48:59]OFD Sender: To server: pG, [14:48:59]CommunicateWithHost lk.salyk.kg:30040 [14:48:59]ConnectInit lk.salyk.kg [14:49:00]Write to MH i2c: 01 00 00 30 7E AE [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 07 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 07 00 30 7E 00 00 00 00 00 AB 0C 6C [14:49:00]RasterBufferAndPrint [14:49:00]line [14:49:00]line [14:49:00]line [14:49:00]line [14:49:00]line [14:49:00]written 0, free lines is 3249 [14:49:00]MH_Cut [14:49:00]Write to MH i2c: D1 01 00 37 7E 01 87 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: D1 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: D1 01 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: D1 01 00 37 7E 00 86 [14:49:00]Write to MH i2c: 01 00 00 38 7E B6 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]*** Cut start [14:49:00]*** Partial cut [14:49:00]*** CUTSNS_PIN = 1 [14:49:00]*** CUTSNS_PIN = 0 [14:49:01]*** Brake cut motor [14:49:01]Read from MH i2c: 01 [14:49:01]MH_I2C_Read... [14:49:01]*** Stop cut motor [14:49:01]*** Cut end [14:49:01]Read from MH i2c: 01 07 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: 01 07 00 38 7E 00 00 00 00 00 FF 0F CB [14:49:01]process_action close_receipt done [14:49:01]requested_data is exist [14:49:01]produce_requested_data [14:49:01]requested_item fm.sn is exist - process it [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 11 00 00 [14:49:01]Write to MH i2c: E2 08 00 39 7E 80 11 00 00 00 00 00 00 31 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 17 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 17 00 39 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 89 [14:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:49:01]wFMCommunicate OK [14:49:01]requested_item fd.num is exist - process it [14:49:01]SAM_PROTO_GetFieldsCounters [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 13 00 00 [14:49:01]Write to MH i2c: E2 08 00 3A 7E 80 13 00 00 00 00 00 00 34 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 62 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 62 00 3A 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B7 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [14:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B7 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:01]wFMCommunicate OK [14:49:01]SAM_PROTO_GetFieldsCounters done [14:49:01]requested_item shift.num is exist - process it [14:49:01]requested_item shift.opened is exist - process it [14:49:01]req_shift_opened [14:49:01]FM_GetShiftState [14:49:01]SAM_PROTO_GetShiftState [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 13 01 00 [14:49:01]Write to MH i2c: E2 08 00 3B 7E 80 13 01 00 00 00 00 00 36 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 0E 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 0E 00 3B 7E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 60 [14:49:01]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:49:01]wFMCommunicate OK [14:49:01]SAM_PROTO_GetShiftState done [14:49:01]FM_GetShiftState done [14:49:01]req_shift_opened done [14:49:01]requested_item shift.open_date is exist - process it [14:49:01]req_shift_open_date [14:49:01]req_shift_open_date done [14:49:01]produce_requested_data done [14:49:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74679,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:49:01]process_action_free close_receipt [14:49:01]json_value_free [14:49:01]json_value_free done [14:49:01]process_json_proto returns [14:49:01]Send response to host [14:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74679,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:49:01]free response buf [14:49:01]execute_script done [14:49:01]execute_script returns [14:49:01]free content buf [14:49:01]Sock 8.Close socket [14:49:01]Sock 8.Thread stoped [14:51:09]ConnectInit Can't connect to host [14:51:09]CommunicateWithHost connect error [14:51:09]CommunicateWithHost err = -1 [14:51:09]OFD Sender: Server communicate error [14:51:14]OFD Sender: Processing packet 74679 [packets to send 13, broken 12] [14:51:14]ProducePacketName [14:51:14]name=ofd_packets/00074679 [14:51:14]OFD Sender: To server: pG, [14:51:14]CommunicateWithHost lk.salyk.kg:30040 [14:51:14]ConnectInit lk.salyk.kg [14:51:15]Connected sock=8 [14:51:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 E6 07 01 18 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 5E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 23 01 00 35 04 06 00 90 40 1F D7 61 27 4E 27 F5 B7 09 A2 40 43 [14:51:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F0 3F 47 00 CB 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 31 37 39 35 10 04 04 00 B7 23 01 00 F4 03 04 00 6E 06 1A 67 B6 04 01 00 00 7C AE 34 48 D6 E9 C1 44 [14:51:15]CommunicateWithHost err = 0 [14:51:15]CheckOFDResponse [14:51:15]1017 (14) - 77093643461234 [14:51:15]1041 (16) - 0000000000871795 [14:51:15]1040 (4) - 74679 [14:51:15]1012 (4) - 24.10.2024 08:33 [14:51:15]1206 (1) - 0 [14:51:15]OFD Sender: Remove packet 74679 [14:51:15]ProducePacketName [14:51:15]name=ofd_packets/00074679 [14:51:15]NVStorageDeleteData [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:43]accept exits with 9 [14:54:43]New connection [14:54:43]New thread 3066805604 created [14:54:43]Thread 3066662244 joined [14:54:43]Waiting for new connection... [14:54:43] Sock 9.Parse request [14:54:43]Sock 9.Check first char [14:54:43]Sock 9.First char is OK [14:54:43]request: POST /json_proto HTTP/1.0 [14:54:43]Method: POST [14:54:43]URL: /json_proto [14:54:43]Method is POST - this is cgi request [14:54:43]url: /json_proto [14:54:43]query_string will be loaded in cgi processing [14:54:43]execute_cgi json_proto POST (null) [14:54:43]execute_cgi path=json_proto method=POST [14:54:43]POST find Content-Length [14:54:43]Host: 172.17.39.131:8080 [14:54:43]Content-Length: 677 [14:54:43]Content-Type: application/json [14:54:43] [14:54:43]POST finish read [14:54:43]Found Content-Length = 677 [14:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:43]execute_script... [14:54: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)190646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:43]POST & json_proto [14:54:43]process_json_proto [14:54:43]json parsed OK: [14:54:43]protocol is kg_v1.0 [14:54:43]action value=close_receipt [14:54:43]process_action close_receipt [14:54:43]cmd_close_receipt [14:54:43]MH_GetDate [14:54:43]Write to MH i2c: F0 00 00 3C 7E A9 [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: F0 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: F0 09 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: F0 09 00 3C 7E 00 BE 5F 1A 67 86 57 24 65 B6 [14:54:43]GetLastDocTimeStamp 1729781349 [14:54:43]current date 1729781694 [14:54:43]FM_GetShiftState [14:54:43]SAM_PROTO_GetShiftState [14:54:43]wFMCommunicate request_size=4 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 13 01 00 [14:54:43]Write to MH i2c: E2 08 00 3D 7E 80 13 01 00 00 00 00 00 38 [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:43]Read from MH i2c: E2 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 0E 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 0E 00 3D 7E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 62 [14:54:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:54:43]wFMCommunicate OK [14:54:43]SAM_PROTO_GetShiftState done [14:54:43]FM_GetShiftState done [14:54:43]opened in 1729729801 [14:54:43]opened+sec_in_day 1729816201 [14:54:43]quantity*price = 30038 [14:54:43]sum+1 = 30039 [14:54:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 124 24.10.2024 14:54 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74680 ФПД: 194724170370149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145455&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74680&fm=194724170370149&tin=02508201610067®Number=0000000000091691&sum=30000 [14:54:44]StoreToDocumentArchive [14:54:44]shift 510 fd 74680 [14:54:44]save to /storage/0510/doc_00074680 [14:54:44]save last doc name /storage/0510/doc_00074680 to /storage/kkm_last_doc_name [14:54:44]save OK [14:54:44]Clear old archive folders... [14:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:44]tlvbuf is 00893CC0 [14:54:44]SAM_PROTO_ClearQueue [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 09 00 00 [14:54:44]Write to MH i2c: E2 08 00 4A 7E 80 09 00 00 00 00 00 00 3A [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 4A 7E 00 90 00 3C [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]SAM_PROTO_ClearQueue done [14:54:44]KKMCreateOFDPacket [14:54:44]OFDProtocolAddRootSTLVToBuf [14:54:44]FM_MakeSignedData [14:54:44]FM_MakeSignedData [14:54:44]SAM_PROTO_SignData [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 01 02 [14:54:44]Write to MH i2c: E2 08 00 4B 7E 80 0D 01 02 00 00 00 00 42 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 4B 7E 00 90 00 3D [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=255 [14:54:44]MH_SAM_APDU [14:54: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 5F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 23 01 00 35 04 06 00 B1 [14:54:44]Write to MH i2c: E2 02 01 4C 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 5F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 23 01 00 35 04 06 00 B1 00 00 72 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 4C 7E 00 90 00 3E [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=10 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 02 02 05 19 C1 01 0C 65 [14:54:44]Write to MH i2c: E2 0D 00 4D 7E 80 0D 02 02 05 00 19 C1 01 0C 65 00 00 9B [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 4D 7E 00 90 00 3F [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 03 02 [14:54:44]Write to MH i2c: E2 08 00 4E 7E 80 0D 03 02 00 00 00 00 47 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 4E 7E 00 5B 2F F0 2B F6 2E 3F 2B 90 00 7B [14:54:44]RAPDU: 5B 2F F0 2B F6 2E 3F 2B 90 00 [14:54:44]wFMCommunicate OK [14:54:44]SAM_PROTO_SignData done [14:54:44]FM_MakeSignedData done [14:54:44]CreateOFDProtocolMessage [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 11 00 00 [14:54:44]Write to MH i2c: E2 08 00 4F 7E 80 11 00 00 00 00 00 00 47 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:45]Read from MH i2c: E2 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: E2 17 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: E2 17 00 4F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9F [14:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:54:45]wFMCommunicate OK [14:54:45]CreateOFDProtocolMessage done [14:54:45]OFDSenderStorePacket 74680 [14:54:45]StoreOFDPacket docnum=74680 [14:54:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E5 13 07 01 A0 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 5F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 23 01 00 35 04 06 00 B1 19 C1 01 0C 65 5B 2F F0 2B F6 2E 3F 2B [14:54:45]CheckFolder [14:54:45]dirname=/storage/ofd_packets [14:54:45]CheckFolder done [14:54:45]ProducePacketName [14:54:45]name=ofd_packets/00074680 [14:54:45]NVStorageSaveData ofd_packets/00074680 [14:54:45]File name is /storage/ofd_packets/00074680 [14:54:45]Write 301 bytes [14:54:45]NVStorageSaveData done [14:54:45]OFDSenderStorePacket done [14:54:45]KKMCreateOFDPacket done [14:54:45]NVStorageSaveData kkm_last_timestamp [14:54:45]File name is /storage/kkm_last_timestamp [14:54:45]Write 4 bytes [14:54:45]NVStorageSaveData done [14:54:45]ExternCall_PrintAddStr [14:54:45]wPrintStart [14:54:45]Write to MH i2c: 01 00 00 50 7E CE [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 50 7E 00 00 00 00 00 FF 0F E3 [14:54:45]RasterBufferAndPrint [14:54:45]line Счет N : (1)190646 [14:54:45]line ИНН: 02508201610067 [14:54:45]line Контрольно-Кассовый Чек [14:54:45]line ПРОДАЖА [14:54:45]line ТРК (МРК, ГНК) : 21 [14:54:45]line Товар: 2710124130 [14:54:45]line Аи-92-К-5 [14:54:45]line 4.490 * 66.90 [14:54:45]line = 300.38 [14:54:45]line НДС 12% НСП 1% [14:54:45]line > о реализуемом товаре [14:54:45]line ОКРУГЛЕНИЕ: -0.38 [14:54:45]line ИТОГО: 300.00 [14:54:45]line Внесено: 300.00 [14:54:45]line СДАЧА: 0.00 [14:54:45]line НСП 1% : 2.66 [14:54:45]line НДС 12% : 31.90 [14:54:45]line Наличными: 300.00 [14:54:45]line Безнал.: 0.00 [14:54:45]line Место: АЗС № 142 "Партнер Нефть" [14:54:45]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:54:45]line СНО: Общий режим [14:54:45]line Чек 124 24.10.2024 14:54 [14:54:45]line Смена: 510 ФФД: 1.0 [14:54:45]line ЗНМ: 0300000089 [14:54:45]line РНМ: 0000000000091691 [14:54:45]line Версия ККМ: 001 [14:54:45]line ФМ: 0000000000871795 [14:54:45]line ФД: 74680 [14:54:45]line ФПД: 194724170370149 [14:54:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145455&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74680&fm=194724170370149&tin=02508201610067®Number=0000000000091691&sum=30000 [14:54:45]OFD Sender: Processing packet 74680 [packets to send 13, broken 12] [14:54:45]ProducePacketName [14:54:45]name=ofd_packets/00074680 [14:54:45]OFD Sender: To server: pG, [14:54:45]CommunicateWithHost lk.salyk.kg:30040 [14:54:45]ConnectInit lk.salyk.kg [14:54:45]written 0, free lines is 4095 [14:54:45]Connected sock=10 [14:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E5 13 07 01 A0 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BF 5F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 23 01 00 35 04 06 00 B1 19 C1 01 0C 65 5B 2F F0 2B F6 2E 3F 2B [14:54:45]Write to MH i2c: 01 00 00 7B 7E F9 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 7B 7E 00 00 00 00 00 B4 0C C0 [14:54:45]RasterBufferAndPrint [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]written 0, free lines is 3259 [14:54:45]MH_Cut [14:54:45]Write to MH i2c: D1 01 00 82 7E 01 D2 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 82 7E 00 D1 [14:54:45]Write to MH i2c: 01 00 00 83 7E 01 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D9 86 47 00 54 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 23 01 00 F4 03 04 00 41 07 1A 67 B6 04 01 00 00 DD 02 EC 54 72 20 8C 22 [14:54:45]CommunicateWithHost err = 0 [14:54:45]CheckOFDResponse [14:54:45]1017 (14) - 77093643461234 [14:54:45]1041 (16) - 0000000000871795 [14:54:45]1040 (4) - 74680 [14:54:45]1012 (4) - 24.10.2024 08:37 [14:54:45]1206 (1) - 0 [14:54:45]OFD Sender: Remove packet 74680 [14:54:45]ProducePacketName [14:54:45]name=ofd_packets/00074680 [14:54:45]NVStorageDeleteData [14:54:46]OFD Sender: No OFD packet to send [14:54:46]*** Cut start [14:54:46]*** Partial cut [14:54:46]*** CUTSNS_PIN = 1 [14:54:46]*** CUTSNS_PIN = 0 [14:54:47]*** Brake cut motor [14:54:47]Read from MH i2c: 01 [14:54:47]MH_I2C_Read... [14:54:47]*** Stop cut motor [14:54:47]*** Cut end [14:54:47]Read from MH i2c: 01 07 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: 01 07 00 83 7E 00 00 00 00 00 FF 0F 16 [14:54:47]process_action close_receipt done [14:54:47]requested_data is exist [14:54:47]produce_requested_data [14:54:47]requested_item fm.sn is exist - process it [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 11 00 00 [14:54:47]Write to MH i2c: E2 08 00 84 7E 80 11 00 00 00 00 00 00 7C [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 17 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 17 00 84 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D4 [14:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:54:47]wFMCommunicate OK [14:54:47]requested_item fd.num is exist - process it [14:54:47]SAM_PROTO_GetFieldsCounters [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 13 00 00 [14:54:47]Write to MH i2c: E2 08 00 85 7E 80 13 00 00 00 00 00 00 7F [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 62 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 62 00 85 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B8 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:54:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B8 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:47]wFMCommunicate OK [14:54:47]SAM_PROTO_GetFieldsCounters done [14:54:47]requested_item shift.num is exist - process it [14:54:47]requested_item shift.opened is exist - process it [14:54:47]req_shift_opened [14:54:47]FM_GetShiftState [14:54:47]SAM_PROTO_GetShiftState [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 13 01 00 [14:54:47]Write to MH i2c: E2 08 00 86 7E 80 13 01 00 00 00 00 00 81 [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 0E 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 0E 00 86 7E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AB [14:54:47]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:54:47]wFMCommunicate OK [14:54:47]SAM_PROTO_GetShiftState done [14:54:47]FM_GetShiftState done [14:54:47]req_shift_opened done [14:54:47]requested_item shift.open_date is exist - process it [14:54:47]req_shift_open_date [14:54:47]req_shift_open_date done [14:54:47]produce_requested_data done [14:54:47]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74680,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:54:47]process_action_free close_receipt [14:54:47]json_value_free [14:54:47]json_value_free done [14:54:47]process_json_proto returns [14:54:47]Send response to host [14:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74680,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:54:47]free response buf [14:54:47]execute_script done [14:54:47]execute_script returns [14:54:47]free content buf [14:54:47]Sock 9.Close socket [14:54:47]Sock 9.Thread stoped [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:25]accept exits with 8 [14:57:25]New connection [14:57:25]New thread 3066662244 created [14:57:25]Thread 3066805604 joined [14:57:25]Waiting for new connection... [14:57:25] Sock 8.Parse request [14:57:25]Sock 8.Check first char [14:57:25]Sock 8.First char is OK [14:57:25]request: POST /json_proto HTTP/1.0 [14:57:25]Method: POST [14:57:25]URL: /json_proto [14:57:25]Method is POST - this is cgi request [14:57:25]url: /json_proto [14:57:25]query_string will be loaded in cgi processing [14:57:25]execute_cgi json_proto POST (null) [14:57:25]execute_cgi path=json_proto method=POST [14:57:25]POST find Content-Length [14:57:25]Host: 172.17.39.131:8080 [14:57:25]Content-Length: 772 [14:57:25]Content-Type: application/json [14:57:25] [14:57:25]POST finish read [14:57:25]Found Content-Length = 772 [14:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:25]execute_script... [14:57:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:25]POST & json_proto [14:57:25]process_json_proto [14:57:25]json parsed OK: [14:57:25]protocol is kg_v1.0 [14:57:25]action value=close_receipt [14:57:25]process_action close_receipt [14:57:25]cmd_close_receipt [14:57:25]MH_GetDate [14:57:25]Write to MH i2c: F0 00 00 87 7E F4 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: F0 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: F0 09 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: F0 09 00 87 7E 00 60 60 1A 67 86 57 24 65 A4 [14:57:25]GetLastDocTimeStamp 1729781695 [14:57:25]current date 1729781856 [14:57:25]FM_GetShiftState [14:57:25]SAM_PROTO_GetShiftState [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 13 01 00 [14:57:25]Write to MH i2c: E2 08 00 88 7E 80 13 01 00 00 00 00 00 83 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 88 7E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AD [14:57:25]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_GetShiftState done [14:57:25]FM_GetShiftState done [14:57:25]opened in 1729729801 [14:57:25]opened+sec_in_day 1729816201 [14:57:25]quantity*price = 200023 [14:57:25]sum+1 = 200025 [14:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.24 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.24 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 125 24.10.2024 14:57 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74681 ФПД: 104598056580682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145736&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74681&fm=104598056580682&tin=02508201610067®Number=0000000000091691&sum=200024 [14:57:26]StoreToDocumentArchive [14:57:26]shift 510 fd 74681 [14:57:26]save to /storage/0510/doc_00074681 [14:57:26]save last doc name /storage/0510/doc_00074681 to /storage/kkm_last_doc_name [14:57:26]save OK [14:57:26]Clear old archive folders... [14:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:57:26]tlvbuf is 007D3370 [14:57:26]SAM_PROTO_ClearQueue [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 09 00 00 [14:57:26]Write to MH i2c: E2 08 00 95 7E 80 09 00 00 00 00 00 00 85 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 95 7E 00 90 00 87 [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]SAM_PROTO_ClearQueue done [14:57:26]KKMCreateOFDPacket [14:57:26]OFDProtocolAddRootSTLVToBuf [14:57:26]FM_MakeSignedData [14:57:26]FM_MakeSignedData [14:57:26]SAM_PROTO_SignData [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 0D 01 02 [14:57:26]Write to MH i2c: E2 08 00 96 7E 80 0D 01 02 00 00 00 00 8D [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 96 7E 00 90 00 88 [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]wFMCommunicate request_size=255 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 60 60 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 23 01 00 35 04 06 00 5F 21 [14:57:26]Write to MH i2c: E2 02 01 97 7E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 60 60 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 23 01 00 35 04 06 00 5F 21 00 00 B4 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]OFD Sender: No OFD packet to send [14:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 97 7E 00 90 00 89 [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]wFMCommunicate request_size=9 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 0D 02 02 04 A2 01 B6 4A [14:57:26]Write to MH i2c: E2 0C 00 98 7E 80 0D 02 02 04 00 A2 01 B6 4A 00 00 3B [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 98 7E 00 90 00 8A [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 0D 03 02 [14:57:26]Write to MH i2c: E2 08 00 99 7E 80 0D 03 02 00 00 00 00 92 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0B 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0B 00 99 7E 00 C4 93 09 AF E3 32 17 6B 90 00 39 [14:57:26]RAPDU: C4 93 09 AF E3 32 17 6B 90 00 [14:57:26]wFMCommunicate OK [14:57:26]SAM_PROTO_SignData done [14:57:26]FM_MakeSignedData done [14:57:26]CreateOFDProtocolMessage [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 11 00 00 [14:57:26]Write to MH i2c: E2 08 00 9A 7E 80 11 00 00 00 00 00 00 92 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 17 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 17 00 9A 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EA [14:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:57:26]wFMCommunicate OK [14:57:26]CreateOFDProtocolMessage done [14:57:26]OFDSenderStorePacket 74681 [14:57:26]StoreOFDPacket docnum=74681 [14:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 CE 3C 06 01 F3 61 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 60 60 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 23 01 00 35 04 06 00 5F 21 A2 01 B6 4A C4 93 09 AF E3 32 17 6B [14:57:26]CheckFolder [14:57:26]dirname=/storage/ofd_packets [14:57:26]CheckFolder done [14:57:26]ProducePacketName [14:57:26]name=ofd_packets/00074681 [14:57:26]NVStorageSaveData ofd_packets/00074681 [14:57:26]File name is /storage/ofd_packets/00074681 [14:57:26]Write 300 bytes [14:57:26]NVStorageSaveData done [14:57:26]OFDSenderStorePacket done [14:57:26]KKMCreateOFDPacket done [14:57:26]NVStorageSaveData kkm_last_timestamp [14:57:26]File name is /storage/kkm_last_timestamp [14:57:26]Write 4 bytes [14:57:26]NVStorageSaveData done [14:57:26]ExternCall_PrintAddStr [14:57:26]wPrintStart [14:57:26]Write to MH i2c: 01 00 00 9B 7E 19 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 07 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 07 00 9B 7E 00 00 00 00 00 FF 0F 2E [14:57:26]RasterBufferAndPrint [14:57:26]line Счет N : (1)190645 [14:57:26]line ИНН: 02508201610067 [14:57:26]line Контрольно-Кассовый Чек [14:57:26]line ПРОДАЖА [14:57:26]line ТРК (МРК, ГНК) : 51 [14:57:26]line Товар: 2711190000 [14:57:26]line ГАЗ-К-3 [14:57:26]line 51.420 * 38.90 [14:57:26]line = 2000.24 [14:57:26]line НДС 12% НСП 1% [14:57:26]line > о реализуемом товаре [14:57:26]line ИТОГО: 2000.24 [14:57:26]line НСП 1% : 17.70 [14:57:26]line НДС 12% : 212.41 [14:57:26]line Наличными: 0.00 [14:57:26]line Безнал.: 2000.24 [14:57:26]line Место: АЗС № 142 "Партнер Нефть" [14:57:26]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:57:26]line СНО: Общий режим [14:57:26]line Чек 125 24.10.2024 14:57 [14:57:26]line Смена: 510 ФФД: 1.0 [14:57:26]line ЗНМ: 0300000089 [14:57:26]line РНМ: 0000000000091691 [14:57:26]line Версия ККМ: 001 [14:57:26]line Платежная система: Mbank [14:57:26]line ФМ: 0000000000871795 [14:57:26]line ФД: 74681 [14:57:26]line ФПД: 104598056580682 [14:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145736&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74681&fm=104598056580682&tin=02508201610067®Number=0000000000091691&sum=200024 [14:57:27]written 0, free lines is 4095 [14:57:27]OFD Sender: Processing packet 74681 [packets to send 13, broken 12] [14:57:27]ProducePacketName [14:57:27]name=ofd_packets/00074681 [14:57:27]OFD Sender: To server: pG, [14:57:27]CommunicateWithHost lk.salyk.kg:30040 [14:57:27]ConnectInit lk.salyk.kg [14:57:27]Connected sock=11 [14:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 CE 3C 06 01 F3 61 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 60 60 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 23 01 00 35 04 06 00 5F 21 A2 01 B6 4A C4 93 09 AF E3 32 17 6B [14:57:27]Write to MH i2c: 01 00 00 C4 7E 42 [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: 01 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: 01 07 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: 01 07 00 C4 7E 00 00 00 00 00 CD 0C 22 [14:57:27]RasterBufferAndPrint [14:57:27]line [14:57:27]line [14:57:27]line [14:57:27]line [14:57:27]line [14:57:27]written 0, free lines is 3283 [14:57:27]MH_Cut [14:57:27]Write to MH i2c: D1 01 00 CB 7E 01 1B [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: D1 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: D1 01 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: D1 01 00 CB 7E 00 1A [14:57:27]Write to MH i2c: 01 00 00 CC 7E 4A [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D0 EA 47 00 8F 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 23 01 00 F4 03 04 00 E2 07 1A 67 B6 04 01 00 00 31 74 06 09 35 01 22 49 [14:57:27]CommunicateWithHost err = 0 [14:57:27]CheckOFDResponse [14:57:27]1017 (14) - 77093643461234 [14:57:27]1041 (16) - 0000000000871795 [14:57:27]1040 (4) - 74681 [14:57:27]1012 (4) - 24.10.2024 08:40 [14:57:27]1206 (1) - 0 [14:57:27]OFD Sender: Remove packet 74681 [14:57:27]ProducePacketName [14:57:27]name=ofd_packets/00074681 [14:57:27]NVStorageDeleteData [14:57:28]OFD Sender: No OFD packet to send [14:57:28]*** Cut start [14:57:28]*** Partial cut [14:57:28]*** CUTSNS_PIN = 1 [14:57:28]*** CUTSNS_PIN = 0 [14:57:28]*** Brake cut motor [14:57:29]Read from MH i2c: 01 [14:57:29]MH_I2C_Read... [14:57:29]*** Stop cut motor [14:57:29]*** Cut end [14:57:29]Read from MH i2c: 01 07 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: 01 07 00 CC 7E 00 00 00 00 00 FF 0F 5F [14:57:29]process_action close_receipt done [14:57:29]requested_data is exist [14:57:29]produce_requested_data [14:57:29]requested_item fm.sn is exist - process it [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 11 00 00 [14:57:29]Write to MH i2c: E2 08 00 CD 7E 80 11 00 00 00 00 00 00 C5 [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 17 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 17 00 CD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1D [14:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:57:29]wFMCommunicate OK [14:57:29]requested_item fd.num is exist - process it [14:57:29]SAM_PROTO_GetFieldsCounters [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 13 00 00 [14:57:29]Write to MH i2c: E2 08 00 CE 7E 80 13 00 00 00 00 00 00 C8 [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 62 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 62 00 CE 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B9 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B9 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:29]wFMCommunicate OK [14:57:29]SAM_PROTO_GetFieldsCounters done [14:57:29]requested_item shift.num is exist - process it [14:57:29]requested_item shift.opened is exist - process it [14:57:29]req_shift_opened [14:57:29]FM_GetShiftState [14:57:29]SAM_PROTO_GetShiftState [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 13 01 00 [14:57:29]Write to MH i2c: E2 08 00 CF 7E 80 13 01 00 00 00 00 00 CA [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 0E 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 0E 00 CF 7E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F4 [14:57:29]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [14:57:29]wFMCommunicate OK [14:57:29]SAM_PROTO_GetShiftState done [14:57:29]FM_GetShiftState done [14:57:29]req_shift_opened done [14:57:29]requested_item shift.open_date is exist - process it [14:57:29]req_shift_open_date [14:57:29]req_shift_open_date done [14:57:29]produce_requested_data done [14:57:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74681,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [14:57:29]process_action_free close_receipt [14:57:29]json_value_free [14:57:29]json_value_free done [14:57:29]process_json_proto returns [14:57:29]Send response to host [14:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74681,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [14:57:29]free response buf [14:57:29]execute_script done [14:57:29]execute_script returns [14:57:29]free content buf [14:57:29]Sock 8.Close socket [14:57:29]Sock 8.Thread stoped [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:14]int [14:58:14]Write to MH i2c: 01 00 00 D0 7E 4E [14:58:14]*** FLAG_PRN_KEY set [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 D0 7E 00 08 00 00 00 FF 0F 6B [14:58:14]state=0 [14:58:14]Key pressed [14:58:14]Feed [14:58:14]Write to MH i2c: D8 00 00 D1 7E 26 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: D8 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: D8 01 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: D8 01 00 D1 7E 00 27 [14:58:14]int [14:58:14]Write to MH i2c: 01 00 00 D2 7E 50 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 D2 7E 00 48 00 00 00 3C 00 DB [14:58:14]state=2 [14:58:14]Key pressed [14:58:14]int [14:58:14]Write to MH i2c: 01 00 00 D3 7E 51 [14:58:14]*** FLAG_PRN_KEY reset [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 D3 7E 00 00 00 00 00 F8 0F 5F [14:58:14]state=2 [14:58:14]Stop feed [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:29]accept exits with 9 [15:00:29]New connection [15:00:29]New thread 3066805604 created [15:00:29]Thread 3066662244 joined [15:00:29]Waiting for new connection... [15:00:29] Sock 9.Parse request [15:00:29]Sock 9.Check first char [15:00:29]Sock 9.First char is OK [15:00:29]request: POST /json_proto HTTP/1.0 [15:00:29]Method: POST [15:00:29]URL: /json_proto [15:00:29]Method is POST - this is cgi request [15:00:29]url: /json_proto [15:00:29]query_string will be loaded in cgi processing [15:00:29]execute_cgi json_proto POST (null) [15:00:29]execute_cgi path=json_proto method=POST [15:00:29]POST find Content-Length [15:00:29]Host: 172.17.39.131:8080 [15:00:29]Content-Length: 679 [15:00:29]Content-Type: application/json [15:00:29] [15:00:29]POST finish read [15:00:29]Found Content-Length = 679 [15:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:29]execute_script... [15:00: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)190647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:29]POST & json_proto [15:00:29]process_json_proto [15:00:29]json parsed OK: [15:00:29]protocol is kg_v1.0 [15:00:29]action value=close_receipt [15:00:29]process_action close_receipt [15:00:29]cmd_close_receipt [15:00:29]MH_GetDate [15:00:29]Write to MH i2c: F0 00 00 D4 7E 41 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: F0 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: F0 09 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: F0 09 00 D4 7E 00 19 61 1A 67 86 57 24 65 AB [15:00:29]GetLastDocTimeStamp 1729781856 [15:00:29]current date 1729782041 [15:00:29]FM_GetShiftState [15:00:29]SAM_PROTO_GetShiftState [15:00:29]wFMCommunicate request_size=4 [15:00:29]MH_SAM_APDU [15:00:29]CAPDU: 80 13 01 00 [15:00:29]Write to MH i2c: E2 08 00 D5 7E 80 13 01 00 00 00 00 00 D0 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 0E 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 0E 00 D5 7E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 FA [15:00:29]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:00:29]wFMCommunicate OK [15:00:29]SAM_PROTO_GetShiftState done [15:00:29]FM_GetShiftState done [15:00:29]opened in 1729729801 [15:00:29]opened+sec_in_day 1729816201 [15:00:29]quantity*price = 100050 [15:00:29]sum+1 = 100052 [15:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 126 24.10.2024 15:00 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74682 ФПД: 261596395653042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150041&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74682&fm=261596395653042&tin=02508201610067®Number=0000000000091691&sum=100000 [15:00:30]StoreToDocumentArchive [15:00:30]shift 510 fd 74682 [15:00:30]save to /storage/0510/doc_00074682 [15:00:30]save last doc name /storage/0510/doc_00074682 to /storage/kkm_last_doc_name [15:00:30]save OK [15:00:30]Clear old archive folders... [15:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:00:30]tlvbuf is 007C63A0 [15:00:30]SAM_PROTO_ClearQueue [15:00:30]wFMCommunicate request_size=4 [15:00:30]MH_SAM_APDU [15:00:30]CAPDU: 80 09 00 00 [15:00:30]Write to MH i2c: E2 08 00 E2 7E 80 09 00 00 00 00 00 00 D2 [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 E2 7E 00 90 00 D4 [15:00:31]RAPDU: 90 00 [15:00:31]wFMCommunicate OK [15:00:31]SAM_PROTO_ClearQueue done [15:00:31]KKMCreateOFDPacket [15:00:31]OFDProtocolAddRootSTLVToBuf [15:00:31]FM_MakeSignedData [15:00:31]FM_MakeSignedData [15:00:31]SAM_PROTO_SignData [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 0D 01 02 [15:00:31]Write to MH i2c: E2 08 00 E3 7E 80 0D 01 02 00 00 00 00 DA [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 E3 7E 00 90 00 D5 [15:00:31]RAPDU: 90 00 [15:00:31]wFMCommunicate OK [15:00:31]wFMCommunicate request_size=255 [15:00:31]MH_SAM_APDU [15:00: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7E 00 00 00 F4 03 04 00 19 61 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 23 01 00 35 04 06 00 ED EB A8 3C [15:00:31]Write to MH i2c: E2 02 01 E4 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7E 00 00 00 F4 03 04 00 19 61 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 23 01 00 35 04 06 00 ED EB A8 3C 00 00 76 [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 E4 7E 00 90 00 D6 [15:00:31]RAPDU: 90 00 [15:00:31]wFMCommunicate OK [15:00:31]wFMCommunicate request_size=7 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 0D 02 02 02 C7 B2 [15:00:31]Write to MH i2c: E2 0A 00 E5 7E 80 0D 02 02 02 00 C7 B2 00 00 5A [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 03 00 E5 7E 00 90 00 D7 [15:00:31]RAPDU: 90 00 [15:00:31]wFMCommunicate OK [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 0D 03 02 [15:00:31]Write to MH i2c: E2 08 00 E6 7E 80 0D 03 02 00 00 00 00 DF [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 0B 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 0B 00 E6 7E 00 91 AE BE F6 AB F0 FC 0A 90 00 74 [15:00:31]RAPDU: 91 AE BE F6 AB F0 FC 0A 90 00 [15:00:31]wFMCommunicate OK [15:00:31]SAM_PROTO_SignData done [15:00:31]FM_MakeSignedData done [15:00:31]CreateOFDProtocolMessage [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 11 00 00 [15:00:31]Write to MH i2c: E2 08 00 E7 7E 80 11 00 00 00 00 00 00 DF [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 17 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 17 00 E7 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 37 [15:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:00:31]wFMCommunicate OK [15:00:31]CreateOFDProtocolMessage done [15:00:31]OFDSenderStorePacket 74682 [15:00:31]StoreOFDPacket docnum=74682 [15:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 DE 82 04 01 69 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7E 00 00 00 F4 03 04 00 19 61 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 23 01 00 35 04 06 00 ED EB A8 3C C7 B2 91 AE BE F6 AB F0 FC 0A [15:00:31]CheckFolder [15:00:31]dirname=/storage/ofd_packets [15:00:31]CheckFolder done [15:00:31]ProducePacketName [15:00:31]name=ofd_packets/00074682 [15:00:31]NVStorageSaveData ofd_packets/00074682 [15:00:31]File name is /storage/ofd_packets/00074682 [15:00:31]Write 298 bytes [15:00:31]NVStorageSaveData done [15:00:31]OFDSenderStorePacket done [15:00:31]KKMCreateOFDPacket done [15:00:31]NVStorageSaveData kkm_last_timestamp [15:00:31]File name is /storage/kkm_last_timestamp [15:00:31]Write 4 bytes [15:00:31]NVStorageSaveData done [15:00:31]ExternCall_PrintAddStr [15:00:31]wPrintStart [15:00:31]Write to MH i2c: 01 00 00 E8 7E 66 [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: 01 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: 01 07 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: 01 07 00 E8 7E 00 00 00 00 00 FF 0F 7B [15:00:31]RasterBufferAndPrint [15:00:31]line Счет N : (1)190647 [15:00:31]line ИНН: 02508201610067 [15:00:31]line Контрольно-Кассовый Чек [15:00:31]line ПРОДАЖА [15:00:31]line ТРК (МРК, ГНК) : 31 [15:00:31]line Товар: 2710194210 [15:00:31]line ДТ-К-4 [15:00:31]line 13.130 * 76.20 [15:00:31]line = 1000.51 [15:00:31]line НДС 12% НСП 1% [15:00:31]line > о реализуемом товаре [15:00:31]line ОКРУГЛЕНИЕ: -0.51 [15:00:31]line ИТОГО: 1000.00 [15:00:31]line Внесено: 1000.00 [15:00:31]line СДАЧА: 0.00 [15:00:31]line НСП 1% : 8.85 [15:00:31]line НДС 12% : 106.25 [15:00:31]line Наличными: 1000.00 [15:00:31]line Безнал.: 0.00 [15:00:31]line Место: АЗС № 142 "Партнер Нефть" [15:00:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:00:31]line СНО: Общий режим [15:00:31]line Чек 126 24.10.2024 15:00 [15:00:31]line Смена: 510 ФФД: 1.0 [15:00:31]line ЗНМ: 0300000089 [15:00:31]line РНМ: 0000000000091691 [15:00:31]line Версия ККМ: 001 [15:00:31]line ФМ: 0000000000871795 [15:00:31]line ФД: 74682 [15:00:31]line ФПД: 261596395653042 [15:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150041&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74682&fm=261596395653042&tin=02508201610067®Number=0000000000091691&sum=100000 [15:00:31]OFD Sender: Processing packet 74682 [packets to send 13, broken 12] [15:00:31]ProducePacketName [15:00:31]name=ofd_packets/00074682 [15:00:31]OFD Sender: To server: pG, [15:00:31]CommunicateWithHost lk.salyk.kg:30040 [15:00:31]ConnectInit lk.salyk.kg [15:00:31]written 0, free lines is 4095 [15:00:32]Connected sock=10 [15:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 DE 82 04 01 69 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7E 00 00 00 F4 03 04 00 19 61 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 23 01 00 35 04 06 00 ED EB A8 3C C7 B2 91 AE BE F6 AB F0 FC 0A [15:00:32]Write to MH i2c: 01 00 00 13 7F 92 [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: 01 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: 01 07 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: 01 07 00 13 7F 00 00 00 00 00 BB 0C 60 [15:00:32]RasterBufferAndPrint [15:00:32]line [15:00:32]line [15:00:32]line [15:00:32]line [15:00:32]line [15:00:32]written 0, free lines is 3266 [15:00:32]MH_Cut [15:00:32]Write to MH i2c: D1 01 00 1A 7F 01 6B [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0B D9 47 00 67 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 23 01 00 F4 03 04 00 9B 08 1A 67 B6 04 01 00 00 CE 25 B7 06 B3 99 42 4D [15:00:32]CommunicateWithHost err = 0 [15:00:32]CheckOFDResponse [15:00:32]1017 (14) - 77093643461234 [15:00:32]1041 (16) - 0000000000871795 [15:00:32]1040 (4) - 74682 [15:00:32]1012 (4) - 24.10.2024 08:43 [15:00:32]1206 (1) - 0 [15:00:32]OFD Sender: Remove packet 74682 [15:00:32]ProducePacketName [15:00:32]name=ofd_packets/00074682 [15:00:32]NVStorageDeleteData [15:00:32]Read from MH i2c: D1 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: D1 01 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: D1 01 00 1A 7F 00 6A [15:00:32]Write to MH i2c: 01 00 00 1B 7F 9A [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]OFD Sender: No OFD packet to send [15:00:33]*** Cut start [15:00:33]*** Partial cut [15:00:33]*** CUTSNS_PIN = 1 [15:00:33]*** CUTSNS_PIN = 0 [15:00:33]*** Brake cut motor [15:00:33]Read from MH i2c: 01 [15:00:33]MH_I2C_Read... [15:00:33]*** Stop cut motor [15:00:33]*** Cut end [15:00:33]Read from MH i2c: 01 07 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: 01 07 00 1B 7F 00 00 00 00 00 FF 0F AF [15:00:33]process_action close_receipt done [15:00:33]requested_data is exist [15:00:33]produce_requested_data [15:00:33]requested_item fm.sn is exist - process it [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 11 00 00 [15:00:33]Write to MH i2c: E2 08 00 1C 7F 80 11 00 00 00 00 00 00 15 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 17 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 17 00 1C 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6D [15:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:00:33]wFMCommunicate OK [15:00:33]requested_item fd.num is exist - process it [15:00:33]SAM_PROTO_GetFieldsCounters [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 13 00 00 [15:00:33]Write to MH i2c: E2 08 00 1D 7F 80 13 00 00 00 00 00 00 18 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 62 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 62 00 1D 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BA 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [15:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BA 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:34]wFMCommunicate OK [15:00:34]SAM_PROTO_GetFieldsCounters done [15:00:34]requested_item shift.num is exist - process it [15:00:34]requested_item shift.opened is exist - process it [15:00:34]req_shift_opened [15:00:34]FM_GetShiftState [15:00:34]SAM_PROTO_GetShiftState [15:00:34]wFMCommunicate request_size=4 [15:00:34]MH_SAM_APDU [15:00:34]CAPDU: 80 13 01 00 [15:00:34]Write to MH i2c: E2 08 00 1E 7F 80 13 01 00 00 00 00 00 1A [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 0E 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 0E 00 1E 7F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 44 [15:00:34]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:00:34]wFMCommunicate OK [15:00:34]SAM_PROTO_GetShiftState done [15:00:34]FM_GetShiftState done [15:00:34]req_shift_opened done [15:00:34]requested_item shift.open_date is exist - process it [15:00:34]req_shift_open_date [15:00:34]req_shift_open_date done [15:00:34]produce_requested_data done [15:00:34]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74682,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:00:34]process_action_free close_receipt [15:00:34]json_value_free [15:00:34]json_value_free done [15:00:34]process_json_proto returns [15:00:34]Send response to host [15:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74682,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:00:34]free response buf [15:00:34]execute_script done [15:00:34]execute_script returns [15:00:34]free content buf [15:00:34]Sock 9.Close socket [15:00:34]Sock 9.Thread stoped [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:24]accept exits with 8 [15:15:24]New connection [15:15:24]New thread 3066662244 created [15:15:24]Thread 3066805604 joined [15:15:24]Waiting for new connection... [15:15:24] Sock 8.Parse request [15:15:24]Sock 8.Check first char [15:15:24]Sock 8.First char is OK [15:15:24]request: POST /json_proto HTTP/1.0 [15:15:24]Method: POST [15:15:24]URL: /json_proto [15:15:24]Method is POST - this is cgi request [15:15:24]url: /json_proto [15:15:24]query_string will be loaded in cgi processing [15:15:24]execute_cgi json_proto POST (null) [15:15:24]execute_cgi path=json_proto method=POST [15:15:24]POST find Content-Length [15:15:24]Host: 172.17.39.131:8080 [15:15:24]Content-Length: 679 [15:15:24]Content-Type: application/json [15:15:24] [15:15:24]POST finish read [15:15:24]Found Content-Length = 679 [15:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [15:15:24]execute_script... [15:15: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)190648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [15:15:24]POST & json_proto [15:15:24]process_json_proto [15:15:24]json parsed OK: [15:15:24]protocol is kg_v1.0 [15:15:24]action value=close_receipt [15:15:24]process_action close_receipt [15:15:24]cmd_close_receipt [15:15:24]MH_GetDate [15:15:24]Write to MH i2c: F0 00 00 1F 7F 8D [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: F0 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: F0 09 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: F0 09 00 1F 7F 00 98 64 1A 67 86 57 24 65 79 [15:15:24]GetLastDocTimeStamp 1729782041 [15:15:24]current date 1729782936 [15:15:24]FM_GetShiftState [15:15:24]SAM_PROTO_GetShiftState [15:15:24]wFMCommunicate request_size=4 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 13 01 00 [15:15:24]Write to MH i2c: E2 08 00 20 7F 80 13 01 00 00 00 00 00 1C [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 0E 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 0E 00 20 7F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 46 [15:15:24]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:15:24]wFMCommunicate OK [15:15:24]SAM_PROTO_GetShiftState done [15:15:24]FM_GetShiftState done [15:15:24]opened in 1729729801 [15:15:24]opened+sec_in_day 1729816201 [15:15:24]quantity*price = 150037 [15:15:24]sum+1 = 150039 [15:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 127 24.10.2024 15:15 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74683 ФПД: 94570461682101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151536&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74683&fm=94570461682101&tin=02508201610067®Number=0000000000091691&sum=150000 [15:15:25]StoreToDocumentArchive [15:15:25]shift 510 fd 74683 [15:15:25]save to /storage/0510/doc_00074683 [15:15:25]save last doc name /storage/0510/doc_00074683 to /storage/kkm_last_doc_name [15:15:25]save OK [15:15:25]Clear old archive folders... [15:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:25]tlvbuf is 007C6420 [15:15:25]SAM_PROTO_ClearQueue [15:15:25]wFMCommunicate request_size=4 [15:15:25]MH_SAM_APDU [15:15:25]CAPDU: 80 09 00 00 [15:15:25]Write to MH i2c: E2 08 00 2D 7F 80 09 00 00 00 00 00 00 1E [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 2D 7F 00 90 00 20 [15:15:25]RAPDU: 90 00 [15:15:25]wFMCommunicate OK [15:15:25]SAM_PROTO_ClearQueue done [15:15:25]KKMCreateOFDPacket [15:15:25]OFDProtocolAddRootSTLVToBuf [15:15:25]FM_MakeSignedData [15:15:25]FM_MakeSignedData [15:15:25]SAM_PROTO_SignData [15:15:25]wFMCommunicate request_size=4 [15:15:25]MH_SAM_APDU [15:15:25]CAPDU: 80 0D 01 02 [15:15:25]Write to MH i2c: E2 08 00 2E 7F 80 0D 01 02 00 00 00 00 26 [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 2E 7F 00 90 00 21 [15:15:25]RAPDU: 90 00 [15:15:25]wFMCommunicate OK [15:15:25]wFMCommunicate request_size=255 [15:15:25]MH_SAM_APDU [15:15: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7F 00 00 00 F4 03 04 00 98 64 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 23 01 00 35 04 06 00 56 02 E6 C6 [15:15:25]Write to MH i2c: E2 02 01 2F 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7F 00 00 00 F4 03 04 00 98 64 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 23 01 00 35 04 06 00 56 02 E6 C6 00 00 05 [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 2F 7F 00 90 00 22 [15:15:25]RAPDU: 90 00 [15:15:25]wFMCommunicate OK [15:15:25]wFMCommunicate request_size=7 [15:15:25]MH_SAM_APDU [15:15:25]CAPDU: 80 0D 02 02 02 59 B5 [15:15:25]Write to MH i2c: E2 0A 00 30 7F 80 0D 02 02 02 00 59 B5 00 00 3B [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 03 00 30 7F 00 90 00 23 [15:15:25]RAPDU: 90 00 [15:15:25]wFMCommunicate OK [15:15:25]wFMCommunicate request_size=4 [15:15:25]MH_SAM_APDU [15:15:25]CAPDU: 80 0D 03 02 [15:15:25]Write to MH i2c: E2 08 00 31 7F 80 0D 03 02 00 00 00 00 2B [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 0B 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 0B 00 31 7F 00 5D 3C 84 B9 99 84 C2 51 90 00 32 [15:15:25]RAPDU: 5D 3C 84 B9 99 84 C2 51 90 00 [15:15:25]wFMCommunicate OK [15:15:25]SAM_PROTO_SignData done [15:15:25]FM_MakeSignedData done [15:15:25]CreateOFDProtocolMessage [15:15:25]wFMCommunicate request_size=4 [15:15:25]MH_SAM_APDU [15:15:25]CAPDU: 80 11 00 00 [15:15:25]Write to MH i2c: E2 08 00 32 7F 80 11 00 00 00 00 00 00 2B [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 32 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [15:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:15:26]wFMCommunicate OK [15:15:26]CreateOFDProtocolMessage done [15:15:26]OFDSenderStorePacket 74683 [15:15:26]StoreOFDPacket docnum=74683 [15:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 89 94 04 01 96 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7F 00 00 00 F4 03 04 00 98 64 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 23 01 00 35 04 06 00 56 02 E6 C6 59 B5 5D 3C 84 B9 99 84 C2 51 [15:15:26]CheckFolder [15:15:26]dirname=/storage/ofd_packets [15:15:26]CheckFolder done [15:15:26]ProducePacketName [15:15:26]name=ofd_packets/00074683 [15:15:26]NVStorageSaveData ofd_packets/00074683 [15:15:26]File name is /storage/ofd_packets/00074683 [15:15:26]Write 298 bytes [15:15:26]NVStorageSaveData done [15:15:26]OFDSenderStorePacket done [15:15:26]KKMCreateOFDPacket done [15:15:26]NVStorageSaveData kkm_last_timestamp [15:15:26]File name is /storage/kkm_last_timestamp [15:15:26]Write 4 bytes [15:15:26]NVStorageSaveData done [15:15:26]ExternCall_PrintAddStr [15:15:26]wPrintStart [15:15:26]Write to MH i2c: 01 00 00 33 7F B2 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 33 7F 00 00 00 00 00 FF 0F C7 [15:15:26]RasterBufferAndPrint [15:15:26]line Счет N : (1)190648 [15:15:26]line ИНН: 02508201610067 [15:15:26]line Контрольно-Кассовый Чек [15:15:26]line ПРОДАЖА [15:15:26]line ТРК (МРК, ГНК) : 41 [15:15:26]line Товар: 2710194210 [15:15:26]line ДТ-К-4 [15:15:26]line 19.690 * 76.20 [15:15:26]line = 1500.38 [15:15:26]line НДС 12% НСП 1% [15:15:26]line > о реализуемом товаре [15:15:26]line ОКРУГЛЕНИЕ: -0.38 [15:15:26]line ИТОГО: 1500.00 [15:15:26]line Внесено: 1500.00 [15:15:26]line СДАЧА: 0.00 [15:15:26]line НСП 1% : 13.28 [15:15:26]line НДС 12% : 159.33 [15:15:26]line Наличными: 1500.00 [15:15:26]line Безнал.: 0.00 [15:15:26]line Место: АЗС № 142 "Партнер Нефть" [15:15:26]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:15:26]line СНО: Общий режим [15:15:26]line Чек 127 24.10.2024 15:15 [15:15:26]line Смена: 510 ФФД: 1.0 [15:15:26]line ЗНМ: 0300000089 [15:15:26]line РНМ: 0000000000091691 [15:15:26]line Версия ККМ: 001 [15:15:26]line ФМ: 0000000000871795 [15:15:26]line ФД: 74683 [15:15:26]line ФПД: 94570461682101 [15:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151536&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74683&fm=94570461682101&tin=02508201610067®Number=0000000000091691&sum=150000 [15:15:26]written 0, free lines is 4095 [15:15:26]OFD Sender: Processing packet 74683 [packets to send 13, broken 12] [15:15:26]ProducePacketName [15:15:26]name=ofd_packets/00074683 [15:15:26]OFD Sender: To server: pG, [15:15:26]CommunicateWithHost lk.salyk.kg:30040 [15:15:26]ConnectInit lk.salyk.kg [15:15:26]Connected sock=10 [15:15:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 89 94 04 01 96 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7F 00 00 00 F4 03 04 00 98 64 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 23 01 00 35 04 06 00 56 02 E6 C6 59 B5 5D 3C 84 B9 99 84 C2 51 [15:15:26]Write to MH i2c: 01 00 00 5E 7F DD [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 5E 7F 00 00 00 00 00 A4 0C 94 [15:15:26]RasterBufferAndPrint [15:15:26]line [15:15:26]line [15:15:26]line [15:15:26]line [15:15:26]line [15:15:26]written 0, free lines is 3242 [15:15:26]MH_Cut [15:15:26]Write to MH i2c: D1 01 00 65 7F 01 B6 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: D1 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: D1 01 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: D1 01 00 65 7F 00 B5 [15:15:26]Write to MH i2c: 01 00 00 66 7F E5 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 37 23 47 00 C1 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 23 01 00 F4 03 04 00 19 0C 1A 67 B6 04 01 00 00 E5 AA 6B A5 B4 6A D1 40 [15:15:26]CommunicateWithHost err = 0 [15:15:26]CheckOFDResponse [15:15:26]1017 (14) - 77093643461234 [15:15:26]1041 (16) - 0000000000871795 [15:15:26]1040 (4) - 74683 [15:15:26]1012 (4) - 24.10.2024 08:58 [15:15:26]1206 (1) - 0 [15:15:26]OFD Sender: Remove packet 74683 [15:15:26]ProducePacketName [15:15:26]name=ofd_packets/00074683 [15:15:26]NVStorageDeleteData [15:15:27]OFD Sender: No OFD packet to send [15:15:27]*** Cut start [15:15:27]*** Partial cut [15:15:27]*** CUTSNS_PIN = 1 [15:15:27]*** CUTSNS_PIN = 0 [15:15:27]*** Brake cut motor [15:15:28]Read from MH i2c: 01 [15:15:28]MH_I2C_Read... [15:15:28]*** Stop cut motor [15:15:28]*** Cut end [15:15:28]Read from MH i2c: 01 07 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: 01 07 00 66 7F 00 00 00 00 00 FF 0F FA [15:15:28]process_action close_receipt done [15:15:28]requested_data is exist [15:15:28]produce_requested_data [15:15:28]requested_item fm.sn is exist - process it [15:15:28]wFMCommunicate request_size=4 [15:15:28]MH_SAM_APDU [15:15:28]CAPDU: 80 11 00 00 [15:15:28]Write to MH i2c: E2 08 00 67 7F 80 11 00 00 00 00 00 00 60 [15:15:28]Write i2c OK [15:15:28]MH_I2C_Read... [15:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:28]Read from MH i2c: E2 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 17 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 17 00 67 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B8 [15:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:15:28]wFMCommunicate OK [15:15:28]requested_item fd.num is exist - process it [15:15:28]SAM_PROTO_GetFieldsCounters [15:15:28]wFMCommunicate request_size=4 [15:15:28]MH_SAM_APDU [15:15:28]CAPDU: 80 13 00 00 [15:15:28]Write to MH i2c: E2 08 00 68 7F 80 13 00 00 00 00 00 00 63 [15:15:28]Write i2c OK [15:15:28]MH_I2C_Read... [15:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:28]Read from MH i2c: E2 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 62 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 62 00 68 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BB 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [15:15:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BB 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:28]wFMCommunicate OK [15:15:28]SAM_PROTO_GetFieldsCounters done [15:15:28]requested_item shift.num is exist - process it [15:15:28]requested_item shift.opened is exist - process it [15:15:28]req_shift_opened [15:15:28]FM_GetShiftState [15:15:28]SAM_PROTO_GetShiftState [15:15:28]wFMCommunicate request_size=4 [15:15:28]MH_SAM_APDU [15:15:28]CAPDU: 80 13 01 00 [15:15:28]Write to MH i2c: E2 08 00 69 7F 80 13 01 00 00 00 00 00 65 [15:15:28]Write i2c OK [15:15:28]MH_I2C_Read... [15:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:28]Read from MH i2c: E2 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 0E 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 0E 00 69 7F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 8F [15:15:28]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:15:28]wFMCommunicate OK [15:15:28]SAM_PROTO_GetShiftState done [15:15:28]FM_GetShiftState done [15:15:28]req_shift_opened done [15:15:28]requested_item shift.open_date is exist - process it [15:15:28]req_shift_open_date [15:15:28]req_shift_open_date done [15:15:28]produce_requested_data done [15:15:28]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74683,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:15:28]process_action_free close_receipt [15:15:28]json_value_free [15:15:28]json_value_free done [15:15:28]process_json_proto returns [15:15:28]Send response to host [15:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74683,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:15:28]free response buf [15:15:28]execute_script done [15:15:28]execute_script returns [15:15:28]free content buf [15:15:28]Sock 8.Close socket [15:15:28]Sock 8.Thread stoped [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:23]accept exits with 9 [15:22:23]New connection [15:22:23]New thread 3066805604 created [15:22:23]Thread 3066662244 joined [15:22:23]Waiting for new connection... [15:22:23] Sock 9.Parse request [15:22:23]Sock 9.Check first char [15:22:23]Sock 9.First char is OK [15:22:23]request: POST /json_proto HTTP/1.0 [15:22:23]Method: POST [15:22:23]URL: /json_proto [15:22:23]Method is POST - this is cgi request [15:22:23]url: /json_proto [15:22:23]query_string will be loaded in cgi processing [15:22:23]execute_cgi json_proto POST (null) [15:22:23]execute_cgi path=json_proto method=POST [15:22:23]POST find Content-Length [15:22:23]Host: 172.17.39.131:8080 [15:22:23]Content-Length: 800 [15:22:23]Content-Type: application/json [15:22:23] [15:22:23]POST finish read [15:22:23]Found Content-Length = 800 [15:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:23]execute_script... [15:22:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:23]POST & json_proto [15:22:23]process_json_proto [15:22:23]json parsed OK: [15:22:23]protocol is kg_v1.0 [15:22:23]action value=close_receipt [15:22:23]process_action close_receipt [15:22:23]cmd_close_receipt [15:22:23]MH_GetDate [15:22:23]Write to MH i2c: F0 00 00 6A 7F D8 [15:22:23]Write i2c OK [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: F0 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: F0 09 00 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: F0 09 00 6A 7F 00 3A 66 1A 67 86 57 24 65 68 [15:22:23]GetLastDocTimeStamp 1729782936 [15:22:23]current date 1729783354 [15:22:23]FM_GetShiftState [15:22:23]SAM_PROTO_GetShiftState [15:22:23]wFMCommunicate request_size=4 [15:22:23]MH_SAM_APDU [15:22:23]CAPDU: 80 13 01 00 [15:22:23]Write to MH i2c: E2 08 00 6B 7F 80 13 01 00 00 00 00 00 67 [15:22:23]Write i2c OK [15:22:23]MH_I2C_Read... [15:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:23]Read from MH i2c: E2 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: E2 0E 00 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: E2 0E 00 6B 7F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 91 [15:22:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:22:23]wFMCommunicate OK [15:22:23]SAM_PROTO_GetShiftState done [15:22:23]FM_GetShiftState done [15:22:23]opened in 1729729801 [15:22:23]opened+sec_in_day 1729816201 [15:22:23]quantity*price = 250012 [15:22:23]sum+1 = 250013 [15:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.12 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.12 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 128 24.10.2024 15:22 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 74684 ФПД: 234364975164313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152234&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74684&fm=234364975164313&tin=02508201610067®Number=0000000000091691&sum=250012 [15:22:24]StoreToDocumentArchive [15:22:24]shift 510 fd 74684 [15:22:24]save to /storage/0510/doc_00074684 [15:22:24]save last doc name /storage/0510/doc_00074684 to /storage/kkm_last_doc_name [15:22:24]save OK [15:22:24]Clear old archive folders... [15:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:24]tlvbuf is 007EB8E0 [15:22:24]SAM_PROTO_ClearQueue [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 09 00 00 [15:22:24]Write to MH i2c: E2 08 00 78 7F 80 09 00 00 00 00 00 00 69 [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 78 7F 00 90 00 6B [15:22:24]RAPDU: 90 00 [15:22:24]wFMCommunicate OK [15:22:24]SAM_PROTO_ClearQueue done [15:22:24]KKMCreateOFDPacket [15:22:24]OFDProtocolAddRootSTLVToBuf [15:22:24]FM_MakeSignedData [15:22:24]FM_MakeSignedData [15:22:24]SAM_PROTO_SignData [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 0D 01 02 [15:22:24]Write to MH i2c: E2 08 00 79 7F 80 0D 01 02 00 00 00 00 71 [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 79 7F 00 90 00 6C [15:22:24]RAPDU: 90 00 [15:22:24]wFMCommunicate OK [15:22:24]wFMCommunicate request_size=255 [15:22:24]MH_SAM_APDU [15:22: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 9C 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 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3A 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 23 01 00 35 04 06 00 D5 27 59 17 [15:22:24]Write to MH i2c: E2 02 01 7A 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 9C 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 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3A 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 23 01 00 35 04 06 00 D5 27 59 17 00 00 60 [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 7A 7F 00 90 00 6D [15:22:24]RAPDU: 90 00 [15:22:24]wFMCommunicate OK [15:22:24]wFMCommunicate request_size=7 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 0D 02 02 02 AB 99 [15:22:24]Write to MH i2c: E2 0A 00 7B 7F 80 0D 02 02 02 00 AB 99 00 00 BC [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 03 00 7B 7F 00 90 00 6E [15:22:24]RAPDU: 90 00 [15:22:24]wFMCommunicate OK [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 0D 03 02 [15:22:24]Write to MH i2c: E2 08 00 7C 7F 80 0D 03 02 00 00 00 00 76 [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 0B 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 0B 00 7C 7F 00 A0 B4 78 9C A6 3B B2 79 90 00 EB [15:22:24]RAPDU: A0 B4 78 9C A6 3B B2 79 90 00 [15:22:24]wFMCommunicate OK [15:22:24]SAM_PROTO_SignData done [15:22:24]FM_MakeSignedData done [15:22:24]CreateOFDProtocolMessage [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 11 00 00 [15:22:24]Write to MH i2c: E2 08 00 7D 7F 80 11 00 00 00 00 00 00 76 [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 17 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 17 00 7D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CE [15:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:22:24]wFMCommunicate OK [15:22:24]CreateOFDProtocolMessage done [15:22:24]OFDSenderStorePacket 74684 [15:22:24]StoreOFDPacket docnum=74684 [15:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E8 36 04 01 29 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 9C 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 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3A 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 23 01 00 35 04 06 00 D5 27 59 17 AB 99 A0 B4 78 9C A6 3B B2 79 [15:22:24]CheckFolder [15:22:24]dirname=/storage/ofd_packets [15:22:24]CheckFolder done [15:22:24]ProducePacketName [15:22:24]name=ofd_packets/00074684 [15:22:24]NVStorageSaveData ofd_packets/00074684 [15:22:24]File name is /storage/ofd_packets/00074684 [15:22:24]Write 298 bytes [15:22:24]NVStorageSaveData done [15:22:24]OFDSenderStorePacket done [15:22:24]KKMCreateOFDPacket done [15:22:24]NVStorageSaveData kkm_last_timestamp [15:22:24]File name is /storage/kkm_last_timestamp [15:22:24]Write 4 bytes [15:22:24]NVStorageSaveData done [15:22:24]ExternCall_PrintAddStr [15:22:24]wPrintStart [15:22:24]Write to MH i2c: 01 00 00 7E 7F FD [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: 01 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: 01 07 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: 01 07 00 7E 7F 00 00 00 00 00 FF 0F 12 [15:22:24]RasterBufferAndPrint [15:22:24]line Счет N : (1)190649 [15:22:24]line ИНН: 02508201610067 [15:22:24]line Контрольно-Кассовый Чек [15:22:24]line ПРОДАЖА [15:22:24]line ТРК (МРК, ГНК) : 41 [15:22:24]line Товар: 2710194210 [15:22:24]line ДТ-К-4 [15:22:24]line 32.810 * 76.20 [15:22:24]line = 2500.12 [15:22:24]line НДС 12% НСП 1% [15:22:24]line > о реализуемом товаре [15:22:24]line ИТОГО: 2500.12 [15:22:24]line НСП 1% : 22.12 [15:22:24]line НДС 12% : 265.50 [15:22:24]line Наличными: 0.00 [15:22:24]line Безнал.: 2500.12 [15:22:24]line Место: АЗС № 142 "Партнер Нефть" [15:22:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:22:24]line СНО: Общий режим [15:22:24]line Чек 128 24.10.2024 15:22 [15:22:24]line Смена: 510 ФФД: 1.0 [15:22:24]line ЗНМ: 0300000089 [15:22:24]line РНМ: 0000000000091691 [15:22:24]line Версия ККМ: 001 [15:22:24]line Платежная система: O! деньги [15:22:24]line ФМ: 0000000000871795 [15:22:24]line ФД: 74684 [15:22:24]line ФПД: 234364975164313 [15:22:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152234&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74684&fm=234364975164313&tin=02508201610067®Number=0000000000091691&sum=250012 [15:22:25]OFD Sender: Processing packet 74684 [packets to send 13, broken 12] [15:22:25]ProducePacketName [15:22:25]name=ofd_packets/00074684 [15:22:25]OFD Sender: To server: pG, [15:22:25]CommunicateWithHost lk.salyk.kg:30040 [15:22:25]ConnectInit lk.salyk.kg [15:22:25]written 0, free lines is 4095 [15:22:25]Connected sock=8 [15:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E8 36 04 01 29 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 9C 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 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3A 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 23 01 00 35 04 06 00 D5 27 59 17 AB 99 A0 B4 78 9C A6 3B B2 79 [15:22:25]Write to MH i2c: 01 00 00 A8 7F 27 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: 01 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: 01 07 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: 01 07 00 A8 7F 00 00 00 00 00 C8 0C 02 [15:22:25]RasterBufferAndPrint [15:22:25]line [15:22:25]line [15:22:25]line [15:22:25]line [15:22:25]line [15:22:25]written 0, free lines is 3281 [15:22:25]MH_Cut [15:22:25]Write to MH i2c: D1 01 00 AF 7F 01 00 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: D1 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: D1 01 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: D1 01 00 AF 7F 00 FF [15:22:25]Write to MH i2c: 01 00 00 B0 7F 2F [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 32 A7 47 00 42 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 31 37 39 35 10 04 04 00 BC 23 01 00 F4 03 04 00 BC 0D 1A 67 B6 04 01 00 00 F6 15 EB D4 82 BA 37 D8 [15:22:25]CommunicateWithHost err = 0 [15:22:25]CheckOFDResponse [15:22:25]1017 (14) - 77093643461234 [15:22:25]1041 (16) - 0000000000871795 [15:22:25]1040 (4) - 74684 [15:22:25]1012 (4) - 24.10.2024 09:05 [15:22:25]1206 (1) - 0 [15:22:25]OFD Sender: Remove packet 74684 [15:22:25]ProducePacketName [15:22:25]name=ofd_packets/00074684 [15:22:25]NVStorageDeleteData [15:22:26]OFD Sender: No OFD packet to send [15:22:26]*** Cut start [15:22:26]*** Partial cut [15:22:26]*** CUTSNS_PIN = 1 [15:22:26]*** CUTSNS_PIN = 0 [15:22:26]*** Brake cut motor [15:22:27]Read from MH i2c: 01 [15:22:27]MH_I2C_Read... [15:22:27]*** Stop cut motor [15:22:27]*** Cut end [15:22:27]Read from MH i2c: 01 07 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: 01 07 00 B0 7F 00 00 00 00 00 FF 0F 44 [15:22:27]process_action close_receipt done [15:22:27]requested_data is exist [15:22:27]produce_requested_data [15:22:27]requested_item fm.sn is exist - process it [15:22:27]wFMCommunicate request_size=4 [15:22:27]MH_SAM_APDU [15:22:27]CAPDU: 80 11 00 00 [15:22:27]Write to MH i2c: E2 08 00 B1 7F 80 11 00 00 00 00 00 00 AA [15:22:27]Write i2c OK [15:22:27]MH_I2C_Read... [15:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:27]Read from MH i2c: E2 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 17 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 17 00 B1 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [15:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:22:27]wFMCommunicate OK [15:22:27]requested_item fd.num is exist - process it [15:22:27]SAM_PROTO_GetFieldsCounters [15:22:27]wFMCommunicate request_size=4 [15:22:27]MH_SAM_APDU [15:22:27]CAPDU: 80 13 00 00 [15:22:27]Write to MH i2c: E2 08 00 B2 7F 80 13 00 00 00 00 00 00 AD [15:22:27]Write i2c OK [15:22:27]MH_I2C_Read... [15:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:27]Read from MH i2c: E2 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 62 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 62 00 B2 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BC 23 01 00 0E 04 04 00 FE 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 33 [15:22: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BC 23 01 00 0E 04 04 00 FE 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 [15:22:27]wFMCommunicate OK [15:22:27]SAM_PROTO_GetFieldsCounters done [15:22:27]requested_item shift.num is exist - process it [15:22:27]requested_item shift.opened is exist - process it [15:22:27]req_shift_opened [15:22:27]FM_GetShiftState [15:22:27]SAM_PROTO_GetShiftState [15:22:27]wFMCommunicate request_size=4 [15:22:27]MH_SAM_APDU [15:22:27]CAPDU: 80 13 01 00 [15:22:27]Write to MH i2c: E2 08 00 B3 7F 80 13 01 00 00 00 00 00 AF [15:22:27]Write i2c OK [15:22:27]MH_I2C_Read... [15:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:27]Read from MH i2c: E2 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 0E 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 0E 00 B3 7F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D9 [15:22:27]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:22:27]wFMCommunicate OK [15:22:27]SAM_PROTO_GetShiftState done [15:22:27]FM_GetShiftState done [15:22:27]req_shift_opened done [15:22:27]requested_item shift.open_date is exist - process it [15:22:27]req_shift_open_date [15:22:27]req_shift_open_date done [15:22:27]produce_requested_data done [15:22:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74684,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:22:27]process_action_free close_receipt [15:22:27]json_value_free [15:22:27]json_value_free done [15:22:27]process_json_proto returns [15:22:27]Send response to host [15:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74684,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:22:27]free response buf [15:22:27]execute_script done [15:22:27]execute_script returns [15:22:27]free content buf [15:22:27]Sock 9.Close socket [15:22:27]Sock 9.Thread stoped [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:11]accept exits with 10 [15:23:11]New connection [15:23:11]New thread 3066662244 created [15:23:11]Thread 3066805604 joined [15:23:11]Waiting for new connection... [15:23:11] Sock 10.Parse request [15:23:11]Sock 10.Check first char [15:23:11]Sock 10.First char is OK [15:23:11]request: POST /json_proto HTTP/1.0 [15:23:11]Method: POST [15:23:11]URL: /json_proto [15:23:11]Method is POST - this is cgi request [15:23:11]url: /json_proto [15:23:11]query_string will be loaded in cgi processing [15:23:11]execute_cgi json_proto POST (null) [15:23:11]execute_cgi path=json_proto method=POST [15:23:11]POST find Content-Length [15:23:11]Host: 172.17.39.131:8080 [15:23:11]Content-Length: 682 [15:23:11]Content-Type: application/json [15:23:11] [15:23:11]POST finish read [15:23:11]Found Content-Length = 682 [15:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:11]execute_script... [15: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)190650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:11]POST & json_proto [15:23:11]process_json_proto [15:23:11]json parsed OK: [15:23:11]protocol is kg_v1.0 [15:23:11]action value=close_receipt [15:23:11]process_action close_receipt [15:23:11]cmd_close_receipt [15:23:11]MH_GetDate [15:23:11]Write to MH i2c: F0 00 00 B4 7F 22 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: F0 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: F0 09 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: F0 09 00 B4 7F 00 6B 66 1A 67 86 57 24 65 E3 [15:23:11]GetLastDocTimeStamp 1729783354 [15:23:11]current date 1729783403 [15:23:11]FM_GetShiftState [15:23:11]SAM_PROTO_GetShiftState [15:23:11]wFMCommunicate request_size=4 [15:23:11]MH_SAM_APDU [15:23:11]CAPDU: 80 13 01 00 [15:23:11]Write to MH i2c: E2 08 00 B5 7F 80 13 01 00 00 00 00 00 B1 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:11]Read from MH i2c: E2 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 0E 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 0E 00 B5 7F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 DB [15:23:11]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:23:11]wFMCommunicate OK [15:23:11]SAM_PROTO_GetShiftState done [15:23:11]FM_GetShiftState done [15:23:11]opened in 1729729801 [15:23:11]opened+sec_in_day 1729816201 [15:23:11]quantity*price = 190062 [15:23:11]sum+1 = 190064 [15:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.84 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 129 24.10.2024 15:23 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74685 ФПД: 39320968091948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152323&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74685&fm=39320968091948&tin=02508201610067®Number=0000000000091691&sum=190000 [15:23:12]StoreToDocumentArchive [15:23:12]shift 510 fd 74685 [15:23:12]save to /storage/0510/doc_00074685 [15:23:12]save last doc name /storage/0510/doc_00074685 to /storage/kkm_last_doc_name [15:23:12]save OK [15:23:12]Clear old archive folders... [15:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:12]tlvbuf is 008252B0 [15:23:12]SAM_PROTO_ClearQueue [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 09 00 00 [15:23:12]Write to MH i2c: E2 08 00 C2 7F 80 09 00 00 00 00 00 00 B3 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 C2 7F 00 90 00 B5 [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]SAM_PROTO_ClearQueue done [15:23:12]KKMCreateOFDPacket [15:23:12]OFDProtocolAddRootSTLVToBuf [15:23:12]FM_MakeSignedData [15:23:12]FM_MakeSignedData [15:23:12]SAM_PROTO_SignData [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 01 02 [15:23:12]Write to MH i2c: E2 08 00 C3 7F 80 0D 01 02 00 00 00 00 BB [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 C3 7F 00 90 00 B6 [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=255 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 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 6B 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 23 01 00 35 04 06 00 23 [15:23:12]Write to MH i2c: E2 02 01 C4 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 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 6B 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 23 01 00 35 04 06 00 23 00 00 8A [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 C4 7F 00 90 00 B7 [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=10 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 02 02 05 C3 20 55 D9 2C [15:23:12]Write to MH i2c: E2 0D 00 C5 7F 80 0D 02 02 05 00 C3 20 55 D9 2C 00 00 05 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 C5 7F 00 90 00 B8 [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 03 02 [15:23:12]Write to MH i2c: E2 08 00 C6 7F 80 0D 03 02 00 00 00 00 C0 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 0B 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 0B 00 C6 7F 00 8A BF EB 1D 70 C2 7A 9D 90 00 5B [15:23:12]RAPDU: 8A BF EB 1D 70 C2 7A 9D 90 00 [15:23:12]wFMCommunicate OK [15:23:12]SAM_PROTO_SignData done [15:23:12]FM_MakeSignedData done [15:23:12]CreateOFDProtocolMessage [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 11 00 00 [15:23:12]Write to MH i2c: E2 08 00 C7 7F 80 11 00 00 00 00 00 00 C0 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 17 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 17 00 C7 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 18 [15:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:23:13]wFMCommunicate OK [15:23:13]CreateOFDProtocolMessage done [15:23:13]OFDSenderStorePacket 74685 [15:23:13]StoreOFDPacket docnum=74685 [15:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 8E BB 07 01 3E D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 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 6B 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 23 01 00 35 04 06 00 23 C3 20 55 D9 2C 8A BF EB 1D 70 C2 7A 9D [15:23:13]CheckFolder [15:23:13]dirname=/storage/ofd_packets [15:23:13]CheckFolder done [15:23:13]ProducePacketName [15:23:13]name=ofd_packets/00074685 [15:23:13]NVStorageSaveData ofd_packets/00074685 [15:23:13]File name is /storage/ofd_packets/00074685 [15:23:13]Write 301 bytes [15:23:13]NVStorageSaveData done [15:23:13]OFDSenderStorePacket done [15:23:13]KKMCreateOFDPacket done [15:23:13]NVStorageSaveData kkm_last_timestamp [15:23:13]File name is /storage/kkm_last_timestamp [15:23:13]Write 4 bytes [15:23:13]NVStorageSaveData done [15:23:13]ExternCall_PrintAddStr [15:23:13]wPrintStart [15:23:13]Write to MH i2c: 01 00 00 C8 7F 47 [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 07 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 07 00 C8 7F 00 00 00 00 00 FF 0F 5C [15:23:13]RasterBufferAndPrint [15:23:13]line Счет N : (1)190650 [15:23:13]line ИНН: 02508201610067 [15:23:13]line Контрольно-Кассовый Чек [15:23:13]line ПРОДАЖА [15:23:13]line ТРК (МРК, ГНК) : 21 [15:23:13]line Товар: 2710124130 [15:23:13]line Аи-92-К-5 [15:23:13]line 28.410 * 66.90 [15:23:13]line = 1900.63 [15:23:13]line НДС 12% НСП 1% [15:23:13]line > о реализуемом товаре [15:23:13]line ОКРУГЛЕНИЕ: -0.63 [15:23:13]line ИТОГО: 1900.00 [15:23:13]line Внесено: 1900.00 [15:23:13]line СДАЧА: 0.00 [15:23:13]line НСП 1% : 16.82 [15:23:13]line НДС 12% : 201.84 [15:23:13]line Наличными: 1900.00 [15:23:13]line Безнал.: 0.00 [15:23:13]line Место: АЗС № 142 "Партнер Нефть" [15:23:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:23:13]line СНО: Общий режим [15:23:13]line Чек 129 24.10.2024 15:23 [15:23:13]line Смена: 510 ФФД: 1.0 [15:23:13]line ЗНМ: 0300000089 [15:23:13]line РНМ: 0000000000091691 [15:23:13]line Версия ККМ: 001 [15:23:13]line ФМ: 0000000000871795 [15:23:13]line ФД: 74685 [15:23:13]line ФПД: 39320968091948 [15:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152323&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74685&fm=39320968091948&tin=02508201610067®Number=0000000000091691&sum=190000 [15:23:13]OFD Sender: Processing packet 74685 [packets to send 13, broken 12] [15:23:13]ProducePacketName [15:23:13]name=ofd_packets/00074685 [15:23:13]OFD Sender: To server: pG, [15:23:13]CommunicateWithHost lk.salyk.kg:30040 [15:23:13]ConnectInit lk.salyk.kg [15:23:13]written 0, free lines is 4095 [15:23:13]Connected sock=9 [15: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 31 37 39 35 0F 01 00 00 8E BB 07 01 3E D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 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 6B 66 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 23 01 00 35 04 06 00 23 C3 20 55 D9 2C 8A BF EB 1D 70 C2 7A 9D [15:23:13]Write to MH i2c: 01 00 00 F3 7F 72 [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 07 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 07 00 F3 7F 00 00 00 00 00 A4 0C 29 [15:23:13]RasterBufferAndPrint [15:23:13]line [15:23:13]line [15:23:13]line [15:23:13]line [15:23:13]line [15:23:13]written 0, free lines is 3242 [15:23:13]MH_Cut [15:23:13]Write to MH i2c: D1 01 00 FA 7F 01 4B [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: D1 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: D1 01 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: D1 01 00 FA 7F 00 4A [15:23:13]Write to MH i2c: 01 00 00 FB 7F 7A [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E6 6B 47 00 EA 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 31 37 39 35 10 04 04 00 BD 23 01 00 F4 03 04 00 ED 0D 1A 67 B6 04 01 00 00 FF BC F5 62 48 BF 78 72 [15:23:13]CommunicateWithHost err = 0 [15:23:13]CheckOFDResponse [15:23:13]1017 (14) - 77093643461234 [15:23:13]1041 (16) - 0000000000871795 [15:23:13]1040 (4) - 74685 [15:23:13]1012 (4) - 24.10.2024 09:05 [15:23:13]1206 (1) - 0 [15:23:13]OFD Sender: Remove packet 74685 [15:23:13]ProducePacketName [15:23:13]name=ofd_packets/00074685 [15:23:13]NVStorageDeleteData [15:23:14]OFD Sender: No OFD packet to send [15:23:14]*** Cut start [15:23:14]*** Partial cut [15:23:14]*** CUTSNS_PIN = 1 [15:23:14]*** CUTSNS_PIN = 0 [15:23:14]*** Brake cut motor [15:23:15]Read from MH i2c: 01 [15:23:15]MH_I2C_Read... [15:23:15]*** Stop cut motor [15:23:15]*** Cut end [15:23:15]Read from MH i2c: 01 07 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: 01 07 00 FB 7F 00 00 00 00 00 FF 0F 8F [15:23:15]process_action close_receipt done [15:23:15]requested_data is exist [15:23:15]produce_requested_data [15:23:15]requested_item fm.sn is exist - process it [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 11 00 00 [15:23:15]Write to MH i2c: E2 08 00 FC 7F 80 11 00 00 00 00 00 00 F5 [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 17 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 17 00 FC 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4D [15:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:23:15]wFMCommunicate OK [15:23:15]requested_item fd.num is exist - process it [15:23:15]SAM_PROTO_GetFieldsCounters [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 13 00 00 [15:23:15]Write to MH i2c: E2 08 00 FD 7F 80 13 00 00 00 00 00 00 F8 [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 62 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 62 00 FD 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BD 23 01 00 0E 04 04 00 FE 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 82 [15: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BD 23 01 00 0E 04 04 00 FE 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 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_GetFieldsCounters done [15:23:15]requested_item shift.num is exist - process it [15:23:15]requested_item shift.opened is exist - process it [15:23:15]req_shift_opened [15:23:15]FM_GetShiftState [15:23:15]SAM_PROTO_GetShiftState [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 13 01 00 [15:23:15]Write to MH i2c: E2 08 00 FE 7F 80 13 01 00 00 00 00 00 FA [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 FE 7F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 24 [15:23:15]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_GetShiftState done [15:23:15]FM_GetShiftState done [15:23:15]req_shift_opened done [15:23:15]requested_item shift.open_date is exist - process it [15:23:15]req_shift_open_date [15:23:15]req_shift_open_date done [15:23:15]produce_requested_data done [15:23:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74685,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:23:15]process_action_free close_receipt [15:23:15]json_value_free [15:23:15]json_value_free done [15:23:15]process_json_proto returns [15:23:15]Send response to host [15:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74685,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:23:15]free response buf [15:23:15]execute_script done [15:23:15]execute_script returns [15:23:15]free content buf [15:23:15]Sock 10.Close socket [15:23:15]Sock 10.Thread stoped [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:45]accept exits with 8 [15:36:45]New connection [15:36:45]New thread 3066805604 created [15:36:45]Thread 3066662244 joined [15:36:45]Waiting for new connection... [15:36:45] Sock 8.Parse request [15:36:45]Sock 8.Check first char [15:36:45]Sock 8.First char is OK [15:36:45]request: POST /json_proto HTTP/1.0 [15:36:45]Method: POST [15:36:45]URL: /json_proto [15:36:45]Method is POST - this is cgi request [15:36:45]url: /json_proto [15:36:45]query_string will be loaded in cgi processing [15:36:45]execute_cgi json_proto POST (null) [15:36:45]execute_cgi path=json_proto method=POST [15:36:45]POST find Content-Length [15:36:45]Host: 172.17.39.131:8080 [15:36:45]Content-Length: 800 [15:36:45]Content-Type: application/json [15:36:45] [15:36:45]POST finish read [15:36:45]Found Content-Length = 800 [15:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:45]execute_script... [15:36: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)190651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:45]POST & json_proto [15:36:45]process_json_proto [15:36:45]json parsed OK: [15:36:45]protocol is kg_v1.0 [15:36:45]action value=close_receipt [15:36:45]process_action close_receipt [15:36:45]cmd_close_receipt [15:36:45]MH_GetDate [15:36:45]Write to MH i2c: F0 00 00 FF 7F 6D [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: F0 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: F0 09 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: F0 09 00 FF 7F 00 99 69 1A 67 86 57 24 65 5F [15:36:45]GetLastDocTimeStamp 1729783403 [15:36:45]current date 1729784217 [15:36:45]FM_GetShiftState [15:36:45]SAM_PROTO_GetShiftState [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 13 01 00 [15:36:45]Write to MH i2c: E2 08 00 00 80 80 13 01 00 00 00 00 00 FD [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 00 80 00 09 00 01 09 95 19 67 00 00 00 00 90 00 27 [15:36:45]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_GetShiftState done [15:36:45]FM_GetShiftState done [15:36:45]opened in 1729729801 [15:36:45]opened+sec_in_day 1729816201 [15:36:45]quantity*price = 200025 [15:36:45]sum+1 = 200026 [15:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 130 24.10.2024 15:36 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 74686 ФПД: 58632952249301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153657&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74686&fm=58632952249301&tin=02508201610067®Number=0000000000091691&sum=200025 [15:36:47]StoreToDocumentArchive [15:36:47]shift 510 fd 74686 [15:36:47]save to /storage/0510/doc_00074686 [15:36:47]save last doc name /storage/0510/doc_00074686 to /storage/kkm_last_doc_name [15:36:47]save OK [15:36:47]Clear old archive folders... [15:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:36:47]tlvbuf is 008943F0 [15:36:47]SAM_PROTO_ClearQueue [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 09 00 00 [15:36:47]Write to MH i2c: E2 08 00 0D 80 80 09 00 00 00 00 00 00 FF [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 0D 80 00 90 00 01 [15:36:47]RAPDU: 90 00 [15:36:47]wFMCommunicate OK [15:36:47]SAM_PROTO_ClearQueue done [15:36:47]KKMCreateOFDPacket [15:36:47]OFDProtocolAddRootSTLVToBuf [15:36:47]FM_MakeSignedData [15:36:47]FM_MakeSignedData [15:36:47]SAM_PROTO_SignData [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 0D 01 02 [15:36:47]Write to MH i2c: E2 08 00 0E 80 80 0D 01 02 00 00 00 00 07 [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 0E 80 00 90 00 02 [15:36:47]RAPDU: 90 00 [15:36:47]wFMCommunicate OK [15:36:47]wFMCommunicate request_size=255 [15:36:47]MH_SAM_APDU [15:36: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 99 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 23 01 00 35 04 06 00 35 53 8C 4A [15:36:47]Write to MH i2c: E2 02 01 0F 80 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 99 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 23 01 00 35 04 06 00 35 53 8C 4A 00 00 F5 [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 0F 80 00 90 00 03 [15:36:47]RAPDU: 90 00 [15:36:47]wFMCommunicate OK [15:36:47]wFMCommunicate request_size=7 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 0D 02 02 02 7B D5 [15:36:47]Write to MH i2c: E2 0A 00 10 80 80 0D 02 02 02 00 7B D5 00 00 5E [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 10 80 00 90 00 04 [15:36:47]RAPDU: 90 00 [15:36:47]wFMCommunicate OK [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 0D 03 02 [15:36:47]Write to MH i2c: E2 08 00 11 80 80 0D 03 02 00 00 00 00 0C [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 0B 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 0B 00 11 80 00 76 99 FD EA 3E 80 7C BE 90 00 FB [15:36:47]RAPDU: 76 99 FD EA 3E 80 7C BE 90 00 [15:36:47]wFMCommunicate OK [15:36:47]SAM_PROTO_SignData done [15:36:47]FM_MakeSignedData done [15:36:47]CreateOFDProtocolMessage [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 11 00 00 [15:36:47]Write to MH i2c: E2 08 00 12 80 80 11 00 00 00 00 00 00 0C [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 17 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 17 00 12 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 64 [15:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:36:47]wFMCommunicate OK [15:36:47]CreateOFDProtocolMessage done [15:36:47]OFDSenderStorePacket 74686 [15:36:47]StoreOFDPacket docnum=74686 [15:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 18 00 04 01 B5 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 99 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 23 01 00 35 04 06 00 35 53 8C 4A 7B D5 76 99 FD EA 3E 80 7C BE [15:36:47]CheckFolder [15:36:47]dirname=/storage/ofd_packets [15:36:47]CheckFolder done [15:36:47]ProducePacketName [15:36:47]name=ofd_packets/00074686 [15:36:47]NVStorageSaveData ofd_packets/00074686 [15:36:47]File name is /storage/ofd_packets/00074686 [15:36:47]Write 298 bytes [15:36:47]NVStorageSaveData done [15:36:47]OFDSenderStorePacket done [15:36:47]KKMCreateOFDPacket done [15:36:47]NVStorageSaveData kkm_last_timestamp [15:36:47]File name is /storage/kkm_last_timestamp [15:36:47]Write 4 bytes [15:36:47]NVStorageSaveData done [15:36:47]ExternCall_PrintAddStr [15:36:47]wPrintStart [15:36:47]Write to MH i2c: 01 00 00 13 80 93 [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: 01 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: 01 07 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: 01 07 00 13 80 00 00 00 00 00 FF 0F A8 [15:36:47]RasterBufferAndPrint [15:36:47]line Счет N : (1)190651 [15:36:47]line ИНН: 02508201610067 [15:36:47]line Контрольно-Кассовый Чек [15:36:47]line ПРОДАЖА [15:36:47]line ТРК (МРК, ГНК) : 41 [15:36:47]line Товар: 2710194210 [15:36:47]line ДТ-К-4 [15:36:47]line 26.250 * 76.20 [15:36:47]line = 2000.25 [15:36:47]line НДС 12% НСП 1% [15:36:47]line > о реализуемом товаре [15:36:47]line ИТОГО: 2000.25 [15:36:47]line НСП 1% : 17.70 [15:36:47]line НДС 12% : 212.42 [15:36:47]line Наличными: 0.00 [15:36:47]line Безнал.: 2000.25 [15:36:47]line Место: АЗС № 142 "Партнер Нефть" [15:36:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:36:47]line СНО: Общий режим [15:36:47]line Чек 130 24.10.2024 15:36 [15:36:47]line Смена: 510 ФФД: 1.0 [15:36:47]line ЗНМ: 0300000089 [15:36:47]line РНМ: 0000000000091691 [15:36:47]line Версия ККМ: 001 [15:36:47]line Платежная система: O! деньги [15:36:47]line ФМ: 0000000000871795 [15:36:47]line ФД: 74686 [15:36:47]line ФПД: 58632952249301 [15:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153657&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74686&fm=58632952249301&tin=02508201610067®Number=0000000000091691&sum=200025 [15:36:47]OFD Sender: Processing packet 74686 [packets to send 13, broken 12] [15:36:47]ProducePacketName [15:36:47]name=ofd_packets/00074686 [15:36:47]OFD Sender: To server: pG, [15:36:47]CommunicateWithHost lk.salyk.kg:30040 [15:36:47]ConnectInit lk.salyk.kg [15:36:47]written 0, free lines is 4095 [15:36:48]Connected sock=10 [15:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 18 00 04 01 B5 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 99 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 23 01 00 35 04 06 00 35 53 8C 4A 7B D5 76 99 FD EA 3E 80 7C BE [15:36:48]Write to MH i2c: 01 00 00 3D 80 BD [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 07 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 07 00 3D 80 00 00 00 00 00 B7 0C 87 [15:36:48]RasterBufferAndPrint [15:36:48]line [15:36:48]line [15:36:48]line [15:36:48]line [15:36:48]line [15:36:48]written 0, free lines is 3260 [15:36:48]MH_Cut [15:36:48]Write to MH i2c: D1 01 00 44 80 01 96 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: D1 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: D1 01 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: D1 01 00 44 80 00 95 [15:36:48]Write to MH i2c: 01 00 00 45 80 C5 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9C DE 47 00 29 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 31 37 39 35 10 04 04 00 BE 23 01 00 F4 03 04 00 1B 11 1A 67 B6 04 01 00 00 E5 F0 7C 9A D0 EC 27 45 [15:36:48]CommunicateWithHost err = 0 [15:36:48]CheckOFDResponse [15:36:48]1017 (14) - 77093643461234 [15:36:48]1041 (16) - 0000000000871795 [15:36:48]1040 (4) - 74686 [15:36:48]1012 (4) - 24.10.2024 09:19 [15:36:48]1206 (1) - 0 [15:36:48]OFD Sender: Remove packet 74686 [15:36:48]ProducePacketName [15:36:48]name=ofd_packets/00074686 [15:36:48]NVStorageDeleteData [15:36:48]OFD Sender: No OFD packet to send [15:36:49]*** Cut start [15:36:49]*** Partial cut [15:36:49]*** CUTSNS_PIN = 1 [15:36:49]*** CUTSNS_PIN = 0 [15:36:49]*** Brake cut motor [15:36:49]Read from MH i2c: 01 [15:36:49]MH_I2C_Read... [15:36:49]*** Stop cut motor [15:36:49]*** Cut end [15:36:49]Read from MH i2c: 01 07 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: 01 07 00 45 80 00 00 00 00 00 FF 0F DA [15:36:49]process_action close_receipt done [15:36:49]requested_data is exist [15:36:49]produce_requested_data [15:36:49]requested_item fm.sn is exist - process it [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 11 00 00 [15:36:49]Write to MH i2c: E2 08 00 46 80 80 11 00 00 00 00 00 00 40 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 17 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 17 00 46 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 98 [15:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:36:49]wFMCommunicate OK [15:36:49]requested_item fd.num is exist - process it [15:36:49]SAM_PROTO_GetFieldsCounters [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 13 00 00 [15:36:49]Write to MH i2c: E2 08 00 47 80 80 13 00 00 00 00 00 00 43 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 62 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 62 00 47 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BE 23 01 00 0E 04 04 00 FE 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 D1 [15:36:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BE 23 01 00 0E 04 04 00 FE 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 [15:36:50]wFMCommunicate OK [15:36:50]SAM_PROTO_GetFieldsCounters done [15:36:50]requested_item shift.num is exist - process it [15:36:50]requested_item shift.opened is exist - process it [15:36:50]req_shift_opened [15:36:50]FM_GetShiftState [15:36:50]SAM_PROTO_GetShiftState [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 13 01 00 [15:36:50]Write to MH i2c: E2 08 00 48 80 80 13 01 00 00 00 00 00 45 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 0E 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 0E 00 48 80 00 09 00 01 09 95 19 67 00 00 00 00 90 00 6F [15:36:50]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:36:50]wFMCommunicate OK [15:36:50]SAM_PROTO_GetShiftState done [15:36:50]FM_GetShiftState done [15:36:50]req_shift_opened done [15:36:50]requested_item shift.open_date is exist - process it [15:36:50]req_shift_open_date [15:36:50]req_shift_open_date done [15:36:50]produce_requested_data done [15:36:50]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74686,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:36:50]process_action_free close_receipt [15:36:50]json_value_free [15:36:50]json_value_free done [15:36:50]process_json_proto returns [15:36:50]Send response to host [15:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74686,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:36:50]free response buf [15:36:50]execute_script done [15:36:50]execute_script returns [15:36:50]free content buf [15:36:50]Sock 8.Close socket [15:36:50]Sock 8.Thread stoped [15:36:53]OFD Sender: No OFD packet to send [15:36:57]int [15:36:57]Write to MH i2c: 01 00 00 49 80 C9 [15:36:57]*** FLAG_PRN_KEY set [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 07 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 07 00 49 80 00 08 00 00 00 FF 0F E6 [15:36:57]state=0 [15:36:57]Key pressed [15:36:57]Feed [15:36:57]Write to MH i2c: D8 00 00 4A 80 A1 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: D8 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: D8 01 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: D8 01 00 4A 80 00 A2 [15:36:57]int [15:36:57]Write to MH i2c: 01 00 00 4B 80 CB [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 07 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 07 00 4B 80 00 48 00 00 00 3C 00 56 [15:36:57]state=2 [15:36:57]Key pressed [15:36:57]int [15:36:57]Write to MH i2c: 01 00 00 4C 80 CC [15:36:58]*** FLAG_PRN_KEY reset [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 07 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 07 00 4C 80 00 00 00 00 00 FE 0F E0 [15:36:58]state=2 [15:36:58]Stop feed [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:45]accept exits with 9 [15:37:45]New connection [15:37:45]New thread 3066662244 created [15:37:45]Thread 3066805604 joined [15:37:45]Waiting for new connection... [15:37:45] Sock 9.Parse request [15:37:45]Sock 9.Check first char [15:37:45]Sock 9.First char is OK [15:37:45]request: POST /json_proto HTTP/1.0 [15:37:45]Method: POST [15:37:45]URL: /json_proto [15:37:45]Method is POST - this is cgi request [15:37:45]url: /json_proto [15:37:45]query_string will be loaded in cgi processing [15:37:45]execute_cgi json_proto POST (null) [15:37:45]execute_cgi path=json_proto method=POST [15:37:45]POST find Content-Length [15:37:45]Host: 172.17.39.131:8080 [15:37:45]Content-Length: 682 [15:37:45]Content-Type: application/json [15:37:45] [15:37:45]POST finish read [15:37:45]Found Content-Length = 682 [15:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 34.380, "sum" : 2300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:45]execute_script... [15:37: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)190652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 34.380, "sum" : 2300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:45]POST & json_proto [15:37:45]process_json_proto [15:37:45]json parsed OK: [15:37:45]protocol is kg_v1.0 [15:37:45]action value=close_receipt [15:37:45]process_action close_receipt [15:37:45]cmd_close_receipt [15:37:45]MH_GetDate [15:37:45]Write to MH i2c: F0 00 00 4D 80 BC [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 09 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 09 00 4D 80 00 D5 69 1A 67 86 57 24 65 EA [15:37:45]GetLastDocTimeStamp 1729784217 [15:37:45]current date 1729784277 [15:37:45]FM_GetShiftState [15:37:45]SAM_PROTO_GetShiftState [15:37:45]wFMCommunicate request_size=4 [15:37:45]MH_SAM_APDU [15:37:45]CAPDU: 80 13 01 00 [15:37:45]Write to MH i2c: E2 08 00 4E 80 80 13 01 00 00 00 00 00 4B [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:45]Read from MH i2c: E2 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 4E 80 00 09 00 01 09 95 19 67 00 00 00 00 90 00 75 [15:37:45]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:37:45]wFMCommunicate OK [15:37:45]SAM_PROTO_GetShiftState done [15:37:45]FM_GetShiftState done [15:37:45]opened in 1729729801 [15:37:45]opened+sec_in_day 1729816201 [15:37:45]quantity*price = 230002 [15:37:45]sum+1 = 230003 [15:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.35 НДС 12% : 244.25 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 131 24.10.2024 15:37 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74687 ФПД: 36753623576569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153757&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74687&fm=36753623576569&tin=02508201610067®Number=0000000000091691&sum=230000 [15:37:47]StoreToDocumentArchive [15:37:47]shift 510 fd 74687 [15:37:47]save to /storage/0510/doc_00074687 [15:37:47]save last doc name /storage/0510/doc_00074687 to /storage/kkm_last_doc_name [15:37:47]save OK [15:37:47]Clear old archive folders... [15:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:47]tlvbuf is 007C3D50 [15:37:47]SAM_PROTO_ClearQueue [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 09 00 00 [15:37:47]Write to MH i2c: E2 08 00 5B 80 80 09 00 00 00 00 00 00 4D [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 5B 80 00 90 00 4F [15:37:47]RAPDU: 90 00 [15:37:47]wFMCommunicate OK [15:37:47]SAM_PROTO_ClearQueue done [15:37:47]KKMCreateOFDPacket [15:37:47]OFDProtocolAddRootSTLVToBuf [15:37:47]FM_MakeSignedData [15:37:47]FM_MakeSignedData [15:37:47]SAM_PROTO_SignData [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 0D 01 02 [15:37:47]Write to MH i2c: E2 08 00 5C 80 80 0D 01 02 00 00 00 00 55 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 5C 80 00 90 00 50 [15:37:47]RAPDU: 90 00 [15:37:47]wFMCommunicate OK [15:37:47]wFMCommunicate request_size=255 [15:37:47]MH_SAM_APDU [15:37: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 35 FF 03 08 00 03 4C 86 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 72 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 D5 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 23 01 00 35 04 06 00 21 [15:37:47]Write to MH i2c: E2 02 01 5D 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 86 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 72 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 D5 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 23 01 00 35 04 06 00 21 00 00 5B [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 5D 80 00 90 00 51 [15:37:47]RAPDU: 90 00 [15:37:47]wFMCommunicate OK [15:37:47]wFMCommunicate request_size=10 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 0D 02 02 05 6D 5E AD 6F F9 [15:37:47]Write to MH i2c: E2 0D 00 5E 80 80 0D 02 02 05 00 6D 5E AD 6F F9 00 00 42 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 5E 80 00 90 00 52 [15:37:47]RAPDU: 90 00 [15:37:47]wFMCommunicate OK [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 0D 03 02 [15:37:47]Write to MH i2c: E2 08 00 5F 80 80 0D 03 02 00 00 00 00 5A [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0B 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0B 00 5F 80 00 D7 80 63 C6 67 B1 90 77 90 00 FA [15:37:47]RAPDU: D7 80 63 C6 67 B1 90 77 90 00 [15:37:47]wFMCommunicate OK [15:37:47]SAM_PROTO_SignData done [15:37:47]FM_MakeSignedData done [15:37:47]CreateOFDProtocolMessage [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 11 00 00 [15:37:47]Write to MH i2c: E2 08 00 60 80 80 11 00 00 00 00 00 00 5A [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 17 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 17 00 60 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B2 [15:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:37:47]wFMCommunicate OK [15:37:47]CreateOFDProtocolMessage done [15:37:47]OFDSenderStorePacket 74687 [15:37:47]StoreOFDPacket docnum=74687 [15:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F9 30 07 01 5E 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 86 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 72 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 D5 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 23 01 00 35 04 06 00 21 6D 5E AD 6F F9 D7 80 63 C6 67 B1 90 77 [15:37:47]CheckFolder [15:37:47]dirname=/storage/ofd_packets [15:37:47]CheckFolder done [15:37:47]ProducePacketName [15:37:47]name=ofd_packets/00074687 [15:37:47]NVStorageSaveData ofd_packets/00074687 [15:37:47]File name is /storage/ofd_packets/00074687 [15:37:47]Write 301 bytes [15:37:47]NVStorageSaveData done [15:37:47]OFDSenderStorePacket done [15:37:47]KKMCreateOFDPacket done [15:37:47]NVStorageSaveData kkm_last_timestamp [15:37:47]File name is /storage/kkm_last_timestamp [15:37:47]Write 4 bytes [15:37:47]NVStorageSaveData done [15:37:47]ExternCall_PrintAddStr [15:37:47]wPrintStart [15:37:47]Write to MH i2c: 01 00 00 61 80 E1 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 61 80 00 00 00 00 00 FF 0F F6 [15:37:47]RasterBufferAndPrint [15:37:47]line Счет N : (1)190652 [15:37:47]line ИНН: 02508201610067 [15:37:47]line Контрольно-Кассовый Чек [15:37:47]line ПРОДАЖА [15:37:47]line ТРК (МРК, ГНК) : 21 [15:37:47]line Товар: 2710124130 [15:37:47]line Аи-92-К-5 [15:37:47]line 34.380 * 66.90 [15:37:47]line = 2300.02 [15:37:47]line НДС 12% НСП 1% [15:37:47]line > о реализуемом товаре [15:37:47]line ОКРУГЛЕНИЕ: -0.02 [15:37:47]line ИТОГО: 2300.00 [15:37:47]line Внесено: 2300.00 [15:37:47]line СДАЧА: 0.00 [15:37:47]line НСП 1% : 20.35 [15:37:47]line НДС 12% : 244.25 [15:37:47]line Наличными: 2300.00 [15:37:47]line Безнал.: 0.00 [15:37:47]line Место: АЗС № 142 "Партнер Нефть" [15:37:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:37:47]line СНО: Общий режим [15:37:47]line Чек 131 24.10.2024 15:37 [15:37:47]line Смена: 510 ФФД: 1.0 [15:37:47]line ЗНМ: 0300000089 [15:37:47]line РНМ: 0000000000091691 [15:37:47]line Версия ККМ: 001 [15:37:47]line ФМ: 0000000000871795 [15:37:47]line ФД: 74687 [15:37:47]line ФПД: 36753623576569 [15:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153757&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74687&fm=36753623576569&tin=02508201610067®Number=0000000000091691&sum=230000 [15:37:47]written 0, free lines is 4095 [15:37:47]OFD Sender: Processing packet 74687 [packets to send 13, broken 12] [15:37:47]ProducePacketName [15:37:47]name=ofd_packets/00074687 [15:37:47]OFD Sender: To server: pG, [15:37:47]CommunicateWithHost lk.salyk.kg:30040 [15:37:47]ConnectInit lk.salyk.kg [15:37:48]Connected sock=10 [15:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F9 30 07 01 5E 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 86 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 72 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5F 00 00 00 00 07 04 06 00 70 82 03 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 D5 69 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 23 01 00 35 04 06 00 21 6D 5E AD 6F F9 D7 80 63 C6 67 B1 90 77 [15:37:48]Write to MH i2c: 01 00 00 8C 80 0C [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: 01 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: 01 07 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: 01 07 00 8C 80 00 00 00 00 00 B5 0C D4 [15:37:48]RasterBufferAndPrint [15:37:48]line [15:37:48]line [15:37:48]line [15:37:48]line [15:37:48]line [15:37:48]written 0, free lines is 3260 [15:37:48]MH_Cut [15:37:48]Write to MH i2c: D1 01 00 93 80 01 E5 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: D1 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: D1 01 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: D1 01 00 93 80 00 E4 [15:37:48]Write to MH i2c: 01 00 00 94 80 14 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 89 58 47 00 BC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 23 01 00 F4 03 04 00 57 11 1A 67 B6 04 01 00 00 14 CD F0 0C D0 A1 C7 61 [15:37:48]CommunicateWithHost err = 0 [15:37:48]CheckOFDResponse [15:37:48]1017 (14) - 77093643461234 [15:37:48]1041 (16) - 0000000000871795 [15:37:48]1040 (4) - 74687 [15:37:48]1012 (4) - 24.10.2024 09:20 [15:37:48]1206 (1) - 0 [15:37:48]OFD Sender: Remove packet 74687 [15:37:48]ProducePacketName [15:37:48]name=ofd_packets/00074687 [15:37:48]NVStorageDeleteData [15:37:48]OFD Sender: No OFD packet to send [15:37:49]*** Cut start [15:37:49]*** Partial cut [15:37:49]*** CUTSNS_PIN = 1 [15:37:49]*** CUTSNS_PIN = 0 [15:37:49]*** Brake cut motor [15:37:49]Read from MH i2c: 01 [15:37:49]MH_I2C_Read... [15:37:49]*** Stop cut motor [15:37:49]*** Cut end [15:37:49]Read from MH i2c: 01 07 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 94 80 00 00 00 00 00 FF 0F 29 [15:37:49]process_action close_receipt done [15:37:49]requested_data is exist [15:37:49]produce_requested_data [15:37:49]requested_item fm.sn is exist - process it [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 11 00 00 [15:37:49]Write to MH i2c: E2 08 00 95 80 80 11 00 00 00 00 00 00 8F [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 95 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E7 [15:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:37:49]wFMCommunicate OK [15:37:49]requested_item fd.num is exist - process it [15:37:49]SAM_PROTO_GetFieldsCounters [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 13 00 00 [15:37:49]Write to MH i2c: E2 08 00 96 80 80 13 00 00 00 00 00 00 92 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 62 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 62 00 96 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BF 23 01 00 0E 04 04 00 FE 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 24 [15:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BF 23 01 00 0E 04 04 00 FE 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 [15:37:50]wFMCommunicate OK [15:37:50]SAM_PROTO_GetFieldsCounters done [15:37:50]requested_item shift.num is exist - process it [15:37:50]requested_item shift.opened is exist - process it [15:37:50]req_shift_opened [15:37:50]FM_GetShiftState [15:37:50]SAM_PROTO_GetShiftState [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 13 01 00 [15:37:50]Write to MH i2c: E2 08 00 97 80 80 13 01 00 00 00 00 00 94 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0E 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0E 00 97 80 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BE [15:37:50]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:37:50]wFMCommunicate OK [15:37:50]SAM_PROTO_GetShiftState done [15:37:50]FM_GetShiftState done [15:37:50]req_shift_opened done [15:37:50]requested_item shift.open_date is exist - process it [15:37:50]req_shift_open_date [15:37:50]req_shift_open_date done [15:37:50]produce_requested_data done [15:37:50]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74687,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:37:50]process_action_free close_receipt [15:37:50]json_value_free [15:37:50]json_value_free done [15:37:50]process_json_proto returns [15:37:50]Send response to host [15:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74687,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:37:50]free response buf [15:37:50]execute_script done [15:37:50]execute_script returns [15:37:50]free content buf [15:37:50]Sock 9.Close socket [15:37:50]Sock 9.Thread stoped [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:10]int [15:38:10]Write to MH i2c: 01 00 00 98 80 18 [15:38:10]*** FLAG_PRN_KEY set [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 98 80 00 08 00 00 00 FF 0F 35 [15:38:10]state=0 [15:38:10]Key pressed [15:38:10]Feed [15:38:10]Write to MH i2c: D8 00 00 99 80 F0 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D8 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D8 01 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D8 01 00 99 80 00 F1 [15:38:10]int [15:38:10]Write to MH i2c: 01 00 00 9A 80 1A [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 9A 80 00 48 00 00 00 3C 00 A5 [15:38:10]state=2 [15:38:10]Key pressed [15:38:10]int [15:38:10]Write to MH i2c: 01 00 00 9B 80 1B [15:38:10]*** FLAG_PRN_KEY reset [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 9B 80 00 00 00 00 00 F5 0F 26 [15:38:10]state=2 [15:38:10]Stop feed [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [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:09]accept exits with 8 [15:42:09]New connection [15:42:09]New thread 3066805604 created [15:42:09]Thread 3066662244 joined [15:42:09]Waiting for new connection... [15:42:09] Sock 8.Parse request [15:42:09]Sock 8.Check first char [15:42:09]Sock 8.First char is OK [15:42:09]request: POST /json_proto HTTP/1.0 [15:42:09]Method: POST [15:42:09]URL: /json_proto [15:42:09]Method is POST - this is cgi request [15:42:09]url: /json_proto [15:42:09]query_string will be loaded in cgi processing [15:42:09]execute_cgi json_proto POST (null) [15:42:09]execute_cgi path=json_proto method=POST [15:42:09]POST find Content-Length [15:42:09]Host: 172.17.39.131:8080 [15:42:09]Content-Length: 642 [15:42:09]Content-Type: application/json [15:42:09] [15:42:09]POST finish read [15:42:09]Found Content-Length = 642 [15:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:09]execute_script... [15:42: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)190653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:09]POST & json_proto [15:42:09]process_json_proto [15:42:09]json parsed OK: [15:42:09]protocol is kg_v1.0 [15:42:09]action value=close_receipt [15:42:09]process_action close_receipt [15:42:09]cmd_close_receipt [15:42:09]MH_GetDate [15:42:09]Write to MH i2c: F0 00 00 9C 80 0B [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: F0 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: F0 09 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: F0 09 00 9C 80 00 DD 6A 1A 67 86 57 24 65 42 [15:42:09]GetLastDocTimeStamp 1729784277 [15:42:09]current date 1729784541 [15:42:09]FM_GetShiftState [15:42:09]SAM_PROTO_GetShiftState [15:42:09]wFMCommunicate request_size=4 [15:42:09]MH_SAM_APDU [15:42:09]CAPDU: 80 13 01 00 [15:42:09]Write to MH i2c: E2 08 00 9D 80 80 13 01 00 00 00 00 00 9A [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:09]Read from MH i2c: E2 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 0E 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 0E 00 9D 80 00 09 00 01 09 95 19 67 00 00 00 00 90 00 C4 [15:42:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:42:09]wFMCommunicate OK [15:42:09]SAM_PROTO_GetShiftState done [15:42:09]FM_GetShiftState done [15:42:09]opened in 1729729801 [15:42:09]opened+sec_in_day 1729816201 [15:42:09]quantity*price = 133800 [15:42:09]sum+1 = 133801 [15:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 132 24.10.2024 15:42 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74688 ФПД: 229025394381305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154221&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74688&fm=229025394381305&tin=02508201610067®Number=0000000000091691&sum=133800 [15:42:10]StoreToDocumentArchive [15:42:10]shift 510 fd 74688 [15:42:10]save to /storage/0510/doc_00074688 [15:42:10]save last doc name /storage/0510/doc_00074688 to /storage/kkm_last_doc_name [15:42:10]save OK [15:42:10]Clear old archive folders... [15:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:10]tlvbuf is 00A51AF0 [15:42:10]SAM_PROTO_ClearQueue [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 09 00 00 [15:42:10]Write to MH i2c: E2 08 00 AA 80 80 09 00 00 00 00 00 00 9C [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 03 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 03 00 AA 80 00 90 00 9E [15:42:10]RAPDU: 90 00 [15:42:10]wFMCommunicate OK [15:42:10]SAM_PROTO_ClearQueue done [15:42:10]KKMCreateOFDPacket [15:42:10]OFDProtocolAddRootSTLVToBuf [15:42:10]FM_MakeSignedData [15:42:10]FM_MakeSignedData [15:42:10]SAM_PROTO_SignData [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 0D 01 02 [15:42:10]Write to MH i2c: E2 08 00 AB 80 80 0D 01 02 00 00 00 00 A4 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 03 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 03 00 AB 80 00 90 00 9F [15:42:10]RAPDU: 90 00 [15:42:10]wFMCommunicate OK [15:42:10]wFMCommunicate request_size=255 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 23 01 00 35 04 06 00 D0 [15:42:10]Write to MH i2c: E2 02 01 AC 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 23 01 00 35 04 06 00 D0 00 00 D5 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:11]Read from MH i2c: E2 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 03 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 03 00 AC 80 00 90 00 A0 [15:42:11]RAPDU: 90 00 [15:42:11]wFMCommunicate OK [15:42:11]wFMCommunicate request_size=10 [15:42:11]MH_SAM_APDU [15:42:11]CAPDU: 80 0D 02 02 05 4C 21 46 D1 F9 [15:42:11]Write to MH i2c: E2 0D 00 AD 80 80 0D 02 02 05 00 4C 21 46 D1 F9 00 00 2E [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:11]Read from MH i2c: E2 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 03 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 03 00 AD 80 00 90 00 A1 [15:42:11]RAPDU: 90 00 [15:42:11]wFMCommunicate OK [15:42:11]wFMCommunicate request_size=4 [15:42:11]MH_SAM_APDU [15:42:11]CAPDU: 80 0D 03 02 [15:42:11]Write to MH i2c: E2 08 00 AE 80 80 0D 03 02 00 00 00 00 A9 [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:11]Read from MH i2c: E2 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 0B 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 0B 00 AE 80 00 C3 5B 7C 97 D3 E6 01 FD 90 00 92 [15:42:11]RAPDU: C3 5B 7C 97 D3 E6 01 FD 90 00 [15:42:11]wFMCommunicate OK [15:42:11]SAM_PROTO_SignData done [15:42:11]FM_MakeSignedData done [15:42:11]CreateOFDProtocolMessage [15:42:11]wFMCommunicate request_size=4 [15:42:11]MH_SAM_APDU [15:42:11]CAPDU: 80 11 00 00 [15:42:11]Write to MH i2c: E2 08 00 AF 80 80 11 00 00 00 00 00 00 A9 [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:11]Read from MH i2c: E2 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 17 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: E2 17 00 AF 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 01 [15:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:42:11]wFMCommunicate OK [15:42:11]CreateOFDProtocolMessage done [15:42:11]OFDSenderStorePacket 74688 [15:42:11]StoreOFDPacket docnum=74688 [15:42:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 DF 07 01 9B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 23 01 00 35 04 06 00 D0 4C 21 46 D1 F9 C3 5B 7C 97 D3 E6 01 FD [15:42:11]CheckFolder [15:42:11]dirname=/storage/ofd_packets [15:42:11]CheckFolder done [15:42:11]ProducePacketName [15:42:11]name=ofd_packets/00074688 [15:42:11]NVStorageSaveData ofd_packets/00074688 [15:42:11]File name is /storage/ofd_packets/00074688 [15:42:11]Write 301 bytes [15:42:11]NVStorageSaveData done [15:42:11]OFDSenderStorePacket done [15:42:11]KKMCreateOFDPacket done [15:42:11]NVStorageSaveData kkm_last_timestamp [15:42:11]File name is /storage/kkm_last_timestamp [15:42:11]Write 4 bytes [15:42:11]NVStorageSaveData done [15:42:11]ExternCall_PrintAddStr [15:42:11]wPrintStart [15:42:11]Write to MH i2c: 01 00 00 B0 80 30 [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: 01 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: 01 07 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: 01 07 00 B0 80 00 00 00 00 00 FF 0F 45 [15:42:11]RasterBufferAndPrint [15:42:11]line Счет N : (1)190653 [15:42:11]line ИНН: 02508201610067 [15:42:11]line Контрольно-Кассовый Чек [15:42:11]line ПРОДАЖА [15:42:11]line ТРК (МРК, ГНК) : 21 [15:42:11]line Товар: 2710124130 [15:42:11]line Аи-92-К-5 [15:42:11]line 20.000 * 66.90 [15:42:11]line = 1338.00 [15:42:11]line НДС 12% НСП 1% [15:42:11]line > о реализуемом товаре [15:42:11]line ИТОГО: 1338.00 [15:42:11]line НСП 1% : 11.84 [15:42:11]line НДС 12% : 142.09 [15:42:11]line Наличными: 1338.00 [15:42:11]line Безнал.: 0.00 [15:42:11]line Место: АЗС № 142 "Партнер Нефть" [15:42:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:42:11]line СНО: Общий режим [15:42:11]line Чек 132 24.10.2024 15:42 [15:42:11]line Смена: 510 ФФД: 1.0 [15:42:11]line ЗНМ: 0300000089 [15:42:11]line РНМ: 0000000000091691 [15:42:11]line Версия ККМ: 001 [15:42:11]line ФМ: 0000000000871795 [15:42:11]line ФД: 74688 [15:42:11]line ФПД: 229025394381305 [15:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154221&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74688&fm=229025394381305&tin=02508201610067®Number=0000000000091691&sum=133800 [15:42:11]written 0, free lines is 4095 [15:42:11]OFD Sender: Processing packet 74688 [packets to send 13, broken 12] [15:42:11]ProducePacketName [15:42:11]name=ofd_packets/00074688 [15:42:11]OFD Sender: To server: pG, [15:42:11]CommunicateWithHost lk.salyk.kg:30040 [15:42:11]ConnectInit lk.salyk.kg [15:42:11]Connected sock=10 [15:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 DF 07 01 9B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 23 01 00 35 04 06 00 D0 4C 21 46 D1 F9 C3 5B 7C 97 D3 E6 01 FD [15:42:11]Write to MH i2c: 01 00 00 D8 80 58 [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: 01 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: 01 07 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: 01 07 00 D8 80 00 00 00 00 00 EB 0C 56 [15:42:11]RasterBufferAndPrint [15:42:11]line [15:42:11]line [15:42:11]line [15:42:11]line [15:42:11]line [15:42:11]written 0, free lines is 3313 [15:42:11]MH_Cut [15:42:11]Write to MH i2c: D1 01 00 DF 80 01 31 [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: D1 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: D1 01 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: D1 01 00 DF 80 00 30 [15:42:11]Write to MH i2c: 01 00 00 E0 80 60 [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 42 FF 47 00 8D F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 23 01 00 F4 03 04 00 5F 12 1A 67 B6 04 01 00 00 AF 53 3E 57 25 2F 4A 6F [15:42:11]CommunicateWithHost err = 0 [15:42:11]CheckOFDResponse [15:42:11]1017 (14) - 77093643461234 [15:42:11]1041 (16) - 0000000000871795 [15:42:11]1040 (4) - 74688 [15:42:11]1012 (4) - 24.10.2024 09:24 [15:42:11]1206 (1) - 0 [15:42:11]OFD Sender: Remove packet 74688 [15:42:11]ProducePacketName [15:42:11]name=ofd_packets/00074688 [15:42:11]NVStorageDeleteData [15:42:12]OFD Sender: No OFD packet to send [15:42:12]*** Cut start [15:42:12]*** Partial cut [15:42:12]*** CUTSNS_PIN = 1 [15:42:12]*** CUTSNS_PIN = 0 [15:42:12]*** Brake cut motor [15:42:13]Read from MH i2c: 01 [15:42:13]MH_I2C_Read... [15:42:13]*** Stop cut motor [15:42:13]*** Cut end [15:42:13]Read from MH i2c: 01 07 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: 01 07 00 E0 80 00 00 00 00 00 FF 0F 75 [15:42:13]process_action close_receipt done [15:42:13]requested_data is exist [15:42:13]produce_requested_data [15:42:13]requested_item fm.sn is exist - process it [15:42:13]wFMCommunicate request_size=4 [15:42:13]MH_SAM_APDU [15:42:13]CAPDU: 80 11 00 00 [15:42:13]Write to MH i2c: E2 08 00 E1 80 80 11 00 00 00 00 00 00 DB [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:13]Read from MH i2c: E2 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 17 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 17 00 E1 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 33 [15:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:42:13]wFMCommunicate OK [15:42:13]requested_item fd.num is exist - process it [15:42:13]SAM_PROTO_GetFieldsCounters [15:42:13]wFMCommunicate request_size=4 [15:42:13]MH_SAM_APDU [15:42:13]CAPDU: 80 13 00 00 [15:42:13]Write to MH i2c: E2 08 00 E2 80 80 13 00 00 00 00 00 00 DE [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:13]Read from MH i2c: E2 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 62 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 62 00 E2 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C0 23 01 00 0E 04 04 00 FE 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 74 [15:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C0 23 01 00 0E 04 04 00 FE 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 [15:42:13]wFMCommunicate OK [15:42:13]SAM_PROTO_GetFieldsCounters done [15:42:13]requested_item shift.num is exist - process it [15:42:13]requested_item shift.opened is exist - process it [15:42:13]req_shift_opened [15:42:13]FM_GetShiftState [15:42:13]SAM_PROTO_GetShiftState [15:42:13]wFMCommunicate request_size=4 [15:42:13]MH_SAM_APDU [15:42:13]CAPDU: 80 13 01 00 [15:42:13]Write to MH i2c: E2 08 00 E3 80 80 13 01 00 00 00 00 00 E0 [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:13]Read from MH i2c: E2 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 0E 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 0E 00 E3 80 00 09 00 01 09 95 19 67 00 00 00 00 90 00 0A [15:42:13]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:42:13]wFMCommunicate OK [15:42:13]SAM_PROTO_GetShiftState done [15:42:13]FM_GetShiftState done [15:42:13]req_shift_opened done [15:42:13]requested_item shift.open_date is exist - process it [15:42:13]req_shift_open_date [15:42:13]req_shift_open_date done [15:42:13]produce_requested_data done [15:42:13]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74688,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:42:13]process_action_free close_receipt [15:42:13]json_value_free [15:42:13]json_value_free done [15:42:13]process_json_proto returns [15:42:13]Send response to host [15:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74688,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:42:13]free response buf [15:42:13]execute_script done [15:42:13]execute_script returns [15:42:13]free content buf [15:42:13]Sock 8.Close socket [15:42:13]Sock 8.Thread stoped [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:23]accept exits with 9 [15:48:23]New connection [15:48:23]New thread 3066662244 created [15:48:23]Thread 3066805604 joined [15:48:23]Waiting for new connection... [15:48:23] Sock 9.Parse request [15:48:23]Sock 9.Check first char [15:48:23]Sock 9.First char is OK [15:48:23]request: POST /json_proto HTTP/1.0 [15:48:23]Method: POST [15:48:23]URL: /json_proto [15:48:23]Method is POST - this is cgi request [15:48:23]url: /json_proto [15:48:23]query_string will be loaded in cgi processing [15:48:23]execute_cgi json_proto POST (null) [15:48:23]execute_cgi path=json_proto method=POST [15:48:23]POST find Content-Length [15:48:23]Host: 172.17.39.131:8080 [15:48:23]Content-Length: 673 [15:48:23]Content-Type: application/json [15:48:23] [15:48:23]POST finish read [15:48:23]Found Content-Length = 673 [15:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.010, "sum" : 67.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:23]execute_script... [15:48: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)190654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.010, "sum" : 67.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:23]POST & json_proto [15:48:23]process_json_proto [15:48:23]json parsed OK: [15:48:23]protocol is kg_v1.0 [15:48:23]action value=close_receipt [15:48:23]process_action close_receipt [15:48:23]cmd_close_receipt [15:48:23]MH_GetDate [15:48:23]Write to MH i2c: F0 00 00 E4 80 53 [15:48:23]Write i2c OK [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: F0 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: F0 09 00 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: F0 09 00 E4 80 00 53 6C 1A 67 86 57 24 65 02 [15:48:23]GetLastDocTimeStamp 1729784541 [15:48:23]current date 1729784915 [15:48:23]FM_GetShiftState [15:48:23]SAM_PROTO_GetShiftState [15:48:23]wFMCommunicate request_size=4 [15:48:23]MH_SAM_APDU [15:48:23]CAPDU: 80 13 01 00 [15:48:23]Write to MH i2c: E2 08 00 E5 80 80 13 01 00 00 00 00 00 E2 [15:48:23]Write i2c OK [15:48:23]MH_I2C_Read... [15:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:23]Read from MH i2c: E2 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: E2 0E 00 [15:48:23]MH_I2C_Read... [15:48:23]Read from MH i2c: E2 0E 00 E5 80 00 09 00 01 09 95 19 67 00 00 00 00 90 00 0C [15:48:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:48:23]wFMCommunicate OK [15:48:23]SAM_PROTO_GetShiftState done [15:48:23]FM_GetShiftState done [15:48:23]opened in 1729729801 [15:48:23]opened+sec_in_day 1729816201 [15:48:23]quantity*price = 6756 [15:48:23]sum+1 = 6758 [15:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 67.00 Внесено: 70.00 СДАЧА: 3.00 НСП 1% : 0.60 НДС 12% : 7.18 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 133 24.10.2024 15:48 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74689 ФПД: 239728557598332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154835&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74689&fm=239728557598332&tin=02508201610067®Number=0000000000091691&sum=6700 [15:48:24]StoreToDocumentArchive [15:48:24]shift 510 fd 74689 [15:48:24]save to /storage/0510/doc_00074689 [15:48:24]save last doc name /storage/0510/doc_00074689 to /storage/kkm_last_doc_name [15:48:24]save OK [15:48:24]Clear old archive folders... [15:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:24]tlvbuf is 008010D0 [15:48:24]SAM_PROTO_ClearQueue [15:48:24]wFMCommunicate request_size=4 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 09 00 00 [15:48:24]Write to MH i2c: E2 08 00 F2 80 80 09 00 00 00 00 00 00 E4 [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:24]Read from MH i2c: E2 03 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 03 00 F2 80 00 90 00 E6 [15:48:24]RAPDU: 90 00 [15:48:24]wFMCommunicate OK [15:48:24]SAM_PROTO_ClearQueue done [15:48:24]KKMCreateOFDPacket [15:48:24]OFDProtocolAddRootSTLVToBuf [15:48:24]FM_MakeSignedData [15:48:24]FM_MakeSignedData [15:48:24]SAM_PROTO_SignData [15:48:24]wFMCommunicate request_size=4 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 0D 01 02 [15:48:24]Write to MH i2c: E2 08 00 F3 80 80 0D 01 02 00 00 00 00 EC [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 03 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 03 00 F3 80 00 90 00 E7 [15:48:24]RAPDU: 90 00 [15:48:24]wFMCommunicate OK [15:48:24]wFMCommunicate request_size=255 [15:48:24]MH_SAM_APDU [15:48: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 35 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 6C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 23 01 00 35 04 06 00 DA [15:48:24]Write to MH i2c: E2 02 01 F4 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 6C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 23 01 00 35 04 06 00 DA 00 00 C7 [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 03 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 03 00 F4 80 00 90 00 E8 [15:48:24]RAPDU: 90 00 [15:48:24]wFMCommunicate OK [15:48:24]wFMCommunicate request_size=10 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 0D 02 02 05 08 27 84 A6 7C [15:48:24]Write to MH i2c: E2 0D 00 F5 80 80 0D 02 02 05 00 08 27 84 A6 7C 00 00 CE [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 03 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 03 00 F5 80 00 90 00 E9 [15:48:24]RAPDU: 90 00 [15:48:24]wFMCommunicate OK [15:48:24]wFMCommunicate request_size=4 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 0D 03 02 [15:48:24]Write to MH i2c: E2 08 00 F6 80 80 0D 03 02 00 00 00 00 F1 [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 0B 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 0B 00 F6 80 00 C9 97 5A 88 5D B7 07 EC 90 00 3B [15:48:24]RAPDU: C9 97 5A 88 5D B7 07 EC 90 00 [15:48:24]wFMCommunicate OK [15:48:24]SAM_PROTO_SignData done [15:48:24]FM_MakeSignedData done [15:48:24]CreateOFDProtocolMessage [15:48:24]wFMCommunicate request_size=4 [15:48:24]MH_SAM_APDU [15:48:24]CAPDU: 80 11 00 00 [15:48:24]Write to MH i2c: E2 08 00 F7 80 80 11 00 00 00 00 00 00 F1 [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:24]Read from MH i2c: E2 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 17 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: E2 17 00 F7 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 49 [15:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:48:24]wFMCommunicate OK [15:48:24]CreateOFDProtocolMessage done [15:48:24]OFDSenderStorePacket 74689 [15:48:24]StoreOFDPacket docnum=74689 [15:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EC 25 07 01 13 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 6C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 23 01 00 35 04 06 00 DA 08 27 84 A6 7C C9 97 5A 88 5D B7 07 EC [15:48:24]CheckFolder [15:48:24]dirname=/storage/ofd_packets [15:48:24]CheckFolder done [15:48:24]ProducePacketName [15:48:24]name=ofd_packets/00074689 [15:48:24]NVStorageSaveData ofd_packets/00074689 [15:48:24]File name is /storage/ofd_packets/00074689 [15:48:24]Write 301 bytes [15:48:24]NVStorageSaveData done [15:48:24]OFDSenderStorePacket done [15:48:24]KKMCreateOFDPacket done [15:48:24]NVStorageSaveData kkm_last_timestamp [15:48:24]File name is /storage/kkm_last_timestamp [15:48:24]Write 4 bytes [15:48:24]NVStorageSaveData done [15:48:24]ExternCall_PrintAddStr [15:48:24]wPrintStart [15:48:24]Write to MH i2c: 01 00 00 F8 80 78 [15:48:24]Write i2c OK [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: 01 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: 01 07 00 [15:48:24]MH_I2C_Read... [15:48:24]Read from MH i2c: 01 07 00 F8 80 00 00 00 00 00 FF 0F 8D [15:48:24]RasterBufferAndPrint [15:48:24]line Счет N : (1)190654 [15:48:24]line ИНН: 02508201610067 [15:48:24]line Контрольно-Кассовый Чек [15:48:24]line ПРОДАЖА [15:48:24]line ТРК (МРК, ГНК) : 21 [15:48:24]line Товар: 2710124130 [15:48:24]line Аи-92-К-5 [15:48:24]line 1.010 * 66.90 [15:48:24]line = 67.57 [15:48:24]line НДС 12% НСП 1% [15:48:24]line > о реализуемом товаре [15:48:24]line ОКРУГЛЕНИЕ: -0.57 [15:48:24]line ИТОГО: 67.00 [15:48:24]line Внесено: 70.00 [15:48:24]line СДАЧА: 3.00 [15:48:24]line НСП 1% : 0.60 [15:48:24]line НДС 12% : 7.18 [15:48:24]line Наличными: 67.00 [15:48:24]line Безнал.: 0.00 [15:48:24]line Место: АЗС № 142 "Партнер Нефть" [15:48:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:48:24]line СНО: Общий режим [15:48:24]line Чек 133 24.10.2024 15:48 [15:48:24]line Смена: 510 ФФД: 1.0 [15:48:24]line ЗНМ: 0300000089 [15:48:24]line РНМ: 0000000000091691 [15:48:24]line Версия ККМ: 001 [15:48:24]line ФМ: 0000000000871795 [15:48:24]line ФД: 74689 [15:48:24]line ФПД: 239728557598332 [15:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154835&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74689&fm=239728557598332&tin=02508201610067®Number=0000000000091691&sum=6700 [15:48:25]OFD Sender: Processing packet 74689 [packets to send 13, broken 12] [15:48:25]ProducePacketName [15:48:25]name=ofd_packets/00074689 [15:48:25]OFD Sender: To server: pG, [15:48:25]CommunicateWithHost lk.salyk.kg:30040 [15:48:25]ConnectInit lk.salyk.kg [15:48:25]written 0, free lines is 4095 [15:48:25]Connected sock=10 [15:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EC 25 07 01 13 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 6C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 23 01 00 35 04 06 00 DA 08 27 84 A6 7C C9 97 5A 88 5D B7 07 EC [15:48:25]Write to MH i2c: 01 00 00 23 81 A4 [15:48:25]Write i2c OK [15:48:25]MH_I2C_Read... [15:48:25]Read from MH i2c: 01 [15:48:25]MH_I2C_Read... [15:48:25]Read from MH i2c: 01 07 00 [15:48:25]MH_I2C_Read... [15:48:25]Read from MH i2c: 01 07 00 23 81 00 00 00 00 00 A5 0C 5C [15:48:25]RasterBufferAndPrint [15:48:25]line [15:48:25]line [15:48:25]line [15:48:25]line [15:48:25]line [15:48:25]written 0, free lines is 3242 [15:48:25]MH_Cut [15:48:25]Write to MH i2c: D1 01 00 2A 81 01 7D [15:48:25]Write i2c OK [15:48:25]MH_I2C_Read... [15:48:25]Read from MH i2c: D1 [15:48:25]MH_I2C_Read... [15:48:25]Read from MH i2c: D1 01 00 [15:48:25]MH_I2C_Read... [15:48:25]Read from MH i2c: D1 01 00 2A 81 00 7C [15:48:25]Write to MH i2c: 01 00 00 2B 81 AC [15:48:25]Write i2c OK [15:48:25]MH_I2C_Read... [15:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 74 2E 47 00 39 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 23 01 00 F4 03 04 00 D4 13 1A 67 B6 04 01 00 00 C0 6B 77 7A B3 58 1E DD [15:48:25]CommunicateWithHost err = 0 [15:48:25]CheckOFDResponse [15:48:25]1017 (14) - 77093643461234 [15:48:25]1041 (16) - 0000000000871795 [15:48:25]1040 (4) - 74689 [15:48:25]1012 (4) - 24.10.2024 09:31 [15:48:25]1206 (1) - 0 [15:48:25]OFD Sender: Remove packet 74689 [15:48:25]ProducePacketName [15:48:25]name=ofd_packets/00074689 [15:48:25]NVStorageDeleteData [15:48:26]OFD Sender: No OFD packet to send [15:48:26]*** Cut start [15:48:26]*** Partial cut [15:48:26]*** CUTSNS_PIN = 1 [15:48:26]*** CUTSNS_PIN = 0 [15:48:26]*** Brake cut motor [15:48:27]Read from MH i2c: 01 [15:48:27]MH_I2C_Read... [15:48:27]*** Stop cut motor [15:48:27]*** Cut end [15:48:27]Read from MH i2c: 01 07 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: 01 07 00 2B 81 00 00 00 00 00 FF 0F C1 [15:48:27]process_action close_receipt done [15:48:27]requested_data is exist [15:48:27]produce_requested_data [15:48:27]requested_item fm.sn is exist - process it [15:48:27]wFMCommunicate request_size=4 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 11 00 00 [15:48:27]Write to MH i2c: E2 08 00 2C 81 80 11 00 00 00 00 00 00 27 [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 17 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 17 00 2C 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7F [15:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:48:27]wFMCommunicate OK [15:48:27]requested_item fd.num is exist - process it [15:48:27]SAM_PROTO_GetFieldsCounters [15:48:27]wFMCommunicate request_size=4 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 13 00 00 [15:48:27]Write to MH i2c: E2 08 00 2D 81 80 13 00 00 00 00 00 00 2A [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 62 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 62 00 2D 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C1 23 01 00 0E 04 04 00 FE 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 C4 [15:48: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C1 23 01 00 0E 04 04 00 FE 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 [15:48:27]wFMCommunicate OK [15:48:27]SAM_PROTO_GetFieldsCounters done [15:48:27]requested_item shift.num is exist - process it [15:48:27]requested_item shift.opened is exist - process it [15:48:27]req_shift_opened [15:48:27]FM_GetShiftState [15:48:27]SAM_PROTO_GetShiftState [15:48:27]wFMCommunicate request_size=4 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 13 01 00 [15:48:27]Write to MH i2c: E2 08 00 2E 81 80 13 01 00 00 00 00 00 2C [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 0E 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 0E 00 2E 81 00 09 00 01 09 95 19 67 00 00 00 00 90 00 56 [15:48:27]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:48:27]wFMCommunicate OK [15:48:27]SAM_PROTO_GetShiftState done [15:48:27]FM_GetShiftState done [15:48:27]req_shift_opened done [15:48:27]requested_item shift.open_date is exist - process it [15:48:27]req_shift_open_date [15:48:27]req_shift_open_date done [15:48:27]produce_requested_data done [15:48:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74689,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:48:27]process_action_free close_receipt [15:48:27]json_value_free [15:48:27]json_value_free done [15:48:27]process_json_proto returns [15:48:27]Send response to host [15:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74689,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:48:27]free response buf [15:48:27]execute_script done [15:48:27]execute_script returns [15:48:27]free content buf [15:48:27]Sock 9.Close socket [15:48:27]Sock 9.Thread stoped [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]accept exits with 8 [15:53:11]New connection [15:53:11]New thread 3066805604 created [15:53:11]Thread 3066662244 joined [15:53:11]Waiting for new connection... [15:53:11] Sock 8.Parse request [15:53:11]Sock 8.Check first char [15:53:11]Sock 8.First char is OK [15:53:11]request: POST /json_proto HTTP/1.0 [15:53:11]Method: POST [15:53:11]URL: /json_proto [15:53:11]Method is POST - this is cgi request [15:53:11]url: /json_proto [15:53:11]query_string will be loaded in cgi processing [15:53:11]execute_cgi json_proto POST (null) [15:53:11]execute_cgi path=json_proto method=POST [15:53:11]POST find Content-Length [15:53:11]Host: 172.17.39.131:8080 [15:53:11]Content-Length: 677 [15:53:11]Content-Type: application/json [15:53:11] [15:53:11]POST finish read [15:53:11]Found Content-Length = 677 [15:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:11]execute_script... [15:53: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)190656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:11]POST & json_proto [15:53:11]process_json_proto [15:53:11]json parsed OK: [15:53:11]protocol is kg_v1.0 [15:53:11]action value=close_receipt [15:53:11]process_action close_receipt [15:53:11]cmd_close_receipt [15:53:11]MH_GetDate [15:53:11]Write to MH i2c: F0 00 00 2F 81 9F [15:53:11]Write i2c OK [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: F0 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: F0 09 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: F0 09 00 2F 81 00 73 6D 1A 67 86 57 24 65 6F [15:53:11]GetLastDocTimeStamp 1729784915 [15:53:11]current date 1729785203 [15:53:11]FM_GetShiftState [15:53:11]SAM_PROTO_GetShiftState [15:53:11]wFMCommunicate request_size=4 [15:53:11]MH_SAM_APDU [15:53:11]CAPDU: 80 13 01 00 [15:53:11]Write to MH i2c: E2 08 00 30 81 80 13 01 00 00 00 00 00 2E [15:53:11]Write i2c OK [15:53:11]MH_I2C_Read... [15:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:11]Read from MH i2c: E2 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 0E 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 0E 00 30 81 00 09 00 01 09 95 19 67 00 00 00 00 90 00 58 [15:53:11]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:53:11]wFMCommunicate OK [15:53:11]SAM_PROTO_GetShiftState done [15:53:11]FM_GetShiftState done [15:53:11]opened in 1729729801 [15:53:11]opened+sec_in_day 1729816201 [15:53:11]quantity*price = 24017 [15:53:11]sum+1 = 24018 [15:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 134 24.10.2024 15:53 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74690 ФПД: 171445403728126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155323&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74690&fm=171445403728126&tin=02508201610067®Number=0000000000091691&sum=24000 [15:53:12]StoreToDocumentArchive [15:53:12]shift 510 fd 74690 [15:53:12]save to /storage/0510/doc_00074690 [15:53:12]save last doc name /storage/0510/doc_00074690 to /storage/kkm_last_doc_name [15:53:12]save OK [15:53:12]Clear old archive folders... [15:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:12]tlvbuf is 007C3D40 [15:53:12]SAM_PROTO_ClearQueue [15:53:12]wFMCommunicate request_size=4 [15:53:12]MH_SAM_APDU [15:53:12]CAPDU: 80 09 00 00 [15:53:12]Write to MH i2c: E2 08 00 3D 81 80 09 00 00 00 00 00 00 30 [15:53:12]Write i2c OK [15:53:12]MH_I2C_Read... [15:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:12]Read from MH i2c: E2 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 3D 81 00 90 00 32 [15:53:12]RAPDU: 90 00 [15:53:12]wFMCommunicate OK [15:53:12]SAM_PROTO_ClearQueue done [15:53:12]KKMCreateOFDPacket [15:53:12]OFDProtocolAddRootSTLVToBuf [15:53:12]FM_MakeSignedData [15:53:12]FM_MakeSignedData [15:53:12]SAM_PROTO_SignData [15:53:12]wFMCommunicate request_size=4 [15:53:12]MH_SAM_APDU [15:53:12]CAPDU: 80 0D 01 02 [15:53:12]Write to MH i2c: E2 08 00 3E 81 80 0D 01 02 00 00 00 00 38 [15:53:12]Write i2c OK [15:53:12]MH_I2C_Read... [15:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:12]Read from MH i2c: E2 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 3E 81 00 90 00 33 [15:53:12]RAPDU: 90 00 [15:53:12]wFMCommunicate OK [15:53:12]wFMCommunicate request_size=255 [15:53:12]MH_SAM_APDU [15:53:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 73 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 23 01 00 35 04 06 00 9B [15:53:12]Write to MH i2c: E2 02 01 3F 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 73 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 23 01 00 35 04 06 00 9B 00 00 3A [15:53:12]Write i2c OK [15:53:12]MH_I2C_Read... [15:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:12]Read from MH i2c: E2 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 3F 81 00 90 00 34 [15:53:12]RAPDU: 90 00 [15:53:12]wFMCommunicate OK [15:53:12]wFMCommunicate request_size=10 [15:53:12]MH_SAM_APDU [15:53:12]CAPDU: 80 0D 02 02 05 ED BE 63 38 FE [15:53:12]Write to MH i2c: E2 0D 00 40 81 80 0D 02 02 05 00 ED BE 63 38 FE 00 00 89 [15:53:12]Write i2c OK [15:53:12]MH_I2C_Read... [15:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:13]Read from MH i2c: E2 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 03 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 03 00 40 81 00 90 00 35 [15:53:13]RAPDU: 90 00 [15:53:13]wFMCommunicate OK [15:53:13]wFMCommunicate request_size=4 [15:53:13]MH_SAM_APDU [15:53:13]CAPDU: 80 0D 03 02 [15:53:13]Write to MH i2c: E2 08 00 41 81 80 0D 03 02 00 00 00 00 3D [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:13]Read from MH i2c: E2 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 0B 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 0B 00 41 81 00 84 5B 5D 3F D3 2A D1 E9 90 00 70 [15:53:13]RAPDU: 84 5B 5D 3F D3 2A D1 E9 90 00 [15:53:13]wFMCommunicate OK [15:53:13]SAM_PROTO_SignData done [15:53:13]FM_MakeSignedData done [15:53:13]CreateOFDProtocolMessage [15:53:13]wFMCommunicate request_size=4 [15:53:13]MH_SAM_APDU [15:53:13]CAPDU: 80 11 00 00 [15:53:13]Write to MH i2c: E2 08 00 42 81 80 11 00 00 00 00 00 00 3D [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:13]Read from MH i2c: E2 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 17 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 17 00 42 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 95 [15:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:53:13]wFMCommunicate OK [15:53:13]CreateOFDProtocolMessage done [15:53:13]OFDSenderStorePacket 74690 [15:53:13]StoreOFDPacket docnum=74690 [15:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3E 5D 07 01 D5 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 73 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 23 01 00 35 04 06 00 9B ED BE 63 38 FE 84 5B 5D 3F D3 2A D1 E9 [15:53:13]CheckFolder [15:53:13]dirname=/storage/ofd_packets [15:53:13]CheckFolder done [15:53:13]ProducePacketName [15:53:13]name=ofd_packets/00074690 [15:53:13]NVStorageSaveData ofd_packets/00074690 [15:53:13]File name is /storage/ofd_packets/00074690 [15:53:13]Write 301 bytes [15:53:13]NVStorageSaveData done [15:53:13]OFDSenderStorePacket done [15:53:13]KKMCreateOFDPacket done [15:53:13]NVStorageSaveData kkm_last_timestamp [15:53:13]File name is /storage/kkm_last_timestamp [15:53:13]Write 4 bytes [15:53:13]NVStorageSaveData done [15:53:13]ExternCall_PrintAddStr [15:53:13]wPrintStart [15:53:13]Write to MH i2c: 01 00 00 43 81 C4 [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 07 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 07 00 43 81 00 00 00 00 00 FF 0F D9 [15:53:13]RasterBufferAndPrint [15:53:13]line Счет N : (1)190656 [15:53:13]line ИНН: 02508201610067 [15:53:13]line Контрольно-Кассовый Чек [15:53:13]line ПРОДАЖА [15:53:13]line ТРК (МРК, ГНК) : 21 [15:53:13]line Товар: 2710124130 [15:53:13]line Аи-92-К-5 [15:53:13]line 3.590 * 66.90 [15:53:13]line = 240.17 [15:53:13]line НДС 12% НСП 1% [15:53:13]line > о реализуемом товаре [15:53:13]line ОКРУГЛЕНИЕ: -0.17 [15:53:13]line ИТОГО: 240.00 [15:53:13]line Внесено: 240.00 [15:53:13]line СДАЧА: 0.00 [15:53:13]line НСП 1% : 2.12 [15:53:13]line НДС 12% : 25.50 [15:53:13]line Наличными: 240.00 [15:53:13]line Безнал.: 0.00 [15:53:13]line Место: АЗС № 142 "Партнер Нефть" [15:53:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:53:13]line СНО: Общий режим [15:53:13]line Чек 134 24.10.2024 15:53 [15:53:13]line Смена: 510 ФФД: 1.0 [15:53:13]line ЗНМ: 0300000089 [15:53:13]line РНМ: 0000000000091691 [15:53:13]line Версия ККМ: 001 [15:53:13]line ФМ: 0000000000871795 [15:53:13]line ФД: 74690 [15:53:13]line ФПД: 171445403728126 [15:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155323&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74690&fm=171445403728126&tin=02508201610067®Number=0000000000091691&sum=24000 [15:53:13]written 0, free lines is 4095 [15:53:13]OFD Sender: Processing packet 74690 [packets to send 13, broken 12] [15:53:13]ProducePacketName [15:53:13]name=ofd_packets/00074690 [15:53:13]OFD Sender: To server: pG, [15:53:13]CommunicateWithHost lk.salyk.kg:30040 [15:53:13]ConnectInit lk.salyk.kg [15:53:13]Connected sock=10 [15:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3E 5D 07 01 D5 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 73 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 23 01 00 35 04 06 00 9B ED BE 63 38 FE 84 5B 5D 3F D3 2A D1 E9 [15:53:13]Write to MH i2c: 01 00 00 6E 81 EF [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 07 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 07 00 6E 81 00 00 00 00 00 A1 0C A3 [15:53:13]RasterBufferAndPrint [15:53:13]line [15:53:13]line [15:53:13]line [15:53:13]line [15:53:13]line [15:53:13]written 0, free lines is 3238 [15:53:13]MH_Cut [15:53:13]Write to MH i2c: D1 01 00 75 81 01 C8 [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: D1 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: D1 01 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: D1 01 00 75 81 00 C7 [15:53:13]Write to MH i2c: 01 00 00 76 81 F7 [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 99 2D 47 00 88 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 23 01 00 F4 03 04 00 F5 14 1A 67 B6 04 01 00 00 76 95 3C D2 A8 66 0B 8D [15:53:13]CommunicateWithHost err = 0 [15:53:13]CheckOFDResponse [15:53:13]1017 (14) - 77093643461234 [15:53:13]1041 (16) - 0000000000871795 [15:53:13]1040 (4) - 74690 [15:53:13]1012 (4) - 24.10.2024 09:35 [15:53:13]1206 (1) - 0 [15:53:13]OFD Sender: Remove packet 74690 [15:53:13]ProducePacketName [15:53:13]name=ofd_packets/00074690 [15:53:13]NVStorageDeleteData [15:53:14]OFD Sender: No OFD packet to send [15:53:14]*** Cut start [15:53:14]*** Partial cut [15:53:14]*** CUTSNS_PIN = 1 [15:53:14]*** CUTSNS_PIN = 0 [15:53:15]*** Brake cut motor [15:53:15]Read from MH i2c: 01 [15:53:15]MH_I2C_Read... [15:53:15]*** Stop cut motor [15:53:15]*** Cut end [15:53:15]Read from MH i2c: 01 07 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: 01 07 00 76 81 00 00 00 00 00 FF 0F 0C [15:53:15]process_action close_receipt done [15:53:15]requested_data is exist [15:53:15]produce_requested_data [15:53:15]requested_item fm.sn is exist - process it [15:53:15]wFMCommunicate request_size=4 [15:53:15]MH_SAM_APDU [15:53:15]CAPDU: 80 11 00 00 [15:53:15]Write to MH i2c: E2 08 00 77 81 80 11 00 00 00 00 00 00 72 [15:53:15]Write i2c OK [15:53:15]MH_I2C_Read... [15:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:15]Read from MH i2c: E2 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 17 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 17 00 77 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CA [15:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:53:15]wFMCommunicate OK [15:53:15]requested_item fd.num is exist - process it [15:53:15]SAM_PROTO_GetFieldsCounters [15:53:15]wFMCommunicate request_size=4 [15:53:15]MH_SAM_APDU [15:53:15]CAPDU: 80 13 00 00 [15:53:15]Write to MH i2c: E2 08 00 78 81 80 13 00 00 00 00 00 00 75 [15:53:15]Write i2c OK [15:53:15]MH_I2C_Read... [15:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:15]Read from MH i2c: E2 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 62 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 62 00 78 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C2 23 01 00 0E 04 04 00 FE 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 [15:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C2 23 01 00 0E 04 04 00 FE 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 [15:53:15]wFMCommunicate OK [15:53:15]SAM_PROTO_GetFieldsCounters done [15:53:15]requested_item shift.num is exist - process it [15:53:15]requested_item shift.opened is exist - process it [15:53:15]req_shift_opened [15:53:15]FM_GetShiftState [15:53:15]SAM_PROTO_GetShiftState [15:53:15]wFMCommunicate request_size=4 [15:53:15]MH_SAM_APDU [15:53:15]CAPDU: 80 13 01 00 [15:53:15]Write to MH i2c: E2 08 00 79 81 80 13 01 00 00 00 00 00 77 [15:53:15]Write i2c OK [15:53:15]MH_I2C_Read... [15:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:15]Read from MH i2c: E2 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 0E 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 0E 00 79 81 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A1 [15:53:15]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:53:15]wFMCommunicate OK [15:53:15]SAM_PROTO_GetShiftState done [15:53:15]FM_GetShiftState done [15:53:15]req_shift_opened done [15:53:15]requested_item shift.open_date is exist - process it [15:53:15]req_shift_open_date [15:53:15]req_shift_open_date done [15:53:15]produce_requested_data done [15:53:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74690,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:53:15]process_action_free close_receipt [15:53:15]json_value_free [15:53:15]json_value_free done [15:53:15]process_json_proto returns [15:53:15]Send response to host [15:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74690,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:53:15]free response buf [15:53:15]execute_script done [15:53:15]execute_script returns [15:53:15]free content buf [15:53:15]Sock 8.Close socket [15:53:15]Sock 8.Thread stoped [15:53:19]OFD Sender: No OFD packet to send [15:53:22]accept exits with 9 [15:53:22]New connection [15:53:22]New thread 3066662244 created [15:53:22]Thread 3066805604 joined [15:53:22]Waiting for new connection... [15:53:22] Sock 9.Parse request [15:53:22]Sock 9.Check first char [15:53:22]Sock 9.First char is OK [15:53:22]request: POST /json_proto HTTP/1.0 [15:53:22]Method: POST [15:53:22]URL: /json_proto [15:53:22]Method is POST - this is cgi request [15:53:22]url: /json_proto [15:53:22]query_string will be loaded in cgi processing [15:53:22]execute_cgi json_proto POST (null) [15:53:22]execute_cgi path=json_proto method=POST [15:53:22]POST find Content-Length [15:53:22]Host: 172.17.39.131:8080 [15:53:22]Content-Length: 766 [15:53:22]Content-Type: application/json [15:53:22] [15:53:22]POST finish read [15:53:22]Found Content-Length = 766 [15:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:22]execute_script... [15:53: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)190655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:22]POST & json_proto [15:53:22]process_json_proto [15:53:22]json parsed OK: [15:53:22]protocol is kg_v1.0 [15:53:22]action value=close_receipt [15:53:22]process_action close_receipt [15:53:22]cmd_close_receipt [15:53:22]MH_GetDate [15:53:22]Write to MH i2c: F0 00 00 7A 81 EA [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: F0 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: F0 09 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: F0 09 00 7A 81 00 7E 6D 1A 67 86 57 24 65 C5 [15:53:22]GetLastDocTimeStamp 1729785203 [15:53:22]current date 1729785214 [15:53:22]FM_GetShiftState [15:53:22]SAM_PROTO_GetShiftState [15:53:22]wFMCommunicate request_size=4 [15:53:22]MH_SAM_APDU [15:53:22]CAPDU: 80 13 01 00 [15:53:22]Write to MH i2c: E2 08 00 7B 81 80 13 01 00 00 00 00 00 79 [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:22]Read from MH i2c: E2 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: E2 0E 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: E2 0E 00 7B 81 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A3 [15:53:22]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:53:22]wFMCommunicate OK [15:53:22]SAM_PROTO_GetShiftState done [15:53:22]FM_GetShiftState done [15:53:22]opened in 1729729801 [15:53:22]opened+sec_in_day 1729816201 [15:53:22]quantity*price = 300075 [15:53:22]sum+1 = 300077 [15:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 135 24.10.2024 15:53 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74691 ФПД: 47836718852956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155334&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74691&fm=47836718852956&tin=02508201610067®Number=0000000000091691&sum=300076 [15:53:23]StoreToDocumentArchive [15:53:23]shift 510 fd 74691 [15:53:23]save to /storage/0510/doc_00074691 [15:53:23]save last doc name /storage/0510/doc_00074691 to /storage/kkm_last_doc_name [15:53:23]save OK [15:53:23]Clear old archive folders... [15:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:53:23]tlvbuf is 00846B50 [15:53:23]SAM_PROTO_ClearQueue [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 09 00 00 [15:53:23]Write to MH i2c: E2 08 00 88 81 80 09 00 00 00 00 00 00 7B [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 03 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 03 00 88 81 00 90 00 7D [15:53:23]RAPDU: 90 00 [15:53:23]wFMCommunicate OK [15:53:23]SAM_PROTO_ClearQueue done [15:53:23]KKMCreateOFDPacket [15:53:23]OFDProtocolAddRootSTLVToBuf [15:53:23]FM_MakeSignedData [15:53:23]FM_MakeSignedData [15:53:23]SAM_PROTO_SignData [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 0D 01 02 [15:53:23]Write to MH i2c: E2 08 00 89 81 80 0D 01 02 00 00 00 00 83 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 03 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 03 00 89 81 00 90 00 7E [15:53:23]RAPDU: 90 00 [15:53:23]wFMCommunicate OK [15:53:23]wFMCommunicate request_size=255 [15:53:23]MH_SAM_APDU [15:53: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7E 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 23 01 00 35 04 06 00 2B 81 DA A2 [15:53:23]Write to MH i2c: E2 02 01 8A 81 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7E 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 23 01 00 35 04 06 00 2B 81 DA A2 00 00 DF [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:24]Read from MH i2c: E2 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 8A 81 00 90 00 7F [15:53:24]RAPDU: 90 00 [15:53:24]wFMCommunicate OK [15:53:24]wFMCommunicate request_size=7 [15:53:24]MH_SAM_APDU [15:53:24]CAPDU: 80 0D 02 02 02 6B 5C [15:53:24]Write to MH i2c: E2 0A 00 8B 81 80 0D 02 02 02 00 6B 5C 00 00 51 [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:24]Read from MH i2c: E2 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 8B 81 00 90 00 80 [15:53:24]RAPDU: 90 00 [15:53:24]wFMCommunicate OK [15:53:24]wFMCommunicate request_size=4 [15:53:24]MH_SAM_APDU [15:53:24]CAPDU: 80 0D 03 02 [15:53:24]Write to MH i2c: E2 08 00 8C 81 80 0D 03 02 00 00 00 00 88 [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:24]Read from MH i2c: E2 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 0B 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 0B 00 8C 81 00 71 77 89 E1 45 E8 83 42 90 00 CD [15:53:24]RAPDU: 71 77 89 E1 45 E8 83 42 90 00 [15:53:24]wFMCommunicate OK [15:53:24]SAM_PROTO_SignData done [15:53:24]FM_MakeSignedData done [15:53:24]CreateOFDProtocolMessage [15:53:24]wFMCommunicate request_size=4 [15:53:24]MH_SAM_APDU [15:53:24]CAPDU: 80 11 00 00 [15:53:24]Write to MH i2c: E2 08 00 8D 81 80 11 00 00 00 00 00 00 88 [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:24]Read from MH i2c: E2 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 17 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 17 00 8D 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E0 [15:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:53:24]wFMCommunicate OK [15:53:24]CreateOFDProtocolMessage done [15:53:24]OFDSenderStorePacket 74691 [15:53:24]StoreOFDPacket docnum=74691 [15:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 AF 4E 04 01 EB 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7E 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 23 01 00 35 04 06 00 2B 81 DA A2 6B 5C 71 77 89 E1 45 E8 83 42 [15:53:24]CheckFolder [15:53:24]dirname=/storage/ofd_packets [15:53:24]CheckFolder done [15:53:24]ProducePacketName [15:53:24]name=ofd_packets/00074691 [15:53:24]NVStorageSaveData ofd_packets/00074691 [15:53:24]File name is /storage/ofd_packets/00074691 [15:53:24]Write 298 bytes [15:53:24]NVStorageSaveData done [15:53:24]OFDSenderStorePacket done [15:53:24]KKMCreateOFDPacket done [15:53:24]NVStorageSaveData kkm_last_timestamp [15:53:24]File name is /storage/kkm_last_timestamp [15:53:24]Write 4 bytes [15:53:24]NVStorageSaveData done [15:53:24]ExternCall_PrintAddStr [15:53:24]wPrintStart [15:53:24]Write to MH i2c: 01 00 00 8E 81 0F [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: 01 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: 01 07 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: 01 07 00 8E 81 00 00 00 00 00 FF 0F 24 [15:53:24]RasterBufferAndPrint [15:53:24]line Счет N : (1)190655 [15:53:24]line ИНН: 02508201610067 [15:53:24]line Контрольно-Кассовый Чек [15:53:24]line ПРОДАЖА [15:53:24]line ТРК (МРК, ГНК) : 41 [15:53:24]line Товар: 2710194210 [15:53:24]line ДТ-К-4 [15:53:24]line 39.380 * 76.20 [15:53:24]line = 3000.76 [15:53:24]line НДС 12% НСП 1% [15:53:24]line > о реализуемом товаре [15:53:24]line ИТОГО: 3000.76 [15:53:24]line НСП 1% : 26.55 [15:53:24]line НДС 12% : 318.66 [15:53:24]line Наличными: 0.00 [15:53:24]line Безнал.: 3000.76 [15:53:24]line Место: АЗС № 142 "Партнер Нефть" [15:53:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:53:24]line СНО: Общий режим [15:53:24]line Чек 135 24.10.2024 15:53 [15:53:24]line Смена: 510 ФФД: 1.0 [15:53:24]line ЗНМ: 0300000089 [15:53:24]line РНМ: 0000000000091691 [15:53:24]line Версия ККМ: 001 [15:53:24]line Платежная система: Mbank [15:53:24]line ФМ: 0000000000871795 [15:53:24]line ФД: 74691 [15:53:24]line ФПД: 47836718852956 [15:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155334&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74691&fm=47836718852956&tin=02508201610067®Number=0000000000091691&sum=300076 [15:53:24]OFD Sender: Processing packet 74691 [packets to send 13, broken 12] [15:53:24]ProducePacketName [15:53:24]name=ofd_packets/00074691 [15:53:24]OFD Sender: To server: pG, [15:53:24]CommunicateWithHost lk.salyk.kg:30040 [15:53:24]ConnectInit lk.salyk.kg [15:53:24]written 0, free lines is 4095 [15:53:24]Connected sock=10 [15:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 AF 4E 04 01 EB 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7E 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 23 01 00 35 04 06 00 2B 81 DA A2 6B 5C 71 77 89 E1 45 E8 83 42 [15:53:25]Write to MH i2c: 01 00 00 B7 81 38 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 07 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 07 00 B7 81 00 00 00 00 00 D2 0C 1D [15:53:25]RasterBufferAndPrint [15:53:25]line [15:53:25]line [15:53:25]line [15:53:25]line [15:53:25]line [15:53:25]written 0, free lines is 3288 [15:53:25]MH_Cut [15:53:25]Write to MH i2c: D1 01 00 BE 81 01 11 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: D1 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: D1 01 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: D1 01 00 BE 81 00 10 [15:53:25]Write to MH i2c: 01 00 00 BF 81 40 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 48 56 47 00 18 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 31 37 39 35 10 04 04 00 C3 23 01 00 F4 03 04 00 00 15 1A 67 B6 04 01 00 00 2E 73 E3 87 62 50 6C F2 [15:53:25]CommunicateWithHost err = 0 [15:53:25]CheckOFDResponse [15:53:25]1017 (14) - 77093643461234 [15:53:25]1041 (16) - 0000000000871795 [15:53:25]1040 (4) - 74691 [15:53:25]1012 (4) - 24.10.2024 09:36 [15:53:25]1206 (1) - 0 [15:53:25]OFD Sender: Remove packet 74691 [15:53:25]ProducePacketName [15:53:25]name=ofd_packets/00074691 [15:53:25]NVStorageDeleteData [15:53:25]OFD Sender: No OFD packet to send [15:53:25]*** Cut start [15:53:25]*** Partial cut [15:53:25]*** CUTSNS_PIN = 1 [15:53:25]*** CUTSNS_PIN = 0 [15:53:26]*** Brake cut motor [15:53:26]Read from MH i2c: 01 [15:53:26]MH_I2C_Read... [15:53:26]*** Stop cut motor [15:53:26]*** Cut end [15:53:26]Read from MH i2c: 01 07 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: 01 07 00 BF 81 00 00 00 00 00 FF 0F 55 [15:53:26]process_action close_receipt done [15:53:26]requested_data is exist [15:53:26]produce_requested_data [15:53:26]requested_item fm.sn is exist - process it [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 11 00 00 [15:53:26]Write to MH i2c: E2 08 00 C0 81 80 11 00 00 00 00 00 00 BB [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:26]Read from MH i2c: E2 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 17 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 17 00 C0 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 13 [15:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:53:26]wFMCommunicate OK [15:53:26]requested_item fd.num is exist - process it [15:53:26]SAM_PROTO_GetFieldsCounters [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 13 00 00 [15:53:26]Write to MH i2c: E2 08 00 C1 81 80 13 00 00 00 00 00 00 BE [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:26]Read from MH i2c: E2 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 62 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 62 00 C1 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C3 23 01 00 0E 04 04 00 FE 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 60 [15:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C3 23 01 00 0E 04 04 00 FE 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 [15:53:26]wFMCommunicate OK [15:53:26]SAM_PROTO_GetFieldsCounters done [15:53:26]requested_item shift.num is exist - process it [15:53:26]requested_item shift.opened is exist - process it [15:53:26]req_shift_opened [15:53:26]FM_GetShiftState [15:53:26]SAM_PROTO_GetShiftState [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 13 01 00 [15:53:26]Write to MH i2c: E2 08 00 C2 81 80 13 01 00 00 00 00 00 C0 [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:26]Read from MH i2c: E2 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 0E 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: E2 0E 00 C2 81 00 09 00 01 09 95 19 67 00 00 00 00 90 00 EA [15:53:26]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:53:26]wFMCommunicate OK [15:53:26]SAM_PROTO_GetShiftState done [15:53:26]FM_GetShiftState done [15:53:26]req_shift_opened done [15:53:26]requested_item shift.open_date is exist - process it [15:53:26]req_shift_open_date [15:53:26]req_shift_open_date done [15:53:26]produce_requested_data done [15:53:26]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74691,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:53:26]process_action_free close_receipt [15:53:26]json_value_free [15:53:26]json_value_free done [15:53:26]process_json_proto returns [15:53:26]Send response to host [15:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74691,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:53:26]free response buf [15:53:26]execute_script done [15:53:26]execute_script returns [15:53:26]free content buf [15:53:26]Sock 9.Close socket [15:53:26]Sock 9.Thread stoped [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:13]accept exits with 8 [15:54:13]New connection [15:54:13]New thread 3066805604 created [15:54:13]Thread 3066662244 joined [15:54:13]Waiting for new connection... [15:54:13] Sock 8.Parse request [15:54:13]Sock 8.Check first char [15:54:13]Sock 8.First char is OK [15:54:13]request: POST /json_proto HTTP/1.0 [15:54:13]Method: POST [15:54:13]URL: /json_proto [15:54:13]Method is POST - this is cgi request [15:54:13]url: /json_proto [15:54:13]query_string will be loaded in cgi processing [15:54:13]execute_cgi json_proto POST (null) [15:54:13]execute_cgi path=json_proto method=POST [15:54:13]POST find Content-Length [15:54:13]Host: 172.17.39.131:8080 [15:54:13]Content-Length: 678 [15:54:13]Content-Type: application/json [15:54:13] [15:54:13]POST finish read [15:54:13]Found Content-Length = 678 [15:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.910, "sum" : 930.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 930.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:13]execute_script... [15:54:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.910, "sum" : 930.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 930.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:13]POST & json_proto [15:54:13]process_json_proto [15:54:13]json parsed OK: [15:54:13]protocol is kg_v1.0 [15:54:13]action value=close_receipt [15:54:13]process_action close_receipt [15:54:13]cmd_close_receipt [15:54:13]MH_GetDate [15:54:13]Write to MH i2c: F0 00 00 C3 81 33 [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: F0 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: F0 09 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: F0 09 00 C3 81 00 B1 6D 1A 67 86 57 24 65 41 [15:54:13]GetLastDocTimeStamp 1729785214 [15:54:13]current date 1729785265 [15:54:13]FM_GetShiftState [15:54:13]SAM_PROTO_GetShiftState [15:54:13]wFMCommunicate request_size=4 [15:54:13]MH_SAM_APDU [15:54:13]CAPDU: 80 13 01 00 [15:54:13]Write to MH i2c: E2 08 00 C4 81 80 13 01 00 00 00 00 00 C2 [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:13]Read from MH i2c: E2 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 0E 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 0E 00 C4 81 00 09 00 01 09 95 19 67 00 00 00 00 90 00 EC [15:54:13]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:54:13]wFMCommunicate OK [15:54:13]SAM_PROTO_GetShiftState done [15:54:13]FM_GetShiftState done [15:54:13]opened in 1729729801 [15:54:13]opened+sec_in_day 1729816201 [15:54:13]quantity*price = 93057 [15:54:13]sum+1 = 93059 [15:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 930.00 Внесено: 930.00 СДАЧА: 0.00 НСП 1% : 8.23 НДС 12% : 98.82 Наличными: 930.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 136 24.10.2024 15:54 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74692 ФПД: 73969582374032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155425&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74692&fm=73969582374032&tin=02508201610067®Number=0000000000091691&sum=93000 [15:54:14]StoreToDocumentArchive [15:54:14]shift 510 fd 74692 [15:54:14]save to /storage/0510/doc_00074692 [15:54:14]save last doc name /storage/0510/doc_00074692 to /storage/kkm_last_doc_name [15:54:14]save OK [15:54:14]Clear old archive folders... [15:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:14]tlvbuf is 00A9DAA0 [15:54:14]SAM_PROTO_ClearQueue [15:54:14]wFMCommunicate request_size=4 [15:54:14]MH_SAM_APDU [15:54:14]CAPDU: 80 09 00 00 [15:54:14]Write to MH i2c: E2 08 00 D1 81 80 09 00 00 00 00 00 00 C4 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 D1 81 00 90 00 C6 [15:54:14]RAPDU: 90 00 [15:54:14]wFMCommunicate OK [15:54:14]SAM_PROTO_ClearQueue done [15:54:14]KKMCreateOFDPacket [15:54:14]OFDProtocolAddRootSTLVToBuf [15:54:14]FM_MakeSignedData [15:54:14]FM_MakeSignedData [15:54:14]SAM_PROTO_SignData [15:54:14]wFMCommunicate request_size=4 [15:54:14]MH_SAM_APDU [15:54:14]CAPDU: 80 0D 01 02 [15:54:14]Write to MH i2c: E2 08 00 D2 81 80 0D 01 02 00 00 00 00 CC [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 D2 81 00 90 00 C7 [15:54:14]RAPDU: 90 00 [15:54:14]wFMCommunicate OK [15:54:14]wFMCommunicate request_size=255 [15:54:14]MH_SAM_APDU [15:54: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 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 26 00 00 00 00 07 04 06 00 48 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B1 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 23 01 00 35 04 06 00 43 [15:54:14]Write to MH i2c: E2 02 01 D3 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 26 00 00 00 00 07 04 06 00 48 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B1 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 23 01 00 35 04 06 00 43 00 00 45 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 D3 81 00 90 00 C8 [15:54:14]RAPDU: 90 00 [15:54:14]wFMCommunicate OK [15:54:14]wFMCommunicate request_size=10 [15:54:14]MH_SAM_APDU [15:54:14]CAPDU: 80 0D 02 02 05 46 62 AE 7C 90 [15:54:14]Write to MH i2c: E2 0D 00 D4 81 80 0D 02 02 05 00 46 62 AE 7C 90 00 00 3B [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 03 00 D4 81 00 90 00 C9 [15:54:14]RAPDU: 90 00 [15:54:14]wFMCommunicate OK [15:54:14]wFMCommunicate request_size=4 [15:54:14]MH_SAM_APDU [15:54:14]CAPDU: 80 0D 03 02 [15:54:14]Write to MH i2c: E2 08 00 D5 81 80 0D 03 02 00 00 00 00 D1 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 0B 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 0B 00 D5 81 00 45 62 F4 D2 7D 73 53 4D 90 00 CF [15:54:14]RAPDU: 45 62 F4 D2 7D 73 53 4D 90 00 [15:54:14]wFMCommunicate OK [15:54:14]SAM_PROTO_SignData done [15:54:14]FM_MakeSignedData done [15:54:14]CreateOFDProtocolMessage [15:54:14]wFMCommunicate request_size=4 [15:54:14]MH_SAM_APDU [15:54:14]CAPDU: 80 11 00 00 [15:54:14]Write to MH i2c: E2 08 00 D6 81 80 11 00 00 00 00 00 00 D1 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 17 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 17 00 D6 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 29 [15:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:54:14]wFMCommunicate OK [15:54:14]CreateOFDProtocolMessage done [15:54:14]OFDSenderStorePacket 74692 [15:54:14]StoreOFDPacket docnum=74692 [15:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 04 23 07 01 49 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 26 00 00 00 00 07 04 06 00 48 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B1 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 23 01 00 35 04 06 00 43 46 62 AE 7C 90 45 62 F4 D2 7D 73 53 4D [15:54:14]CheckFolder [15:54:14]dirname=/storage/ofd_packets [15:54:14]CheckFolder done [15:54:14]ProducePacketName [15:54:14]name=ofd_packets/00074692 [15:54:14]NVStorageSaveData ofd_packets/00074692 [15:54:14]File name is /storage/ofd_packets/00074692 [15:54:14]Write 301 bytes [15:54:14]NVStorageSaveData done [15:54:14]OFDSenderStorePacket done [15:54:14]KKMCreateOFDPacket done [15:54:14]NVStorageSaveData kkm_last_timestamp [15:54:14]File name is /storage/kkm_last_timestamp [15:54:14]Write 4 bytes [15:54:14]NVStorageSaveData done [15:54:14]ExternCall_PrintAddStr [15:54:14]wPrintStart [15:54:14]Write to MH i2c: 01 00 00 D7 81 58 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 07 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 07 00 D7 81 00 00 00 00 00 FF 0F 6D [15:54:14]RasterBufferAndPrint [15:54:14]line Счет N : (1)190657 [15:54:14]line ИНН: 02508201610067 [15:54:14]line Контрольно-Кассовый Чек [15:54:14]line ПРОДАЖА [15:54:14]line ТРК (МРК, ГНК) : 21 [15:54:14]line Товар: 2710124130 [15:54:14]line Аи-92-К-5 [15:54:14]line 13.910 * 66.90 [15:54:14]line = 930.58 [15:54:14]line НДС 12% НСП 1% [15:54:14]line > о реализуемом товаре [15:54:14]line ОКРУГЛЕНИЕ: -0.58 [15:54:14]line ИТОГО: 930.00 [15:54:14]line Внесено: 930.00 [15:54:14]line СДАЧА: 0.00 [15:54:14]line НСП 1% : 8.23 [15:54:14]line НДС 12% : 98.82 [15:54:14]line Наличными: 930.00 [15:54:14]line Безнал.: 0.00 [15:54:14]line Место: АЗС № 142 "Партнер Нефть" [15:54:14]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:54:14]line СНО: Общий режим [15:54:14]line Чек 136 24.10.2024 15:54 [15:54:14]line Смена: 510 ФФД: 1.0 [15:54:14]line ЗНМ: 0300000089 [15:54:14]line РНМ: 0000000000091691 [15:54:14]line Версия ККМ: 001 [15:54:14]line ФМ: 0000000000871795 [15:54:14]line ФД: 74692 [15:54:14]line ФПД: 73969582374032 [15:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155425&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74692&fm=73969582374032&tin=02508201610067®Number=0000000000091691&sum=93000 [15:54:15]written 0, free lines is 4095 [15:54:15]OFD Sender: Processing packet 74692 [packets to send 13, broken 12] [15:54:15]ProducePacketName [15:54:15]name=ofd_packets/00074692 [15:54:15]OFD Sender: To server: pG, [15:54:15]CommunicateWithHost lk.salyk.kg:30040 [15:54:15]ConnectInit lk.salyk.kg [15:54:15]Connected sock=10 [15:54:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 04 23 07 01 49 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 26 00 00 00 00 07 04 06 00 48 6B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B1 6D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 23 01 00 35 04 06 00 43 46 62 AE 7C 90 45 62 F4 D2 7D 73 53 4D [15:54:15]Write to MH i2c: 01 00 00 02 82 84 [15:54:15]Write i2c OK [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: 01 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: 01 07 00 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: 01 07 00 02 82 00 00 00 00 00 A5 0C 3C [15:54:15]RasterBufferAndPrint [15:54:15]line [15:54:15]line [15:54:15]line [15:54:15]line [15:54:15]line [15:54:15]written 0, free lines is 3245 [15:54:15]MH_Cut [15:54:15]Write to MH i2c: D1 01 00 09 82 01 5D [15:54:15]Write i2c OK [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: D1 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: D1 01 00 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: D1 01 00 09 82 00 5C [15:54:15]Write to MH i2c: 01 00 00 0A 82 8C [15:54:15]Write i2c OK [15:54:15]MH_I2C_Read... [15:54:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7F 3B 47 00 BB F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 23 01 00 F4 03 04 00 32 15 1A 67 B6 04 01 00 00 54 14 59 5C 49 03 D9 79 [15:54:15]CommunicateWithHost err = 0 [15:54:15]CheckOFDResponse [15:54:15]1017 (14) - 77093643461234 [15:54:15]1041 (16) - 0000000000871795 [15:54:15]1040 (4) - 74692 [15:54:15]1012 (4) - 24.10.2024 09:36 [15:54:15]1206 (1) - 0 [15:54:15]OFD Sender: Remove packet 74692 [15:54:15]ProducePacketName [15:54:15]name=ofd_packets/00074692 [15:54:15]NVStorageDeleteData [15:54:16]OFD Sender: No OFD packet to send [15:54:16]*** Cut start [15:54:16]*** Partial cut [15:54:16]*** CUTSNS_PIN = 1 [15:54:16]*** CUTSNS_PIN = 0 [15:54:16]*** Brake cut motor [15:54:17]Read from MH i2c: 01 [15:54:17]MH_I2C_Read... [15:54:17]*** Stop cut motor [15:54:17]*** Cut end [15:54:17]Read from MH i2c: 01 07 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 07 00 0A 82 00 00 00 00 00 FF 0F A1 [15:54:17]process_action close_receipt done [15:54:17]requested_data is exist [15:54:17]produce_requested_data [15:54:17]requested_item fm.sn is exist - process it [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 11 00 00 [15:54:17]Write to MH i2c: E2 08 00 0B 82 80 11 00 00 00 00 00 00 07 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 0B 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5F [15:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:54:17]wFMCommunicate OK [15:54:17]requested_item fd.num is exist - process it [15:54:17]SAM_PROTO_GetFieldsCounters [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 13 00 00 [15:54:17]Write to MH i2c: E2 08 00 0C 82 80 13 00 00 00 00 00 00 0A [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 62 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 62 00 0C 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C4 23 01 00 0E 04 04 00 FE 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 B0 [15:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C4 23 01 00 0E 04 04 00 FE 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 [15:54:17]wFMCommunicate OK [15:54:17]SAM_PROTO_GetFieldsCounters done [15:54:17]requested_item shift.num is exist - process it [15:54:17]requested_item shift.opened is exist - process it [15:54:17]req_shift_opened [15:54:17]FM_GetShiftState [15:54:17]SAM_PROTO_GetShiftState [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 13 01 00 [15:54:17]Write to MH i2c: E2 08 00 0D 82 80 13 01 00 00 00 00 00 0C [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0E 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0E 00 0D 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 36 [15:54:17]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [15:54:17]wFMCommunicate OK [15:54:17]SAM_PROTO_GetShiftState done [15:54:17]FM_GetShiftState done [15:54:17]req_shift_opened done [15:54:17]requested_item shift.open_date is exist - process it [15:54:17]req_shift_open_date [15:54:17]req_shift_open_date done [15:54:17]produce_requested_data done [15:54:17]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74692,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [15:54:17]process_action_free close_receipt [15:54:17]json_value_free [15:54:17]json_value_free done [15:54:17]process_json_proto returns [15:54:17]Send response to host [15:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74692,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [15:54:17]free response buf [15:54:17]execute_script done [15:54:17]execute_script returns [15:54:17]free content buf [15:54:17]Sock 8.Close socket [15:54:17]Sock 8.Thread stoped [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:09]accept exits with 9 [16:04:09]New connection [16:04:09]New thread 3066662244 created [16:04:09]Thread 3066805604 joined [16:04:09]Waiting for new connection... [16:04:09] Sock 9.Parse request [16:04:09]Sock 9.Check first char [16:04:09]Sock 9.First char is OK [16:04:09]request: POST /json_proto HTTP/1.0 [16:04:09]Method: POST [16:04:09]URL: /json_proto [16:04:09]Method is POST - this is cgi request [16:04:09]url: /json_proto [16:04:09]query_string will be loaded in cgi processing [16:04:09]execute_cgi json_proto POST (null) [16:04:09]execute_cgi path=json_proto method=POST [16:04:09]POST find Content-Length [16:04:09]Host: 172.17.39.131:8080 [16:04:09]Content-Length: 685 [16:04:09]Content-Type: application/json [16:04:09] [16:04:09]POST finish read [16:04:09]Found Content-Length = 685 [16:04:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 40.100, "sum" : 1559.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1559.00, "payments": [ { "type": 0, "sum" : 1559.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:09]execute_script... [16:04: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)190658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 40.100, "sum" : 1559.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1559.00, "payments": [ { "type": 0, "sum" : 1559.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:09]POST & json_proto [16:04:09]process_json_proto [16:04:09]json parsed OK: [16:04:09]protocol is kg_v1.0 [16:04:09]action value=close_receipt [16:04:09]process_action close_receipt [16:04:09]cmd_close_receipt [16:04:09]MH_GetDate [16:04:09]Write to MH i2c: F0 00 00 0E 82 7F [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: F0 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: F0 09 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: F0 09 00 0E 82 00 05 70 1A 67 86 57 24 65 E4 [16:04:09]GetLastDocTimeStamp 1729785265 [16:04:09]current date 1729785861 [16:04:09]FM_GetShiftState [16:04:09]SAM_PROTO_GetShiftState [16:04:09]wFMCommunicate request_size=4 [16:04:09]MH_SAM_APDU [16:04:09]CAPDU: 80 13 01 00 [16:04:09]Write to MH i2c: E2 08 00 0F 82 80 13 01 00 00 00 00 00 0E [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:09]Read from MH i2c: E2 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 0E 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 0E 00 0F 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 38 [16:04:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:04:09]wFMCommunicate OK [16:04:09]SAM_PROTO_GetShiftState done [16:04:09]FM_GetShiftState done [16:04:09]opened in 1729729801 [16:04:09]opened+sec_in_day 1729816201 [16:04:09]quantity*price = 155989 [16:04:09]sum+1 = 155990 [16:04:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 1559.00 Внесено: 2000.00 СДАЧА: 441.00 НСП 1% : 13.80 НДС 12% : 165.65 Наличными: 1559.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 137 24.10.2024 16:04 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74693 ФПД: 163755817790532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160421&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74693&fm=163755817790532&tin=02508201610067®Number=0000000000091691&sum=155900 [16:04:11]StoreToDocumentArchive [16:04:11]shift 510 fd 74693 [16:04:11]save to /storage/0510/doc_00074693 [16:04:11]save last doc name /storage/0510/doc_00074693 to /storage/kkm_last_doc_name [16:04:11]save OK [16:04:11]Clear old archive folders... [16:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:04:11]tlvbuf is 00A51E60 [16:04:11]SAM_PROTO_ClearQueue [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 09 00 00 [16:04:11]Write to MH i2c: E2 08 00 1C 82 80 09 00 00 00 00 00 00 10 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 1C 82 00 90 00 12 [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]SAM_PROTO_ClearQueue done [16:04:11]KKMCreateOFDPacket [16:04:11]OFDProtocolAddRootSTLVToBuf [16:04:11]FM_MakeSignedData [16:04:11]FM_MakeSignedData [16:04:11]SAM_PROTO_SignData [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 01 02 [16:04:11]Write to MH i2c: E2 08 00 1D 82 80 0D 01 02 00 00 00 00 18 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 1D 82 00 90 00 13 [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]wFMCommunicate request_size=255 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 9C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 60 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 40 00 00 00 00 07 04 06 00 FC 60 02 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 05 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 23 01 00 35 04 06 00 94 EF [16:04:11]Write to MH i2c: E2 02 01 1E 82 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 9C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 60 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 40 00 00 00 00 07 04 06 00 FC 60 02 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 05 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 23 01 00 35 04 06 00 94 EF 00 00 0A [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 1E 82 00 90 00 14 [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]wFMCommunicate request_size=9 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 02 02 04 5F 59 6C 44 [16:04:11]Write to MH i2c: E2 0C 00 1F 82 80 0D 02 02 04 00 5F 59 6C 44 00 00 8B [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 1F 82 00 90 00 15 [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 03 02 [16:04:11]Write to MH i2c: E2 08 00 20 82 80 0D 03 02 00 00 00 00 1D [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 0B 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 0B 00 20 82 00 5A F3 0C 8E B9 33 8A 94 90 00 0F [16:04:11]RAPDU: 5A F3 0C 8E B9 33 8A 94 90 00 [16:04:11]wFMCommunicate OK [16:04:11]SAM_PROTO_SignData done [16:04:11]FM_MakeSignedData done [16:04:11]CreateOFDProtocolMessage [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 11 00 00 [16:04:11]Write to MH i2c: E2 08 00 21 82 80 11 00 00 00 00 00 00 1D [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 17 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 17 00 21 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [16:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:04:11]wFMCommunicate OK [16:04:11]CreateOFDProtocolMessage done [16:04:11]OFDSenderStorePacket 74693 [16:04:11]StoreOFDPacket docnum=74693 [16:04:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 57 21 06 01 60 19 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 9C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 60 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 40 00 00 00 00 07 04 06 00 FC 60 02 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 05 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 23 01 00 35 04 06 00 94 EF 5F 59 6C 44 5A F3 0C 8E B9 33 8A 94 [16:04:11]CheckFolder [16:04:11]dirname=/storage/ofd_packets [16:04:11]CheckFolder done [16:04:11]ProducePacketName [16:04:11]name=ofd_packets/00074693 [16:04:11]NVStorageSaveData ofd_packets/00074693 [16:04:11]File name is /storage/ofd_packets/00074693 [16:04:11]Write 300 bytes [16:04:11]NVStorageSaveData done [16:04:11]OFDSenderStorePacket done [16:04:11]KKMCreateOFDPacket done [16:04:11]NVStorageSaveData kkm_last_timestamp [16:04:11]File name is /storage/kkm_last_timestamp [16:04:11]Write 4 bytes [16:04:11]NVStorageSaveData done [16:04:11]ExternCall_PrintAddStr [16:04:11]wPrintStart [16:04:11]Write to MH i2c: 01 00 00 22 82 A4 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 07 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 07 00 22 82 00 00 00 00 00 FF 0F B9 [16:04:11]RasterBufferAndPrint [16:04:11]line Счет N : (1)190658 [16:04:11]line ИНН: 02508201610067 [16:04:11]line Контрольно-Кассовый Чек [16:04:11]line ПРОДАЖА [16:04:11]line ТРК (МРК, ГНК) : 51 [16:04:11]line Товар: 2711190000 [16:04:11]line ГАЗ-К-3 [16:04:11]line 40.100 * 38.90 [16:04:11]line = 1559.89 [16:04:11]line НДС 12% НСП 1% [16:04:11]line > о реализуемом товаре [16:04:11]line ОКРУГЛЕНИЕ: -0.89 [16:04:11]line ИТОГО: 1559.00 [16:04:11]line Внесено: 2000.00 [16:04:11]line СДАЧА: 441.00 [16:04:11]line НСП 1% : 13.80 [16:04:11]line НДС 12% : 165.65 [16:04:11]line Наличными: 1559.00 [16:04:11]line Безнал.: 0.00 [16:04:11]line Место: АЗС № 142 "Партнер Нефть" [16:04:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:04:11]line СНО: Общий режим [16:04:11]line Чек 137 24.10.2024 16:04 [16:04:11]line Смена: 510 ФФД: 1.0 [16:04:11]line ЗНМ: 0300000089 [16:04:11]line РНМ: 0000000000091691 [16:04:11]line Версия ККМ: 001 [16:04:11]line ФМ: 0000000000871795 [16:04:11]line ФД: 74693 [16:04:11]line ФПД: 163755817790532 [16:04:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160421&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74693&fm=163755817790532&tin=02508201610067®Number=0000000000091691&sum=155900 [16:04:11]OFD Sender: Processing packet 74693 [packets to send 13, broken 12] [16:04:11]ProducePacketName [16:04:11]name=ofd_packets/00074693 [16:04:11]OFD Sender: To server: pG, [16:04:11]CommunicateWithHost lk.salyk.kg:30040 [16:04:11]ConnectInit lk.salyk.kg [16:04:11]written 0, free lines is 4095 [16:04:12]Connected sock=10 [16:04:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 57 21 06 01 60 19 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 9C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 60 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 40 00 00 00 00 07 04 06 00 FC 60 02 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 05 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 23 01 00 35 04 06 00 94 EF 5F 59 6C 44 5A F3 0C 8E B9 33 8A 94 [16:04:12]Write to MH i2c: 01 00 00 4D 82 CF [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 4D 82 00 00 00 00 00 AA 0C 8C [16:04:12]RasterBufferAndPrint [16:04:12]line [16:04:12]line [16:04:12]line [16:04:12]line [16:04:12]line [16:04:12]written 0, free lines is 3248 [16:04:12]MH_Cut [16:04:12]Write to MH i2c: D1 01 00 54 82 01 A8 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: D1 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: D1 01 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: D1 01 00 54 82 00 A7 [16:04:12]Write to MH i2c: 01 00 00 55 82 D7 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 17 77 47 00 B0 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 23 01 00 F4 03 04 00 87 17 1A 67 B6 04 01 00 00 0A 7B 85 C8 2F 12 F8 F4 [16:04:12]CommunicateWithHost err = 0 [16:04:12]CheckOFDResponse [16:04:12]1017 (14) - 77093643461234 [16:04:12]1041 (16) - 0000000000871795 [16:04:12]1040 (4) - 74693 [16:04:12]1012 (4) - 24.10.2024 09:46 [16:04:12]1206 (1) - 0 [16:04:12]OFD Sender: Remove packet 74693 [16:04:12]ProducePacketName [16:04:12]name=ofd_packets/00074693 [16:04:12]NVStorageDeleteData [16:04:12]OFD Sender: No OFD packet to send [16:04:13]*** Cut start [16:04:13]*** Partial cut [16:04:13]*** CUTSNS_PIN = 1 [16:04:13]*** CUTSNS_PIN = 0 [16:04:13]*** Brake cut motor [16:04:13]Read from MH i2c: 01 [16:04:13]*** Stop cut motor [16:04:13]*** Cut end [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: 01 07 00 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: 01 07 00 55 82 00 00 00 00 00 FF 0F EC [16:04:13]process_action close_receipt done [16:04:13]requested_data is exist [16:04:13]produce_requested_data [16:04:13]requested_item fm.sn is exist - process it [16:04:13]wFMCommunicate request_size=4 [16:04:13]MH_SAM_APDU [16:04:13]CAPDU: 80 11 00 00 [16:04:13]Write to MH i2c: E2 08 00 56 82 80 11 00 00 00 00 00 00 52 [16:04:13]Write i2c OK [16:04:13]MH_I2C_Read... [16:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:13]Read from MH i2c: E2 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: E2 17 00 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: E2 17 00 56 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AA [16:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:04:13]wFMCommunicate OK [16:04:13]requested_item fd.num is exist - process it [16:04:13]SAM_PROTO_GetFieldsCounters [16:04:13]wFMCommunicate request_size=4 [16:04:13]MH_SAM_APDU [16:04:13]CAPDU: 80 13 00 00 [16:04:13]Write to MH i2c: E2 08 00 57 82 80 13 00 00 00 00 00 00 55 [16:04:13]Write i2c OK [16:04:13]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 62 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 62 00 57 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C5 23 01 00 0E 04 04 00 FE 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 FF [16:04:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C5 23 01 00 0E 04 04 00 FE 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 [16:04:14]wFMCommunicate OK [16:04:14]SAM_PROTO_GetFieldsCounters done [16:04:14]requested_item shift.num is exist - process it [16:04:14]requested_item shift.opened is exist - process it [16:04:14]req_shift_opened [16:04:14]FM_GetShiftState [16:04:14]SAM_PROTO_GetShiftState [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 13 01 00 [16:04:14]Write to MH i2c: E2 08 00 58 82 80 13 01 00 00 00 00 00 57 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0E 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0E 00 58 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 81 [16:04:14]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:04:14]wFMCommunicate OK [16:04:14]SAM_PROTO_GetShiftState done [16:04:14]FM_GetShiftState done [16:04:14]req_shift_opened done [16:04:14]requested_item shift.open_date is exist - process it [16:04:14]req_shift_open_date [16:04:14]req_shift_open_date done [16:04:14]produce_requested_data done [16:04:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74693,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:04:14]process_action_free close_receipt [16:04:14]json_value_free [16:04:14]json_value_free done [16:04:14]process_json_proto returns [16:04:14]Send response to host [16:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74693,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:04:14]free response buf [16:04:14]execute_script done [16:04:14]execute_script returns [16:04:14]free content buf [16:04:14]Sock 9.Close socket [16:04:14]Sock 9.Thread stoped [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:07:59]accept exits with 8 [16:07:59]New connection [16:07:59]New thread 3066805604 created [16:07:59]Thread 3066662244 joined [16:07:59]Waiting for new connection... [16:07:59] Sock 8.Parse request [16:07:59]Sock 8.Check first char [16:07:59]Sock 8.First char is OK [16:07:59]request: POST /json_proto HTTP/1.0 [16:07:59]Method: POST [16:07:59]URL: /json_proto [16:07:59]Method is POST - this is cgi request [16:07:59]url: /json_proto [16:07:59]query_string will be loaded in cgi processing [16:07:59]execute_cgi json_proto POST (null) [16:07:59]execute_cgi path=json_proto method=POST [16:07:59]POST find Content-Length [16:07:59]Host: 172.17.39.131:8080 [16:07:59]Content-Length: 677 [16:07:59]Content-Type: application/json [16:07:59] [16:07:59]POST finish read [16:07:59]Found Content-Length = 677 [16:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:59]execute_script... [16:07: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)190659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:59]POST & json_proto [16:07:59]process_json_proto [16:07:59]json parsed OK: [16:07:59]protocol is kg_v1.0 [16:07:59]action value=close_receipt [16:07:59]process_action close_receipt [16:07:59]cmd_close_receipt [16:07:59]MH_GetDate [16:07:59]Write to MH i2c: F0 00 00 59 82 CA [16:07:59]Write i2c OK [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: F0 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: F0 09 00 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: F0 09 00 59 82 00 EB 70 1A 67 86 57 24 65 15 [16:07:59]GetLastDocTimeStamp 1729785861 [16:07:59]current date 1729786091 [16:07:59]FM_GetShiftState [16:07:59]SAM_PROTO_GetShiftState [16:07:59]wFMCommunicate request_size=4 [16:07:59]MH_SAM_APDU [16:07:59]CAPDU: 80 13 01 00 [16:07:59]Write to MH i2c: E2 08 00 5A 82 80 13 01 00 00 00 00 00 59 [16:07:59]Write i2c OK [16:07:59]MH_I2C_Read... [16:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:59]Read from MH i2c: E2 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 0E 00 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 0E 00 5A 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 83 [16:07:59]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:07:59]wFMCommunicate OK [16:07:59]SAM_PROTO_GetShiftState done [16:07:59]FM_GetShiftState done [16:07:59]opened in 1729729801 [16:07:59]opened+sec_in_day 1729816201 [16:07:59]quantity*price = 30038 [16:07:59]sum+1 = 30039 [16:07:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 138 24.10.2024 16:08 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74694 ФПД: 28003712061317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160811&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74694&fm=28003712061317&tin=02508201610067®Number=0000000000091691&sum=30000 [16:08:00]StoreToDocumentArchive [16:08:00]shift 510 fd 74694 [16:08:00]save to /storage/0510/doc_00074694 [16:08:00]save last doc name /storage/0510/doc_00074694 to /storage/kkm_last_doc_name [16:08:00]save OK [16:08:00]Clear old archive folders... [16:08:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:00]tlvbuf is 00893B90 [16:08:00]SAM_PROTO_ClearQueue [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 09 00 00 [16:08:00]Write to MH i2c: E2 08 00 67 82 80 09 00 00 00 00 00 00 5B [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 67 82 00 90 00 5D [16:08:00]RAPDU: 90 00 [16:08:00]wFMCommunicate OK [16:08:00]SAM_PROTO_ClearQueue done [16:08:00]KKMCreateOFDPacket [16:08:00]OFDProtocolAddRootSTLVToBuf [16:08:00]FM_MakeSignedData [16:08:00]FM_MakeSignedData [16:08:00]SAM_PROTO_SignData [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 0D 01 02 [16:08:00]Write to MH i2c: E2 08 00 68 82 80 0D 01 02 00 00 00 00 63 [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 68 82 00 90 00 5E [16:08:00]RAPDU: 90 00 [16:08:00]wFMCommunicate OK [16:08:00]wFMCommunicate request_size=255 [16:08:00]MH_SAM_APDU [16:08: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 EB 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 23 01 00 35 04 06 00 19 [16:08:00]Write to MH i2c: E2 02 01 69 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 EB 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 23 01 00 35 04 06 00 19 00 00 54 [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:01]Read from MH i2c: E2 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 03 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 03 00 69 82 00 90 00 5F [16:08:01]RAPDU: 90 00 [16:08:01]wFMCommunicate OK [16:08:01]wFMCommunicate request_size=10 [16:08:01]MH_SAM_APDU [16:08:01]CAPDU: 80 0D 02 02 05 78 1F 4F 4F 85 [16:08:01]Write to MH i2c: E2 0D 00 6A 82 80 0D 02 02 05 00 78 1F 4F 4F 85 00 00 2A [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:01]Read from MH i2c: E2 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 03 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 03 00 6A 82 00 90 00 60 [16:08:01]RAPDU: 90 00 [16:08:01]wFMCommunicate OK [16:08:01]wFMCommunicate request_size=4 [16:08:01]MH_SAM_APDU [16:08:01]CAPDU: 80 0D 03 02 [16:08:01]Write to MH i2c: E2 08 00 6B 82 80 0D 03 02 00 00 00 00 68 [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:01]Read from MH i2c: E2 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 0B 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 0B 00 6B 82 00 76 AE A1 64 F2 25 B8 97 90 00 F8 [16:08:01]RAPDU: 76 AE A1 64 F2 25 B8 97 90 00 [16:08:01]wFMCommunicate OK [16:08:01]SAM_PROTO_SignData done [16:08:01]FM_MakeSignedData done [16:08:01]CreateOFDProtocolMessage [16:08:01]wFMCommunicate request_size=4 [16:08:01]MH_SAM_APDU [16:08:01]CAPDU: 80 11 00 00 [16:08:01]Write to MH i2c: E2 08 00 6C 82 80 11 00 00 00 00 00 00 68 [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:01]Read from MH i2c: E2 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 17 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 17 00 6C 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C0 [16:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:08:01]wFMCommunicate OK [16:08:01]CreateOFDProtocolMessage done [16:08:01]OFDSenderStorePacket 74694 [16:08:01]StoreOFDPacket docnum=74694 [16:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CC AF 07 01 5E 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 EB 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 23 01 00 35 04 06 00 19 78 1F 4F 4F 85 76 AE A1 64 F2 25 B8 97 [16:08:01]CheckFolder [16:08:01]dirname=/storage/ofd_packets [16:08:01]CheckFolder done [16:08:01]ProducePacketName [16:08:01]name=ofd_packets/00074694 [16:08:01]NVStorageSaveData ofd_packets/00074694 [16:08:01]File name is /storage/ofd_packets/00074694 [16:08:01]Write 301 bytes [16:08:01]NVStorageSaveData done [16:08:01]OFDSenderStorePacket done [16:08:01]KKMCreateOFDPacket done [16:08:01]NVStorageSaveData kkm_last_timestamp [16:08:01]File name is /storage/kkm_last_timestamp [16:08:01]Write 4 bytes [16:08:01]NVStorageSaveData done [16:08:01]ExternCall_PrintAddStr [16:08:01]wPrintStart [16:08:01]Write to MH i2c: 01 00 00 6D 82 EF [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: 01 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: 01 07 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: 01 07 00 6D 82 00 00 00 00 00 FF 0F 04 [16:08:01]RasterBufferAndPrint [16:08:01]line Счет N : (1)190659 [16:08:01]line ИНН: 02508201610067 [16:08:01]line Контрольно-Кассовый Чек [16:08:01]line ПРОДАЖА [16:08:01]line ТРК (МРК, ГНК) : 21 [16:08:01]line Товар: 2710124130 [16:08:01]line Аи-92-К-5 [16:08:01]line 4.490 * 66.90 [16:08:01]line = 300.38 [16:08:01]line НДС 12% НСП 1% [16:08:01]line > о реализуемом товаре [16:08:01]line ОКРУГЛЕНИЕ: -0.38 [16:08:01]line ИТОГО: 300.00 [16:08:01]line Внесено: 300.00 [16:08:01]line СДАЧА: 0.00 [16:08:01]line НСП 1% : 2.66 [16:08:01]line НДС 12% : 31.90 [16:08:01]line Наличными: 300.00 [16:08:01]line Безнал.: 0.00 [16:08:01]line Место: АЗС № 142 "Партнер Нефть" [16:08:01]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:08:01]line СНО: Общий режим [16:08:01]line Чек 138 24.10.2024 16:08 [16:08:01]line Смена: 510 ФФД: 1.0 [16:08:01]line ЗНМ: 0300000089 [16:08:01]line РНМ: 0000000000091691 [16:08:01]line Версия ККМ: 001 [16:08:01]line ФМ: 0000000000871795 [16:08:01]line ФД: 74694 [16:08:01]line ФПД: 28003712061317 [16:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160811&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74694&fm=28003712061317&tin=02508201610067®Number=0000000000091691&sum=30000 [16:08:01]written 0, free lines is 4095 [16:08:01]OFD Sender: Processing packet 74694 [packets to send 13, broken 12] [16:08:01]ProducePacketName [16:08:01]name=ofd_packets/00074694 [16:08:01]OFD Sender: To server: pG, [16:08:01]CommunicateWithHost lk.salyk.kg:30040 [16:08:01]ConnectInit lk.salyk.kg [16:08:01]Connected sock=10 [16:08:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CC AF 07 01 5E 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 EB 70 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 23 01 00 35 04 06 00 19 78 1F 4F 4F 85 76 AE A1 64 F2 25 B8 97 [16:08:01]Write to MH i2c: 01 00 00 98 82 1A [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: 01 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: 01 07 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: 01 07 00 98 82 00 00 00 00 00 A5 0C D2 [16:08:01]RasterBufferAndPrint [16:08:01]line [16:08:01]line [16:08:01]line [16:08:01]line [16:08:01]line [16:08:01]written 0, free lines is 3242 [16:08:01]MH_Cut [16:08:01]Write to MH i2c: D1 01 00 9F 82 01 F3 [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: D1 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: D1 01 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: D1 01 00 9F 82 00 F2 [16:08:01]Write to MH i2c: 01 00 00 A0 82 22 [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 AD 1C 47 00 03 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 23 01 00 F4 03 04 00 6D 18 1A 67 B6 04 01 00 00 96 99 DA B4 44 28 2F 36 [16:08:01]CommunicateWithHost err = 0 [16:08:01]CheckOFDResponse [16:08:01]1017 (14) - 77093643461234 [16:08:01]1041 (16) - 0000000000871795 [16:08:02]1040 (4) - 74694 [16:08:02]1012 (4) - 24.10.2024 09:50 [16:08:02]1206 (1) - 0 [16:08:02]OFD Sender: Remove packet 74694 [16:08:02]ProducePacketName [16:08:02]name=ofd_packets/00074694 [16:08:02]NVStorageDeleteData [16:08:02]OFD Sender: No OFD packet to send [16:08:02]*** Cut start [16:08:02]*** Partial cut [16:08:02]*** CUTSNS_PIN = 1 [16:08:02]*** CUTSNS_PIN = 0 [16:08:03]*** Brake cut motor [16:08:03]Read from MH i2c: 01 [16:08:03]MH_I2C_Read... [16:08:03]*** Stop cut motor [16:08:03]*** Cut end [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 A0 82 00 00 00 00 00 FF 0F 37 [16:08:03]process_action close_receipt done [16:08:03]requested_data is exist [16:08:03]produce_requested_data [16:08:03]requested_item fm.sn is exist - process it [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 11 00 00 [16:08:03]Write to MH i2c: E2 08 00 A1 82 80 11 00 00 00 00 00 00 9D [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:03]Read from MH i2c: E2 17 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 17 00 A1 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F5 [16:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:08:03]wFMCommunicate OK [16:08:03]requested_item fd.num is exist - process it [16:08:03]SAM_PROTO_GetFieldsCounters [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 13 00 00 [16:08:03]Write to MH i2c: E2 08 00 A2 82 80 13 00 00 00 00 00 00 A0 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 62 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 62 00 A2 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C6 23 01 00 0E 04 04 00 FE 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 4E [16:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C6 23 01 00 0E 04 04 00 FE 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 [16:08:03]wFMCommunicate OK [16:08:03]SAM_PROTO_GetFieldsCounters done [16:08:03]requested_item shift.num is exist - process it [16:08:03]requested_item shift.opened is exist - process it [16:08:03]req_shift_opened [16:08:03]FM_GetShiftState [16:08:03]SAM_PROTO_GetShiftState [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 13 01 00 [16:08:03]Write to MH i2c: E2 08 00 A3 82 80 13 01 00 00 00 00 00 A2 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0E 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0E 00 A3 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CC [16:08:03]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:08:03]wFMCommunicate OK [16:08:03]SAM_PROTO_GetShiftState done [16:08:03]FM_GetShiftState done [16:08:03]req_shift_opened done [16:08:03]requested_item shift.open_date is exist - process it [16:08:03]req_shift_open_date [16:08:03]req_shift_open_date done [16:08:03]produce_requested_data done [16:08:03]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74694,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:08:03]process_action_free close_receipt [16:08:03]json_value_free [16:08:03]json_value_free done [16:08:03]process_json_proto returns [16:08:03]Send response to host [16:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74694,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:08:03]free response buf [16:08:03]execute_script done [16:08:03]execute_script returns [16:08:03]free content buf [16:08:03]Sock 8.Close socket [16:08:03]Sock 8.Thread stoped [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:05]accept exits with 9 [16:09:05]New connection [16:09:05]New thread 3066662244 created [16:09:05]Thread 3066805604 joined [16:09:05]Waiting for new connection... [16:09:05] Sock 9.Parse request [16:09:05]Sock 9.Check first char [16:09:05]Sock 9.First char is OK [16:09:05]request: POST /json_proto HTTP/1.0 [16:09:05]Method: POST [16:09:05]URL: /json_proto [16:09:05]Method is POST - this is cgi request [16:09:05]url: /json_proto [16:09:05]query_string will be loaded in cgi processing [16:09:05]execute_cgi json_proto POST (null) [16:09:05]execute_cgi path=json_proto method=POST [16:09:05]POST find Content-Length [16:09:05]Host: 172.17.39.131:8080 [16:09:05]Content-Length: 677 [16:09:05]Content-Type: application/json [16:09:05] [16:09:05]POST finish read [16:09:05]Found Content-Length = 677 [16:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:05]execute_script... [16:09: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)190660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:05]POST & json_proto [16:09:05]process_json_proto [16:09:05]json parsed OK: [16:09:05]protocol is kg_v1.0 [16:09:05]action value=close_receipt [16:09:05]process_action close_receipt [16:09:05]cmd_close_receipt [16:09:05]MH_GetDate [16:09:05]Write to MH i2c: F0 00 00 A4 82 15 [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: F0 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: F0 09 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: F0 09 00 A4 82 00 2D 71 1A 67 86 57 24 65 A3 [16:09:05]GetLastDocTimeStamp 1729786091 [16:09:05]current date 1729786157 [16:09:05]FM_GetShiftState [16:09:05]SAM_PROTO_GetShiftState [16:09:05]wFMCommunicate request_size=4 [16:09:05]MH_SAM_APDU [16:09:05]CAPDU: 80 13 01 00 [16:09:05]Write to MH i2c: E2 08 00 A5 82 80 13 01 00 00 00 00 00 A4 [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:05]Read from MH i2c: E2 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 0E 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 0E 00 A5 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CE [16:09:05]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:09:05]wFMCommunicate OK [16:09:05]SAM_PROTO_GetShiftState done [16:09:05]FM_GetShiftState done [16:09:05]opened in 1729729801 [16:09:05]opened+sec_in_day 1729816201 [16:09:05]quantity*price = 20003 [16:09:05]sum+1 = 20004 [16:09:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 139 24.10.2024 16:09 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74695 ФПД: 181175305708732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160917&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74695&fm=181175305708732&tin=02508201610067®Number=0000000000091691&sum=20000 [16:09:06]StoreToDocumentArchive [16:09:06]shift 510 fd 74695 [16:09:06]save to /storage/0510/doc_00074695 [16:09:06]save last doc name /storage/0510/doc_00074695 to /storage/kkm_last_doc_name [16:09:06]save OK [16:09:06]Clear old archive folders... [16:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:06]tlvbuf is 007EBCE0 [16:09:06]SAM_PROTO_ClearQueue [16:09:06]wFMCommunicate request_size=4 [16:09:06]MH_SAM_APDU [16:09:06]CAPDU: 80 09 00 00 [16:09:06]Write to MH i2c: E2 08 00 B2 82 80 09 00 00 00 00 00 00 A6 [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:06]Read from MH i2c: E2 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 03 00 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 03 00 B2 82 00 90 00 A8 [16:09:06]RAPDU: 90 00 [16:09:06]wFMCommunicate OK [16:09:06]SAM_PROTO_ClearQueue done [16:09:06]KKMCreateOFDPacket [16:09:06]OFDProtocolAddRootSTLVToBuf [16:09:06]FM_MakeSignedData [16:09:06]FM_MakeSignedData [16:09:06]SAM_PROTO_SignData [16:09:06]wFMCommunicate request_size=4 [16:09:06]MH_SAM_APDU [16:09:06]CAPDU: 80 0D 01 02 [16:09:06]Write to MH i2c: E2 08 00 B3 82 80 0D 01 02 00 00 00 00 AE [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:06]Read from MH i2c: E2 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 03 00 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 03 00 B3 82 00 90 00 A9 [16:09:06]RAPDU: 90 00 [16:09:06]wFMCommunicate OK [16:09:06]wFMCommunicate request_size=255 [16:09:06]MH_SAM_APDU [16:09: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 23 01 00 35 04 06 00 A4 [16:09:06]Write to MH i2c: E2 02 01 B4 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 23 01 00 35 04 06 00 A4 00 00 3D [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:06]Read from MH i2c: E2 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 03 00 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 03 00 B4 82 00 90 00 AA [16:09:06]RAPDU: 90 00 [16:09:06]wFMCommunicate OK [16:09:06]wFMCommunicate request_size=10 [16:09:06]MH_SAM_APDU [16:09:06]CAPDU: 80 0D 02 02 05 C7 29 BD 24 BC [16:09:06]Write to MH i2c: E2 0D 00 B5 82 80 0D 02 02 05 00 C7 29 BD 24 BC 00 00 48 [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 B5 82 00 90 00 AB [16:09:07]RAPDU: 90 00 [16:09:07]wFMCommunicate OK [16:09:07]wFMCommunicate request_size=4 [16:09:07]MH_SAM_APDU [16:09:07]CAPDU: 80 0D 03 02 [16:09:07]Write to MH i2c: E2 08 00 B6 82 80 0D 03 02 00 00 00 00 B3 [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 0B 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 0B 00 B6 82 00 D5 AF A3 6D 06 56 14 2E 90 00 E6 [16:09:07]RAPDU: D5 AF A3 6D 06 56 14 2E 90 00 [16:09:07]wFMCommunicate OK [16:09:07]SAM_PROTO_SignData done [16:09:07]FM_MakeSignedData done [16:09:07]CreateOFDProtocolMessage [16:09:07]wFMCommunicate request_size=4 [16:09:07]MH_SAM_APDU [16:09:07]CAPDU: 80 11 00 00 [16:09:07]Write to MH i2c: E2 08 00 B7 82 80 11 00 00 00 00 00 00 B3 [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 17 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 17 00 B7 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0B [16:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:09:07]wFMCommunicate OK [16:09:07]CreateOFDProtocolMessage done [16:09:07]OFDSenderStorePacket 74695 [16:09:07]StoreOFDPacket docnum=74695 [16:09:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 0F 27 07 01 57 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 23 01 00 35 04 06 00 A4 C7 29 BD 24 BC D5 AF A3 6D 06 56 14 2E [16:09:07]CheckFolder [16:09:07]dirname=/storage/ofd_packets [16:09:07]CheckFolder done [16:09:07]ProducePacketName [16:09:07]name=ofd_packets/00074695 [16:09:07]NVStorageSaveData ofd_packets/00074695 [16:09:07]File name is /storage/ofd_packets/00074695 [16:09:07]Write 301 bytes [16:09:07]NVStorageSaveData done [16:09:07]OFDSenderStorePacket done [16:09:07]KKMCreateOFDPacket done [16:09:07]NVStorageSaveData kkm_last_timestamp [16:09:07]File name is /storage/kkm_last_timestamp [16:09:07]Write 4 bytes [16:09:07]NVStorageSaveData done [16:09:07]ExternCall_PrintAddStr [16:09:07]wPrintStart [16:09:07]Write to MH i2c: 01 00 00 B8 82 3A [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 07 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 07 00 B8 82 00 00 00 00 00 FF 0F 4F [16:09:07]RasterBufferAndPrint [16:09:07]line Счет N : (1)190660 [16:09:07]line ИНН: 02508201610067 [16:09:07]line Контрольно-Кассовый Чек [16:09:07]line ПРОДАЖА [16:09:07]line ТРК (МРК, ГНК) : 21 [16:09:07]line Товар: 2710124130 [16:09:07]line Аи-92-К-5 [16:09:07]line 2.990 * 66.90 [16:09:07]line = 200.03 [16:09:07]line НДС 12% НСП 1% [16:09:07]line > о реализуемом товаре [16:09:07]line ОКРУГЛЕНИЕ: -0.03 [16:09:07]line ИТОГО: 200.00 [16:09:07]line Внесено: 200.00 [16:09:07]line СДАЧА: 0.00 [16:09:07]line НСП 1% : 1.77 [16:09:07]line НДС 12% : 21.24 [16:09:07]line Наличными: 200.00 [16:09:07]line Безнал.: 0.00 [16:09:07]line Место: АЗС № 142 "Партнер Нефть" [16:09:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:09:07]line СНО: Общий режим [16:09:07]line Чек 139 24.10.2024 16:09 [16:09:07]line Смена: 510 ФФД: 1.0 [16:09:07]line ЗНМ: 0300000089 [16:09:07]line РНМ: 0000000000091691 [16:09:07]line Версия ККМ: 001 [16:09:07]line ФМ: 0000000000871795 [16:09:07]line ФД: 74695 [16:09:07]line ФПД: 181175305708732 [16:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160917&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74695&fm=181175305708732&tin=02508201610067®Number=0000000000091691&sum=20000 [16:09:07]OFD Sender: Processing packet 74695 [packets to send 13, broken 12] [16:09:07]ProducePacketName [16:09:07]name=ofd_packets/00074695 [16:09:07]OFD Sender: To server: pG, [16:09:07]CommunicateWithHost lk.salyk.kg:30040 [16:09:07]ConnectInit lk.salyk.kg [16:09:07]written 0, free lines is 4095 [16:09:07]Connected sock=8 [16:09:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 0F 27 07 01 57 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 23 01 00 35 04 06 00 A4 C7 29 BD 24 BC D5 AF A3 6D 06 56 14 2E [16:09:07]Write to MH i2c: 01 00 00 E3 82 65 [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 07 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 07 00 E3 82 00 00 00 00 00 A3 0C 1B [16:09:07]RasterBufferAndPrint [16:09:07]line [16:09:07]line [16:09:07]line [16:09:07]line [16:09:07]line [16:09:07]written 0, free lines is 3241 [16:09:07]MH_Cut [16:09:07]Write to MH i2c: D1 01 00 EA 82 01 3E [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: D1 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: D1 01 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: D1 01 00 EA 82 00 3D [16:09:07]Write to MH i2c: 01 00 00 EB 82 6D [16:09:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 88 BB 47 00 D3 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 23 01 00 F4 03 04 00 AF 18 1A 67 B6 04 01 00 00 8A FF 7A 4F 4E B6 9E 4F [16:09:07]CommunicateWithHost err = 0 [16:09:07]CheckOFDResponse [16:09:07]1017 (14) - 77093643461234 [16:09:07]1041 (16) - 0000000000871795 [16:09:07]1040 (4) - 74695 [16:09:07]1012 (4) - 24.10.2024 09:51 [16:09:07]1206 (1) - 0 [16:09:07]OFD Sender: Remove packet 74695 [16:09:07]ProducePacketName [16:09:07]name=ofd_packets/00074695 [16:09:07]NVStorageDeleteData [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:08]OFD Sender: No OFD packet to send [16:09:08]*** Cut start [16:09:08]*** Partial cut [16:09:08]*** CUTSNS_PIN = 1 [16:09:08]*** CUTSNS_PIN = 0 [16:09:09]*** Brake cut motor [16:09:09]Read from MH i2c: 01 [16:09:09]MH_I2C_Read... [16:09:09]*** Stop cut motor [16:09:09]*** Cut end [16:09:09]Read from MH i2c: 01 07 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: 01 07 00 EB 82 00 00 00 00 00 FF 0F 82 [16:09:09]process_action close_receipt done [16:09:09]requested_data is exist [16:09:09]produce_requested_data [16:09:09]requested_item fm.sn is exist - process it [16:09:09]wFMCommunicate request_size=4 [16:09:09]MH_SAM_APDU [16:09:09]CAPDU: 80 11 00 00 [16:09:09]Write to MH i2c: E2 08 00 EC 82 80 11 00 00 00 00 00 00 E8 [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 [16:09:09]MH_I2C_Read... [16:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:09]Read from MH i2c: E2 17 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 17 00 EC 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 40 [16:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:09:09]wFMCommunicate OK [16:09:09]requested_item fd.num is exist - process it [16:09:09]SAM_PROTO_GetFieldsCounters [16:09:09]wFMCommunicate request_size=4 [16:09:09]MH_SAM_APDU [16:09:09]CAPDU: 80 13 00 00 [16:09:09]Write to MH i2c: E2 08 00 ED 82 80 13 00 00 00 00 00 00 EB [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:09]Read from MH i2c: E2 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 62 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 62 00 ED 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C7 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:09:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C7 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:09]wFMCommunicate OK [16:09:09]SAM_PROTO_GetFieldsCounters done [16:09:09]requested_item shift.num is exist - process it [16:09:09]requested_item shift.opened is exist - process it [16:09:09]req_shift_opened [16:09:09]FM_GetShiftState [16:09:09]SAM_PROTO_GetShiftState [16:09:09]wFMCommunicate request_size=4 [16:09:09]MH_SAM_APDU [16:09:09]CAPDU: 80 13 01 00 [16:09:09]Write to MH i2c: E2 08 00 EE 82 80 13 01 00 00 00 00 00 ED [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:09]Read from MH i2c: E2 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 0E 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 0E 00 EE 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 17 [16:09:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:09:09]wFMCommunicate OK [16:09:09]SAM_PROTO_GetShiftState done [16:09:09]FM_GetShiftState done [16:09:09]req_shift_opened done [16:09:09]requested_item shift.open_date is exist - process it [16:09:09]req_shift_open_date [16:09:09]req_shift_open_date done [16:09:09]produce_requested_data done [16:09:09]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74695,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:09:09]process_action_free close_receipt [16:09:09]json_value_free [16:09:09]json_value_free done [16:09:09]process_json_proto returns [16:09:09]Send response to host [16:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74695,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:09:09]free response buf [16:09:09]execute_script done [16:09:09]execute_script returns [16:09:09]free content buf [16:09:09]Sock 9.Close socket [16:09:09]Sock 9.Thread stoped [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:30]accept exits with 10 [16:10:30]New connection [16:10:30]New thread 3066805604 created [16:10:30]Thread 3066662244 joined [16:10:30]Waiting for new connection... [16:10:30] Sock 10.Parse request [16:10:30]Sock 10.Check first char [16:10:30]Sock 10.First char is OK [16:10:30]request: POST /json_proto HTTP/1.0 [16:10:30]Method: POST [16:10:30]URL: /json_proto [16:10:30]Method is POST - this is cgi request [16:10:30]url: /json_proto [16:10:30]query_string will be loaded in cgi processing [16:10:30]execute_cgi json_proto POST (null) [16:10:30]execute_cgi path=json_proto method=POST [16:10:30]POST find Content-Length [16:10:30]Host: 172.17.39.131:8080 [16:10:30]Content-Length: 679 [16:10:30]Content-Type: application/json [16:10:30] [16:10:30]POST finish read [16:10:30]Found Content-Length = 679 [16:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:10:30]execute_script... [16:10: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)190662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:10:30]POST & json_proto [16:10:30]process_json_proto [16:10:30]json parsed OK: [16:10:30]protocol is kg_v1.0 [16:10:30]action value=close_receipt [16:10:30]process_action close_receipt [16:10:30]cmd_close_receipt [16:10:30]MH_GetDate [16:10:30]Write to MH i2c: F0 00 00 EF 82 60 [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: F0 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: F0 09 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: F0 09 00 EF 82 00 82 71 1A 67 86 57 24 65 43 [16:10:30]GetLastDocTimeStamp 1729786157 [16:10:30]current date 1729786242 [16:10:30]FM_GetShiftState [16:10:30]SAM_PROTO_GetShiftState [16:10:30]wFMCommunicate request_size=4 [16:10:30]MH_SAM_APDU [16:10:30]CAPDU: 80 13 01 00 [16:10:30]Write to MH i2c: E2 08 00 F0 82 80 13 01 00 00 00 00 00 EF [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:30]Read from MH i2c: E2 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 0E 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 0E 00 F0 82 00 09 00 01 09 95 19 67 00 00 00 00 90 00 19 [16:10:30]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:10:30]wFMCommunicate OK [16:10:30]SAM_PROTO_GetShiftState done [16:10:30]FM_GetShiftState done [16:10:30]opened in 1729729801 [16:10:30]opened+sec_in_day 1729816201 [16:10:30]quantity*price = 100050 [16:10:30]sum+1 = 100052 [16:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 140 24.10.2024 16:10 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74696 ФПД: 174240380895886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161042&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74696&fm=174240380895886&tin=02508201610067®Number=0000000000091691&sum=100000 [16:10:32]StoreToDocumentArchive [16:10:32]shift 510 fd 74696 [16:10:32]save to /storage/0510/doc_00074696 [16:10:32]save last doc name /storage/0510/doc_00074696 to /storage/kkm_last_doc_name [16:10:32]save OK [16:10:32]Clear old archive folders... [16:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:10:32]tlvbuf is 007C3C90 [16:10:32]SAM_PROTO_ClearQueue [16:10:32]wFMCommunicate request_size=4 [16:10:32]MH_SAM_APDU [16:10:32]CAPDU: 80 09 00 00 [16:10:32]Write to MH i2c: E2 08 00 FD 82 80 09 00 00 00 00 00 00 F1 [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:32]Read from MH i2c: E2 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 FD 82 00 90 00 F3 [16:10:32]RAPDU: 90 00 [16:10:32]wFMCommunicate OK [16:10:32]SAM_PROTO_ClearQueue done [16:10:32]KKMCreateOFDPacket [16:10:32]OFDProtocolAddRootSTLVToBuf [16:10:32]FM_MakeSignedData [16:10:32]FM_MakeSignedData [16:10:32]SAM_PROTO_SignData [16:10:32]wFMCommunicate request_size=4 [16:10:32]MH_SAM_APDU [16:10:32]CAPDU: 80 0D 01 02 [16:10:32]Write to MH i2c: E2 08 00 FE 82 80 0D 01 02 00 00 00 00 F9 [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:32]Read from MH i2c: E2 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 FE 82 00 90 00 F4 [16:10:32]RAPDU: 90 00 [16:10:32]wFMCommunicate OK [16:10:32]wFMCommunicate request_size=255 [16:10:32]MH_SAM_APDU [16:10:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 8C 00 00 00 F4 03 04 00 82 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 23 01 00 35 04 06 00 9E 78 80 02 [16:10:32]Write to MH i2c: E2 02 01 FF 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 8C 00 00 00 F4 03 04 00 82 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 23 01 00 35 04 06 00 9E 78 80 02 00 00 06 [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:32]Read from MH i2c: E2 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 FF 82 00 90 00 F5 [16:10:32]RAPDU: 90 00 [16:10:32]wFMCommunicate OK [16:10:32]wFMCommunicate request_size=7 [16:10:32]MH_SAM_APDU [16:10:32]CAPDU: 80 0D 02 02 02 42 8E [16:10:32]Write to MH i2c: E2 0A 00 00 83 80 0D 02 02 02 00 42 8E 00 00 D1 [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:32]Read from MH i2c: E2 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 03 00 00 83 00 90 00 F7 [16:10:32]RAPDU: 90 00 [16:10:32]wFMCommunicate OK [16:10:32]wFMCommunicate request_size=4 [16:10:32]MH_SAM_APDU [16:10:32]CAPDU: 80 0D 03 02 [16:10:32]Write to MH i2c: E2 08 00 01 83 80 0D 03 02 00 00 00 00 FF [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:32]Read from MH i2c: E2 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 0B 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 0B 00 01 83 00 05 1D 36 2D B3 F4 62 3D 90 00 CB [16:10:32]RAPDU: 05 1D 36 2D B3 F4 62 3D 90 00 [16:10:32]wFMCommunicate OK [16:10:32]SAM_PROTO_SignData done [16:10:32]FM_MakeSignedData done [16:10:32]CreateOFDProtocolMessage [16:10:32]wFMCommunicate request_size=4 [16:10:32]MH_SAM_APDU [16:10:32]CAPDU: 80 11 00 00 [16:10:32]Write to MH i2c: E2 08 00 02 83 80 11 00 00 00 00 00 00 FF [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:32]Read from MH i2c: E2 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 17 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: E2 17 00 02 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 57 [16:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:10:32]wFMCommunicate OK [16:10:32]CreateOFDProtocolMessage done [16:10:32]OFDSenderStorePacket 74696 [16:10:32]StoreOFDPacket docnum=74696 [16:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 7D FC 04 01 A4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 8C 00 00 00 F4 03 04 00 82 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 23 01 00 35 04 06 00 9E 78 80 02 42 8E 05 1D 36 2D B3 F4 62 3D [16:10:32]CheckFolder [16:10:32]dirname=/storage/ofd_packets [16:10:32]CheckFolder done [16:10:32]ProducePacketName [16:10:32]name=ofd_packets/00074696 [16:10:32]NVStorageSaveData ofd_packets/00074696 [16:10:32]File name is /storage/ofd_packets/00074696 [16:10:32]Write 298 bytes [16:10:32]NVStorageSaveData done [16:10:32]OFDSenderStorePacket done [16:10:32]KKMCreateOFDPacket done [16:10:32]NVStorageSaveData kkm_last_timestamp [16:10:32]File name is /storage/kkm_last_timestamp [16:10:32]Write 4 bytes [16:10:32]NVStorageSaveData done [16:10:32]ExternCall_PrintAddStr [16:10:32]wPrintStart [16:10:32]Write to MH i2c: 01 00 00 03 83 86 [16:10:32]Write i2c OK [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: 01 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: 01 07 00 [16:10:32]MH_I2C_Read... [16:10:32]Read from MH i2c: 01 07 00 03 83 00 00 00 00 00 FF 0F 9B [16:10:32]RasterBufferAndPrint [16:10:32]line Счет N : (1)190662 [16:10:32]line ИНН: 02508201610067 [16:10:32]line Контрольно-Кассовый Чек [16:10:32]line ПРОДАЖА [16:10:32]line ТРК (МРК, ГНК) : 41 [16:10:32]line Товар: 2710194210 [16:10:32]line ДТ-К-4 [16:10:32]line 13.130 * 76.20 [16:10:32]line = 1000.51 [16:10:32]line НДС 12% НСП 1% [16:10:32]line > о реализуемом товаре [16:10:32]line ОКРУГЛЕНИЕ: -0.51 [16:10:32]line ИТОГО: 1000.00 [16:10:32]line Внесено: 1000.00 [16:10:32]line СДАЧА: 0.00 [16:10:32]line НСП 1% : 8.85 [16:10:32]line НДС 12% : 106.25 [16:10:32]line Наличными: 1000.00 [16:10:32]line Безнал.: 0.00 [16:10:32]line Место: АЗС № 142 "Партнер Нефть" [16:10:32]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:10:32]line СНО: Общий режим [16:10:32]line Чек 140 24.10.2024 16:10 [16:10:32]line Смена: 510 ФФД: 1.0 [16:10:32]line ЗНМ: 0300000089 [16:10:32]line РНМ: 0000000000091691 [16:10:32]line Версия ККМ: 001 [16:10:32]line ФМ: 0000000000871795 [16:10:32]line ФД: 74696 [16:10:32]line ФПД: 174240380895886 [16:10:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161042&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74696&fm=174240380895886&tin=02508201610067®Number=0000000000091691&sum=100000 [16:10:32]OFD Sender: Processing packet 74696 [packets to send 13, broken 12] [16:10:32]ProducePacketName [16:10:32]name=ofd_packets/00074696 [16:10:32]OFD Sender: To server: pG, [16:10:32]CommunicateWithHost lk.salyk.kg:30040 [16:10:32]ConnectInit lk.salyk.kg [16:10:32]written 0, free lines is 4095 [16:10:33]Connected sock=9 [16:10:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 7D FC 04 01 A4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 8C 00 00 00 F4 03 04 00 82 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 23 01 00 35 04 06 00 9E 78 80 02 42 8E 05 1D 36 2D B3 F4 62 3D [16:10:33]Write to MH i2c: 01 00 00 2E 83 B1 [16:10:33]Write i2c OK [16:10:33]MH_I2C_Read... [16:10:33]Read from MH i2c: 01 [16:10:33]MH_I2C_Read... [16:10:33]Read from MH i2c: 01 07 00 [16:10:33]MH_I2C_Read... [16:10:33]Read from MH i2c: 01 07 00 2E 83 00 00 00 00 00 AD 0C 71 [16:10:33]RasterBufferAndPrint [16:10:33]line [16:10:33]line [16:10:33]line [16:10:33]line [16:10:33]line [16:10:33]written 0, free lines is 3252 [16:10:33]MH_Cut [16:10:33]Write to MH i2c: D1 01 00 35 83 01 8A [16:10:33]Write i2c OK [16:10:33]MH_I2C_Read... [16:10:33]Read from MH i2c: D1 [16:10:33]MH_I2C_Read... [16:10:33]Read from MH i2c: D1 01 00 [16:10:33]MH_I2C_Read... [16:10:33]Read from MH i2c: D1 01 00 35 83 00 89 [16:10:33]Write to MH i2c: 01 00 00 36 83 B9 [16:10:33]Write i2c OK [16:10:33]MH_I2C_Read... [16:10:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7B EE 47 00 D9 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 31 37 39 35 10 04 04 00 C8 23 01 00 F4 03 04 00 04 19 1A 67 B6 04 01 00 00 09 08 BE 81 E2 EB A5 83 [16:10:33]CommunicateWithHost err = 0 [16:10:33]CheckOFDResponse [16:10:33]1017 (14) - 77093643461234 [16:10:33]1041 (16) - 0000000000871795 [16:10:33]1040 (4) - 74696 [16:10:33]1012 (4) - 24.10.2024 09:53 [16:10:33]1206 (1) - 0 [16:10:33]OFD Sender: Remove packet 74696 [16:10:33]ProducePacketName [16:10:33]name=ofd_packets/00074696 [16:10:33]NVStorageDeleteData [16:10:33]OFD Sender: No OFD packet to send [16:10:34]*** Cut start [16:10:34]*** Partial cut [16:10:34]*** CUTSNS_PIN = 1 [16:10:34]*** CUTSNS_PIN = 0 [16:10:34]*** Brake cut motor [16:10:34]Read from MH i2c: 01 [16:10:34]MH_I2C_Read... [16:10:34]*** Stop cut motor [16:10:34]*** Cut end [16:10:34]Read from MH i2c: 01 07 00 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: 01 07 00 36 83 00 00 00 00 00 FF 0F CE [16:10:34]process_action close_receipt done [16:10:34]requested_data is exist [16:10:34]produce_requested_data [16:10:34]requested_item fm.sn is exist - process it [16:10:34]wFMCommunicate request_size=4 [16:10:34]MH_SAM_APDU [16:10:34]CAPDU: 80 11 00 00 [16:10:34]Write to MH i2c: E2 08 00 37 83 80 11 00 00 00 00 00 00 34 [16:10:34]Write i2c OK [16:10:34]MH_I2C_Read... [16:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:34]Read from MH i2c: E2 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 17 00 [16:10:34]MH_I2C_Read... [16:10:34]Read from MH i2c: E2 17 00 37 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8C [16:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:10:34]wFMCommunicate OK [16:10:34]requested_item fd.num is exist - process it [16:10:34]SAM_PROTO_GetFieldsCounters [16:10:34]wFMCommunicate request_size=4 [16:10:34]MH_SAM_APDU [16:10:34]CAPDU: 80 13 00 00 [16:10:34]Write to MH i2c: E2 08 00 38 83 80 13 00 00 00 00 00 00 37 [16:10:34]Write i2c OK [16:10:34]MH_I2C_Read... [16:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:35]Read from MH i2c: E2 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 62 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 62 00 38 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C8 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [16:10:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C8 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:35]wFMCommunicate OK [16:10:35]SAM_PROTO_GetFieldsCounters done [16:10:35]requested_item shift.num is exist - process it [16:10:35]requested_item shift.opened is exist - process it [16:10:35]req_shift_opened [16:10:35]FM_GetShiftState [16:10:35]SAM_PROTO_GetShiftState [16:10:35]wFMCommunicate request_size=4 [16:10:35]MH_SAM_APDU [16:10:35]CAPDU: 80 13 01 00 [16:10:35]Write to MH i2c: E2 08 00 39 83 80 13 01 00 00 00 00 00 39 [16:10:35]Write i2c OK [16:10:35]MH_I2C_Read... [16:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:35]Read from MH i2c: E2 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 0E 00 [16:10:35]MH_I2C_Read... [16:10:35]Read from MH i2c: E2 0E 00 39 83 00 09 00 01 09 95 19 67 00 00 00 00 90 00 63 [16:10:35]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:10:35]wFMCommunicate OK [16:10:35]SAM_PROTO_GetShiftState done [16:10:35]FM_GetShiftState done [16:10:35]req_shift_opened done [16:10:35]requested_item shift.open_date is exist - process it [16:10:35]req_shift_open_date [16:10:35]req_shift_open_date done [16:10:35]produce_requested_data done [16:10:35]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74696,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:10:35]process_action_free close_receipt [16:10:35]json_value_free [16:10:35]json_value_free done [16:10:35]process_json_proto returns [16:10:35]Send response to host [16:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74696,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:10:35]free response buf [16:10:35]execute_script done [16:10:35]execute_script returns [16:10:35]free content buf [16:10:35]Sock 10.Close socket [16:10:35]Sock 10.Thread stoped [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]accept exits with 8 [16:11:23]New connection [16:11:23]New thread 3066662244 created [16:11:23]Thread 3066805604 joined [16:11:23]Waiting for new connection... [16:11:23] Sock 8.Parse request [16:11:23]Sock 8.Check first char [16:11:23]Sock 8.First char is OK [16:11:23]request: POST /json_proto HTTP/1.0 [16:11:23]Method: POST [16:11:23]URL: /json_proto [16:11:23]Method is POST - this is cgi request [16:11:23]url: /json_proto [16:11:23]query_string will be loaded in cgi processing [16:11:23]execute_cgi json_proto POST (null) [16:11:23]execute_cgi path=json_proto method=POST [16:11:23]POST find Content-Length [16:11:23]Host: 172.17.39.131:8080 [16:11:23]Content-Length: 685 [16:11:23]Content-Type: application/json [16:11:23] [16:11:23]POST finish read [16:11:23]Found Content-Length = 685 [16:11:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.940, "sum" : 1009.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1009.00, "payments": [ { "type": 0, "sum" : 1009.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:23]execute_script... [16:11: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)190661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.940, "sum" : 1009.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1009.00, "payments": [ { "type": 0, "sum" : 1009.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:23]POST & json_proto [16:11:23]process_json_proto [16:11:23]json parsed OK: [16:11:23]protocol is kg_v1.0 [16:11:23]action value=close_receipt [16:11:23]process_action close_receipt [16:11:23]cmd_close_receipt [16:11:23]MH_GetDate [16:11:23]Write to MH i2c: F0 00 00 3A 83 AC [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: F0 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: F0 09 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: F0 09 00 3A 83 00 B7 71 1A 67 86 57 24 65 C4 [16:11:23]GetLastDocTimeStamp 1729786242 [16:11:23]current date 1729786295 [16:11:23]FM_GetShiftState [16:11:23]SAM_PROTO_GetShiftState [16:11:23]wFMCommunicate request_size=4 [16:11:23]MH_SAM_APDU [16:11:23]CAPDU: 80 13 01 00 [16:11:23]Write to MH i2c: E2 08 00 3B 83 80 13 01 00 00 00 00 00 3B [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:23]Read from MH i2c: E2 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 0E 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 0E 00 3B 83 00 09 00 01 09 95 19 67 00 00 00 00 90 00 65 [16:11:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:11:23]wFMCommunicate OK [16:11:23]SAM_PROTO_GetShiftState done [16:11:23]FM_GetShiftState done [16:11:23]opened in 1729729801 [16:11:23]opened+sec_in_day 1729816201 [16:11:23]quantity*price = 100906 [16:11:23]sum+1 = 100908 [16:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1009.00 Внесено: 2000.00 СДАЧА: 991.00 НСП 1% : 8.93 НДС 12% : 107.16 Наличными: 1009.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 141 24.10.2024 16:11 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74697 ФПД: 20079910063492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161135&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74697&fm=20079910063492&tin=02508201610067®Number=0000000000091691&sum=100900 [16:11:24]StoreToDocumentArchive [16:11:24]shift 510 fd 74697 [16:11:24]save to /storage/0510/doc_00074697 [16:11:24]save last doc name /storage/0510/doc_00074697 to /storage/kkm_last_doc_name [16:11:24]save OK [16:11:24]Clear old archive folders... [16:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:11:24]tlvbuf is 008FDAC0 [16:11:24]SAM_PROTO_ClearQueue [16:11:24]wFMCommunicate request_size=4 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 09 00 00 [16:11:24]Write to MH i2c: E2 08 00 48 83 80 09 00 00 00 00 00 00 3D [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:24]Read from MH i2c: E2 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 48 83 00 90 00 3F [16:11:24]RAPDU: 90 00 [16:11:24]wFMCommunicate OK [16:11:24]SAM_PROTO_ClearQueue done [16:11:24]KKMCreateOFDPacket [16:11:24]OFDProtocolAddRootSTLVToBuf [16:11:24]FM_MakeSignedData [16:11:24]FM_MakeSignedData [16:11:24]SAM_PROTO_SignData [16:11:24]wFMCommunicate request_size=4 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 0D 01 02 [16:11:24]Write to MH i2c: E2 08 00 49 83 80 0D 01 02 00 00 00 00 45 [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:24]Read from MH i2c: E2 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 49 83 00 90 00 40 [16:11:24]RAPDU: 90 00 [16:11:24]wFMCommunicate OK [16:11:24]wFMCommunicate request_size=255 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 54 65 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 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 B7 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 23 01 00 35 04 06 00 12 43 [16:11:24]Write to MH i2c: E2 02 01 4A 83 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 54 65 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 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 B7 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 23 01 00 35 04 06 00 12 43 00 00 04 [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:24]Read from MH i2c: E2 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 4A 83 00 90 00 41 [16:11:24]RAPDU: 90 00 [16:11:24]wFMCommunicate OK [16:11:24]wFMCommunicate request_size=9 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 0D 02 02 04 37 E8 0D 84 [16:11:24]Write to MH i2c: E2 0C 00 4B 83 80 0D 02 02 04 00 37 E8 0D 84 00 00 00 [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:24]Read from MH i2c: E2 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 03 00 4B 83 00 90 00 42 [16:11:24]RAPDU: 90 00 [16:11:24]wFMCommunicate OK [16:11:24]wFMCommunicate request_size=4 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 0D 03 02 [16:11:24]Write to MH i2c: E2 08 00 4C 83 80 0D 03 02 00 00 00 00 4A [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:24]Read from MH i2c: E2 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 0B 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 0B 00 4C 83 00 BB 4F CA 67 C6 1D AD 55 90 00 6B [16:11:24]RAPDU: BB 4F CA 67 C6 1D AD 55 90 00 [16:11:24]wFMCommunicate OK [16:11:24]SAM_PROTO_SignData done [16:11:24]FM_MakeSignedData done [16:11:24]CreateOFDProtocolMessage [16:11:24]wFMCommunicate request_size=4 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 11 00 00 [16:11:24]Write to MH i2c: E2 08 00 4D 83 80 11 00 00 00 00 00 00 4A [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:24]Read from MH i2c: E2 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 17 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 17 00 4D 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A2 [16:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:11:24]wFMCommunicate OK [16:11:24]CreateOFDProtocolMessage done [16:11:24]OFDSenderStorePacket 74697 [16:11:24]StoreOFDPacket docnum=74697 [16:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 C8 B8 06 01 F8 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 54 65 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 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 B7 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 23 01 00 35 04 06 00 12 43 37 E8 0D 84 BB 4F CA 67 C6 1D AD 55 [16:11:24]CheckFolder [16:11:24]dirname=/storage/ofd_packets [16:11:24]CheckFolder done [16:11:24]ProducePacketName [16:11:24]name=ofd_packets/00074697 [16:11:24]NVStorageSaveData ofd_packets/00074697 [16:11:24]File name is /storage/ofd_packets/00074697 [16:11:24]Write 300 bytes [16:11:24]NVStorageSaveData done [16:11:24]OFDSenderStorePacket done [16:11:24]KKMCreateOFDPacket done [16:11:24]NVStorageSaveData kkm_last_timestamp [16:11:24]File name is /storage/kkm_last_timestamp [16:11:24]Write 4 bytes [16:11:24]NVStorageSaveData done [16:11:24]ExternCall_PrintAddStr [16:11:24]wPrintStart [16:11:24]Write to MH i2c: 01 00 00 4E 83 D1 [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: 01 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: 01 07 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: 01 07 00 4E 83 00 00 00 00 00 FF 0F E6 [16:11:24]RasterBufferAndPrint [16:11:24]line Счет N : (1)190661 [16:11:24]line ИНН: 02508201610067 [16:11:24]line Контрольно-Кассовый Чек [16:11:24]line ПРОДАЖА [16:11:24]line ТРК (МРК, ГНК) : 51 [16:11:24]line Товар: 2711190000 [16:11:24]line ГАЗ-К-3 [16:11:24]line 25.940 * 38.90 [16:11:24]line = 1009.07 [16:11:24]line НДС 12% НСП 1% [16:11:24]line > о реализуемом товаре [16:11:24]line ОКРУГЛЕНИЕ: -0.07 [16:11:24]line ИТОГО: 1009.00 [16:11:24]line Внесено: 2000.00 [16:11:24]line СДАЧА: 991.00 [16:11:24]line НСП 1% : 8.93 [16:11:24]line НДС 12% : 107.16 [16:11:24]line Наличными: 1009.00 [16:11:24]line Безнал.: 0.00 [16:11:24]line Место: АЗС № 142 "Партнер Нефть" [16:11:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:11:24]line СНО: Общий режим [16:11:24]line Чек 141 24.10.2024 16:11 [16:11:24]line Смена: 510 ФФД: 1.0 [16:11:24]line ЗНМ: 0300000089 [16:11:24]line РНМ: 0000000000091691 [16:11:24]line Версия ККМ: 001 [16:11:24]line ФМ: 0000000000871795 [16:11:24]line ФД: 74697 [16:11:24]line ФПД: 20079910063492 [16:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161135&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74697&fm=20079910063492&tin=02508201610067®Number=0000000000091691&sum=100900 [16:11:25]written 0, free lines is 4095 [16:11:25]OFD Sender: Processing packet 74697 [packets to send 13, broken 12] [16:11:25]ProducePacketName [16:11:25]name=ofd_packets/00074697 [16:11:25]OFD Sender: To server: pG, [16:11:25]CommunicateWithHost lk.salyk.kg:30040 [16:11:25]ConnectInit lk.salyk.kg [16:11:25]Connected sock=10 [16:11:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 C8 B8 06 01 F8 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 54 65 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 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 B7 71 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 23 01 00 35 04 06 00 12 43 37 E8 0D 84 BB 4F CA 67 C6 1D AD 55 [16:11:25]Write to MH i2c: 01 00 00 79 83 FC [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: 01 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: 01 07 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: 01 07 00 79 83 00 00 00 00 00 A0 0C AF [16:11:25]RasterBufferAndPrint [16:11:25]line [16:11:25]line [16:11:25]line [16:11:25]line [16:11:25]line [16:11:25]written 0, free lines is 3240 [16:11:25]MH_Cut [16:11:25]Write to MH i2c: D1 01 00 80 83 01 D5 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: D1 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: D1 01 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: D1 01 00 80 83 00 D4 [16:11:25]Write to MH i2c: 01 00 00 81 83 04 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DF 80 47 00 D7 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 23 01 00 F4 03 04 00 38 19 1A 67 B6 04 01 00 00 18 28 5F 05 73 0D D7 15 [16:11:25]CommunicateWithHost err = 0 [16:11:25]CheckOFDResponse [16:11:25]1017 (14) - 77093643461234 [16:11:25]1041 (16) - 0000000000871795 [16:11:25]1040 (4) - 74697 [16:11:25]1012 (4) - 24.10.2024 09:54 [16:11:25]1206 (1) - 0 [16:11:25]OFD Sender: Remove packet 74697 [16:11:25]ProducePacketName [16:11:25]name=ofd_packets/00074697 [16:11:25]NVStorageDeleteData [16:11:26]OFD Sender: No OFD packet to send [16:11:26]*** Cut start [16:11:26]*** Partial cut [16:11:26]*** CUTSNS_PIN = 1 [16:11:26]*** CUTSNS_PIN = 0 [16:11:26]*** Brake cut motor [16:11:27]Read from MH i2c: 01 [16:11:27]MH_I2C_Read... [16:11:27]*** Stop cut motor [16:11:27]*** Cut end [16:11:27]Read from MH i2c: 01 07 00 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: 01 07 00 81 83 00 00 00 00 00 FF 0F 19 [16:11:27]process_action close_receipt done [16:11:27]requested_data is exist [16:11:27]produce_requested_data [16:11:27]requested_item fm.sn is exist - process it [16:11:27]wFMCommunicate request_size=4 [16:11:27]MH_SAM_APDU [16:11:27]CAPDU: 80 11 00 00 [16:11:27]Write to MH i2c: E2 08 00 82 83 80 11 00 00 00 00 00 00 7F [16:11:27]Write i2c OK [16:11:27]MH_I2C_Read... [16:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:27]Read from MH i2c: E2 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: E2 17 00 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: E2 17 00 82 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D7 [16:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:11:27]wFMCommunicate OK [16:11:27]requested_item fd.num is exist - process it [16:11:27]SAM_PROTO_GetFieldsCounters [16:11:27]wFMCommunicate request_size=4 [16:11:27]MH_SAM_APDU [16:11:27]CAPDU: 80 13 00 00 [16:11:27]Write to MH i2c: E2 08 00 83 83 80 13 00 00 00 00 00 00 82 [16:11:27]Write i2c OK [16:11:27]MH_I2C_Read... [16:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:27]Read from MH i2c: E2 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: E2 62 00 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: E2 62 00 83 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C9 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:11: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C9 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:27]wFMCommunicate OK [16:11:27]SAM_PROTO_GetFieldsCounters done [16:11:27]requested_item shift.num is exist - process it [16:11:27]requested_item shift.opened is exist - process it [16:11:27]req_shift_opened [16:11:27]FM_GetShiftState [16:11:27]SAM_PROTO_GetShiftState [16:11:27]wFMCommunicate request_size=4 [16:11:27]MH_SAM_APDU [16:11:27]CAPDU: 80 13 01 00 [16:11:27]Write to MH i2c: E2 08 00 84 83 80 13 01 00 00 00 00 00 84 [16:11:27]Write i2c OK [16:11:27]MH_I2C_Read... [16:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:27]Read from MH i2c: E2 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: E2 0E 00 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: E2 0E 00 84 83 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AE [16:11:27]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:11:27]wFMCommunicate OK [16:11:27]SAM_PROTO_GetShiftState done [16:11:27]FM_GetShiftState done [16:11:27]req_shift_opened done [16:11:27]requested_item shift.open_date is exist - process it [16:11:27]req_shift_open_date [16:11:27]req_shift_open_date done [16:11:27]produce_requested_data done [16:11:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74697,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:11:27]process_action_free close_receipt [16:11:27]json_value_free [16:11:27]json_value_free done [16:11:27]process_json_proto returns [16:11:27]Send response to host [16:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74697,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:11:27]free response buf [16:11:27]execute_script done [16:11:27]execute_script returns [16:11:27]free content buf [16:11:27]Sock 8.Close socket [16:11:27]Sock 8.Thread stoped [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:18]recv_with_timeout no data received [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:15:59]accept exits with 9 [16:15:59]New connection [16:15:59]New thread 3066805604 created [16:15:59]Thread 3066662244 joined [16:15:59]Waiting for new connection... [16:15:59] Sock 9.Parse request [16:15:59]Sock 9.Check first char [16:15:59]Sock 9.First char is OK [16:15:59]request: POST /json_proto HTTP/1.0 [16:15:59]Method: POST [16:15:59]URL: /json_proto [16:15:59]Method is POST - this is cgi request [16:15:59]url: /json_proto [16:15:59]query_string will be loaded in cgi processing [16:15:59]execute_cgi json_proto POST (null) [16:15:59]execute_cgi path=json_proto method=POST [16:15:59]POST find Content-Length [16:15:59]Host: 172.17.39.131:8080 [16:15:59]Content-Length: 677 [16:15:59]Content-Type: application/json [16:15:59] [16:15:59]POST finish read [16:15:59]Found Content-Length = 677 [16:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:59]execute_script... [16:15: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)190664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:59]POST & json_proto [16:15:59]process_json_proto [16:15:59]json parsed OK: [16:15:59]protocol is kg_v1.0 [16:15:59]action value=close_receipt [16:15:59]process_action close_receipt [16:15:59]cmd_close_receipt [16:15:59]MH_GetDate [16:15:59]Write to MH i2c: F0 00 00 85 83 F7 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: F0 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: F0 09 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: F0 09 00 85 83 00 CB 72 1A 67 86 57 24 65 24 [16:15:59]GetLastDocTimeStamp 1729786295 [16:15:59]current date 1729786571 [16:15:59]FM_GetShiftState [16:15:59]SAM_PROTO_GetShiftState [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 13 01 00 [16:15:59]Write to MH i2c: E2 08 00 86 83 80 13 01 00 00 00 00 00 86 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0E 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0E 00 86 83 00 09 00 01 09 95 19 67 00 00 00 00 90 00 B0 [16:15:59]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:15:59]wFMCommunicate OK [16:15:59]SAM_PROTO_GetShiftState done [16:15:59]FM_GetShiftState done [16:15:59]opened in 1729729801 [16:15:59]opened+sec_in_day 1729816201 [16:15:59]quantity*price = 20003 [16:15:59]sum+1 = 20004 [16:15:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 142 24.10.2024 16:16 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74698 ФПД: 46986313878287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161611&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74698&fm=46986313878287&tin=02508201610067®Number=0000000000091691&sum=20000 [16:16:01]StoreToDocumentArchive [16:16:01]shift 510 fd 74698 [16:16:01]save to /storage/0510/doc_00074698 [16:16:01]save last doc name /storage/0510/doc_00074698 to /storage/kkm_last_doc_name [16:16:01]save OK [16:16:01]Clear old archive folders... [16:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:01]tlvbuf is 007EBE10 [16:16:01]SAM_PROTO_ClearQueue [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 09 00 00 [16:16:01]Write to MH i2c: E2 08 00 93 83 80 09 00 00 00 00 00 00 88 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 93 83 00 90 00 8A [16:16:01]RAPDU: 90 00 [16:16:01]wFMCommunicate OK [16:16:01]SAM_PROTO_ClearQueue done [16:16:01]KKMCreateOFDPacket [16:16:01]OFDProtocolAddRootSTLVToBuf [16:16:01]FM_MakeSignedData [16:16:01]FM_MakeSignedData [16:16:01]SAM_PROTO_SignData [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 0D 01 02 [16:16:01]Write to MH i2c: E2 08 00 94 83 80 0D 01 02 00 00 00 00 90 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 94 83 00 90 00 8B [16:16:01]RAPDU: 90 00 [16:16:01]wFMCommunicate OK [16:16:01]wFMCommunicate request_size=255 [16:16:01]MH_SAM_APDU [16:16: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 CB 72 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 23 01 00 35 04 06 00 2A [16:16:01]Write to MH i2c: E2 02 01 95 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 CB 72 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 23 01 00 35 04 06 00 2A 00 00 4A [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]OFD Sender: No OFD packet to send [16:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 95 83 00 90 00 8C [16:16:01]RAPDU: 90 00 [16:16:01]wFMCommunicate OK [16:16:01]wFMCommunicate request_size=10 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 0D 02 02 05 BB DA 8C 4B 0F [16:16:01]Write to MH i2c: E2 0D 00 96 83 80 0D 02 02 05 00 BB DA 8C 4B 0F 00 00 18 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 96 83 00 90 00 8D [16:16:01]RAPDU: 90 00 [16:16:01]wFMCommunicate OK [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 0D 03 02 [16:16:01]Write to MH i2c: E2 08 00 97 83 80 0D 03 02 00 00 00 00 95 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 0B 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 0B 00 97 83 00 CF 64 A3 01 19 C6 F0 E3 90 00 1F [16:16:01]RAPDU: CF 64 A3 01 19 C6 F0 E3 90 00 [16:16:01]wFMCommunicate OK [16:16:01]SAM_PROTO_SignData done [16:16:01]FM_MakeSignedData done [16:16:01]CreateOFDProtocolMessage [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 11 00 00 [16:16:01]Write to MH i2c: E2 08 00 98 83 80 11 00 00 00 00 00 00 95 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 17 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 17 00 98 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 ED [16:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:16:01]wFMCommunicate OK [16:16:01]CreateOFDProtocolMessage done [16:16:01]OFDSenderStorePacket 74698 [16:16:01]StoreOFDPacket docnum=74698 [16:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5B AE 07 01 21 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 CB 72 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 23 01 00 35 04 06 00 2A BB DA 8C 4B 0F CF 64 A3 01 19 C6 F0 E3 [16:16:01]CheckFolder [16:16:01]dirname=/storage/ofd_packets [16:16:01]CheckFolder done [16:16:01]ProducePacketName [16:16:01]name=ofd_packets/00074698 [16:16:01]NVStorageSaveData ofd_packets/00074698 [16:16:01]File name is /storage/ofd_packets/00074698 [16:16:01]Write 301 bytes [16:16:01]NVStorageSaveData done [16:16:01]OFDSenderStorePacket done [16:16:01]KKMCreateOFDPacket done [16:16:01]NVStorageSaveData kkm_last_timestamp [16:16:01]File name is /storage/kkm_last_timestamp [16:16:01]Write 4 bytes [16:16:01]NVStorageSaveData done [16:16:01]ExternCall_PrintAddStr [16:16:01]wPrintStart [16:16:01]Write to MH i2c: 01 00 00 99 83 1C [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: 01 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: 01 07 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: 01 07 00 99 83 00 00 00 00 00 FF 0F 31 [16:16:01]RasterBufferAndPrint [16:16:01]line Счет N : (1)190664 [16:16:01]line ИНН: 02508201610067 [16:16:01]line Контрольно-Кассовый Чек [16:16:01]line ПРОДАЖА [16:16:01]line ТРК (МРК, ГНК) : 21 [16:16:01]line Товар: 2710124130 [16:16:01]line Аи-92-К-5 [16:16:01]line 2.990 * 66.90 [16:16:01]line = 200.03 [16:16:01]line НДС 12% НСП 1% [16:16:01]line > о реализуемом товаре [16:16:01]line ОКРУГЛЕНИЕ: -0.03 [16:16:01]line ИТОГО: 200.00 [16:16:01]line Внесено: 200.00 [16:16:01]line СДАЧА: 0.00 [16:16:01]line НСП 1% : 1.77 [16:16:01]line НДС 12% : 21.24 [16:16:01]line Наличными: 200.00 [16:16:01]line Безнал.: 0.00 [16:16:01]line Место: АЗС № 142 "Партнер Нефть" [16:16:01]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:16:01]line СНО: Общий режим [16:16:01]line Чек 142 24.10.2024 16:16 [16:16:01]line Смена: 510 ФФД: 1.0 [16:16:01]line ЗНМ: 0300000089 [16:16:01]line РНМ: 0000000000091691 [16:16:01]line Версия ККМ: 001 [16:16:01]line ФМ: 0000000000871795 [16:16:01]line ФД: 74698 [16:16:01]line ФПД: 46986313878287 [16:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161611&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74698&fm=46986313878287&tin=02508201610067®Number=0000000000091691&sum=20000 [16:16:01]written 0, free lines is 4095 [16:16:01]OFD Sender: Processing packet 74698 [packets to send 13, broken 12] [16:16:01]ProducePacketName [16:16:01]name=ofd_packets/00074698 [16:16:01]OFD Sender: To server: pG, [16:16:01]CommunicateWithHost lk.salyk.kg:30040 [16:16:01]ConnectInit lk.salyk.kg [16:16:02]Write to MH i2c: 01 00 00 C4 83 47 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 C4 83 00 00 00 00 00 A3 0C FD [16:16:02]RasterBufferAndPrint [16:16:02]line [16:16:02]line [16:16:02]line [16:16:02]line [16:16:02]line [16:16:02]written 0, free lines is 3241 [16:16:02]MH_Cut [16:16:02]Write to MH i2c: D1 01 00 CB 83 01 20 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: D1 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: D1 01 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: D1 01 00 CB 83 00 1F [16:16:02]Write to MH i2c: 01 00 00 CC 83 4F [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Connected sock=8 [16:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5B AE 07 01 21 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 CB 72 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 23 01 00 35 04 06 00 2A BB DA 8C 4B 0F CF 64 A3 01 19 C6 F0 E3 [16:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6B 75 47 00 EF AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 23 01 00 F4 03 04 00 4D 1A 1A 67 B6 04 01 00 00 2E 08 75 54 43 C7 93 E1 [16:16:02]CommunicateWithHost err = 0 [16:16:02]CheckOFDResponse [16:16:02]1017 (14) - 77093643461234 [16:16:02]1041 (16) - 0000000000871795 [16:16:02]1040 (4) - 74698 [16:16:02]1012 (4) - 24.10.2024 09:58 [16:16:02]1206 (1) - 0 [16:16:02]OFD Sender: Remove packet 74698 [16:16:02]ProducePacketName [16:16:02]name=ofd_packets/00074698 [16:16:02]NVStorageDeleteData [16:16:02]*** Cut start [16:16:02]*** Partial cut [16:16:02]*** CUTSNS_PIN = 1 [16:16:02]*** CUTSNS_PIN = 0 [16:16:03]OFD Sender: No OFD packet to send [16:16:03]*** Brake cut motor [16:16:03]Read from MH i2c: 01 [16:16:03]MH_I2C_Read... [16:16:03]*** Stop cut motor [16:16:03]*** Cut end [16:16:03]Read from MH i2c: 01 07 00 [16:16:03]MH_I2C_Read... [16:16:03]Read from MH i2c: 01 07 00 CC 83 00 00 00 00 00 FF 0F 64 [16:16:03]process_action close_receipt done [16:16:03]requested_data is exist [16:16:03]produce_requested_data [16:16:03]requested_item fm.sn is exist - process it [16:16:03]wFMCommunicate request_size=4 [16:16:03]MH_SAM_APDU [16:16:03]CAPDU: 80 11 00 00 [16:16:03]Write to MH i2c: E2 08 00 CD 83 80 11 00 00 00 00 00 00 CA [16:16:03]Write i2c OK [16:16:03]MH_I2C_Read... [16:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:03]Read from MH i2c: E2 [16:16:03]MH_I2C_Read... [16:16:03]Read from MH i2c: E2 17 00 [16:16:03]MH_I2C_Read... [16:16:03]Read from MH i2c: E2 17 00 CD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 22 [16:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:16:03]wFMCommunicate OK [16:16:03]requested_item fd.num is exist - process it [16:16:03]SAM_PROTO_GetFieldsCounters [16:16:03]wFMCommunicate request_size=4 [16:16:03]MH_SAM_APDU [16:16:03]CAPDU: 80 13 00 00 [16:16:03]Write to MH i2c: E2 08 00 CE 83 80 13 00 00 00 00 00 00 CD [16:16:03]Write i2c OK [16:16:03]MH_I2C_Read... [16:16:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:03]Read from MH i2c: E2 [16:16:03]MH_I2C_Read... [16:16:03]Read from MH i2c: E2 62 00 [16:16:03]MH_I2C_Read... [16:16:03]Read from MH i2c: E2 62 00 CE 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CA 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:16:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CA 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:03]wFMCommunicate OK [16:16:03]SAM_PROTO_GetFieldsCounters done [16:16:03]requested_item shift.num is exist - process it [16:16:03]requested_item shift.opened is exist - process it [16:16:03]req_shift_opened [16:16:03]FM_GetShiftState [16:16:03]SAM_PROTO_GetShiftState [16:16:03]wFMCommunicate request_size=4 [16:16:03]MH_SAM_APDU [16:16:03]CAPDU: 80 13 01 00 [16:16:03]Write to MH i2c: E2 08 00 CF 83 80 13 01 00 00 00 00 00 CF [16:16:03]Write i2c OK [16:16:03]MH_I2C_Read... [16:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:03]Read from MH i2c: E2 [16:16:03]MH_I2C_Read... [16:16:03]Read from MH i2c: E2 0E 00 [16:16:03]MH_I2C_Read... [16:16:03]Read from MH i2c: E2 0E 00 CF 83 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F9 [16:16:03]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:16:03]wFMCommunicate OK [16:16:03]SAM_PROTO_GetShiftState done [16:16:03]FM_GetShiftState done [16:16:03]req_shift_opened done [16:16:03]requested_item shift.open_date is exist - process it [16:16:03]req_shift_open_date [16:16:03]req_shift_open_date done [16:16:03]produce_requested_data done [16:16:03]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74698,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:16:03]process_action_free close_receipt [16:16:03]json_value_free [16:16:03]json_value_free done [16:16:03]process_json_proto returns [16:16:03]Send response to host [16:16:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74698,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:16:03]free response buf [16:16:03]execute_script done [16:16:03]execute_script returns [16:16:03]free content buf [16:16:03]Sock 9.Close socket [16:16:03]Sock 9.Thread stoped [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:43]recv_with_timeout no data received [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:19:59]recv_with_timeout no data received [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:33]recv_with_timeout no data received [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:41]recv_with_timeout no data received [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:22]accept exits with 10 [16:37:22]New connection [16:37:22]New thread 3066662244 created [16:37:22]Thread 3066805604 joined [16:37:22]Waiting for new connection... [16:37:22] Sock 10.Parse request [16:37:22]Sock 10.Check first char [16:37:22]Sock 10.First char is OK [16:37:22]request: POST /json_proto HTTP/1.0 [16:37:22]Method: POST [16:37:22]URL: /json_proto [16:37:22]Method is POST - this is cgi request [16:37:22]url: /json_proto [16:37:22]query_string will be loaded in cgi processing [16:37:22]execute_cgi json_proto POST (null) [16:37:22]execute_cgi path=json_proto method=POST [16:37:22]POST find Content-Length [16:37:22]Host: 172.17.39.131:8080 [16:37:22]Content-Length: 766 [16:37:22]Content-Type: application/json [16:37:22] [16:37:22]POST finish read [16:37:22]Found Content-Length = 766 [16:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:22]execute_script... [16:37: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)190665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:22]POST & json_proto [16:37:22]process_json_proto [16:37:22]json parsed OK: [16:37:22]protocol is kg_v1.0 [16:37:22]action value=close_receipt [16:37:22]process_action close_receipt [16:37:22]cmd_close_receipt [16:37:22]MH_GetDate [16:37:22]Write to MH i2c: F0 00 00 D0 83 42 [16:37:22]Write i2c OK [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: F0 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: F0 09 00 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: F0 09 00 D0 83 00 CE 77 1A 67 86 57 24 65 77 [16:37:22]GetLastDocTimeStamp 1729786571 [16:37:22]current date 1729787854 [16:37:22]FM_GetShiftState [16:37:22]SAM_PROTO_GetShiftState [16:37:22]wFMCommunicate request_size=4 [16:37:22]MH_SAM_APDU [16:37:22]CAPDU: 80 13 01 00 [16:37:22]Write to MH i2c: E2 08 00 D1 83 80 13 01 00 00 00 00 00 D1 [16:37:22]Write i2c OK [16:37:22]MH_I2C_Read... [16:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:22]Read from MH i2c: E2 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 0E 00 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 0E 00 D1 83 00 09 00 01 09 95 19 67 00 00 00 00 90 00 FB [16:37:22]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:37:22]wFMCommunicate OK [16:37:22]SAM_PROTO_GetShiftState done [16:37:22]FM_GetShiftState done [16:37:22]opened in 1729729801 [16:37:22]opened+sec_in_day 1729816201 [16:37:22]quantity*price = 50041 [16:37:22]sum+1 = 50042 [16:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 143 24.10.2024 16:37 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74699 ФПД: 254145893590319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163734&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74699&fm=254145893590319&tin=02508201610067®Number=0000000000091691&sum=50041 [16:37:23]StoreToDocumentArchive [16:37:23]shift 510 fd 74699 [16:37:23]save to /storage/0510/doc_00074699 [16:37:23]save last doc name /storage/0510/doc_00074699 to /storage/kkm_last_doc_name [16:37:23]save OK [16:37:23]Clear old archive folders... [16:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:23]tlvbuf is 00A9DDD0 [16:37:23]SAM_PROTO_ClearQueue [16:37:23]wFMCommunicate request_size=4 [16:37:23]MH_SAM_APDU [16:37:23]CAPDU: 80 09 00 00 [16:37:23]Write to MH i2c: E2 08 00 DE 83 80 09 00 00 00 00 00 00 D3 [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:23]Read from MH i2c: E2 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 DE 83 00 90 00 D5 [16:37:23]RAPDU: 90 00 [16:37:23]wFMCommunicate OK [16:37:23]SAM_PROTO_ClearQueue done [16:37:23]KKMCreateOFDPacket [16:37:23]OFDProtocolAddRootSTLVToBuf [16:37:23]FM_MakeSignedData [16:37:23]FM_MakeSignedData [16:37:23]SAM_PROTO_SignData [16:37:23]wFMCommunicate request_size=4 [16:37:23]MH_SAM_APDU [16:37:23]CAPDU: 80 0D 01 02 [16:37:23]Write to MH i2c: E2 08 00 DF 83 80 0D 01 02 00 00 00 00 DB [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:23]Read from MH i2c: E2 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 DF 83 00 90 00 D6 [16:37:23]RAPDU: 90 00 [16:37:23]wFMCommunicate OK [16:37:23]wFMCommunicate request_size=255 [16:37:23]MH_SAM_APDU [16:37: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 CE 77 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 23 01 00 35 04 06 00 E7 [16:37:23]Write to MH i2c: E2 02 01 E0 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 CE 77 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 23 01 00 35 04 06 00 E7 00 00 EC [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:23]Read from MH i2c: E2 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 E0 83 00 90 00 D7 [16:37:23]RAPDU: 90 00 [16:37:23]wFMCommunicate OK [16:37:23]wFMCommunicate request_size=10 [16:37:23]MH_SAM_APDU [16:37:23]CAPDU: 80 0D 02 02 05 24 F3 B5 65 2F [16:37:23]Write to MH i2c: E2 0D 00 E1 83 80 0D 02 02 05 00 24 F3 B5 65 2F 00 00 48 [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:23]Read from MH i2c: E2 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 03 00 E1 83 00 90 00 D8 [16:37:23]RAPDU: 90 00 [16:37:23]wFMCommunicate OK [16:37:23]wFMCommunicate request_size=4 [16:37:23]MH_SAM_APDU [16:37:23]CAPDU: 80 0D 03 02 [16:37:23]Write to MH i2c: E2 08 00 E2 83 80 0D 03 02 00 00 00 00 E0 [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:23]Read from MH i2c: E2 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 0B 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 0B 00 E2 83 00 5C E1 44 69 0F 0A 4E BC 90 00 EE [16:37:23]RAPDU: 5C E1 44 69 0F 0A 4E BC 90 00 [16:37:23]wFMCommunicate OK [16:37:23]SAM_PROTO_SignData done [16:37:23]FM_MakeSignedData done [16:37:23]CreateOFDProtocolMessage [16:37:23]wFMCommunicate request_size=4 [16:37:23]MH_SAM_APDU [16:37:23]CAPDU: 80 11 00 00 [16:37:23]Write to MH i2c: E2 08 00 E3 83 80 11 00 00 00 00 00 00 E0 [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:23]Read from MH i2c: E2 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 17 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 17 00 E3 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 38 [16:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:37:23]wFMCommunicate OK [16:37:23]CreateOFDProtocolMessage done [16:37:23]OFDSenderStorePacket 74699 [16:37:23]StoreOFDPacket docnum=74699 [16:37:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A4 9D 07 01 DC 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 CE 77 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 23 01 00 35 04 06 00 E7 24 F3 B5 65 2F 5C E1 44 69 0F 0A 4E BC [16:37:23]CheckFolder [16:37:23]dirname=/storage/ofd_packets [16:37:23]CheckFolder done [16:37:23]ProducePacketName [16:37:23]name=ofd_packets/00074699 [16:37:23]NVStorageSaveData ofd_packets/00074699 [16:37:23]File name is /storage/ofd_packets/00074699 [16:37:23]Write 301 bytes [16:37:23]NVStorageSaveData done [16:37:23]OFDSenderStorePacket done [16:37:23]KKMCreateOFDPacket done [16:37:23]NVStorageSaveData kkm_last_timestamp [16:37:23]File name is /storage/kkm_last_timestamp [16:37:23]Write 4 bytes [16:37:23]NVStorageSaveData done [16:37:23]ExternCall_PrintAddStr [16:37:23]wPrintStart [16:37:23]Write to MH i2c: 01 00 00 E4 83 67 [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: 01 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: 01 07 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: 01 07 00 E4 83 00 00 00 00 00 FF 0F 7C [16:37:23]RasterBufferAndPrint [16:37:23]line Счет N : (1)190665 [16:37:23]line ИНН: 02508201610067 [16:37:23]line Контрольно-Кассовый Чек [16:37:23]line ПРОДАЖА [16:37:23]line ТРК (МРК, ГНК) : 21 [16:37:23]line Товар: 2710124130 [16:37:23]line Аи-92-К-5 [16:37:23]line 7.480 * 66.90 [16:37:23]line = 500.41 [16:37:23]line НДС 12% НСП 1% [16:37:23]line > о реализуемом товаре [16:37:23]line ИТОГО: 500.41 [16:37:23]line НСП 1% : 4.43 [16:37:23]line НДС 12% : 53.14 [16:37:23]line Наличными: 0.00 [16:37:23]line Безнал.: 500.41 [16:37:23]line Место: АЗС № 142 "Партнер Нефть" [16:37:23]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:37:23]line СНО: Общий режим [16:37:23]line Чек 143 24.10.2024 16:37 [16:37:23]line Смена: 510 ФФД: 1.0 [16:37:23]line ЗНМ: 0300000089 [16:37:23]line РНМ: 0000000000091691 [16:37:23]line Версия ККМ: 001 [16:37:23]line Платежная система: Mbank [16:37:23]line ФМ: 0000000000871795 [16:37:23]line ФД: 74699 [16:37:23]line ФПД: 254145893590319 [16:37:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163734&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74699&fm=254145893590319&tin=02508201610067®Number=0000000000091691&sum=50041 [16:37:23]written 0, free lines is 4095 [16:37:23]OFD Sender: Processing packet 74699 [packets to send 13, broken 12] [16:37:23]ProducePacketName [16:37:23]name=ofd_packets/00074699 [16:37:24]OFD Sender: To server: pG, [16:37:24]CommunicateWithHost lk.salyk.kg:30040 [16:37:24]ConnectInit lk.salyk.kg [16:37:24]Write to MH i2c: 01 00 00 0D 84 91 [16:37:24]Write i2c OK [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: 01 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: 01 07 00 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: 01 07 00 0D 84 00 00 00 00 00 C6 0C 6A [16:37:24]RasterBufferAndPrint [16:37:24]line [16:37:24]line [16:37:24]line [16:37:24]line [16:37:24]line [16:37:24]written 0, free lines is 3276 [16:37:24]MH_Cut [16:37:24]Write to MH i2c: D1 01 00 14 84 01 6A [16:37:24]Write i2c OK [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: D1 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: D1 01 00 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: D1 01 00 14 84 00 69 [16:37:24]Write to MH i2c: 01 00 00 15 84 99 [16:37:24]Write i2c OK [16:37:24]MH_I2C_Read... [16:37:24]Connected sock=9 [16:37:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A4 9D 07 01 DC 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 CE 77 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 23 01 00 35 04 06 00 E7 24 F3 B5 65 2F 5C E1 44 69 0F 0A 4E BC [16:37:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E2 ED 47 00 8E 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 31 37 39 35 10 04 04 00 CB 23 01 00 F4 03 04 00 50 1F 1A 67 B6 04 01 00 00 83 E7 DD 7B 37 B3 A6 B0 [16:37:24]CommunicateWithHost err = 0 [16:37:24]CheckOFDResponse [16:37:24]1017 (14) - 77093643461234 [16:37:24]1041 (16) - 0000000000871795 [16:37:24]1040 (4) - 74699 [16:37:24]1012 (4) - 24.10.2024 10:20 [16:37:24]1206 (1) - 0 [16:37:24]OFD Sender: Remove packet 74699 [16:37:24]ProducePacketName [16:37:24]name=ofd_packets/00074699 [16:37:24]NVStorageDeleteData [16:37:25]*** Cut start [16:37:25]*** Partial cut [16:37:25]*** CUTSNS_PIN = 1 [16:37:25]*** CUTSNS_PIN = 0 [16:37:25]OFD Sender: No OFD packet to send [16:37:25]*** Brake cut motor [16:37:25]Read from MH i2c: 01 [16:37:25]MH_I2C_Read... [16:37:25]*** Stop cut motor [16:37:25]*** Cut end [16:37:25]Read from MH i2c: 01 07 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: 01 07 00 15 84 00 00 00 00 00 FF 0F AE [16:37:25]process_action close_receipt done [16:37:25]requested_data is exist [16:37:25]produce_requested_data [16:37:25]requested_item fm.sn is exist - process it [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 11 00 00 [16:37:25]Write to MH i2c: E2 08 00 16 84 80 11 00 00 00 00 00 00 14 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 17 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 17 00 16 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6C [16:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:37:25]wFMCommunicate OK [16:37:25]requested_item fd.num is exist - process it [16:37:25]SAM_PROTO_GetFieldsCounters [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 13 00 00 [16:37:25]Write to MH i2c: E2 08 00 17 84 80 13 00 00 00 00 00 00 17 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:26]Read from MH i2c: E2 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: E2 62 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: E2 62 00 17 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CB 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [16:37:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CB 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:26]wFMCommunicate OK [16:37:26]SAM_PROTO_GetFieldsCounters done [16:37:26]requested_item shift.num is exist - process it [16:37:26]requested_item shift.opened is exist - process it [16:37:26]req_shift_opened [16:37:26]FM_GetShiftState [16:37:26]SAM_PROTO_GetShiftState [16:37:26]wFMCommunicate request_size=4 [16:37:26]MH_SAM_APDU [16:37:26]CAPDU: 80 13 01 00 [16:37:26]Write to MH i2c: E2 08 00 18 84 80 13 01 00 00 00 00 00 19 [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:26]Read from MH i2c: E2 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: E2 0E 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: E2 0E 00 18 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 43 [16:37:26]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:37:26]wFMCommunicate OK [16:37:26]SAM_PROTO_GetShiftState done [16:37:26]FM_GetShiftState done [16:37:26]req_shift_opened done [16:37:26]requested_item shift.open_date is exist - process it [16:37:26]req_shift_open_date [16:37:26]req_shift_open_date done [16:37:26]produce_requested_data done [16:37:26]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74699,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:37:26]process_action_free close_receipt [16:37:26]json_value_free [16:37:26]json_value_free done [16:37:26]process_json_proto returns [16:37:26]Send response to host [16:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74699,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:37:26]free response buf [16:37:26]execute_script done [16:37:26]execute_script returns [16:37:26]free content buf [16:37:26]Sock 10.Close socket [16:37:26]Sock 10.Thread stoped [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]ConnectInit Can't connect to host [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:09]accept exits with 8 [16:42:09]New connection [16:42:09]New thread 3066805604 created [16:42:09]Thread 3066662244 joined [16:42:09]Waiting for new connection... [16:42:09] Sock 8.Parse request [16:42:09]Sock 8.Check first char [16:42:09]Sock 8.First char is OK [16:42:09]request: POST /json_proto HTTP/1.0 [16:42:09]Method: POST [16:42:09]URL: /json_proto [16:42:09]Method is POST - this is cgi request [16:42:09]url: /json_proto [16:42:09]query_string will be loaded in cgi processing [16:42:09]execute_cgi json_proto POST (null) [16:42:09]execute_cgi path=json_proto method=POST [16:42:09]POST find Content-Length [16:42:09]Host: 172.17.39.131:8080 [16:42:09]Content-Length: 677 [16:42:09]Content-Type: application/json [16:42:09] [16:42:09]POST finish read [16:42:09]Found Content-Length = 677 [16:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:09]execute_script... [16:42: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)190666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:09]POST & json_proto [16:42:09]process_json_proto [16:42:09]json parsed OK: [16:42:09]protocol is kg_v1.0 [16:42:09]action value=close_receipt [16:42:09]process_action close_receipt [16:42:09]cmd_close_receipt [16:42:09]MH_GetDate [16:42:09]Write to MH i2c: F0 00 00 19 84 8C [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: F0 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: F0 09 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: F0 09 00 19 84 00 ED 78 1A 67 86 57 24 65 E1 [16:42:09]GetLastDocTimeStamp 1729787854 [16:42:09]current date 1729788141 [16:42:09]FM_GetShiftState [16:42:09]SAM_PROTO_GetShiftState [16:42:09]wFMCommunicate request_size=4 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 13 01 00 [16:42:09]Write to MH i2c: E2 08 00 1A 84 80 13 01 00 00 00 00 00 1B [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:09]Read from MH i2c: E2 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 0E 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 0E 00 1A 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 45 [16:42:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:42:09]wFMCommunicate OK [16:42:09]SAM_PROTO_GetShiftState done [16:42:09]FM_GetShiftState done [16:42:09]opened in 1729729801 [16:42:09]opened+sec_in_day 1729816201 [16:42:09]quantity*price = 50041 [16:42:09]sum+1 = 50042 [16:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 144 24.10.2024 16:42 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74700 ФПД: 124289718914287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164221&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74700&fm=124289718914287&tin=02508201610067®Number=0000000000091691&sum=50000 [16:42:10]StoreToDocumentArchive [16:42:10]shift 510 fd 74700 [16:42:10]save to /storage/0510/doc_00074700 [16:42:10]save last doc name /storage/0510/doc_00074700 to /storage/kkm_last_doc_name [16:42:10]save OK [16:42:10]Clear old archive folders... [16:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:10]tlvbuf is 007D2E20 [16:42:10]SAM_PROTO_ClearQueue [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 09 00 00 [16:42:10]Write to MH i2c: E2 08 00 27 84 80 09 00 00 00 00 00 00 1D [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 27 84 00 90 00 1F [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]SAM_PROTO_ClearQueue done [16:42:10]KKMCreateOFDPacket [16:42:10]OFDProtocolAddRootSTLVToBuf [16:42:10]FM_MakeSignedData [16:42:10]FM_MakeSignedData [16:42:10]SAM_PROTO_SignData [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 01 02 [16:42:10]Write to MH i2c: E2 08 00 28 84 80 0D 01 02 00 00 00 00 25 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 28 84 00 90 00 20 [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]wFMCommunicate request_size=255 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 ED 78 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 23 01 00 35 04 06 00 71 [16:42:10]Write to MH i2c: E2 02 01 29 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 ED 78 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 23 01 00 35 04 06 00 71 00 00 90 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]OFD Sender: No OFD packet to send [16:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 29 84 00 90 00 21 [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]wFMCommunicate request_size=10 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 02 02 05 0A 74 8B 8C EF [16:42:10]Write to MH i2c: E2 0D 00 2A 84 80 0D 02 02 05 00 0A 74 8B 8C EF 00 00 B6 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 2A 84 00 90 00 22 [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 03 02 [16:42:10]Write to MH i2c: E2 08 00 2B 84 80 0D 03 02 00 00 00 00 2A [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0B 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0B 00 2B 84 00 AF 8C 28 82 29 C8 25 D0 90 00 F6 [16:42:10]RAPDU: AF 8C 28 82 29 C8 25 D0 90 00 [16:42:10]wFMCommunicate OK [16:42:10]SAM_PROTO_SignData done [16:42:10]FM_MakeSignedData done [16:42:10]CreateOFDProtocolMessage [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 11 00 00 [16:42:10]Write to MH i2c: E2 08 00 2C 84 80 11 00 00 00 00 00 00 2A [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 2C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 82 [16:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:42:10]wFMCommunicate OK [16:42:10]CreateOFDProtocolMessage done [16:42:10]OFDSenderStorePacket 74700 [16:42:10]StoreOFDPacket docnum=74700 [16:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 30 FA 07 01 2B BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 ED 78 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 23 01 00 35 04 06 00 71 0A 74 8B 8C EF AF 8C 28 82 29 C8 25 D0 [16:42:10]CheckFolder [16:42:10]dirname=/storage/ofd_packets [16:42:10]CheckFolder done [16:42:10]ProducePacketName [16:42:10]name=ofd_packets/00074700 [16:42:10]NVStorageSaveData ofd_packets/00074700 [16:42:10]File name is /storage/ofd_packets/00074700 [16:42:10]Write 301 bytes [16:42:10]NVStorageSaveData done [16:42:10]OFDSenderStorePacket done [16:42:10]KKMCreateOFDPacket done [16:42:10]NVStorageSaveData kkm_last_timestamp [16:42:10]File name is /storage/kkm_last_timestamp [16:42:10]Write 4 bytes [16:42:10]NVStorageSaveData done [16:42:10]ExternCall_PrintAddStr [16:42:10]wPrintStart [16:42:10]Write to MH i2c: 01 00 00 2D 84 B1 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 2D 84 00 00 00 00 00 FF 0F C6 [16:42:10]RasterBufferAndPrint [16:42:10]line Счет N : (1)190666 [16:42:10]line ИНН: 02508201610067 [16:42:10]line Контрольно-Кассовый Чек [16:42:10]line ПРОДАЖА [16:42:10]line ТРК (МРК, ГНК) : 21 [16:42:10]line Товар: 2710124130 [16:42:10]line Аи-92-К-5 [16:42:10]line 7.480 * 66.90 [16:42:10]line = 500.41 [16:42:10]line НДС 12% НСП 1% [16:42:10]line > о реализуемом товаре [16:42:10]line ОКРУГЛЕНИЕ: -0.41 [16:42:10]line ИТОГО: 500.00 [16:42:10]line Внесено: 500.00 [16:42:10]line СДАЧА: 0.00 [16:42:10]line НСП 1% : 4.43 [16:42:10]line НДС 12% : 53.14 [16:42:10]line Наличными: 500.00 [16:42:10]line Безнал.: 0.00 [16:42:10]line Место: АЗС № 142 "Партнер Нефть" [16:42:10]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:42:10]line СНО: Общий режим [16:42:10]line Чек 144 24.10.2024 16:42 [16:42:10]line Смена: 510 ФФД: 1.0 [16:42:10]line ЗНМ: 0300000089 [16:42:10]line РНМ: 0000000000091691 [16:42:10]line Версия ККМ: 001 [16:42:10]line ФМ: 0000000000871795 [16:42:10]line ФД: 74700 [16:42:10]line ФПД: 124289718914287 [16:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164221&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74700&fm=124289718914287&tin=02508201610067®Number=0000000000091691&sum=50000 [16:42:11]OFD Sender: Processing packet 74700 [packets to send 13, broken 12] [16:42:11]ProducePacketName [16:42:11]name=ofd_packets/00074700 [16:42:11]OFD Sender: To server: pG, [16:42:11]CommunicateWithHost lk.salyk.kg:30040 [16:42:11]ConnectInit lk.salyk.kg [16:42:11]written 0, free lines is 4095 [16:42:11]Connected sock=10 [16:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 30 FA 07 01 2B BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 ED 78 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 23 01 00 35 04 06 00 71 0A 74 8B 8C EF AF 8C 28 82 29 C8 25 D0 [16:42:11]Write to MH i2c: 01 00 00 58 84 DC [16:42:11]Write i2c OK [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: 01 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: 01 07 00 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: 01 07 00 58 84 00 00 00 00 00 9C 0C 8B [16:42:11]RasterBufferAndPrint [16:42:11]line [16:42:11]line [16:42:11]line [16:42:11]line [16:42:11]line [16:42:11]written 0, free lines is 3236 [16:42:11]MH_Cut [16:42:11]Write to MH i2c: D1 01 00 5F 84 01 B5 [16:42:11]Write i2c OK [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: D1 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: D1 01 00 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: D1 01 00 5F 84 00 B4 [16:42:11]Write to MH i2c: 01 00 00 60 84 E4 [16:42:11]Write i2c OK [16:42:11]MH_I2C_Read... [16:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 33 D2 47 00 E2 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 23 01 00 F4 03 04 00 6F 20 1A 67 B6 04 01 00 00 2B 70 88 4F BA 0B 48 35 [16:42:11]CommunicateWithHost err = 0 [16:42:11]CheckOFDResponse [16:42:11]1017 (14) - 77093643461234 [16:42:11]1041 (16) - 0000000000871795 [16:42:11]1040 (4) - 74700 [16:42:11]1012 (4) - 24.10.2024 10:24 [16:42:11]1206 (1) - 0 [16:42:11]OFD Sender: Remove packet 74700 [16:42:11]ProducePacketName [16:42:11]name=ofd_packets/00074700 [16:42:11]NVStorageDeleteData [16:42:12]OFD Sender: No OFD packet to send [16:42:12]*** Cut start [16:42:12]*** Partial cut [16:42:12]*** CUTSNS_PIN = 1 [16:42:12]*** CUTSNS_PIN = 0 [16:42:12]*** Brake cut motor [16:42:13]Read from MH i2c: 01 [16:42:13]MH_I2C_Read... [16:42:13]*** Stop cut motor [16:42:13]*** Cut end [16:42:13]Read from MH i2c: 01 07 00 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: 01 07 00 60 84 00 00 00 00 00 FF 0F F9 [16:42:13]process_action close_receipt done [16:42:13]requested_data is exist [16:42:13]produce_requested_data [16:42:13]requested_item fm.sn is exist - process it [16:42:13]wFMCommunicate request_size=4 [16:42:13]MH_SAM_APDU [16:42:13]CAPDU: 80 11 00 00 [16:42:13]Write to MH i2c: E2 08 00 61 84 80 11 00 00 00 00 00 00 5F [16:42:13]Write i2c OK [16:42:13]MH_I2C_Read... [16:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:13]Read from MH i2c: E2 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 17 00 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 17 00 61 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B7 [16:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:42:13]wFMCommunicate OK [16:42:13]requested_item fd.num is exist - process it [16:42:13]SAM_PROTO_GetFieldsCounters [16:42:13]wFMCommunicate request_size=4 [16:42:13]MH_SAM_APDU [16:42:13]CAPDU: 80 13 00 00 [16:42:13]Write to MH i2c: E2 08 00 62 84 80 13 00 00 00 00 00 00 62 [16:42:13]Write i2c OK [16:42:13]MH_I2C_Read... [16:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:13]Read from MH i2c: E2 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 62 00 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 62 00 62 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [16:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:13]wFMCommunicate OK [16:42:13]SAM_PROTO_GetFieldsCounters done [16:42:13]requested_item shift.num is exist - process it [16:42:13]requested_item shift.opened is exist - process it [16:42:13]req_shift_opened [16:42:13]FM_GetShiftState [16:42:13]SAM_PROTO_GetShiftState [16:42:13]wFMCommunicate request_size=4 [16:42:13]MH_SAM_APDU [16:42:13]CAPDU: 80 13 01 00 [16:42:13]Write to MH i2c: E2 08 00 63 84 80 13 01 00 00 00 00 00 64 [16:42:13]Write i2c OK [16:42:13]MH_I2C_Read... [16:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:13]Read from MH i2c: E2 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 0E 00 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 0E 00 63 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 8E [16:42:13]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:42:13]wFMCommunicate OK [16:42:13]SAM_PROTO_GetShiftState done [16:42:13]FM_GetShiftState done [16:42:13]req_shift_opened done [16:42:13]requested_item shift.open_date is exist - process it [16:42:13]req_shift_open_date [16:42:13]req_shift_open_date done [16:42:13]produce_requested_data done [16:42:13]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74700,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:42:13]process_action_free close_receipt [16:42:13]json_value_free [16:42:13]json_value_free done [16:42:13]process_json_proto returns [16:42:13]Send response to host [16:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74700,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:42:13]free response buf [16:42:13]execute_script done [16:42:13]execute_script returns [16:42:13]free content buf [16:42:13]Sock 8.Close socket [16:42:13]Sock 8.Thread stoped [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:38]accept exits with 9 [16:44:38]New connection [16:44:38]New thread 3066662244 created [16:44:38]Thread 3066805604 joined [16:44:38]Waiting for new connection... [16:44:38] Sock 9.Parse request [16:44:38]Sock 9.Check first char [16:44:38]Sock 9.First char is OK [16:44:38]request: POST /json_proto HTTP/1.0 [16:44:38]Method: POST [16:44:38]URL: /json_proto [16:44:38]Method is POST - this is cgi request [16:44:38]url: /json_proto [16:44:38]query_string will be loaded in cgi processing [16:44:38]execute_cgi json_proto POST (null) [16:44:38]execute_cgi path=json_proto method=POST [16:44:38]POST find Content-Length [16:44:38]Host: 172.17.39.131:8080 [16:44:38]Content-Length: 682 [16:44:38]Content-Type: application/json [16:44:38] [16:44:38]POST finish read [16:44:38]Found Content-Length = 682 [16:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:38]execute_script... [16:44: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)190667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:38]POST & json_proto [16:44:38]process_json_proto [16:44:38]json parsed OK: [16:44:38]protocol is kg_v1.0 [16:44:38]action value=close_receipt [16:44:38]process_action close_receipt [16:44:38]cmd_close_receipt [16:44:38]MH_GetDate [16:44:38]Write to MH i2c: F0 00 00 64 84 D7 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: F0 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: F0 09 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: F0 09 00 64 84 00 82 79 1A 67 86 57 24 65 C2 [16:44:38]GetLastDocTimeStamp 1729788141 [16:44:38]current date 1729788290 [16:44:38]FM_GetShiftState [16:44:38]SAM_PROTO_GetShiftState [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 13 01 00 [16:44:38]Write to MH i2c: E2 08 00 65 84 80 13 01 00 00 00 00 00 66 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 0E 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 0E 00 65 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 90 [16:44:38]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:44:38]wFMCommunicate OK [16:44:38]SAM_PROTO_GetShiftState done [16:44:38]FM_GetShiftState done [16:44:38]opened in 1729729801 [16:44:38]opened+sec_in_day 1729816201 [16:44:38]quantity*price = 150056 [16:44:38]sum+1 = 150058 [16:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 145 24.10.2024 16:44 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74701 ФПД: 179098823669991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164450&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74701&fm=179098823669991&tin=02508201610067®Number=0000000000091691&sum=150000 [16:44:39]StoreToDocumentArchive [16:44:39]shift 510 fd 74701 [16:44:39]save to /storage/0510/doc_00074701 [16:44:39]save last doc name /storage/0510/doc_00074701 to /storage/kkm_last_doc_name [16:44:39]save OK [16:44:39]Clear old archive folders... [16:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:39]tlvbuf is 00894110 [16:44:39]SAM_PROTO_ClearQueue [16:44:39]wFMCommunicate request_size=4 [16:44:39]MH_SAM_APDU [16:44:39]CAPDU: 80 09 00 00 [16:44:39]Write to MH i2c: E2 08 00 72 84 80 09 00 00 00 00 00 00 68 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:39]Read from MH i2c: E2 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 03 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 03 00 72 84 00 90 00 6A [16:44:39]RAPDU: 90 00 [16:44:39]wFMCommunicate OK [16:44:39]SAM_PROTO_ClearQueue done [16:44:39]KKMCreateOFDPacket [16:44:39]OFDProtocolAddRootSTLVToBuf [16:44:39]FM_MakeSignedData [16:44:39]FM_MakeSignedData [16:44:39]SAM_PROTO_SignData [16:44:39]wFMCommunicate request_size=4 [16:44:39]MH_SAM_APDU [16:44:39]CAPDU: 80 0D 01 02 [16:44:39]Write to MH i2c: E2 08 00 73 84 80 0D 01 02 00 00 00 00 70 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:39]Read from MH i2c: E2 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 03 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 03 00 73 84 00 90 00 6B [16:44:39]RAPDU: 90 00 [16:44:39]wFMCommunicate OK [16:44:39]wFMCommunicate request_size=255 [16:44:39]MH_SAM_APDU [16:44: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 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 82 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CD 23 01 00 35 04 06 00 A2 [16:44:39]Write to MH i2c: E2 02 01 74 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 82 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CD 23 01 00 35 04 06 00 A2 00 00 ED [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 74 84 00 90 00 6C [16:44:40]RAPDU: 90 00 [16:44:40]wFMCommunicate OK [16:44:40]wFMCommunicate request_size=10 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 0D 02 02 05 E3 B1 C3 B8 E7 [16:44:40]Write to MH i2c: E2 0D 00 75 84 80 0D 02 02 05 00 E3 B1 C3 B8 E7 00 00 73 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 03 00 75 84 00 90 00 6D [16:44:40]RAPDU: 90 00 [16:44:40]wFMCommunicate OK [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 0D 03 02 [16:44:40]Write to MH i2c: E2 08 00 76 84 80 0D 03 02 00 00 00 00 75 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 0B 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 0B 00 76 84 00 FC D7 E5 D7 4F 6D DD 32 90 00 D0 [16:44:40]RAPDU: FC D7 E5 D7 4F 6D DD 32 90 00 [16:44:40]wFMCommunicate OK [16:44:40]SAM_PROTO_SignData done [16:44:40]FM_MakeSignedData done [16:44:40]CreateOFDProtocolMessage [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 11 00 00 [16:44:40]Write to MH i2c: E2 08 00 77 84 80 11 00 00 00 00 00 00 75 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 17 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 17 00 77 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CD [16:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:44:40]wFMCommunicate OK [16:44:40]CreateOFDProtocolMessage done [16:44:40]OFDSenderStorePacket 74701 [16:44:40]StoreOFDPacket docnum=74701 [16:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 62 19 07 01 05 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 82 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CD 23 01 00 35 04 06 00 A2 E3 B1 C3 B8 E7 FC D7 E5 D7 4F 6D DD 32 [16:44:40]CheckFolder [16:44:40]dirname=/storage/ofd_packets [16:44:40]CheckFolder done [16:44:40]ProducePacketName [16:44:40]name=ofd_packets/00074701 [16:44:40]NVStorageSaveData ofd_packets/00074701 [16:44:40]File name is /storage/ofd_packets/00074701 [16:44:40]Write 301 bytes [16:44:40]NVStorageSaveData done [16:44:40]OFDSenderStorePacket done [16:44:40]KKMCreateOFDPacket done [16:44:40]NVStorageSaveData kkm_last_timestamp [16:44:40]File name is /storage/kkm_last_timestamp [16:44:40]Write 4 bytes [16:44:40]NVStorageSaveData done [16:44:40]ExternCall_PrintAddStr [16:44:40]wPrintStart [16:44:40]Write to MH i2c: 01 00 00 78 84 FC [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: 01 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: 01 07 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: 01 07 00 78 84 00 00 00 00 00 FF 0F 11 [16:44:40]RasterBufferAndPrint [16:44:40]line Счет N : (1)190667 [16:44:40]line ИНН: 02508201610067 [16:44:40]line Контрольно-Кассовый Чек [16:44:40]line ПРОДАЖА [16:44:40]line ТРК (МРК, ГНК) : 21 [16:44:40]line Товар: 2710124130 [16:44:40]line Аи-92-К-5 [16:44:40]line 22.430 * 66.90 [16:44:40]line = 1500.57 [16:44:40]line НДС 12% НСП 1% [16:44:40]line > о реализуемом товаре [16:44:40]line ОКРУГЛЕНИЕ: -0.57 [16:44:40]line ИТОГО: 1500.00 [16:44:40]line Внесено: 1500.00 [16:44:40]line СДАЧА: 0.00 [16:44:40]line НСП 1% : 13.28 [16:44:40]line НДС 12% : 159.35 [16:44:40]line Наличными: 1500.00 [16:44:40]line Безнал.: 0.00 [16:44:40]line Место: АЗС № 142 "Партнер Нефть" [16:44:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:44:40]line СНО: Общий режим [16:44:40]line Чек 145 24.10.2024 16:44 [16:44:40]line Смена: 510 ФФД: 1.0 [16:44:40]line ЗНМ: 0300000089 [16:44:40]line РНМ: 0000000000091691 [16:44:40]line Версия ККМ: 001 [16:44:40]line ФМ: 0000000000871795 [16:44:40]line ФД: 74701 [16:44:40]line ФПД: 179098823669991 [16:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164450&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74701&fm=179098823669991&tin=02508201610067®Number=0000000000091691&sum=150000 [16:44:40]written 0, free lines is 4095 [16:44:40]OFD Sender: Processing packet 74701 [packets to send 13, broken 12] [16:44:40]ProducePacketName [16:44:40]name=ofd_packets/00074701 [16:44:40]OFD Sender: To server: pG, [16:44:40]CommunicateWithHost lk.salyk.kg:30040 [16:44:40]ConnectInit lk.salyk.kg [16:44:40]Connected sock=11 [16:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 62 19 07 01 05 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 82 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CD 23 01 00 35 04 06 00 A2 E3 B1 C3 B8 E7 FC D7 E5 D7 4F 6D DD 32 [16:44:41]Write to MH i2c: 01 00 00 A3 84 27 [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: 01 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: 01 07 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: 01 07 00 A3 84 00 00 00 00 00 9D 0C D7 [16:44:41]RasterBufferAndPrint [16:44:41]line [16:44:41]line [16:44:41]line [16:44:41]line [16:44:41]line [16:44:41]written 0, free lines is 3234 [16:44:41]MH_Cut [16:44:41]Write to MH i2c: D1 01 00 AA 84 01 00 [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: D1 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: D1 01 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: D1 01 00 AA 84 00 FF [16:44:41]Write to MH i2c: 01 00 00 AB 84 2F [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9C DD 47 00 9B 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 31 37 39 35 10 04 04 00 CD 23 01 00 F4 03 04 00 04 21 1A 67 B6 04 01 00 00 4F 1C 82 21 4E CA 22 8F [16:44:41]CommunicateWithHost err = 0 [16:44:41]CheckOFDResponse [16:44:41]1017 (14) - 77093643461234 [16:44:41]1041 (16) - 0000000000871795 [16:44:41]1040 (4) - 74701 [16:44:41]1012 (4) - 24.10.2024 10:27 [16:44:41]1206 (1) - 0 [16:44:41]OFD Sender: Remove packet 74701 [16:44:41]ProducePacketName [16:44:41]name=ofd_packets/00074701 [16:44:41]NVStorageDeleteData [16:44:41]*** Cut start [16:44:41]*** Partial cut [16:44:41]*** CUTSNS_PIN = 1 [16:44:41]*** CUTSNS_PIN = 0 [16:44:42]OFD Sender: No OFD packet to send [16:44:42]*** Brake cut motor [16:44:42]Read from MH i2c: 01 [16:44:42]MH_I2C_Read... [16:44:42]*** Stop cut motor [16:44:42]*** Cut end [16:44:42]Read from MH i2c: 01 07 00 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: 01 07 00 AB 84 00 00 00 00 00 FF 0F 44 [16:44:42]process_action close_receipt done [16:44:42]requested_data is exist [16:44:42]produce_requested_data [16:44:42]requested_item fm.sn is exist - process it [16:44:42]wFMCommunicate request_size=4 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 11 00 00 [16:44:42]Write to MH i2c: E2 08 00 AC 84 80 11 00 00 00 00 00 00 AA [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:42]Read from MH i2c: E2 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 17 00 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 17 00 AC 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [16:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:44:42]wFMCommunicate OK [16:44:42]requested_item fd.num is exist - process it [16:44:42]SAM_PROTO_GetFieldsCounters [16:44:42]wFMCommunicate request_size=4 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 13 00 00 [16:44:42]Write to MH i2c: E2 08 00 AD 84 80 13 00 00 00 00 00 00 AD [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:42]Read from MH i2c: E2 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 62 00 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 62 00 AD 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CD 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [16:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CD 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:42]wFMCommunicate OK [16:44:42]SAM_PROTO_GetFieldsCounters done [16:44:42]requested_item shift.num is exist - process it [16:44:42]requested_item shift.opened is exist - process it [16:44:42]req_shift_opened [16:44:42]FM_GetShiftState [16:44:42]SAM_PROTO_GetShiftState [16:44:42]wFMCommunicate request_size=4 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 13 01 00 [16:44:42]Write to MH i2c: E2 08 00 AE 84 80 13 01 00 00 00 00 00 AF [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:42]Read from MH i2c: E2 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 0E 00 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 0E 00 AE 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D9 [16:44:42]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:44:42]wFMCommunicate OK [16:44:42]SAM_PROTO_GetShiftState done [16:44:42]FM_GetShiftState done [16:44:42]req_shift_opened done [16:44:42]requested_item shift.open_date is exist - process it [16:44:42]req_shift_open_date [16:44:42]req_shift_open_date done [16:44:42]produce_requested_data done [16:44:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74701,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:44:42]process_action_free close_receipt [16:44:42]json_value_free [16:44:42]json_value_free done [16:44:42]process_json_proto returns [16:44:42]Send response to host [16:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74701,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:44:42]free response buf [16:44:42]execute_script done [16:44:42]execute_script returns [16:44:42]free content buf [16:44:42]Sock 9.Close socket [16:44:42]Sock 9.Thread stoped [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:32]accept exits with 8 [16:45:32]New connection [16:45:32]New thread 3066805604 created [16:45:32]Thread 3066662244 joined [16:45:32]Waiting for new connection... [16:45:32] Sock 8.Parse request [16:45:32]Sock 8.Check first char [16:45:32]Sock 8.First char is OK [16:45:32]request: POST /json_proto HTTP/1.0 [16:45:32]Method: POST [16:45:32]URL: /json_proto [16:45:32]Method is POST - this is cgi request [16:45:32]url: /json_proto [16:45:32]query_string will be loaded in cgi processing [16:45:32]execute_cgi json_proto POST (null) [16:45:32]execute_cgi path=json_proto method=POST [16:45:32]POST find Content-Length [16:45:32]Host: 172.17.39.131:8080 [16:45:32]Content-Length: 677 [16:45:32]Content-Type: application/json [16:45:32] [16:45:32]POST finish read [16:45:32]Found Content-Length = 677 [16:45:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:32]execute_script... [16:45: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)190668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:32]POST & json_proto [16:45:32]process_json_proto [16:45:32]json parsed OK: [16:45:32]protocol is kg_v1.0 [16:45:32]action value=close_receipt [16:45:32]process_action close_receipt [16:45:32]cmd_close_receipt [16:45:32]MH_GetDate [16:45:32]Write to MH i2c: F0 00 00 AF 84 22 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: F0 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: F0 09 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: F0 09 00 AF 84 00 B9 79 1A 67 86 57 24 65 44 [16:45:32]GetLastDocTimeStamp 1729788290 [16:45:32]current date 1729788345 [16:45:32]FM_GetShiftState [16:45:32]SAM_PROTO_GetShiftState [16:45:32]wFMCommunicate request_size=4 [16:45:32]MH_SAM_APDU [16:45:32]CAPDU: 80 13 01 00 [16:45:32]Write to MH i2c: E2 08 00 B0 84 80 13 01 00 00 00 00 00 B1 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:32]Read from MH i2c: E2 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 0E 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 0E 00 B0 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 DB [16:45:32]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:45:32]wFMCommunicate OK [16:45:32]SAM_PROTO_GetShiftState done [16:45:32]FM_GetShiftState done [16:45:32]opened in 1729729801 [16:45:32]opened+sec_in_day 1729816201 [16:45:32]quantity*price = 50041 [16:45:32]sum+1 = 50042 [16:45:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 146 24.10.2024 16:45 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74702 ФПД: 119678918410991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164545&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74702&fm=119678918410991&tin=02508201610067®Number=0000000000091691&sum=50000 [16:45:34]StoreToDocumentArchive [16:45:34]shift 510 fd 74702 [16:45:34]save to /storage/0510/doc_00074702 [16:45:34]save last doc name /storage/0510/doc_00074702 to /storage/kkm_last_doc_name [16:45:34]save OK [16:45:34]Clear old archive folders... [16:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:34]tlvbuf is 00A51BE0 [16:45:34]SAM_PROTO_ClearQueue [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 09 00 00 [16:45:34]Write to MH i2c: E2 08 00 BD 84 80 09 00 00 00 00 00 00 B3 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 BD 84 00 90 00 B5 [16:45:34]RAPDU: 90 00 [16:45:34]wFMCommunicate OK [16:45:34]SAM_PROTO_ClearQueue done [16:45:34]KKMCreateOFDPacket [16:45:34]OFDProtocolAddRootSTLVToBuf [16:45:34]FM_MakeSignedData [16:45:34]FM_MakeSignedData [16:45:34]SAM_PROTO_SignData [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 0D 01 02 [16:45:34]Write to MH i2c: E2 08 00 BE 84 80 0D 01 02 00 00 00 00 BB [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 BE 84 00 90 00 B6 [16:45:34]RAPDU: 90 00 [16:45:34]wFMCommunicate OK [16:45:34]wFMCommunicate request_size=255 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B9 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 23 01 00 35 04 06 00 6C [16:45:34]Write to MH i2c: E2 02 01 BF 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B9 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 23 01 00 35 04 06 00 6C 00 00 F2 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 BF 84 00 90 00 B7 [16:45:34]RAPDU: 90 00 [16:45:34]wFMCommunicate OK [16:45:34]wFMCommunicate request_size=10 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 0D 02 02 05 D8 EB 6B 42 EF [16:45:34]Write to MH i2c: E2 0D 00 C0 84 80 0D 02 02 05 00 D8 EB 6B 42 EF 00 00 27 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 03 00 C0 84 00 90 00 B8 [16:45:34]RAPDU: 90 00 [16:45:34]wFMCommunicate OK [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 0D 03 02 [16:45:34]Write to MH i2c: E2 08 00 C1 84 80 0D 03 02 00 00 00 00 C0 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 0B 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 0B 00 C1 84 00 14 60 3C 24 82 13 85 4E 90 00 FD [16:45:34]RAPDU: 14 60 3C 24 82 13 85 4E 90 00 [16:45:34]wFMCommunicate OK [16:45:34]SAM_PROTO_SignData done [16:45:34]FM_MakeSignedData done [16:45:34]CreateOFDProtocolMessage [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 11 00 00 [16:45:34]Write to MH i2c: E2 08 00 C2 84 80 11 00 00 00 00 00 00 C0 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 17 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 17 00 C2 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 18 [16:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:45:34]wFMCommunicate OK [16:45:34]CreateOFDProtocolMessage done [16:45:34]OFDSenderStorePacket 74702 [16:45:34]StoreOFDPacket docnum=74702 [16:45:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 04 F7 07 01 07 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B9 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 23 01 00 35 04 06 00 6C D8 EB 6B 42 EF 14 60 3C 24 82 13 85 4E [16:45:34]CheckFolder [16:45:34]dirname=/storage/ofd_packets [16:45:34]CheckFolder done [16:45:34]ProducePacketName [16:45:34]name=ofd_packets/00074702 [16:45:34]NVStorageSaveData ofd_packets/00074702 [16:45:34]File name is /storage/ofd_packets/00074702 [16:45:34]Write 301 bytes [16:45:34]NVStorageSaveData done [16:45:34]OFDSenderStorePacket done [16:45:34]KKMCreateOFDPacket done [16:45:34]NVStorageSaveData kkm_last_timestamp [16:45:34]File name is /storage/kkm_last_timestamp [16:45:34]Write 4 bytes [16:45:34]NVStorageSaveData done [16:45:34]ExternCall_PrintAddStr [16:45:34]wPrintStart [16:45:34]Write to MH i2c: 01 00 00 C3 84 47 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: 01 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: 01 07 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: 01 07 00 C3 84 00 00 00 00 00 FF 0F 5C [16:45:34]RasterBufferAndPrint [16:45:34]line Счет N : (1)190668 [16:45:34]line ИНН: 02508201610067 [16:45:34]line Контрольно-Кассовый Чек [16:45:34]line ПРОДАЖА [16:45:34]line ТРК (МРК, ГНК) : 21 [16:45:34]line Товар: 2710124130 [16:45:34]line Аи-92-К-5 [16:45:34]line 7.480 * 66.90 [16:45:34]line = 500.41 [16:45:34]line НДС 12% НСП 1% [16:45:34]line > о реализуемом товаре [16:45:34]line ОКРУГЛЕНИЕ: -0.41 [16:45:34]line ИТОГО: 500.00 [16:45:34]line Внесено: 500.00 [16:45:34]line СДАЧА: 0.00 [16:45:34]line НСП 1% : 4.43 [16:45:34]line НДС 12% : 53.14 [16:45:34]line Наличными: 500.00 [16:45:34]line Безнал.: 0.00 [16:45:34]line Место: АЗС № 142 "Партнер Нефть" [16:45:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:45:34]line СНО: Общий режим [16:45:34]line Чек 146 24.10.2024 16:45 [16:45:34]line Смена: 510 ФФД: 1.0 [16:45:34]line ЗНМ: 0300000089 [16:45:34]line РНМ: 0000000000091691 [16:45:34]line Версия ККМ: 001 [16:45:34]line ФМ: 0000000000871795 [16:45:34]line ФД: 74702 [16:45:34]line ФПД: 119678918410991 [16:45:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164545&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74702&fm=119678918410991&tin=02508201610067®Number=0000000000091691&sum=50000 [16:45:35]written 0, free lines is 4095 [16:45:35]OFD Sender: Processing packet 74702 [packets to send 13, broken 12] [16:45:35]ProducePacketName [16:45:35]name=ofd_packets/00074702 [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:35]Connected sock=10 [16:45:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 04 F7 07 01 07 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B9 79 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 23 01 00 35 04 06 00 6C D8 EB 6B 42 EF 14 60 3C 24 82 13 85 4E [16:45:35]Write to MH i2c: 01 00 00 EE 84 72 [16:45:35]Write i2c OK [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: 01 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: 01 07 00 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: 01 07 00 EE 84 00 00 00 00 00 A7 0C 2C [16:45:35]RasterBufferAndPrint [16:45:35]line [16:45:35]line [16:45:35]line [16:45:35]line [16:45:35]line [16:45:35]written 0, free lines is 3245 [16:45:35]MH_Cut [16:45:35]Write to MH i2c: D1 01 00 F5 84 01 4B [16:45:35]Write i2c OK [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: D1 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: D1 01 00 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: D1 01 00 F5 84 00 4A [16:45:35]Write to MH i2c: 01 00 00 F6 84 7A [16:45:35]Write i2c OK [16:45:35]MH_I2C_Read... [16:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 55 9A 47 00 95 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 23 01 00 F4 03 04 00 3A 21 1A 67 B6 04 01 00 00 5D 63 E0 BD 63 50 8C C4 [16:45:35]CommunicateWithHost err = 0 [16:45:35]CheckOFDResponse [16:45:35]1017 (14) - 77093643461234 [16:45:35]1041 (16) - 0000000000871795 [16:45:35]1040 (4) - 74702 [16:45:35]1012 (4) - 24.10.2024 10:28 [16:45:35]1206 (1) - 0 [16:45:35]OFD Sender: Remove packet 74702 [16:45:35]ProducePacketName [16:45:35]name=ofd_packets/00074702 [16:45:35]NVStorageDeleteData [16:45:36]OFD Sender: No OFD packet to send [16:45:36]*** Cut start [16:45:36]*** Partial cut [16:45:36]*** CUTSNS_PIN = 1 [16:45:36]*** CUTSNS_PIN = 0 [16:45:36]*** Brake cut motor [16:45:36]Read from MH i2c: 01 [16:45:36]MH_I2C_Read... [16:45:36]*** Stop cut motor [16:45:36]*** Cut end [16:45:36]Read from MH i2c: 01 07 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: 01 07 00 F6 84 00 00 00 00 00 FF 0F 8F [16:45:36]process_action close_receipt done [16:45:36]requested_data is exist [16:45:36]produce_requested_data [16:45:36]requested_item fm.sn is exist - process it [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 11 00 00 [16:45:36]Write to MH i2c: E2 08 00 F7 84 80 11 00 00 00 00 00 00 F5 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 17 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 17 00 F7 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4D [16:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:45:36]wFMCommunicate OK [16:45:36]requested_item fd.num is exist - process it [16:45:36]SAM_PROTO_GetFieldsCounters [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 13 00 00 [16:45:36]Write to MH i2c: E2 08 00 F8 84 80 13 00 00 00 00 00 00 F8 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:37]Read from MH i2c: E2 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 62 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 62 00 F8 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [16:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:37]wFMCommunicate OK [16:45:37]SAM_PROTO_GetFieldsCounters done [16:45:37]requested_item shift.num is exist - process it [16:45:37]requested_item shift.opened is exist - process it [16:45:37]req_shift_opened [16:45:37]FM_GetShiftState [16:45:37]SAM_PROTO_GetShiftState [16:45:37]wFMCommunicate request_size=4 [16:45:37]MH_SAM_APDU [16:45:37]CAPDU: 80 13 01 00 [16:45:37]Write to MH i2c: E2 08 00 F9 84 80 13 01 00 00 00 00 00 FA [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:37]Read from MH i2c: E2 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 0E 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 0E 00 F9 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 24 [16:45:37]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [16:45:37]wFMCommunicate OK [16:45:37]SAM_PROTO_GetShiftState done [16:45:37]FM_GetShiftState done [16:45:37]req_shift_opened done [16:45:37]requested_item shift.open_date is exist - process it [16:45:37]req_shift_open_date [16:45:37]req_shift_open_date done [16:45:37]produce_requested_data done [16:45:37]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74702,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [16:45:37]process_action_free close_receipt [16:45:37]json_value_free [16:45:37]json_value_free done [16:45:37]process_json_proto returns [16:45:37]Send response to host [16:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74702,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [16:45:37]free response buf [16:45:37]execute_script done [16:45:37]execute_script returns [16:45:37]free content buf [16:45:37]Sock 8.Close socket [16:45:37]Sock 8.Thread stoped [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:03]recv_with_timeout no data received [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52: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:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:54:59]recv_with_timeout no data received [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:42]recv_with_timeout no data received [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [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:43]accept exits with 9 [17:02:43]New connection [17:02:43]New thread 3066662244 created [17:02:43]Thread 3066805604 joined [17:02:43]Waiting for new connection... [17:02:43] Sock 9.Parse request [17:02:43]Sock 9.Check first char [17:02:43]Sock 9.First char is OK [17:02:43]request: POST /json_proto HTTP/1.0 [17:02:43]Method: POST [17:02:43]URL: /json_proto [17:02:43]Method is POST - this is cgi request [17:02:43]url: /json_proto [17:02:43]query_string will be loaded in cgi processing [17:02:43]execute_cgi json_proto POST (null) [17:02:43]execute_cgi path=json_proto method=POST [17:02:43]POST find Content-Length [17:02:43]Host: 172.17.39.131:8080 [17:02:43]Content-Length: 677 [17:02:43]Content-Type: application/json [17:02:43] [17:02:43]POST finish read [17:02:43]Found Content-Length = 677 [17:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:43]execute_script... [17:02: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)190669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:43]POST & json_proto [17:02:43]process_json_proto [17:02:43]json parsed OK: [17:02:43]protocol is kg_v1.0 [17:02:43]action value=close_receipt [17:02:43]process_action close_receipt [17:02:43]cmd_close_receipt [17:02:43]MH_GetDate [17:02:43]Write to MH i2c: F0 00 00 FA 84 6D [17:02:43]Write i2c OK [17:02:43]MH_I2C_Read... [17:02:43]Read from MH i2c: F0 [17:02:43]MH_I2C_Read... [17:02:43]Read from MH i2c: F0 09 00 [17:02:43]MH_I2C_Read... [17:02:43]Read from MH i2c: F0 09 00 FA 84 00 C0 7D 1A 67 86 57 24 65 9A [17:02:43]GetLastDocTimeStamp 1729788345 [17:02:43]current date 1729789376 [17:02:43]FM_GetShiftState [17:02:43]SAM_PROTO_GetShiftState [17:02:43]wFMCommunicate request_size=4 [17:02:43]MH_SAM_APDU [17:02:43]CAPDU: 80 13 01 00 [17:02:43]Write to MH i2c: E2 08 00 FB 84 80 13 01 00 00 00 00 00 FC [17:02:43]Write i2c OK [17:02:43]MH_I2C_Read... [17:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:43]Read from MH i2c: E2 [17:02:43]MH_I2C_Read... [17:02:43]Read from MH i2c: E2 0E 00 [17:02:43]MH_I2C_Read... [17:02:43]Read from MH i2c: E2 0E 00 FB 84 00 09 00 01 09 95 19 67 00 00 00 00 90 00 26 [17:02:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:02:43]wFMCommunicate OK [17:02:43]SAM_PROTO_GetShiftState done [17:02:43]FM_GetShiftState done [17:02:43]opened in 1729729801 [17:02:43]opened+sec_in_day 1729816201 [17:02:43]quantity*price = 30038 [17:02:43]sum+1 = 30039 [17:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 147 24.10.2024 17:02 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74703 ФПД: 247277150579242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170256&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74703&fm=247277150579242&tin=02508201610067®Number=0000000000091691&sum=30000 [17:02:45]StoreToDocumentArchive [17:02:45]shift 510 fd 74703 [17:02:45]save to /storage/0510/doc_00074703 [17:02:45]save last doc name /storage/0510/doc_00074703 to /storage/kkm_last_doc_name [17:02:45]save OK [17:02:45]Clear old archive folders... [17:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:45]tlvbuf is 008255D0 [17:02:45]SAM_PROTO_ClearQueue [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 09 00 00 [17:02:45]Write to MH i2c: E2 08 00 08 85 80 09 00 00 00 00 00 00 FF [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:45]Read from MH i2c: E2 03 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 08 85 00 90 00 01 [17:02:45]RAPDU: 90 00 [17:02:45]wFMCommunicate OK [17:02:45]SAM_PROTO_ClearQueue done [17:02:45]KKMCreateOFDPacket [17:02:45]OFDProtocolAddRootSTLVToBuf [17:02:45]FM_MakeSignedData [17:02:45]FM_MakeSignedData [17:02:45]SAM_PROTO_SignData [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 0D 01 02 [17:02:45]Write to MH i2c: E2 08 00 09 85 80 0D 01 02 00 00 00 00 07 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 09 85 00 90 00 02 [17:02:45]RAPDU: 90 00 [17:02:45]wFMCommunicate OK [17:02:45]wFMCommunicate request_size=255 [17:02:45]MH_SAM_APDU [17:02: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 C0 7D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CF 23 01 00 35 04 06 00 E0 [17:02:45]Write to MH i2c: E2 02 01 0A 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 C0 7D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CF 23 01 00 35 04 06 00 E0 00 00 B3 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 0A 85 00 90 00 03 [17:02:45]RAPDU: 90 00 [17:02:45]wFMCommunicate OK [17:02:45]wFMCommunicate request_size=10 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 0D 02 02 05 E5 B2 B8 AA 2A [17:02:45]Write to MH i2c: E2 0D 00 0B 85 80 0D 02 02 05 00 E5 B2 B8 AA 2A 00 00 37 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 0B 85 00 90 00 04 [17:02:45]RAPDU: 90 00 [17:02:45]wFMCommunicate OK [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 0D 03 02 [17:02:45]Write to MH i2c: E2 08 00 0C 85 80 0D 03 02 00 00 00 00 0C [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 0B 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 0B 00 0C 85 00 5E CA C6 58 8E FD C9 92 90 00 39 [17:02:45]RAPDU: 5E CA C6 58 8E FD C9 92 90 00 [17:02:45]wFMCommunicate OK [17:02:45]SAM_PROTO_SignData done [17:02:45]FM_MakeSignedData done [17:02:45]CreateOFDProtocolMessage [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 11 00 00 [17:02:45]Write to MH i2c: E2 08 00 0D 85 80 11 00 00 00 00 00 00 0C [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 17 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 17 00 0D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 64 [17:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:02:45]wFMCommunicate OK [17:02:45]CreateOFDProtocolMessage done [17:02:45]OFDSenderStorePacket 74703 [17:02:45]StoreOFDPacket docnum=74703 [17:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74703,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:02:48]free response buf [17:02:48]execute_script done [17:02:48]execute_script returns [17:02:48]free content buf [17:02:48]Sock 9.Close socket [17:02:48]Sock 9.Thread stoped [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:52]accept exits with 8 [17:05:52]New connection [17:05:52]New thread 3066805604 created [17:05:52]Thread 3066662244 joined [17:05:52]Waiting for new connection... [17:05:52] Sock 8.Parse request [17:05:52]Sock 8.Check first char [17:05:52]Sock 8.First char is OK [17:05:52]request: POST /json_proto HTTP/1.0 [17:05:52]Method: POST [17:05:52]URL: /json_proto [17:05:52]Method is POST - this is cgi request [17:05:52]url: /json_proto [17:05:52]query_string will be loaded in cgi processing [17:05:52]execute_cgi json_proto POST (null) [17:05:52]execute_cgi path=json_proto method=POST [17:05:52]POST find Content-Length [17:05:52]Host: 172.17.39.131:8080 [17:05:52]Content-Length: 803 [17:05:52]Content-Type: application/json [17:05:52] [17:05:52]POST finish read [17:05:52]Found Content-Length = 803 [17:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:52]execute_script... [17:05:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:52]POST & json_proto [17:05:52]process_json_proto [17:05:52]json parsed OK: [17:05:52]protocol is kg_v1.0 [17:05:52]action value=close_receipt [17:05:52]process_action close_receipt [17:05:52]cmd_close_receipt [17:05:52]MH_GetDate [17:05:52]Write to MH i2c: F0 00 00 45 85 B9 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: F0 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: F0 09 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: F0 09 00 45 85 00 7C 7E 1A 67 86 57 24 65 A3 [17:05:52]GetLastDocTimeStamp 1729789376 [17:05:52]current date 1729789564 [17:05:52]FM_GetShiftState [17:05:52]SAM_PROTO_GetShiftState [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 13 01 00 [17:05:52]Write to MH i2c: E2 08 00 46 85 80 13 01 00 00 00 00 00 48 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0E 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0E 00 46 85 00 09 00 01 09 95 19 67 00 00 00 00 90 00 72 [17:05:52]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:05:52]wFMCommunicate OK [17:05:52]SAM_PROTO_GetShiftState done [17:05:52]FM_GetShiftState done [17:05:52]opened in 1729729801 [17:05:52]opened+sec_in_day 1729816201 [17:05:52]quantity*price = 100015 [17:05:52]sum+1 = 100017 [17:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 148 24.10.2024 17:06 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 74704 ФПД: 265500455607450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170604&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74704&fm=265500455607450&tin=02508201610067®Number=0000000000091691&sum=100016 [17:05:53]StoreToDocumentArchive [17:05:53]shift 510 fd 74704 [17:05:53]save to /storage/0510/doc_00074704 [17:05:53]save last doc name /storage/0510/doc_00074704 to /storage/kkm_last_doc_name [17:05:53]save OK [17:05:53]Clear old archive folders... [17:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:53]tlvbuf is 00A9DF50 [17:05:53]SAM_PROTO_ClearQueue [17:05:53]wFMCommunicate request_size=4 [17:05:53]MH_SAM_APDU [17:05:53]CAPDU: 80 09 00 00 [17:05:53]Write to MH i2c: E2 08 00 53 85 80 09 00 00 00 00 00 00 4A [17:05:53]Write i2c OK [17:05:53]MH_I2C_Read... [17:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:53]Read from MH i2c: E2 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: E2 03 00 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: E2 03 00 53 85 00 90 00 4C [17:05:53]RAPDU: 90 00 [17:05:53]wFMCommunicate OK [17:05:53]SAM_PROTO_ClearQueue done [17:05:53]KKMCreateOFDPacket [17:05:53]OFDProtocolAddRootSTLVToBuf [17:05:53]FM_MakeSignedData [17:05:53]FM_MakeSignedData [17:05:53]SAM_PROTO_SignData [17:05:53]wFMCommunicate request_size=4 [17:05:53]MH_SAM_APDU [17:05:53]CAPDU: 80 0D 01 02 [17:05:53]Write to MH i2c: E2 08 00 54 85 80 0D 01 02 00 00 00 00 52 [17:05:53]Write i2c OK [17:05:53]MH_I2C_Read... [17:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 03 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 03 00 54 85 00 90 00 4D [17:05:54]RAPDU: 90 00 [17:05:54]wFMCommunicate OK [17:05:54]wFMCommunicate request_size=255 [17:05:54]MH_SAM_APDU [17:05: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7C 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 23 01 00 35 04 06 00 F1 [17:05:54]Write to MH i2c: E2 02 01 55 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7C 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 23 01 00 35 04 06 00 F1 00 00 F4 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 03 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 03 00 55 85 00 90 00 4E [17:05:54]RAPDU: 90 00 [17:05:54]wFMCommunicate OK [17:05:54]wFMCommunicate request_size=10 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 0D 02 02 05 78 A4 58 1C 9A [17:05:54]Write to MH i2c: E2 0D 00 56 85 80 0D 02 02 05 00 78 A4 58 1C 9A 00 00 89 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 03 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 03 00 56 85 00 90 00 4F [17:05:54]RAPDU: 90 00 [17:05:54]wFMCommunicate OK [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 0D 03 02 [17:05:54]Write to MH i2c: E2 08 00 57 85 80 0D 03 02 00 00 00 00 57 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0B 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0B 00 57 85 00 D0 47 A8 E6 85 51 90 B5 90 00 18 [17:05:54]RAPDU: D0 47 A8 E6 85 51 90 B5 90 00 [17:05:54]wFMCommunicate OK [17:05:54]SAM_PROTO_SignData done [17:05:54]FM_MakeSignedData done [17:05:54]CreateOFDProtocolMessage [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 11 00 00 [17:05:54]Write to MH i2c: E2 08 00 58 85 80 11 00 00 00 00 00 00 57 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 17 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 17 00 58 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AF [17:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:05:54]wFMCommunicate OK [17:05:54]CreateOFDProtocolMessage done [17:05:54]OFDSenderStorePacket 74704 [17:05:54]StoreOFDPacket docnum=74704 [17:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 35 E8 07 01 6F 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7C 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 23 01 00 35 04 06 00 F1 78 A4 58 1C 9A D0 47 A8 E6 85 51 90 B5 [17:05:54]CheckFolder [17:05:54]dirname=/storage/ofd_packets [17:05:54]CheckFolder done [17:05:54]ProducePacketName [17:05:54]name=ofd_packets/00074704 [17:05:54]NVStorageSaveData ofd_packets/00074704 [17:05:54]File name is /storage/ofd_packets/00074704 [17:05:54]Write 301 bytes [17:05:54]NVStorageSaveData done [17:05:54]OFDSenderStorePacket done [17:05:54]KKMCreateOFDPacket done [17:05:54]NVStorageSaveData kkm_last_timestamp [17:05:54]File name is /storage/kkm_last_timestamp [17:05:54]Write 4 bytes [17:05:54]NVStorageSaveData done [17:05:54]ExternCall_PrintAddStr [17:05:54]wPrintStart [17:05:54]Write to MH i2c: 01 00 00 59 85 DE [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: 01 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: 01 07 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: 01 07 00 59 85 00 00 00 00 00 FF 0F F3 [17:05:54]RasterBufferAndPrint [17:05:54]line Счет N : (1)190670 [17:05:54]line ИНН: 02508201610067 [17:05:54]line Контрольно-Кассовый Чек [17:05:54]line ПРОДАЖА [17:05:54]line ТРК (МРК, ГНК) : 21 [17:05:54]line Товар: 2710124130 [17:05:54]line Аи-92-К-5 [17:05:54]line 14.950 * 66.90 [17:05:54]line = 1000.16 [17:05:54]line НДС 12% НСП 1% [17:05:54]line > о реализуемом товаре [17:05:54]line ИТОГО: 1000.16 [17:05:54]line НСП 1% : 8.85 [17:05:54]line НДС 12% : 106.21 [17:05:54]line Наличными: 0.00 [17:05:54]line Безнал.: 1000.16 [17:05:54]line Место: АЗС № 142 "Партнер Нефть" [17:05:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:05:54]line СНО: Общий режим [17:05:54]line Чек 148 24.10.2024 17:06 [17:05:54]line Смена: 510 ФФД: 1.0 [17:05:54]line ЗНМ: 0300000089 [17:05:54]line РНМ: 0000000000091691 [17:05:54]line Версия ККМ: 001 [17:05:54]line Платежная система: O! деньги [17:05:54]line ФМ: 0000000000871795 [17:05:54]line ФД: 74704 [17:05:54]line ФПД: 265500455607450 [17:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170604&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74704&fm=265500455607450&tin=02508201610067®Number=0000000000091691&sum=100016 [17:05:54]written 0, free lines is 4095 [17:05:54]OFD Sender: Processing packet 74704 [packets to send 13, broken 12] [17:05:54]ProducePacketName [17:05:54]name=ofd_packets/00074704 [17:05:54]OFD Sender: To server: pG, [17:05:54]CommunicateWithHost lk.salyk.kg:30040 [17:05:54]ConnectInit lk.salyk.kg [17:05:55]Write to MH i2c: 01 00 00 83 85 08 [17:05:55]Write i2c OK [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: 01 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: 01 07 00 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: 01 07 00 83 85 00 00 00 00 00 B5 0C D0 [17:05:55]RasterBufferAndPrint [17:05:55]line [17:05:55]line [17:05:55]line [17:05:55]line [17:05:55]line [17:05:55]written 0, free lines is 3260 [17:05:55]MH_Cut [17:05:55]Write to MH i2c: D1 01 00 8A 85 01 E1 [17:05:55]Write i2c OK [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: D1 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: D1 01 00 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: D1 01 00 8A 85 00 E0 [17:05:55]Write to MH i2c: 01 00 00 8B 85 10 [17:05:55]Write i2c OK [17:05:55]MH_I2C_Read... [17:05:56]*** Cut start [17:05:56]*** Partial cut [17:05:56]*** CUTSNS_PIN = 1 [17:05:56]*** CUTSNS_PIN = 0 [17:05:56]*** Brake cut motor [17:05:56]Read from MH i2c: 01 [17:05:56]MH_I2C_Read... [17:05:56]*** Stop cut motor [17:05:56]*** Cut end [17:05:56]Read from MH i2c: 01 07 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: 01 07 00 8B 85 00 00 00 00 00 FF 0F 25 [17:05:56]process_action close_receipt done [17:05:56]requested_data is exist [17:05:56]produce_requested_data [17:05:56]requested_item fm.sn is exist - process it [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 11 00 00 [17:05:56]Write to MH i2c: E2 08 00 8C 85 80 11 00 00 00 00 00 00 8B [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 17 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 17 00 8C 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E3 [17:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:05:56]wFMCommunicate OK [17:05:56]requested_item fd.num is exist - process it [17:05:56]SAM_PROTO_GetFieldsCounters [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 13 00 00 [17:05:56]Write to MH i2c: E2 08 00 8D 85 80 13 00 00 00 00 00 00 8E [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 62 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 62 00 8D 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D0 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [17:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D0 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:56]wFMCommunicate OK [17:05:56]SAM_PROTO_GetFieldsCounters done [17:05:56]requested_item shift.num is exist - process it [17:05:56]requested_item shift.opened is exist - process it [17:05:56]req_shift_opened [17:05:56]FM_GetShiftState [17:05:56]SAM_PROTO_GetShiftState [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 13 01 00 [17:05:56]Write to MH i2c: E2 08 00 8E 85 80 13 01 00 00 00 00 00 90 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:57]Read from MH i2c: E2 0E 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 0E 00 8E 85 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BA [17:05:57]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:05:57]wFMCommunicate OK [17:05:57]SAM_PROTO_GetShiftState done [17:05:57]FM_GetShiftState done [17:05:57]req_shift_opened done [17:05:57]requested_item shift.open_date is exist - process it [17:05:57]req_shift_open_date [17:05:57]req_shift_open_date done [17:05:57]produce_requested_data done [17:05:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74704,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:05:57]process_action_free close_receipt [17:05:57]json_value_free [17:05:57]json_value_free done [17:05:57]process_json_proto returns [17:05:57]Send response to host [17:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74704,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:05:57]free response buf [17:05:57]execute_script done [17:05:57]execute_script returns [17:05:57]free content buf [17:05:57]Sock 8.Close socket [17:05:57]Sock 8.Thread stoped [17:05:59]ConnectInit Can't take IP for lk.salyk.kg [17:05:59]CommunicateWithHost connect error [17:05:59]CommunicateWithHost err = -1 [17:05:59]OFD Sender: Server communicate error [17:06:04]OFD Sender: Processing packet 74704 [packets to send 13, broken 12] [17:06:04]ProducePacketName [17:06:04]name=ofd_packets/00074704 [17:06:04]OFD Sender: To server: pG, [17:06:04]CommunicateWithHost lk.salyk.kg:30040 [17:06:04]ConnectInit lk.salyk.kg [17:06:08]int [17:06:08]Write to MH i2c: 01 00 00 8F 85 14 [17:06:08]*** FLAG_PRN_KEY set [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 8F 85 00 08 00 00 00 FF 0F 31 [17:06:08]state=0 [17:06:08]Key pressed [17:06:08]Feed [17:06:08]Write to MH i2c: D8 00 00 90 85 EC [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: D8 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: D8 01 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: D8 01 00 90 85 00 ED [17:06:08]int [17:06:08]Write to MH i2c: 01 00 00 91 85 16 [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 91 85 00 48 00 00 00 3C 00 A1 [17:06:08]state=2 [17:06:08]Key pressed [17:06:08]int [17:06:08]Write to MH i2c: 01 00 00 92 85 17 [17:06:08]*** FLAG_PRN_KEY reset [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 92 85 00 00 00 00 00 FA 0F 27 [17:06:08]state=2 [17:06:08]Stop feed [17:06:09]ConnectInit Can't take IP for lk.salyk.kg [17:06:09]CommunicateWithHost connect error [17:06:09]CommunicateWithHost err = -1 [17:06:09]OFD Sender: Server communicate error [17:06:14]OFD Sender: Processing packet 74704 [packets to send 13, broken 12] [17:06:14]ProducePacketName [17:06:14]name=ofd_packets/00074704 [17:06:14]OFD Sender: To server: pG, [17:06:14]CommunicateWithHost lk.salyk.kg:30040 [17:06:14]ConnectInit lk.salyk.kg [17:06:14]ConnectInit Can't connect to host [17:06:19]ConnectInit Can't take IP for lk.salyk.kg [17:06:19]CommunicateWithHost connect error [17:06:19]CommunicateWithHost err = -1 [17:06:19]OFD Sender: Server communicate error [17:06:21]accept exits with 10 [17:06:21]New connection [17:06:21]New thread 3066662244 created [17:06:21]Thread 3066805604 joined [17:06:21]Waiting for new connection... [17:06:21] Sock 10.Parse request [17:06:21]Sock 10.Check first char [17:06:21]Sock 10.First char is OK [17:06:21]request: POST /json_proto HTTP/1.0 [17:06:21]Method: POST [17:06:21]URL: /json_proto [17:06:21]Method is POST - this is cgi request [17:06:21]url: /json_proto [17:06:21]query_string will be loaded in cgi processing [17:06:21]execute_cgi json_proto POST (null) [17:06:21]execute_cgi path=json_proto method=POST [17:06:21]POST find Content-Length [17:06:21]Host: 172.17.39.131:8080 [17:06:21]Content-Length: 677 [17:06:21]Content-Type: application/json [17:06:21] [17:06:21]POST finish read [17:06:21]Found Content-Length = 677 [17:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:21]execute_script... [17:06: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)190671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:21]POST & json_proto [17:06:21]process_json_proto [17:06:21]json parsed OK: [17:06:21]protocol is kg_v1.0 [17:06:21]action value=close_receipt [17:06:21]process_action close_receipt [17:06:21]cmd_close_receipt [17:06:21]MH_GetDate [17:06:21]Write to MH i2c: F0 00 00 93 85 07 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: F0 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: F0 09 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: F0 09 00 93 85 00 99 7E 1A 67 86 57 24 65 0E [17:06:21]GetLastDocTimeStamp 1729789564 [17:06:21]current date 1729789593 [17:06:21]FM_GetShiftState [17:06:21]SAM_PROTO_GetShiftState [17:06:21]wFMCommunicate request_size=4 [17:06:21]MH_SAM_APDU [17:06:21]CAPDU: 80 13 01 00 [17:06:21]Write to MH i2c: E2 08 00 94 85 80 13 01 00 00 00 00 00 96 [17:06:21]Write i2c OK [17:06:21]MH_I2C_Read... [17:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:21]Read from MH i2c: E2 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 0E 00 [17:06:21]MH_I2C_Read... [17:06:21]Read from MH i2c: E2 0E 00 94 85 00 09 00 01 09 95 19 67 00 00 00 00 90 00 C0 [17:06:21]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:06:21]wFMCommunicate OK [17:06:21]SAM_PROTO_GetShiftState done [17:06:21]FM_GetShiftState done [17:06:21]opened in 1729729801 [17:06:21]opened+sec_in_day 1729816201 [17:06:21]quantity*price = 30038 [17:06:21]sum+1 = 30039 [17:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 149 24.10.2024 17:06 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74705 ФПД: 68506212486546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170633&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74705&fm=68506212486546&tin=02508201610067®Number=0000000000091691&sum=30000 [17:06:22]StoreToDocumentArchive [17:06:22]shift 510 fd 74705 [17:06:22]save to /storage/0510/doc_00074705 [17:06:22]save last doc name /storage/0510/doc_00074705 to /storage/kkm_last_doc_name [17:06:22]save OK [17:06:22]Clear old archive folders... [17:06:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:22]tlvbuf is B6E84ED0 [17:06:22]SAM_PROTO_ClearQueue [17:06:22]wFMCommunicate request_size=4 [17:06:22]MH_SAM_APDU [17:06:22]CAPDU: 80 09 00 00 [17:06:22]Write to MH i2c: E2 08 00 A1 85 80 09 00 00 00 00 00 00 98 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:22]Read from MH i2c: E2 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 03 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 03 00 A1 85 00 90 00 9A [17:06:22]RAPDU: 90 00 [17:06:22]wFMCommunicate OK [17:06:22]SAM_PROTO_ClearQueue done [17:06:22]KKMCreateOFDPacket [17:06:22]OFDProtocolAddRootSTLVToBuf [17:06:22]FM_MakeSignedData [17:06:22]FM_MakeSignedData [17:06:22]SAM_PROTO_SignData [17:06:22]wFMCommunicate request_size=4 [17:06:22]MH_SAM_APDU [17:06:22]CAPDU: 80 0D 01 02 [17:06:22]Write to MH i2c: E2 08 00 A2 85 80 0D 01 02 00 00 00 00 A0 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:22]Read from MH i2c: E2 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 03 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 03 00 A2 85 00 90 00 9B [17:06:22]RAPDU: 90 00 [17:06:22]wFMCommunicate OK [17:06:22]wFMCommunicate request_size=255 [17:06:22]MH_SAM_APDU [17:06: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 23 01 00 35 04 06 00 3E [17:06:22]Write to MH i2c: E2 02 01 A3 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 23 01 00 35 04 06 00 3E 00 00 88 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 A3 85 00 90 00 9C [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]wFMCommunicate request_size=10 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 0D 02 02 05 4E 58 75 CD 92 [17:06:23]Write to MH i2c: E2 0D 00 A4 85 80 0D 02 02 05 00 4E 58 75 CD 92 00 00 27 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 A4 85 00 90 00 9D [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 0D 03 02 [17:06:23]Write to MH i2c: E2 08 00 A5 85 80 0D 03 02 00 00 00 00 A5 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 0B 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 0B 00 A5 85 00 3B 46 9B F9 AF 6C 2F 7D 90 00 82 [17:06:23]RAPDU: 3B 46 9B F9 AF 6C 2F 7D 90 00 [17:06:23]wFMCommunicate OK [17:06:23]SAM_PROTO_SignData done [17:06:23]FM_MakeSignedData done [17:06:23]CreateOFDProtocolMessage [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 11 00 00 [17:06:23]Write to MH i2c: E2 08 00 A6 85 80 11 00 00 00 00 00 00 A5 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 17 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 17 00 A6 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FD [17:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:06:23]wFMCommunicate OK [17:06:23]CreateOFDProtocolMessage done [17:06:23]OFDSenderStorePacket 74705 [17:06:23]StoreOFDPacket docnum=74705 [17:06:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7F B9 07 01 09 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 23 01 00 35 04 06 00 3E 4E 58 75 CD 92 3B 46 9B F9 AF 6C 2F 7D [17:06:23]CheckFolder [17:06:23]dirname=/storage/ofd_packets [17:06:23]CheckFolder done [17:06:23]ProducePacketName [17:06:23]name=ofd_packets/00074705 [17:06:23]NVStorageSaveData ofd_packets/00074705 [17:06:23]File name is /storage/ofd_packets/00074705 [17:06:23]Write 301 bytes [17:06:23]NVStorageSaveData done [17:06:23]OFDSenderStorePacket done [17:06:23]KKMCreateOFDPacket done [17:06:23]NVStorageSaveData kkm_last_timestamp [17:06:23]File name is /storage/kkm_last_timestamp [17:06:23]Write 4 bytes [17:06:23]NVStorageSaveData done [17:06:23]ExternCall_PrintAddStr [17:06:23]wPrintStart [17:06:23]Write to MH i2c: 01 00 00 A7 85 2C [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 07 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 07 00 A7 85 00 00 00 00 00 FF 0F 41 [17:06:23]RasterBufferAndPrint [17:06:23]line Счет N : (1)190671 [17:06:23]line ИНН: 02508201610067 [17:06:23]line Контрольно-Кассовый Чек [17:06:23]line ПРОДАЖА [17:06:23]line ТРК (МРК, ГНК) : 21 [17:06:23]line Товар: 2710124130 [17:06:23]line Аи-92-К-5 [17:06:23]line 4.490 * 66.90 [17:06:23]line = 300.38 [17:06:23]line НДС 12% НСП 1% [17:06:23]line > о реализуемом товаре [17:06:23]line ОКРУГЛЕНИЕ: -0.38 [17:06:23]line ИТОГО: 300.00 [17:06:23]line Внесено: 300.00 [17:06:23]line СДАЧА: 0.00 [17:06:23]line НСП 1% : 2.66 [17:06:23]line НДС 12% : 31.90 [17:06:23]line Наличными: 300.00 [17:06:23]line Безнал.: 0.00 [17:06:23]line Место: АЗС № 142 "Партнер Нефть" [17:06:23]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:06:23]line СНО: Общий режим [17:06:23]line Чек 149 24.10.2024 17:06 [17:06:23]line Смена: 510 ФФД: 1.0 [17:06:23]line ЗНМ: 0300000089 [17:06:23]line РНМ: 0000000000091691 [17:06:23]line Версия ККМ: 001 [17:06:23]line ФМ: 0000000000871795 [17:06:23]line ФД: 74705 [17:06:23]line ФПД: 68506212486546 [17:06:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170633&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74705&fm=68506212486546&tin=02508201610067®Number=0000000000091691&sum=30000 [17:06:23]OFD Sender: Processing packet 74704 [packets to send 14, broken 12] [17:06:23]ProducePacketName [17:06:23]name=ofd_packets/00074704 [17:06:23]OFD Sender: To server: pG, [17:06:23]CommunicateWithHost lk.salyk.kg:30040 [17:06:23]ConnectInit lk.salyk.kg [17:06:23]written 0, free lines is 4095 [17:06:23]Write to MH i2c: 01 00 00 D2 85 57 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 07 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 07 00 D2 85 00 00 00 00 00 AB 0C 15 [17:06:23]RasterBufferAndPrint [17:06:23]line [17:06:23]line [17:06:23]line [17:06:23]line [17:06:23]line [17:06:23]written 0, free lines is 3256 [17:06:23]MH_Cut [17:06:23]Write to MH i2c: D1 01 00 D9 85 01 30 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: D1 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: D1 01 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: D1 01 00 D9 85 00 2F [17:06:23]Write to MH i2c: 01 00 00 DA 85 5F [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:24]*** Cut start [17:06:24]*** Partial cut [17:06:24]*** CUTSNS_PIN = 1 [17:06:24]*** CUTSNS_PIN = 0 [17:06:24]*** Brake cut motor [17:06:25]Read from MH i2c: 01 [17:06:25]MH_I2C_Read... [17:06:25]*** Stop cut motor [17:06:25]*** Cut end [17:06:25]Read from MH i2c: 01 07 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: 01 07 00 DA 85 00 00 00 00 00 FF 0F 74 [17:06:25]process_action close_receipt done [17:06:25]requested_data is exist [17:06:25]produce_requested_data [17:06:25]requested_item fm.sn is exist - process it [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 11 00 00 [17:06:25]Write to MH i2c: E2 08 00 DB 85 80 11 00 00 00 00 00 00 DA [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 17 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 17 00 DB 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 32 [17:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:06:25]wFMCommunicate OK [17:06:25]requested_item fd.num is exist - process it [17:06:25]SAM_PROTO_GetFieldsCounters [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 13 00 00 [17:06:25]Write to MH i2c: E2 08 00 DC 85 80 13 00 00 00 00 00 00 DD [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 62 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 62 00 DC 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D1 23 01 00 0E 04 04 00 FE 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 B7 [17:06:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D1 23 01 00 0E 04 04 00 FE 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 [17:06:25]wFMCommunicate OK [17:06:25]SAM_PROTO_GetFieldsCounters done [17:06:25]requested_item shift.num is exist - process it [17:06:25]requested_item shift.opened is exist - process it [17:06:25]req_shift_opened [17:06:25]FM_GetShiftState [17:06:25]SAM_PROTO_GetShiftState [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 13 01 00 [17:06:25]Write to MH i2c: E2 08 00 DD 85 80 13 01 00 00 00 00 00 DF [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 DD 85 00 09 00 01 09 95 19 67 00 00 00 00 90 00 09 [17:06:25]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:06:25]wFMCommunicate OK [17:06:25]SAM_PROTO_GetShiftState done [17:06:25]FM_GetShiftState done [17:06:25]req_shift_opened done [17:06:25]requested_item shift.open_date is exist - process it [17:06:25]req_shift_open_date [17:06:25]req_shift_open_date done [17:06:25]produce_requested_data done [17:06:25]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74705,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:06:25]process_action_free close_receipt [17:06:25]json_value_free [17:06:25]json_value_free done [17:06:25]process_json_proto returns [17:06:25]Send response to host [17:06:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74705,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:06:25]free response buf [17:06:25]execute_script done [17:06:25]execute_script returns [17:06:25]free content buf [17:06:25]Sock 10.Close socket [17:06:25]Sock 10.Thread stoped [17:06:28]ConnectInit Can't take IP for lk.salyk.kg [17:06:28]CommunicateWithHost connect error [17:06:28]CommunicateWithHost err = -1 [17:06:28]OFD Sender: Server communicate error [17:06:33]OFD Sender: Processing packet 74704 [packets to send 14, broken 12] [17:06:33]ProducePacketName [17:06:33]name=ofd_packets/00074704 [17:06:33]OFD Sender: To server: pG, [17:06:33]CommunicateWithHost lk.salyk.kg:30040 [17:06:33]ConnectInit lk.salyk.kg [17:06:38]ConnectInit Can't take IP for lk.salyk.kg [17:06:38]CommunicateWithHost connect error [17:06:38]CommunicateWithHost err = -1 [17:06:38]OFD Sender: Server communicate error [17:06:43]OFD Sender: Processing packet 74704 [packets to send 14, broken 12] [17:06:43]ProducePacketName [17:06:43]name=ofd_packets/00074704 [17:06:43]OFD Sender: To server: pG, [17:06:43]CommunicateWithHost lk.salyk.kg:30040 [17:06:43]ConnectInit lk.salyk.kg [17:06:48]ConnectInit Can't take IP for lk.salyk.kg [17:06:48]CommunicateWithHost connect error [17:06:48]CommunicateWithHost err = -1 [17:06:48]OFD Sender: Server communicate error [17:06:53]OFD Sender: Processing packet 74704 [packets to send 14, broken 12] [17:06:53]ProducePacketName [17:06:53]name=ofd_packets/00074704 [17:06:53]OFD Sender: To server: pG, [17:06:53]CommunicateWithHost lk.salyk.kg:30040 [17:06:53]ConnectInit lk.salyk.kg [17:06:58]ConnectInit Can't take IP for lk.salyk.kg [17:06:58]CommunicateWithHost connect error [17:06:58]CommunicateWithHost err = -1 [17:06:58]OFD Sender: Server communicate error [17:07:03]OFD Sender: Processing packet 74704 [packets to send 14, broken 12] [17:07:03]ProducePacketName [17:07:03]name=ofd_packets/00074704 [17:07:03]OFD Sender: To server: pG, [17:07:03]CommunicateWithHost lk.salyk.kg:30040 [17:07:03]ConnectInit lk.salyk.kg [17:07:05]Connected sock=10 [17:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 35 E8 07 01 6F 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7C 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 23 01 00 35 04 06 00 F1 78 A4 58 1C 9A D0 47 A8 E6 85 51 90 B5 [17:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C6 8D 47 00 15 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 23 01 00 F4 03 04 00 44 26 1A 67 B6 04 01 00 00 37 BC B8 10 D6 25 88 11 [17:07:05]CommunicateWithHost err = 0 [17:07:05]CheckOFDResponse [17:07:05]1017 (14) - 77093643461234 [17:07:05]1041 (16) - 0000000000871795 [17:07:05]1040 (4) - 74704 [17:07:05]1012 (4) - 24.10.2024 10:49 [17:07:05]1206 (1) - 0 [17:07:05]OFD Sender: Remove packet 74704 [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00074704 [17:07:05]NVStorageDeleteData [17:07:06]OFD Sender: Processing packet 74705 [packets to send 13, broken 12] [17:07:06]ProducePacketName [17:07:06]name=ofd_packets/00074705 [17:07:06]OFD Sender: To server: pG, [17:07:06]CommunicateWithHost lk.salyk.kg:30040 [17:07:06]ConnectInit lk.salyk.kg [17:07:06]Connected sock=10 [17:07:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7F B9 07 01 09 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 7E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 23 01 00 35 04 06 00 3E 4E 58 75 CD 92 3B 46 9B F9 AF 6C 2F 7D [17:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F7 C1 47 00 E5 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 23 01 00 F4 03 04 00 46 26 1A 67 B6 04 01 00 00 51 93 D4 1C F0 B3 5E 8B [17:07:06]CommunicateWithHost err = 0 [17:07:06]CheckOFDResponse [17:07:06]1017 (14) - 77093643461234 [17:07:06]1041 (16) - 0000000000871795 [17:07:06]1040 (4) - 74705 [17:07:06]1012 (4) - 24.10.2024 10:49 [17:07:06]1206 (1) - 0 [17:07:06]OFD Sender: Remove packet 74705 [17:07:06]ProducePacketName [17:07:06]name=ofd_packets/00074705 [17:07:06]NVStorageDeleteData [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:50]ConnectInit Can't connect to host [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:45]accept exits with 9 [17:14:45]New connection [17:14:45]New thread 3066805604 created [17:14:45]Thread 3066662244 joined [17:14:45]Waiting for new connection... [17:14:45] Sock 9.Parse request [17:14:45]Sock 9.Check first char [17:14:45]Sock 9.First char is OK [17:14:45]request: POST /json_proto HTTP/1.0 [17:14:45]Method: POST [17:14:45]URL: /json_proto [17:14:45]Method is POST - this is cgi request [17:14:45]url: /json_proto [17:14:45]query_string will be loaded in cgi processing [17:14:45]execute_cgi json_proto POST (null) [17:14:45]execute_cgi path=json_proto method=POST [17:14:45]POST find Content-Length [17:14:45]Host: 172.17.39.131:8080 [17:14:45]Content-Length: 677 [17:14:45]Content-Type: application/json [17:14:45] [17:14:45]POST finish read [17:14:45]Found Content-Length = 677 [17:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:45]execute_script... [17:14: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)190672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:45]POST & json_proto [17:14:45]process_json_proto [17:14:45]json parsed OK: [17:14:45]protocol is kg_v1.0 [17:14:45]action value=close_receipt [17:14:45]process_action close_receipt [17:14:45]cmd_close_receipt [17:14:45]MH_GetDate [17:14:45]Write to MH i2c: F0 00 00 DE 85 52 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: F0 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: F0 09 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: F0 09 00 DE 85 00 91 80 1A 67 86 57 24 65 53 [17:14:45]GetLastDocTimeStamp 1729789593 [17:14:45]current date 1729790097 [17:14:45]FM_GetShiftState [17:14:45]SAM_PROTO_GetShiftState [17:14:45]wFMCommunicate request_size=4 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 13 01 00 [17:14:45]Write to MH i2c: E2 08 00 DF 85 80 13 01 00 00 00 00 00 E1 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0E 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0E 00 DF 85 00 09 00 01 09 95 19 67 00 00 00 00 90 00 0B [17:14:45]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:14:45]wFMCommunicate OK [17:14:45]SAM_PROTO_GetShiftState done [17:14:45]FM_GetShiftState done [17:14:45]opened in 1729729801 [17:14:45]opened+sec_in_day 1729816201 [17:14:45]quantity*price = 50041 [17:14:45]sum+1 = 50042 [17:14:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 150 24.10.2024 17:14 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74706 ФПД: 190997154745187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171457&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74706&fm=190997154745187&tin=02508201610067®Number=0000000000091691&sum=50000 [17:14:46]StoreToDocumentArchive [17:14:46]shift 510 fd 74706 [17:14:46]save to /storage/0510/doc_00074706 [17:14:46]save last doc name /storage/0510/doc_00074706 to /storage/kkm_last_doc_name [17:14:46]save OK [17:14:46]Clear old archive folders... [17:14:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:46]tlvbuf is 00A51F60 [17:14:46]SAM_PROTO_ClearQueue [17:14:46]wFMCommunicate request_size=4 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 09 00 00 [17:14:46]Write to MH i2c: E2 08 00 EC 85 80 09 00 00 00 00 00 00 E3 [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:46]Read from MH i2c: E2 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 EC 85 00 90 00 E5 [17:14:46]RAPDU: 90 00 [17:14:46]wFMCommunicate OK [17:14:46]SAM_PROTO_ClearQueue done [17:14:46]KKMCreateOFDPacket [17:14:46]OFDProtocolAddRootSTLVToBuf [17:14:46]FM_MakeSignedData [17:14:46]FM_MakeSignedData [17:14:46]SAM_PROTO_SignData [17:14:46]wFMCommunicate request_size=4 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 0D 01 02 [17:14:46]Write to MH i2c: E2 08 00 ED 85 80 0D 01 02 00 00 00 00 EB [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:46]Read from MH i2c: E2 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 ED 85 00 90 00 E6 [17:14:46]RAPDU: 90 00 [17:14:46]wFMCommunicate OK [17:14:46]wFMCommunicate request_size=255 [17:14:46]MH_SAM_APDU [17:14: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 91 80 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 23 01 00 35 04 06 00 AD [17:14:46]Write to MH i2c: E2 02 01 EE 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 91 80 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 23 01 00 35 04 06 00 AD 00 00 4A [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 EE 85 00 90 00 E7 [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]wFMCommunicate request_size=10 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 02 02 05 B5 FD 8F CB 63 [17:14:47]Write to MH i2c: E2 0D 00 EF 85 80 0D 02 02 05 00 B5 FD 8F CB 63 00 00 67 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 EF 85 00 90 00 E8 [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 03 02 [17:14:47]Write to MH i2c: E2 08 00 F0 85 80 0D 03 02 00 00 00 00 F0 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 0B 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 0B 00 F0 85 00 8A 88 33 51 35 BC 4C 00 90 00 C4 [17:14:47]RAPDU: 8A 88 33 51 35 BC 4C 00 90 00 [17:14:47]wFMCommunicate OK [17:14:47]SAM_PROTO_SignData done [17:14:47]FM_MakeSignedData done [17:14:47]CreateOFDProtocolMessage [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 11 00 00 [17:14:47]Write to MH i2c: E2 08 00 F1 85 80 11 00 00 00 00 00 00 F0 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 17 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 17 00 F1 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 48 [17:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:14:47]wFMCommunicate OK [17:14:47]CreateOFDProtocolMessage done [17:14:47]OFDSenderStorePacket 74706 [17:14:47]StoreOFDPacket docnum=74706 [17:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EB 90 07 01 57 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 91 80 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 23 01 00 35 04 06 00 AD B5 FD 8F CB 63 8A 88 33 51 35 BC 4C 00 [17:14:47]CheckFolder [17:14:47]dirname=/storage/ofd_packets [17:14:47]CheckFolder done [17:14:47]ProducePacketName [17:14:47]name=ofd_packets/00074706 [17:14:47]NVStorageSaveData ofd_packets/00074706 [17:14:47]File name is /storage/ofd_packets/00074706 [17:14:47]Write 301 bytes [17:14:47]NVStorageSaveData done [17:14:47]OFDSenderStorePacket done [17:14:47]KKMCreateOFDPacket done [17:14:47]NVStorageSaveData kkm_last_timestamp [17:14:47]File name is /storage/kkm_last_timestamp [17:14:47]Write 4 bytes [17:14:47]NVStorageSaveData done [17:14:47]ExternCall_PrintAddStr [17:14:47]wPrintStart [17:14:47]Write to MH i2c: 01 00 00 F2 85 77 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 07 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 07 00 F2 85 00 00 00 00 00 FF 0F 8C [17:14:47]RasterBufferAndPrint [17:14:47]line Счет N : (1)190672 [17:14:47]line ИНН: 02508201610067 [17:14:47]line Контрольно-Кассовый Чек [17:14:47]line ПРОДАЖА [17:14:47]line ТРК (МРК, ГНК) : 21 [17:14:47]line Товар: 2710124130 [17:14:47]line Аи-92-К-5 [17:14:47]line 7.480 * 66.90 [17:14:47]line = 500.41 [17:14:47]line НДС 12% НСП 1% [17:14:47]line > о реализуемом товаре [17:14:47]line ОКРУГЛЕНИЕ: -0.41 [17:14:47]line ИТОГО: 500.00 [17:14:47]line Внесено: 500.00 [17:14:47]line СДАЧА: 0.00 [17:14:47]line НСП 1% : 4.43 [17:14:47]line НДС 12% : 53.14 [17:14:47]line Наличными: 500.00 [17:14:47]line Безнал.: 0.00 [17:14:47]line Место: АЗС № 142 "Партнер Нефть" [17:14:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:14:47]line СНО: Общий режим [17:14:47]line Чек 150 24.10.2024 17:14 [17:14:47]line Смена: 510 ФФД: 1.0 [17:14:47]line ЗНМ: 0300000089 [17:14:47]line РНМ: 0000000000091691 [17:14:47]line Версия ККМ: 001 [17:14:47]line ФМ: 0000000000871795 [17:14:47]line ФД: 74706 [17:14:47]line ФПД: 190997154745187 [17:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171457&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74706&fm=190997154745187&tin=02508201610067®Number=0000000000091691&sum=50000 [17:14:47]written 0, free lines is 4095 [17:14:47]OFD Sender: Processing packet 74706 [packets to send 13, broken 12] [17:14:47]ProducePacketName [17:14:47]name=ofd_packets/00074706 [17:14:47]OFD Sender: To server: pG, [17:14:47]CommunicateWithHost lk.salyk.kg:30040 [17:14:47]ConnectInit lk.salyk.kg [17:14:47]Connected sock=8 [17:14:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EB 90 07 01 57 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 91 80 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 23 01 00 35 04 06 00 AD B5 FD 8F CB 63 8A 88 33 51 35 BC 4C 00 [17:14:47]Write to MH i2c: 01 00 00 1D 86 A3 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 07 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 07 00 1D 86 00 00 00 00 00 9C 0C 52 [17:14:47]RasterBufferAndPrint [17:14:47]line [17:14:47]line [17:14:47]line [17:14:47]line [17:14:47]line [17:14:47]written 0, free lines is 3236 [17:14:47]MH_Cut [17:14:47]Write to MH i2c: D1 01 00 24 86 01 7C [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: D1 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: D1 01 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: D1 01 00 24 86 00 7B [17:14:47]Write to MH i2c: 01 00 00 25 86 AB [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 3E 37 47 00 91 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 23 01 00 F4 03 04 00 13 28 1A 67 B6 04 01 00 00 BA AC 6B DD 04 F1 05 D7 [17:14:48]CommunicateWithHost err = 0 [17:14:48]CheckOFDResponse [17:14:48]1017 (14) - 77093643461234 [17:14:48]1041 (16) - 0000000000871795 [17:14:48]1040 (4) - 74706 [17:14:48]1012 (4) - 24.10.2024 10:57 [17:14:48]1206 (1) - 0 [17:14:48]OFD Sender: Remove packet 74706 [17:14:48]ProducePacketName [17:14:48]name=ofd_packets/00074706 [17:14:48]NVStorageDeleteData [17:14:48]OFD Sender: No OFD packet to send [17:14:48]*** Cut start [17:14:48]*** Partial cut [17:14:48]*** CUTSNS_PIN = 1 [17:14:48]*** CUTSNS_PIN = 0 [17:14:49]*** Brake cut motor [17:14:49]Read from MH i2c: 01 [17:14:49]MH_I2C_Read... [17:14:49]*** Stop cut motor [17:14:49]*** Cut end [17:14:49]Read from MH i2c: 01 07 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: 01 07 00 25 86 00 00 00 00 00 FF 0F C0 [17:14:49]process_action close_receipt done [17:14:49]requested_data is exist [17:14:49]produce_requested_data [17:14:49]requested_item fm.sn is exist - process it [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 11 00 00 [17:14:49]Write to MH i2c: E2 08 00 26 86 80 11 00 00 00 00 00 00 26 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 17 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 17 00 26 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7E [17:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:14:49]wFMCommunicate OK [17:14:49]requested_item fd.num is exist - process it [17:14:49]SAM_PROTO_GetFieldsCounters [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 13 00 00 [17:14:49]Write to MH i2c: E2 08 00 27 86 80 13 00 00 00 00 00 00 29 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 62 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 62 00 27 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D2 23 01 00 0E 04 04 00 FE 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 [17:14:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D2 23 01 00 0E 04 04 00 FE 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 [17:14:49]wFMCommunicate OK [17:14:49]SAM_PROTO_GetFieldsCounters done [17:14:49]requested_item shift.num is exist - process it [17:14:49]requested_item shift.opened is exist - process it [17:14:49]req_shift_opened [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 28 86 80 13 01 00 00 00 00 00 2B [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 28 86 00 09 00 01 09 95 19 67 00 00 00 00 90 00 55 [17:14:49]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:14:49]wFMCommunicate OK [17:14:49]SAM_PROTO_GetShiftState done [17:14:49]FM_GetShiftState done [17:14:49]req_shift_opened done [17:14:49]requested_item shift.open_date is exist - process it [17:14:49]req_shift_open_date [17:14:49]req_shift_open_date done [17:14:49]produce_requested_data done [17:14:49]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74706,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:14:49]process_action_free close_receipt [17:14:49]json_value_free [17:14:49]json_value_free done [17:14:49]process_json_proto returns [17:14:49]Send response to host [17:14:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74706,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:14:49]free response buf [17:14:49]execute_script done [17:14:49]execute_script returns [17:14:49]free content buf [17:14:49]Sock 9.Close socket [17:14:49]Sock 9.Thread stoped [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:31]accept exits with 10 [17:18:31]New connection [17:18:31]New thread 3066662244 created [17:18:31]Thread 3066805604 joined [17:18:31]Waiting for new connection... [17:18:31] Sock 10.Parse request [17:18:31]Sock 10.Check first char [17:18:31]Sock 10.First char is OK [17:18:31]request: POST /json_proto HTTP/1.0 [17:18:31]Method: POST [17:18:31]URL: /json_proto [17:18:31]Method is POST - this is cgi request [17:18:31]url: /json_proto [17:18:31]query_string will be loaded in cgi processing [17:18:31]execute_cgi json_proto POST (null) [17:18:31]execute_cgi path=json_proto method=POST [17:18:31]POST find Content-Length [17:18:31]Host: 172.17.39.131:8080 [17:18:31]Content-Length: 682 [17:18:31]Content-Type: application/json [17:18:31] [17:18:31]POST finish read [17:18:31]Found Content-Length = 682 [17:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:31]execute_script... [17:18: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)190673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:31]POST & json_proto [17:18:31]process_json_proto [17:18:31]json parsed OK: [17:18:31]protocol is kg_v1.0 [17:18:31]action value=close_receipt [17:18:31]process_action close_receipt [17:18:31]cmd_close_receipt [17:18:31]MH_GetDate [17:18:31]Write to MH i2c: F0 00 00 29 86 9E [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: F0 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: F0 09 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: F0 09 00 29 86 00 73 81 1A 67 86 57 24 65 82 [17:18:31]GetLastDocTimeStamp 1729790097 [17:18:31]current date 1729790323 [17:18:31]FM_GetShiftState [17:18:31]SAM_PROTO_GetShiftState [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 13 01 00 [17:18:31]Write to MH i2c: E2 08 00 2A 86 80 13 01 00 00 00 00 00 2D [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 0E 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 0E 00 2A 86 00 09 00 01 09 95 19 67 00 00 00 00 90 00 57 [17:18:31]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:18:31]wFMCommunicate OK [17:18:31]SAM_PROTO_GetShiftState done [17:18:31]FM_GetShiftState done [17:18:31]opened in 1729729801 [17:18:31]opened+sec_in_day 1729816201 [17:18:31]quantity*price = 100015 [17:18:31]sum+1 = 100017 [17:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 151 24.10.2024 17:18 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74707 ФПД: 262308308994466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171843&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74707&fm=262308308994466&tin=02508201610067®Number=0000000000091691&sum=100000 [17:18:32]StoreToDocumentArchive [17:18:32]shift 510 fd 74707 [17:18:32]save to /storage/0510/doc_00074707 [17:18:32]save last doc name /storage/0510/doc_00074707 to /storage/kkm_last_doc_name [17:18:32]save OK [17:18:32]Clear old archive folders... [17:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:32]tlvbuf is 0087C400 [17:18:32]SAM_PROTO_ClearQueue [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 09 00 00 [17:18:32]Write to MH i2c: E2 08 00 37 86 80 09 00 00 00 00 00 00 2F [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 03 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 03 00 37 86 00 90 00 31 [17:18:32]RAPDU: 90 00 [17:18:32]wFMCommunicate OK [17:18:32]SAM_PROTO_ClearQueue done [17:18:32]KKMCreateOFDPacket [17:18:32]OFDProtocolAddRootSTLVToBuf [17:18:32]FM_MakeSignedData [17:18:32]FM_MakeSignedData [17:18:32]SAM_PROTO_SignData [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 0D 01 02 [17:18:32]Write to MH i2c: E2 08 00 38 86 80 0D 01 02 00 00 00 00 37 [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 03 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 03 00 38 86 00 90 00 32 [17:18:32]RAPDU: 90 00 [17:18:32]wFMCommunicate OK [17:18:32]wFMCommunicate request_size=255 [17:18:32]MH_SAM_APDU [17:18: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 81 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 23 01 00 35 04 06 00 EE [17:18:32]Write to MH i2c: E2 02 01 39 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 81 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 23 01 00 35 04 06 00 EE 00 00 B6 [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 39 86 00 90 00 33 [17:18:33]RAPDU: 90 00 [17:18:33]wFMCommunicate OK [17:18:33]wFMCommunicate request_size=10 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 0D 02 02 05 91 69 94 49 A2 [17:18:33]Write to MH i2c: E2 0D 00 3A 86 80 0D 02 02 05 00 91 69 94 49 A2 00 00 BD [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 3A 86 00 90 00 34 [17:18:33]RAPDU: 90 00 [17:18:33]wFMCommunicate OK [17:18:33]wFMCommunicate request_size=4 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 0D 03 02 [17:18:33]Write to MH i2c: E2 08 00 3B 86 80 0D 03 02 00 00 00 00 3C [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 0B 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 0B 00 3B 86 00 AC F5 C2 72 EF B8 D5 68 90 00 F6 [17:18:33]RAPDU: AC F5 C2 72 EF B8 D5 68 90 00 [17:18:33]wFMCommunicate OK [17:18:33]SAM_PROTO_SignData done [17:18:33]FM_MakeSignedData done [17:18:33]CreateOFDProtocolMessage [17:18:33]wFMCommunicate request_size=4 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 11 00 00 [17:18:33]Write to MH i2c: E2 08 00 3C 86 80 11 00 00 00 00 00 00 3C [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 17 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 17 00 3C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 94 [17:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:18:33]wFMCommunicate OK [17:18:33]CreateOFDProtocolMessage done [17:18:33]OFDSenderStorePacket 74707 [17:18:33]StoreOFDPacket docnum=74707 [17:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 DB FF 07 01 94 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 81 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 23 01 00 35 04 06 00 EE 91 69 94 49 A2 AC F5 C2 72 EF B8 D5 68 [17:18:33]CheckFolder [17:18:33]dirname=/storage/ofd_packets [17:18:33]CheckFolder done [17:18:33]ProducePacketName [17:18:33]name=ofd_packets/00074707 [17:18:33]NVStorageSaveData ofd_packets/00074707 [17:18:33]File name is /storage/ofd_packets/00074707 [17:18:33]Write 301 bytes [17:18:33]NVStorageSaveData done [17:18:33]OFDSenderStorePacket done [17:18:33]KKMCreateOFDPacket done [17:18:33]NVStorageSaveData kkm_last_timestamp [17:18:33]File name is /storage/kkm_last_timestamp [17:18:33]Write 4 bytes [17:18:33]NVStorageSaveData done [17:18:33]ExternCall_PrintAddStr [17:18:33]wPrintStart [17:18:33]Write to MH i2c: 01 00 00 3D 86 C3 [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: 01 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: 01 07 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: 01 07 00 3D 86 00 00 00 00 00 FF 0F D8 [17:18:33]RasterBufferAndPrint [17:18:33]line Счет N : (1)190673 [17:18:33]line ИНН: 02508201610067 [17:18:33]line Контрольно-Кассовый Чек [17:18:33]line ПРОДАЖА [17:18:33]line ТРК (МРК, ГНК) : 21 [17:18:33]line Товар: 2710124130 [17:18:33]line Аи-92-К-5 [17:18:33]line 14.950 * 66.90 [17:18:33]line = 1000.16 [17:18:33]line НДС 12% НСП 1% [17:18:33]line > о реализуемом товаре [17:18:33]line ОКРУГЛЕНИЕ: -0.16 [17:18:33]line ИТОГО: 1000.00 [17:18:33]line Внесено: 1000.00 [17:18:33]line СДАЧА: 0.00 [17:18:33]line НСП 1% : 8.85 [17:18:33]line НДС 12% : 106.21 [17:18:33]line Наличными: 1000.00 [17:18:33]line Безнал.: 0.00 [17:18:33]line Место: АЗС № 142 "Партнер Нефть" [17:18:33]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:18:33]line СНО: Общий режим [17:18:33]line Чек 151 24.10.2024 17:18 [17:18:33]line Смена: 510 ФФД: 1.0 [17:18:33]line ЗНМ: 0300000089 [17:18:33]line РНМ: 0000000000091691 [17:18:33]line Версия ККМ: 001 [17:18:33]line ФМ: 0000000000871795 [17:18:33]line ФД: 74707 [17:18:33]line ФПД: 262308308994466 [17:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171843&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74707&fm=262308308994466&tin=02508201610067®Number=0000000000091691&sum=100000 [17:18:33]written 0, free lines is 4095 [17:18:33]OFD Sender: Processing packet 74707 [packets to send 13, broken 12] [17:18:33]ProducePacketName [17:18:33]name=ofd_packets/00074707 [17:18:33]OFD Sender: To server: pG, [17:18:33]CommunicateWithHost lk.salyk.kg:30040 [17:18:33]ConnectInit lk.salyk.kg [17:18:33]Connected sock=9 [17:18:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 DB FF 07 01 94 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 81 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 23 01 00 35 04 06 00 EE 91 69 94 49 A2 AC F5 C2 72 EF B8 D5 68 [17:18:34]Write to MH i2c: 01 00 00 68 86 EE [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 68 86 00 00 00 00 00 AF 0C B0 [17:18:34]RasterBufferAndPrint [17:18:34]line [17:18:34]line [17:18:34]line [17:18:34]line [17:18:34]line [17:18:34]written 0, free lines is 3253 [17:18:34]MH_Cut [17:18:34]Write to MH i2c: D1 01 00 6F 86 01 C7 [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: D1 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: D1 01 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: D1 01 00 6F 86 00 C6 [17:18:34]Write to MH i2c: 01 00 00 70 86 F6 [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 37 AE 47 00 CC 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 23 01 00 F4 03 04 00 F5 28 1A 67 B6 04 01 00 00 02 6F 61 56 3E 1A EF 16 [17:18:34]CommunicateWithHost err = 0 [17:18:34]CheckOFDResponse [17:18:34]1017 (14) - 77093643461234 [17:18:34]1041 (16) - 0000000000871795 [17:18:34]1040 (4) - 74707 [17:18:34]1012 (4) - 24.10.2024 11:01 [17:18:34]1206 (1) - 0 [17:18:34]OFD Sender: Remove packet 74707 [17:18:34]ProducePacketName [17:18:34]name=ofd_packets/00074707 [17:18:34]NVStorageDeleteData [17:18:34]OFD Sender: No OFD packet to send [17:18:34]*** Cut start [17:18:34]*** Partial cut [17:18:34]*** CUTSNS_PIN = 1 [17:18:35]*** CUTSNS_PIN = 0 [17:18:35]*** Brake cut motor [17:18:35]Read from MH i2c: 01 [17:18:35]MH_I2C_Read... [17:18:35]*** Stop cut motor [17:18:35]*** Cut end [17:18:35]Read from MH i2c: 01 07 00 [17:18:35]MH_I2C_Read... [17:18:35]Read from MH i2c: 01 07 00 70 86 00 00 00 00 00 FF 0F 0B [17:18:35]process_action close_receipt done [17:18:35]requested_data is exist [17:18:35]produce_requested_data [17:18:35]requested_item fm.sn is exist - process it [17:18:35]wFMCommunicate request_size=4 [17:18:35]MH_SAM_APDU [17:18:35]CAPDU: 80 11 00 00 [17:18:35]Write to MH i2c: E2 08 00 71 86 80 11 00 00 00 00 00 00 71 [17:18:35]Write i2c OK [17:18:35]MH_I2C_Read... [17:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:35]Read from MH i2c: E2 [17:18:35]MH_I2C_Read... [17:18:35]Read from MH i2c: E2 17 00 [17:18:35]MH_I2C_Read... [17:18:35]Read from MH i2c: E2 17 00 71 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C9 [17:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:18:35]wFMCommunicate OK [17:18:35]requested_item fd.num is exist - process it [17:18:35]SAM_PROTO_GetFieldsCounters [17:18:35]wFMCommunicate request_size=4 [17:18:35]MH_SAM_APDU [17:18:35]CAPDU: 80 13 00 00 [17:18:35]Write to MH i2c: E2 08 00 72 86 80 13 00 00 00 00 00 00 74 [17:18:35]Write i2c OK [17:18:35]MH_I2C_Read... [17:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:35]Read from MH i2c: E2 [17:18:35]MH_I2C_Read... [17:18:35]Read from MH i2c: E2 62 00 [17:18:35]MH_I2C_Read... [17:18:35]Read from MH i2c: E2 62 00 72 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D3 23 01 00 0E 04 04 00 FE 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 [17:18:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D3 23 01 00 0E 04 04 00 FE 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 [17:18:35]wFMCommunicate OK [17:18:35]SAM_PROTO_GetFieldsCounters done [17:18:35]requested_item shift.num is exist - process it [17:18:35]requested_item shift.opened is exist - process it [17:18:35]req_shift_opened [17:18:35]FM_GetShiftState [17:18:35]SAM_PROTO_GetShiftState [17:18:35]wFMCommunicate request_size=4 [17:18:35]MH_SAM_APDU [17:18:35]CAPDU: 80 13 01 00 [17:18:35]Write to MH i2c: E2 08 00 73 86 80 13 01 00 00 00 00 00 76 [17:18:35]Write i2c OK [17:18:35]MH_I2C_Read... [17:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:35]Read from MH i2c: E2 [17:18:35]MH_I2C_Read... [17:18:35]Read from MH i2c: E2 0E 00 [17:18:35]MH_I2C_Read... [17:18:35]Read from MH i2c: E2 0E 00 73 86 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A0 [17:18:35]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:18:35]wFMCommunicate OK [17:18:35]SAM_PROTO_GetShiftState done [17:18:35]FM_GetShiftState done [17:18:35]req_shift_opened done [17:18:35]requested_item shift.open_date is exist - process it [17:18:35]req_shift_open_date [17:18:35]req_shift_open_date done [17:18:35]produce_requested_data done [17:18:35]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74707,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:18:35]process_action_free close_receipt [17:18:35]json_value_free [17:18:35]json_value_free done [17:18:35]process_json_proto returns [17:18:35]Send response to host [17:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74707,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:18:35]free response buf [17:18:35]execute_script done [17:18:35]execute_script returns [17:18:35]free content buf [17:18:35]Sock 10.Close socket [17:18:35]Sock 10.Thread stoped [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [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:10]accept exits with 8 [17:21:10]New connection [17:21:10]New thread 3066805604 created [17:21:10]Thread 3066662244 joined [17:21:10]Waiting for new connection... [17:21:10] Sock 8.Parse request [17:21:10]Sock 8.Check first char [17:21:10]Sock 8.First char is OK [17:21:10]request: POST /json_proto HTTP/1.0 [17:21:10]Method: POST [17:21:10]URL: /json_proto [17:21:10]Method is POST - this is cgi request [17:21:10]url: /json_proto [17:21:10]query_string will be loaded in cgi processing [17:21:10]execute_cgi json_proto POST (null) [17:21:10]execute_cgi path=json_proto method=POST [17:21:10]POST find Content-Length [17:21:10]Host: 172.17.39.131:8080 [17:21:10]Content-Length: 766 [17:21:10]Content-Type: application/json [17:21:10] [17:21:10]POST finish read [17:21:10]Found Content-Length = 766 [17:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:10]execute_script... [17:21: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)190674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:10]POST & json_proto [17:21:10]process_json_proto [17:21:10]json parsed OK: [17:21:10]protocol is kg_v1.0 [17:21:10]action value=close_receipt [17:21:10]process_action close_receipt [17:21:10]cmd_close_receipt [17:21:10]MH_GetDate [17:21:10]Write to MH i2c: F0 00 00 74 86 E9 [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 09 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 09 00 74 86 00 12 82 1A 67 86 57 24 65 6D [17:21:10]GetLastDocTimeStamp 1729790323 [17:21:10]current date 1729790482 [17:21:10]FM_GetShiftState [17:21:10]SAM_PROTO_GetShiftState [17:21:10]wFMCommunicate request_size=4 [17:21:10]MH_SAM_APDU [17:21:10]CAPDU: 80 13 01 00 [17:21:10]Write to MH i2c: E2 08 00 75 86 80 13 01 00 00 00 00 00 78 [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:10]Read from MH i2c: E2 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 0E 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 0E 00 75 86 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A2 [17:21:10]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:21:10]wFMCommunicate OK [17:21:10]SAM_PROTO_GetShiftState done [17:21:10]FM_GetShiftState done [17:21:10]opened in 1729729801 [17:21:10]opened+sec_in_day 1729816201 [17:21:10]quantity*price = 50041 [17:21:10]sum+1 = 50042 [17:21:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 152 24.10.2024 17:21 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74708 ФПД: 72435618683340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172122&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74708&fm=72435618683340&tin=02508201610067®Number=0000000000091691&sum=50041 [17:21:11]StoreToDocumentArchive [17:21:11]shift 510 fd 74708 [17:21:11]save to /storage/0510/doc_00074708 [17:21:11]save last doc name /storage/0510/doc_00074708 to /storage/kkm_last_doc_name [17:21:11]save OK [17:21:11]Clear old archive folders... [17:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:11]tlvbuf is 007D3100 [17:21:11]SAM_PROTO_ClearQueue [17:21:11]wFMCommunicate request_size=4 [17:21:11]MH_SAM_APDU [17:21:11]CAPDU: 80 09 00 00 [17:21:11]Write to MH i2c: E2 08 00 82 86 80 09 00 00 00 00 00 00 7A [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:11]Read from MH i2c: E2 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 82 86 00 90 00 7C [17:21:11]RAPDU: 90 00 [17:21:11]wFMCommunicate OK [17:21:11]SAM_PROTO_ClearQueue done [17:21:11]KKMCreateOFDPacket [17:21:11]OFDProtocolAddRootSTLVToBuf [17:21:11]FM_MakeSignedData [17:21:11]FM_MakeSignedData [17:21:11]SAM_PROTO_SignData [17:21:11]wFMCommunicate request_size=4 [17:21:11]MH_SAM_APDU [17:21:11]CAPDU: 80 0D 01 02 [17:21:11]Write to MH i2c: E2 08 00 83 86 80 0D 01 02 00 00 00 00 82 [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:11]Read from MH i2c: E2 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 83 86 00 90 00 7D [17:21:11]RAPDU: 90 00 [17:21:11]wFMCommunicate OK [17:21:11]wFMCommunicate request_size=255 [17:21:11]MH_SAM_APDU [17:21: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 12 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 23 01 00 35 04 06 00 41 [17:21:11]Write to MH i2c: E2 02 01 84 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 12 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 23 01 00 35 04 06 00 41 00 00 4E [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 84 86 00 90 00 7E [17:21:12]RAPDU: 90 00 [17:21:12]wFMCommunicate OK [17:21:12]wFMCommunicate request_size=10 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 0D 02 02 05 E1 3B 52 19 CC [17:21:12]Write to MH i2c: E2 0D 00 85 86 80 0D 02 02 05 00 E1 3B 52 19 CC 00 00 E2 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 03 00 85 86 00 90 00 7F [17:21:12]RAPDU: 90 00 [17:21:12]wFMCommunicate OK [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 0D 03 02 [17:21:12]Write to MH i2c: E2 08 00 86 86 80 0D 03 02 00 00 00 00 87 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 0B 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 0B 00 86 86 00 00 7B 0A DC 73 5F 5B 3D 90 00 53 [17:21:12]RAPDU: 00 7B 0A DC 73 5F 5B 3D 90 00 [17:21:12]wFMCommunicate OK [17:21:12]SAM_PROTO_SignData done [17:21:12]FM_MakeSignedData done [17:21:12]CreateOFDProtocolMessage [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 11 00 00 [17:21:12]Write to MH i2c: E2 08 00 87 86 80 11 00 00 00 00 00 00 87 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 17 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 17 00 87 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DF [17:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:21:12]wFMCommunicate OK [17:21:12]CreateOFDProtocolMessage done [17:21:12]OFDSenderStorePacket 74708 [17:21:12]StoreOFDPacket docnum=74708 [17:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 15 19 07 01 DB 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 12 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 23 01 00 35 04 06 00 41 E1 3B 52 19 CC 00 7B 0A DC 73 5F 5B 3D [17:21:12]CheckFolder [17:21:12]dirname=/storage/ofd_packets [17:21:12]CheckFolder done [17:21:12]ProducePacketName [17:21:12]name=ofd_packets/00074708 [17:21:12]NVStorageSaveData ofd_packets/00074708 [17:21:12]File name is /storage/ofd_packets/00074708 [17:21:12]Write 301 bytes [17:21:12]NVStorageSaveData done [17:21:12]OFDSenderStorePacket done [17:21:12]KKMCreateOFDPacket done [17:21:12]NVStorageSaveData kkm_last_timestamp [17:21:12]File name is /storage/kkm_last_timestamp [17:21:12]Write 4 bytes [17:21:12]NVStorageSaveData done [17:21:12]ExternCall_PrintAddStr [17:21:12]wPrintStart [17:21:12]Write to MH i2c: 01 00 00 88 86 0E [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 88 86 00 00 00 00 00 FF 0F 23 [17:21:12]RasterBufferAndPrint [17:21:12]line Счет N : (1)190674 [17:21:12]line ИНН: 02508201610067 [17:21:12]line Контрольно-Кассовый Чек [17:21:12]line ПРОДАЖА [17:21:12]line ТРК (МРК, ГНК) : 21 [17:21:12]line Товар: 2710124130 [17:21:12]line Аи-92-К-5 [17:21:12]line 7.480 * 66.90 [17:21:12]line = 500.41 [17:21:12]line НДС 12% НСП 1% [17:21:12]line > о реализуемом товаре [17:21:12]line ИТОГО: 500.41 [17:21:12]line НСП 1% : 4.43 [17:21:12]line НДС 12% : 53.14 [17:21:12]line Наличными: 0.00 [17:21:12]line Безнал.: 500.41 [17:21:12]line Место: АЗС № 142 "Партнер Нефть" [17:21:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:21:12]line СНО: Общий режим [17:21:12]line Чек 152 24.10.2024 17:21 [17:21:12]line Смена: 510 ФФД: 1.0 [17:21:12]line ЗНМ: 0300000089 [17:21:12]line РНМ: 0000000000091691 [17:21:12]line Версия ККМ: 001 [17:21:12]line Платежная система: Mbank [17:21:12]line ФМ: 0000000000871795 [17:21:12]line ФД: 74708 [17:21:12]line ФПД: 72435618683340 [17:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172122&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74708&fm=72435618683340&tin=02508201610067®Number=0000000000091691&sum=50041 [17:21:12]written 0, free lines is 4095 [17:21:12]OFD Sender: Processing packet 74708 [packets to send 13, broken 12] [17:21:12]ProducePacketName [17:21:12]name=ofd_packets/00074708 [17:21:12]OFD Sender: To server: pG, [17:21:12]CommunicateWithHost lk.salyk.kg:30040 [17:21:12]ConnectInit lk.salyk.kg [17:21:12]Connected sock=10 [17:21:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 15 19 07 01 DB 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 12 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 23 01 00 35 04 06 00 41 E1 3B 52 19 CC 00 7B 0A DC 73 5F 5B 3D [17:21:12]Write to MH i2c: 01 00 00 B1 86 37 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 B1 86 00 00 00 00 00 C8 0C 12 [17:21:12]RasterBufferAndPrint [17:21:12]line [17:21:12]line [17:21:12]line [17:21:12]line [17:21:12]line [17:21:12]written 0, free lines is 3278 [17:21:12]MH_Cut [17:21:12]Write to MH i2c: D1 01 00 B8 86 01 10 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: D1 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: D1 01 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: D1 01 00 B8 86 00 0F [17:21:12]Write to MH i2c: 01 00 00 B9 86 3F [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C6 C5 47 00 B4 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 31 37 39 35 10 04 04 00 D4 23 01 00 F4 03 04 00 94 29 1A 67 B6 04 01 00 00 0F 90 72 E8 FB 57 87 7C [17:21:12]CommunicateWithHost err = 0 [17:21:12]CheckOFDResponse [17:21:12]1017 (14) - 77093643461234 [17:21:12]1041 (16) - 0000000000871795 [17:21:12]1040 (4) - 74708 [17:21:12]1012 (4) - 24.10.2024 11:03 [17:21:12]1206 (1) - 0 [17:21:12]OFD Sender: Remove packet 74708 [17:21:12]ProducePacketName [17:21:12]name=ofd_packets/00074708 [17:21:12]NVStorageDeleteData [17:21:13]OFD Sender: No OFD packet to send [17:21:13]*** Cut start [17:21:13]*** Partial cut [17:21:13]*** CUTSNS_PIN = 1 [17:21:13]*** CUTSNS_PIN = 0 [17:21:13]*** Brake cut motor [17:21:14]Read from MH i2c: 01 [17:21:14]MH_I2C_Read... [17:21:14]*** Stop cut motor [17:21:14]*** Cut end [17:21:14]Read from MH i2c: 01 07 00 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: 01 07 00 B9 86 00 00 00 00 00 FF 0F 54 [17:21:14]process_action close_receipt done [17:21:14]requested_data is exist [17:21:14]produce_requested_data [17:21:14]requested_item fm.sn is exist - process it [17:21:14]wFMCommunicate request_size=4 [17:21:14]MH_SAM_APDU [17:21:14]CAPDU: 80 11 00 00 [17:21:14]Write to MH i2c: E2 08 00 BA 86 80 11 00 00 00 00 00 00 BA [17:21:14]Write i2c OK [17:21:14]MH_I2C_Read... [17:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:14]Read from MH i2c: E2 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 17 00 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 17 00 BA 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 12 [17:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:21:14]wFMCommunicate OK [17:21:14]requested_item fd.num is exist - process it [17:21:14]SAM_PROTO_GetFieldsCounters [17:21:14]wFMCommunicate request_size=4 [17:21:14]MH_SAM_APDU [17:21:14]CAPDU: 80 13 00 00 [17:21:14]Write to MH i2c: E2 08 00 BB 86 80 13 00 00 00 00 00 00 BD [17:21:14]Write i2c OK [17:21:14]MH_I2C_Read... [17:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:14]Read from MH i2c: E2 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 62 00 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 62 00 BB 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D4 23 01 00 0E 04 04 00 FE 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 A3 [17:21:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D4 23 01 00 0E 04 04 00 FE 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 [17:21:14]wFMCommunicate OK [17:21:14]SAM_PROTO_GetFieldsCounters done [17:21:14]requested_item shift.num is exist - process it [17:21:14]requested_item shift.opened is exist - process it [17:21:14]req_shift_opened [17:21:14]FM_GetShiftState [17:21:14]SAM_PROTO_GetShiftState [17:21:14]wFMCommunicate request_size=4 [17:21:14]MH_SAM_APDU [17:21:14]CAPDU: 80 13 01 00 [17:21:14]Write to MH i2c: E2 08 00 BC 86 80 13 01 00 00 00 00 00 BF [17:21:14]Write i2c OK [17:21:14]MH_I2C_Read... [17:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:14]Read from MH i2c: E2 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 0E 00 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 0E 00 BC 86 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E9 [17:21:14]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:21:14]wFMCommunicate OK [17:21:14]SAM_PROTO_GetShiftState done [17:21:14]FM_GetShiftState done [17:21:14]req_shift_opened done [17:21:14]requested_item shift.open_date is exist - process it [17:21:14]req_shift_open_date [17:21:14]req_shift_open_date done [17:21:14]produce_requested_data done [17:21:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74708,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:21:14]process_action_free close_receipt [17:21:14]json_value_free [17:21:14]json_value_free done [17:21:14]process_json_proto returns [17:21:14]Send response to host [17:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74708,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:21:14]free response buf [17:21:14]execute_script done [17:21:14]execute_script returns [17:21:14]free content buf [17:21:14]Sock 8.Close socket [17:21:14]Sock 8.Thread stoped [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:17]recv_with_timeout no data received [17:24:18]OFD Sender: No OFD packet to send [17:24:23]accept exits with 9 [17:24:23]New connection [17:24:23]New thread 3066662244 created [17:24:23]Thread 3066805604 joined [17:24:23]Waiting for new connection... [17:24:23] Sock 9.Parse request [17:24:23]Sock 9.Check first char [17:24:23]Sock 9.First char is OK [17:24:23]request: POST /json_proto HTTP/1.0 [17:24:23]Method: POST [17:24:23]URL: /json_proto [17:24:23]Method is POST - this is cgi request [17:24:23]url: /json_proto [17:24:23]query_string will be loaded in cgi processing [17:24:23]execute_cgi json_proto POST (null) [17:24:23]execute_cgi path=json_proto method=POST [17:24:23]POST find Content-Length [17:24:23]Host: 172.17.39.131:8080 [17:24:23]Content-Length: 677 [17:24:23]Content-Type: application/json [17:24:23] [17:24:23]POST finish read [17:24:23]Found Content-Length = 677 [17:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]execute_script... [17:24:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]POST & json_proto [17:24:23]process_json_proto [17:24:23]json parsed OK: [17:24:23]protocol is kg_v1.0 [17:24:23]action value=close_receipt [17:24:23]process_action close_receipt [17:24:23]cmd_close_receipt [17:24:23]MH_GetDate [17:24:23]Write to MH i2c: F0 00 00 BD 86 32 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 09 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 09 00 BD 86 00 D3 82 1A 67 86 57 24 65 77 [17:24:23]GetLastDocTimeStamp 1729790482 [17:24:23]current date 1729790675 [17:24:23]FM_GetShiftState [17:24:23]SAM_PROTO_GetShiftState [17:24:23]wFMCommunicate request_size=4 [17:24:23]MH_SAM_APDU [17:24:23]CAPDU: 80 13 01 00 [17:24:23]Write to MH i2c: E2 08 00 BE 86 80 13 01 00 00 00 00 00 C1 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:23]Read from MH i2c: E2 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 BE 86 00 09 00 01 09 95 19 67 00 00 00 00 90 00 EB [17:24:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:24:23]wFMCommunicate OK [17:24:23]SAM_PROTO_GetShiftState done [17:24:23]FM_GetShiftState done [17:24:23]opened in 1729729801 [17:24:23]opened+sec_in_day 1729816201 [17:24:23]quantity*price = 20003 [17:24:23]sum+1 = 20004 [17:24:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 153 24.10.2024 17:24 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74709 ФПД: 257271141370761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172435&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74709&fm=257271141370761&tin=02508201610067®Number=0000000000091691&sum=20000 [17:24:24]StoreToDocumentArchive [17:24:24]shift 510 fd 74709 [17:24:24]save to /storage/0510/doc_00074709 [17:24:24]save last doc name /storage/0510/doc_00074709 to /storage/kkm_last_doc_name [17:24:24]save OK [17:24:24]Clear old archive folders... [17:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:24]tlvbuf is 00A9E070 [17:24:24]SAM_PROTO_ClearQueue [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 09 00 00 [17:24:24]Write to MH i2c: E2 08 00 CB 86 80 09 00 00 00 00 00 00 C3 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 CB 86 00 90 00 C5 [17:24:24]RAPDU: 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_ClearQueue done [17:24:24]KKMCreateOFDPacket [17:24:24]OFDProtocolAddRootSTLVToBuf [17:24:24]FM_MakeSignedData [17:24:24]FM_MakeSignedData [17:24:24]SAM_PROTO_SignData [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 0D 01 02 [17:24:24]Write to MH i2c: E2 08 00 CC 86 80 0D 01 02 00 00 00 00 CB [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 CC 86 00 90 00 C6 [17:24:24]RAPDU: 90 00 [17:24:24]wFMCommunicate OK [17:24:24]wFMCommunicate request_size=255 [17:24:24]MH_SAM_APDU [17:24: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D3 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 23 01 00 35 04 06 00 E9 [17:24:24]Write to MH i2c: E2 02 01 CD 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D3 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 23 01 00 35 04 06 00 E9 00 00 72 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 CD 86 00 90 00 C7 [17:24:24]RAPDU: 90 00 [17:24:24]wFMCommunicate OK [17:24:24]wFMCommunicate request_size=10 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 0D 02 02 05 FC 9A FE 0B 89 [17:24:24]Write to MH i2c: E2 0D 00 CE 86 80 0D 02 02 05 00 FC 9A FE 0B 89 00 00 00 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 03 00 CE 86 00 90 00 C8 [17:24:24]RAPDU: 90 00 [17:24:24]wFMCommunicate OK [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 0D 03 02 [17:24:24]Write to MH i2c: E2 08 00 CF 86 80 0D 03 02 00 00 00 00 D0 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0B 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0B 00 CF 86 00 DC E7 D8 43 24 8E 9A AE 90 00 A9 [17:24:24]RAPDU: DC E7 D8 43 24 8E 9A AE 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_SignData done [17:24:24]FM_MakeSignedData done [17:24:24]CreateOFDProtocolMessage [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 11 00 00 [17:24:24]Write to MH i2c: E2 08 00 D0 86 80 11 00 00 00 00 00 00 D0 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 17 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 17 00 D0 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 28 [17:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:24:24]wFMCommunicate OK [17:24:24]CreateOFDProtocolMessage done [17:24:24]OFDSenderStorePacket 74709 [17:24:24]StoreOFDPacket docnum=74709 [17:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1A 62 07 01 A0 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D3 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 23 01 00 35 04 06 00 E9 FC 9A FE 0B 89 DC E7 D8 43 24 8E 9A AE [17:24:24]CheckFolder [17:24:24]dirname=/storage/ofd_packets [17:24:24]CheckFolder done [17:24:24]ProducePacketName [17:24:24]name=ofd_packets/00074709 [17:24:24]NVStorageSaveData ofd_packets/00074709 [17:24:24]File name is /storage/ofd_packets/00074709 [17:24:24]Write 301 bytes [17:24:24]NVStorageSaveData done [17:24:24]OFDSenderStorePacket done [17:24:24]KKMCreateOFDPacket done [17:24:24]NVStorageSaveData kkm_last_timestamp [17:24:24]File name is /storage/kkm_last_timestamp [17:24:24]Write 4 bytes [17:24:24]NVStorageSaveData done [17:24:24]ExternCall_PrintAddStr [17:24:24]wPrintStart [17:24:24]Write to MH i2c: 01 00 00 D1 86 57 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: 01 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: 01 07 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: 01 07 00 D1 86 00 00 00 00 00 FF 0F 6C [17:24:24]RasterBufferAndPrint [17:24:24]line Счет N : (1)190675 [17:24:24]line ИНН: 02508201610067 [17:24:24]line Контрольно-Кассовый Чек [17:24:24]line ПРОДАЖА [17:24:24]line ТРК (МРК, ГНК) : 21 [17:24:24]line Товар: 2710124130 [17:24:24]line Аи-92-К-5 [17:24:24]line 2.990 * 66.90 [17:24:24]line = 200.03 [17:24:24]line НДС 12% НСП 1% [17:24:24]line > о реализуемом товаре [17:24:24]line ОКРУГЛЕНИЕ: -0.03 [17:24:24]line ИТОГО: 200.00 [17:24:24]line Внесено: 200.00 [17:24:24]line СДАЧА: 0.00 [17:24:24]line НСП 1% : 1.77 [17:24:24]line НДС 12% : 21.24 [17:24:24]line Наличными: 200.00 [17:24:24]line Безнал.: 0.00 [17:24:24]line Место: АЗС № 142 "Партнер Нефть" [17:24:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:24:24]line СНО: Общий режим [17:24:24]line Чек 153 24.10.2024 17:24 [17:24:24]line Смена: 510 ФФД: 1.0 [17:24:24]line ЗНМ: 0300000089 [17:24:24]line РНМ: 0000000000091691 [17:24:24]line Версия ККМ: 001 [17:24:24]line ФМ: 0000000000871795 [17:24:24]line ФД: 74709 [17:24:24]line ФПД: 257271141370761 [17:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172435&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74709&fm=257271141370761&tin=02508201610067®Number=0000000000091691&sum=20000 [17:24:25]OFD Sender: Processing packet 74709 [packets to send 13, broken 12] [17:24:25]ProducePacketName [17:24:25]name=ofd_packets/00074709 [17:24:25]OFD Sender: To server: pG, [17:24:25]CommunicateWithHost lk.salyk.kg:30040 [17:24:25]ConnectInit lk.salyk.kg [17:24:25]written 0, free lines is 4095 [17:24:25]Write to MH i2c: 01 00 00 FC 86 82 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 FC 86 00 00 00 00 00 9C 0C 31 [17:24:25]RasterBufferAndPrint [17:24:25]line [17:24:25]line [17:24:25]line [17:24:25]line [17:24:25]line [17:24:25]written 0, free lines is 3236 [17:24:25]MH_Cut [17:24:25]Write to MH i2c: D1 01 00 03 87 01 5C [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: D1 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: D1 01 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: D1 01 00 03 87 00 5B [17:24:25]Write to MH i2c: 01 00 00 04 87 8B [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:26]*** Cut start [17:24:26]*** Partial cut [17:24:26]*** CUTSNS_PIN = 1 [17:24:26]*** CUTSNS_PIN = 0 [17:24:26]*** Brake cut motor [17:24:27]Read from MH i2c: 01 [17:24:27]MH_I2C_Read... [17:24:27]*** Stop cut motor [17:24:27]*** Cut end [17:24:27]Read from MH i2c: 01 07 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 07 00 04 87 00 00 00 00 00 FF 0F A0 [17:24:27]process_action close_receipt done [17:24:27]requested_data is exist [17:24:27]produce_requested_data [17:24:27]requested_item fm.sn is exist - process it [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 11 00 00 [17:24:27]Write to MH i2c: E2 08 00 05 87 80 11 00 00 00 00 00 00 06 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 05 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5E [17:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:24:27]wFMCommunicate OK [17:24:27]requested_item fd.num is exist - process it [17:24:27]SAM_PROTO_GetFieldsCounters [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 13 00 00 [17:24:27]Write to MH i2c: E2 08 00 06 87 80 13 00 00 00 00 00 00 09 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 62 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 62 00 06 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D5 23 01 00 0E 04 04 00 FE 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 F3 [17:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D5 23 01 00 0E 04 04 00 FE 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 [17:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_GetFieldsCounters done [17:24:27]requested_item shift.num is exist - process it [17:24:27]requested_item shift.opened is exist - process it [17:24:27]req_shift_opened [17:24:27]FM_GetShiftState [17:24:27]SAM_PROTO_GetShiftState [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 13 01 00 [17:24:27]Write to MH i2c: E2 08 00 07 87 80 13 01 00 00 00 00 00 0B [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0E 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0E 00 07 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 35 [17:24:27]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_GetShiftState done [17:24:27]FM_GetShiftState done [17:24:27]req_shift_opened done [17:24:27]requested_item shift.open_date is exist - process it [17:24:27]req_shift_open_date [17:24:27]req_shift_open_date done [17:24:27]produce_requested_data done [17:24:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74709,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:24:27]process_action_free close_receipt [17:24:27]json_value_free [17:24:27]json_value_free done [17:24:27]process_json_proto returns [17:24:27]Send response to host [17:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74709,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:24:27]free response buf [17:24:27]execute_script done [17:24:27]execute_script returns [17:24:27]free content buf [17:24:27]Sock 9.Close socket [17:24:27]Sock 9.Thread stoped [17:24:30]ConnectInit Can't take IP for lk.salyk.kg [17:24:30]CommunicateWithHost connect error [17:24:30]CommunicateWithHost err = -1 [17:24:30]OFD Sender: Server communicate error [17:24:35]OFD Sender: Processing packet 74709 [packets to send 13, broken 12] [17:24:35]ProducePacketName [17:24:35]name=ofd_packets/00074709 [17:24:35]OFD Sender: To server: pG, [17:24:35]CommunicateWithHost lk.salyk.kg:30040 [17:24:35]ConnectInit lk.salyk.kg [17:24:35]Connected sock=9 [17:24:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1A 62 07 01 A0 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D3 82 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 23 01 00 35 04 06 00 E9 FC 9A FE 0B 89 DC E7 D8 43 24 8E 9A AE [17:24:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9E D0 47 00 14 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 23 01 00 F4 03 04 00 5F 2A 1A 67 B6 04 01 00 00 CC D9 2C 80 CC 16 C7 C3 [17:24:35]CommunicateWithHost err = 0 [17:24:35]CheckOFDResponse [17:24:35]1017 (14) - 77093643461234 [17:24:35]1041 (16) - 0000000000871795 [17:24:35]1040 (4) - 74709 [17:24:35]1012 (4) - 24.10.2024 11:07 [17:24:35]1206 (1) - 0 [17:24:35]OFD Sender: Remove packet 74709 [17:24:35]ProducePacketName [17:24:35]name=ofd_packets/00074709 [17:24:35]NVStorageDeleteData [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:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:31]accept exits with 8 [17:25:31]New connection [17:25:31]New thread 3066805604 created [17:25:31]Thread 3066662244 joined [17:25:31]Waiting for new connection... [17:25:31] Sock 8.Parse request [17:25:31]Sock 8.Check first char [17:25:31]Sock 8.First char is OK [17:25:31]request: POST /json_proto HTTP/1.0 [17:25:31]Method: POST [17:25:31]URL: /json_proto [17:25:31]Method is POST - this is cgi request [17:25:31]url: /json_proto [17:25:31]query_string will be loaded in cgi processing [17:25:31]execute_cgi json_proto POST (null) [17:25:31]execute_cgi path=json_proto method=POST [17:25:31]POST find Content-Length [17:25:31]Host: 172.17.39.131:8080 [17:25:31]Content-Length: 677 [17:25:31]Content-Type: application/json [17:25:31] [17:25:31]POST finish read [17:25:31]Found Content-Length = 677 [17:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:31]execute_script... [17:25:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:31]POST & json_proto [17:25:31]process_json_proto [17:25:31]json parsed OK: [17:25:31]protocol is kg_v1.0 [17:25:31]action value=close_receipt [17:25:31]process_action close_receipt [17:25:31]cmd_close_receipt [17:25:31]MH_GetDate [17:25:31]Write to MH i2c: F0 00 00 08 87 7E [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: F0 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: F0 09 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: F0 09 00 08 87 00 17 83 1A 67 86 57 24 65 08 [17:25:31]GetLastDocTimeStamp 1729790675 [17:25:31]current date 1729790743 [17:25:31]FM_GetShiftState [17:25:31]SAM_PROTO_GetShiftState [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 13 01 00 [17:25:31]Write to MH i2c: E2 08 00 09 87 80 13 01 00 00 00 00 00 0D [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0E 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0E 00 09 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 37 [17:25:31]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:25:31]wFMCommunicate OK [17:25:31]SAM_PROTO_GetShiftState done [17:25:31]FM_GetShiftState done [17:25:31]opened in 1729729801 [17:25:31]opened+sec_in_day 1729816201 [17:25:31]quantity*price = 40006 [17:25:31]sum+1 = 40007 [17:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 154 24.10.2024 17:25 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74710 ФПД: 220310317724765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172544&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74710&fm=220310317724765&tin=02508201610067®Number=0000000000091691&sum=40000 [17:25:32]StoreToDocumentArchive [17:25:32]shift 510 fd 74710 [17:25:32]save to /storage/0510/doc_00074710 [17:25:32]save last doc name /storage/0510/doc_00074710 to /storage/kkm_last_doc_name [17:25:32]save OK [17:25:32]Clear old archive folders... [17:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:32]tlvbuf is 0085ED50 [17:25:32]SAM_PROTO_ClearQueue [17:25:32]wFMCommunicate request_size=4 [17:25:32]MH_SAM_APDU [17:25:32]CAPDU: 80 09 00 00 [17:25:32]Write to MH i2c: E2 08 00 16 87 80 09 00 00 00 00 00 00 0F [17:25:32]Write i2c OK [17:25:32]MH_I2C_Read... [17:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:32]Read from MH i2c: E2 [17:25:32]MH_I2C_Read... [17:25:32]Read from MH i2c: E2 03 00 [17:25:32]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 03 00 16 87 00 90 00 11 [17:25:33]RAPDU: 90 00 [17:25:33]wFMCommunicate OK [17:25:33]SAM_PROTO_ClearQueue done [17:25:33]KKMCreateOFDPacket [17:25:33]OFDProtocolAddRootSTLVToBuf [17:25:33]FM_MakeSignedData [17:25:33]FM_MakeSignedData [17:25:33]SAM_PROTO_SignData [17:25:33]wFMCommunicate request_size=4 [17:25:33]MH_SAM_APDU [17:25:33]CAPDU: 80 0D 01 02 [17:25:33]Write to MH i2c: E2 08 00 17 87 80 0D 01 02 00 00 00 00 17 [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:33]Read from MH i2c: E2 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 03 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 03 00 17 87 00 90 00 12 [17:25:33]RAPDU: 90 00 [17:25:33]wFMCommunicate OK [17:25:33]wFMCommunicate request_size=255 [17:25:33]MH_SAM_APDU [17:25: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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 18 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 23 01 00 35 04 06 00 C8 [17:25:33]Write to MH i2c: E2 02 01 18 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 18 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 23 01 00 35 04 06 00 C8 00 00 F2 [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:33]Read from MH i2c: E2 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 03 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 03 00 18 87 00 90 00 13 [17:25:33]RAPDU: 90 00 [17:25:33]wFMCommunicate OK [17:25:33]wFMCommunicate request_size=10 [17:25:33]MH_SAM_APDU [17:25:33]CAPDU: 80 0D 02 02 05 5E FE 3A 74 5D [17:25:33]Write to MH i2c: E2 0D 00 19 87 80 0D 02 02 05 00 5E FE 3A 74 5D 00 00 8B [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:33]Read from MH i2c: E2 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 03 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 03 00 19 87 00 90 00 14 [17:25:33]RAPDU: 90 00 [17:25:33]wFMCommunicate OK [17:25:33]wFMCommunicate request_size=4 [17:25:33]MH_SAM_APDU [17:25:33]CAPDU: 80 0D 03 02 [17:25:33]Write to MH i2c: E2 08 00 1A 87 80 0D 03 02 00 00 00 00 1C [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:33]Read from MH i2c: E2 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 0B 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 0B 00 1A 87 00 F5 56 6D 96 DF A7 4C 5F 90 00 9C [17:25:33]RAPDU: F5 56 6D 96 DF A7 4C 5F 90 00 [17:25:33]wFMCommunicate OK [17:25:33]SAM_PROTO_SignData done [17:25:33]FM_MakeSignedData done [17:25:33]CreateOFDProtocolMessage [17:25:33]wFMCommunicate request_size=4 [17:25:33]MH_SAM_APDU [17:25:33]CAPDU: 80 11 00 00 [17:25:33]Write to MH i2c: E2 08 00 1B 87 80 11 00 00 00 00 00 00 1C [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:33]Read from MH i2c: E2 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 17 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 17 00 1B 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 74 [17:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:25:33]wFMCommunicate OK [17:25:33]CreateOFDProtocolMessage done [17:25:33]OFDSenderStorePacket 74710 [17:25:33]StoreOFDPacket docnum=74710 [17:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F4 07 07 01 53 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 18 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 23 01 00 35 04 06 00 C8 5E FE 3A 74 5D F5 56 6D 96 DF A7 4C 5F [17:25:33]CheckFolder [17:25:33]dirname=/storage/ofd_packets [17:25:33]CheckFolder done [17:25:33]ProducePacketName [17:25:33]name=ofd_packets/00074710 [17:25:33]NVStorageSaveData ofd_packets/00074710 [17:25:33]File name is /storage/ofd_packets/00074710 [17:25:33]Write 301 bytes [17:25:33]NVStorageSaveData done [17:25:33]OFDSenderStorePacket done [17:25:33]KKMCreateOFDPacket done [17:25:33]NVStorageSaveData kkm_last_timestamp [17:25:33]File name is /storage/kkm_last_timestamp [17:25:33]Write 4 bytes [17:25:33]NVStorageSaveData done [17:25:33]ExternCall_PrintAddStr [17:25:33]wPrintStart [17:25:33]Write to MH i2c: 01 00 00 1C 87 A3 [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 07 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 07 00 1C 87 00 00 00 00 00 FF 0F B8 [17:25:33]RasterBufferAndPrint [17:25:33]line Счет N : (1)190676 [17:25:33]line ИНН: 02508201610067 [17:25:33]line Контрольно-Кассовый Чек [17:25:33]line ПРОДАЖА [17:25:33]line ТРК (МРК, ГНК) : 21 [17:25:33]line Товар: 2710124130 [17:25:33]line Аи-92-К-5 [17:25:33]line 5.980 * 66.90 [17:25:33]line = 400.06 [17:25:33]line НДС 12% НСП 1% [17:25:33]line > о реализуемом товаре [17:25:33]line ОКРУГЛЕНИЕ: -0.06 [17:25:33]line ИТОГО: 400.00 [17:25:33]line Внесено: 400.00 [17:25:33]line СДАЧА: 0.00 [17:25:33]line НСП 1% : 3.54 [17:25:33]line НДС 12% : 42.48 [17:25:33]line Наличными: 400.00 [17:25:33]line Безнал.: 0.00 [17:25:33]line Место: АЗС № 142 "Партнер Нефть" [17:25:33]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:25:33]line СНО: Общий режим [17:25:33]line Чек 154 24.10.2024 17:25 [17:25:33]line Смена: 510 ФФД: 1.0 [17:25:33]line ЗНМ: 0300000089 [17:25:33]line РНМ: 0000000000091691 [17:25:33]line Версия ККМ: 001 [17:25:33]line ФМ: 0000000000871795 [17:25:33]line ФД: 74710 [17:25:33]line ФПД: 220310317724765 [17:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172544&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74710&fm=220310317724765&tin=02508201610067®Number=0000000000091691&sum=40000 [17:25:33]OFD Sender: Processing packet 74710 [packets to send 13, broken 12] [17:25:33]ProducePacketName [17:25:33]name=ofd_packets/00074710 [17:25:33]OFD Sender: To server: pG, [17:25:33]CommunicateWithHost lk.salyk.kg:30040 [17:25:33]ConnectInit lk.salyk.kg [17:25:33]written 0, free lines is 4095 [17:25:34]Connected sock=10 [17:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F4 07 07 01 53 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 18 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 23 01 00 35 04 06 00 C8 5E FE 3A 74 5D F5 56 6D 96 DF A7 4C 5F [17:25:34]Write to MH i2c: 01 00 00 47 87 CE [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: 01 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: 01 07 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: 01 07 00 47 87 00 00 00 00 00 A0 0C 81 [17:25:34]RasterBufferAndPrint [17:25:34]line [17:25:34]line [17:25:34]line [17:25:34]line [17:25:34]line [17:25:34]written 0, free lines is 3236 [17:25:34]MH_Cut [17:25:34]Write to MH i2c: D1 01 00 4E 87 01 A7 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: D1 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: D1 01 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: D1 01 00 4E 87 00 A6 [17:25:34]Write to MH i2c: 01 00 00 4F 87 D6 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 3F 22 47 00 E9 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 31 37 39 35 10 04 04 00 D6 23 01 00 F4 03 04 00 99 2A 1A 67 B6 04 01 00 00 9C CE 54 6A 79 3B 39 26 [17:25:34]CommunicateWithHost err = 0 [17:25:34]CheckOFDResponse [17:25:34]1017 (14) - 77093643461234 [17:25:34]1041 (16) - 0000000000871795 [17:25:34]1040 (4) - 74710 [17:25:34]1012 (4) - 24.10.2024 11:08 [17:25:34]1206 (1) - 0 [17:25:34]OFD Sender: Remove packet 74710 [17:25:34]ProducePacketName [17:25:34]name=ofd_packets/00074710 [17:25:34]NVStorageDeleteData [17:25:34]OFD Sender: No OFD packet to send [17:25:35]*** Cut start [17:25:35]*** Partial cut [17:25:35]*** CUTSNS_PIN = 1 [17:25:35]*** CUTSNS_PIN = 0 [17:25:35]*** Brake cut motor [17:25:35]Read from MH i2c: 01 [17:25:35]MH_I2C_Read... [17:25:35]*** Stop cut motor [17:25:35]*** Cut end [17:25:35]Read from MH i2c: 01 07 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 4F 87 00 00 00 00 00 FF 0F EB [17:25:35]process_action close_receipt done [17:25:35]requested_data is exist [17:25:35]produce_requested_data [17:25:35]requested_item fm.sn is exist - process it [17:25:35]wFMCommunicate request_size=4 [17:25:35]MH_SAM_APDU [17:25:35]CAPDU: 80 11 00 00 [17:25:35]Write to MH i2c: E2 08 00 50 87 80 11 00 00 00 00 00 00 51 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 17 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 17 00 50 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A9 [17:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:25:35]wFMCommunicate OK [17:25:35]requested_item fd.num is exist - process it [17:25:35]SAM_PROTO_GetFieldsCounters [17:25:35]wFMCommunicate request_size=4 [17:25:35]MH_SAM_APDU [17:25:35]CAPDU: 80 13 00 00 [17:25:35]Write to MH i2c: E2 08 00 51 87 80 13 00 00 00 00 00 00 54 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 62 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 62 00 51 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D6 23 01 00 0E 04 04 00 FE 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 42 [17:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D6 23 01 00 0E 04 04 00 FE 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 [17:25:35]wFMCommunicate OK [17:25:35]SAM_PROTO_GetFieldsCounters done [17:25:35]requested_item shift.num is exist - process it [17:25:35]requested_item shift.opened is exist - process it [17:25:35]req_shift_opened [17:25:35]FM_GetShiftState [17:25:35]SAM_PROTO_GetShiftState [17:25:35]wFMCommunicate request_size=4 [17:25:35]MH_SAM_APDU [17:25:35]CAPDU: 80 13 01 00 [17:25:35]Write to MH i2c: E2 08 00 52 87 80 13 01 00 00 00 00 00 56 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:36]Read from MH i2c: E2 [17:25:36]MH_I2C_Read... [17:25:36]Read from MH i2c: E2 0E 00 [17:25:36]MH_I2C_Read... [17:25:36]Read from MH i2c: E2 0E 00 52 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 80 [17:25:36]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:25:36]wFMCommunicate OK [17:25:36]SAM_PROTO_GetShiftState done [17:25:36]FM_GetShiftState done [17:25:36]req_shift_opened done [17:25:36]requested_item shift.open_date is exist - process it [17:25:36]req_shift_open_date [17:25:36]req_shift_open_date done [17:25:36]produce_requested_data done [17:25:36]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74710,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:25:36]process_action_free close_receipt [17:25:36]json_value_free [17:25:36]json_value_free done [17:25:36]process_json_proto returns [17:25:36]Send response to host [17:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74710,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:25:36]free response buf [17:25:36]execute_script done [17:25:36]execute_script returns [17:25:36]free content buf [17:25:36]Sock 8.Close socket [17:25:36]Sock 8.Thread stoped [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:04]accept exits with 9 [17:27:04]New connection [17:27:04]New thread 3066662244 created [17:27:04]Thread 3066805604 joined [17:27:04]Waiting for new connection... [17:27:04] Sock 9.Parse request [17:27:04]Sock 9.Check first char [17:27:04]Sock 9.First char is OK [17:27:04]request: POST /json_proto HTTP/1.0 [17:27:04]Method: POST [17:27:04]URL: /json_proto [17:27:04]Method is POST - this is cgi request [17:27:04]url: /json_proto [17:27:04]query_string will be loaded in cgi processing [17:27:04]execute_cgi json_proto POST (null) [17:27:04]execute_cgi path=json_proto method=POST [17:27:04]POST find Content-Length [17:27:04]Host: 172.17.39.131:8080 [17:27:04]Content-Length: 677 [17:27:04]Content-Type: application/json [17:27:04] [17:27:04]POST finish read [17:27:04]Found Content-Length = 677 [17:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:04]execute_script... [17:27: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)190678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:04]POST & json_proto [17:27:04]process_json_proto [17:27:04]json parsed OK: [17:27:04]protocol is kg_v1.0 [17:27:04]action value=close_receipt [17:27:04]process_action close_receipt [17:27:04]cmd_close_receipt [17:27:04]MH_GetDate [17:27:04]Write to MH i2c: F0 00 00 53 87 C9 [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 53 87 00 75 83 1A 67 86 57 24 65 B1 [17:27:04]GetLastDocTimeStamp 1729790744 [17:27:04]current date 1729790837 [17:27:04]FM_GetShiftState [17:27:04]SAM_PROTO_GetShiftState [17:27:04]wFMCommunicate request_size=4 [17:27:04]MH_SAM_APDU [17:27:04]CAPDU: 80 13 01 00 [17:27:04]Write to MH i2c: E2 08 00 54 87 80 13 01 00 00 00 00 00 58 [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:05]OFD Sender: No OFD packet to send [17:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 0E 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 0E 00 54 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 82 [17:27:05]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:27:05]wFMCommunicate OK [17:27:05]SAM_PROTO_GetShiftState done [17:27:05]FM_GetShiftState done [17:27:05]opened in 1729729801 [17:27:05]opened+sec_in_day 1729816201 [17:27:05]quantity*price = 30038 [17:27:05]sum+1 = 30039 [17:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 155 24.10.2024 17:27 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74711 ФПД: 229953651193778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172717&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74711&fm=229953651193778&tin=02508201610067®Number=0000000000091691&sum=30000 [17:27:06]StoreToDocumentArchive [17:27:06]shift 510 fd 74711 [17:27:06]save to /storage/0510/doc_00074711 [17:27:06]save last doc name /storage/0510/doc_00074711 to /storage/kkm_last_doc_name [17:27:06]save OK [17:27:06]Clear old archive folders... [17:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:06]tlvbuf is 0087C600 [17:27:06]SAM_PROTO_ClearQueue [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 09 00 00 [17:27:06]Write to MH i2c: E2 08 00 61 87 80 09 00 00 00 00 00 00 5A [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 61 87 00 90 00 5C [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]SAM_PROTO_ClearQueue done [17:27:06]KKMCreateOFDPacket [17:27:06]OFDProtocolAddRootSTLVToBuf [17:27:06]FM_MakeSignedData [17:27:06]FM_MakeSignedData [17:27:06]SAM_PROTO_SignData [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 01 02 [17:27:06]Write to MH i2c: E2 08 00 62 87 80 0D 01 02 00 00 00 00 62 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 62 87 00 90 00 5D [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]wFMCommunicate request_size=255 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 75 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 23 01 00 35 04 06 00 D1 [17:27:06]Write to MH i2c: E2 02 01 63 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 75 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 23 01 00 35 04 06 00 D1 00 00 CA [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 63 87 00 90 00 5E [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]wFMCommunicate request_size=10 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 02 02 05 24 41 B1 B7 B2 [17:27:06]Write to MH i2c: E2 0D 00 64 87 80 0D 02 02 05 00 24 41 B1 B7 B2 00 00 EE [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 64 87 00 90 00 5F [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 03 02 [17:27:06]Write to MH i2c: E2 08 00 65 87 80 0D 03 02 00 00 00 00 67 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 0B 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 0B 00 65 87 00 FF 05 04 A7 E3 16 A4 78 90 00 2C [17:27:06]RAPDU: FF 05 04 A7 E3 16 A4 78 90 00 [17:27:06]wFMCommunicate OK [17:27:06]SAM_PROTO_SignData done [17:27:06]FM_MakeSignedData done [17:27:06]CreateOFDProtocolMessage [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 11 00 00 [17:27:06]Write to MH i2c: E2 08 00 66 87 80 11 00 00 00 00 00 00 67 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 17 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 17 00 66 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BF [17:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:27:06]wFMCommunicate OK [17:27:06]CreateOFDProtocolMessage done [17:27:06]OFDSenderStorePacket 74711 [17:27:06]StoreOFDPacket docnum=74711 [17:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FE 6D 07 01 F5 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 75 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 23 01 00 35 04 06 00 D1 24 41 B1 B7 B2 FF 05 04 A7 E3 16 A4 78 [17:27:06]CheckFolder [17:27:06]dirname=/storage/ofd_packets [17:27:06]CheckFolder done [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00074711 [17:27:06]NVStorageSaveData ofd_packets/00074711 [17:27:06]File name is /storage/ofd_packets/00074711 [17:27:06]Write 301 bytes [17:27:06]NVStorageSaveData done [17:27:06]OFDSenderStorePacket done [17:27:06]KKMCreateOFDPacket done [17:27:06]NVStorageSaveData kkm_last_timestamp [17:27:06]File name is /storage/kkm_last_timestamp [17:27:06]Write 4 bytes [17:27:06]NVStorageSaveData done [17:27:06]ExternCall_PrintAddStr [17:27:06]wPrintStart [17:27:06]Write to MH i2c: 01 00 00 67 87 EE [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 67 87 00 00 00 00 00 FF 0F 03 [17:27:06]RasterBufferAndPrint [17:27:06]line Счет N : (1)190678 [17:27:06]line ИНН: 02508201610067 [17:27:06]line Контрольно-Кассовый Чек [17:27:06]line ПРОДАЖА [17:27:06]line ТРК (МРК, ГНК) : 21 [17:27:06]line Товар: 2710124130 [17:27:06]line Аи-92-К-5 [17:27:06]line 4.490 * 66.90 [17:27:06]line = 300.38 [17:27:06]line НДС 12% НСП 1% [17:27:06]line > о реализуемом товаре [17:27:06]line ОКРУГЛЕНИЕ: -0.38 [17:27:06]line ИТОГО: 300.00 [17:27:06]line Внесено: 300.00 [17:27:06]line СДАЧА: 0.00 [17:27:06]line НСП 1% : 2.66 [17:27:06]line НДС 12% : 31.90 [17:27:06]line Наличными: 300.00 [17:27:06]line Безнал.: 0.00 [17:27:06]line Место: АЗС № 142 "Партнер Нефть" [17:27:06]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:27:06]line СНО: Общий режим [17:27:06]line Чек 155 24.10.2024 17:27 [17:27:06]line Смена: 510 ФФД: 1.0 [17:27:06]line ЗНМ: 0300000089 [17:27:06]line РНМ: 0000000000091691 [17:27:06]line Версия ККМ: 001 [17:27:06]line ФМ: 0000000000871795 [17:27:06]line ФД: 74711 [17:27:06]line ФПД: 229953651193778 [17:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172717&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74711&fm=229953651193778&tin=02508201610067®Number=0000000000091691&sum=30000 [17:27:07]written 0, free lines is 4095 [17:27:07]OFD Sender: Processing packet 74711 [packets to send 13, broken 12] [17:27:07]ProducePacketName [17:27:07]name=ofd_packets/00074711 [17:27:07]OFD Sender: To server: pG, [17:27:07]CommunicateWithHost lk.salyk.kg:30040 [17:27:07]ConnectInit lk.salyk.kg [17:27:07]Connected sock=10 [17:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FE 6D 07 01 F5 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 75 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 23 01 00 35 04 06 00 D1 24 41 B1 B7 B2 FF 05 04 A7 E3 16 A4 78 [17:27:07]Write to MH i2c: 01 00 00 92 87 19 [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: 01 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: 01 07 00 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: 01 07 00 92 87 00 00 00 00 00 A5 0C D1 [17:27:07]RasterBufferAndPrint [17:27:07]line [17:27:07]line [17:27:07]line [17:27:07]line [17:27:07]line [17:27:07]written 0, free lines is 3245 [17:27:07]MH_Cut [17:27:07]Write to MH i2c: D1 01 00 99 87 01 F2 [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: D1 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: D1 01 00 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: D1 01 00 99 87 00 F1 [17:27:07]Write to MH i2c: 01 00 00 9A 87 21 [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C4 B0 47 00 B0 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 31 37 39 35 10 04 04 00 D7 23 01 00 F4 03 04 00 F7 2A 1A 67 B6 04 01 00 00 A2 10 64 B3 AC 13 03 FA [17:27:07]CommunicateWithHost err = 0 [17:27:07]CheckOFDResponse [17:27:07]1017 (14) - 77093643461234 [17:27:07]1041 (16) - 0000000000871795 [17:27:07]1040 (4) - 74711 [17:27:07]1012 (4) - 24.10.2024 11:09 [17:27:07]1206 (1) - 0 [17:27:07]OFD Sender: Remove packet 74711 [17:27:07]ProducePacketName [17:27:07]name=ofd_packets/00074711 [17:27:07]NVStorageDeleteData [17:27:08]OFD Sender: No OFD packet to send [17:27:08]*** Cut start [17:27:08]*** Partial cut [17:27:08]*** CUTSNS_PIN = 1 [17:27:08]*** CUTSNS_PIN = 0 [17:27:08]*** Brake cut motor [17:27:08]Read from MH i2c: 01 [17:27:08]MH_I2C_Read... [17:27:08]*** Stop cut motor [17:27:09]*** Cut end [17:27:09]Read from MH i2c: 01 07 00 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: 01 07 00 9A 87 00 00 00 00 00 FF 0F 36 [17:27:09]process_action close_receipt done [17:27:09]requested_data is exist [17:27:09]produce_requested_data [17:27:09]requested_item fm.sn is exist - process it [17:27:09]wFMCommunicate request_size=4 [17:27:09]MH_SAM_APDU [17:27:09]CAPDU: 80 11 00 00 [17:27:09]Write to MH i2c: E2 08 00 9B 87 80 11 00 00 00 00 00 00 9C [17:27:09]Write i2c OK [17:27:09]MH_I2C_Read... [17:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:09]Read from MH i2c: E2 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 17 00 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 17 00 9B 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F4 [17:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:27:09]wFMCommunicate OK [17:27:09]requested_item fd.num is exist - process it [17:27:09]SAM_PROTO_GetFieldsCounters [17:27:09]wFMCommunicate request_size=4 [17:27:09]MH_SAM_APDU [17:27:09]CAPDU: 80 13 00 00 [17:27:09]Write to MH i2c: E2 08 00 9C 87 80 13 00 00 00 00 00 00 9F [17:27:09]Write i2c OK [17:27:09]MH_I2C_Read... [17:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:09]Read from MH i2c: E2 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 62 00 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 62 00 9C 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D7 23 01 00 0E 04 04 00 FE 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 91 [17:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D7 23 01 00 0E 04 04 00 FE 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 [17:27:09]wFMCommunicate OK [17:27:09]SAM_PROTO_GetFieldsCounters done [17:27:09]requested_item shift.num is exist - process it [17:27:09]requested_item shift.opened is exist - process it [17:27:09]req_shift_opened [17:27:09]FM_GetShiftState [17:27:09]SAM_PROTO_GetShiftState [17:27:09]wFMCommunicate request_size=4 [17:27:09]MH_SAM_APDU [17:27:09]CAPDU: 80 13 01 00 [17:27:09]Write to MH i2c: E2 08 00 9D 87 80 13 01 00 00 00 00 00 A1 [17:27:09]Write i2c OK [17:27:09]MH_I2C_Read... [17:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:09]Read from MH i2c: E2 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 0E 00 [17:27:09]MH_I2C_Read... [17:27:09]Read from MH i2c: E2 0E 00 9D 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CB [17:27:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:27:09]wFMCommunicate OK [17:27:09]SAM_PROTO_GetShiftState done [17:27:09]FM_GetShiftState done [17:27:09]req_shift_opened done [17:27:09]requested_item shift.open_date is exist - process it [17:27:09]req_shift_open_date [17:27:09]req_shift_open_date done [17:27:09]produce_requested_data done [17:27:09]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74711,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:27:09]process_action_free close_receipt [17:27:09]json_value_free [17:27:09]json_value_free done [17:27:09]process_json_proto returns [17:27:09]Send response to host [17:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74711,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:27:09]free response buf [17:27:09]execute_script done [17:27:09]execute_script returns [17:27:09]free content buf [17:27:09]Sock 9.Close socket [17:27:09]Sock 9.Thread stoped [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:11]recv_with_timeout no data received [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:07]accept exits with 8 [17:29:07]New connection [17:29:07]New thread 3066805604 created [17:29:07]Thread 3066662244 joined [17:29:07]Waiting for new connection... [17:29:07] Sock 8.Parse request [17:29:07]Sock 8.Check first char [17:29:07]Sock 8.First char is OK [17:29:07]request: POST /json_proto HTTP/1.0 [17:29:07]Method: POST [17:29:07]URL: /json_proto [17:29:07]Method is POST - this is cgi request [17:29:07]url: /json_proto [17:29:07]query_string will be loaded in cgi processing [17:29:07]execute_cgi json_proto POST (null) [17:29:07]execute_cgi path=json_proto method=POST [17:29:07]POST find Content-Length [17:29:07]Host: 172.17.39.131:8080 [17:29:07]Content-Length: 682 [17:29:07]Content-Type: application/json [17:29:07] [17:29:07]POST finish read [17:29:07]Found Content-Length = 682 [17:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:07]execute_script... [17:29: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)190679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:07]POST & json_proto [17:29:07]process_json_proto [17:29:07]json parsed OK: [17:29:07]protocol is kg_v1.0 [17:29:07]action value=close_receipt [17:29:07]process_action close_receipt [17:29:07]cmd_close_receipt [17:29:07]MH_GetDate [17:29:07]Write to MH i2c: F0 00 00 9E 87 14 [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: F0 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: F0 09 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: F0 09 00 9E 87 00 F0 83 1A 67 86 57 24 65 77 [17:29:07]GetLastDocTimeStamp 1729790837 [17:29:07]current date 1729790960 [17:29:07]FM_GetShiftState [17:29:07]SAM_PROTO_GetShiftState [17:29:07]wFMCommunicate request_size=4 [17:29:07]MH_SAM_APDU [17:29:07]CAPDU: 80 13 01 00 [17:29:07]Write to MH i2c: E2 08 00 9F 87 80 13 01 00 00 00 00 00 A3 [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:07]Read from MH i2c: E2 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 0E 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 0E 00 9F 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CD [17:29:07]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:29:07]wFMCommunicate OK [17:29:07]SAM_PROTO_GetShiftState done [17:29:07]FM_GetShiftState done [17:29:07]opened in 1729729801 [17:29:07]opened+sec_in_day 1729816201 [17:29:07]quantity*price = 100015 [17:29:07]sum+1 = 100017 [17:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 156 24.10.2024 17:29 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74712 ФПД: 134031028037012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172920&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74712&fm=134031028037012&tin=02508201610067®Number=0000000000091691&sum=100000 [17:29:09]StoreToDocumentArchive [17:29:09]shift 510 fd 74712 [17:29:09]save to /storage/0510/doc_00074712 [17:29:09]save last doc name /storage/0510/doc_00074712 to /storage/kkm_last_doc_name [17:29:09]save OK [17:29:09]Clear old archive folders... [17:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:09]tlvbuf is 007C69B0 [17:29:09]SAM_PROTO_ClearQueue [17:29:09]wFMCommunicate request_size=4 [17:29:09]MH_SAM_APDU [17:29:09]CAPDU: 80 09 00 00 [17:29:09]Write to MH i2c: E2 08 00 AC 87 80 09 00 00 00 00 00 00 A5 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:09]Read from MH i2c: E2 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 AC 87 00 90 00 A7 [17:29:09]RAPDU: 90 00 [17:29:09]wFMCommunicate OK [17:29:09]SAM_PROTO_ClearQueue done [17:29:09]KKMCreateOFDPacket [17:29:09]OFDProtocolAddRootSTLVToBuf [17:29:09]FM_MakeSignedData [17:29:09]FM_MakeSignedData [17:29:09]SAM_PROTO_SignData [17:29:09]wFMCommunicate request_size=4 [17:29:09]MH_SAM_APDU [17:29:09]CAPDU: 80 0D 01 02 [17:29:09]Write to MH i2c: E2 08 00 AD 87 80 0D 01 02 00 00 00 00 AD [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:09]Read from MH i2c: E2 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 AD 87 00 90 00 A8 [17:29:09]RAPDU: 90 00 [17:29:09]wFMCommunicate OK [17:29:09]wFMCommunicate request_size=255 [17:29:09]MH_SAM_APDU [17:29: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F0 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 23 01 00 35 04 06 00 79 [17:29:09]Write to MH i2c: E2 02 01 AE 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F0 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 23 01 00 35 04 06 00 79 00 00 40 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:09]Read from MH i2c: E2 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 AE 87 00 90 00 A9 [17:29:09]RAPDU: 90 00 [17:29:09]wFMCommunicate OK [17:29:09]wFMCommunicate request_size=10 [17:29:09]MH_SAM_APDU [17:29:09]CAPDU: 80 0D 02 02 05 E6 87 D0 A5 94 [17:29:09]Write to MH i2c: E2 0D 00 AF 87 80 0D 02 02 05 00 E6 87 D0 A5 94 00 00 30 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:09]Read from MH i2c: E2 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 03 00 AF 87 00 90 00 AA [17:29:09]RAPDU: 90 00 [17:29:09]wFMCommunicate OK [17:29:09]wFMCommunicate request_size=4 [17:29:09]MH_SAM_APDU [17:29:09]CAPDU: 80 0D 03 02 [17:29:09]Write to MH i2c: E2 08 00 B0 87 80 0D 03 02 00 00 00 00 B2 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:09]Read from MH i2c: E2 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 0B 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 0B 00 B0 87 00 1B E1 D8 59 E6 FB BF 2E 90 00 AE [17:29:09]RAPDU: 1B E1 D8 59 E6 FB BF 2E 90 00 [17:29:09]wFMCommunicate OK [17:29:09]SAM_PROTO_SignData done [17:29:09]FM_MakeSignedData done [17:29:09]CreateOFDProtocolMessage [17:29:09]wFMCommunicate request_size=4 [17:29:09]MH_SAM_APDU [17:29:09]CAPDU: 80 11 00 00 [17:29:09]Write to MH i2c: E2 08 00 B1 87 80 11 00 00 00 00 00 00 B2 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:09]Read from MH i2c: E2 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 17 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: E2 17 00 B1 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0A [17:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:29:09]wFMCommunicate OK [17:29:09]CreateOFDProtocolMessage done [17:29:09]OFDSenderStorePacket 74712 [17:29:09]StoreOFDPacket docnum=74712 [17:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C4 4C 07 01 99 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F0 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 23 01 00 35 04 06 00 79 E6 87 D0 A5 94 1B E1 D8 59 E6 FB BF 2E [17:29:09]CheckFolder [17:29:09]dirname=/storage/ofd_packets [17:29:09]CheckFolder done [17:29:09]ProducePacketName [17:29:09]name=ofd_packets/00074712 [17:29:09]NVStorageSaveData ofd_packets/00074712 [17:29:09]File name is /storage/ofd_packets/00074712 [17:29:09]Write 301 bytes [17:29:09]NVStorageSaveData done [17:29:09]OFDSenderStorePacket done [17:29:09]KKMCreateOFDPacket done [17:29:09]NVStorageSaveData kkm_last_timestamp [17:29:09]File name is /storage/kkm_last_timestamp [17:29:09]Write 4 bytes [17:29:09]NVStorageSaveData done [17:29:09]ExternCall_PrintAddStr [17:29:09]wPrintStart [17:29:09]Write to MH i2c: 01 00 00 B2 87 39 [17:29:09]Write i2c OK [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: 01 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: 01 07 00 [17:29:09]MH_I2C_Read... [17:29:09]Read from MH i2c: 01 07 00 B2 87 00 00 00 00 00 FF 0F 4E [17:29:09]RasterBufferAndPrint [17:29:09]line Счет N : (1)190679 [17:29:09]line ИНН: 02508201610067 [17:29:09]line Контрольно-Кассовый Чек [17:29:09]line ПРОДАЖА [17:29:09]line ТРК (МРК, ГНК) : 21 [17:29:09]line Товар: 2710124130 [17:29:09]line Аи-92-К-5 [17:29:09]line 14.950 * 66.90 [17:29:09]line = 1000.16 [17:29:09]line НДС 12% НСП 1% [17:29:09]line > о реализуемом товаре [17:29:09]line ОКРУГЛЕНИЕ: -0.16 [17:29:09]line ИТОГО: 1000.00 [17:29:09]line Внесено: 1000.00 [17:29:09]line СДАЧА: 0.00 [17:29:09]line НСП 1% : 8.85 [17:29:09]line НДС 12% : 106.21 [17:29:09]line Наличными: 1000.00 [17:29:09]line Безнал.: 0.00 [17:29:09]line Место: АЗС № 142 "Партнер Нефть" [17:29:09]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:29:09]line СНО: Общий режим [17:29:09]line Чек 156 24.10.2024 17:29 [17:29:09]line Смена: 510 ФФД: 1.0 [17:29:09]line ЗНМ: 0300000089 [17:29:09]line РНМ: 0000000000091691 [17:29:09]line Версия ККМ: 001 [17:29:09]line ФМ: 0000000000871795 [17:29:09]line ФД: 74712 [17:29:09]line ФПД: 134031028037012 [17:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172920&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74712&fm=134031028037012&tin=02508201610067®Number=0000000000091691&sum=100000 [17:29:09]written 0, free lines is 4095 [17:29:09]OFD Sender: Processing packet 74712 [packets to send 13, broken 12] [17:29:09]ProducePacketName [17:29:09]name=ofd_packets/00074712 [17:29:09]OFD Sender: To server: pG, [17:29:09]CommunicateWithHost lk.salyk.kg:30040 [17:29:09]ConnectInit lk.salyk.kg [17:29:10]Write to MH i2c: 01 00 00 DD 87 64 [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: 01 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: 01 07 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: 01 07 00 DD 87 00 00 00 00 00 A3 0C 1A [17:29:10]RasterBufferAndPrint [17:29:10]line [17:29:10]line [17:29:10]line [17:29:10]line [17:29:10]line [17:29:10]written 0, free lines is 3241 [17:29:10]MH_Cut [17:29:10]Write to MH i2c: D1 01 00 E4 87 01 3D [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: D1 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: D1 01 00 [17:29:10]MH_I2C_Read... [17:29:10]Read from MH i2c: D1 01 00 E4 87 00 3C [17:29:10]Write to MH i2c: 01 00 00 E5 87 6C [17:29:10]Write i2c OK [17:29:10]MH_I2C_Read... [17:29:11]*** Cut start [17:29:11]*** Partial cut [17:29:11]*** CUTSNS_PIN = 1 [17:29:11]*** CUTSNS_PIN = 0 [17:29:11]*** Brake cut motor [17:29:11]Connected sock=11 [17:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C4 4C 07 01 99 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 *** Stop cut motor [17:29:11]00 *** Cut end [17:29:11]00 F2 Read from MH i2c: 03 01 01 [17:29:11]00 MH_I2C_Read... [17:29:11]01 F6 Read from MH i2c: 03 01 01 00 07 01 00 BC [17:29:11]04 MH_I2C_Read... [17:29:11]01 00 01 FC 03 06 00 Read from MH i2c: A0 01 86 07 01 00 00 E5 00 87 00 00 EB 00 03 00 26 00 00 00 EF FF 03 0F 0F 81 00 F6 [17:29:11]03 process_action close_receipt done [17:29:11]01 requested_data is exist [17:29:11]00 produce_requested_data [17:29:11]01 requested_item fm.sn is exist - process it [17:29:11]F7 wFMCommunicate request_size=4 [17:29:11]03 MH_SAM_APDU [17:29:11]06 CAPDU: 00 75 80 03 00 11 00 00 00 00 00 [17:29:11]EE Write to MH i2c: E2 03 08 0F 00 E6 87 00 80 F2 11 03 00 00 00 01 00 00 01 00 F3 03 00 06 E7 00 [17:29:11]7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 Write i2c OK [17:29:11]00 MH_I2C_Read... [17:29:11]00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F0 83 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 23 01 00 35 04 06 00 79 E6 87 D0 A5 94 1B E1 D8 59 E6 FB BF 2E [17:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:11]Read from MH i2c: E2 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 17 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 17 00 E6 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3F [17:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:29:11]wFMCommunicate OK [17:29:11]requested_item fd.num is exist - process it [17:29:11]SAM_PROTO_GetFieldsCounters [17:29:11]wFMCommunicate request_size=4 [17:29:11]MH_SAM_APDU [17:29:11]CAPDU: 80 13 00 00 [17:29:11]Write to MH i2c: E2 08 00 E7 87 80 13 00 00 00 00 00 00 EA [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:12]Read from MH i2c: E2 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 62 00 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 62 00 E7 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D8 23 01 00 0E 04 04 00 FE 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 E0 [17:29:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D8 23 01 00 0E 04 04 00 FE 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 [17:29:12]wFMCommunicate OK [17:29:12]SAM_PROTO_GetFieldsCounters done [17:29:12]requested_item shift.num is exist - process it [17:29:12]requested_item shift.opened is exist - process it [17:29:12]req_shift_opened [17:29:12]FM_GetShiftState [17:29:12]SAM_PROTO_GetShiftState [17:29:12]wFMCommunicate request_size=4 [17:29:12]MH_SAM_APDU [17:29:12]CAPDU: 80 13 01 00 [17:29:12]Write to MH i2c: E2 08 00 E8 87 80 13 01 00 00 00 00 00 EC [17:29:12]Write i2c OK [17:29:12]MH_I2C_Read... [17:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:12]Read from MH i2c: E2 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 0E 00 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 0E 00 E8 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 16 [17:29:12]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:29:12]wFMCommunicate OK [17:29:12]SAM_PROTO_GetShiftState done [17:29:12]FM_GetShiftState done [17:29:12]req_shift_opened done [17:29:12]requested_item shift.open_date is exist - process it [17:29:12]req_shift_open_date [17:29:12]req_shift_open_date done [17:29:12]produce_requested_data done [17:29:12]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74712,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:29:12]process_action_free close_receipt [17:29:12]json_value_free [17:29:12]json_value_free done [17:29:12]process_json_proto returns [17:29:12]Send response to host [17:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74712,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:29:12]free response buf [17:29:12]execute_script done [17:29:12]execute_script returns [17:29:12]free content buf [17:29:12]Sock 8.Close socket [17:29:12]Sock 8.Thread stoped [17:29:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 AF D4 47 00 66 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 31 37 39 35 10 04 04 00 D8 23 01 00 F4 03 04 00 73 2B 1A 67 B6 04 01 00 00 34 C8 C1 20 10 D3 37 CD [17:29:12]CommunicateWithHost err = 0 [17:29:12]CheckOFDResponse [17:29:12]1017 (14) - 77093643461234 [17:29:12]1041 (16) - 0000000000871795 [17:29:12]1040 (4) - 74712 [17:29:12]1012 (4) - 24.10.2024 11:11 [17:29:12]1206 (1) - 0 [17:29:12]OFD Sender: Remove packet 74712 [17:29:12]ProducePacketName [17:29:12]name=ofd_packets/00074712 [17:29:12]NVStorageDeleteData [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:30:59]accept exits with 10 [17:30:59]New connection [17:30:59]New thread 3066662244 created [17:30:59]Thread 3066805604 joined [17:30:59]Waiting for new connection... [17:30:59] Sock 10.Parse request [17:30:59]Sock 10.Check first char [17:30:59]Sock 10.First char is OK [17:30:59]request: POST /json_proto HTTP/1.0 [17:30:59]Method: POST [17:30:59]URL: /json_proto [17:30:59]Method is POST - this is cgi request [17:30:59]url: /json_proto [17:30:59]query_string will be loaded in cgi processing [17:30:59]execute_cgi json_proto POST (null) [17:30:59]execute_cgi path=json_proto method=POST [17:30:59]POST find Content-Length [17:30:59]Host: 172.17.39.131:8080 [17:30:59]Content-Length: 677 [17:30:59]Content-Type: application/json [17:30:59] [17:30:59]POST finish read [17:30:59]Found Content-Length = 677 [17:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:59]execute_script... [17:30: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)190680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:59]POST & json_proto [17:30:59]process_json_proto [17:30:59]json parsed OK: [17:30:59]protocol is kg_v1.0 [17:30:59]action value=close_receipt [17:30:59]process_action close_receipt [17:30:59]cmd_close_receipt [17:30:59]MH_GetDate [17:30:59]Write to MH i2c: F0 00 00 E9 87 5F [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: F0 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: F0 09 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: F0 09 00 E9 87 00 5F 84 1A 67 86 57 24 65 32 [17:30:59]GetLastDocTimeStamp 1729790960 [17:30:59]current date 1729791071 [17:30:59]FM_GetShiftState [17:30:59]SAM_PROTO_GetShiftState [17:30:59]wFMCommunicate request_size=4 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 13 01 00 [17:30:59]Write to MH i2c: E2 08 00 EA 87 80 13 01 00 00 00 00 00 EE [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 0E 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 0E 00 EA 87 00 09 00 01 09 95 19 67 00 00 00 00 90 00 18 [17:30:59]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:30:59]wFMCommunicate OK [17:30:59]SAM_PROTO_GetShiftState done [17:30:59]FM_GetShiftState done [17:30:59]opened in 1729729801 [17:30:59]opened+sec_in_day 1729816201 [17:30:59]quantity*price = 60009 [17:30:59]sum+1 = 60010 [17:30:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 157 24.10.2024 17:31 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74713 ФПД: 279391867216434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173111&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74713&fm=279391867216434&tin=02508201610067®Number=0000000000091691&sum=60000 [17:31:00]StoreToDocumentArchive [17:31:00]shift 510 fd 74713 [17:31:00]save to /storage/0510/doc_00074713 [17:31:00]save last doc name /storage/0510/doc_00074713 to /storage/kkm_last_doc_name [17:31:00]save OK [17:31:00]Clear old archive folders... [17:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:00]tlvbuf is 007EBE80 [17:31:00]SAM_PROTO_ClearQueue [17:31:00]wFMCommunicate request_size=4 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 09 00 00 [17:31:00]Write to MH i2c: E2 08 00 F7 87 80 09 00 00 00 00 00 00 F0 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 F7 87 00 90 00 F2 [17:31:00]RAPDU: 90 00 [17:31:00]wFMCommunicate OK [17:31:00]SAM_PROTO_ClearQueue done [17:31:00]KKMCreateOFDPacket [17:31:00]OFDProtocolAddRootSTLVToBuf [17:31:00]FM_MakeSignedData [17:31:00]FM_MakeSignedData [17:31:00]SAM_PROTO_SignData [17:31:00]wFMCommunicate request_size=4 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 0D 01 02 [17:31:00]Write to MH i2c: E2 08 00 F8 87 80 0D 01 02 00 00 00 00 F8 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 F8 87 00 90 00 F3 [17:31:00]RAPDU: 90 00 [17:31:00]wFMCommunicate OK [17:31:00]wFMCommunicate request_size=255 [17:31:00]MH_SAM_APDU [17:31: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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5F 84 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 23 01 00 35 04 06 00 FE [17:31:00]Write to MH i2c: E2 02 01 F9 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5F 84 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 23 01 00 35 04 06 00 FE 00 00 65 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 F9 87 00 90 00 F4 [17:31:00]RAPDU: 90 00 [17:31:00]wFMCommunicate OK [17:31:00]wFMCommunicate request_size=10 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 0D 02 02 05 1A FC FF A2 32 [17:31:00]Write to MH i2c: E2 0D 00 FA 87 80 0D 02 02 05 00 1A FC FF A2 32 00 00 EE [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 03 00 FA 87 00 90 00 F5 [17:31:00]RAPDU: 90 00 [17:31:00]wFMCommunicate OK [17:31:00]wFMCommunicate request_size=4 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 0D 03 02 [17:31:00]Write to MH i2c: E2 08 00 FB 87 80 0D 03 02 00 00 00 00 FD [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 0B 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 0B 00 FB 87 00 86 79 0D 77 65 DC 88 8A 90 00 D4 [17:31:00]RAPDU: 86 79 0D 77 65 DC 88 8A 90 00 [17:31:00]wFMCommunicate OK [17:31:00]SAM_PROTO_SignData done [17:31:00]FM_MakeSignedData done [17:31:00]CreateOFDProtocolMessage [17:31:00]wFMCommunicate request_size=4 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 11 00 00 [17:31:00]Write to MH i2c: E2 08 00 FC 87 80 11 00 00 00 00 00 00 FD [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 17 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 17 00 FC 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 55 [17:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:31:00]wFMCommunicate OK [17:31:00]CreateOFDProtocolMessage done [17:31:00]OFDSenderStorePacket 74713 [17:31:00]StoreOFDPacket docnum=74713 [17:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4F 62 07 01 CB CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5F 84 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 23 01 00 35 04 06 00 FE 1A FC FF A2 32 86 79 0D 77 65 DC 88 8A [17:31:00]CheckFolder [17:31:00]dirname=/storage/ofd_packets [17:31:00]CheckFolder done [17:31:00]ProducePacketName [17:31:00]name=ofd_packets/00074713 [17:31:00]NVStorageSaveData ofd_packets/00074713 [17:31:00]File name is /storage/ofd_packets/00074713 [17:31:00]Write 301 bytes [17:31:00]NVStorageSaveData done [17:31:00]OFDSenderStorePacket done [17:31:00]KKMCreateOFDPacket done [17:31:00]NVStorageSaveData kkm_last_timestamp [17:31:00]File name is /storage/kkm_last_timestamp [17:31:00]Write 4 bytes [17:31:00]NVStorageSaveData done [17:31:00]ExternCall_PrintAddStr [17:31:00]wPrintStart [17:31:00]Write to MH i2c: 01 00 00 FD 87 84 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 07 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 07 00 FD 87 00 00 00 00 00 FF 0F 99 [17:31:00]RasterBufferAndPrint [17:31:00]line Счет N : (1)190680 [17:31:00]line ИНН: 02508201610067 [17:31:00]line Контрольно-Кассовый Чек [17:31:00]line ПРОДАЖА [17:31:00]line ТРК (МРК, ГНК) : 21 [17:31:00]line Товар: 2710124130 [17:31:00]line Аи-92-К-5 [17:31:00]line 8.970 * 66.90 [17:31:00]line = 600.09 [17:31:00]line НДС 12% НСП 1% [17:31:00]line > о реализуемом товаре [17:31:00]line ОКРУГЛЕНИЕ: -0.09 [17:31:00]line ИТОГО: 600.00 [17:31:00]line Внесено: 600.00 [17:31:00]line СДАЧА: 0.00 [17:31:00]line НСП 1% : 5.31 [17:31:00]line НДС 12% : 63.73 [17:31:00]line Наличными: 600.00 [17:31:00]line Безнал.: 0.00 [17:31:00]line Место: АЗС № 142 "Партнер Нефть" [17:31:00]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:31:00]line СНО: Общий режим [17:31:00]line Чек 157 24.10.2024 17:31 [17:31:00]line Смена: 510 ФФД: 1.0 [17:31:00]line ЗНМ: 0300000089 [17:31:00]line РНМ: 0000000000091691 [17:31:00]line Версия ККМ: 001 [17:31:00]line ФМ: 0000000000871795 [17:31:00]line ФД: 74713 [17:31:00]line ФПД: 279391867216434 [17:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173111&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74713&fm=279391867216434&tin=02508201610067®Number=0000000000091691&sum=60000 [17:31:01]written 0, free lines is 4095 [17:31:01]OFD Sender: Processing packet 74713 [packets to send 13, broken 12] [17:31:01]ProducePacketName [17:31:01]name=ofd_packets/00074713 [17:31:01]OFD Sender: To server: pG, [17:31:01]CommunicateWithHost lk.salyk.kg:30040 [17:31:01]ConnectInit lk.salyk.kg [17:31:01]Connected sock=9 [17:31:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4F 62 07 01 CB CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5F 84 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 23 01 00 35 04 06 00 FE 1A FC FF A2 32 86 79 0D 77 65 DC 88 8A [17:31:01]Write to MH i2c: 01 00 00 28 88 B0 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: 01 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: 01 07 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: 01 07 00 28 88 00 00 00 00 00 9C 0C 5F [17:31:01]RasterBufferAndPrint [17:31:01]line [17:31:01]line [17:31:01]line [17:31:01]line [17:31:01]line [17:31:01]written 0, free lines is 3236 [17:31:01]MH_Cut [17:31:01]Write to MH i2c: D1 01 00 2F 88 01 89 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: D1 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: D1 01 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: D1 01 00 2F 88 00 88 [17:31:01]Write to MH i2c: 01 00 00 30 88 B8 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F2 94 47 00 E7 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 31 37 39 35 10 04 04 00 D9 23 01 00 F4 03 04 00 E1 2B 1A 67 B6 04 01 00 00 42 F6 81 EA 07 9D 71 BA [17:31:01]CommunicateWithHost err = 0 [17:31:01]CheckOFDResponse [17:31:01]1017 (14) - 77093643461234 [17:31:01]1041 (16) - 0000000000871795 [17:31:01]1040 (4) - 74713 [17:31:01]1012 (4) - 24.10.2024 11:13 [17:31:01]1206 (1) - 0 [17:31:01]OFD Sender: Remove packet 74713 [17:31:01]ProducePacketName [17:31:01]name=ofd_packets/00074713 [17:31:01]NVStorageDeleteData [17:31:02]OFD Sender: No OFD packet to send [17:31:02]*** Cut start [17:31:02]*** Partial cut [17:31:02]*** CUTSNS_PIN = 1 [17:31:02]*** CUTSNS_PIN = 0 [17:31:02]*** Brake cut motor [17:31:03]Read from MH i2c: 01 [17:31:03]MH_I2C_Read... [17:31:03]*** Stop cut motor [17:31:03]*** Cut end [17:31:03]Read from MH i2c: 01 07 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: 01 07 00 30 88 00 00 00 00 00 FF 0F CD [17:31:03]process_action close_receipt done [17:31:03]requested_data is exist [17:31:03]produce_requested_data [17:31:03]requested_item fm.sn is exist - process it [17:31:03]wFMCommunicate request_size=4 [17:31:03]MH_SAM_APDU [17:31:03]CAPDU: 80 11 00 00 [17:31:03]Write to MH i2c: E2 08 00 31 88 80 11 00 00 00 00 00 00 33 [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:03]Read from MH i2c: E2 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 17 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 17 00 31 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8B [17:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:31:03]wFMCommunicate OK [17:31:03]requested_item fd.num is exist - process it [17:31:03]SAM_PROTO_GetFieldsCounters [17:31:03]wFMCommunicate request_size=4 [17:31:03]MH_SAM_APDU [17:31:03]CAPDU: 80 13 00 00 [17:31:03]Write to MH i2c: E2 08 00 32 88 80 13 00 00 00 00 00 00 36 [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:03]Read from MH i2c: E2 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 62 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 62 00 32 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D9 23 01 00 0E 04 04 00 FE 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 30 [17:31:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D9 23 01 00 0E 04 04 00 FE 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 [17:31:03]wFMCommunicate OK [17:31:03]SAM_PROTO_GetFieldsCounters done [17:31:03]requested_item shift.num is exist - process it [17:31:03]requested_item shift.opened is exist - process it [17:31:03]req_shift_opened [17:31:03]FM_GetShiftState [17:31:03]SAM_PROTO_GetShiftState [17:31:03]wFMCommunicate request_size=4 [17:31:03]MH_SAM_APDU [17:31:03]CAPDU: 80 13 01 00 [17:31:03]Write to MH i2c: E2 08 00 33 88 80 13 01 00 00 00 00 00 38 [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:03]Read from MH i2c: E2 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 0E 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 0E 00 33 88 00 09 00 01 09 95 19 67 00 00 00 00 90 00 62 [17:31:03]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:31:03]wFMCommunicate OK [17:31:03]SAM_PROTO_GetShiftState done [17:31:03]FM_GetShiftState done [17:31:03]req_shift_opened done [17:31:03]requested_item shift.open_date is exist - process it [17:31:03]req_shift_open_date [17:31:03]req_shift_open_date done [17:31:03]produce_requested_data done [17:31:03]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74713,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:31:03]process_action_free close_receipt [17:31:03]json_value_free [17:31:03]json_value_free done [17:31:03]process_json_proto returns [17:31:03]Send response to host [17:31:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74713,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:31:03]free response buf [17:31:03]execute_script done [17:31:03]execute_script returns [17:31:03]free content buf [17:31:03]Sock 10.Close socket [17:31:03]Sock 10.Thread stoped [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]accept exits with 8 [17:34:32]New connection [17:34:32]New thread 3066805604 created [17:34:32]Thread 3066662244 joined [17:34:32]Waiting for new connection... [17:34:32] Sock 8.Parse request [17:34:32]Sock 8.Check first char [17:34:32]Sock 8.First char is OK [17:34:32]request: POST /json_proto HTTP/1.0 [17:34:32]Method: POST [17:34:32]URL: /json_proto [17:34:32]Method is POST - this is cgi request [17:34:32]url: /json_proto [17:34:32]query_string will be loaded in cgi processing [17:34:32]execute_cgi json_proto POST (null) [17:34:32]execute_cgi path=json_proto method=POST [17:34:32]POST find Content-Length [17:34:32]Host: 172.17.39.131:8080 [17:34:32]Content-Length: 677 [17:34:32]Content-Type: application/json [17:34:32] [17:34:32]POST finish read [17:34:32]Found Content-Length = 677 [17:34:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:32]execute_script... [17:34:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:32]POST & json_proto [17:34:32]process_json_proto [17:34:32]json parsed OK: [17:34:32]protocol is kg_v1.0 [17:34:32]action value=close_receipt [17:34:32]process_action close_receipt [17:34:32]cmd_close_receipt [17:34:32]MH_GetDate [17:34:32]Write to MH i2c: F0 00 00 34 88 AB [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: F0 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: F0 09 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: F0 09 00 34 88 00 34 85 1A 67 86 57 24 65 54 [17:34:32]GetLastDocTimeStamp 1729791071 [17:34:32]current date 1729791284 [17:34:32]FM_GetShiftState [17:34:32]SAM_PROTO_GetShiftState [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 13 01 00 [17:34:32]Write to MH i2c: E2 08 00 35 88 80 13 01 00 00 00 00 00 3A [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 0E 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 0E 00 35 88 00 09 00 01 09 95 19 67 00 00 00 00 90 00 64 [17:34:32]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:34:32]wFMCommunicate OK [17:34:32]SAM_PROTO_GetShiftState done [17:34:32]FM_GetShiftState done [17:34:32]opened in 1729729801 [17:34:32]opened+sec_in_day 1729816201 [17:34:32]quantity*price = 50041 [17:34:32]sum+1 = 50042 [17:34:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 158 24.10.2024 17:34 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74714 ФПД: 51234166815278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173444&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74714&fm=51234166815278&tin=02508201610067®Number=0000000000091691&sum=50000 [17:34:33]StoreToDocumentArchive [17:34:33]shift 510 fd 74714 [17:34:33]save to /storage/0510/doc_00074714 [17:34:33]save last doc name /storage/0510/doc_00074714 to /storage/kkm_last_doc_name [17:34:33]save OK [17:34:33]Clear old archive folders... [17:34:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:33]tlvbuf is 00AF1660 [17:34:33]SAM_PROTO_ClearQueue [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 09 00 00 [17:34:33]Write to MH i2c: E2 08 00 42 88 80 09 00 00 00 00 00 00 3C [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 42 88 00 90 00 3E [17:34:33]RAPDU: 90 00 [17:34:33]wFMCommunicate OK [17:34:33]SAM_PROTO_ClearQueue done [17:34:33]KKMCreateOFDPacket [17:34:33]OFDProtocolAddRootSTLVToBuf [17:34:33]FM_MakeSignedData [17:34:33]FM_MakeSignedData [17:34:33]SAM_PROTO_SignData [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 0D 01 02 [17:34:33]Write to MH i2c: E2 08 00 43 88 80 0D 01 02 00 00 00 00 44 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 43 88 00 90 00 3F [17:34:33]RAPDU: 90 00 [17:34:33]wFMCommunicate OK [17:34:33]wFMCommunicate request_size=255 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DA 23 01 00 35 04 06 00 2E [17:34:33]Write to MH i2c: E2 02 01 44 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DA 23 01 00 35 04 06 00 2E 00 00 DC [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 44 88 00 90 00 40 [17:34:33]RAPDU: 90 00 [17:34:33]wFMCommunicate OK [17:34:33]wFMCommunicate request_size=10 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 0D 02 02 05 98 E2 50 3A 2E [17:34:33]Write to MH i2c: E2 0D 00 45 88 80 0D 02 02 05 00 98 E2 50 3A 2E 00 00 83 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 03 00 45 88 00 90 00 41 [17:34:33]RAPDU: 90 00 [17:34:33]wFMCommunicate OK [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 0D 03 02 [17:34:33]Write to MH i2c: E2 08 00 46 88 80 0D 03 02 00 00 00 00 49 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 0B 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 0B 00 46 88 00 58 CB D7 C7 88 83 77 82 90 00 0F [17:34:33]RAPDU: 58 CB D7 C7 88 83 77 82 90 00 [17:34:33]wFMCommunicate OK [17:34:33]SAM_PROTO_SignData done [17:34:33]FM_MakeSignedData done [17:34:33]CreateOFDProtocolMessage [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 11 00 00 [17:34:33]Write to MH i2c: E2 08 00 47 88 80 11 00 00 00 00 00 00 49 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 17 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 17 00 47 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A1 [17:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:34:33]wFMCommunicate OK [17:34:33]CreateOFDProtocolMessage done [17:34:33]OFDSenderStorePacket 74714 [17:34:33]StoreOFDPacket docnum=74714 [17:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 34 A1 07 01 47 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DA 23 01 00 35 04 06 00 2E 98 E2 50 3A 2E 58 CB D7 C7 88 83 77 82 [17:34:33]CheckFolder [17:34:33]dirname=/storage/ofd_packets [17:34:33]CheckFolder done [17:34:33]ProducePacketName [17:34:33]name=ofd_packets/00074714 [17:34:33]NVStorageSaveData ofd_packets/00074714 [17:34:33]File name is /storage/ofd_packets/00074714 [17:34:33]Write 301 bytes [17:34:33]NVStorageSaveData done [17:34:33]OFDSenderStorePacket done [17:34:33]KKMCreateOFDPacket done [17:34:33]NVStorageSaveData kkm_last_timestamp [17:34:33]File name is /storage/kkm_last_timestamp [17:34:33]Write 4 bytes [17:34:33]NVStorageSaveData done [17:34:33]ExternCall_PrintAddStr [17:34:33]wPrintStart [17:34:33]Write to MH i2c: 01 00 00 48 88 D0 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 07 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 07 00 48 88 00 00 00 00 00 FF 0F E5 [17:34:33]RasterBufferAndPrint [17:34:33]line Счет N : (1)190682 [17:34:33]line ИНН: 02508201610067 [17:34:33]line Контрольно-Кассовый Чек [17:34:33]line ПРОДАЖА [17:34:33]line ТРК (МРК, ГНК) : 21 [17:34:33]line Товар: 2710124130 [17:34:33]line Аи-92-К-5 [17:34:33]line 7.480 * 66.90 [17:34:33]line = 500.41 [17:34:33]line НДС 12% НСП 1% [17:34:33]line > о реализуемом товаре [17:34:33]line ОКРУГЛЕНИЕ: -0.41 [17:34:33]line ИТОГО: 500.00 [17:34:33]line Внесено: 500.00 [17:34:33]line СДАЧА: 0.00 [17:34:33]line НСП 1% : 4.43 [17:34:33]line НДС 12% : 53.14 [17:34:33]line Наличными: 500.00 [17:34:33]line Безнал.: 0.00 [17:34:33]line Место: АЗС № 142 "Партнер Нефть" [17:34:33]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:34:33]line СНО: Общий режим [17:34:33]line Чек 158 24.10.2024 17:34 [17:34:33]line Смена: 510 ФФД: 1.0 [17:34:33]line ЗНМ: 0300000089 [17:34:33]line РНМ: 0000000000091691 [17:34:33]line Версия ККМ: 001 [17:34:33]line ФМ: 0000000000871795 [17:34:33]line ФД: 74714 [17:34:33]line ФПД: 51234166815278 [17:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173444&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74714&fm=51234166815278&tin=02508201610067®Number=0000000000091691&sum=50000 [17:34:34]written 0, free lines is 4095 [17:34:34]OFD Sender: Processing packet 74714 [packets to send 13, broken 12] [17:34:34]ProducePacketName [17:34:34]name=ofd_packets/00074714 [17:34:34]OFD Sender: To server: pG, [17:34:34]CommunicateWithHost lk.salyk.kg:30040 [17:34:34]ConnectInit lk.salyk.kg [17:34:34]Connected sock=10 [17:34:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 34 A1 07 01 47 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 34 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DA 23 01 00 35 04 06 00 2E 98 E2 50 3A 2E 58 CB D7 C7 88 83 77 82 [17:34:34]Write to MH i2c: 01 00 00 73 88 FB [17:34:34]Write i2c OK [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: 01 [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: 01 07 00 [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: 01 07 00 73 88 00 00 00 00 00 99 0C A7 [17:34:34]RasterBufferAndPrint [17:34:34]line [17:34:34]line [17:34:34]line [17:34:34]line [17:34:34]line [17:34:34]written 0, free lines is 3229 [17:34:34]MH_Cut [17:34:34]Write to MH i2c: D1 01 00 7A 88 01 D4 [17:34:34]Write i2c OK [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: D1 [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: D1 01 00 [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: D1 01 00 7A 88 00 D3 [17:34:34]Write to MH i2c: 01 00 00 7B 88 03 [17:34:34]Write i2c OK [17:34:34]MH_I2C_Read... [17:34:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 00 AC 47 00 3D 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DA 23 01 00 F4 03 04 00 B5 2C 1A 67 B6 04 01 00 00 A7 1E 43 F5 47 CF 70 1D [17:34:34]CommunicateWithHost err = 0 [17:34:34]CheckOFDResponse [17:34:34]1017 (14) - 77093643461234 [17:34:34]1041 (16) - 0000000000871795 [17:34:34]1040 (4) - 74714 [17:34:34]1012 (4) - 24.10.2024 11:17 [17:34:34]1206 (1) - 0 [17:34:34]OFD Sender: Remove packet 74714 [17:34:34]ProducePacketName [17:34:34]name=ofd_packets/00074714 [17:34:34]NVStorageDeleteData [17:34:35]OFD Sender: No OFD packet to send [17:34:35]*** Cut start [17:34:35]*** Partial cut [17:34:35]*** CUTSNS_PIN = 1 [17:34:35]*** CUTSNS_PIN = 0 [17:34:35]*** Brake cut motor [17:34:36]Read from MH i2c: 01 [17:34:36]MH_I2C_Read... [17:34:36]*** Stop cut motor [17:34:36]*** Cut end [17:34:36]Read from MH i2c: 01 07 00 [17:34:36]MH_I2C_Read... [17:34:36]Read from MH i2c: 01 07 00 7B 88 00 00 00 00 00 FF 0F 18 [17:34:36]process_action close_receipt done [17:34:36]requested_data is exist [17:34:36]produce_requested_data [17:34:36]requested_item fm.sn is exist - process it [17:34:36]wFMCommunicate request_size=4 [17:34:36]MH_SAM_APDU [17:34:36]CAPDU: 80 11 00 00 [17:34:36]Write to MH i2c: E2 08 00 7C 88 80 11 00 00 00 00 00 00 7E [17:34:36]Write i2c OK [17:34:36]MH_I2C_Read... [17:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:36]Read from MH i2c: E2 [17:34:36]MH_I2C_Read... [17:34:36]Read from MH i2c: E2 17 00 [17:34:36]MH_I2C_Read... [17:34:36]Read from MH i2c: E2 17 00 7C 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D6 [17:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:34:36]wFMCommunicate OK [17:34:36]requested_item fd.num is exist - process it [17:34:36]SAM_PROTO_GetFieldsCounters [17:34:36]wFMCommunicate request_size=4 [17:34:36]MH_SAM_APDU [17:34:36]CAPDU: 80 13 00 00 [17:34:36]Write to MH i2c: E2 08 00 7D 88 80 13 00 00 00 00 00 00 81 [17:34:36]Write i2c OK [17:34:36]MH_I2C_Read... [17:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:36]Read from MH i2c: E2 [17:34:36]MH_I2C_Read... [17:34:36]Read from MH i2c: E2 62 00 [17:34:36]MH_I2C_Read... [17:34:36]Read from MH i2c: E2 62 00 7D 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DA 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [17:34:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DA 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:36]wFMCommunicate OK [17:34:36]SAM_PROTO_GetFieldsCounters done [17:34:36]requested_item shift.num is exist - process it [17:34:36]requested_item shift.opened is exist - process it [17:34:36]req_shift_opened [17:34:36]FM_GetShiftState [17:34:36]SAM_PROTO_GetShiftState [17:34:36]wFMCommunicate request_size=4 [17:34:36]MH_SAM_APDU [17:34:36]CAPDU: 80 13 01 00 [17:34:36]Write to MH i2c: E2 08 00 7E 88 80 13 01 00 00 00 00 00 83 [17:34:36]Write i2c OK [17:34:36]MH_I2C_Read... [17:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:36]Read from MH i2c: E2 [17:34:36]MH_I2C_Read... [17:34:36]Read from MH i2c: E2 0E 00 [17:34:36]MH_I2C_Read... [17:34:36]Read from MH i2c: E2 0E 00 7E 88 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AD [17:34:36]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:34:36]wFMCommunicate OK [17:34:36]SAM_PROTO_GetShiftState done [17:34:36]FM_GetShiftState done [17:34:36]req_shift_opened done [17:34:36]requested_item shift.open_date is exist - process it [17:34:36]req_shift_open_date [17:34:36]req_shift_open_date done [17:34:36]produce_requested_data done [17:34:36]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74714,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:34:36]process_action_free close_receipt [17:34:36]json_value_free [17:34:36]json_value_free done [17:34:36]process_json_proto returns [17:34:36]Send response to host [17:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74714,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:34:36]free response buf [17:34:36]execute_script done [17:34:36]execute_script returns [17:34:36]free content buf [17:34:36]Sock 8.Close socket [17:34:36]Sock 8.Thread stoped [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:31]accept exits with 9 [17:35:31]New connection [17:35:31]New thread 3066662244 created [17:35:31]Thread 3066805604 joined [17:35:31]Waiting for new connection... [17:35:31] Sock 9.Parse request [17:35:31]Sock 9.Check first char [17:35:31]Sock 9.First char is OK [17:35:31]request: POST /json_proto HTTP/1.0 [17:35:31]Method: POST [17:35:31]URL: /json_proto [17:35:31]Method is POST - this is cgi request [17:35:31]url: /json_proto [17:35:31]query_string will be loaded in cgi processing [17:35:31]execute_cgi json_proto POST (null) [17:35:31]execute_cgi path=json_proto method=POST [17:35:31]POST find Content-Length [17:35:31]Host: 172.17.39.131:8080 [17:35:31]Content-Length: 799 [17:35:31]Content-Type: application/json [17:35:31] [17:35:31]POST finish read [17:35:31]Found Content-Length = 799 [17:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 12.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A101984", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:31]execute_script... [17:35: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)190683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 12.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A101984", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:31]POST & json_proto [17:35:31]process_json_proto [17:35:31]json parsed OK: [17:35:31]protocol is kg_v1.0 [17:35:31]action value=close_receipt [17:35:31]process_action close_receipt [17:35:31]cmd_close_receipt [17:35:31]MH_GetDate [17:35:31]Write to MH i2c: F0 00 00 7F 88 F6 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 09 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 09 00 7F 88 00 6F 85 1A 67 86 57 24 65 DA [17:35:31]GetLastDocTimeStamp 1729791284 [17:35:31]current date 1729791343 [17:35:31]FM_GetShiftState [17:35:31]SAM_PROTO_GetShiftState [17:35:31]wFMCommunicate request_size=4 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 13 01 00 [17:35:31]Write to MH i2c: E2 08 00 80 88 80 13 01 00 00 00 00 00 85 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 0E 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 0E 00 80 88 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AF [17:35:31]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:35:31]wFMCommunicate OK [17:35:31]SAM_PROTO_GetShiftState done [17:35:31]FM_GetShiftState done [17:35:31]opened in 1729729801 [17:35:31]opened+sec_in_day 1729816201 [17:35:31]quantity*price = 0 [17:35:31]sum+1 = 1 [17:35:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 159 24.10.2024 17:35 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 101984 ФМ: 0000000000871795 ФД: 74715 ФПД: 22474270849628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173543&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74715&fm=22474270849628&tin=02508201610067®Number=0000000000091691&sum=0 [17:35:32]StoreToDocumentArchive [17:35:32]shift 510 fd 74715 [17:35:32]save to /storage/0510/doc_00074715 [17:35:32]save last doc name /storage/0510/doc_00074715 to /storage/kkm_last_doc_name [17:35:32]save OK [17:35:32]Clear old archive folders... [17:35:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:35:32]tlvbuf is 007C6820 [17:35:32]SAM_PROTO_ClearQueue [17:35:32]wFMCommunicate request_size=4 [17:35:32]MH_SAM_APDU [17:35:32]CAPDU: 80 09 00 00 [17:35:32]Write to MH i2c: E2 08 00 8D 88 80 09 00 00 00 00 00 00 87 [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:32]Read from MH i2c: E2 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 03 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 03 00 8D 88 00 90 00 89 [17:35:32]RAPDU: 90 00 [17:35:32]wFMCommunicate OK [17:35:32]SAM_PROTO_ClearQueue done [17:35:32]KKMCreateOFDPacket [17:35:32]OFDProtocolAddRootSTLVToBuf [17:35:32]FM_MakeSignedData [17:35:32]FM_MakeSignedData [17:35:32]SAM_PROTO_SignData [17:35:32]wFMCommunicate request_size=4 [17:35:32]MH_SAM_APDU [17:35:32]CAPDU: 80 0D 01 02 [17:35:32]Write to MH i2c: E2 08 00 8E 88 80 0D 01 02 00 00 00 00 8F [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:32]Read from MH i2c: E2 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 03 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 03 00 8E 88 00 90 00 8A [17:35:32]RAPDU: 90 00 [17:35:32]wFMCommunicate OK [17:35:32]wFMCommunicate request_size=255 [17:35:32]MH_SAM_APDU [17:35:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6F 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DB 23 01 [17:35:32]Write to MH i2c: E2 02 01 8F 88 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6F 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DB 23 01 00 00 0E [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 8F 88 00 90 00 8B [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=16 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 14 70 B2 EE 3A 5C [17:35:33]Write to MH i2c: E2 13 00 90 88 80 0D 02 02 0B 00 00 35 04 06 00 14 70 B2 EE 3A 5C 00 00 A1 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 90 88 00 90 00 8C [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 03 02 [17:35:33]Write to MH i2c: E2 08 00 91 88 80 0D 03 02 00 00 00 00 94 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0B 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0B 00 91 88 00 49 33 C0 F7 E9 69 43 25 90 00 82 [17:35:33]RAPDU: 49 33 C0 F7 E9 69 43 25 90 00 [17:35:33]wFMCommunicate OK [17:35:33]SAM_PROTO_SignData done [17:35:33]FM_MakeSignedData done [17:35:33]CreateOFDProtocolMessage [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 11 00 00 [17:35:33]Write to MH i2c: E2 08 00 92 88 80 11 00 00 00 00 00 00 94 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 17 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 17 00 92 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EC [17:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:35:33]wFMCommunicate OK [17:35:33]CreateOFDProtocolMessage done [17:35:33]OFDSenderStorePacket 74715 [17:35:33]StoreOFDPacket docnum=74715 [17:35:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 31 0C 0D 01 DA 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6F 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DB 23 01 00 35 04 06 00 14 70 B2 EE 3A 5C 49 33 C0 F7 E9 69 43 25 [17:35:33]CheckFolder [17:35:33]dirname=/storage/ofd_packets [17:35:33]CheckFolder done [17:35:33]ProducePacketName [17:35:33]name=ofd_packets/00074715 [17:35:33]NVStorageSaveData ofd_packets/00074715 [17:35:33]File name is /storage/ofd_packets/00074715 [17:35:33]Write 307 bytes [17:35:33]NVStorageSaveData done [17:35:33]OFDSenderStorePacket done [17:35:33]KKMCreateOFDPacket done [17:35:33]NVStorageSaveData kkm_last_timestamp [17:35:33]File name is /storage/kkm_last_timestamp [17:35:33]Write 4 bytes [17:35:33]NVStorageSaveData done [17:35:33]ExternCall_PrintAddStr [17:35:33]wPrintStart [17:35:33]Write to MH i2c: 01 00 00 93 88 1B [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 93 88 00 00 00 00 00 FF 0F 30 [17:35:33]RasterBufferAndPrint [17:35:33]line Счет N : (1)190683 [17:35:33]line ИНН: 02508201610067 [17:35:33]line Контрольно-Кассовый Чек [17:35:33]line ПРОДАЖА [17:35:33]line ТРК (МРК, ГНК) : 32 [17:35:33]line Товар: 2710194240 [17:35:33]line D-ENERGY ДТ-К-2 [17:35:33]line 12.960 * 0.00 [17:35:33]line = 0.00 [17:35:33]line НДС 12% НСП 1% [17:35:33]line > о реализуемом товаре [17:35:33]line ИТОГО: 0.00 [17:35:33]line НСП 1% : 0.00 [17:35:33]line НДС 12% : 0.00 [17:35:33]line Наличными: 0.00 [17:35:33]line Безнал.: 0.00 [17:35:33]line Место: АЗС № 142 "Партнер Нефть" [17:35:33]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:35:33]line СНО: Общий режим [17:35:33]line Чек 159 24.10.2024 17:35 [17:35:33]line Смена: 510 ФФД: 1.0 [17:35:33]line ЗНМ: 0300000089 [17:35:33]line РНМ: 0000000000091691 [17:35:33]line Версия ККМ: 001 [17:35:33]line Талоны: Топливная Карта [17:35:33]line 101984 [17:35:33]line ФМ: 0000000000871795 [17:35:33]line ФД: 74715 [17:35:33]line ФПД: 22474270849628 [17:35:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173543&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74715&fm=22474270849628&tin=02508201610067®Number=0000000000091691&sum=0 [17:35:33]OFD Sender: Processing packet 74715 [packets to send 13, broken 12] [17:35:33]ProducePacketName [17:35:33]name=ofd_packets/00074715 [17:35:33]OFD Sender: To server: pG, [17:35:33]CommunicateWithHost lk.salyk.kg:30040 [17:35:33]ConnectInit lk.salyk.kg [17:35:33]written 0, free lines is 4095 [17:35:33]Connected sock=10 [17:35:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 31 0C 0D 01 DA 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6F 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DB 23 01 00 35 04 06 00 14 70 B2 EE 3A 5C 49 33 C0 F7 E9 69 43 25 [17:35:33]Write to MH i2c: 01 00 00 BD 88 45 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 BD 88 00 00 00 00 00 BF 0C 17 [17:35:33]RasterBufferAndPrint [17:35:33]line [17:35:33]line [17:35:33]line [17:35:33]line [17:35:33]line [17:35:33]written 0, free lines is 3267 [17:35:33]MH_Cut [17:35:33]Write to MH i2c: D1 01 00 C4 88 01 1E [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: D1 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: D1 01 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: D1 01 00 C4 88 00 1D [17:35:33]Write to MH i2c: 01 00 00 C5 88 4D [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 03 84 47 00 E0 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DB 23 01 00 F4 03 04 00 F1 2C 1A 67 B6 04 01 00 00 37 37 CD 0F 70 9C 3B 45 [17:35:34]CommunicateWithHost err = 0 [17:35:34]CheckOFDResponse [17:35:34]1017 (14) - 77093643461234 [17:35:34]1041 (16) - 0000000000871795 [17:35:34]1040 (4) - 74715 [17:35:34]1012 (4) - 24.10.2024 11:18 [17:35:34]1206 (1) - 0 [17:35:34]OFD Sender: Remove packet 74715 [17:35:34]ProducePacketName [17:35:34]name=ofd_packets/00074715 [17:35:34]NVStorageDeleteData [17:35:34]OFD Sender: No OFD packet to send [17:35:34]*** Cut start [17:35:34]*** Partial cut [17:35:34]*** CUTSNS_PIN = 1 [17:35:34]*** CUTSNS_PIN = 0 [17:35:35]*** Brake cut motor [17:35:35]Read from MH i2c: 01 [17:35:35]MH_I2C_Read... [17:35:35]*** Stop cut motor [17:35:35]*** Cut end [17:35:35]Read from MH i2c: 01 07 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: 01 07 00 C5 88 00 00 00 00 00 FF 0F 62 [17:35:35]process_action close_receipt done [17:35:35]requested_data is exist [17:35:35]produce_requested_data [17:35:35]requested_item fm.sn is exist - process it [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 11 00 00 [17:35:35]Write to MH i2c: E2 08 00 C6 88 80 11 00 00 00 00 00 00 C8 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 C6 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 20 [17:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:35:35]wFMCommunicate OK [17:35:35]requested_item fd.num is exist - process it [17:35:35]SAM_PROTO_GetFieldsCounters [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 00 00 [17:35:35]Write to MH i2c: E2 08 00 C7 88 80 13 00 00 00 00 00 00 CB [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 C7 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DB 23 01 00 0E 04 04 00 FE 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 CD [17:35:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DB 23 01 00 0E 04 04 00 FE 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 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetFieldsCounters done [17:35:35]requested_item shift.num is exist - process it [17:35:35]requested_item shift.opened is exist - process it [17:35:35]req_shift_opened [17:35:35]FM_GetShiftState [17:35:35]SAM_PROTO_GetShiftState [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 01 00 [17:35:35]Write to MH i2c: E2 08 00 C8 88 80 13 01 00 00 00 00 00 CD [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 C8 88 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F7 [17:35:35]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetShiftState done [17:35:35]FM_GetShiftState done [17:35:35]req_shift_opened done [17:35:35]requested_item shift.open_date is exist - process it [17:35:35]req_shift_open_date [17:35:35]req_shift_open_date done [17:35:35]produce_requested_data done [17:35:35]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74715,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:35:35]process_action_free close_receipt [17:35:35]json_value_free [17:35:35]json_value_free done [17:35:35]process_json_proto returns [17:35:35]Send response to host [17:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74715,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:35:35]free response buf [17:35:35]execute_script done [17:35:35]execute_script returns [17:35:35]free content buf [17:35:35]Sock 9.Close socket [17:35:35]Sock 9.Thread stoped [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]accept exits with 8 [17:37:14]New connection [17:37:14]New thread 3066805604 created [17:37:14]Thread 3066662244 joined [17:37:14]Waiting for new connection... [17:37:14] Sock 8.Parse request [17:37:14]Sock 8.Check first char [17:37:14]Sock 8.First char is OK [17:37:14]request: POST /json_proto HTTP/1.0 [17:37:14]Method: POST [17:37:14]URL: /json_proto [17:37:14]Method is POST - this is cgi request [17:37:14]url: /json_proto [17:37:14]query_string will be loaded in cgi processing [17:37:14]execute_cgi json_proto POST (null) [17:37:14]execute_cgi path=json_proto method=POST [17:37:14]POST find Content-Length [17:37:14]Host: 172.17.39.131:8080 [17:37:14]Content-Length: 677 [17:37:14]Content-Type: application/json [17:37:14] [17:37:14]POST finish read [17:37:14]Found Content-Length = 677 [17:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:14]execute_script... [17:37: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)190684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:14]POST & json_proto [17:37:14]process_json_proto [17:37:14]json parsed OK: [17:37:14]protocol is kg_v1.0 [17:37:14]action value=close_receipt [17:37:14]process_action close_receipt [17:37:14]cmd_close_receipt [17:37:14]MH_GetDate [17:37:14]Write to MH i2c: F0 00 00 C9 88 40 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: F0 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: F0 09 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: F0 09 00 C9 88 00 D6 85 1A 67 86 57 24 65 8B [17:37:14]GetLastDocTimeStamp 1729791343 [17:37:14]current date 1729791446 [17:37:14]FM_GetShiftState [17:37:14]SAM_PROTO_GetShiftState [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 13 01 00 [17:37:14]Write to MH i2c: E2 08 00 CA 88 80 13 01 00 00 00 00 00 CF [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 0E 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 0E 00 CA 88 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F9 [17:37:14]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:37:14]wFMCommunicate OK [17:37:14]SAM_PROTO_GetShiftState done [17:37:14]FM_GetShiftState done [17:37:14]opened in 1729729801 [17:37:14]opened+sec_in_day 1729816201 [17:37:14]quantity*price = 50041 [17:37:14]sum+1 = 50042 [17:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 160 24.10.2024 17:37 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74716 ФПД: 221562031812878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173726&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74716&fm=221562031812878&tin=02508201610067®Number=0000000000091691&sum=50000 [17:37:15]StoreToDocumentArchive [17:37:15]shift 510 fd 74716 [17:37:15]save to /storage/0510/doc_00074716 [17:37:15]save last doc name /storage/0510/doc_00074716 to /storage/kkm_last_doc_name [17:37:15]save OK [17:37:15]Clear old archive folders... [17:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:15]tlvbuf is 00AF1250 [17:37:15]SAM_PROTO_ClearQueue [17:37:15]wFMCommunicate request_size=4 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 09 00 00 [17:37:15]Write to MH i2c: E2 08 00 D7 88 80 09 00 00 00 00 00 00 D1 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 D7 88 00 90 00 D3 [17:37:15]RAPDU: 90 00 [17:37:15]wFMCommunicate OK [17:37:15]SAM_PROTO_ClearQueue done [17:37:15]KKMCreateOFDPacket [17:37:15]OFDProtocolAddRootSTLVToBuf [17:37:15]FM_MakeSignedData [17:37:15]FM_MakeSignedData [17:37:15]SAM_PROTO_SignData [17:37:15]wFMCommunicate request_size=4 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 0D 01 02 [17:37:15]Write to MH i2c: E2 08 00 D8 88 80 0D 01 02 00 00 00 00 D9 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 D8 88 00 90 00 D4 [17:37:15]RAPDU: 90 00 [17:37:15]wFMCommunicate OK [17:37:15]wFMCommunicate request_size=255 [17:37:15]MH_SAM_APDU [17:37: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D6 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DC 23 01 00 35 04 06 00 C9 [17:37:15]Write to MH i2c: E2 02 01 D9 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D6 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DC 23 01 00 35 04 06 00 C9 00 00 B2 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 D9 88 00 90 00 D5 [17:37:15]RAPDU: 90 00 [17:37:15]wFMCommunicate OK [17:37:15]wFMCommunicate request_size=10 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 0D 02 02 05 82 6E 33 B1 0E [17:37:15]Write to MH i2c: E2 0D 00 DA 88 80 0D 02 02 05 00 82 6E 33 B1 0E 00 00 C8 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 DA 88 00 90 00 D6 [17:37:15]RAPDU: 90 00 [17:37:15]wFMCommunicate OK [17:37:15]wFMCommunicate request_size=4 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 0D 03 02 [17:37:15]Write to MH i2c: E2 08 00 DB 88 80 0D 03 02 00 00 00 00 DE [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 0B 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 0B 00 DB 88 00 23 28 14 03 3B E1 57 0A 90 00 BE [17:37:15]RAPDU: 23 28 14 03 3B E1 57 0A 90 00 [17:37:15]wFMCommunicate OK [17:37:15]SAM_PROTO_SignData done [17:37:15]FM_MakeSignedData done [17:37:15]CreateOFDProtocolMessage [17:37:15]wFMCommunicate request_size=4 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 11 00 00 [17:37:15]Write to MH i2c: E2 08 00 DC 88 80 11 00 00 00 00 00 00 DE [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 17 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 17 00 DC 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 36 [17:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:37:15]wFMCommunicate OK [17:37:15]CreateOFDProtocolMessage done [17:37:15]OFDSenderStorePacket 74716 [17:37:15]StoreOFDPacket docnum=74716 [17:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 8E BE 07 01 9B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D6 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DC 23 01 00 35 04 06 00 C9 82 6E 33 B1 0E 23 28 14 03 3B E1 57 0A [17:37:15]CheckFolder [17:37:15]dirname=/storage/ofd_packets [17:37:15]CheckFolder done [17:37:15]ProducePacketName [17:37:15]name=ofd_packets/00074716 [17:37:15]NVStorageSaveData ofd_packets/00074716 [17:37:15]File name is /storage/ofd_packets/00074716 [17:37:15]Write 301 bytes [17:37:15]NVStorageSaveData done [17:37:15]OFDSenderStorePacket done [17:37:15]KKMCreateOFDPacket done [17:37:15]NVStorageSaveData kkm_last_timestamp [17:37:15]File name is /storage/kkm_last_timestamp [17:37:15]Write 4 bytes [17:37:15]NVStorageSaveData done [17:37:15]ExternCall_PrintAddStr [17:37:15]wPrintStart [17:37:15]Write to MH i2c: 01 00 00 DD 88 65 [17:37:15]OFD Sender: Processing packet 74716 [packets to send 13, broken 12] [17:37:15]ProducePacketName [17:37:15]name=ofd_packets/00074716 [17:37:15]OFD Sender: To server: pG, [17:37:15]CommunicateWithHost lk.salyk.kg:30040 [17:37:15]ConnectInit lk.salyk.kg [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 07 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 07 00 DD 88 00 00 00 00 00 FF 0F 7A [17:37:15]RasterBufferAndPrint [17:37:15]line Счет N : (1)190684 [17:37:15]line ИНН: 02508201610067 [17:37:15]line Контрольно-Кассовый Чек [17:37:15]line ПРОДАЖА [17:37:15]line ТРК (МРК, ГНК) : 21 [17:37:15]line Товар: 2710124130 [17:37:15]line Аи-92-К-5 [17:37:15]line 7.480 * 66.90 [17:37:15]line = 500.41 [17:37:15]line НДС 12% НСП 1% [17:37:15]line > о реализуемом товаре [17:37:15]line ОКРУГЛЕНИЕ: -0.41 [17:37:15]line ИТОГО: 500.00 [17:37:15]line Внесено: 500.00 [17:37:15]line СДАЧА: 0.00 [17:37:15]line НСП 1% : 4.43 [17:37:15]line НДС 12% : 53.14 [17:37:15]line Наличными: 500.00 [17:37:15]line Безнал.: 0.00 [17:37:15]line Место: АЗС № 142 "Партнер Нефть" [17:37:15]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:37:15]line СНО: Общий режим [17:37:15]line Чек 160 24.10.2024 17:37 [17:37:15]line Смена: 510 ФФД: 1.0 [17:37:15]line ЗНМ: 0300000089 [17:37:15]line РНМ: 0000000000091691 [17:37:15]line Версия ККМ: 001 [17:37:15]line ФМ: 0000000000871795 [17:37:15]line ФД: 74716 [17:37:15]line ФПД: 221562031812878 [17:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173726&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74716&fm=221562031812878&tin=02508201610067®Number=0000000000091691&sum=50000 [17:37:15]written 0, free lines is 4095 [17:37:16]Connected sock=10 [17:37:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 8E BE 07 01 9B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D6 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DC 23 01 00 35 04 06 00 C9 82 6E 33 B1 0E 23 28 14 03 3B E1 57 0A [17:37:16]Write to MH i2c: 01 00 00 08 89 91 [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: 01 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: 01 07 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: 01 07 00 08 89 00 00 00 00 00 B2 0C 56 [17:37:16]RasterBufferAndPrint [17:37:16]line [17:37:16]line [17:37:16]line [17:37:16]line [17:37:16]line [17:37:16]written 0, free lines is 3257 [17:37:16]MH_Cut [17:37:16]Write to MH i2c: D1 01 00 0F 89 01 6A [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: D1 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: D1 01 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: D1 01 00 0F 89 00 69 [17:37:16]Write to MH i2c: 01 00 00 10 89 99 [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 AF 93 47 00 28 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DC 23 01 00 F4 03 04 00 57 2D 1A 67 B6 04 01 00 00 2D 25 F6 CB B9 31 F8 D2 [17:37:16]CommunicateWithHost err = 0 [17:37:16]CheckOFDResponse [17:37:16]1017 (14) - 77093643461234 [17:37:16]1041 (16) - 0000000000871795 [17:37:16]1040 (4) - 74716 [17:37:16]1012 (4) - 24.10.2024 11:19 [17:37:16]1206 (1) - 0 [17:37:16]OFD Sender: Remove packet 74716 [17:37:16]ProducePacketName [17:37:16]name=ofd_packets/00074716 [17:37:16]NVStorageDeleteData [17:37:16]OFD Sender: No OFD packet to send [17:37:17]*** Cut start [17:37:17]*** Partial cut [17:37:17]*** CUTSNS_PIN = 1 [17:37:17]*** CUTSNS_PIN = 0 [17:37:17]*** Brake cut motor [17:37:17]Read from MH i2c: 01 [17:37:17]MH_I2C_Read... [17:37:17]*** Stop cut motor [17:37:17]*** Cut end [17:37:17]Read from MH i2c: 01 07 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 07 00 10 89 00 00 00 00 00 FF 0F AE [17:37:17]process_action close_receipt done [17:37:17]requested_data is exist [17:37:17]produce_requested_data [17:37:17]requested_item fm.sn is exist - process it [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 11 00 00 [17:37:17]Write to MH i2c: E2 08 00 11 89 80 11 00 00 00 00 00 00 14 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 11 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6C [17:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:37:17]wFMCommunicate OK [17:37:17]requested_item fd.num is exist - process it [17:37:17]SAM_PROTO_GetFieldsCounters [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 13 00 00 [17:37:17]Write to MH i2c: E2 08 00 12 89 80 13 00 00 00 00 00 00 17 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:18]Read from MH i2c: E2 [17:37:18]MH_I2C_Read... [17:37:18]Read from MH i2c: E2 62 00 [17:37:18]MH_I2C_Read... [17:37:18]Read from MH i2c: E2 62 00 12 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DC 23 01 00 0E 04 04 00 FE 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 1D [17:37:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DC 23 01 00 0E 04 04 00 FE 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 [17:37:18]wFMCommunicate OK [17:37:18]SAM_PROTO_GetFieldsCounters done [17:37:18]requested_item shift.num is exist - process it [17:37:18]requested_item shift.opened is exist - process it [17:37:18]req_shift_opened [17:37:18]FM_GetShiftState [17:37:18]SAM_PROTO_GetShiftState [17:37:18]wFMCommunicate request_size=4 [17:37:18]MH_SAM_APDU [17:37:18]CAPDU: 80 13 01 00 [17:37:18]Write to MH i2c: E2 08 00 13 89 80 13 01 00 00 00 00 00 19 [17:37:18]Write i2c OK [17:37:18]MH_I2C_Read... [17:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:18]Read from MH i2c: E2 [17:37:18]MH_I2C_Read... [17:37:18]Read from MH i2c: E2 0E 00 [17:37:18]MH_I2C_Read... [17:37:18]Read from MH i2c: E2 0E 00 13 89 00 09 00 01 09 95 19 67 00 00 00 00 90 00 43 [17:37:18]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:37:18]wFMCommunicate OK [17:37:18]SAM_PROTO_GetShiftState done [17:37:18]FM_GetShiftState done [17:37:18]req_shift_opened done [17:37:18]requested_item shift.open_date is exist - process it [17:37:18]req_shift_open_date [17:37:18]req_shift_open_date done [17:37:18]produce_requested_data done [17:37:18]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74716,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:37:18]process_action_free close_receipt [17:37:18]json_value_free [17:37:18]json_value_free done [17:37:18]process_json_proto returns [17:37:18]Send response to host [17:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74716,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:37:18]free response buf [17:37:18]execute_script done [17:37:18]execute_script returns [17:37:18]free content buf [17:37:18]Sock 8.Close socket [17:37:18]Sock 8.Thread stoped [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:54]accept exits with 9 [17:37:54]New connection [17:37:54]New thread 3066662244 created [17:37:54]Thread 3066805604 joined [17:37:54]Waiting for new connection... [17:37:54] Sock 9.Parse request [17:37:54]Sock 9.Check first char [17:37:54]Sock 9.First char is OK [17:37:54]request: POST /json_proto HTTP/1.0 [17:37:54]Method: POST [17:37:54]URL: /json_proto [17:37:54]Method is POST - this is cgi request [17:37:54]url: /json_proto [17:37:54]query_string will be loaded in cgi processing [17:37:54]execute_cgi json_proto POST (null) [17:37:54]execute_cgi path=json_proto method=POST [17:37:54]POST find Content-Length [17:37:54]Host: 172.17.39.131:8080 [17:37:54]Content-Length: 677 [17:37:54]Content-Type: application/json [17:37:54] [17:37:54]POST finish read [17:37:54]Found Content-Length = 677 [17:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:54]execute_script... [17:37: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)190685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:54]POST & json_proto [17:37:54]process_json_proto [17:37:54]json parsed OK: [17:37:54]protocol is kg_v1.0 [17:37:54]action value=close_receipt [17:37:54]process_action close_receipt [17:37:54]cmd_close_receipt [17:37:54]MH_GetDate [17:37:54]Write to MH i2c: F0 00 00 14 89 8C [17:37:54]Write i2c OK [17:37:54]MH_I2C_Read... [17:37:54]Read from MH i2c: F0 [17:37:54]MH_I2C_Read... [17:37:54]Read from MH i2c: F0 09 00 [17:37:54]MH_I2C_Read... [17:37:54]Read from MH i2c: F0 09 00 14 89 00 FE 85 1A 67 86 57 24 65 FF [17:37:54]GetLastDocTimeStamp 1729791446 [17:37:54]current date 1729791486 [17:37:54]FM_GetShiftState [17:37:54]SAM_PROTO_GetShiftState [17:37:54]wFMCommunicate request_size=4 [17:37:54]MH_SAM_APDU [17:37:54]CAPDU: 80 13 01 00 [17:37:54]Write to MH i2c: E2 08 00 15 89 80 13 01 00 00 00 00 00 1B [17:37:54]Write i2c OK [17:37:54]MH_I2C_Read... [17:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:54]Read from MH i2c: E2 [17:37:54]MH_I2C_Read... [17:37:54]Read from MH i2c: E2 0E 00 [17:37:54]MH_I2C_Read... [17:37:54]Read from MH i2c: E2 0E 00 15 89 00 09 00 01 09 95 19 67 00 00 00 00 90 00 45 [17:37:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:37:54]wFMCommunicate OK [17:37:54]SAM_PROTO_GetShiftState done [17:37:54]FM_GetShiftState done [17:37:54]opened in 1729729801 [17:37:54]opened+sec_in_day 1729816201 [17:37:54]quantity*price = 50041 [17:37:54]sum+1 = 50042 [17:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 161 24.10.2024 17:38 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74717 ФПД: 15508377256573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173806&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74717&fm=15508377256573&tin=02508201610067®Number=0000000000091691&sum=50000 [17:37:55]StoreToDocumentArchive [17:37:55]shift 510 fd 74717 [17:37:55]save to /storage/0510/doc_00074717 [17:37:55]save last doc name /storage/0510/doc_00074717 to /storage/kkm_last_doc_name [17:37:55]save OK [17:37:55]Clear old archive folders... [17:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:55]tlvbuf is 00A8EA40 [17:37:55]SAM_PROTO_ClearQueue [17:37:55]wFMCommunicate request_size=4 [17:37:55]MH_SAM_APDU [17:37:55]CAPDU: 80 09 00 00 [17:37:55]Write to MH i2c: E2 08 00 22 89 80 09 00 00 00 00 00 00 1D [17:37:55]Write i2c OK [17:37:55]MH_I2C_Read... [17:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:55]Read from MH i2c: E2 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 22 89 00 90 00 1F [17:37:55]RAPDU: 90 00 [17:37:55]wFMCommunicate OK [17:37:55]SAM_PROTO_ClearQueue done [17:37:55]KKMCreateOFDPacket [17:37:55]OFDProtocolAddRootSTLVToBuf [17:37:55]FM_MakeSignedData [17:37:55]FM_MakeSignedData [17:37:55]SAM_PROTO_SignData [17:37:55]wFMCommunicate request_size=4 [17:37:55]MH_SAM_APDU [17:37:55]CAPDU: 80 0D 01 02 [17:37:55]Write to MH i2c: E2 08 00 23 89 80 0D 01 02 00 00 00 00 25 [17:37:55]Write i2c OK [17:37:55]MH_I2C_Read... [17:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:55]Read from MH i2c: E2 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 23 89 00 90 00 20 [17:37:55]RAPDU: 90 00 [17:37:55]wFMCommunicate OK [17:37:55]wFMCommunicate request_size=255 [17:37:55]MH_SAM_APDU [17:37:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 FE 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DD 23 01 00 35 04 06 00 0E [17:37:55]Write to MH i2c: E2 02 01 24 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 FE 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DD 23 01 00 35 04 06 00 0E 00 00 6D [17:37:55]Write i2c OK [17:37:55]MH_I2C_Read... [17:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:55]Read from MH i2c: E2 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 24 89 00 90 00 21 [17:37:55]RAPDU: 90 00 [17:37:55]wFMCommunicate OK [17:37:55]wFMCommunicate request_size=10 [17:37:55]MH_SAM_APDU [17:37:55]CAPDU: 80 0D 02 02 05 1A D3 51 42 7D [17:37:55]Write to MH i2c: E2 0D 00 25 89 80 0D 02 02 05 00 1A D3 51 42 7D 00 00 2F [17:37:55]Write i2c OK [17:37:55]MH_I2C_Read... [17:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:55]Read from MH i2c: E2 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 03 00 25 89 00 90 00 22 [17:37:55]RAPDU: 90 00 [17:37:55]wFMCommunicate OK [17:37:55]wFMCommunicate request_size=4 [17:37:55]MH_SAM_APDU [17:37:55]CAPDU: 80 0D 03 02 [17:37:55]Write to MH i2c: E2 08 00 26 89 80 0D 03 02 00 00 00 00 2A [17:37:55]Write i2c OK [17:37:55]MH_I2C_Read... [17:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:55]Read from MH i2c: E2 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 0B 00 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 0B 00 26 89 00 96 B3 0C 73 B1 94 9E 16 90 00 EC [17:37:55]RAPDU: 96 B3 0C 73 B1 94 9E 16 90 00 [17:37:55]wFMCommunicate OK [17:37:55]SAM_PROTO_SignData done [17:37:55]FM_MakeSignedData done [17:37:55]CreateOFDProtocolMessage [17:37:55]wFMCommunicate request_size=4 [17:37:55]MH_SAM_APDU [17:37:55]CAPDU: 80 11 00 00 [17:37:55]Write to MH i2c: E2 08 00 27 89 80 11 00 00 00 00 00 00 2A [17:37:55]Write i2c OK [17:37:55]MH_I2C_Read... [17:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:55]Read from MH i2c: E2 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 17 00 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: E2 17 00 27 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 82 [17:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:37:55]wFMCommunicate OK [17:37:55]CreateOFDProtocolMessage done [17:37:55]OFDSenderStorePacket 74717 [17:37:55]StoreOFDPacket docnum=74717 [17:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 02 31 07 01 F6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 FE 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DD 23 01 00 35 04 06 00 0E 1A D3 51 42 7D 96 B3 0C 73 B1 94 9E 16 [17:37:55]CheckFolder [17:37:55]dirname=/storage/ofd_packets [17:37:55]CheckFolder done [17:37:55]ProducePacketName [17:37:55]name=ofd_packets/00074717 [17:37:55]NVStorageSaveData ofd_packets/00074717 [17:37:55]File name is /storage/ofd_packets/00074717 [17:37:55]Write 301 bytes [17:37:55]NVStorageSaveData done [17:37:55]OFDSenderStorePacket done [17:37:55]KKMCreateOFDPacket done [17:37:55]NVStorageSaveData kkm_last_timestamp [17:37:55]File name is /storage/kkm_last_timestamp [17:37:55]Write 4 bytes [17:37:55]NVStorageSaveData done [17:37:55]ExternCall_PrintAddStr [17:37:55]wPrintStart [17:37:55]Write to MH i2c: 01 00 00 28 89 B1 [17:37:55]Write i2c OK [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: 01 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: 01 07 00 [17:37:55]MH_I2C_Read... [17:37:55]Read from MH i2c: 01 07 00 28 89 00 00 00 00 00 FF 0F C6 [17:37:55]RasterBufferAndPrint [17:37:55]line Счет N : (1)190685 [17:37:55]line ИНН: 02508201610067 [17:37:55]line Контрольно-Кассовый Чек [17:37:55]line ПРОДАЖА [17:37:55]line ТРК (МРК, ГНК) : 21 [17:37:55]line Товар: 2710124130 [17:37:55]line Аи-92-К-5 [17:37:55]line 7.480 * 66.90 [17:37:55]line = 500.41 [17:37:55]line НДС 12% НСП 1% [17:37:55]line > о реализуемом товаре [17:37:55]line ОКРУГЛЕНИЕ: -0.41 [17:37:55]line ИТОГО: 500.00 [17:37:55]line Внесено: 500.00 [17:37:55]line СДАЧА: 0.00 [17:37:55]line НСП 1% : 4.43 [17:37:55]line НДС 12% : 53.14 [17:37:55]line Наличными: 500.00 [17:37:55]line Безнал.: 0.00 [17:37:55]line Место: АЗС № 142 "Партнер Нефть" [17:37:55]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:37:55]line СНО: Общий режим [17:37:55]line Чек 161 24.10.2024 17:38 [17:37:55]line Смена: 510 ФФД: 1.0 [17:37:55]line ЗНМ: 0300000089 [17:37:55]line РНМ: 0000000000091691 [17:37:55]line Версия ККМ: 001 [17:37:55]line ФМ: 0000000000871795 [17:37:55]line ФД: 74717 [17:37:55]line ФПД: 15508377256573 [17:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173806&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74717&fm=15508377256573&tin=02508201610067®Number=0000000000091691&sum=50000 [17:37:56]written 0, free lines is 4095 [17:37:56]OFD Sender: Processing packet 74717 [packets to send 13, broken 12] [17:37:56]ProducePacketName [17:37:56]name=ofd_packets/00074717 [17:37:56]OFD Sender: To server: pG, [17:37:56]CommunicateWithHost lk.salyk.kg:30040 [17:37:56]ConnectInit lk.salyk.kg [17:37:56]Connected sock=10 [17:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 02 31 07 01 F6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 FE 85 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DD 23 01 00 35 04 06 00 0E 1A D3 51 42 7D 96 B3 0C 73 B1 94 9E 16 [17:37:56]Write to MH i2c: 01 00 00 53 89 DC [17:37:56]Write i2c OK [17:37:56]MH_I2C_Read... [17:37:56]Read from MH i2c: 01 [17:37:56]MH_I2C_Read... [17:37:56]Read from MH i2c: 01 07 00 [17:37:56]MH_I2C_Read... [17:37:56]Read from MH i2c: 01 07 00 53 89 00 00 00 00 00 99 0C 88 [17:37:56]RasterBufferAndPrint [17:37:56]line [17:37:56]line [17:37:56]line [17:37:56]line [17:37:56]line [17:37:56]written 0, free lines is 3229 [17:37:56]MH_Cut [17:37:56]Write to MH i2c: D1 01 00 5A 89 01 B5 [17:37:56]Write i2c OK [17:37:56]MH_I2C_Read... [17:37:56]Read from MH i2c: D1 [17:37:56]MH_I2C_Read... [17:37:56]Read from MH i2c: D1 01 00 [17:37:56]MH_I2C_Read... [17:37:56]Read from MH i2c: D1 01 00 5A 89 00 B4 [17:37:56]Write to MH i2c: 01 00 00 5B 89 E4 [17:37:56]Write i2c OK [17:37:56]MH_I2C_Read... [17:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 05 8D 47 00 CA 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DD 23 01 00 F4 03 04 00 80 2D 1A 67 B6 04 01 00 00 25 65 B3 AD DA 80 A5 53 [17:37:56]CommunicateWithHost err = 0 [17:37:56]CheckOFDResponse [17:37:56]1017 (14) - 77093643461234 [17:37:56]1041 (16) - 0000000000871795 [17:37:56]1040 (4) - 74717 [17:37:56]1012 (4) - 24.10.2024 11:20 [17:37:56]1206 (1) - 0 [17:37:56]OFD Sender: Remove packet 74717 [17:37:56]ProducePacketName [17:37:56]name=ofd_packets/00074717 [17:37:56]NVStorageDeleteData [17:37:57]OFD Sender: No OFD packet to send [17:37:57]*** Cut start [17:37:57]*** Partial cut [17:37:57]*** CUTSNS_PIN = 1 [17:37:57]*** CUTSNS_PIN = 0 [17:37:57]*** Brake cut motor [17:37:58]Read from MH i2c: 01 [17:37:58]MH_I2C_Read... [17:37:58]*** Stop cut motor [17:37:58]*** Cut end [17:37:58]Read from MH i2c: 01 07 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 07 00 5B 89 00 00 00 00 00 FF 0F F9 [17:37:58]process_action close_receipt done [17:37:58]requested_data is exist [17:37:58]produce_requested_data [17:37:58]requested_item fm.sn is exist - process it [17:37:58]wFMCommunicate request_size=4 [17:37:58]MH_SAM_APDU [17:37:58]CAPDU: 80 11 00 00 [17:37:58]Write to MH i2c: E2 08 00 5C 89 80 11 00 00 00 00 00 00 5F [17:37:58]Write i2c OK [17:37:58]MH_I2C_Read... [17:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:58]Read from MH i2c: E2 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: E2 17 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: E2 17 00 5C 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B7 [17:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:37:58]wFMCommunicate OK [17:37:58]requested_item fd.num is exist - process it [17:37:58]SAM_PROTO_GetFieldsCounters [17:37:58]wFMCommunicate request_size=4 [17:37:58]MH_SAM_APDU [17:37:58]CAPDU: 80 13 00 00 [17:37:58]Write to MH i2c: E2 08 00 5D 89 80 13 00 00 00 00 00 00 62 [17:37:58]Write i2c OK [17:37:58]MH_I2C_Read... [17:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:58]Read from MH i2c: E2 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: E2 62 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: E2 62 00 5D 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DD 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [17:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DD 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:58]wFMCommunicate OK [17:37:58]SAM_PROTO_GetFieldsCounters done [17:37:58]requested_item shift.num is exist - process it [17:37:58]requested_item shift.opened is exist - process it [17:37:58]req_shift_opened [17:37:58]FM_GetShiftState [17:37:58]SAM_PROTO_GetShiftState [17:37:58]wFMCommunicate request_size=4 [17:37:58]MH_SAM_APDU [17:37:58]CAPDU: 80 13 01 00 [17:37:58]Write to MH i2c: E2 08 00 5E 89 80 13 01 00 00 00 00 00 64 [17:37:58]Write i2c OK [17:37:58]MH_I2C_Read... [17:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:58]Read from MH i2c: E2 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: E2 0E 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: E2 0E 00 5E 89 00 09 00 01 09 95 19 67 00 00 00 00 90 00 8E [17:37:58]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:37:58]wFMCommunicate OK [17:37:58]SAM_PROTO_GetShiftState done [17:37:58]FM_GetShiftState done [17:37:58]req_shift_opened done [17:37:58]requested_item shift.open_date is exist - process it [17:37:58]req_shift_open_date [17:37:58]req_shift_open_date done [17:37:58]produce_requested_data done [17:37:58]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74717,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:37:58]process_action_free close_receipt [17:37:58]json_value_free [17:37:58]json_value_free done [17:37:58]process_json_proto returns [17:37:58]Send response to host [17:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74717,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:37:58]free response buf [17:37:58]execute_script done [17:37:58]execute_script returns [17:37:58]free content buf [17:37:58]Sock 9.Close socket [17:37:58]Sock 9.Thread stoped [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:15]accept exits with 8 [17:43:15]New connection [17:43:15]New thread 3066805604 created [17:43:15]Thread 3066662244 joined [17:43:15]Waiting for new connection... [17:43:15] Sock 8.Parse request [17:43:15]Sock 8.Check first char [17:43:15]Sock 8.First char is OK [17:43:15]request: POST /json_proto HTTP/1.0 [17:43:15]Method: POST [17:43:15]URL: /json_proto [17:43:15]Method is POST - this is cgi request [17:43:15]url: /json_proto [17:43:15]query_string will be loaded in cgi processing [17:43:15]execute_cgi json_proto POST (null) [17:43:15]execute_cgi path=json_proto method=POST [17:43:15]POST find Content-Length [17:43:15]Host: 172.17.39.131:8080 [17:43:15]Content-Length: 677 [17:43:15]Content-Type: application/json [17:43:15] [17:43:15]POST finish read [17:43:15]Found Content-Length = 677 [17:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:15]execute_script... [17:43: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)190686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:15]POST & json_proto [17:43:15]process_json_proto [17:43:15]json parsed OK: [17:43:15]protocol is kg_v1.0 [17:43:15]action value=close_receipt [17:43:15]process_action close_receipt [17:43:15]cmd_close_receipt [17:43:15]MH_GetDate [17:43:15]Write to MH i2c: F0 00 00 5F 89 D7 [17:43:15]Write i2c OK [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: F0 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: F0 09 00 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: F0 09 00 5F 89 00 3F 87 1A 67 86 57 24 65 8D [17:43:15]GetLastDocTimeStamp 1729791486 [17:43:15]current date 1729791807 [17:43:15]FM_GetShiftState [17:43:15]SAM_PROTO_GetShiftState [17:43:15]wFMCommunicate request_size=4 [17:43:15]MH_SAM_APDU [17:43:15]CAPDU: 80 13 01 00 [17:43:15]Write to MH i2c: E2 08 00 60 89 80 13 01 00 00 00 00 00 66 [17:43:15]Write i2c OK [17:43:15]MH_I2C_Read... [17:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:15]Read from MH i2c: E2 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: E2 0E 00 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: E2 0E 00 60 89 00 09 00 01 09 95 19 67 00 00 00 00 90 00 90 [17:43:15]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:43:15]wFMCommunicate OK [17:43:15]SAM_PROTO_GetShiftState done [17:43:15]FM_GetShiftState done [17:43:15]opened in 1729729801 [17:43:15]opened+sec_in_day 1729816201 [17:43:15]quantity*price = 30038 [17:43:15]sum+1 = 30039 [17:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 162 24.10.2024 17:43 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74718 ФПД: 53147713529198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174328&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74718&fm=53147713529198&tin=02508201610067®Number=0000000000091691&sum=30000 [17:43:16]StoreToDocumentArchive [17:43:16]shift 510 fd 74718 [17:43:16]save to /storage/0510/doc_00074718 [17:43:16]save last doc name /storage/0510/doc_00074718 to /storage/kkm_last_doc_name [17:43:16]save OK [17:43:16]Clear old archive folders... [17:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:16]tlvbuf is 00894240 [17:43:16]SAM_PROTO_ClearQueue [17:43:16]wFMCommunicate request_size=4 [17:43:16]MH_SAM_APDU [17:43:16]CAPDU: 80 09 00 00 [17:43:16]Write to MH i2c: E2 08 00 6D 89 80 09 00 00 00 00 00 00 68 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:16]Read from MH i2c: E2 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 03 00 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 03 00 6D 89 00 90 00 6A [17:43:16]RAPDU: 90 00 [17:43:16]wFMCommunicate OK [17:43:16]SAM_PROTO_ClearQueue done [17:43:16]KKMCreateOFDPacket [17:43:16]OFDProtocolAddRootSTLVToBuf [17:43:16]FM_MakeSignedData [17:43:16]FM_MakeSignedData [17:43:16]SAM_PROTO_SignData [17:43:16]wFMCommunicate request_size=4 [17:43:16]MH_SAM_APDU [17:43:16]CAPDU: 80 0D 01 02 [17:43:16]Write to MH i2c: E2 08 00 6E 89 80 0D 01 02 00 00 00 00 70 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 6E 89 00 90 00 6B [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=255 [17:43:17]MH_SAM_APDU [17:43: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 40 87 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DE 23 01 00 35 04 06 00 30 [17:43:17]Write to MH i2c: E2 02 01 6F 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 40 87 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DE 23 01 00 35 04 06 00 30 00 00 14 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 6F 89 00 90 00 6C [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=10 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 02 02 05 56 6A 95 E5 6E [17:43:17]Write to MH i2c: E2 0D 00 70 89 80 0D 02 02 05 00 56 6A 95 E5 6E 00 00 25 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 70 89 00 90 00 6D [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 03 02 [17:43:17]Write to MH i2c: E2 08 00 71 89 80 0D 03 02 00 00 00 00 75 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0B 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0B 00 71 89 00 2C E3 90 C1 1B 66 F8 37 90 00 86 [17:43:17]RAPDU: 2C E3 90 C1 1B 66 F8 37 90 00 [17:43:17]wFMCommunicate OK [17:43:17]SAM_PROTO_SignData done [17:43:17]FM_MakeSignedData done [17:43:17]CreateOFDProtocolMessage [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 11 00 00 [17:43:17]Write to MH i2c: E2 08 00 72 89 80 11 00 00 00 00 00 00 75 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 17 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 17 00 72 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CD [17:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:43:17]wFMCommunicate OK [17:43:17]CreateOFDProtocolMessage done [17:43:17]OFDSenderStorePacket 74718 [17:43:17]StoreOFDPacket docnum=74718 [17:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AE E3 07 01 86 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 40 87 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DE 23 01 00 35 04 06 00 30 56 6A 95 E5 6E 2C E3 90 C1 1B 66 F8 37 [17:43:17]CheckFolder [17:43:17]dirname=/storage/ofd_packets [17:43:17]CheckFolder done [17:43:17]ProducePacketName [17:43:17]name=ofd_packets/00074718 [17:43:17]NVStorageSaveData ofd_packets/00074718 [17:43:17]File name is /storage/ofd_packets/00074718 [17:43:17]Write 301 bytes [17:43:17]NVStorageSaveData done [17:43:17]OFDSenderStorePacket done [17:43:17]KKMCreateOFDPacket done [17:43:17]NVStorageSaveData kkm_last_timestamp [17:43:17]File name is /storage/kkm_last_timestamp [17:43:17]Write 4 bytes [17:43:17]NVStorageSaveData done [17:43:17]ExternCall_PrintAddStr [17:43:17]wPrintStart [17:43:17]Write to MH i2c: 01 00 00 73 89 FC [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 07 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 07 00 73 89 00 00 00 00 00 FF 0F 11 [17:43:17]RasterBufferAndPrint [17:43:17]line Счет N : (1)190686 [17:43:17]line ИНН: 02508201610067 [17:43:17]line Контрольно-Кассовый Чек [17:43:17]line ПРОДАЖА [17:43:17]line ТРК (МРК, ГНК) : 21 [17:43:17]line Товар: 2710124130 [17:43:17]line Аи-92-К-5 [17:43:17]line 4.490 * 66.90 [17:43:17]line = 300.38 [17:43:17]line НДС 12% НСП 1% [17:43:17]line > о реализуемом товаре [17:43:17]line ОКРУГЛЕНИЕ: -0.38 [17:43:17]line ИТОГО: 300.00 [17:43:17]line Внесено: 300.00 [17:43:17]line СДАЧА: 0.00 [17:43:17]line НСП 1% : 2.66 [17:43:17]line НДС 12% : 31.90 [17:43:17]line Наличными: 300.00 [17:43:17]line Безнал.: 0.00 [17:43:17]line Место: АЗС № 142 "Партнер Нефть" [17:43:17]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:43:17]line СНО: Общий режим [17:43:17]line Чек 162 24.10.2024 17:43 [17:43:17]line Смена: 510 ФФД: 1.0 [17:43:17]line ЗНМ: 0300000089 [17:43:17]line РНМ: 0000000000091691 [17:43:17]line Версия ККМ: 001 [17:43:17]line ФМ: 0000000000871795 [17:43:17]line ФД: 74718 [17:43:17]line ФПД: 53147713529198 [17:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174328&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74718&fm=53147713529198&tin=02508201610067®Number=0000000000091691&sum=30000 [17:43:17]written 0, free lines is 4095 [17:43:17]OFD Sender: Processing packet 74718 [packets to send 13, broken 12] [17:43:17]ProducePacketName [17:43:17]name=ofd_packets/00074718 [17:43:17]OFD Sender: To server: pG, [17:43:17]CommunicateWithHost lk.salyk.kg:30040 [17:43:17]ConnectInit lk.salyk.kg [17:43:18]Connected sock=9 [17:43:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AE E3 07 01 86 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 40 87 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DE 23 01 00 35 04 06 00 30 56 6A 95 E5 6E 2C E3 90 C1 1B 66 F8 37 [17:43:18]Write to MH i2c: 01 00 00 9E 89 27 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 9E 89 00 00 00 00 00 A9 0C E3 [17:43:18]RasterBufferAndPrint [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]written 0, free lines is 3249 [17:43:18]MH_Cut [17:43:18]Write to MH i2c: D1 01 00 A5 89 01 00 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 01 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 01 00 A5 89 00 FF [17:43:18]Write to MH i2c: 01 00 00 A6 89 2F [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 EA 62 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 31 37 39 35 10 04 04 00 DE 23 01 00 F4 03 04 00 C1 2E 1A 67 B6 04 01 00 00 8F 63 54 FB 67 8D 27 35 [17:43:18]CommunicateWithHost err = 0 [17:43:18]CheckOFDResponse [17:43:18]1017 (14) - 77093643461234 [17:43:18]1041 (16) - 0000000000871795 [17:43:18]1040 (4) - 74718 [17:43:18]1012 (4) - 24.10.2024 11:25 [17:43:18]1206 (1) - 0 [17:43:18]OFD Sender: Remove packet 74718 [17:43:18]ProducePacketName [17:43:18]name=ofd_packets/00074718 [17:43:18]NVStorageDeleteData [17:43:18]OFD Sender: No OFD packet to send [17:43:19]*** Cut start [17:43:19]*** Partial cut [17:43:19]*** CUTSNS_PIN = 1 [17:43:19]*** CUTSNS_PIN = 0 [17:43:19]*** Brake cut motor [17:43:19]Read from MH i2c: 01 [17:43:19]MH_I2C_Read... [17:43:19]*** Stop cut motor [17:43:19]*** Cut end [17:43:19]Read from MH i2c: 01 07 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: 01 07 00 A6 89 00 00 00 00 00 FF 0F 44 [17:43:19]process_action close_receipt done [17:43:19]requested_data is exist [17:43:19]produce_requested_data [17:43:19]requested_item fm.sn is exist - process it [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 11 00 00 [17:43:19]Write to MH i2c: E2 08 00 A7 89 80 11 00 00 00 00 00 00 AA [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:19]Read from MH i2c: E2 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 A7 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [17:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:43:19]wFMCommunicate OK [17:43:19]requested_item fd.num is exist - process it [17:43:19]SAM_PROTO_GetFieldsCounters [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 13 00 00 [17:43:19]Write to MH i2c: E2 08 00 A8 89 80 13 00 00 00 00 00 00 AD [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:19]Read from MH i2c: E2 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 62 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 62 00 A8 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DE 23 01 00 0E 04 04 00 FE 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 BB [17:43:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DE 23 01 00 0E 04 04 00 FE 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 [17:43:19]wFMCommunicate OK [17:43:19]SAM_PROTO_GetFieldsCounters done [17:43:19]requested_item shift.num is exist - process it [17:43:19]requested_item shift.opened is exist - process it [17:43:19]req_shift_opened [17:43:19]FM_GetShiftState [17:43:19]SAM_PROTO_GetShiftState [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 13 01 00 [17:43:19]Write to MH i2c: E2 08 00 A9 89 80 13 01 00 00 00 00 00 AF [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:20]Read from MH i2c: E2 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 0E 00 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 0E 00 A9 89 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D9 [17:43:20]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:43:20]wFMCommunicate OK [17:43:20]SAM_PROTO_GetShiftState done [17:43:20]FM_GetShiftState done [17:43:20]req_shift_opened done [17:43:20]requested_item shift.open_date is exist - process it [17:43:20]req_shift_open_date [17:43:20]req_shift_open_date done [17:43:20]produce_requested_data done [17:43:20]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74718,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:43:20]process_action_free close_receipt [17:43:20]json_value_free [17:43:20]json_value_free done [17:43:20]process_json_proto returns [17:43:20]Send response to host [17:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74718,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:43:20]free response buf [17:43:20]execute_script done [17:43:20]execute_script returns [17:43:20]free content buf [17:43:20]Sock 8.Close socket [17:43:20]Sock 8.Thread stoped [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:36]int [17:47:36]Write to MH i2c: 01 00 00 AA 89 33 [17:47:36]*** FLAG_PRN_KEY set [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 AA 89 00 08 00 00 00 FF 0F 50 [17:47:36]state=0 [17:47:36]Key pressed [17:47:36]Feed [17:47:36]Write to MH i2c: D8 00 00 AB 89 0B [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: D8 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: D8 01 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: D8 01 00 AB 89 00 0C [17:47:36]int [17:47:36]Write to MH i2c: 01 00 00 AC 89 35 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 AC 89 00 48 00 00 00 3C 00 C0 [17:47:36]state=2 [17:47:36]Key pressed [17:47:36]int [17:47:36]Write to MH i2c: 01 00 00 AD 89 36 [17:47:36]*** FLAG_PRN_KEY reset [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 AD 89 00 00 00 00 00 FC 0F 48 [17:47:36]state=2 [17:47:36]Stop feed [17:47:36]int [17:47:36]Write to MH i2c: 01 00 00 AE 89 37 [17:47:36]*** FLAG_PRN_KEY set [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 AE 89 00 08 00 00 00 FF 0F 54 [17:47:36]state=0 [17:47:36]Key pressed [17:47:36]Feed [17:47:36]Write to MH i2c: D8 00 00 AF 89 0F [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: D8 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: D8 01 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: D8 01 00 AF 89 00 10 [17:47:36]int [17:47:36]Write to MH i2c: 01 00 00 B0 89 39 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 B0 89 00 48 00 00 00 3C 00 C4 [17:47:37]state=2 [17:47:37]Key pressed [17:47:37]int [17:47:37]Write to MH i2c: 01 00 00 B1 89 3A [17:47:37]*** FLAG_PRN_KEY reset [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 B1 89 00 00 00 00 00 F5 0F 45 [17:47:37]state=2 [17:47:37]Stop feed [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:23]accept exits with 10 [17:48:23]New connection [17:48:23]New thread 3066662244 created [17:48:23]Thread 3066805604 joined [17:48:23]Waiting for new connection... [17:48:23] Sock 10.Parse request [17:48:23]Sock 10.Check first char [17:48:23]Sock 10.First char is OK [17:48:23]request: POST /json_proto HTTP/1.0 [17:48:23]Method: POST [17:48:23]URL: /json_proto [17:48:23]Method is POST - this is cgi request [17:48:23]url: /json_proto [17:48:23]query_string will be loaded in cgi processing [17:48:23]execute_cgi json_proto POST (null) [17:48:23]execute_cgi path=json_proto method=POST [17:48:23]POST find Content-Length [17:48:23]Host: 172.17.39.131:8080 [17:48:23]Content-Length: 651 [17:48:23]Content-Type: application/json [17:48:23] [17:48:23]POST finish read [17:48:23]Found Content-Length = 651 [17:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 280.000, "sum" : 21616.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21616.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:23]execute_script... [17:48: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)190681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 280.000, "sum" : 21616.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21616.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:23]POST & json_proto [17:48:23]process_json_proto [17:48:23]json parsed OK: [17:48:23]protocol is kg_v1.0 [17:48:23]action value=close_receipt [17:48:23]process_action close_receipt [17:48:23]cmd_close_receipt [17:48:23]MH_GetDate [17:48:23]Write to MH i2c: F0 00 00 B2 89 2A [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: F0 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: F0 09 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: F0 09 00 B2 89 00 74 88 1A 67 86 57 24 65 16 [17:48:23]GetLastDocTimeStamp 1729791808 [17:48:23]current date 1729792116 [17:48:23]FM_GetShiftState [17:48:23]SAM_PROTO_GetShiftState [17:48:23]wFMCommunicate request_size=4 [17:48:23]MH_SAM_APDU [17:48:23]CAPDU: 80 13 01 00 [17:48:23]Write to MH i2c: E2 08 00 B3 89 80 13 01 00 00 00 00 00 B9 [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:23]Read from MH i2c: E2 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 0E 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 0E 00 B3 89 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E3 [17:48:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:48:23]wFMCommunicate OK [17:48:23]SAM_PROTO_GetShiftState done [17:48:23]FM_GetShiftState done [17:48:23]opened in 1729729801 [17:48:23]opened+sec_in_day 1729816201 [17:48:23]quantity*price = 2161600 [17:48:23]sum+1 = 2161601 [17:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21616.00 НСП 1% : 191.29 НДС 12% : 2295.50 Наличными: 21616.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 163 24.10.2024 17:48 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74719 ФПД: 266694814100098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174836&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74719&fm=266694814100098&tin=02508201610067®Number=0000000000091691&sum=2161600 [17:48:24]StoreToDocumentArchive [17:48:24]shift 510 fd 74719 [17:48:24]save to /storage/0510/doc_00074719 [17:48:24]save last doc name /storage/0510/doc_00074719 to /storage/kkm_last_doc_name [17:48:24]save OK [17:48:24]Clear old archive folders... [17:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:48:24]tlvbuf is 007D3110 [17:48:24]SAM_PROTO_ClearQueue [17:48:24]wFMCommunicate request_size=4 [17:48:24]MH_SAM_APDU [17:48:24]CAPDU: 80 09 00 00 [17:48:24]Write to MH i2c: E2 08 00 C0 89 80 09 00 00 00 00 00 00 BB [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 C0 89 00 90 00 BD [17:48:25]RAPDU: 90 00 [17:48:25]wFMCommunicate OK [17:48:25]SAM_PROTO_ClearQueue done [17:48:25]KKMCreateOFDPacket [17:48:25]OFDProtocolAddRootSTLVToBuf [17:48:25]FM_MakeSignedData [17:48:25]FM_MakeSignedData [17:48:25]SAM_PROTO_SignData [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 0D 01 02 [17:48:25]Write to MH i2c: E2 08 00 C1 89 80 0D 01 02 00 00 00 00 C3 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 C1 89 00 90 00 BE [17:48:25]RAPDU: 90 00 [17:48:25]wFMCommunicate OK [17:48:25]wFMCommunicate request_size=255 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C0 45 04 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C0 FB 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 FB 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 4A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 80 03 00 00 00 07 04 06 00 C0 FB 20 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 74 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DF 23 01 [17:48:25]Write to MH i2c: E2 02 01 C2 89 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C0 45 04 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C0 FB 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 FB 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 4A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 80 03 00 00 00 07 04 06 00 C0 FB 20 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 74 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DF 23 01 00 00 94 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 C2 89 00 90 00 BF [17:48:25]RAPDU: 90 00 [17:48:25]wFMCommunicate OK [17:48:25]wFMCommunicate request_size=16 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F2 8E B9 A8 6A 82 [17:48:25]Write to MH i2c: E2 13 00 C3 89 80 0D 02 02 0B 00 00 35 04 06 00 F2 8E B9 A8 6A 82 00 00 E8 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 03 00 C3 89 00 90 00 C0 [17:48:25]RAPDU: 90 00 [17:48:25]wFMCommunicate OK [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 0D 03 02 [17:48:25]Write to MH i2c: E2 08 00 C4 89 80 0D 03 02 00 00 00 00 C8 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0B 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0B 00 C4 89 00 D4 F1 83 E2 23 17 D5 31 90 00 33 [17:48:25]RAPDU: D4 F1 83 E2 23 17 D5 31 90 00 [17:48:25]wFMCommunicate OK [17:48:25]SAM_PROTO_SignData done [17:48:25]FM_MakeSignedData done [17:48:25]CreateOFDProtocolMessage [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 11 00 00 [17:48:25]Write to MH i2c: E2 08 00 C5 89 80 11 00 00 00 00 00 00 C8 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 17 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 17 00 C5 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 20 [17:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:48:25]wFMCommunicate OK [17:48:25]CreateOFDProtocolMessage done [17:48:25]OFDSenderStorePacket 74719 [17:48:25]StoreOFDPacket docnum=74719 [17:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 5A C1 0D 01 ED 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C0 45 04 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C0 FB 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 FB 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 4A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 80 03 00 00 00 07 04 06 00 C0 FB 20 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 74 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DF 23 01 00 35 04 06 00 F2 8E B9 A8 6A 82 D4 F1 83 E2 23 17 D5 31 [17:48:25]CheckFolder [17:48:25]dirname=/storage/ofd_packets [17:48:25]CheckFolder done [17:48:25]ProducePacketName [17:48:25]name=ofd_packets/00074719 [17:48:25]NVStorageSaveData ofd_packets/00074719 [17:48:25]File name is /storage/ofd_packets/00074719 [17:48:25]Write 307 bytes [17:48:25]NVStorageSaveData done [17:48:25]OFDSenderStorePacket done [17:48:25]KKMCreateOFDPacket done [17:48:25]NVStorageSaveData kkm_last_timestamp [17:48:25]File name is /storage/kkm_last_timestamp [17:48:25]Write 4 bytes [17:48:25]NVStorageSaveData done [17:48:25]ExternCall_PrintAddStr [17:48:25]wPrintStart [17:48:25]Write to MH i2c: 01 00 00 C6 89 4F [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: 01 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: 01 07 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: 01 07 00 C6 89 00 00 00 00 00 FF 0F 64 [17:48:25]RasterBufferAndPrint [17:48:25]line Счет N : (1)190681 [17:48:25]line ИНН: 02508201610067 [17:48:25]line Контрольно-Кассовый Чек [17:48:25]line ПРОДАЖА [17:48:25]line ТРК (МРК, ГНК) : 42 [17:48:25]line Товар: 2710194240 [17:48:25]line D-ENERGY ДТ-К-2 [17:48:25]line 280.000 * 77.20 [17:48:25]line = 21616.00 [17:48:25]line НДС 12% НСП 1% [17:48:25]line > о реализуемом товаре [17:48:25]line ИТОГО: 21616.00 [17:48:25]line НСП 1% : 191.29 [17:48:25]line НДС 12% : 2295.50 [17:48:25]line Наличными: 21616.00 [17:48:25]line Безнал.: 0.00 [17:48:25]line Место: АЗС № 142 "Партнер Нефть" [17:48:25]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:48:25]line СНО: Общий режим [17:48:25]line Чек 163 24.10.2024 17:48 [17:48:25]line Смена: 510 ФФД: 1.0 [17:48:25]line ЗНМ: 0300000089 [17:48:25]line РНМ: 0000000000091691 [17:48:25]line Версия ККМ: 001 [17:48:25]line ФМ: 0000000000871795 [17:48:25]line ФД: 74719 [17:48:25]line ФПД: 266694814100098 [17:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174836&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74719&fm=266694814100098&tin=02508201610067®Number=0000000000091691&sum=2161600 [17:48:25]OFD Sender: Processing packet 74719 [packets to send 13, broken 12] [17:48:25]ProducePacketName [17:48:25]name=ofd_packets/00074719 [17:48:25]OFD Sender: To server: pG, [17:48:25]CommunicateWithHost lk.salyk.kg:30040 [17:48:25]ConnectInit lk.salyk.kg [17:48:25]written 0, free lines is 4095 [17:48:26]Connected sock=8 [17:48:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 5A C1 0D 01 ED 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C0 45 04 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C0 FB 20 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 FB 20 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 4A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 80 03 00 00 00 07 04 06 00 C0 FB 20 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 74 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DF 23 01 00 35 04 06 00 F2 8E B9 A8 6A 82 D4 F1 83 E2 23 17 D5 31 [17:48:26]Write to MH i2c: 01 00 00 EE 89 77 [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: 01 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: 01 07 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: 01 07 00 EE 89 00 00 00 00 00 F8 0C 82 [17:48:26]RasterBufferAndPrint [17:48:26]line [17:48:26]line [17:48:26]line [17:48:26]line [17:48:26]line [17:48:26]written 0, free lines is 3329 [17:48:26]MH_Cut [17:48:26]Write to MH i2c: D1 01 00 F5 89 01 50 [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: D1 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: D1 01 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: D1 01 00 F5 89 00 4F [17:48:26]Write to MH i2c: 01 00 00 F6 89 7F [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0C CA 47 00 9C 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 DF 23 01 00 F4 03 04 00 F5 2F 1A 67 B6 04 01 00 00 DF A3 0D 30 47 0E 44 30 [17:48:26]CommunicateWithHost err = 0 [17:48:26]CheckOFDResponse [17:48:26]1017 (14) - 77093643461234 [17:48:26]1041 (16) - 0000000000871795 [17:48:26]1040 (4) - 74719 [17:48:26]1012 (4) - 24.10.2024 11:31 [17:48:26]1206 (1) - 0 [17:48:26]OFD Sender: Remove packet 74719 [17:48:26]ProducePacketName [17:48:26]name=ofd_packets/00074719 [17:48:26]NVStorageDeleteData [17:48:26]OFD Sender: No OFD packet to send [17:48:27]*** Cut start [17:48:27]*** Partial cut [17:48:27]*** CUTSNS_PIN = 1 [17:48:27]*** CUTSNS_PIN = 0 [17:48:27]*** Brake cut motor [17:48:27]Read from MH i2c: 01 [17:48:27]MH_I2C_Read... [17:48:27]*** Stop cut motor [17:48:27]*** Cut end [17:48:27]Read from MH i2c: 01 07 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: 01 07 00 F6 89 00 00 00 00 00 FF 0F 94 [17:48:27]process_action close_receipt done [17:48:27]requested_data is exist [17:48:27]produce_requested_data [17:48:27]requested_item fm.sn is exist - process it [17:48:27]wFMCommunicate request_size=4 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 11 00 00 [17:48:27]Write to MH i2c: E2 08 00 F7 89 80 11 00 00 00 00 00 00 FA [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 17 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 17 00 F7 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 52 [17:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:48:27]wFMCommunicate OK [17:48:27]requested_item fd.num is exist - process it [17:48:27]SAM_PROTO_GetFieldsCounters [17:48:27]wFMCommunicate request_size=4 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 13 00 00 [17:48:27]Write to MH i2c: E2 08 00 F8 89 80 13 00 00 00 00 00 00 FD [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 62 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 62 00 F8 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DF 23 01 00 0E 04 04 00 FE 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 0F [17:48: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 DF 23 01 00 0E 04 04 00 FE 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 [17:48:27]wFMCommunicate OK [17:48:27]SAM_PROTO_GetFieldsCounters done [17:48:27]requested_item shift.num is exist - process it [17:48:27]requested_item shift.opened is exist - process it [17:48:27]req_shift_opened [17:48:27]FM_GetShiftState [17:48:27]SAM_PROTO_GetShiftState [17:48:27]wFMCommunicate request_size=4 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 13 01 00 [17:48:27]Write to MH i2c: E2 08 00 F9 89 80 13 01 00 00 00 00 00 FF [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 0E 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 0E 00 F9 89 00 09 00 01 09 95 19 67 00 00 00 00 90 00 29 [17:48:28]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:48:28]wFMCommunicate OK [17:48:28]SAM_PROTO_GetShiftState done [17:48:28]FM_GetShiftState done [17:48:28]req_shift_opened done [17:48:28]requested_item shift.open_date is exist - process it [17:48:28]req_shift_open_date [17:48:28]req_shift_open_date done [17:48:28]produce_requested_data done [17:48:28]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74719,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:48:28]process_action_free close_receipt [17:48:28]json_value_free [17:48:28]json_value_free done [17:48:28]process_json_proto returns [17:48:28]Send response to host [17:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74719,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:48:28]free response buf [17:48:28]execute_script done [17:48:28]execute_script returns [17:48:28]free content buf [17:48:28]Sock 10.Close socket [17:48:28]Sock 10.Thread stoped [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:49]int [17:48:49]Write to MH i2c: 01 00 00 FA 89 83 [17:48:49]*** FLAG_PRN_KEY set [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 FA 89 00 08 00 00 00 FF 0F A0 [17:48:49]state=0 [17:48:49]Key pressed [17:48:49]Feed [17:48:49]Write to MH i2c: D8 00 00 FB 89 5B [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: D8 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: D8 01 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: D8 01 00 FB 89 00 5C [17:48:49]int [17:48:49]Write to MH i2c: 01 00 00 FC 89 85 [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 FC 89 00 48 00 00 00 3C 00 10 [17:48:49]state=2 [17:48:49]Key pressed [17:48:49]int [17:48:49]Write to MH i2c: 01 00 00 FD 89 86 [17:48:49]*** FLAG_PRN_KEY reset [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 FD 89 00 00 00 00 00 F5 0F 91 [17:48:49]state=2 [17:48:49]Stop feed [17:48:49]int [17:48:49]Write to MH i2c: 01 00 00 FE 89 87 [17:48:49]*** FLAG_PRN_KEY set [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 FE 89 00 08 00 00 00 FF 0F A4 [17:48:49]state=0 [17:48:49]Key pressed [17:48:49]Feed [17:48:49]Write to MH i2c: D8 00 00 FF 89 5F [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: D8 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: D8 01 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: D8 01 00 FF 89 00 60 [17:48:49]int [17:48:49]Write to MH i2c: 01 00 00 00 8A 8A [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 00 8A 00 48 00 00 00 3C 00 15 [17:48:49]state=2 [17:48:49]Key pressed [17:48:50]int [17:48:50]Write to MH i2c: 01 00 00 01 8A 8B [17:48:50]*** FLAG_PRN_KEY reset [17:48:50]Write i2c OK [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: 01 [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: 01 07 00 [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: 01 07 00 01 8A 00 00 00 00 00 F5 0F 96 [17:48:50]state=2 [17:48:50]Stop feed [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:14]accept exits with 9 [17:50:14]New connection [17:50:14]New thread 3066805604 created [17:50:14]Thread 3066662244 joined [17:50:14]Waiting for new connection... [17:50:14] Sock 9.Parse request [17:50:14]Sock 9.Check first char [17:50:14]Sock 9.First char is OK [17:50:14]request: POST /json_proto HTTP/1.0 [17:50:14]Method: POST [17:50:14]URL: /json_proto [17:50:14]Method is POST - this is cgi request [17:50:14]url: /json_proto [17:50:14]query_string will be loaded in cgi processing [17:50:14]execute_cgi json_proto POST (null) [17:50:14]execute_cgi path=json_proto method=POST [17:50:14]POST find Content-Length [17:50:14]Host: 172.17.39.131:8080 [17:50:14]Content-Length: 754 [17:50:14]Content-Type: application/json [17:50:14] [17:50:14]POST finish read [17:50:14]Found Content-Length = 754 [17:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 38.550, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30162178", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:14]execute_script... [17:50: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)190687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 38.550, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30162178", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:14]POST & json_proto [17:50:14]process_json_proto [17:50:14]json parsed OK: [17:50:14]protocol is kg_v1.0 [17:50:14]action value=close_receipt [17:50:14]process_action close_receipt [17:50:14]cmd_close_receipt [17:50:14]MH_GetDate [17:50:14]Write to MH i2c: F0 00 00 02 8A 7B [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: F0 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: F0 09 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: F0 09 00 02 8A 00 E2 88 1A 67 86 57 24 65 D5 [17:50:14]GetLastDocTimeStamp 1729792116 [17:50:14]current date 1729792226 [17:50:14]FM_GetShiftState [17:50:14]SAM_PROTO_GetShiftState [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 13 01 00 [17:50:14]Write to MH i2c: E2 08 00 03 8A 80 13 01 00 00 00 00 00 0A [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0E 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0E 00 03 8A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 34 [17:50:14]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:50:14]wFMCommunicate OK [17:50:14]SAM_PROTO_GetShiftState done [17:50:14]FM_GetShiftState done [17:50:14]opened in 1729729801 [17:50:14]opened+sec_in_day 1729816201 [17:50:14]quantity*price = 0 [17:50:14]sum+1 = 1 [17:50:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 164 24.10.2024 17:50 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: ТК ГПНА Online 30162178 ФМ: 0000000000871795 ФД: 74720 ФПД: 19916126804251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175026&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74720&fm=19916126804251&tin=02508201610067®Number=0000000000091691&sum=0 [17:50:15]StoreToDocumentArchive [17:50:15]shift 510 fd 74720 [17:50:15]save to /storage/0510/doc_00074720 [17:50:15]save last doc name /storage/0510/doc_00074720 to /storage/kkm_last_doc_name [17:50:15]save OK [17:50:15]Clear old archive folders... [17:50:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:15]tlvbuf is 00A9DF80 [17:50:15]SAM_PROTO_ClearQueue [17:50:15]wFMCommunicate request_size=4 [17:50:15]MH_SAM_APDU [17:50:15]CAPDU: 80 09 00 00 [17:50:15]Write to MH i2c: E2 08 00 10 8A 80 09 00 00 00 00 00 00 0C [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 10 8A 00 90 00 0E [17:50:15]RAPDU: 90 00 [17:50:15]wFMCommunicate OK [17:50:15]SAM_PROTO_ClearQueue done [17:50:15]KKMCreateOFDPacket [17:50:15]OFDProtocolAddRootSTLVToBuf [17:50:15]FM_MakeSignedData [17:50:15]FM_MakeSignedData [17:50:15]SAM_PROTO_SignData [17:50:15]wFMCommunicate request_size=4 [17:50:15]MH_SAM_APDU [17:50:15]CAPDU: 80 0D 01 02 [17:50:15]Write to MH i2c: E2 08 00 11 8A 80 0D 01 02 00 00 00 00 14 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 11 8A 00 90 00 0F [17:50:15]RAPDU: 90 00 [17:50:15]wFMCommunicate OK [17:50:15]wFMCommunicate request_size=255 [17:50:15]MH_SAM_APDU [17:50: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 35 FF 03 08 00 03 96 96 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E2 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E0 23 01 00 35 04 06 00 12 [17:50:15]Write to MH i2c: E2 02 01 12 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 96 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E2 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E0 23 01 00 35 04 06 00 12 00 00 F4 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 12 8A 00 90 00 10 [17:50:15]RAPDU: 90 00 [17:50:15]wFMCommunicate OK [17:50:15]wFMCommunicate request_size=10 [17:50:15]MH_SAM_APDU [17:50:15]CAPDU: 80 0D 02 02 05 1D 15 A9 D9 1B [17:50:15]Write to MH i2c: E2 0D 00 13 8A 80 0D 02 02 05 00 1D 15 A9 D9 1B 00 00 F0 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 13 8A 00 90 00 11 [17:50:16]RAPDU: 90 00 [17:50:16]wFMCommunicate OK [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 0D 03 02 [17:50:16]Write to MH i2c: E2 08 00 14 8A 80 0D 03 02 00 00 00 00 19 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0B 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0B 00 14 8A 00 58 1E 47 4E 1F BF 75 C3 90 00 3B [17:50:16]RAPDU: 58 1E 47 4E 1F BF 75 C3 90 00 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_SignData done [17:50:16]FM_MakeSignedData done [17:50:16]CreateOFDProtocolMessage [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 11 00 00 [17:50:16]Write to MH i2c: E2 08 00 15 8A 80 11 00 00 00 00 00 00 19 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 15 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 71 [17:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:50:16]wFMCommunicate OK [17:50:16]CreateOFDProtocolMessage done [17:50:16]OFDSenderStorePacket 74720 [17:50:16]StoreOFDPacket docnum=74720 [17:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B2 09 07 01 BC 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 35 FF 03 08 00 03 96 96 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E2 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E0 23 01 00 35 04 06 00 12 1D 15 A9 D9 1B 58 1E 47 4E 1F BF 75 C3 [17:50:16]CheckFolder [17:50:16]dirname=/storage/ofd_packets [17:50:16]CheckFolder done [17:50:16]ProducePacketName [17:50:16]name=ofd_packets/00074720 [17:50:16]NVStorageSaveData ofd_packets/00074720 [17:50:16]File name is /storage/ofd_packets/00074720 [17:50:16]Write 301 bytes [17:50:16]NVStorageSaveData done [17:50:16]OFDSenderStorePacket done [17:50:16]KKMCreateOFDPacket done [17:50:16]NVStorageSaveData kkm_last_timestamp [17:50:16]File name is /storage/kkm_last_timestamp [17:50:16]Write 4 bytes [17:50:16]NVStorageSaveData done [17:50:16]ExternCall_PrintAddStr [17:50:16]wPrintStart [17:50:16]Write to MH i2c: 01 00 00 16 8A A0 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 16 8A 00 00 00 00 00 FF 0F B5 [17:50:16]RasterBufferAndPrint [17:50:16]line Счет N : (1)190687 [17:50:16]line ИНН: 02508201610067 [17:50:16]line Контрольно-Кассовый Чек [17:50:16]line ПРОДАЖА [17:50:16]line ТРК (МРК, ГНК) : 21 [17:50:16]line Товар: 2710124130 [17:50:16]line Аи-92-К-5 [17:50:16]line 38.550 * 0.00 [17:50:16]line = 0.00 [17:50:16]line НДС 12% НСП 1% [17:50:16]line > о реализуемом товаре [17:50:16]line ИТОГО: 0.00 [17:50:16]line НСП 1% : 0.00 [17:50:16]line НДС 12% : 0.00 [17:50:16]line Наличными: 0.00 [17:50:16]line Безнал.: 0.00 [17:50:16]line Место: АЗС № 142 "Партнер Нефть" [17:50:16]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:50:16]line СНО: Общий режим [17:50:16]line Чек 164 24.10.2024 17:50 [17:50:16]line Смена: 510 ФФД: 1.0 [17:50:16]line ЗНМ: 0300000089 [17:50:16]line РНМ: 0000000000091691 [17:50:16]line Версия ККМ: 001 [17:50:16]line Талоны: ТК ГПНА Online [17:50:16]line 30162178 [17:50:16]line ФМ: 0000000000871795 [17:50:16]line ФД: 74720 [17:50:16]line ФПД: 19916126804251 [17:50:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175026&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74720&fm=19916126804251&tin=02508201610067®Number=0000000000091691&sum=0 [17:50:16]written 0, free lines is 4095 [17:50:16]OFD Sender: Processing packet 74720 [packets to send 13, broken 12] [17:50:16]ProducePacketName [17:50:16]name=ofd_packets/00074720 [17:50:16]OFD Sender: To server: pG, [17:50:16]CommunicateWithHost lk.salyk.kg:30040 [17:50:16]ConnectInit lk.salyk.kg [17:50:16]Connected sock=10 [17:50:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B2 09 07 01 BC 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 35 FF 03 08 00 03 96 96 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E2 88 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E0 23 01 00 35 04 06 00 12 1D 15 A9 D9 1B 58 1E 47 4E 1F BF 75 C3 [17:50:16]Write to MH i2c: 01 00 00 40 8A CA [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 40 8A 00 00 00 00 00 CB 0C A8 [17:50:16]RasterBufferAndPrint [17:50:16]line [17:50:16]line [17:50:16]line [17:50:16]line [17:50:16]line [17:50:16]written 0, free lines is 3284 [17:50:16]MH_Cut [17:50:16]Write to MH i2c: D1 01 00 47 8A 01 A3 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: D1 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: D1 01 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: D1 01 00 47 8A 00 A2 [17:50:16]Write to MH i2c: 01 00 00 48 8A D2 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D8 C0 47 00 2A 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 31 37 39 35 10 04 04 00 E0 23 01 00 F4 03 04 00 64 30 1A 67 B6 04 01 00 00 69 38 90 B0 2C C8 C9 2D [17:50:16]CommunicateWithHost err = 0 [17:50:16]CheckOFDResponse [17:50:16]1017 (14) - 77093643461234 [17:50:16]1041 (16) - 0000000000871795 [17:50:16]1040 (4) - 74720 [17:50:16]1012 (4) - 24.10.2024 11:32 [17:50:16]1206 (1) - 0 [17:50:16]OFD Sender: Remove packet 74720 [17:50:16]ProducePacketName [17:50:16]name=ofd_packets/00074720 [17:50:16]NVStorageDeleteData [17:50:17]OFD Sender: No OFD packet to send [17:50:17]*** Cut start [17:50:17]*** Partial cut [17:50:17]*** CUTSNS_PIN = 1 [17:50:17]*** CUTSNS_PIN = 0 [17:50:17]*** Brake cut motor [17:50:18]Read from MH i2c: 01 [17:50:18]MH_I2C_Read... [17:50:18]*** Stop cut motor [17:50:18]*** Cut end [17:50:18]Read from MH i2c: 01 07 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: 01 07 00 48 8A 00 00 00 00 00 FF 0F E7 [17:50:18]process_action close_receipt done [17:50:18]requested_data is exist [17:50:18]produce_requested_data [17:50:18]requested_item fm.sn is exist - process it [17:50:18]wFMCommunicate request_size=4 [17:50:18]MH_SAM_APDU [17:50:18]CAPDU: 80 11 00 00 [17:50:18]Write to MH i2c: E2 08 00 49 8A 80 11 00 00 00 00 00 00 4D [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:18]Read from MH i2c: E2 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 17 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 17 00 49 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A5 [17:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:50:18]wFMCommunicate OK [17:50:18]requested_item fd.num is exist - process it [17:50:18]SAM_PROTO_GetFieldsCounters [17:50:18]wFMCommunicate request_size=4 [17:50:18]MH_SAM_APDU [17:50:18]CAPDU: 80 13 00 00 [17:50:18]Write to MH i2c: E2 08 00 4A 8A 80 13 00 00 00 00 00 00 50 [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:18]Read from MH i2c: E2 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 62 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 62 00 4A 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E0 23 01 00 0E 04 04 00 FE 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 66 [17:50:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E0 23 01 00 0E 04 04 00 FE 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 [17:50:18]wFMCommunicate OK [17:50:18]SAM_PROTO_GetFieldsCounters done [17:50:18]requested_item shift.num is exist - process it [17:50:18]requested_item shift.opened is exist - process it [17:50:18]req_shift_opened [17:50:18]FM_GetShiftState [17:50:18]SAM_PROTO_GetShiftState [17:50:18]wFMCommunicate request_size=4 [17:50:18]MH_SAM_APDU [17:50:18]CAPDU: 80 13 01 00 [17:50:18]Write to MH i2c: E2 08 00 4B 8A 80 13 01 00 00 00 00 00 52 [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 [17:50:18]MH_I2C_Read... [17:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:18]Read from MH i2c: E2 0E 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 0E 00 4B 8A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 7C [17:50:18]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:50:18]wFMCommunicate OK [17:50:18]SAM_PROTO_GetShiftState done [17:50:18]FM_GetShiftState done [17:50:18]req_shift_opened done [17:50:18]requested_item shift.open_date is exist - process it [17:50:18]req_shift_open_date [17:50:18]req_shift_open_date done [17:50:18]produce_requested_data done [17:50:18]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74720,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:50:18]process_action_free close_receipt [17:50:18]json_value_free [17:50:18]json_value_free done [17:50:18]process_json_proto returns [17:50:18]Send response to host [17:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74720,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:50:18]free response buf [17:50:18]execute_script done [17:50:18]execute_script returns [17:50:18]free content buf [17:50:18]Sock 9.Close socket [17:50:18]Sock 9.Thread stoped [17:50:22]OFD Sender: No OFD packet to send [17:50:22]int [17:50:22]Write to MH i2c: 01 00 00 4C 8A D6 [17:50:22]*** FLAG_PRN_KEY set [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 4C 8A 00 08 00 00 00 FF 0F F3 [17:50:22]state=0 [17:50:22]Key pressed [17:50:22]Feed [17:50:22]Write to MH i2c: D8 00 00 4D 8A AE [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: D8 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: D8 01 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: D8 01 00 4D 8A 00 AF [17:50:22]int [17:50:22]Write to MH i2c: 01 00 00 4E 8A D8 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 4E 8A 00 48 00 00 00 3C 00 63 [17:50:22]state=2 [17:50:22]Key pressed [17:50:22]int [17:50:22]Write to MH i2c: 01 00 00 4F 8A D9 [17:50:22]*** FLAG_PRN_KEY reset [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 4F 8A 00 00 00 00 00 FA 0F E9 [17:50:22]state=2 [17:50:22]Stop feed [17:50:23]int [17:50:23]Write to MH i2c: 01 00 00 50 8A DA [17:50:23]*** FLAG_PRN_KEY set [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 50 8A 00 08 00 00 00 FF 0F F7 [17:50:23]state=0 [17:50:23]Key pressed [17:50:23]Feed [17:50:23]Write to MH i2c: D8 00 00 51 8A B2 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D8 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D8 01 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D8 01 00 51 8A 00 B3 [17:50:23]int [17:50:23]Write to MH i2c: 01 00 00 52 8A DC [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 52 8A 00 48 00 00 00 3C 00 67 [17:50:23]state=2 [17:50:23]Key pressed [17:50:23]int [17:50:23]Write to MH i2c: 01 00 00 53 8A DD [17:50:23]*** FLAG_PRN_KEY reset [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 53 8A 00 00 00 00 00 F6 0F E9 [17:50:23]state=2 [17:50:23]Stop feed [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:44]recv_with_timeout no data received [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:22]accept exits with 8 [17:51:22]New connection [17:51:22]New thread 3066662244 created [17:51:22]Thread 3066805604 joined [17:51:22]Waiting for new connection... [17:51:22] Sock 8.Parse request [17:51:22]Sock 8.Check first char [17:51:22]Sock 8.First char is OK [17:51:22]request: POST /json_proto HTTP/1.0 [17:51:22]Method: POST [17:51:22]URL: /json_proto [17:51:22]Method is POST - this is cgi request [17:51:22]url: /json_proto [17:51:22]query_string will be loaded in cgi processing [17:51:22]execute_cgi json_proto POST (null) [17:51:22]execute_cgi path=json_proto method=POST [17:51:22]POST find Content-Length [17:51:22]Host: 172.17.39.131:8080 [17:51:22]Content-Length: 677 [17:51:22]Content-Type: application/json [17:51:22] [17:51:22]POST finish read [17:51:22]Found Content-Length = 677 [17:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:22]execute_script... [17:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:22]POST & json_proto [17:51:22]process_json_proto [17:51:22]json parsed OK: [17:51:22]protocol is kg_v1.0 [17:51:22]action value=close_receipt [17:51:22]process_action close_receipt [17:51:22]cmd_close_receipt [17:51:22]MH_GetDate [17:51:22]Write to MH i2c: F0 00 00 54 8A CD [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: F0 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: F0 09 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: F0 09 00 54 8A 00 26 89 1A 67 86 57 24 65 6C [17:51:22]GetLastDocTimeStamp 1729792226 [17:51:22]current date 1729792294 [17:51:22]FM_GetShiftState [17:51:22]SAM_PROTO_GetShiftState [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 13 01 00 [17:51:22]Write to MH i2c: E2 08 00 55 8A 80 13 01 00 00 00 00 00 5C [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 55 8A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 86 [17:51:22]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:51:22]wFMCommunicate OK [17:51:22]SAM_PROTO_GetShiftState done [17:51:22]FM_GetShiftState done [17:51:22]opened in 1729729801 [17:51:22]opened+sec_in_day 1729816201 [17:51:22]quantity*price = 10035 [17:51:22]sum+1 = 10036 [17:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 165 24.10.2024 17:51 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74721 ФПД: 165533216266799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175135&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74721&fm=165533216266799&tin=02508201610067®Number=0000000000091691&sum=10000 [17:51:23]StoreToDocumentArchive [17:51:23]shift 510 fd 74721 [17:51:23]save to /storage/0510/doc_00074721 [17:51:23]save last doc name /storage/0510/doc_00074721 to /storage/kkm_last_doc_name [17:51:23]save OK [17:51:23]Clear old archive folders... [17:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:23]tlvbuf is 0087C480 [17:51:23]SAM_PROTO_ClearQueue [17:51:23]wFMCommunicate request_size=4 [17:51:23]MH_SAM_APDU [17:51:23]CAPDU: 80 09 00 00 [17:51:23]Write to MH i2c: E2 08 00 62 8A 80 09 00 00 00 00 00 00 5E [17:51:23]Write i2c OK [17:51:23]MH_I2C_Read... [17:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:23]Read from MH i2c: E2 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: E2 03 00 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: E2 03 00 62 8A 00 90 00 60 [17:51:23]RAPDU: 90 00 [17:51:23]wFMCommunicate OK [17:51:23]SAM_PROTO_ClearQueue done [17:51:23]KKMCreateOFDPacket [17:51:23]OFDProtocolAddRootSTLVToBuf [17:51:23]FM_MakeSignedData [17:51:23]FM_MakeSignedData [17:51:23]SAM_PROTO_SignData [17:51:23]wFMCommunicate request_size=4 [17:51:23]MH_SAM_APDU [17:51:23]CAPDU: 80 0D 01 02 [17:51:23]Write to MH i2c: E2 08 00 63 8A 80 0D 01 02 00 00 00 00 66 [17:51:23]Write i2c OK [17:51:23]MH_I2C_Read... [17:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:23]Read from MH i2c: E2 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: E2 03 00 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: E2 03 00 63 8A 00 90 00 61 [17:51:23]RAPDU: 90 00 [17:51:23]wFMCommunicate OK [17:51:23]wFMCommunicate request_size=255 [17:51:23]MH_SAM_APDU [17:51: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 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 27 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E1 23 01 00 35 04 06 00 96 [17:51:23]Write to MH i2c: E2 02 01 64 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 27 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E1 23 01 00 35 04 06 00 96 00 00 52 [17:51:23]Write i2c OK [17:51:23]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 64 8A 00 90 00 62 [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=10 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 02 02 05 8D 34 8D DA 2F [17:51:24]Write to MH i2c: E2 0D 00 65 8A 80 0D 02 02 05 00 8D 34 8D DA 2F 00 00 CA [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 65 8A 00 90 00 63 [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 03 02 [17:51:24]Write to MH i2c: E2 08 00 66 8A 80 0D 03 02 00 00 00 00 6B [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 0B 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 0B 00 66 8A 00 B0 B0 1D 32 44 6D 04 07 90 00 D7 [17:51:24]RAPDU: B0 B0 1D 32 44 6D 04 07 90 00 [17:51:24]wFMCommunicate OK [17:51:24]SAM_PROTO_SignData done [17:51:24]FM_MakeSignedData done [17:51:24]CreateOFDProtocolMessage [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 11 00 00 [17:51:24]Write to MH i2c: E2 08 00 67 8A 80 11 00 00 00 00 00 00 6B [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 17 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 17 00 67 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C3 [17:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:51:24]wFMCommunicate OK [17:51:24]CreateOFDProtocolMessage done [17:51:24]OFDSenderStorePacket 74721 [17:51:24]StoreOFDPacket docnum=74721 [17:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 10 4A 07 01 FB 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 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 27 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E1 23 01 00 35 04 06 00 96 8D 34 8D DA 2F B0 B0 1D 32 44 6D 04 07 [17:51:24]CheckFolder [17:51:24]dirname=/storage/ofd_packets [17:51:24]CheckFolder done [17:51:24]ProducePacketName [17:51:24]name=ofd_packets/00074721 [17:51:24]NVStorageSaveData ofd_packets/00074721 [17:51:24]File name is /storage/ofd_packets/00074721 [17:51:24]Write 301 bytes [17:51:24]NVStorageSaveData done [17:51:24]OFDSenderStorePacket done [17:51:24]KKMCreateOFDPacket done [17:51:24]NVStorageSaveData kkm_last_timestamp [17:51:24]File name is /storage/kkm_last_timestamp [17:51:24]Write 4 bytes [17:51:24]NVStorageSaveData done [17:51:24]ExternCall_PrintAddStr [17:51:24]wPrintStart [17:51:24]Write to MH i2c: 01 00 00 68 8A F2 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 68 8A 00 00 00 00 00 FF 0F 07 [17:51:24]RasterBufferAndPrint [17:51:24]line Счет N : (1)190688 [17:51:24]line ИНН: 02508201610067 [17:51:24]line Контрольно-Кассовый Чек [17:51:24]line ПРОДАЖА [17:51:24]line ТРК (МРК, ГНК) : 21 [17:51:24]line Товар: 2710124130 [17:51:24]line Аи-92-К-5 [17:51:24]line 1.500 * 66.90 [17:51:24]line = 100.35 [17:51:24]line НДС 12% НСП 1% [17:51:24]line > о реализуемом товаре [17:51:24]line ОКРУГЛЕНИЕ: -0.35 [17:51:24]line ИТОГО: 100.00 [17:51:24]line Внесено: 100.00 [17:51:24]line СДАЧА: 0.00 [17:51:24]line НСП 1% : 0.89 [17:51:24]line НДС 12% : 10.66 [17:51:24]line Наличными: 100.00 [17:51:24]line Безнал.: 0.00 [17:51:24]line Место: АЗС № 142 "Партнер Нефть" [17:51:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:51:24]line СНО: Общий режим [17:51:24]line Чек 165 24.10.2024 17:51 [17:51:24]line Смена: 510 ФФД: 1.0 [17:51:24]line ЗНМ: 0300000089 [17:51:24]line РНМ: 0000000000091691 [17:51:24]line Версия ККМ: 001 [17:51:24]line ФМ: 0000000000871795 [17:51:24]line ФД: 74721 [17:51:24]line ФПД: 165533216266799 [17:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175135&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74721&fm=165533216266799&tin=02508201610067®Number=0000000000091691&sum=10000 [17:51:24]OFD Sender: Processing packet 74721 [packets to send 13, broken 12] [17:51:24]ProducePacketName [17:51:24]name=ofd_packets/00074721 [17:51:24]OFD Sender: To server: pG, [17:51:24]CommunicateWithHost lk.salyk.kg:30040 [17:51:24]ConnectInit lk.salyk.kg [17:51:24]written 0, free lines is 4095 [17:51:25]Write to MH i2c: 01 00 00 93 8A 1D [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 07 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 07 00 93 8A 00 00 00 00 00 AA 0C DA [17:51:25]RasterBufferAndPrint [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]written 0, free lines is 3248 [17:51:25]MH_Cut [17:51:25]Write to MH i2c: D1 01 00 9A 8A 01 F6 [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 01 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 01 00 9A 8A 00 F5 [17:51:25]Write to MH i2c: 01 00 00 9B 8A 25 [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:26]*** Cut start [17:51:26]*** Partial cut [17:51:26]*** CUTSNS_PIN = 1 [17:51:26]*** CUTSNS_PIN = 0 [17:51:26]*** Brake cut motor [17:51:26]Read from MH i2c: 01 [17:51:26]MH_I2C_Read... [17:51:26]*** Stop cut motor [17:51:26]*** Cut end [17:51:26]Read from MH i2c: 01 07 00 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: 01 07 00 9B 8A 00 00 00 00 00 FF 0F 3A [17:51:26]process_action close_receipt done [17:51:26]requested_data is exist [17:51:26]produce_requested_data [17:51:26]requested_item fm.sn is exist - process it [17:51:26]wFMCommunicate request_size=4 [17:51:26]MH_SAM_APDU [17:51:26]CAPDU: 80 11 00 00 [17:51:26]Write to MH i2c: E2 08 00 9C 8A 80 11 00 00 00 00 00 00 A0 [17:51:26]Write i2c OK [17:51:26]MH_I2C_Read... [17:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:26]Read from MH i2c: E2 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 17 00 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 17 00 9C 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F8 [17:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:51:26]wFMCommunicate OK [17:51:26]requested_item fd.num is exist - process it [17:51:26]SAM_PROTO_GetFieldsCounters [17:51:26]wFMCommunicate request_size=4 [17:51:26]MH_SAM_APDU [17:51:26]CAPDU: 80 13 00 00 [17:51:26]Write to MH i2c: E2 08 00 9D 8A 80 13 00 00 00 00 00 00 A3 [17:51:26]Write i2c OK [17:51:26]MH_I2C_Read... [17:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:26]Read from MH i2c: E2 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 62 00 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 62 00 9D 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E1 23 01 00 0E 04 04 00 FE 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 BD [17:51:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E1 23 01 00 0E 04 04 00 FE 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 [17:51:26]wFMCommunicate OK [17:51:26]SAM_PROTO_GetFieldsCounters done [17:51:26]requested_item shift.num is exist - process it [17:51:26]requested_item shift.opened is exist - process it [17:51:26]req_shift_opened [17:51:26]FM_GetShiftState [17:51:26]SAM_PROTO_GetShiftState [17:51:26]wFMCommunicate request_size=4 [17:51:26]MH_SAM_APDU [17:51:26]CAPDU: 80 13 01 00 [17:51:26]Write to MH i2c: E2 08 00 9E 8A 80 13 01 00 00 00 00 00 A5 [17:51:26]Write i2c OK [17:51:26]MH_I2C_Read... [17:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:26]Read from MH i2c: E2 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 0E 00 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 0E 00 9E 8A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CF [17:51:26]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:51:26]wFMCommunicate OK [17:51:26]SAM_PROTO_GetShiftState done [17:51:26]FM_GetShiftState done [17:51:26]req_shift_opened done [17:51:26]requested_item shift.open_date is exist - process it [17:51:26]req_shift_open_date [17:51:26]req_shift_open_date done [17:51:26]produce_requested_data done [17:51:26]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74721,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:51:26]process_action_free close_receipt [17:51:26]json_value_free [17:51:26]json_value_free done [17:51:26]process_json_proto returns [17:51:26]Send response to host [17:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74721,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:51:26]free response buf [17:51:26]execute_script done [17:51:26]execute_script returns [17:51:26]free content buf [17:51:26]Sock 8.Close socket [17:51:26]Sock 8.Thread stoped [17:51:29]ConnectInit Can't take IP for lk.salyk.kg [17:51:29]CommunicateWithHost connect error [17:51:29]CommunicateWithHost err = -1 [17:51:29]OFD Sender: Server communicate error [17:51:34]OFD Sender: Processing packet 74721 [packets to send 13, broken 12] [17:51:34]ProducePacketName [17:51:34]name=ofd_packets/00074721 [17:51:34]OFD Sender: To server: pG, [17:51:34]CommunicateWithHost lk.salyk.kg:30040 [17:51:34]ConnectInit lk.salyk.kg [17:51:39]ConnectInit Can't take IP for lk.salyk.kg [17:51:39]CommunicateWithHost connect error [17:51:39]CommunicateWithHost err = -1 [17:51:39]OFD Sender: Server communicate error [17:51:44]OFD Sender: Processing packet 74721 [packets to send 13, broken 12] [17:51:44]ProducePacketName [17:51:44]name=ofd_packets/00074721 [17:51:44]OFD Sender: To server: pG, [17:51:44]CommunicateWithHost lk.salyk.kg:30040 [17:51:44]ConnectInit lk.salyk.kg [17:51:49]ConnectInit Can't take IP for lk.salyk.kg [17:51:49]CommunicateWithHost connect error [17:51:49]CommunicateWithHost err = -1 [17:51:49]OFD Sender: Server communicate error [17:51:54]OFD Sender: Processing packet 74721 [packets to send 13, broken 12] [17:51:54]ProducePacketName [17:51:54]name=ofd_packets/00074721 [17:51:54]OFD Sender: To server: pG, [17:51:54]CommunicateWithHost lk.salyk.kg:30040 [17:51:54]ConnectInit lk.salyk.kg [17:51:59]ConnectInit Can't take IP for lk.salyk.kg [17:51:59]CommunicateWithHost connect error [17:51:59]CommunicateWithHost err = -1 [17:51:59]OFD Sender: Server communicate error [17:52:04]OFD Sender: Processing packet 74721 [packets to send 13, broken 12] [17:52:04]ProducePacketName [17:52:04]name=ofd_packets/00074721 [17:52:04]OFD Sender: To server: pG, [17:52:04]CommunicateWithHost lk.salyk.kg:30040 [17:52:04]ConnectInit lk.salyk.kg [17:52:06]Connected sock=8 [17:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 10 4A 07 01 FB 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 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 27 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E1 23 01 00 35 04 06 00 96 8D 34 8D DA 2F B0 B0 1D 32 44 6D 04 07 [17:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F9 A5 47 00 62 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E1 23 01 00 F4 03 04 00 D2 30 1A 67 B6 04 01 00 00 D8 E4 1D AA 72 9A 88 1B [17:52:06]CommunicateWithHost err = 0 [17:52:06]CheckOFDResponse [17:52:06]1017 (14) - 77093643461234 [17:52:06]1041 (16) - 0000000000871795 [17:52:06]1040 (4) - 74721 [17:52:06]1012 (4) - 24.10.2024 11:34 [17:52:06]1206 (1) - 0 [17:52:06]OFD Sender: Remove packet 74721 [17:52:06]ProducePacketName [17:52:06]name=ofd_packets/00074721 [17:52:06]NVStorageDeleteData [17:52:07]OFD Sender: No OFD packet to send [17:52:10]accept exits with 10 [17:52:10]New connection [17:52:10]New thread 3066805604 created [17:52:10]Thread 3066662244 joined [17:52:10]Waiting for new connection... [17:52:10] Sock 10.Parse request [17:52:10]Sock 10.Check first char [17:52:10]Sock 10.First char is OK [17:52:10]request: POST /json_proto HTTP/1.0 [17:52:10]Method: POST [17:52:10]URL: /json_proto [17:52:10]Method is POST - this is cgi request [17:52:10]url: /json_proto [17:52:10]query_string will be loaded in cgi processing [17:52:10]execute_cgi json_proto POST (null) [17:52:10]execute_cgi path=json_proto method=POST [17:52:10]POST find Content-Length [17:52:10]Host: 172.17.39.131:8080 [17:52:10]Content-Length: 677 [17:52:10]Content-Type: application/json [17:52:10] [17:52:10]POST finish read [17:52:10]Found Content-Length = 677 [17:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:10]execute_script... [17: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)190689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:10]POST & json_proto [17:52:10]process_json_proto [17:52:10]json parsed OK: [17:52:10]protocol is kg_v1.0 [17:52:10]action value=close_receipt [17:52:10]process_action close_receipt [17:52:10]cmd_close_receipt [17:52:10]MH_GetDate [17:52:10]Write to MH i2c: F0 00 00 9F 8A 18 [17:52:10]Write i2c OK [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: F0 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: F0 09 00 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: F0 09 00 9F 8A 00 57 89 1A 67 86 57 24 65 E8 [17:52:10]GetLastDocTimeStamp 1729792295 [17:52:10]current date 1729792343 [17:52:10]FM_GetShiftState [17:52:10]SAM_PROTO_GetShiftState [17:52:10]wFMCommunicate request_size=4 [17:52:10]MH_SAM_APDU [17:52:10]CAPDU: 80 13 01 00 [17:52:10]Write to MH i2c: E2 08 00 A0 8A 80 13 01 00 00 00 00 00 A7 [17:52:10]Write i2c OK [17:52:10]MH_I2C_Read... [17:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:10]Read from MH i2c: E2 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 0E 00 [17:52:10]MH_I2C_Read... [17:52:10]Read from MH i2c: E2 0E 00 A0 8A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D1 [17:52:10]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:52:10]wFMCommunicate OK [17:52:10]SAM_PROTO_GetShiftState done [17:52:10]FM_GetShiftState done [17:52:10]opened in 1729729801 [17:52:10]opened+sec_in_day 1729816201 [17:52:10]quantity*price = 30038 [17:52:10]sum+1 = 30039 [17:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 166 24.10.2024 17:52 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74722 ФПД: 81078433159069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175223&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74722&fm=81078433159069&tin=02508201610067®Number=0000000000091691&sum=30000 [17:52:11]StoreToDocumentArchive [17:52:11]shift 510 fd 74722 [17:52:11]save to /storage/0510/doc_00074722 [17:52:11]save last doc name /storage/0510/doc_00074722 to /storage/kkm_last_doc_name [17:52:11]save OK [17:52:11]Clear old archive folders... [17:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:11]tlvbuf is 0084A2F0 [17:52:11]SAM_PROTO_ClearQueue [17:52:11]wFMCommunicate request_size=4 [17:52:11]MH_SAM_APDU [17:52:11]CAPDU: 80 09 00 00 [17:52:11]Write to MH i2c: E2 08 00 AD 8A 80 09 00 00 00 00 00 00 A9 [17:52:11]Write i2c OK [17:52:11]MH_I2C_Read... [17:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:11]Read from MH i2c: E2 [17:52:11]MH_I2C_Read... [17:52:11]Read from MH i2c: E2 03 00 [17:52:11]MH_I2C_Read... [17:52:11]Read from MH i2c: E2 03 00 AD 8A 00 90 00 AB [17:52:11]RAPDU: 90 00 [17:52:11]wFMCommunicate OK [17:52:11]SAM_PROTO_ClearQueue done [17:52:11]KKMCreateOFDPacket [17:52:11]OFDProtocolAddRootSTLVToBuf [17:52:11]FM_MakeSignedData [17:52:11]FM_MakeSignedData [17:52:11]SAM_PROTO_SignData [17:52:11]wFMCommunicate request_size=4 [17:52:11]MH_SAM_APDU [17:52:11]CAPDU: 80 0D 01 02 [17:52:11]Write to MH i2c: E2 08 00 AE 8A 80 0D 01 02 00 00 00 00 B1 [17:52:11]Write i2c OK [17:52:11]MH_I2C_Read... [17:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:12]Read from MH i2c: E2 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 03 00 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 03 00 AE 8A 00 90 00 AC [17:52:12]RAPDU: 90 00 [17:52:12]wFMCommunicate OK [17:52:12]wFMCommunicate request_size=255 [17:52:12]MH_SAM_APDU [17:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 57 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E2 23 01 00 35 04 06 00 49 [17:52:12]Write to MH i2c: E2 02 01 AF 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 57 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E2 23 01 00 35 04 06 00 49 00 00 8F [17:52:12]Write i2c OK [17:52:12]MH_I2C_Read... [17:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:12]Read from MH i2c: E2 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 03 00 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 03 00 AF 8A 00 90 00 AD [17:52:12]RAPDU: 90 00 [17:52:12]wFMCommunicate OK [17:52:12]wFMCommunicate request_size=10 [17:52:12]MH_SAM_APDU [17:52:12]CAPDU: 80 0D 02 02 05 BD 8B 35 17 9D [17:52:12]Write to MH i2c: E2 0D 00 B0 8A 80 0D 02 02 05 00 BD 8B 35 17 9D 00 00 EF [17:52:12]Write i2c OK [17:52:12]MH_I2C_Read... [17:52:12]OFD Sender: No OFD packet to send [17:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:12]Read from MH i2c: E2 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 03 00 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 03 00 B0 8A 00 90 00 AE [17:52:12]RAPDU: 90 00 [17:52:12]wFMCommunicate OK [17:52:12]wFMCommunicate request_size=4 [17:52:12]MH_SAM_APDU [17:52:12]CAPDU: 80 0D 03 02 [17:52:12]Write to MH i2c: E2 08 00 B1 8A 80 0D 03 02 00 00 00 00 B6 [17:52:12]Write i2c OK [17:52:12]MH_I2C_Read... [17:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:12]Read from MH i2c: E2 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 0B 00 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 0B 00 B1 8A 00 8E 0C FD 65 CE 9D 48 79 90 00 DF [17:52:12]RAPDU: 8E 0C FD 65 CE 9D 48 79 90 00 [17:52:12]wFMCommunicate OK [17:52:12]SAM_PROTO_SignData done [17:52:12]FM_MakeSignedData done [17:52:12]CreateOFDProtocolMessage [17:52:12]wFMCommunicate request_size=4 [17:52:12]MH_SAM_APDU [17:52:12]CAPDU: 80 11 00 00 [17:52:12]Write to MH i2c: E2 08 00 B2 8A 80 11 00 00 00 00 00 00 B6 [17:52:12]Write i2c OK [17:52:12]MH_I2C_Read... [17:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:12]Read from MH i2c: E2 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 17 00 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: E2 17 00 B2 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0E [17:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:52:12]wFMCommunicate OK [17:52:12]CreateOFDProtocolMessage done [17:52:12]OFDSenderStorePacket 74722 [17:52:12]StoreOFDPacket docnum=74722 [17:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A1 E5 07 01 BF 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 57 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E2 23 01 00 35 04 06 00 49 BD 8B 35 17 9D 8E 0C FD 65 CE 9D 48 79 [17:52:12]CheckFolder [17:52:12]dirname=/storage/ofd_packets [17:52:12]CheckFolder done [17:52:12]ProducePacketName [17:52:12]name=ofd_packets/00074722 [17:52:12]NVStorageSaveData ofd_packets/00074722 [17:52:12]File name is /storage/ofd_packets/00074722 [17:52:12]Write 301 bytes [17:52:12]NVStorageSaveData done [17:52:12]OFDSenderStorePacket done [17:52:12]KKMCreateOFDPacket done [17:52:12]NVStorageSaveData kkm_last_timestamp [17:52:12]File name is /storage/kkm_last_timestamp [17:52:12]Write 4 bytes [17:52:12]NVStorageSaveData done [17:52:12]ExternCall_PrintAddStr [17:52:12]wPrintStart [17:52:12]Write to MH i2c: 01 00 00 B3 8A 3D [17:52:12]Write i2c OK [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: 01 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: 01 07 00 [17:52:12]MH_I2C_Read... [17:52:12]Read from MH i2c: 01 07 00 B3 8A 00 00 00 00 00 FF 0F 52 [17:52:12]RasterBufferAndPrint [17:52:12]line Счет N : (1)190689 [17:52:12]line ИНН: 02508201610067 [17:52:12]line Контрольно-Кассовый Чек [17:52:12]line ПРОДАЖА [17:52:12]line ТРК (МРК, ГНК) : 21 [17:52:12]line Товар: 2710124130 [17:52:12]line Аи-92-К-5 [17:52:12]line 4.490 * 66.90 [17:52:12]line = 300.38 [17:52:12]line НДС 12% НСП 1% [17:52:12]line > о реализуемом товаре [17:52:12]line ОКРУГЛЕНИЕ: -0.38 [17:52:12]line ИТОГО: 300.00 [17:52:12]line Внесено: 300.00 [17:52:12]line СДАЧА: 0.00 [17:52:12]line НСП 1% : 2.66 [17:52:12]line НДС 12% : 31.90 [17:52:12]line Наличными: 300.00 [17:52:12]line Безнал.: 0.00 [17:52:12]line Место: АЗС № 142 "Партнер Нефть" [17:52:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:52:12]line СНО: Общий режим [17:52:12]line Чек 166 24.10.2024 17:52 [17:52:12]line Смена: 510 ФФД: 1.0 [17:52:12]line ЗНМ: 0300000089 [17:52:12]line РНМ: 0000000000091691 [17:52:12]line Версия ККМ: 001 [17:52:12]line ФМ: 0000000000871795 [17:52:12]line ФД: 74722 [17:52:12]line ФПД: 81078433159069 [17:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175223&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74722&fm=81078433159069&tin=02508201610067®Number=0000000000091691&sum=30000 [17:52:12]OFD Sender: Processing packet 74722 [packets to send 13, broken 12] [17:52:12]ProducePacketName [17:52:12]name=ofd_packets/00074722 [17:52:12]OFD Sender: To server: pG, [17:52:12]CommunicateWithHost lk.salyk.kg:30040 [17:52:12]ConnectInit lk.salyk.kg [17:52:12]written 0, free lines is 4095 [17:52:13]Write to MH i2c: 01 00 00 DE 8A 68 [17:52:13]Write i2c OK [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: 01 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: 01 07 00 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: 01 07 00 DE 8A 00 00 00 00 00 A5 0C 20 [17:52:13]RasterBufferAndPrint [17:52:13]line [17:52:13]line [17:52:13]line [17:52:13]line [17:52:13]line [17:52:13]written 0, free lines is 3242 [17:52:13]MH_Cut [17:52:13]Write to MH i2c: D1 01 00 E5 8A 01 41 [17:52:13]Write i2c OK [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: D1 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: D1 01 00 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: D1 01 00 E5 8A 00 40 [17:52:13]Write to MH i2c: 01 00 00 E6 8A 70 [17:52:13]Write i2c OK [17:52:13]MH_I2C_Read... [17:52:14]*** Cut start [17:52:14]*** Partial cut [17:52:14]*** CUTSNS_PIN = 1 [17:52:14]*** CUTSNS_PIN = 0 [17:52:14]*** Brake cut motor [17:52:14]Read from MH i2c: 01 [17:52:14]MH_I2C_Read... [17:52:14]*** Stop cut motor [17:52:14]*** Cut end [17:52:14]Read from MH i2c: 01 07 00 [17:52:14]MH_I2C_Read... [17:52:14]Read from MH i2c: 01 07 00 E6 8A 00 00 00 00 00 FF 0F 85 [17:52:14]process_action close_receipt done [17:52:14]requested_data is exist [17:52:14]produce_requested_data [17:52:14]requested_item fm.sn is exist - process it [17:52:14]wFMCommunicate request_size=4 [17:52:14]MH_SAM_APDU [17:52:14]CAPDU: 80 11 00 00 [17:52:14]Write to MH i2c: E2 08 00 E7 8A 80 11 00 00 00 00 00 00 EB [17:52:14]Write i2c OK [17:52:14]MH_I2C_Read... [17:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:14]Read from MH i2c: E2 [17:52:14]MH_I2C_Read... [17:52:14]Read from MH i2c: E2 17 00 [17:52:14]MH_I2C_Read... [17:52:14]Read from MH i2c: E2 17 00 E7 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 43 [17:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:52:14]wFMCommunicate OK [17:52:14]requested_item fd.num is exist - process it [17:52:14]SAM_PROTO_GetFieldsCounters [17:52:14]wFMCommunicate request_size=4 [17:52:14]MH_SAM_APDU [17:52:14]CAPDU: 80 13 00 00 [17:52:14]Write to MH i2c: E2 08 00 E8 8A 80 13 00 00 00 00 00 00 EE [17:52:14]Write i2c OK [17:52:14]MH_I2C_Read... [17:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:14]Read from MH i2c: E2 [17:52:14]MH_I2C_Read... [17:52:14]Read from MH i2c: E2 62 00 [17:52:14]MH_I2C_Read... [17:52:14]Read from MH i2c: E2 62 00 E8 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E2 23 01 00 0E 04 04 00 FE 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 0C [17: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E2 23 01 00 0E 04 04 00 FE 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 [17:52:14]wFMCommunicate OK [17:52:14]SAM_PROTO_GetFieldsCounters done [17:52:14]requested_item shift.num is exist - process it [17:52:14]requested_item shift.opened is exist - process it [17:52:14]req_shift_opened [17:52:14]FM_GetShiftState [17:52:14]SAM_PROTO_GetShiftState [17:52:14]wFMCommunicate request_size=4 [17:52:14]MH_SAM_APDU [17:52:14]CAPDU: 80 13 01 00 [17:52:14]Write to MH i2c: E2 08 00 E9 8A 80 13 01 00 00 00 00 00 F0 [17:52:14]Write i2c OK [17:52:14]MH_I2C_Read... [17:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:15]Read from MH i2c: E2 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 0E 00 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 0E 00 E9 8A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 1A [17:52:15]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:52:15]wFMCommunicate OK [17:52:15]SAM_PROTO_GetShiftState done [17:52:15]FM_GetShiftState done [17:52:15]req_shift_opened done [17:52:15]requested_item shift.open_date is exist - process it [17:52:15]req_shift_open_date [17:52:15]req_shift_open_date done [17:52:15]produce_requested_data done [17:52:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74722,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:52:15]process_action_free close_receipt [17:52:15]json_value_free [17:52:15]json_value_free done [17:52:15]process_json_proto returns [17:52:15]Send response to host [17:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74722,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:52:15]free response buf [17:52:15]execute_script done [17:52:15]execute_script returns [17:52:15]free content buf [17:52:15]Sock 10.Close socket [17:52:15]Sock 10.Thread stoped [17:52:46]recv_with_timeout no data received [17:53:21]recv_with_timeout no data received [17:53:30]accept exits with 8 [17:53:30]New connection [17:53:30]New thread 3066662244 created [17:53:30]Thread 3066805604 joined [17:53:30]Waiting for new connection... [17:53:30] Sock 8.Parse request [17:53:30]Sock 8.Check first char [17:53:30]Sock 8.First char is OK [17:53:30]request: POST /json_proto HTTP/1.0 [17:53:30]Method: POST [17:53:30]URL: /json_proto [17:53:30]Method is POST - this is cgi request [17:53:30]url: /json_proto [17:53:30]query_string will be loaded in cgi processing [17:53:30]execute_cgi json_proto POST (null) [17:53:30]execute_cgi path=json_proto method=POST [17:53:30]POST find Content-Length [17:53:30]Host: 172.17.39.131:8080 [17:53:30]Content-Length: 677 [17:53:30]Content-Type: application/json [17:53:30] [17:53:30]POST finish read [17:53:30]Found Content-Length = 677 [17:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:30]execute_script... [17:53: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)190690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:30]POST & json_proto [17:53:30]process_json_proto [17:53:30]json parsed OK: [17:53:30]protocol is kg_v1.0 [17:53:30]action value=close_receipt [17:53:30]process_action close_receipt [17:53:30]cmd_close_receipt [17:53:30]MH_GetDate [17:53:30]Write to MH i2c: F0 00 00 EA 8A 63 [17:53:30]Write i2c OK [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: F0 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: F0 09 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: F0 09 00 EA 8A 00 A6 89 1A 67 86 57 24 65 82 [17:53:30]GetLastDocTimeStamp 1729792343 [17:53:30]current date 1729792422 [17:53:30]FM_GetShiftState [17:53:30]SAM_PROTO_GetShiftState [17:53:30]wFMCommunicate request_size=4 [17:53:30]MH_SAM_APDU [17:53:30]CAPDU: 80 13 01 00 [17:53:30]Write to MH i2c: E2 08 00 EB 8A 80 13 01 00 00 00 00 00 F2 [17:53:30]Write i2c OK [17:53:30]MH_I2C_Read... [17:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:30]Read from MH i2c: E2 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 0E 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 0E 00 EB 8A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 1C [17:53:30]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:53:30]wFMCommunicate OK [17:53:30]SAM_PROTO_GetShiftState done [17:53:30]FM_GetShiftState done [17:53:30]opened in 1729729801 [17:53:30]opened+sec_in_day 1729816201 [17:53:30]quantity*price = 50041 [17:53:30]sum+1 = 50042 [17:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 167 24.10.2024 17:53 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74723 ФПД: 100718923082343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175342&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74723&fm=100718923082343&tin=02508201610067®Number=0000000000091691&sum=50000 [17:53:31]StoreToDocumentArchive [17:53:31]shift 510 fd 74723 [17:53:31]save to /storage/0510/doc_00074723 [17:53:31]save last doc name /storage/0510/doc_00074723 to /storage/kkm_last_doc_name [17:53:31]save OK [17:53:31]Clear old archive folders... [17:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:31]tlvbuf is 008FDAD0 [17:53:31]SAM_PROTO_ClearQueue [17:53:31]wFMCommunicate request_size=4 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 09 00 00 [17:53:31]Write to MH i2c: E2 08 00 F8 8A 80 09 00 00 00 00 00 00 F4 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 F8 8A 00 90 00 F6 [17:53:31]RAPDU: 90 00 [17:53:31]wFMCommunicate OK [17:53:31]SAM_PROTO_ClearQueue done [17:53:31]KKMCreateOFDPacket [17:53:31]OFDProtocolAddRootSTLVToBuf [17:53:31]FM_MakeSignedData [17:53:31]FM_MakeSignedData [17:53:31]SAM_PROTO_SignData [17:53:31]wFMCommunicate request_size=4 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 0D 01 02 [17:53:31]Write to MH i2c: E2 08 00 F9 8A 80 0D 01 02 00 00 00 00 FC [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 F9 8A 00 90 00 F7 [17:53:31]RAPDU: 90 00 [17:53:31]wFMCommunicate OK [17:53:31]wFMCommunicate request_size=255 [17:53:31]MH_SAM_APDU [17:53: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E3 23 01 00 35 04 06 00 5B [17:53:31]Write to MH i2c: E2 02 01 FA 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E3 23 01 00 35 04 06 00 5B 00 00 49 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 FA 8A 00 90 00 F8 [17:53:31]RAPDU: 90 00 [17:53:31]wFMCommunicate OK [17:53:31]wFMCommunicate request_size=10 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 0D 02 02 05 9A 73 A1 EA 67 [17:53:31]Write to MH i2c: E2 0D 00 FB 8A 80 0D 02 02 05 00 9A 73 A1 EA 67 00 00 08 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 FB 8A 00 90 00 F9 [17:53:31]RAPDU: 90 00 [17:53:31]wFMCommunicate OK [17:53:31]wFMCommunicate request_size=4 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 0D 03 02 [17:53:31]Write to MH i2c: E2 08 00 FC 8A 80 0D 03 02 00 00 00 00 01 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 0B 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 0B 00 FC 8A 00 C8 6D 46 28 99 F6 2D CA 90 00 2B [17:53:32]RAPDU: C8 6D 46 28 99 F6 2D CA 90 00 [17:53:32]wFMCommunicate OK [17:53:32]SAM_PROTO_SignData done [17:53:32]FM_MakeSignedData done [17:53:32]CreateOFDProtocolMessage [17:53:32]wFMCommunicate request_size=4 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 11 00 00 [17:53:32]Write to MH i2c: E2 08 00 FD 8A 80 11 00 00 00 00 00 00 01 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 17 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 17 00 FD 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 59 [17:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:53:32]wFMCommunicate OK [17:53:32]CreateOFDProtocolMessage done [17:53:32]OFDSenderStorePacket 74723 [17:53:32]StoreOFDPacket docnum=74723 [17:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C6 4E 07 01 C1 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E3 23 01 00 35 04 06 00 5B 9A 73 A1 EA 67 C8 6D 46 28 99 F6 2D CA [17:53:32]CheckFolder [17:53:32]dirname=/storage/ofd_packets [17:53:32]CheckFolder done [17:53:32]ProducePacketName [17:53:32]name=ofd_packets/00074723 [17:53:32]NVStorageSaveData ofd_packets/00074723 [17:53:32]File name is /storage/ofd_packets/00074723 [17:53:32]Write 301 bytes [17:53:32]NVStorageSaveData done [17:53:32]OFDSenderStorePacket done [17:53:32]KKMCreateOFDPacket done [17:53:32]NVStorageSaveData kkm_last_timestamp [17:53:32]File name is /storage/kkm_last_timestamp [17:53:32]Write 4 bytes [17:53:32]NVStorageSaveData done [17:53:32]ExternCall_PrintAddStr [17:53:32]wPrintStart [17:53:32]Write to MH i2c: 01 00 00 FE 8A 88 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 FE 8A 00 00 00 00 00 FF 0F 9D [17:53:32]RasterBufferAndPrint [17:53:32]line Счет N : (1)190690 [17:53:32]line ИНН: 02508201610067 [17:53:32]line Контрольно-Кассовый Чек [17:53:32]line ПРОДАЖА [17:53:32]line ТРК (МРК, ГНК) : 21 [17:53:32]line Товар: 2710124130 [17:53:32]line Аи-92-К-5 [17:53:32]line 7.480 * 66.90 [17:53:32]line = 500.41 [17:53:32]line НДС 12% НСП 1% [17:53:32]line > о реализуемом товаре [17:53:32]line ОКРУГЛЕНИЕ: -0.41 [17:53:32]line ИТОГО: 500.00 [17:53:32]line Внесено: 500.00 [17:53:32]line СДАЧА: 0.00 [17:53:32]line НСП 1% : 4.43 [17:53:32]line НДС 12% : 53.14 [17:53:32]line Наличными: 500.00 [17:53:32]line Безнал.: 0.00 [17:53:32]line Место: АЗС № 142 "Партнер Нефть" [17:53:32]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:53:32]line СНО: Общий режим [17:53:32]line Чек 167 24.10.2024 17:53 [17:53:32]line Смена: 510 ФФД: 1.0 [17:53:32]line ЗНМ: 0300000089 [17:53:32]line РНМ: 0000000000091691 [17:53:32]line Версия ККМ: 001 [17:53:32]line ФМ: 0000000000871795 [17:53:32]line ФД: 74723 [17:53:32]line ФПД: 100718923082343 [17:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175342&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74723&fm=100718923082343&tin=02508201610067®Number=0000000000091691&sum=50000 [17:53:32]written 0, free lines is 4095 [17:53:32]Write to MH i2c: 01 00 00 29 8B B4 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 29 8B 00 00 00 00 00 AA 0C 71 [17:53:32]RasterBufferAndPrint [17:53:32]line [17:53:32]line [17:53:32]line [17:53:32]line [17:53:32]line [17:53:32]written 0, free lines is 3248 [17:53:32]MH_Cut [17:53:32]Write to MH i2c: D1 01 00 30 8B 01 8D [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: D1 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: D1 01 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: D1 01 00 30 8B 00 8C [17:53:32]Write to MH i2c: 01 00 00 31 8B BC [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:33]*** Cut start [17:53:33]*** Partial cut [17:53:33]*** CUTSNS_PIN = 1 [17:53:33]*** CUTSNS_PIN = 0 [17:53:33]*** Brake cut motor [17:53:34]Read from MH i2c: 01 [17:53:34]MH_I2C_Read... [17:53:34]*** Stop cut motor [17:53:34]*** Cut end [17:53:34]Read from MH i2c: 01 07 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 07 00 31 8B 00 00 00 00 00 FF 0F D1 [17:53:34]process_action close_receipt done [17:53:34]requested_data is exist [17:53:34]produce_requested_data [17:53:34]requested_item fm.sn is exist - process it [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 11 00 00 [17:53:34]Write to MH i2c: E2 08 00 32 8B 80 11 00 00 00 00 00 00 37 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 17 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 17 00 32 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8F [17:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:53:34]wFMCommunicate OK [17:53:34]requested_item fd.num is exist - process it [17:53:34]SAM_PROTO_GetFieldsCounters [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 13 00 00 [17:53:34]Write to MH i2c: E2 08 00 33 8B 80 13 00 00 00 00 00 00 3A [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 62 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 62 00 33 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E3 23 01 00 0E 04 04 00 FE 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 5C [17:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E3 23 01 00 0E 04 04 00 FE 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 [17:53:34]wFMCommunicate OK [17:53:34]SAM_PROTO_GetFieldsCounters done [17:53:34]requested_item shift.num is exist - process it [17:53:34]requested_item shift.opened is exist - process it [17:53:34]req_shift_opened [17:53:34]FM_GetShiftState [17:53:34]SAM_PROTO_GetShiftState [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 13 01 00 [17:53:34]Write to MH i2c: E2 08 00 34 8B 80 13 01 00 00 00 00 00 3C [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 34 8B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 66 [17:53:34]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:53:34]wFMCommunicate OK [17:53:34]SAM_PROTO_GetShiftState done [17:53:34]FM_GetShiftState done [17:53:34]req_shift_opened done [17:53:34]requested_item shift.open_date is exist - process it [17:53:34]req_shift_open_date [17:53:34]req_shift_open_date done [17:53:34]produce_requested_data done [17:53:34]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74723,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:53:34]process_action_free close_receipt [17:53:34]json_value_free [17:53:34]json_value_free done [17:53:34]process_json_proto returns [17:53:34]Send response to host [17:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74723,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:53:34]free response buf [17:53:34]execute_script done [17:53:34]execute_script returns [17:53:34]free content buf [17:53:34]Sock 8.Close socket [17:53:34]Sock 8.Thread stoped [17:54:27]ConnectInit Can't connect to host [17:54:27]CommunicateWithHost connect error [17:54:27]CommunicateWithHost err = -1 [17:54:27]OFD Sender: Server communicate error [17:54:27]OFD Sender: Processing packet 74722 [packets to send 14, broken 12] [17:54:27]ProducePacketName [17:54:27]name=ofd_packets/00074722 [17:54:27]OFD Sender: To server: pG, [17:54:27]CommunicateWithHost lk.salyk.kg:30040 [17:54:27]ConnectInit lk.salyk.kg [17:54:28]Connected sock=8 [17:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A1 E5 07 01 BF 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 57 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E2 23 01 00 35 04 06 00 49 BD 8B 35 17 9D 8E 0C FD 65 CE 9D 48 79 [17:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 14 78 47 00 FB 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E2 23 01 00 F4 03 04 00 5F 31 1A 67 B6 04 01 00 00 51 B9 21 FD 67 BD 41 0D [17:54:28]CommunicateWithHost err = 0 [17:54:28]CheckOFDResponse [17:54:28]1017 (14) - 77093643461234 [17:54:28]1041 (16) - 0000000000871795 [17:54:28]1040 (4) - 74722 [17:54:28]1012 (4) - 24.10.2024 11:37 [17:54:28]1206 (1) - 0 [17:54:28]OFD Sender: Remove packet 74722 [17:54:28]ProducePacketName [17:54:28]name=ofd_packets/00074722 [17:54:28]NVStorageDeleteData [17:54:28]OFD Sender: Processing packet 74723 [packets to send 13, broken 12] [17:54:28]ProducePacketName [17:54:28]name=ofd_packets/00074723 [17:54:28]OFD Sender: To server: pG, [17:54:28]CommunicateWithHost lk.salyk.kg:30040 [17:54:28]ConnectInit lk.salyk.kg [17:54:29]Connected sock=8 [17:54:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C6 4E 07 01 C1 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 89 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E3 23 01 00 35 04 06 00 5B 9A 73 A1 EA 67 C8 6D 46 28 99 F6 2D CA [17:54:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CB 89 47 00 EE 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E3 23 01 00 F4 03 04 00 60 31 1A 67 B6 04 01 00 00 40 1E CA D2 F8 81 99 54 [17:54:29]CommunicateWithHost err = 0 [17:54:29]CheckOFDResponse [17:54:29]1017 (14) - 77093643461234 [17:54:29]1041 (16) - 0000000000871795 [17:54:29]1040 (4) - 74723 [17:54:29]1012 (4) - 24.10.2024 11:37 [17:54:29]1206 (1) - 0 [17:54:29]OFD Sender: Remove packet 74723 [17:54:29]ProducePacketName [17:54:29]name=ofd_packets/00074723 [17:54:29]NVStorageDeleteData [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:52]accept exits with 10 [17:57:52]New connection [17:57:52]New thread 3066805604 created [17:57:52]Thread 3066662244 joined [17:57:52]Waiting for new connection... [17:57:52] Sock 10.Parse request [17:57:52]Sock 10.Check first char [17:57:52]Sock 10.First char is OK [17:57:52]request: POST /json_proto HTTP/1.0 [17:57:52]Method: POST [17:57:52]URL: /json_proto [17:57:52]Method is POST - this is cgi request [17:57:52]url: /json_proto [17:57:52]query_string will be loaded in cgi processing [17:57:52]execute_cgi json_proto POST (null) [17:57:52]execute_cgi path=json_proto method=POST [17:57:52]POST find Content-Length [17:57:52]Host: 172.17.39.131:8080 [17:57:52]Content-Length: 674 [17:57:52]Content-Type: application/json [17:57:52] [17:57:52]POST finish read [17:57:52]Found Content-Length = 674 [17:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [17:57:52]execute_script... [17:57: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)190692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [17:57:52]POST & json_proto [17:57:52]process_json_proto [17:57:52]json parsed OK: [17:57:52]protocol is kg_v1.0 [17:57:52]action value=close_receipt [17:57:52]process_action close_receipt [17:57:52]cmd_close_receipt [17:57:52]MH_GetDate [17:57:52]Write to MH i2c: F0 00 00 35 8B AF [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 09 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 09 00 35 8B 00 AD 8A 1A 67 86 57 24 65 D6 [17:57:52]GetLastDocTimeStamp 1729792422 [17:57:52]current date 1729792685 [17:57:52]FM_GetShiftState [17:57:52]SAM_PROTO_GetShiftState [17:57:52]wFMCommunicate request_size=4 [17:57:52]MH_SAM_APDU [17:57:52]CAPDU: 80 13 01 00 [17:57:52]Write to MH i2c: E2 08 00 36 8B 80 13 01 00 00 00 00 00 3E [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:52]Read from MH i2c: E2 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0E 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0E 00 36 8B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 68 [17:57:52]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:57:52]wFMCommunicate OK [17:57:52]SAM_PROTO_GetShiftState done [17:57:52]FM_GetShiftState done [17:57:52]opened in 1729729801 [17:57:52]opened+sec_in_day 1729816201 [17:57:52]quantity*price = 50063 [17:57:52]sum+1 = 50064 [17:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 168 24.10.2024 17:58 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74724 ФПД: 272163444560207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175805&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74724&fm=272163444560207&tin=02508201610067®Number=0000000000091691&sum=50000 [17:57:53]StoreToDocumentArchive [17:57:53]shift 510 fd 74724 [17:57:53]save to /storage/0510/doc_00074724 [17:57:53]save last doc name /storage/0510/doc_00074724 to /storage/kkm_last_doc_name [17:57:53]save OK [17:57:53]Clear old archive folders... [17:57:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:57:53]tlvbuf is 0085C590 [17:57:53]SAM_PROTO_ClearQueue [17:57:53]wFMCommunicate request_size=4 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 09 00 00 [17:57:53]Write to MH i2c: E2 08 00 43 8B 80 09 00 00 00 00 00 00 40 [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 43 8B 00 90 00 42 [17:57:54]RAPDU: 90 00 [17:57:54]wFMCommunicate OK [17:57:54]SAM_PROTO_ClearQueue done [17:57:54]KKMCreateOFDPacket [17:57:54]OFDProtocolAddRootSTLVToBuf [17:57:54]FM_MakeSignedData [17:57:54]FM_MakeSignedData [17:57:54]SAM_PROTO_SignData [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 0D 01 02 [17:57:54]Write to MH i2c: E2 08 00 44 8B 80 0D 01 02 00 00 00 00 48 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 44 8B 00 90 00 43 [17:57:54]RAPDU: 90 00 [17:57:54]wFMCommunicate OK [17:57:54]wFMCommunicate request_size=255 [17:57:54]MH_SAM_APDU [17:57: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 A8 00 00 00 F4 03 04 00 AD 8A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E4 23 01 00 35 04 06 00 F7 87 FD 6F [17:57:54]Write to MH i2c: E2 02 01 45 8B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 A8 00 00 00 F4 03 04 00 AD 8A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E4 23 01 00 35 04 06 00 F7 87 FD 6F 00 00 AB [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 45 8B 00 90 00 44 [17:57:54]RAPDU: 90 00 [17:57:54]wFMCommunicate OK [17:57:54]wFMCommunicate request_size=7 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 0D 02 02 02 11 4F [17:57:54]Write to MH i2c: E2 0A 00 46 8B 80 0D 02 02 02 00 11 4F 00 00 AF [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 46 8B 00 90 00 45 [17:57:54]RAPDU: 90 00 [17:57:54]wFMCommunicate OK [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 0D 03 02 [17:57:54]Write to MH i2c: E2 08 00 47 8B 80 0D 03 02 00 00 00 00 4D [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 0B 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 0B 00 47 8B 00 8B 43 B0 40 09 5E 48 15 90 00 D0 [17:57:54]RAPDU: 8B 43 B0 40 09 5E 48 15 90 00 [17:57:54]wFMCommunicate OK [17:57:54]SAM_PROTO_SignData done [17:57:54]FM_MakeSignedData done [17:57:54]CreateOFDProtocolMessage [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 11 00 00 [17:57:54]Write to MH i2c: E2 08 00 48 8B 80 11 00 00 00 00 00 00 4D [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 17 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 17 00 48 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A5 [17:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:57:54]wFMCommunicate OK [17:57:54]CreateOFDProtocolMessage done [17:57:54]OFDSenderStorePacket 74724 [17:57:54]StoreOFDPacket docnum=74724 [17:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 EF E5 04 01 33 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 A8 00 00 00 F4 03 04 00 AD 8A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E4 23 01 00 35 04 06 00 F7 87 FD 6F 11 4F 8B 43 B0 40 09 5E 48 15 [17:57:54]CheckFolder [17:57:54]dirname=/storage/ofd_packets [17:57:54]CheckFolder done [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00074724 [17:57:54]NVStorageSaveData ofd_packets/00074724 [17:57:54]File name is /storage/ofd_packets/00074724 [17:57:54]Write 298 bytes [17:57:54]NVStorageSaveData done [17:57:54]OFDSenderStorePacket done [17:57:54]KKMCreateOFDPacket done [17:57:54]NVStorageSaveData kkm_last_timestamp [17:57:54]File name is /storage/kkm_last_timestamp [17:57:54]Write 4 bytes [17:57:54]NVStorageSaveData done [17:57:54]ExternCall_PrintAddStr [17:57:54]wPrintStart [17:57:54]Write to MH i2c: 01 00 00 49 8B D4 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 49 8B 00 00 00 00 00 FF 0F E9 [17:57:54]RasterBufferAndPrint [17:57:54]line Счет N : (1)190692 [17:57:54]line ИНН: 02508201610067 [17:57:54]line Контрольно-Кассовый Чек [17:57:54]line ПРОДАЖА [17:57:54]line ТРК (МРК, ГНК) : 31 [17:57:54]line Товар: 2710194210 [17:57:54]line ДТ-К-4 [17:57:54]line 6.570 * 76.20 [17:57:54]line = 500.63 [17:57:54]line НДС 12% НСП 1% [17:57:54]line > о реализуемом товаре [17:57:54]line ОКРУГЛЕНИЕ: -0.63 [17:57:54]line ИТОГО: 500.00 [17:57:54]line Внесено: 500.00 [17:57:54]line СДАЧА: 0.00 [17:57:54]line НСП 1% : 4.43 [17:57:54]line НДС 12% : 53.16 [17:57:54]line Наличными: 500.00 [17:57:54]line Безнал.: 0.00 [17:57:54]line Место: АЗС № 142 "Партнер Нефть" [17:57:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:57:54]line СНО: Общий режим [17:57:54]line Чек 168 24.10.2024 17:58 [17:57:54]line Смена: 510 ФФД: 1.0 [17:57:54]line ЗНМ: 0300000089 [17:57:54]line РНМ: 0000000000091691 [17:57:54]line Версия ККМ: 001 [17:57:54]line ФМ: 0000000000871795 [17:57:54]line ФД: 74724 [17:57:54]line ФПД: 272163444560207 [17:57:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175805&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74724&fm=272163444560207&tin=02508201610067®Number=0000000000091691&sum=50000 [17:57:54]OFD Sender: Processing packet 74724 [packets to send 13, broken 12] [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00074724 [17:57:54]OFD Sender: To server: pG, [17:57:54]CommunicateWithHost lk.salyk.kg:30040 [17:57:54]ConnectInit lk.salyk.kg [17:57:54]written 0, free lines is 4095 [17:57:55]Connected sock=9 [17:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 EF E5 04 01 33 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 A8 00 00 00 F4 03 04 00 AD 8A 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E4 23 01 00 35 04 06 00 F7 87 FD 6F 11 4F 8B 43 B0 40 09 5E 48 15 [17:57:55]Write to MH i2c: 01 00 00 74 8B FF [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: 01 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: 01 07 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: 01 07 00 74 8B 00 00 00 00 00 AA 0C BC [17:57:55]RasterBufferAndPrint [17:57:55]line [17:57:55]line [17:57:55]line [17:57:55]line [17:57:55]line [17:57:55]written 0, free lines is 3248 [17:57:55]MH_Cut [17:57:55]Write to MH i2c: D1 01 00 7B 8B 01 D8 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: D1 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: D1 01 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: D1 01 00 7B 8B 00 D7 [17:57:55]Write to MH i2c: 01 00 00 7C 8B 07 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 03 65 47 00 4B 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 31 37 39 35 10 04 04 00 E4 23 01 00 F4 03 04 00 2E 32 1A 67 B6 04 01 00 00 00 60 DC DC 70 D7 85 FC [17:57:55]CommunicateWithHost err = 0 [17:57:55]CheckOFDResponse [17:57:55]1017 (14) - 77093643461234 [17:57:55]1041 (16) - 0000000000871795 [17:57:55]1040 (4) - 74724 [17:57:55]1012 (4) - 24.10.2024 11:40 [17:57:55]1206 (1) - 0 [17:57:55]OFD Sender: Remove packet 74724 [17:57:55]ProducePacketName [17:57:55]name=ofd_packets/00074724 [17:57:55]NVStorageDeleteData [17:57:55]OFD Sender: No OFD packet to send [17:57:56]*** Cut start [17:57:56]*** Partial cut [17:57:56]*** CUTSNS_PIN = 1 [17:57:56]*** CUTSNS_PIN = 0 [17:57:56]*** Brake cut motor [17:57:56]Read from MH i2c: 01 [17:57:56]MH_I2C_Read... [17:57:56]*** Stop cut motor [17:57:56]*** Cut end [17:57:56]Read from MH i2c: 01 07 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: 01 07 00 7C 8B 00 00 00 00 00 FF 0F 1C [17:57:56]process_action close_receipt done [17:57:56]requested_data is exist [17:57:56]produce_requested_data [17:57:56]requested_item fm.sn is exist - process it [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 11 00 00 [17:57:56]Write to MH i2c: E2 08 00 7D 8B 80 11 00 00 00 00 00 00 82 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 17 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 17 00 7D 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DA [17:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:57:56]wFMCommunicate OK [17:57:56]requested_item fd.num is exist - process it [17:57:56]SAM_PROTO_GetFieldsCounters [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 13 00 00 [17:57:56]Write to MH i2c: E2 08 00 7E 8B 80 13 00 00 00 00 00 00 85 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 62 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 62 00 7E 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E4 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [17:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E4 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:57]wFMCommunicate OK [17:57:57]SAM_PROTO_GetFieldsCounters done [17:57:57]requested_item shift.num is exist - process it [17:57:57]requested_item shift.opened is exist - process it [17:57:57]req_shift_opened [17:57:57]FM_GetShiftState [17:57:57]SAM_PROTO_GetShiftState [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 13 01 00 [17:57:57]Write to MH i2c: E2 08 00 7F 8B 80 13 01 00 00 00 00 00 87 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0E 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0E 00 7F 8B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 B1 [17:57:57]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [17:57:57]wFMCommunicate OK [17:57:57]SAM_PROTO_GetShiftState done [17:57:57]FM_GetShiftState done [17:57:57]req_shift_opened done [17:57:57]requested_item shift.open_date is exist - process it [17:57:57]req_shift_open_date [17:57:57]req_shift_open_date done [17:57:57]produce_requested_data done [17:57:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74724,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [17:57:57]process_action_free close_receipt [17:57:57]json_value_free [17:57:57]json_value_free done [17:57:57]process_json_proto returns [17:57:57]Send response to host [17:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74724,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [17:57:57]free response buf [17:57:57]execute_script done [17:57:57]execute_script returns [17:57:57]free content buf [17:57:57]Sock 10.Close socket [17:57:57]Sock 10.Thread stoped [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:22]accept exits with 8 [18:07:22]New connection [18:07:22]New thread 3066662244 created [18:07:22]Thread 3066805604 joined [18:07:22]Waiting for new connection... [18:07:22] Sock 8.Parse request [18:07:22]Sock 8.Check first char [18:07:22]Sock 8.First char is OK [18:07:22]request: POST /json_proto HTTP/1.0 [18:07:22]Method: POST [18:07:22]URL: /json_proto [18:07:22]Method is POST - this is cgi request [18:07:22]url: /json_proto [18:07:22]query_string will be loaded in cgi processing [18:07:22]execute_cgi json_proto POST (null) [18:07:22]execute_cgi path=json_proto method=POST [18:07:22]POST find Content-Length [18:07:22]Host: 172.17.39.131:8080 [18:07:22]Content-Length: 678 [18:07:22]Content-Type: application/json [18:07:22] [18:07:22]POST finish read [18:07:22]Found Content-Length = 678 [18:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:22]execute_script... [18:07: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)190695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:22]POST & json_proto [18:07:22]process_json_proto [18:07:22]json parsed OK: [18:07:22]protocol is kg_v1.0 [18:07:22]action value=close_receipt [18:07:22]process_action close_receipt [18:07:22]cmd_close_receipt [18:07:22]MH_GetDate [18:07:22]Write to MH i2c: F0 00 00 80 8B FA [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 09 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 09 00 80 8B 00 E6 8C 1A 67 86 57 24 65 5C [18:07:22]GetLastDocTimeStamp 1729792685 [18:07:22]current date 1729793254 [18:07:22]FM_GetShiftState [18:07:22]SAM_PROTO_GetShiftState [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 13 01 00 [18:07:22]Write to MH i2c: E2 08 00 81 8B 80 13 01 00 00 00 00 00 89 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 81 8B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 B3 [18:07:22]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_GetShiftState done [18:07:22]FM_GetShiftState done [18:07:22]opened in 1729729801 [18:07:22]opened+sec_in_day 1729816201 [18:07:22]quantity*price = 70044 [18:07:22]sum+1 = 70045 [18:07:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 169 24.10.2024 18:07 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74725 ФПД: 7203626697044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180734&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74725&fm=7203626697044&tin=02508201610067®Number=0000000000091691&sum=70000 [18:07:23]StoreToDocumentArchive [18:07:23]shift 510 fd 74725 [18:07:23]save to /storage/0510/doc_00074725 [18:07:23]save last doc name /storage/0510/doc_00074725 to /storage/kkm_last_doc_name [18:07:23]save OK [18:07:23]Clear old archive folders... [18:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:23]tlvbuf is 00B30080 [18:07:23]SAM_PROTO_ClearQueue [18:07:23]wFMCommunicate request_size=4 [18:07:23]MH_SAM_APDU [18:07:23]CAPDU: 80 09 00 00 [18:07:23]Write to MH i2c: E2 08 00 8E 8B 80 09 00 00 00 00 00 00 8B [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:23]Read from MH i2c: E2 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 8E 8B 00 90 00 8D [18:07:23]RAPDU: 90 00 [18:07:23]wFMCommunicate OK [18:07:23]SAM_PROTO_ClearQueue done [18:07:23]KKMCreateOFDPacket [18:07:23]OFDProtocolAddRootSTLVToBuf [18:07:23]FM_MakeSignedData [18:07:23]FM_MakeSignedData [18:07:23]SAM_PROTO_SignData [18:07:23]wFMCommunicate request_size=4 [18:07:23]MH_SAM_APDU [18:07:23]CAPDU: 80 0D 01 02 [18:07:23]Write to MH i2c: E2 08 00 8F 8B 80 0D 01 02 00 00 00 00 93 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:23]Read from MH i2c: E2 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 8F 8B 00 90 00 8E [18:07:23]RAPDU: 90 00 [18:07:23]wFMCommunicate OK [18:07:23]wFMCommunicate request_size=255 [18:07:23]MH_SAM_APDU [18:07: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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E6 8C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E5 23 01 00 35 04 06 00 06 [18:07:23]Write to MH i2c: E2 02 01 90 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E6 8C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E5 23 01 00 35 04 06 00 06 00 00 E2 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 90 8B 00 90 00 8F [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=10 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 02 02 05 8D 39 9C 41 54 [18:07:24]Write to MH i2c: E2 0D 00 91 8B 80 0D 02 02 05 00 8D 39 9C 41 54 00 00 97 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 91 8B 00 90 00 90 [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 03 02 [18:07:24]Write to MH i2c: E2 08 00 92 8B 80 0D 03 02 00 00 00 00 98 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0B 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0B 00 92 8B 00 CE 70 98 5D 0D EA 7F 5A 90 00 9C [18:07:24]RAPDU: CE 70 98 5D 0D EA 7F 5A 90 00 [18:07:24]wFMCommunicate OK [18:07:24]SAM_PROTO_SignData done [18:07:24]FM_MakeSignedData done [18:07:24]CreateOFDProtocolMessage [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 11 00 00 [18:07:24]Write to MH i2c: E2 08 00 93 8B 80 11 00 00 00 00 00 00 98 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 93 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F0 [18:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:07:24]wFMCommunicate OK [18:07:24]CreateOFDProtocolMessage done [18:07:24]OFDSenderStorePacket 74725 [18:07:24]StoreOFDPacket docnum=74725 [18:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3D 43 07 01 3D C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E6 8C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E5 23 01 00 35 04 06 00 06 8D 39 9C 41 54 CE 70 98 5D 0D EA 7F 5A [18:07:24]CheckFolder [18:07:24]dirname=/storage/ofd_packets [18:07:24]CheckFolder done [18:07:24]ProducePacketName [18:07:24]name=ofd_packets/00074725 [18:07:24]NVStorageSaveData ofd_packets/00074725 [18:07:24]File name is /storage/ofd_packets/00074725 [18:07:24]Write 301 bytes [18:07:24]NVStorageSaveData done [18:07:24]OFDSenderStorePacket done [18:07:24]KKMCreateOFDPacket done [18:07:24]NVStorageSaveData kkm_last_timestamp [18:07:24]File name is /storage/kkm_last_timestamp [18:07:24]Write 4 bytes [18:07:24]NVStorageSaveData done [18:07:24]ExternCall_PrintAddStr [18:07:24]wPrintStart [18:07:24]Write to MH i2c: 01 00 00 94 8B 1F [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 94 8B 00 00 00 00 00 FF 0F 34 [18:07:24]RasterBufferAndPrint [18:07:24]line Счет N : (1)190695 [18:07:24]line ИНН: 02508201610067 [18:07:24]line Контрольно-Кассовый Чек [18:07:24]line ПРОДАЖА [18:07:24]line ТРК (МРК, ГНК) : 21 [18:07:24]line Товар: 2710124130 [18:07:24]line Аи-92-К-5 [18:07:24]line 10.470 * 66.90 [18:07:24]line = 700.44 [18:07:24]line НДС 12% НСП 1% [18:07:24]line > о реализуемом товаре [18:07:24]line ОКРУГЛЕНИЕ: -0.44 [18:07:24]line ИТОГО: 700.00 [18:07:24]line Внесено: 700.00 [18:07:24]line СДАЧА: 0.00 [18:07:24]line НСП 1% : 6.20 [18:07:24]line НДС 12% : 74.38 [18:07:24]line Наличными: 700.00 [18:07:24]line Безнал.: 0.00 [18:07:24]line Место: АЗС № 142 "Партнер Нефть" [18:07:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:07:24]line СНО: Общий режим [18:07:24]line Чек 169 24.10.2024 18:07 [18:07:24]line Смена: 510 ФФД: 1.0 [18:07:24]line ЗНМ: 0300000089 [18:07:24]line РНМ: 0000000000091691 [18:07:24]line Версия ККМ: 001 [18:07:24]line ФМ: 0000000000871795 [18:07:24]line ФД: 74725 [18:07:24]line ФПД: 7203626697044 [18:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180734&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74725&fm=7203626697044&tin=02508201610067®Number=0000000000091691&sum=70000 [18:07:24]OFD Sender: Processing packet 74725 [packets to send 13, broken 12] [18:07:24]ProducePacketName [18:07:24]name=ofd_packets/00074725 [18:07:24]OFD Sender: To server: pG, [18:07:24]CommunicateWithHost lk.salyk.kg:30040 [18:07:24]ConnectInit lk.salyk.kg [18:07:24]written 0, free lines is 4095 [18:07:24]Connected sock=10 [18:07:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3D 43 07 01 3D C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E6 8C 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E5 23 01 00 35 04 06 00 06 8D 39 9C 41 54 CE 70 98 5D 0D EA 7F 5A [18:07:24]Write to MH i2c: 01 00 00 BF 8B 4A [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 BF 8B 00 00 00 00 00 AE 0C 0B [18:07:24]RasterBufferAndPrint [18:07:24]line [18:07:24]line [18:07:24]line [18:07:24]line [18:07:24]line [18:07:24]written 0, free lines is 3252 [18:07:24]MH_Cut [18:07:24]Write to MH i2c: D1 01 00 C6 8B 01 23 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: D1 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: D1 01 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: D1 01 00 C6 8B 00 22 [18:07:24]Write to MH i2c: 01 00 00 C7 8B 52 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9E 01 47 00 F0 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 31 37 39 35 10 04 04 00 E5 23 01 00 F4 03 04 00 68 34 1A 67 B6 04 01 00 00 6E A1 25 6A FE 40 DE F6 [18:07:25]CommunicateWithHost err = 0 [18:07:25]CheckOFDResponse [18:07:25]1017 (14) - 77093643461234 [18:07:25]1041 (16) - 0000000000871795 [18:07:25]1040 (4) - 74725 [18:07:25]1012 (4) - 24.10.2024 11:50 [18:07:25]1206 (1) - 0 [18:07:25]OFD Sender: Remove packet 74725 [18:07:25]ProducePacketName [18:07:25]name=ofd_packets/00074725 [18:07:25]NVStorageDeleteData [18:07:25]OFD Sender: No OFD packet to send [18:07:25]*** Cut start [18:07:25]*** Partial cut [18:07:25]*** CUTSNS_PIN = 1 [18:07:25]*** CUTSNS_PIN = 0 [18:07:26]*** Brake cut motor [18:07:26]Read from MH i2c: 01 [18:07:26]MH_I2C_Read... [18:07:26]*** Stop cut motor [18:07:26]*** Cut end [18:07:26]Read from MH i2c: 01 07 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 C7 8B 00 00 00 00 00 FF 0F 67 [18:07:26]process_action close_receipt done [18:07:26]requested_data is exist [18:07:26]produce_requested_data [18:07:26]requested_item fm.sn is exist - process it [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 11 00 00 [18:07:26]Write to MH i2c: E2 08 00 C8 8B 80 11 00 00 00 00 00 00 CD [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 C8 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 25 [18:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:07:26]wFMCommunicate OK [18:07:26]requested_item fd.num is exist - process it [18:07:26]SAM_PROTO_GetFieldsCounters [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 13 00 00 [18:07:26]Write to MH i2c: E2 08 00 C9 8B 80 13 00 00 00 00 00 00 D0 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 C9 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E5 23 01 00 0E 04 04 00 FE 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 FA [18:07:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E5 23 01 00 0E 04 04 00 FE 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 [18:07:26]wFMCommunicate OK [18:07:26]SAM_PROTO_GetFieldsCounters done [18:07:26]requested_item shift.num is exist - process it [18:07:26]requested_item shift.opened is exist - process it [18:07:26]req_shift_opened [18:07:26]FM_GetShiftState [18:07:26]SAM_PROTO_GetShiftState [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 13 01 00 [18:07:26]Write to MH i2c: E2 08 00 CA 8B 80 13 01 00 00 00 00 00 D2 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0E 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0E 00 CA 8B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 FC [18:07:26]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:07:26]wFMCommunicate OK [18:07:26]SAM_PROTO_GetShiftState done [18:07:26]FM_GetShiftState done [18:07:26]req_shift_opened done [18:07:26]requested_item shift.open_date is exist - process it [18:07:26]req_shift_open_date [18:07:26]req_shift_open_date done [18:07:26]produce_requested_data done [18:07:26]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74725,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:07:26]process_action_free close_receipt [18:07:26]json_value_free [18:07:26]json_value_free done [18:07:26]process_json_proto returns [18:07:26]Send response to host [18:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74725,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:07:26]free response buf [18:07:26]execute_script done [18:07:26]execute_script returns [18:07:26]free content buf [18:07:26]Sock 8.Close socket [18:07:26]Sock 8.Thread stoped [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:46]accept exits with 9 [18:08:46]New connection [18:08:46]New thread 3066805604 created [18:08:46]Thread 3066662244 joined [18:08:46]Waiting for new connection... [18:08:46] Sock 9.Parse request [18:08:46]Sock 9.Check first char [18:08:46]Sock 9.First char is OK [18:08:46]request: POST /json_proto HTTP/1.0 [18:08:46]Method: POST [18:08:46]URL: /json_proto [18:08:46]Method is POST - this is cgi request [18:08:46]url: /json_proto [18:08:46]query_string will be loaded in cgi processing [18:08:46]execute_cgi json_proto POST (null) [18:08:46]execute_cgi path=json_proto method=POST [18:08:46]POST find Content-Length [18:08:46]Host: 172.17.39.131:8080 [18:08:46]Content-Length: 685 [18:08:46]Content-Type: application/json [18:08:46] [18:08:46]POST finish read [18:08:46]Found Content-Length = 685 [18:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:46]execute_script... [18:08: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)190694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:46]POST & json_proto [18:08:46]process_json_proto [18:08:46]json parsed OK: [18:08:46]protocol is kg_v1.0 [18:08:46]action value=close_receipt [18:08:46]process_action close_receipt [18:08:46]cmd_close_receipt [18:08:46]MH_GetDate [18:08:46]Write to MH i2c: F0 00 00 CB 8B 45 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: F0 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: F0 09 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: F0 09 00 CB 8B 00 3A 8D 1A 67 86 57 24 65 FC [18:08:46]GetLastDocTimeStamp 1729793254 [18:08:46]current date 1729793338 [18:08:46]FM_GetShiftState [18:08:46]SAM_PROTO_GetShiftState [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 13 01 00 [18:08:46]Write to MH i2c: E2 08 00 CC 8B 80 13 01 00 00 00 00 00 D4 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 0E 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 0E 00 CC 8B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 FE [18:08:46]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:08:46]wFMCommunicate OK [18:08:46]SAM_PROTO_GetShiftState done [18:08:46]FM_GetShiftState done [18:08:46]opened in 1729729801 [18:08:46]opened+sec_in_day 1729816201 [18:08:46]quantity*price = 100011 [18:08:46]sum+1 = 100013 [18:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 170 24.10.2024 18:08 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74726 ФПД: 210657257406367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180858&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74726&fm=210657257406367&tin=02508201610067®Number=0000000000091691&sum=100000 [18:08:47]StoreToDocumentArchive [18:08:47]shift 510 fd 74726 [18:08:47]save to /storage/0510/doc_00074726 [18:08:47]save last doc name /storage/0510/doc_00074726 to /storage/kkm_last_doc_name [18:08:47]save OK [18:08:47]Clear old archive folders... [18:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:08:47]tlvbuf is 00825640 [18:08:47]SAM_PROTO_ClearQueue [18:08:47]wFMCommunicate request_size=4 [18:08:47]MH_SAM_APDU [18:08:47]CAPDU: 80 09 00 00 [18:08:47]Write to MH i2c: E2 08 00 D9 8B 80 09 00 00 00 00 00 00 D6 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:47]Read from MH i2c: E2 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 03 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 03 00 D9 8B 00 90 00 D8 [18:08:47]RAPDU: 90 00 [18:08:47]wFMCommunicate OK [18:08:47]SAM_PROTO_ClearQueue done [18:08:47]KKMCreateOFDPacket [18:08:47]OFDProtocolAddRootSTLVToBuf [18:08:47]FM_MakeSignedData [18:08:47]FM_MakeSignedData [18:08:47]SAM_PROTO_SignData [18:08:47]wFMCommunicate request_size=4 [18:08:47]MH_SAM_APDU [18:08:47]CAPDU: 80 0D 01 02 [18:08:47]Write to MH i2c: E2 08 00 DA 8B 80 0D 01 02 00 00 00 00 DE [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:47]Read from MH i2c: E2 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 03 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 03 00 DA 8B 00 90 00 D9 [18:08:47]RAPDU: 90 00 [18:08:47]wFMCommunicate OK [18:08:47]wFMCommunicate request_size=255 [18:08:47]MH_SAM_APDU [18:08:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 3A 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E6 23 01 00 35 04 06 00 BF 97 [18:08:47]Write to MH i2c: E2 02 01 DB 8B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 3A 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E6 23 01 00 35 04 06 00 BF 97 00 00 96 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:48]Read from MH i2c: E2 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 03 00 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 03 00 DB 8B 00 90 00 DA [18:08:48]RAPDU: 90 00 [18:08:48]wFMCommunicate OK [18:08:48]wFMCommunicate request_size=9 [18:08:48]MH_SAM_APDU [18:08:48]CAPDU: 80 0D 02 02 04 76 FF 3F 9F [18:08:48]Write to MH i2c: E2 0C 00 DC 8B 80 0D 02 02 04 00 76 FF 3F 9F 00 00 3C [18:08:48]Write i2c OK [18:08:48]MH_I2C_Read... [18:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:48]Read from MH i2c: E2 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 03 00 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 03 00 DC 8B 00 90 00 DB [18:08:48]RAPDU: 90 00 [18:08:48]wFMCommunicate OK [18:08:48]wFMCommunicate request_size=4 [18:08:48]MH_SAM_APDU [18:08:48]CAPDU: 80 0D 03 02 [18:08:48]Write to MH i2c: E2 08 00 DD 8B 80 0D 03 02 00 00 00 00 E3 [18:08:48]Write i2c OK [18:08:48]MH_I2C_Read... [18:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:48]Read from MH i2c: E2 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 0B 00 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 0B 00 DD 8B 00 2A 6D 4A E0 4C 27 AA B1 90 00 73 [18:08:48]RAPDU: 2A 6D 4A E0 4C 27 AA B1 90 00 [18:08:48]wFMCommunicate OK [18:08:48]SAM_PROTO_SignData done [18:08:48]FM_MakeSignedData done [18:08:48]CreateOFDProtocolMessage [18:08:48]wFMCommunicate request_size=4 [18:08:48]MH_SAM_APDU [18:08:48]CAPDU: 80 11 00 00 [18:08:48]Write to MH i2c: E2 08 00 DE 8B 80 11 00 00 00 00 00 00 E3 [18:08:48]Write i2c OK [18:08:48]MH_I2C_Read... [18:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:48]Read from MH i2c: E2 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 17 00 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: E2 17 00 DE 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3B [18:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:08:48]wFMCommunicate OK [18:08:48]CreateOFDProtocolMessage done [18:08:48]OFDSenderStorePacket 74726 [18:08:48]StoreOFDPacket docnum=74726 [18:08:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 13 F3 06 01 B0 24 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 3A 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E6 23 01 00 35 04 06 00 BF 97 76 FF 3F 9F 2A 6D 4A E0 4C 27 AA B1 [18:08:48]CheckFolder [18:08:48]dirname=/storage/ofd_packets [18:08:48]CheckFolder done [18:08:48]ProducePacketName [18:08:48]name=ofd_packets/00074726 [18:08:48]NVStorageSaveData ofd_packets/00074726 [18:08:48]File name is /storage/ofd_packets/00074726 [18:08:48]Write 300 bytes [18:08:48]NVStorageSaveData done [18:08:48]OFDSenderStorePacket done [18:08:48]KKMCreateOFDPacket done [18:08:48]NVStorageSaveData kkm_last_timestamp [18:08:48]File name is /storage/kkm_last_timestamp [18:08:48]Write 4 bytes [18:08:48]NVStorageSaveData done [18:08:48]ExternCall_PrintAddStr [18:08:48]wPrintStart [18:08:48]Write to MH i2c: 01 00 00 DF 8B 6A [18:08:48]Write i2c OK [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: 01 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: 01 07 00 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: 01 07 00 DF 8B 00 00 00 00 00 FF 0F 7F [18:08:48]RasterBufferAndPrint [18:08:48]line Счет N : (1)190694 [18:08:48]line ИНН: 02508201610067 [18:08:48]line Контрольно-Кассовый Чек [18:08:48]line ПРОДАЖА [18:08:48]line ТРК (МРК, ГНК) : 51 [18:08:48]line Товар: 2711190000 [18:08:48]line ГАЗ-К-3 [18:08:48]line 25.710 * 38.90 [18:08:48]line = 1000.12 [18:08:48]line НДС 12% НСП 1% [18:08:48]line > о реализуемом товаре [18:08:48]line ОКРУГЛЕНИЕ: -0.12 [18:08:48]line ИТОГО: 1000.00 [18:08:48]line Внесено: 1000.00 [18:08:48]line СДАЧА: 0.00 [18:08:48]line НСП 1% : 8.85 [18:08:48]line НДС 12% : 106.21 [18:08:48]line Наличными: 1000.00 [18:08:48]line Безнал.: 0.00 [18:08:48]line Место: АЗС № 142 "Партнер Нефть" [18:08:48]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:08:48]line СНО: Общий режим [18:08:48]line Чек 170 24.10.2024 18:08 [18:08:48]line Смена: 510 ФФД: 1.0 [18:08:48]line ЗНМ: 0300000089 [18:08:48]line РНМ: 0000000000091691 [18:08:48]line Версия ККМ: 001 [18:08:48]line ФМ: 0000000000871795 [18:08:48]line ФД: 74726 [18:08:48]line ФПД: 210657257406367 [18:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180858&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74726&fm=210657257406367&tin=02508201610067®Number=0000000000091691&sum=100000 [18:08:48]OFD Sender: Processing packet 74726 [packets to send 13, broken 12] [18:08:48]ProducePacketName [18:08:48]name=ofd_packets/00074726 [18:08:48]OFD Sender: To server: pG, [18:08:48]CommunicateWithHost lk.salyk.kg:30040 [18:08:48]ConnectInit lk.salyk.kg [18:08:48]written 0, free lines is 4095 [18:08:48]Connected sock=10 [18:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 13 F3 06 01 B0 24 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 3A 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E6 23 01 00 35 04 06 00 BF 97 76 FF 3F 9F 2A 6D 4A E0 4C 27 AA B1 [18:08:48]Write to MH i2c: 01 00 00 0A 8C 96 [18:08:48]Write i2c OK [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: 01 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: 01 07 00 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: 01 07 00 0A 8C 00 00 00 00 00 AE 0C 57 [18:08:48]RasterBufferAndPrint [18:08:48]line [18:08:48]line [18:08:48]line [18:08:48]line [18:08:48]line [18:08:48]written 0, free lines is 3252 [18:08:48]MH_Cut [18:08:48]Write to MH i2c: D1 01 00 11 8C 01 6F [18:08:48]Write i2c OK [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: D1 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: D1 01 00 [18:08:48]MH_I2C_Read... [18:08:48]Read from MH i2c: D1 01 00 11 8C 00 6E [18:08:48]Write to MH i2c: 01 00 00 12 8C 9E [18:08:48]Write i2c OK [18:08:48]MH_I2C_Read... [18:08:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8A 4F 47 00 A4 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E6 23 01 00 F4 03 04 00 BC 34 1A 67 B6 04 01 00 00 5F FD B8 B8 1D BE 5B 81 [18:08:49]CommunicateWithHost err = 0 [18:08:49]CheckOFDResponse [18:08:49]1017 (14) - 77093643461234 [18:08:49]1041 (16) - 0000000000871795 [18:08:49]1040 (4) - 74726 [18:08:49]1012 (4) - 24.10.2024 11:51 [18:08:49]1206 (1) - 0 [18:08:49]OFD Sender: Remove packet 74726 [18:08:49]ProducePacketName [18:08:49]name=ofd_packets/00074726 [18:08:49]NVStorageDeleteData [18:08:49]OFD Sender: No OFD packet to send [18:08:49]*** Cut start [18:08:49]*** Partial cut [18:08:49]*** CUTSNS_PIN = 1 [18:08:49]*** CUTSNS_PIN = 0 [18:08:50]*** Brake cut motor [18:08:50]Read from MH i2c: 01 [18:08:50]MH_I2C_Read... [18:08:50]*** Stop cut motor [18:08:50]*** Cut end [18:08:50]Read from MH i2c: 01 07 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: 01 07 00 12 8C 00 00 00 00 00 FF 0F B3 [18:08:50]process_action close_receipt done [18:08:50]requested_data is exist [18:08:50]produce_requested_data [18:08:50]requested_item fm.sn is exist - process it [18:08:50]wFMCommunicate request_size=4 [18:08:50]MH_SAM_APDU [18:08:50]CAPDU: 80 11 00 00 [18:08:50]Write to MH i2c: E2 08 00 13 8C 80 11 00 00 00 00 00 00 19 [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:50]Read from MH i2c: E2 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 17 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 17 00 13 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 71 [18:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:08:50]wFMCommunicate OK [18:08:50]requested_item fd.num is exist - process it [18:08:50]SAM_PROTO_GetFieldsCounters [18:08:50]wFMCommunicate request_size=4 [18:08:50]MH_SAM_APDU [18:08:50]CAPDU: 80 13 00 00 [18:08:50]Write to MH i2c: E2 08 00 14 8C 80 13 00 00 00 00 00 00 1C [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:50]Read from MH i2c: E2 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 62 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 62 00 14 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E6 23 01 00 0E 04 04 00 FE 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 4A [18:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E6 23 01 00 0E 04 04 00 FE 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 [18:08:50]wFMCommunicate OK [18:08:50]SAM_PROTO_GetFieldsCounters done [18:08:50]requested_item shift.num is exist - process it [18:08:50]requested_item shift.opened is exist - process it [18:08:50]req_shift_opened [18:08:50]FM_GetShiftState [18:08:50]SAM_PROTO_GetShiftState [18:08:50]wFMCommunicate request_size=4 [18:08:50]MH_SAM_APDU [18:08:50]CAPDU: 80 13 01 00 [18:08:50]Write to MH i2c: E2 08 00 15 8C 80 13 01 00 00 00 00 00 1E [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:50]Read from MH i2c: E2 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 0E 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 0E 00 15 8C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 48 [18:08:50]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:08:50]wFMCommunicate OK [18:08:50]SAM_PROTO_GetShiftState done [18:08:50]FM_GetShiftState done [18:08:50]req_shift_opened done [18:08:50]requested_item shift.open_date is exist - process it [18:08:50]req_shift_open_date [18:08:50]req_shift_open_date done [18:08:50]produce_requested_data done [18:08:50]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74726,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:08:50]process_action_free close_receipt [18:08:50]json_value_free [18:08:50]json_value_free done [18:08:50]process_json_proto returns [18:08:50]Send response to host [18:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74726,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:08:50]free response buf [18:08:50]execute_script done [18:08:50]execute_script returns [18:08:50]free content buf [18:08:50]Sock 9.Close socket [18:08:50]Sock 9.Thread stoped [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:18]recv_with_timeout no data received [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:46]recv_with_timeout no data received [18:10:49]OFD Sender: No OFD packet to send [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 15 02 00 08 F4 03 04 00 BD 8D 1A 67 [18:10:58]Write to MH i2c: E2 10 00 20 8C 80 15 02 00 08 00 F4 03 04 00 BD 8D 1A 67 00 00 02 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 20 8C 00 90 00 20 [18:10:58]RAPDU: 90 00 [18:10:58]wFMCommunicate OK [18:10:58]wFMCommunicate request_size=25 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 [18:10:58]Write to MH i2c: E2 1C 00 21 8C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 00 00 90 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 21 8C 00 90 00 21 [18:10:58]RAPDU: 90 00 [18:10:58]wFMCommunicate OK [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 15 03 00 [18:10:58]Write to MH i2c: E2 08 00 22 8C 80 15 03 00 00 00 00 00 2F [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 40 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 40 00 22 8C 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E7 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 AB 00 00 00 35 04 06 00 4C 01 9E FA CE 95 90 00 27 [18:10:58]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E7 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 AB 00 00 00 35 04 06 00 4C 01 9E FA CE 95 90 00 [18:10:58]wFMCommunicate OK [18:10:58]SAM_PROTO_ProcessDocument answer len = 59 [18:10:58]SAM_PROTO_ProcessDocument done [18:10:58]SetTLVBufToDocument [18:10:58]Processing tag 1209 (04B9) [18:10:58]Malloc new data [18:10:58]Processing tag 1041 (0411) [18:10:58]Processing tag 1040 (0410) [18:10:58]Malloc new data [18:10:58]Processing tag 1038 (040E) [18:10:58]Malloc new data [18:10:58]Processing tag 1042 (0412) [18:10:58]Malloc new data [18:10:58]Processing tag 1077 (0435) [18:10:58]Malloc new data [18:10:58]SetTLVBufToDocument err=0 [18:10:58]KKMLoadAndSignReceiptData store KKM data [18:10:58]KKMLoadAndSignReceiptData err=0 [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 11 00 00 [18:10:58]Write to MH i2c: E2 08 00 23 8C 80 11 00 00 00 00 00 00 29 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 17 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 17 00 23 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 81 [18:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:10:58]wFMCommunicate OK [18:10:58]Счет N : (1)190696 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-5 10.470 * 66.90 = 700.44 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 171 24.10.2024 18:11 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74727 ФПД: 83569845915285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181109&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74727&fm=83569845915285&tin=02508201610067®Number=0000000000091691&sum=70000 [18:10:58]StoreToDocumentArchive [18:10:58]shift 510 fd 74727 [18:10:58]save to /storage/0510/doc_00074727 [18:10:58]save last doc name /storage/0510/doc_00074727 to /storage/kkm_last_doc_name [18:10:58]save OK [18:10:58]Clear old archive folders... [18:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:58]tlvbuf is 0081A650 [18:10:58]SAM_PROTO_ClearQueue [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 09 00 00 [18:10:58]Write to MH i2c: E2 08 00 24 8C 80 09 00 00 00 00 00 00 22 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 24 8C 00 90 00 24 [18:10:58]RAPDU: 90 00 [18:10:58]wFMCommunicate OK [18:10:58]SAM_PROTO_ClearQueue done [18:10:58]KKMCreateOFDPacket [18:10:58]OFDProtocolAddRootSTLVToBuf [18:10:58]FM_MakeSignedData [18:10:58]FM_MakeSignedData [18:10:58]SAM_PROTO_SignData [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 0D 01 02 [18:10:58]Write to MH i2c: E2 08 00 25 8C 80 0D 01 02 00 00 00 00 2A [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 25 8C 00 90 00 25 [18:10:58]RAPDU: 90 00 [18:10:58]wFMCommunicate OK [18:10:58]wFMCommunicate request_size=255 [18:10:58]MH_SAM_APDU [18:10: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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BD 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E7 23 01 00 35 04 06 00 4C [18:10:58]Write to MH i2c: E2 02 01 26 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BD 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E7 23 01 00 35 04 06 00 4C 00 00 9B [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 26 8C 00 90 00 26 [18:10:58]RAPDU: 90 00 [18:10:58]wFMCommunicate OK [18:10:58]wFMCommunicate request_size=10 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 0D 02 02 05 01 9E FA CE 95 [18:10:58]Write to MH i2c: E2 0D 00 27 8C 80 0D 02 02 05 00 01 9E FA CE 95 00 00 33 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 03 00 27 8C 00 90 00 27 [18:10:58]RAPDU: 90 00 [18:10:58]wFMCommunicate OK [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 0D 03 02 [18:10:58]Write to MH i2c: E2 08 00 28 8C 80 0D 03 02 00 00 00 00 2F [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 0B 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 0B 00 28 8C 00 1F 09 45 67 D5 58 EC 75 90 00 92 [18:10:58]RAPDU: 1F 09 45 67 D5 58 EC 75 90 00 [18:10:58]wFMCommunicate OK [18:10:58]SAM_PROTO_SignData done [18:10:58]FM_MakeSignedData done [18:10:58]CreateOFDProtocolMessage [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 11 00 00 [18:10:58]Write to MH i2c: E2 08 00 29 8C 80 11 00 00 00 00 00 00 2F [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 17 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 17 00 29 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 87 [18:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:10:59]wFMCommunicate OK [18:10:59]CreateOFDProtocolMessage done [18:10:59]OFDSenderStorePacket 74727 [18:10:59]StoreOFDPacket docnum=74727 [18:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 05 E1 07 01 58 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BD 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E7 23 01 00 35 04 06 00 4C 01 9E FA CE 95 1F 09 45 67 D5 58 EC 75 [18:10:59]CheckFolder [18:10:59]dirname=/storage/ofd_packets [18:10:59]CheckFolder done [18:10:59]ProducePacketName [18:10:59]name=ofd_packets/00074727 [18:10:59]NVStorageSaveData ofd_packets/00074727 [18:10:59]File name is /storage/ofd_packets/00074727 [18:10:59]Write 301 bytes [18:10:59]NVStorageSaveData done [18:10:59]OFDSenderStorePacket done [18:10:59]KKMCreateOFDPacket done [18:10:59]NVStorageSaveData kkm_last_timestamp [18:10:59]File name is /storage/kkm_last_timestamp [18:10:59]Write 4 bytes [18:10:59]NVStorageSaveData done [18:10:59]ExternCall_PrintAddStr [18:10:59]wPrintStart [18:10:59]Write to MH i2c: 01 00 00 2A 8C B6 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 07 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 07 00 2A 8C 00 00 00 00 00 FF 0F CB [18:10:59]RasterBufferAndPrint [18:10:59]line Счет N : (1)190696 [18:10:59]line ИНН: 02508201610067 [18:10:59]line Контрольно-Кассовый Чек [18:10:59]line ПРОДАЖА [18:10:59]line ТРК (МРК, ГНК) : 21 [18:10:59]line Товар: 2710124130 [18:10:59]line Аи-92-К-5 [18:10:59]line 10.470 * 66.90 [18:10:59]line = 700.44 [18:10:59]line НДС 12% НСП 1% [18:10:59]line > о реализуемом товаре [18:10:59]line ОКРУГЛЕНИЕ: -0.44 [18:10:59]line ИТОГО: 700.00 [18:10:59]line Внесено: 700.00 [18:10:59]line СДАЧА: 0.00 [18:10:59]line НСП 1% : 6.20 [18:10:59]line НДС 12% : 74.38 [18:10:59]line Наличными: 700.00 [18:10:59]line Безнал.: 0.00 [18:10:59]line Место: АЗС № 142 "Партнер Нефть" [18:10:59]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:10:59]line СНО: Общий режим [18:10:59]line Чек 171 24.10.2024 18:11 [18:10:59]line Смена: 510 ФФД: 1.0 [18:10:59]line ЗНМ: 0300000089 [18:10:59]line РНМ: 0000000000091691 [18:10:59]line Версия ККМ: 001 [18:10:59]line ФМ: 0000000000871795 [18:10:59]line ФД: 74727 [18:10:59]line ФПД: 83569845915285 [18:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181109&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74727&fm=83569845915285&tin=02508201610067®Number=0000000000091691&sum=70000 [18:10:59]written 0, free lines is 4095 [18:10:59]OFD Sender: Processing packet 74727 [packets to send 13, broken 12] [18:10:59]ProducePacketName [18:10:59]name=ofd_packets/00074727 [18:10:59]OFD Sender: To server: pG, [18:10:59]CommunicateWithHost lk.salyk.kg:30040 [18:10:59]ConnectInit lk.salyk.kg [18:10:59]Write to MH i2c: 01 00 00 55 8C E1 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 07 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 07 00 55 8C 00 00 00 00 00 9D 0C 91 [18:10:59]RasterBufferAndPrint [18:10:59]line [18:10:59]line [18:10:59]line [18:10:59]line [18:10:59]line [18:10:59]written 0, free lines is 3237 [18:10:59]MH_Cut [18:10:59]Write to MH i2c: D1 01 00 5C 8C 01 BA [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: D1 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: D1 01 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: D1 01 00 5C 8C 00 B9 [18:10:59]Write to MH i2c: 01 00 00 5D 8C E9 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:11:00]*** Cut start [18:11:00]*** Partial cut [18:11:00]*** CUTSNS_PIN = 1 [18:11:00]*** CUTSNS_PIN = 0 [18:11:00]*** Brake cut motor [18:11:01]Read from MH i2c: 01 [18:11:01]MH_I2C_Read... [18:11:01]*** Stop cut motor [18:11:01]*** Cut end [18:11:01]Read from MH i2c: 01 07 00 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: 01 07 00 5D 8C 00 00 00 00 00 FF 0F FE [18:11:01]process_action close_receipt done [18:11:01]requested_data is exist [18:11:01]produce_requested_data [18:11:01]requested_item fm.sn is exist - process it [18:11:01]wFMCommunicate request_size=4 [18:11:01]MH_SAM_APDU [18:11:01]CAPDU: 80 11 00 00 [18:11:01]Write to MH i2c: E2 08 00 5E 8C 80 11 00 00 00 00 00 00 64 [18:11:01]Write i2c OK [18:11:01]MH_I2C_Read... [18:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:01]Read from MH i2c: E2 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: E2 17 00 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: E2 17 00 5E 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BC [18:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:11:01]wFMCommunicate OK [18:11:01]requested_item fd.num is exist - process it [18:11:01]SAM_PROTO_GetFieldsCounters [18:11:01]wFMCommunicate request_size=4 [18:11:01]MH_SAM_APDU [18:11:01]CAPDU: 80 13 00 00 [18:11:01]Write to MH i2c: E2 08 00 5F 8C 80 13 00 00 00 00 00 00 67 [18:11:01]Write i2c OK [18:11:01]MH_I2C_Read... [18:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:01]Read from MH i2c: E2 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: E2 62 00 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: E2 62 00 5F 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E7 23 01 00 0E 04 04 00 FE 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 99 [18:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E7 23 01 00 0E 04 04 00 FE 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 [18:11:01]wFMCommunicate OK [18:11:01]SAM_PROTO_GetFieldsCounters done [18:11:01]requested_item shift.num is exist - process it [18:11:01]requested_item shift.opened is exist - process it [18:11:01]req_shift_opened [18:11:01]FM_GetShiftState [18:11:01]SAM_PROTO_GetShiftState [18:11:01]wFMCommunicate request_size=4 [18:11:01]MH_SAM_APDU [18:11:01]CAPDU: 80 13 01 00 [18:11:01]Write to MH i2c: E2 08 00 60 8C 80 13 01 00 00 00 00 00 69 [18:11:01]Write i2c OK [18:11:01]MH_I2C_Read... [18:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:01]Read from MH i2c: E2 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: E2 0E 00 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: E2 0E 00 60 8C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 93 [18:11:01]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:11:01]wFMCommunicate OK [18:11:01]SAM_PROTO_GetShiftState done [18:11:01]FM_GetShiftState done [18:11:01]req_shift_opened done [18:11:01]requested_item shift.open_date is exist - process it [18:11:01]req_shift_open_date [18:11:01]req_shift_open_date done [18:11:01]produce_requested_data done [18:11:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74727,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:11:01]process_action_free close_receipt [18:11:01]json_value_free [18:11:01]json_value_free done [18:11:01]process_json_proto returns [18:11:01]Send response to host [18:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74727,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:11:01]free response buf [18:11:01]execute_script done [18:11:01]execute_script returns [18:11:01]free content buf [18:11:01]Sock 8.Close socket [18:11:01]Sock 8.Thread stoped [18:11:04]ConnectInit Can't take IP for lk.salyk.kg [18:11:04]CommunicateWithHost connect error [18:11:04]CommunicateWithHost err = -1 [18:11:04]OFD Sender: Server communicate error [18:11:09]OFD Sender: Processing packet 74727 [packets to send 13, broken 12] [18:11:09]ProducePacketName [18:11:09]name=ofd_packets/00074727 [18:11:09]OFD Sender: To server: pG, [18:11:09]CommunicateWithHost lk.salyk.kg:30040 [18:11:09]ConnectInit lk.salyk.kg [18:13:24]ConnectInit Can't connect to host [18:13:24]CommunicateWithHost connect error [18:13:24]CommunicateWithHost err = -1 [18:13:24]OFD Sender: Server communicate error [18:13:29]OFD Sender: Processing packet 74727 [packets to send 13, broken 12] [18:13:29]ProducePacketName [18:13:29]name=ofd_packets/00074727 [18:13:29]OFD Sender: To server: pG, [18:13:29]CommunicateWithHost lk.salyk.kg:30040 [18:13:29]ConnectInit lk.salyk.kg [18:13:29]ConnectInit Can't connect to host [18:13:29]Connected sock=8 [18:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 05 E1 07 01 58 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BD 8D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E7 23 01 00 35 04 06 00 4C 01 9E FA CE 95 1F 09 45 67 D5 58 EC 75 [18:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D6 80 47 00 CF BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E7 23 01 00 F4 03 04 00 D5 35 1A 67 B6 04 01 00 00 0C 03 54 1B 95 D1 43 98 [18:13:29]CommunicateWithHost err = 0 [18:13:29]CheckOFDResponse [18:13:29]1017 (14) - 77093643461234 [18:13:29]1041 (16) - 0000000000871795 [18:13:29]1040 (4) - 74727 [18:13:29]1012 (4) - 24.10.2024 11:56 [18:13:29]1206 (1) - 0 [18:13:29]OFD Sender: Remove packet 74727 [18:13:29]ProducePacketName [18:13:29]name=ofd_packets/00074727 [18:13:29]NVStorageDeleteData [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:24]ConnectInit Can't connect to host [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:09]recv_with_timeout no data received [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:39]accept exits with 10 [18:21:39]New connection [18:21:39]New thread 3066805604 created [18:21:39]Thread 3066662244 joined [18:21:39]Waiting for new connection... [18:21:39] Sock 10.Parse request [18:21:39]Sock 10.Check first char [18:21:39]Sock 10.First char is OK [18:21:39]request: POST /json_proto HTTP/1.0 [18:21:39]Method: POST [18:21:39]URL: /json_proto [18:21:39]Method is POST - this is cgi request [18:21:39]url: /json_proto [18:21:39]query_string will be loaded in cgi processing [18:21:39]execute_cgi json_proto POST (null) [18:21:39]execute_cgi path=json_proto method=POST [18:21:39]POST find Content-Length [18:21:39]Host: 172.17.39.131:8080 [18:21:39]Content-Length: 682 [18:21:39]Content-Type: application/json [18:21:39] [18:21:39]POST finish read [18:21:39]Found Content-Length = 682 [18:21:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:39]execute_script... [18:21: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)190697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:39]POST & json_proto [18:21:39]process_json_proto [18:21:39]json parsed OK: [18:21:39]protocol is kg_v1.0 [18:21:39]action value=close_receipt [18:21:39]process_action close_receipt [18:21:39]cmd_close_receipt [18:21:39]MH_GetDate [18:21:39]Write to MH i2c: F0 00 00 61 8C DC [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: F0 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: F0 09 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: F0 09 00 61 8C 00 40 90 1A 67 86 57 24 65 9C [18:21:39]GetLastDocTimeStamp 1729793469 [18:21:39]current date 1729794112 [18:21:39]FM_GetShiftState [18:21:39]SAM_PROTO_GetShiftState [18:21:39]wFMCommunicate request_size=4 [18:21:39]MH_SAM_APDU [18:21:39]CAPDU: 80 13 01 00 [18:21:39]Write to MH i2c: E2 08 00 62 8C 80 13 01 00 00 00 00 00 6B [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:39]Read from MH i2c: E2 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: E2 0E 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: E2 0E 00 62 8C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 95 [18:21:39]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:21:39]wFMCommunicate OK [18:21:39]SAM_PROTO_GetShiftState done [18:21:39]FM_GetShiftState done [18:21:39]opened in 1729729801 [18:21:39]opened+sec_in_day 1729816201 [18:21:39]quantity*price = 100015 [18:21:39]sum+1 = 100017 [18:21:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 172 24.10.2024 18:21 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74728 ФПД: 262829920149161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182152&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74728&fm=262829920149161&tin=02508201610067®Number=0000000000091691&sum=100000 [18:21:40]StoreToDocumentArchive [18:21:40]shift 510 fd 74728 [18:21:40]save to /storage/0510/doc_00074728 [18:21:40]save last doc name /storage/0510/doc_00074728 to /storage/kkm_last_doc_name [18:21:40]save OK [18:21:40]Clear old archive folders... [18:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:40]tlvbuf is 007C66C0 [18:21:40]SAM_PROTO_ClearQueue [18:21:40]wFMCommunicate request_size=4 [18:21:40]MH_SAM_APDU [18:21:40]CAPDU: 80 09 00 00 [18:21:40]Write to MH i2c: E2 08 00 6F 8C 80 09 00 00 00 00 00 00 6D [18:21:40]Write i2c OK [18:21:40]MH_I2C_Read... [18:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:40]Read from MH i2c: E2 [18:21:40]MH_I2C_Read... [18:21:40]Read from MH i2c: E2 03 00 [18:21:40]MH_I2C_Read... [18:21:40]Read from MH i2c: E2 03 00 6F 8C 00 90 00 6F [18:21:40]RAPDU: 90 00 [18:21:40]wFMCommunicate OK [18:21:40]SAM_PROTO_ClearQueue done [18:21:40]KKMCreateOFDPacket [18:21:40]OFDProtocolAddRootSTLVToBuf [18:21:40]FM_MakeSignedData [18:21:40]FM_MakeSignedData [18:21:40]SAM_PROTO_SignData [18:21:40]wFMCommunicate request_size=4 [18:21:40]MH_SAM_APDU [18:21:40]CAPDU: 80 0D 01 02 [18:21:40]Write to MH i2c: E2 08 00 70 8C 80 0D 01 02 00 00 00 00 75 [18:21:40]Write i2c OK [18:21:40]MH_I2C_Read... [18:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:40]Read from MH i2c: E2 [18:21:40]MH_I2C_Read... [18:21:40]Read from MH i2c: E2 03 00 [18:21:40]MH_I2C_Read... [18:21:40]Read from MH i2c: E2 03 00 70 8C 00 90 00 70 [18:21:40]RAPDU: 90 00 [18:21:40]wFMCommunicate OK [18:21:40]wFMCommunicate request_size=255 [18:21:40]MH_SAM_APDU [18:21: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 40 90 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E8 23 01 00 35 04 06 00 EF [18:21:40]Write to MH i2c: E2 02 01 71 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 40 90 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E8 23 01 00 35 04 06 00 EF 00 00 FB [18:21:40]Write i2c OK [18:21:40]MH_I2C_Read... [18:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:41]Read from MH i2c: E2 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 03 00 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 03 00 71 8C 00 90 00 71 [18:21:41]RAPDU: 90 00 [18:21:41]wFMCommunicate OK [18:21:41]wFMCommunicate request_size=10 [18:21:41]MH_SAM_APDU [18:21:41]CAPDU: 80 0D 02 02 05 0A DC 06 DE A9 [18:21:41]Write to MH i2c: E2 0D 00 72 8C 80 0D 02 02 05 00 0A DC 06 DE A9 00 00 F5 [18:21:41]Write i2c OK [18:21:41]MH_I2C_Read... [18:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:41]Read from MH i2c: E2 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 03 00 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 03 00 72 8C 00 90 00 72 [18:21:41]RAPDU: 90 00 [18:21:41]wFMCommunicate OK [18:21:41]wFMCommunicate request_size=4 [18:21:41]MH_SAM_APDU [18:21:41]CAPDU: 80 0D 03 02 [18:21:41]Write to MH i2c: E2 08 00 73 8C 80 0D 03 02 00 00 00 00 7A [18:21:41]Write i2c OK [18:21:41]MH_I2C_Read... [18:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:41]Read from MH i2c: E2 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 0B 00 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 0B 00 73 8C 00 18 27 53 5C 00 75 BF DB 90 00 78 [18:21:41]RAPDU: 18 27 53 5C 00 75 BF DB 90 00 [18:21:41]wFMCommunicate OK [18:21:41]SAM_PROTO_SignData done [18:21:41]FM_MakeSignedData done [18:21:41]CreateOFDProtocolMessage [18:21:41]wFMCommunicate request_size=4 [18:21:41]MH_SAM_APDU [18:21:41]CAPDU: 80 11 00 00 [18:21:41]Write to MH i2c: E2 08 00 74 8C 80 11 00 00 00 00 00 00 7A [18:21:41]Write i2c OK [18:21:41]MH_I2C_Read... [18:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:41]Read from MH i2c: E2 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 17 00 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 17 00 74 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D2 [18:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:21:41]wFMCommunicate OK [18:21:41]CreateOFDProtocolMessage done [18:21:41]OFDSenderStorePacket 74728 [18:21:41]StoreOFDPacket docnum=74728 [18:21:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A0 48 07 01 AB 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 40 90 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E8 23 01 00 35 04 06 00 EF 0A DC 06 DE A9 18 27 53 5C 00 75 BF DB [18:21:41]CheckFolder [18:21:41]dirname=/storage/ofd_packets [18:21:41]CheckFolder done [18:21:41]ProducePacketName [18:21:41]name=ofd_packets/00074728 [18:21:41]NVStorageSaveData ofd_packets/00074728 [18:21:41]File name is /storage/ofd_packets/00074728 [18:21:41]Write 301 bytes [18:21:41]NVStorageSaveData done [18:21:41]OFDSenderStorePacket done [18:21:41]KKMCreateOFDPacket done [18:21:41]NVStorageSaveData kkm_last_timestamp [18:21:41]File name is /storage/kkm_last_timestamp [18:21:41]Write 4 bytes [18:21:41]NVStorageSaveData done [18:21:41]ExternCall_PrintAddStr [18:21:41]wPrintStart [18:21:41]Write to MH i2c: 01 00 00 75 8C 01 [18:21:41]Write i2c OK [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: 01 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: 01 07 00 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: 01 07 00 75 8C 00 00 00 00 00 FF 0F 16 [18:21:41]RasterBufferAndPrint [18:21:41]line Счет N : (1)190697 [18:21:41]line ИНН: 02508201610067 [18:21:41]line Контрольно-Кассовый Чек [18:21:41]line ПРОДАЖА [18:21:41]line ТРК (МРК, ГНК) : 21 [18:21:41]line Товар: 2710124130 [18:21:41]line Аи-92-К-5 [18:21:41]line 14.950 * 66.90 [18:21:41]line = 1000.16 [18:21:41]line НДС 12% НСП 1% [18:21:41]line > о реализуемом товаре [18:21:41]line ОКРУГЛЕНИЕ: -0.16 [18:21:41]line ИТОГО: 1000.00 [18:21:41]line Внесено: 1000.00 [18:21:41]line СДАЧА: 0.00 [18:21:41]line НСП 1% : 8.85 [18:21:41]line НДС 12% : 106.21 [18:21:41]line Наличными: 1000.00 [18:21:41]line Безнал.: 0.00 [18:21:41]line Место: АЗС № 142 "Партнер Нефть" [18:21:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:21:41]line СНО: Общий режим [18:21:41]line Чек 172 24.10.2024 18:21 [18:21:41]line Смена: 510 ФФД: 1.0 [18:21:41]line ЗНМ: 0300000089 [18:21:41]line РНМ: 0000000000091691 [18:21:41]line Версия ККМ: 001 [18:21:41]line ФМ: 0000000000871795 [18:21:41]line ФД: 74728 [18:21:41]line ФПД: 262829920149161 [18:21:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182152&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74728&fm=262829920149161&tin=02508201610067®Number=0000000000091691&sum=100000 [18:21:41]OFD Sender: Processing packet 74728 [packets to send 13, broken 12] [18:21:41]ProducePacketName [18:21:41]name=ofd_packets/00074728 [18:21:41]OFD Sender: To server: pG, [18:21:41]CommunicateWithHost lk.salyk.kg:30040 [18:21:41]ConnectInit lk.salyk.kg [18:21:41]written 0, free lines is 4095 [18:21:41]Connected sock=11 [18:21:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A0 48 07 01 AB 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 40 90 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E8 23 01 00 35 04 06 00 EF 0A DC 06 DE A9 18 27 53 5C 00 75 BF DB [18:21:42]Write to MH i2c: 01 00 00 A0 8C 2C [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: 01 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: 01 07 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: 01 07 00 A0 8C 00 00 00 00 00 A1 0C E0 [18:21:42]RasterBufferAndPrint [18:21:42]line [18:21:42]line [18:21:42]line [18:21:42]line [18:21:42]line [18:21:42]written 0, free lines is 3239 [18:21:42]MH_Cut [18:21:42]Write to MH i2c: D1 01 00 A7 8C 01 05 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: D1 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: D1 01 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: D1 01 00 A7 8C 00 04 [18:21:42]Write to MH i2c: 01 00 00 A8 8C 34 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C5 0F 47 00 70 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 31 37 39 35 10 04 04 00 E8 23 01 00 F4 03 04 00 C1 37 1A 67 B6 04 01 00 00 F3 61 B9 B9 66 0C 6D 71 [18:21:42]CommunicateWithHost err = 0 [18:21:42]CheckOFDResponse [18:21:42]1017 (14) - 77093643461234 [18:21:42]1041 (16) - 0000000000871795 [18:21:42]1040 (4) - 74728 [18:21:42]1012 (4) - 24.10.2024 12:04 [18:21:42]1206 (1) - 0 [18:21:42]OFD Sender: Remove packet 74728 [18:21:42]ProducePacketName [18:21:42]name=ofd_packets/00074728 [18:21:42]NVStorageDeleteData [18:21:42]OFD Sender: No OFD packet to send [18:21:43]*** Cut start [18:21:43]*** Partial cut [18:21:43]*** CUTSNS_PIN = 1 [18:21:43]*** CUTSNS_PIN = 0 [18:21:43]*** Brake cut motor [18:21:43]Read from MH i2c: 01 [18:21:43]MH_I2C_Read... [18:21:43]*** Stop cut motor [18:21:43]*** Cut end [18:21:43]Read from MH i2c: 01 07 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: 01 07 00 A8 8C 00 00 00 00 00 FF 0F 49 [18:21:43]process_action close_receipt done [18:21:43]requested_data is exist [18:21:43]produce_requested_data [18:21:43]requested_item fm.sn is exist - process it [18:21:43]wFMCommunicate request_size=4 [18:21:43]MH_SAM_APDU [18:21:43]CAPDU: 80 11 00 00 [18:21:43]Write to MH i2c: E2 08 00 A9 8C 80 11 00 00 00 00 00 00 AF [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 [18:21:43]MH_I2C_Read... [18:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:43]Read from MH i2c: E2 17 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 17 00 A9 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 07 [18:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:21:43]wFMCommunicate OK [18:21:43]requested_item fd.num is exist - process it [18:21:43]SAM_PROTO_GetFieldsCounters [18:21:43]wFMCommunicate request_size=4 [18:21:43]MH_SAM_APDU [18:21:43]CAPDU: 80 13 00 00 [18:21:43]Write to MH i2c: E2 08 00 AA 8C 80 13 00 00 00 00 00 00 B2 [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:43]Read from MH i2c: E2 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 62 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 62 00 AA 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E8 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [18:21:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E8 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:43]wFMCommunicate OK [18:21:43]SAM_PROTO_GetFieldsCounters done [18:21:43]requested_item shift.num is exist - process it [18:21:43]requested_item shift.opened is exist - process it [18:21:43]req_shift_opened [18:21:43]FM_GetShiftState [18:21:43]SAM_PROTO_GetShiftState [18:21:43]wFMCommunicate request_size=4 [18:21:43]MH_SAM_APDU [18:21:43]CAPDU: 80 13 01 00 [18:21:43]Write to MH i2c: E2 08 00 AB 8C 80 13 01 00 00 00 00 00 B4 [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:43]Read from MH i2c: E2 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 0E 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 0E 00 AB 8C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 DE [18:21:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:21:43]wFMCommunicate OK [18:21:43]SAM_PROTO_GetShiftState done [18:21:43]FM_GetShiftState done [18:21:43]req_shift_opened done [18:21:43]requested_item shift.open_date is exist - process it [18:21:43]req_shift_open_date [18:21:43]req_shift_open_date done [18:21:43]produce_requested_data done [18:21:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74728,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:21:43]process_action_free close_receipt [18:21:43]json_value_free [18:21:43]json_value_free done [18:21:43]process_json_proto returns [18:21:43]Send response to host [18:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74728,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:21:43]free response buf [18:21:43]execute_script done [18:21:43]execute_script returns [18:21:43]free content buf [18:21:43]Sock 10.Close socket [18:21:43]Sock 10.Thread stoped [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:25]recv_with_timeout no data received [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:35]recv_with_timeout no data received [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:39]accept exits with 8 [18:25:39]New connection [18:25:39]New thread 3066662244 created [18:25:39]Thread 3066805604 joined [18:25:39]Waiting for new connection... [18:25:39] Sock 8.Parse request [18:25:39]Sock 8.Check first char [18:25:39]Sock 8.First char is OK [18:25:39]request: POST /json_proto HTTP/1.0 [18:25:39]Method: POST [18:25:39]URL: /json_proto [18:25:39]Method is POST - this is cgi request [18:25:39]url: /json_proto [18:25:39]query_string will be loaded in cgi processing [18:25:39]execute_cgi json_proto POST (null) [18:25:39]execute_cgi path=json_proto method=POST [18:25:39]POST find Content-Length [18:25:39]Host: 172.17.39.131:8080 [18:25:39]Content-Length: 677 [18:25:39]Content-Type: application/json [18:25:39] [18:25:39]POST finish read [18:25:39]Found Content-Length = 677 [18:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:39]execute_script... [18:25: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)190698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:39]POST & json_proto [18:25:39]process_json_proto [18:25:39]json parsed OK: [18:25:39]protocol is kg_v1.0 [18:25:39]action value=close_receipt [18:25:39]process_action close_receipt [18:25:39]cmd_close_receipt [18:25:39]MH_GetDate [18:25:39]Write to MH i2c: F0 00 00 AC 8C 27 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: F0 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: F0 09 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: F0 09 00 AC 8C 00 30 91 1A 67 86 57 24 65 D8 [18:25:39]GetLastDocTimeStamp 1729794112 [18:25:39]current date 1729794352 [18:25:39]FM_GetShiftState [18:25:39]SAM_PROTO_GetShiftState [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 13 01 00 [18:25:39]Write to MH i2c: E2 08 00 AD 8C 80 13 01 00 00 00 00 00 B6 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 0E 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 0E 00 AD 8C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E0 [18:25:39]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:25:39]wFMCommunicate OK [18:25:39]SAM_PROTO_GetShiftState done [18:25:39]FM_GetShiftState done [18:25:39]opened in 1729729801 [18:25:39]opened+sec_in_day 1729816201 [18:25:39]quantity*price = 30038 [18:25:39]sum+1 = 30039 [18:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 173 24.10.2024 18:25 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74729 ФПД: 173596940863128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182552&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74729&fm=173596940863128&tin=02508201610067®Number=0000000000091691&sum=30000 [18:25:40]StoreToDocumentArchive [18:25:40]shift 510 fd 74729 [18:25:40]save to /storage/0510/doc_00074729 [18:25:40]save last doc name /storage/0510/doc_00074729 to /storage/kkm_last_doc_name [18:25:40]save OK [18:25:40]Clear old archive folders... [18:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:40]tlvbuf is 007C62F0 [18:25:40]SAM_PROTO_ClearQueue [18:25:40]wFMCommunicate request_size=4 [18:25:40]MH_SAM_APDU [18:25:40]CAPDU: 80 09 00 00 [18:25:40]Write to MH i2c: E2 08 00 BA 8C 80 09 00 00 00 00 00 00 B8 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 BA 8C 00 90 00 BA [18:25:40]RAPDU: 90 00 [18:25:40]wFMCommunicate OK [18:25:40]SAM_PROTO_ClearQueue done [18:25:40]KKMCreateOFDPacket [18:25:40]OFDProtocolAddRootSTLVToBuf [18:25:40]FM_MakeSignedData [18:25:40]FM_MakeSignedData [18:25:40]SAM_PROTO_SignData [18:25:40]wFMCommunicate request_size=4 [18:25:40]MH_SAM_APDU [18:25:40]CAPDU: 80 0D 01 02 [18:25:40]Write to MH i2c: E2 08 00 BB 8C 80 0D 01 02 00 00 00 00 C0 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 BB 8C 00 90 00 BB [18:25:40]RAPDU: 90 00 [18:25:40]wFMCommunicate OK [18:25:40]wFMCommunicate request_size=255 [18:25:40]MH_SAM_APDU [18:25: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 30 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E9 23 01 00 35 04 06 00 9D [18:25:40]Write to MH i2c: E2 02 01 BC 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 30 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E9 23 01 00 35 04 06 00 9D 00 00 E1 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 BC 8C 00 90 00 BC [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]wFMCommunicate request_size=10 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 02 02 05 E2 AF FE 86 98 [18:25:41]Write to MH i2c: E2 0D 00 BD 8C 80 0D 02 02 05 00 E2 AF FE 86 98 00 00 7A [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 BD 8C 00 90 00 BD [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 03 02 [18:25:41]Write to MH i2c: E2 08 00 BE 8C 80 0D 03 02 00 00 00 00 C5 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 0B 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 0B 00 BE 8C 00 BC 59 9E CE 7E 64 39 AB 90 00 0D [18:25:41]RAPDU: BC 59 9E CE 7E 64 39 AB 90 00 [18:25:41]wFMCommunicate OK [18:25:41]SAM_PROTO_SignData done [18:25:41]FM_MakeSignedData done [18:25:41]CreateOFDProtocolMessage [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 11 00 00 [18:25:41]Write to MH i2c: E2 08 00 BF 8C 80 11 00 00 00 00 00 00 C5 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 17 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 17 00 BF 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1D [18:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:25:41]wFMCommunicate OK [18:25:41]CreateOFDProtocolMessage done [18:25:41]OFDSenderStorePacket 74729 [18:25:41]StoreOFDPacket docnum=74729 [18:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5C E8 07 01 3C 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 30 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E9 23 01 00 35 04 06 00 9D E2 AF FE 86 98 BC 59 9E CE 7E 64 39 AB [18:25:41]CheckFolder [18:25:41]dirname=/storage/ofd_packets [18:25:41]CheckFolder done [18:25:41]ProducePacketName [18:25:41]name=ofd_packets/00074729 [18:25:41]NVStorageSaveData ofd_packets/00074729 [18:25:41]File name is /storage/ofd_packets/00074729 [18:25:41]Write 301 bytes [18:25:41]NVStorageSaveData done [18:25:41]OFDSenderStorePacket done [18:25:41]KKMCreateOFDPacket done [18:25:41]NVStorageSaveData kkm_last_timestamp [18:25:41]File name is /storage/kkm_last_timestamp [18:25:41]Write 4 bytes [18:25:41]NVStorageSaveData done [18:25:41]ExternCall_PrintAddStr [18:25:41]wPrintStart [18:25:41]Write to MH i2c: 01 00 00 C0 8C 4C [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: 01 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: 01 07 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: 01 07 00 C0 8C 00 00 00 00 00 FF 0F 61 [18:25:41]RasterBufferAndPrint [18:25:41]line Счет N : (1)190698 [18:25:41]line ИНН: 02508201610067 [18:25:41]line Контрольно-Кассовый Чек [18:25:41]line ПРОДАЖА [18:25:41]line ТРК (МРК, ГНК) : 21 [18:25:41]line Товар: 2710124130 [18:25:41]line Аи-92-К-5 [18:25:41]line 4.490 * 66.90 [18:25:41]line = 300.38 [18:25:41]line НДС 12% НСП 1% [18:25:41]line > о реализуемом товаре [18:25:41]line ОКРУГЛЕНИЕ: -0.38 [18:25:41]line ИТОГО: 300.00 [18:25:41]line Внесено: 300.00 [18:25:41]line СДАЧА: 0.00 [18:25:41]line НСП 1% : 2.66 [18:25:41]line НДС 12% : 31.90 [18:25:41]line Наличными: 300.00 [18:25:41]line Безнал.: 0.00 [18:25:41]line Место: АЗС № 142 "Партнер Нефть" [18:25:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:25:41]line СНО: Общий режим [18:25:41]line Чек 173 24.10.2024 18:25 [18:25:41]line Смена: 510 ФФД: 1.0 [18:25:41]line ЗНМ: 0300000089 [18:25:41]line РНМ: 0000000000091691 [18:25:41]line Версия ККМ: 001 [18:25:41]line ФМ: 0000000000871795 [18:25:41]line ФД: 74729 [18:25:41]line ФПД: 173596940863128 [18:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182552&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74729&fm=173596940863128&tin=02508201610067®Number=0000000000091691&sum=30000 [18:25:41]written 0, free lines is 4095 [18:25:41]OFD Sender: Processing packet 74729 [packets to send 13, broken 12] [18:25:41]ProducePacketName [18:25:41]name=ofd_packets/00074729 [18:25:41]OFD Sender: To server: pG, [18:25:41]CommunicateWithHost lk.salyk.kg:30040 [18:25:41]ConnectInit lk.salyk.kg [18:25:41]Connected sock=10 [18:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5C E8 07 01 3C 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 30 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E9 23 01 00 35 04 06 00 9D E2 AF FE 86 98 BC 59 9E CE 7E 64 39 AB [18:25:42]Write to MH i2c: 01 00 00 EB 8C 77 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 EB 8C 00 00 00 00 00 A4 0C 2E [18:25:42]RasterBufferAndPrint [18:25:42]line [18:25:42]line [18:25:42]line [18:25:42]line [18:25:42]line [18:25:42]written 0, free lines is 3242 [18:25:42]MH_Cut [18:25:42]Write to MH i2c: D1 01 00 F2 8C 01 50 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: D1 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: D1 01 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: D1 01 00 F2 8C 00 4F [18:25:42]Write to MH i2c: 01 00 00 F3 8C 7F [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6E 20 47 00 AB 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 E9 23 01 00 F4 03 04 00 B1 38 1A 67 B6 04 01 00 00 D2 D2 F7 39 F1 98 E3 F9 [18:25:42]CommunicateWithHost err = 0 [18:25:42]CheckOFDResponse [18:25:42]1017 (14) - 77093643461234 [18:25:42]1041 (16) - 0000000000871795 [18:25:42]1040 (4) - 74729 [18:25:42]1012 (4) - 24.10.2024 12:08 [18:25:42]1206 (1) - 0 [18:25:42]OFD Sender: Remove packet 74729 [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00074729 [18:25:42]NVStorageDeleteData [18:25:42]OFD Sender: No OFD packet to send [18:25:43]*** Cut start [18:25:43]*** Partial cut [18:25:43]*** CUTSNS_PIN = 1 [18:25:43]*** CUTSNS_PIN = 0 [18:25:43]*** Brake cut motor [18:25:43]Read from MH i2c: 01 [18:25:43]MH_I2C_Read... [18:25:43]*** Stop cut motor [18:25:43]*** Cut end [18:25:43]Read from MH i2c: 01 07 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: 01 07 00 F3 8C 00 00 00 00 00 FF 0F 94 [18:25:43]process_action close_receipt done [18:25:43]requested_data is exist [18:25:43]produce_requested_data [18:25:43]requested_item fm.sn is exist - process it [18:25:43]wFMCommunicate request_size=4 [18:25:43]MH_SAM_APDU [18:25:43]CAPDU: 80 11 00 00 [18:25:43]Write to MH i2c: E2 08 00 F4 8C 80 11 00 00 00 00 00 00 FA [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:43]Read from MH i2c: E2 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 17 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 17 00 F4 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 52 [18:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:25:43]wFMCommunicate OK [18:25:43]requested_item fd.num is exist - process it [18:25:43]SAM_PROTO_GetFieldsCounters [18:25:43]wFMCommunicate request_size=4 [18:25:43]MH_SAM_APDU [18:25:43]CAPDU: 80 13 00 00 [18:25:43]Write to MH i2c: E2 08 00 F5 8C 80 13 00 00 00 00 00 00 FD [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:43]Read from MH i2c: E2 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 62 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 62 00 F5 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E9 23 01 00 0E 04 04 00 FE 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 37 [18:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 E9 23 01 00 0E 04 04 00 FE 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 [18:25:43]wFMCommunicate OK [18:25:43]SAM_PROTO_GetFieldsCounters done [18:25:43]requested_item shift.num is exist - process it [18:25:43]requested_item shift.opened is exist - process it [18:25:43]req_shift_opened [18:25:43]FM_GetShiftState [18:25:43]SAM_PROTO_GetShiftState [18:25:43]wFMCommunicate request_size=4 [18:25:43]MH_SAM_APDU [18:25:43]CAPDU: 80 13 01 00 [18:25:43]Write to MH i2c: E2 08 00 F6 8C 80 13 01 00 00 00 00 00 FF [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:43]Read from MH i2c: E2 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 0E 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 0E 00 F6 8C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 29 [18:25:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:25:43]wFMCommunicate OK [18:25:43]SAM_PROTO_GetShiftState done [18:25:43]FM_GetShiftState done [18:25:43]req_shift_opened done [18:25:43]requested_item shift.open_date is exist - process it [18:25:43]req_shift_open_date [18:25:43]req_shift_open_date done [18:25:43]produce_requested_data done [18:25:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74729,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:25:43]process_action_free close_receipt [18:25:43]json_value_free [18:25:43]json_value_free done [18:25:43]process_json_proto returns [18:25:43]Send response to host [18:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74729,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:25:43]free response buf [18:25:43]execute_script done [18:25:43]execute_script returns [18:25:43]free content buf [18:25:43]Sock 8.Close socket [18:25:43]Sock 8.Thread stoped [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:33]recv_with_timeout no data received [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:45]accept exits with 9 [18:26:45]New connection [18:26:45]New thread 3066805604 created [18:26:45]Thread 3066662244 joined [18:26:45]Waiting for new connection... [18:26:45] Sock 9.Parse request [18:26:45]Sock 9.Check first char [18:26:45]Sock 9.First char is OK [18:26:45]request: POST /json_proto HTTP/1.0 [18:26:45]Method: POST [18:26:45]URL: /json_proto [18:26:45]Method is POST - this is cgi request [18:26:45]url: /json_proto [18:26:45]query_string will be loaded in cgi processing [18:26:45]execute_cgi json_proto POST (null) [18:26:45]execute_cgi path=json_proto method=POST [18:26:45]POST find Content-Length [18:26:45]Host: 172.17.39.131:8080 [18:26:45]Content-Length: 682 [18:26:45]Content-Type: application/json [18:26:45] [18:26:45]POST finish read [18:26:45]Found Content-Length = 682 [18:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:45]execute_script... [18:26: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)190699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:45]POST & json_proto [18:26:45]process_json_proto [18:26:45]json parsed OK: [18:26:45]protocol is kg_v1.0 [18:26:45]action value=close_receipt [18:26:45]process_action close_receipt [18:26:45]cmd_close_receipt [18:26:45]MH_GetDate [18:26:45]Write to MH i2c: F0 00 00 F7 8C 72 [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: F0 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: F0 09 00 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: F0 09 00 F7 8C 00 72 91 1A 67 86 57 24 65 65 [18:26:45]GetLastDocTimeStamp 1729794352 [18:26:45]current date 1729794418 [18:26:45]FM_GetShiftState [18:26:45]SAM_PROTO_GetShiftState [18:26:45]wFMCommunicate request_size=4 [18:26:45]MH_SAM_APDU [18:26:45]CAPDU: 80 13 01 00 [18:26:45]Write to MH i2c: E2 08 00 F8 8C 80 13 01 00 00 00 00 00 01 [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:45]Read from MH i2c: E2 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: E2 0E 00 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: E2 0E 00 F8 8C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 2B [18:26:45]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:26:45]wFMCommunicate OK [18:26:45]SAM_PROTO_GetShiftState done [18:26:45]FM_GetShiftState done [18:26:45]opened in 1729729801 [18:26:45]opened+sec_in_day 1729816201 [18:26:45]quantity*price = 100015 [18:26:45]sum+1 = 100017 [18:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 174 24.10.2024 18:26 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74730 ФПД: 23545364834096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182658&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74730&fm=23545364834096&tin=02508201610067®Number=0000000000091691&sum=100000 [18:26:46]StoreToDocumentArchive [18:26:46]shift 510 fd 74730 [18:26:46]save to /storage/0510/doc_00074730 [18:26:46]save last doc name /storage/0510/doc_00074730 to /storage/kkm_last_doc_name [18:26:46]save OK [18:26:46]Clear old archive folders... [18:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:46]tlvbuf is 007C6530 [18:26:46]SAM_PROTO_ClearQueue [18:26:46]wFMCommunicate request_size=4 [18:26:46]MH_SAM_APDU [18:26:46]CAPDU: 80 09 00 00 [18:26:46]Write to MH i2c: E2 08 00 05 8D 80 09 00 00 00 00 00 00 04 [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:46]Read from MH i2c: E2 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 03 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 03 00 05 8D 00 90 00 06 [18:26:46]RAPDU: 90 00 [18:26:46]wFMCommunicate OK [18:26:46]SAM_PROTO_ClearQueue done [18:26:46]KKMCreateOFDPacket [18:26:46]OFDProtocolAddRootSTLVToBuf [18:26:46]FM_MakeSignedData [18:26:46]FM_MakeSignedData [18:26:46]SAM_PROTO_SignData [18:26:46]wFMCommunicate request_size=4 [18:26:46]MH_SAM_APDU [18:26:46]CAPDU: 80 0D 01 02 [18:26:46]Write to MH i2c: E2 08 00 06 8D 80 0D 01 02 00 00 00 00 0C [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:46]Read from MH i2c: E2 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 03 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 03 00 06 8D 00 90 00 07 [18:26:46]RAPDU: 90 00 [18:26:46]wFMCommunicate OK [18:26:46]wFMCommunicate request_size=255 [18:26:46]MH_SAM_APDU [18:26: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 72 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EA 23 01 00 35 04 06 00 15 [18:26:46]Write to MH i2c: E2 02 01 07 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 72 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EA 23 01 00 35 04 06 00 15 00 00 EF [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 07 8D 00 90 00 08 [18:26:47]RAPDU: 90 00 [18:26:47]wFMCommunicate OK [18:26:47]wFMCommunicate request_size=10 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 0D 02 02 05 6A 15 1B 67 30 [18:26:47]Write to MH i2c: E2 0D 00 08 8D 80 0D 02 02 05 00 6A 15 1B 67 30 00 00 4A [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 08 8D 00 90 00 09 [18:26:47]RAPDU: 90 00 [18:26:47]wFMCommunicate OK [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 0D 03 02 [18:26:47]Write to MH i2c: E2 08 00 09 8D 80 0D 03 02 00 00 00 00 11 [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 0B 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 0B 00 09 8D 00 BE 72 F2 D1 8D 5B 38 A2 90 00 C7 [18:26:47]RAPDU: BE 72 F2 D1 8D 5B 38 A2 90 00 [18:26:47]wFMCommunicate OK [18:26:47]SAM_PROTO_SignData done [18:26:47]FM_MakeSignedData done [18:26:47]CreateOFDProtocolMessage [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 11 00 00 [18:26:47]Write to MH i2c: E2 08 00 0A 8D 80 11 00 00 00 00 00 00 11 [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 17 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 17 00 0A 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 69 [18:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:26:47]wFMCommunicate OK [18:26:47]CreateOFDProtocolMessage done [18:26:47]OFDSenderStorePacket 74730 [18:26:47]StoreOFDPacket docnum=74730 [18:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6A 5C 07 01 03 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 72 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EA 23 01 00 35 04 06 00 15 6A 15 1B 67 30 BE 72 F2 D1 8D 5B 38 A2 [18:26:47]CheckFolder [18:26:47]dirname=/storage/ofd_packets [18:26:47]CheckFolder done [18:26:47]ProducePacketName [18:26:47]name=ofd_packets/00074730 [18:26:47]NVStorageSaveData ofd_packets/00074730 [18:26:47]File name is /storage/ofd_packets/00074730 [18:26:47]Write 301 bytes [18:26:47]NVStorageSaveData done [18:26:47]OFDSenderStorePacket done [18:26:47]KKMCreateOFDPacket done [18:26:47]NVStorageSaveData kkm_last_timestamp [18:26:47]File name is /storage/kkm_last_timestamp [18:26:47]Write 4 bytes [18:26:47]NVStorageSaveData done [18:26:47]ExternCall_PrintAddStr [18:26:47]wPrintStart [18:26:47]Write to MH i2c: 01 00 00 0B 8D 98 [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: 01 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: 01 07 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: 01 07 00 0B 8D 00 00 00 00 00 FF 0F AD [18:26:47]RasterBufferAndPrint [18:26:47]line Счет N : (1)190699 [18:26:47]line ИНН: 02508201610067 [18:26:47]line Контрольно-Кассовый Чек [18:26:47]line ПРОДАЖА [18:26:47]line ТРК (МРК, ГНК) : 21 [18:26:47]line Товар: 2710124130 [18:26:47]line Аи-92-К-5 [18:26:47]line 14.950 * 66.90 [18:26:47]line = 1000.16 [18:26:47]line НДС 12% НСП 1% [18:26:47]line > о реализуемом товаре [18:26:47]line ОКРУГЛЕНИЕ: -0.16 [18:26:47]line ИТОГО: 1000.00 [18:26:47]line Внесено: 1000.00 [18:26:47]line СДАЧА: 0.00 [18:26:47]line НСП 1% : 8.85 [18:26:47]line НДС 12% : 106.21 [18:26:47]line Наличными: 1000.00 [18:26:47]line Безнал.: 0.00 [18:26:47]line Место: АЗС № 142 "Партнер Нефть" [18:26:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:26:47]line СНО: Общий режим [18:26:47]line Чек 174 24.10.2024 18:26 [18:26:47]line Смена: 510 ФФД: 1.0 [18:26:47]line ЗНМ: 0300000089 [18:26:47]line РНМ: 0000000000091691 [18:26:47]line Версия ККМ: 001 [18:26:47]line ФМ: 0000000000871795 [18:26:47]line ФД: 74730 [18:26:47]line ФПД: 23545364834096 [18:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182658&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74730&fm=23545364834096&tin=02508201610067®Number=0000000000091691&sum=100000 [18:26:47]written 0, free lines is 4095 [18:26:47]OFD Sender: Processing packet 74730 [packets to send 13, broken 12] [18:26:47]ProducePacketName [18:26:47]name=ofd_packets/00074730 [18:26:47]OFD Sender: To server: pG, [18:26:47]CommunicateWithHost lk.salyk.kg:30040 [18:26:47]ConnectInit lk.salyk.kg [18:26:47]Connected sock=10 [18:26:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6A 5C 07 01 03 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 72 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EA 23 01 00 35 04 06 00 15 6A 15 1B 67 30 BE 72 F2 D1 8D 5B 38 A2 [18:26:48]Write to MH i2c: 01 00 00 36 8D C3 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 07 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 07 00 36 8D 00 00 00 00 00 A3 0C 79 [18:26:48]RasterBufferAndPrint [18:26:48]line [18:26:48]line [18:26:48]line [18:26:48]line [18:26:48]line [18:26:48]written 0, free lines is 3241 [18:26:48]MH_Cut [18:26:48]Write to MH i2c: D1 01 00 3D 8D 01 9C [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: D1 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: D1 01 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: D1 01 00 3D 8D 00 9B [18:26:48]Write to MH i2c: 01 00 00 3E 8D CB [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** Cut start [18:26:48]*** Partial cut [18:26:48]*** CUTSNS_PIN = 1 [18:26:49]*** CUTSNS_PIN = 0 [18:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 21 6C 47 00 22 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EA 23 01 00 F4 03 04 00 F4 38 1A 67 B6 04 01 00 00 75 43 0E D4 9A 27 27 26 [18:26:49]CommunicateWithHost err = 0 [18:26:49]CheckOFDResponse [18:26:49]1017 (14) - 77093643461234 [18:26:49]1041 (16) - 0000000000871795 [18:26:49]1040 (4) - 74730 [18:26:49]1012 (4) - 24.10.2024 12:09 [18:26:49]1206 (1) - 0 [18:26:49]OFD Sender: Remove packet 74730 [18:26:49]ProducePacketName [18:26:49]name=ofd_packets/00074730 [18:26:49]NVStorageDeleteData [18:26:49]*** Brake cut motor [18:26:49]OFD Sender: No OFD packet to send [18:26:49]Read from MH i2c: 01 [18:26:49]MH_I2C_Read... [18:26:49]*** Stop cut motor [18:26:49]*** Cut end [18:26:49]Read from MH i2c: 01 07 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: 01 07 00 3E 8D 00 00 00 00 00 FF 0F E0 [18:26:49]process_action close_receipt done [18:26:49]requested_data is exist [18:26:49]produce_requested_data [18:26:49]requested_item fm.sn is exist - process it [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 11 00 00 [18:26:49]Write to MH i2c: E2 08 00 3F 8D 80 11 00 00 00 00 00 00 46 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:49]Read from MH i2c: E2 17 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 17 00 3F 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9E [18:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:26:49]wFMCommunicate OK [18:26:49]requested_item fd.num is exist - process it [18:26:49]SAM_PROTO_GetFieldsCounters [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 13 00 00 [18:26:49]Write to MH i2c: E2 08 00 40 8D 80 13 00 00 00 00 00 00 49 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 62 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 62 00 40 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EA 23 01 00 0E 04 04 00 FE 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 87 [18:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EA 23 01 00 0E 04 04 00 FE 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 [18:26:49]wFMCommunicate OK [18:26:49]SAM_PROTO_GetFieldsCounters done [18:26:49]requested_item shift.num is exist - process it [18:26:49]requested_item shift.opened is exist - process it [18:26:49]req_shift_opened [18:26:49]FM_GetShiftState [18:26:49]SAM_PROTO_GetShiftState [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 13 01 00 [18:26:49]Write to MH i2c: E2 08 00 41 8D 80 13 01 00 00 00 00 00 4B [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 0E 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 0E 00 41 8D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 75 [18:26:49]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:26:49]wFMCommunicate OK [18:26:49]SAM_PROTO_GetShiftState done [18:26:49]FM_GetShiftState done [18:26:49]req_shift_opened done [18:26:49]requested_item shift.open_date is exist - process it [18:26:49]req_shift_open_date [18:26:49]req_shift_open_date done [18:26:49]produce_requested_data done [18:26:49]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74730,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:26:49]process_action_free close_receipt [18:26:49]json_value_free [18:26:49]json_value_free done [18:26:49]process_json_proto returns [18:26:49]Send response to host [18:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74730,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:26:49]free response buf [18:26:49]execute_script done [18:26:49]execute_script returns [18:26:49]free content buf [18:26:49]Sock 9.Close socket [18:26:49]Sock 9.Thread stoped [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]int [18:27:04]Write to MH i2c: 01 00 00 42 8D CF [18:27:04]*** FLAG_PRN_KEY set [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 42 8D 00 08 00 00 00 FF 0F EC [18:27:04]state=0 [18:27:04]Key pressed [18:27:04]Feed [18:27:04]Write to MH i2c: D8 00 00 43 8D A7 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D8 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D8 01 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D8 01 00 43 8D 00 A8 [18:27:04]int [18:27:04]Write to MH i2c: 01 00 00 44 8D D1 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 44 8D 00 48 00 00 00 3C 00 5C [18:27:04]state=2 [18:27:04]Key pressed [18:27:04]OFD Sender: No OFD packet to send [18:27:04]int [18:27:04]Write to MH i2c: 01 00 00 45 8D D2 [18:27:04]*** FLAG_PRN_KEY reset [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 45 8D 00 00 00 00 00 F6 0F DE [18:27:04]state=2 [18:27:04]Stop feed [18:27:04]int [18:27:04]Write to MH i2c: 01 00 00 46 8D D3 [18:27:04]*** FLAG_PRN_KEY set [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 46 8D 00 08 00 00 00 FF 0F F0 [18:27:04]state=0 [18:27:04]Key pressed [18:27:04]Feed [18:27:04]Write to MH i2c: D8 00 00 47 8D AB [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D8 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D8 01 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D8 01 00 47 8D 00 AC [18:27:04]int [18:27:04]Write to MH i2c: 01 00 00 48 8D D5 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 48 8D 00 48 00 00 00 3C 00 60 [18:27:04]state=2 [18:27:04]Key pressed [18:27:04]int [18:27:04]Write to MH i2c: 01 00 00 49 8D D6 [18:27:04]*** FLAG_PRN_KEY reset [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 49 8D 00 00 00 00 00 F6 0F E2 [18:27:04]state=2 [18:27:04]Stop feed [18:27:05]int [18:27:05]Write to MH i2c: 01 00 00 4A 8D D7 [18:27:05]*** FLAG_PRN_KEY set [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 4A 8D 00 08 00 00 00 FF 0F F4 [18:27:05]state=0 [18:27:05]Key pressed [18:27:05]Feed [18:27:05]Write to MH i2c: D8 00 00 4B 8D AF [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D8 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D8 01 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D8 01 00 4B 8D 00 B0 [18:27:05]int [18:27:05]Write to MH i2c: 01 00 00 4C 8D D9 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 4C 8D 00 48 00 00 00 3C 00 64 [18:27:05]state=2 [18:27:05]Key pressed [18:27:05]int [18:27:05]Write to MH i2c: 01 00 00 4D 8D DA [18:27:05]*** FLAG_PRN_KEY reset [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 4D 8D 00 00 00 00 00 F6 0F E6 [18:27:05]state=2 [18:27:05]Stop feed [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:58]accept exits with 8 [18:27:58]New connection [18:27:58]New thread 3066662244 created [18:27:58]Thread 3066805604 joined [18:27:58]Waiting for new connection... [18:27:58] Sock 8.Parse request [18:27:58]Sock 8.Check first char [18:27:58]Sock 8.First char is OK [18:27:58]request: POST /json_proto HTTP/1.0 [18:27:58]Method: POST [18:27:58]URL: /json_proto [18:27:58]Method is POST - this is cgi request [18:27:58]url: /json_proto [18:27:58]query_string will be loaded in cgi processing [18:27:58]execute_cgi json_proto POST (null) [18:27:58]execute_cgi path=json_proto method=POST [18:27:58]POST find Content-Length [18:27:58]Host: 172.17.39.131:8080 [18:27:58]Content-Length: 677 [18:27:58]Content-Type: application/json [18:27:58] [18:27:58]POST finish read [18:27:58]Found Content-Length = 677 [18:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:58]execute_script... [18:27: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)190700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:58]POST & json_proto [18:27:58]process_json_proto [18:27:58]json parsed OK: [18:27:58]protocol is kg_v1.0 [18:27:58]action value=close_receipt [18:27:58]process_action close_receipt [18:27:58]cmd_close_receipt [18:27:58]MH_GetDate [18:27:58]Write to MH i2c: F0 00 00 4E 8D CA [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: F0 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: F0 09 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: F0 09 00 4E 8D 00 BB 91 1A 67 86 57 24 65 06 [18:27:58]GetLastDocTimeStamp 1729794418 [18:27:58]current date 1729794491 [18:27:58]FM_GetShiftState [18:27:58]SAM_PROTO_GetShiftState [18:27:58]wFMCommunicate request_size=4 [18:27:58]MH_SAM_APDU [18:27:58]CAPDU: 80 13 01 00 [18:27:58]Write to MH i2c: E2 08 00 4F 8D 80 13 01 00 00 00 00 00 59 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:58]Read from MH i2c: E2 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 0E 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 0E 00 4F 8D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 83 [18:27:58]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:27:58]wFMCommunicate OK [18:27:58]SAM_PROTO_GetShiftState done [18:27:58]FM_GetShiftState done [18:27:58]opened in 1729729801 [18:27:58]opened+sec_in_day 1729816201 [18:27:58]quantity*price = 20003 [18:27:58]sum+1 = 20004 [18:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 175 24.10.2024 18:28 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74731 ФПД: 35355786155015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182811&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74731&fm=35355786155015&tin=02508201610067®Number=0000000000091691&sum=20000 [18:28:00]StoreToDocumentArchive [18:28:00]shift 510 fd 74731 [18:28:00]save to /storage/0510/doc_00074731 [18:28:00]save last doc name /storage/0510/doc_00074731 to /storage/kkm_last_doc_name [18:28:00]save OK [18:28:00]Clear old archive folders... [18:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:00]tlvbuf is 00A9DC80 [18:28:00]SAM_PROTO_ClearQueue [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 09 00 00 [18:28:00]Write to MH i2c: E2 08 00 5C 8D 80 09 00 00 00 00 00 00 5B [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 5C 8D 00 90 00 5D [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]SAM_PROTO_ClearQueue done [18:28:00]KKMCreateOFDPacket [18:28:00]OFDProtocolAddRootSTLVToBuf [18:28:00]FM_MakeSignedData [18:28:00]FM_MakeSignedData [18:28:00]SAM_PROTO_SignData [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 0D 01 02 [18:28:00]Write to MH i2c: E2 08 00 5D 8D 80 0D 01 02 00 00 00 00 63 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 5D 8D 00 90 00 5E [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]wFMCommunicate request_size=255 [18:28:00]MH_SAM_APDU [18:28: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BB 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EB 23 01 00 35 04 06 00 20 [18:28:00]Write to MH i2c: E2 02 01 5E 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BB 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EB 23 01 00 35 04 06 00 20 00 00 64 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 5E 8D 00 90 00 5F [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]wFMCommunicate request_size=10 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 0D 02 02 05 27 E9 13 14 07 [18:28:00]Write to MH i2c: E2 0D 00 5F 8D 80 0D 02 02 05 00 27 E9 13 14 07 00 00 AE [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 5F 8D 00 90 00 60 [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 0D 03 02 [18:28:00]Write to MH i2c: E2 08 00 60 8D 80 0D 03 02 00 00 00 00 68 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 0B 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 0B 00 60 8D 00 D8 A8 2F 08 7A 76 B5 CD 90 00 92 [18:28:00]RAPDU: D8 A8 2F 08 7A 76 B5 CD 90 00 [18:28:00]wFMCommunicate OK [18:28:00]SAM_PROTO_SignData done [18:28:00]FM_MakeSignedData done [18:28:00]CreateOFDProtocolMessage [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 11 00 00 [18:28:00]Write to MH i2c: E2 08 00 61 8D 80 11 00 00 00 00 00 00 68 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 17 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 17 00 61 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C0 [18:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:28:00]wFMCommunicate OK [18:28:00]CreateOFDProtocolMessage done [18:28:00]OFDSenderStorePacket 74731 [18:28:00]StoreOFDPacket docnum=74731 [18:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B4 A3 07 01 56 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BB 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EB 23 01 00 35 04 06 00 20 27 E9 13 14 07 D8 A8 2F 08 7A 76 B5 CD [18:28:00]CheckFolder [18:28:00]dirname=/storage/ofd_packets [18:28:00]CheckFolder done [18:28:00]ProducePacketName [18:28:00]name=ofd_packets/00074731 [18:28:00]NVStorageSaveData ofd_packets/00074731 [18:28:00]File name is /storage/ofd_packets/00074731 [18:28:00]Write 301 bytes [18:28:00]NVStorageSaveData done [18:28:00]OFDSenderStorePacket done [18:28:00]KKMCreateOFDPacket done [18:28:00]NVStorageSaveData kkm_last_timestamp [18:28:00]File name is /storage/kkm_last_timestamp [18:28:00]Write 4 bytes [18:28:00]NVStorageSaveData done [18:28:00]ExternCall_PrintAddStr [18:28:00]wPrintStart [18:28:00]Write to MH i2c: 01 00 00 62 8D EF [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: 01 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: 01 07 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: 01 07 00 62 8D 00 00 00 00 00 FF 0F 04 [18:28:00]RasterBufferAndPrint [18:28:00]line Счет N : (1)190700 [18:28:00]line ИНН: 02508201610067 [18:28:00]line Контрольно-Кассовый Чек [18:28:00]line ПРОДАЖА [18:28:00]line ТРК (МРК, ГНК) : 21 [18:28:00]line Товар: 2710124130 [18:28:00]line Аи-92-К-5 [18:28:00]line 2.990 * 66.90 [18:28:00]line = 200.03 [18:28:00]line НДС 12% НСП 1% [18:28:00]line > о реализуемом товаре [18:28:00]line ОКРУГЛЕНИЕ: -0.03 [18:28:00]line ИТОГО: 200.00 [18:28:00]line Внесено: 200.00 [18:28:00]line СДАЧА: 0.00 [18:28:00]line НСП 1% : 1.77 [18:28:00]line НДС 12% : 21.24 [18:28:00]line Наличными: 200.00 [18:28:00]line Безнал.: 0.00 [18:28:00]line Место: АЗС № 142 "Партнер Нефть" [18:28:00]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:28:00]line СНО: Общий режим [18:28:00]line Чек 175 24.10.2024 18:28 [18:28:00]line Смена: 510 ФФД: 1.0 [18:28:00]line ЗНМ: 0300000089 [18:28:00]line РНМ: 0000000000091691 [18:28:00]line Версия ККМ: 001 [18:28:00]line ФМ: 0000000000871795 [18:28:00]line ФД: 74731 [18:28:00]line ФПД: 35355786155015 [18:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182811&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74731&fm=35355786155015&tin=02508201610067®Number=0000000000091691&sum=20000 [18:28:00]written 0, free lines is 4095 [18:28:00]OFD Sender: Processing packet 74731 [packets to send 13, broken 12] [18:28:00]ProducePacketName [18:28:00]name=ofd_packets/00074731 [18:28:00]OFD Sender: To server: pG, [18:28:00]CommunicateWithHost lk.salyk.kg:30040 [18:28:00]ConnectInit lk.salyk.kg [18:28:01]Connected sock=10 [18:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B4 A3 07 01 56 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BB 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EB 23 01 00 35 04 06 00 20 27 E9 13 14 07 D8 A8 2F 08 7A 76 B5 CD [18:28:01]Write to MH i2c: 01 00 00 8D 8D 1A [18:28:01]Write i2c OK [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: 01 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: 01 07 00 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: 01 07 00 8D 8D 00 00 00 00 00 A5 0C D2 [18:28:01]RasterBufferAndPrint [18:28:01]line [18:28:01]line [18:28:01]line [18:28:01]line [18:28:01]line [18:28:01]written 0, free lines is 3245 [18:28:01]MH_Cut [18:28:01]Write to MH i2c: D1 01 00 94 8D 01 F3 [18:28:01]Write i2c OK [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: D1 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: D1 01 00 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: D1 01 00 94 8D 00 F2 [18:28:01]Write to MH i2c: 01 00 00 95 8D 22 [18:28:01]Write i2c OK [18:28:01]MH_I2C_Read... [18:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 5C AA 47 00 C2 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EB 23 01 00 F4 03 04 00 3C 39 1A 67 B6 04 01 00 00 06 20 B5 CD B9 74 36 A5 [18:28:01]CommunicateWithHost err = 0 [18:28:01]CheckOFDResponse [18:28:01]1017 (14) - 77093643461234 [18:28:01]1041 (16) - 0000000000871795 [18:28:01]1040 (4) - 74731 [18:28:01]1012 (4) - 24.10.2024 12:10 [18:28:01]1206 (1) - 0 [18:28:01]OFD Sender: Remove packet 74731 [18:28:01]ProducePacketName [18:28:01]name=ofd_packets/00074731 [18:28:01]NVStorageDeleteData [18:28:01]OFD Sender: No OFD packet to send [18:28:02]*** Cut start [18:28:02]*** Partial cut [18:28:02]*** CUTSNS_PIN = 1 [18:28:02]*** CUTSNS_PIN = 0 [18:28:02]*** Brake cut motor [18:28:02]Read from MH i2c: 01 [18:28:02]MH_I2C_Read... [18:28:02]*** Stop cut motor [18:28:02]*** Cut end [18:28:02]Read from MH i2c: 01 07 00 [18:28:02]MH_I2C_Read... [18:28:02]Read from MH i2c: 01 07 00 95 8D 00 00 00 00 00 FF 0F 37 [18:28:02]process_action close_receipt done [18:28:02]requested_data is exist [18:28:02]produce_requested_data [18:28:02]requested_item fm.sn is exist - process it [18:28:02]wFMCommunicate request_size=4 [18:28:02]MH_SAM_APDU [18:28:02]CAPDU: 80 11 00 00 [18:28:02]Write to MH i2c: E2 08 00 96 8D 80 11 00 00 00 00 00 00 9D [18:28:02]Write i2c OK [18:28:02]MH_I2C_Read... [18:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:02]Read from MH i2c: E2 [18:28:02]MH_I2C_Read... [18:28:02]Read from MH i2c: E2 17 00 [18:28:02]MH_I2C_Read... [18:28:02]Read from MH i2c: E2 17 00 96 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F5 [18:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:28:02]wFMCommunicate OK [18:28:02]requested_item fd.num is exist - process it [18:28:02]SAM_PROTO_GetFieldsCounters [18:28:02]wFMCommunicate request_size=4 [18:28:02]MH_SAM_APDU [18:28:02]CAPDU: 80 13 00 00 [18:28:02]Write to MH i2c: E2 08 00 97 8D 80 13 00 00 00 00 00 00 A0 [18:28:02]Write i2c OK [18:28:02]MH_I2C_Read... [18:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:03]Read from MH i2c: E2 [18:28:03]MH_I2C_Read... [18:28:03]Read from MH i2c: E2 62 00 [18:28:03]MH_I2C_Read... [18:28:03]Read from MH i2c: E2 62 00 97 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EB 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [18:28:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EB 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:03]wFMCommunicate OK [18:28:03]SAM_PROTO_GetFieldsCounters done [18:28:03]requested_item shift.num is exist - process it [18:28:03]requested_item shift.opened is exist - process it [18:28:03]req_shift_opened [18:28:03]FM_GetShiftState [18:28:03]SAM_PROTO_GetShiftState [18:28:03]wFMCommunicate request_size=4 [18:28:03]MH_SAM_APDU [18:28:03]CAPDU: 80 13 01 00 [18:28:03]Write to MH i2c: E2 08 00 98 8D 80 13 01 00 00 00 00 00 A2 [18:28:03]Write i2c OK [18:28:03]MH_I2C_Read... [18:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:03]Read from MH i2c: E2 [18:28:03]MH_I2C_Read... [18:28:03]Read from MH i2c: E2 0E 00 [18:28:03]MH_I2C_Read... [18:28:03]Read from MH i2c: E2 0E 00 98 8D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 CC [18:28:03]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:28:03]wFMCommunicate OK [18:28:03]SAM_PROTO_GetShiftState done [18:28:03]FM_GetShiftState done [18:28:03]req_shift_opened done [18:28:03]requested_item shift.open_date is exist - process it [18:28:03]req_shift_open_date [18:28:03]req_shift_open_date done [18:28:03]produce_requested_data done [18:28:03]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74731,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:28:03]process_action_free close_receipt [18:28:03]json_value_free [18:28:03]json_value_free done [18:28:03]process_json_proto returns [18:28:03]Send response to host [18:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74731,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:28:03]free response buf [18:28:03]execute_script done [18:28:03]execute_script returns [18:28:03]free content buf [18:28:03]Sock 8.Close socket [18:28:03]Sock 8.Thread stoped [18:28:04]int [18:28:04]Write to MH i2c: 01 00 00 99 8D 26 [18:28:04]*** FLAG_PRN_KEY set [18:28:04]Write i2c OK [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: 01 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: 01 07 00 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: 01 07 00 99 8D 00 08 00 00 00 FF 0F 43 [18:28:04]state=0 [18:28:04]Key pressed [18:28:04]Feed [18:28:04]Write to MH i2c: D8 00 00 9A 8D FE [18:28:04]Write i2c OK [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: D8 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: D8 01 00 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: D8 01 00 9A 8D 00 FF [18:28:04]int [18:28:04]Write to MH i2c: 01 00 00 9B 8D 28 [18:28:04]Write i2c OK [18:28:04]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 9B 8D 00 48 00 00 00 3C 00 B3 [18:28:05]state=2 [18:28:05]Key pressed [18:28:05]int [18:28:05]Write to MH i2c: 01 00 00 9C 8D 29 [18:28:05]*** FLAG_PRN_KEY reset [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 9C 8D 00 00 00 00 00 FD 0F 3C [18:28:05]state=2 [18:28:05]Stop feed [18:28:05]int [18:28:05]Write to MH i2c: 01 00 00 9D 8D 2A [18:28:05]*** FLAG_PRN_KEY set [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 9D 8D 00 08 00 00 00 FF 0F 47 [18:28:05]state=0 [18:28:05]Key pressed [18:28:05]Feed [18:28:05]Write to MH i2c: D8 00 00 9E 8D 02 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: D8 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: D8 01 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: D8 01 00 9E 8D 00 03 [18:28:05]int [18:28:05]Write to MH i2c: 01 00 00 9F 8D 2C [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 9F 8D 00 48 00 00 00 3C 00 B7 [18:28:05]state=2 [18:28:05]Key pressed [18:28:05]int [18:28:05]Write to MH i2c: 01 00 00 A0 8D 2D [18:28:05]*** FLAG_PRN_KEY reset [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 A0 8D 00 00 00 00 00 F9 0F 3C [18:28:05]state=2 [18:28:05]Stop feed [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:28:58]accept exits with 9 [18:28:58]New connection [18:28:58]New thread 3066805604 created [18:28:58]Thread 3066662244 joined [18:28:58]Waiting for new connection... [18:28:58] Sock 9.Parse request [18:28:58]Sock 9.Check first char [18:28:58]Sock 9.First char is OK [18:28:58]request: POST /json_proto HTTP/1.0 [18:28:58]Method: POST [18:28:58]URL: /json_proto [18:28:58]Method is POST - this is cgi request [18:28:58]url: /json_proto [18:28:58]query_string will be loaded in cgi processing [18:28:58]execute_cgi json_proto POST (null) [18:28:58]execute_cgi path=json_proto method=POST [18:28:58]POST find Content-Length [18:28:58]Host: 172.17.39.131:8080 [18:28:58]Content-Length: 677 [18:28:58]Content-Type: application/json [18:28:58] [18:28:58]POST finish read [18:28:58]Found Content-Length = 677 [18:28:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:58]execute_script... [18:28: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)190701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:58]POST & json_proto [18:28:58]process_json_proto [18:28:58]json parsed OK: [18:28:58]protocol is kg_v1.0 [18:28:58]action value=close_receipt [18:28:58]process_action close_receipt [18:28:58]cmd_close_receipt [18:28:58]MH_GetDate [18:28:58]Write to MH i2c: F0 00 00 A1 8D 1D [18:28:58]Write i2c OK [18:28:58]MH_I2C_Read... [18:28:58]Read from MH i2c: F0 [18:28:58]MH_I2C_Read... [18:28:58]Read from MH i2c: F0 09 00 [18:28:58]MH_I2C_Read... [18:28:58]Read from MH i2c: F0 09 00 A1 8D 00 F6 91 1A 67 86 57 24 65 94 [18:28:58]GetLastDocTimeStamp 1729794491 [18:28:58]current date 1729794550 [18:28:58]FM_GetShiftState [18:28:58]SAM_PROTO_GetShiftState [18:28:58]wFMCommunicate request_size=4 [18:28:58]MH_SAM_APDU [18:28:58]CAPDU: 80 13 01 00 [18:28:58]Write to MH i2c: E2 08 00 A2 8D 80 13 01 00 00 00 00 00 AC [18:28:58]Write i2c OK [18:28:58]MH_I2C_Read... [18:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:58]Read from MH i2c: E2 [18:28:58]MH_I2C_Read... [18:28:58]Read from MH i2c: E2 0E 00 [18:28:58]MH_I2C_Read... [18:28:58]Read from MH i2c: E2 0E 00 A2 8D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D6 [18:28:58]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:28:58]wFMCommunicate OK [18:28:58]SAM_PROTO_GetShiftState done [18:28:58]FM_GetShiftState done [18:28:58]opened in 1729729801 [18:28:58]opened+sec_in_day 1729816201 [18:28:58]quantity*price = 50041 [18:28:58]sum+1 = 50042 [18:28:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 176 24.10.2024 18:29 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74732 ФПД: 34132201029914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182910&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74732&fm=34132201029914&tin=02508201610067®Number=0000000000091691&sum=50000 [18:28:59]StoreToDocumentArchive [18:28:59]shift 510 fd 74732 [18:28:59]save to /storage/0510/doc_00074732 [18:28:59]save last doc name /storage/0510/doc_00074732 to /storage/kkm_last_doc_name [18:28:59]save OK [18:28:59]Clear old archive folders... [18:28:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:59]tlvbuf is 007C1B10 [18:28:59]SAM_PROTO_ClearQueue [18:28:59]wFMCommunicate request_size=4 [18:28:59]MH_SAM_APDU [18:28:59]CAPDU: 80 09 00 00 [18:28:59]Write to MH i2c: E2 08 00 AF 8D 80 09 00 00 00 00 00 00 AE [18:28:59]Write i2c OK [18:28:59]MH_I2C_Read... [18:28:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:59]Read from MH i2c: E2 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 AF 8D 00 90 00 B0 [18:28:59]RAPDU: 90 00 [18:28:59]wFMCommunicate OK [18:28:59]SAM_PROTO_ClearQueue done [18:28:59]KKMCreateOFDPacket [18:28:59]OFDProtocolAddRootSTLVToBuf [18:28:59]FM_MakeSignedData [18:28:59]FM_MakeSignedData [18:28:59]SAM_PROTO_SignData [18:28:59]wFMCommunicate request_size=4 [18:28:59]MH_SAM_APDU [18:28:59]CAPDU: 80 0D 01 02 [18:28:59]Write to MH i2c: E2 08 00 B0 8D 80 0D 01 02 00 00 00 00 B6 [18:28:59]Write i2c OK [18:28:59]MH_I2C_Read... [18:28:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:59]Read from MH i2c: E2 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 B0 8D 00 90 00 B1 [18:28:59]RAPDU: 90 00 [18:28:59]wFMCommunicate OK [18:28:59]wFMCommunicate request_size=255 [18:28:59]MH_SAM_APDU [18:28: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F6 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EC 23 01 00 35 04 06 00 1F [18:28:59]Write to MH i2c: E2 02 01 B1 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F6 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EC 23 01 00 35 04 06 00 1F 00 00 31 [18:28:59]Write i2c OK [18:28:59]MH_I2C_Read... [18:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:59]Read from MH i2c: E2 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 B1 8D 00 90 00 B2 [18:28:59]RAPDU: 90 00 [18:28:59]wFMCommunicate OK [18:28:59]wFMCommunicate request_size=10 [18:28:59]MH_SAM_APDU [18:28:59]CAPDU: 80 0D 02 02 05 0B 05 B7 C1 1A [18:28:59]Write to MH i2c: E2 0D 00 B2 8D 80 0D 02 02 05 00 0B 05 B7 C1 1A 00 00 65 [18:28:59]Write i2c OK [18:28:59]MH_I2C_Read... [18:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:59]Read from MH i2c: E2 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 03 00 B2 8D 00 90 00 B3 [18:28:59]RAPDU: 90 00 [18:28:59]wFMCommunicate OK [18:28:59]wFMCommunicate request_size=4 [18:28:59]MH_SAM_APDU [18:28:59]CAPDU: 80 0D 03 02 [18:28:59]Write to MH i2c: E2 08 00 B3 8D 80 0D 03 02 00 00 00 00 BB [18:28:59]Write i2c OK [18:28:59]MH_I2C_Read... [18:28:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:59]Read from MH i2c: E2 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 0B 00 [18:28:59]MH_I2C_Read... [18:28:59]Read from MH i2c: E2 0B 00 B3 8D 00 92 B9 61 22 77 80 BF 48 90 00 88 [18:28:59]RAPDU: 92 B9 61 22 77 80 BF 48 90 00 [18:28:59]wFMCommunicate OK [18:28:59]SAM_PROTO_SignData done [18:28:59]FM_MakeSignedData done [18:28:59]CreateOFDProtocolMessage [18:28:59]wFMCommunicate request_size=4 [18:28:59]MH_SAM_APDU [18:28:59]CAPDU: 80 11 00 00 [18:28:59]Write to MH i2c: E2 08 00 B4 8D 80 11 00 00 00 00 00 00 BB [18:28:59]Write i2c OK [18:28:59]MH_I2C_Read... [18:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:00]Read from MH i2c: E2 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: E2 17 00 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: E2 17 00 B4 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 13 [18:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:29:00]wFMCommunicate OK [18:29:00]CreateOFDProtocolMessage done [18:29:00]OFDSenderStorePacket 74732 [18:29:00]StoreOFDPacket docnum=74732 [18:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 50 6C 07 01 B1 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F6 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EC 23 01 00 35 04 06 00 1F 0B 05 B7 C1 1A 92 B9 61 22 77 80 BF 48 [18:29:00]CheckFolder [18:29:00]dirname=/storage/ofd_packets [18:29:00]CheckFolder done [18:29:00]ProducePacketName [18:29:00]name=ofd_packets/00074732 [18:29:00]NVStorageSaveData ofd_packets/00074732 [18:29:00]File name is /storage/ofd_packets/00074732 [18:29:00]Write 301 bytes [18:29:00]NVStorageSaveData done [18:29:00]OFDSenderStorePacket done [18:29:00]KKMCreateOFDPacket done [18:29:00]NVStorageSaveData kkm_last_timestamp [18:29:00]File name is /storage/kkm_last_timestamp [18:29:00]Write 4 bytes [18:29:00]NVStorageSaveData done [18:29:00]ExternCall_PrintAddStr [18:29:00]wPrintStart [18:29:00]Write to MH i2c: 01 00 00 B5 8D 42 [18:29:00]Write i2c OK [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: 01 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: 01 07 00 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: 01 07 00 B5 8D 00 00 00 00 00 FF 0F 57 [18:29:00]RasterBufferAndPrint [18:29:00]line Счет N : (1)190701 [18:29:00]line ИНН: 02508201610067 [18:29:00]line Контрольно-Кассовый Чек [18:29:00]line ПРОДАЖА [18:29:00]line ТРК (МРК, ГНК) : 21 [18:29:00]line Товар: 2710124130 [18:29:00]line Аи-92-К-5 [18:29:00]line 7.480 * 66.90 [18:29:00]line = 500.41 [18:29:00]line НДС 12% НСП 1% [18:29:00]line > о реализуемом товаре [18:29:00]line ОКРУГЛЕНИЕ: -0.41 [18:29:00]line ИТОГО: 500.00 [18:29:00]line Внесено: 500.00 [18:29:00]line СДАЧА: 0.00 [18:29:00]line НСП 1% : 4.43 [18:29:00]line НДС 12% : 53.14 [18:29:00]line Наличными: 500.00 [18:29:00]line Безнал.: 0.00 [18:29:00]line Место: АЗС № 142 "Партнер Нефть" [18:29:00]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:29:00]line СНО: Общий режим [18:29:00]line Чек 176 24.10.2024 18:29 [18:29:00]line Смена: 510 ФФД: 1.0 [18:29:00]line ЗНМ: 0300000089 [18:29:00]line РНМ: 0000000000091691 [18:29:00]line Версия ККМ: 001 [18:29:00]line ФМ: 0000000000871795 [18:29:00]line ФД: 74732 [18:29:00]line ФПД: 34132201029914 [18:29:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182910&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74732&fm=34132201029914&tin=02508201610067®Number=0000000000091691&sum=50000 [18:29:00]written 0, free lines is 4095 [18:29:00]OFD Sender: Processing packet 74732 [packets to send 13, broken 12] [18:29:00]ProducePacketName [18:29:00]name=ofd_packets/00074732 [18:29:00]OFD Sender: To server: pG, [18:29:00]CommunicateWithHost lk.salyk.kg:30040 [18:29:00]ConnectInit lk.salyk.kg [18:29:00]Connected sock=10 [18:29:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 50 6C 07 01 B1 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F6 91 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EC 23 01 00 35 04 06 00 1F 0B 05 B7 C1 1A 92 B9 61 22 77 80 BF 48 [18:29:00]Write to MH i2c: 01 00 00 E0 8D 6D [18:29:00]Write i2c OK [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: 01 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: 01 07 00 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: 01 07 00 E0 8D 00 00 00 00 00 A9 0C 29 [18:29:00]RasterBufferAndPrint [18:29:00]line [18:29:00]line [18:29:00]line [18:29:00]line [18:29:00]line [18:29:00]written 0, free lines is 3247 [18:29:00]MH_Cut [18:29:00]Write to MH i2c: D1 01 00 E7 8D 01 46 [18:29:00]Write i2c OK [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: D1 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: D1 01 00 [18:29:00]MH_I2C_Read... [18:29:00]Read from MH i2c: D1 01 00 E7 8D 00 45 [18:29:00]Write to MH i2c: 01 00 00 E8 8D 75 [18:29:00]Write i2c OK [18:29:00]MH_I2C_Read... [18:29:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 20 5E 47 00 8A 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EC 23 01 00 F4 03 04 00 78 39 1A 67 B6 04 01 00 00 90 5A 78 65 7D 5C 87 21 [18:29:00]CommunicateWithHost err = 0 [18:29:00]CheckOFDResponse [18:29:00]1017 (14) - 77093643461234 [18:29:00]1041 (16) - 0000000000871795 [18:29:00]1040 (4) - 74732 [18:29:00]1012 (4) - 24.10.2024 12:11 [18:29:00]1206 (1) - 0 [18:29:00]OFD Sender: Remove packet 74732 [18:29:00]ProducePacketName [18:29:00]name=ofd_packets/00074732 [18:29:00]NVStorageDeleteData [18:29:01]OFD Sender: No OFD packet to send [18:29:01]*** Cut start [18:29:01]*** Partial cut [18:29:01]*** CUTSNS_PIN = 1 [18:29:01]*** CUTSNS_PIN = 0 [18:29:01]*** Brake cut motor [18:29:02]Read from MH i2c: 01 [18:29:02]MH_I2C_Read... [18:29:02]*** Stop cut motor [18:29:02]*** Cut end [18:29:02]Read from MH i2c: 01 07 00 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: 01 07 00 E8 8D 00 00 00 00 00 FF 0F 8A [18:29:02]process_action close_receipt done [18:29:02]requested_data is exist [18:29:02]produce_requested_data [18:29:02]requested_item fm.sn is exist - process it [18:29:02]wFMCommunicate request_size=4 [18:29:02]MH_SAM_APDU [18:29:02]CAPDU: 80 11 00 00 [18:29:02]Write to MH i2c: E2 08 00 E9 8D 80 11 00 00 00 00 00 00 F0 [18:29:02]Write i2c OK [18:29:02]MH_I2C_Read... [18:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:02]Read from MH i2c: E2 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 17 00 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 17 00 E9 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 48 [18:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:29:02]wFMCommunicate OK [18:29:02]requested_item fd.num is exist - process it [18:29:02]SAM_PROTO_GetFieldsCounters [18:29:02]wFMCommunicate request_size=4 [18:29:02]MH_SAM_APDU [18:29:02]CAPDU: 80 13 00 00 [18:29:02]Write to MH i2c: E2 08 00 EA 8D 80 13 00 00 00 00 00 00 F3 [18:29:02]Write i2c OK [18:29:02]MH_I2C_Read... [18:29:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:02]Read from MH i2c: E2 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 62 00 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 62 00 EA 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EC 23 01 00 0E 04 04 00 FE 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 39 [18:29:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EC 23 01 00 0E 04 04 00 FE 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 [18:29:02]wFMCommunicate OK [18:29:02]SAM_PROTO_GetFieldsCounters done [18:29:02]requested_item shift.num is exist - process it [18:29:02]requested_item shift.opened is exist - process it [18:29:02]req_shift_opened [18:29:02]FM_GetShiftState [18:29:02]SAM_PROTO_GetShiftState [18:29:02]wFMCommunicate request_size=4 [18:29:02]MH_SAM_APDU [18:29:02]CAPDU: 80 13 01 00 [18:29:02]Write to MH i2c: E2 08 00 EB 8D 80 13 01 00 00 00 00 00 F5 [18:29:02]Write i2c OK [18:29:02]MH_I2C_Read... [18:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:02]Read from MH i2c: E2 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 0E 00 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 0E 00 EB 8D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 1F [18:29:02]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:29:02]wFMCommunicate OK [18:29:02]SAM_PROTO_GetShiftState done [18:29:02]FM_GetShiftState done [18:29:02]req_shift_opened done [18:29:02]requested_item shift.open_date is exist - process it [18:29:02]req_shift_open_date [18:29:02]req_shift_open_date done [18:29:02]produce_requested_data done [18:29:02]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74732,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:29:02]process_action_free close_receipt [18:29:02]json_value_free [18:29:02]json_value_free done [18:29:02]process_json_proto returns [18:29:02]Send response to host [18:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74732,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:29:02]free response buf [18:29:02]execute_script done [18:29:02]execute_script returns [18:29:02]free content buf [18:29:02]Sock 9.Close socket [18:29:02]Sock 9.Thread stoped [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:20]accept exits with 8 [18:33:20]New connection [18:33:20]New thread 3066662244 created [18:33:20]Thread 3066805604 joined [18:33:20]Waiting for new connection... [18:33:20] Sock 8.Parse request [18:33:20]Sock 8.Check first char [18:33:20]Sock 8.First char is OK [18:33:20]request: POST /json_proto HTTP/1.0 [18:33:20]Method: POST [18:33:20]URL: /json_proto [18:33:20]Method is POST - this is cgi request [18:33:20]url: /json_proto [18:33:20]query_string will be loaded in cgi processing [18:33:20]execute_cgi json_proto POST (null) [18:33:20]execute_cgi path=json_proto method=POST [18:33:20]POST find Content-Length [18:33:20]Host: 172.17.39.131:8080 [18:33:20]Content-Length: 677 [18:33:20]Content-Type: application/json [18:33:20] [18:33:20]POST finish read [18:33:20]Found Content-Length = 677 [18:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.680, "sum" : 446.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 446.00, "payments": [ { "type": 0, "sum" : 446.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:20]execute_script... [18:33:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.680, "sum" : 446.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 446.00, "payments": [ { "type": 0, "sum" : 446.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:20]POST & json_proto [18:33:20]process_json_proto [18:33:20]json parsed OK: [18:33:20]protocol is kg_v1.0 [18:33:20]action value=close_receipt [18:33:20]process_action close_receipt [18:33:20]cmd_close_receipt [18:33:20]MH_GetDate [18:33:20]Write to MH i2c: F0 00 00 EC 8D 68 [18:33:20]Write i2c OK [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 09 00 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 09 00 EC 8D 00 FC 92 1A 67 86 57 24 65 E6 [18:33:20]GetLastDocTimeStamp 1729794550 [18:33:20]current date 1729794812 [18:33:20]FM_GetShiftState [18:33:20]SAM_PROTO_GetShiftState [18:33:20]wFMCommunicate request_size=4 [18:33:20]MH_SAM_APDU [18:33:20]CAPDU: 80 13 01 00 [18:33:20]Write to MH i2c: E2 08 00 ED 8D 80 13 01 00 00 00 00 00 F7 [18:33:20]Write i2c OK [18:33:20]MH_I2C_Read... [18:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:20]Read from MH i2c: E2 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: E2 0E 00 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: E2 0E 00 ED 8D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 21 [18:33:20]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:33:20]wFMCommunicate OK [18:33:20]SAM_PROTO_GetShiftState done [18:33:20]FM_GetShiftState done [18:33:20]opened in 1729729801 [18:33:20]opened+sec_in_day 1729816201 [18:33:20]quantity*price = 44689 [18:33:20]sum+1 = 44690 [18:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 446.00 Внесено: 500.00 СДАЧА: 54.00 НСП 1% : 3.95 НДС 12% : 47.46 Наличными: 446.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 177 24.10.2024 18:33 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74733 ФПД: 245140777104387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183332&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74733&fm=245140777104387&tin=02508201610067®Number=0000000000091691&sum=44600 [18:33:21]StoreToDocumentArchive [18:33:21]shift 510 fd 74733 [18:33:21]save to /storage/0510/doc_00074733 [18:33:21]save last doc name /storage/0510/doc_00074733 to /storage/kkm_last_doc_name [18:33:21]save OK [18:33:21]Clear old archive folders... [18:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:21]tlvbuf is 00A51B80 [18:33:21]SAM_PROTO_ClearQueue [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 09 00 00 [18:33:21]Write to MH i2c: E2 08 00 FA 8D 80 09 00 00 00 00 00 00 F9 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 FA 8D 00 90 00 FB [18:33:21]RAPDU: 90 00 [18:33:21]wFMCommunicate OK [18:33:21]SAM_PROTO_ClearQueue done [18:33:21]KKMCreateOFDPacket [18:33:21]OFDProtocolAddRootSTLVToBuf [18:33:21]FM_MakeSignedData [18:33:21]FM_MakeSignedData [18:33:21]SAM_PROTO_SignData [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 0D 01 02 [18:33:21]Write to MH i2c: E2 08 00 FB 8D 80 0D 01 02 00 00 00 00 01 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 FB 8D 00 90 00 FC [18:33:21]RAPDU: 90 00 [18:33:21]wFMCommunicate OK [18:33:21]wFMCommunicate request_size=255 [18:33:21]MH_SAM_APDU [18:33: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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 38 AE 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 FC 92 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 ED 23 01 00 35 04 06 00 DE [18:33:21]Write to MH i2c: E2 02 01 FC 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 38 AE 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 FC 92 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 ED 23 01 00 35 04 06 00 DE 00 00 60 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]OFD Sender: No OFD packet to send [18:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 FC 8D 00 90 00 FD [18:33:21]RAPDU: 90 00 [18:33:21]wFMCommunicate OK [18:33:21]wFMCommunicate request_size=10 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 0D 02 02 05 F4 48 F0 74 03 [18:33:21]Write to MH i2c: E2 0D 00 FD 8D 80 0D 02 02 05 00 F4 48 F0 74 03 00 00 B1 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:21]Read from MH i2c: E2 03 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 FD 8D 00 90 00 FE [18:33:21]RAPDU: 90 00 [18:33:21]wFMCommunicate OK [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 0D 03 02 [18:33:21]Write to MH i2c: E2 08 00 FE 8D 80 0D 03 02 00 00 00 00 06 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 0B 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 0B 00 FE 8D 00 96 2B A0 47 9A 89 21 B9 90 00 AC [18:33:22]RAPDU: 96 2B A0 47 9A 89 21 B9 90 00 [18:33:22]wFMCommunicate OK [18:33:22]SAM_PROTO_SignData done [18:33:22]FM_MakeSignedData done [18:33:22]CreateOFDProtocolMessage [18:33:22]wFMCommunicate request_size=4 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 11 00 00 [18:33:22]Write to MH i2c: E2 08 00 FF 8D 80 11 00 00 00 00 00 00 06 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 17 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 17 00 FF 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5E [18:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:33:22]wFMCommunicate OK [18:33:22]CreateOFDProtocolMessage done [18:33:22]OFDSenderStorePacket 74733 [18:33:22]StoreOFDPacket docnum=74733 [18:33:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 49 07 01 AF 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 38 AE 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 FC 92 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 ED 23 01 00 35 04 06 00 DE F4 48 F0 74 03 96 2B A0 47 9A 89 21 B9 [18:33:22]CheckFolder [18:33:22]dirname=/storage/ofd_packets [18:33:22]CheckFolder done [18:33:22]ProducePacketName [18:33:22]name=ofd_packets/00074733 [18:33:22]NVStorageSaveData ofd_packets/00074733 [18:33:22]File name is /storage/ofd_packets/00074733 [18:33:22]Write 301 bytes [18:33:22]NVStorageSaveData done [18:33:22]OFDSenderStorePacket done [18:33:22]KKMCreateOFDPacket done [18:33:22]NVStorageSaveData kkm_last_timestamp [18:33:22]File name is /storage/kkm_last_timestamp [18:33:22]Write 4 bytes [18:33:22]NVStorageSaveData done [18:33:22]ExternCall_PrintAddStr [18:33:22]wPrintStart [18:33:22]Write to MH i2c: 01 00 00 00 8E 8E [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 00 8E 00 00 00 00 00 FF 0F A3 [18:33:22]RasterBufferAndPrint [18:33:22]line Счет N : (1)190702 [18:33:22]line ИНН: 02508201610067 [18:33:22]line Контрольно-Кассовый Чек [18:33:22]line ПРОДАЖА [18:33:22]line ТРК (МРК, ГНК) : 21 [18:33:22]line Товар: 2710124130 [18:33:22]line Аи-92-К-5 [18:33:22]line 6.680 * 66.90 [18:33:22]line = 446.89 [18:33:22]line НДС 12% НСП 1% [18:33:22]line > о реализуемом товаре [18:33:22]line ОКРУГЛЕНИЕ: -0.89 [18:33:22]line ИТОГО: 446.00 [18:33:22]line Внесено: 500.00 [18:33:22]line СДАЧА: 54.00 [18:33:22]line НСП 1% : 3.95 [18:33:22]line НДС 12% : 47.46 [18:33:22]line Наличными: 446.00 [18:33:22]line Безнал.: 0.00 [18:33:22]line Место: АЗС № 142 "Партнер Нефть" [18:33:22]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:33:22]line СНО: Общий режим [18:33:22]line Чек 177 24.10.2024 18:33 [18:33:22]line Смена: 510 ФФД: 1.0 [18:33:22]line ЗНМ: 0300000089 [18:33:22]line РНМ: 0000000000091691 [18:33:22]line Версия ККМ: 001 [18:33:22]line ФМ: 0000000000871795 [18:33:22]line ФД: 74733 [18:33:22]line ФПД: 245140777104387 [18:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183332&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74733&fm=245140777104387&tin=02508201610067®Number=0000000000091691&sum=44600 [18:33:22]written 0, free lines is 4095 [18:33:22]OFD Sender: Processing packet 74733 [packets to send 13, broken 12] [18:33:22]ProducePacketName [18:33:22]name=ofd_packets/00074733 [18:33:22]OFD Sender: To server: pG, [18:33:22]CommunicateWithHost lk.salyk.kg:30040 [18:33:22]ConnectInit lk.salyk.kg [18:33:22]Write to MH i2c: 01 00 00 2B 8E B9 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 2B 8E 00 00 00 00 00 9C 0C 68 [18:33:22]RasterBufferAndPrint [18:33:22]line [18:33:22]line [18:33:22]line [18:33:22]line [18:33:22]line [18:33:22]written 0, free lines is 3233 [18:33:22]MH_Cut [18:33:22]Write to MH i2c: D1 01 00 32 8E 01 92 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: D1 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: D1 01 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: D1 01 00 32 8E 00 91 [18:33:22]Write to MH i2c: 01 00 00 33 8E C1 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Connected sock=11 [18:33:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 49 07 01 AF 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 91 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 38 AE 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 FC 92 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 ED 23 01 00 35 04 06 00 DE F4 48 F0 74 03 96 2B A0 47 9A 89 21 B9 [18:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 92 73 47 00 3A 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 ED 23 01 00 F4 03 04 00 7E 3A 1A 67 B6 04 01 00 00 34 4C 80 ED 7E 66 02 0A [18:33:23]CommunicateWithHost err = 0 [18:33:23]CheckOFDResponse [18:33:23]1017 (14) - 77093643461234 [18:33:23]1041 (16) - 0000000000871795 [18:33:23]1040 (4) - 74733 [18:33:23]1012 (4) - 24.10.2024 12:15 [18:33:23]1206 (1) - 0 [18:33:23]OFD Sender: Remove packet 74733 [18:33:23]ProducePacketName [18:33:23]name=ofd_packets/00074733 [18:33:23]NVStorageDeleteData [18:33:23]*** Cut start [18:33:23]*** Partial cut [18:33:23]*** CUTSNS_PIN = 1 [18:33:23]*** CUTSNS_PIN = 0 [18:33:23]OFD Sender: No OFD packet to send [18:33:23]*** Brake cut motor [18:33:24]Read from MH i2c: 01 [18:33:24]MH_I2C_Read... [18:33:24]*** Stop cut motor [18:33:24]*** Cut end [18:33:24]Read from MH i2c: 01 07 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: 01 07 00 33 8E 00 00 00 00 00 FF 0F D6 [18:33:24]process_action close_receipt done [18:33:24]requested_data is exist [18:33:24]produce_requested_data [18:33:24]requested_item fm.sn is exist - process it [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 11 00 00 [18:33:24]Write to MH i2c: E2 08 00 34 8E 80 11 00 00 00 00 00 00 3C [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 17 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 17 00 34 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 94 [18:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:33:24]wFMCommunicate OK [18:33:24]requested_item fd.num is exist - process it [18:33:24]SAM_PROTO_GetFieldsCounters [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 13 00 00 [18:33:24]Write to MH i2c: E2 08 00 35 8E 80 13 00 00 00 00 00 00 3F [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 62 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 62 00 35 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 ED 23 01 00 0E 04 04 00 FE 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 89 [18:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 ED 23 01 00 0E 04 04 00 FE 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 [18:33:24]wFMCommunicate OK [18:33:24]SAM_PROTO_GetFieldsCounters done [18:33:24]requested_item shift.num is exist - process it [18:33:24]requested_item shift.opened is exist - process it [18:33:24]req_shift_opened [18:33:24]FM_GetShiftState [18:33:24]SAM_PROTO_GetShiftState [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 13 01 00 [18:33:24]Write to MH i2c: E2 08 00 36 8E 80 13 01 00 00 00 00 00 41 [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 0E 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 0E 00 36 8E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 6B [18:33:24]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:33:24]wFMCommunicate OK [18:33:24]SAM_PROTO_GetShiftState done [18:33:24]FM_GetShiftState done [18:33:24]req_shift_opened done [18:33:24]requested_item shift.open_date is exist - process it [18:33:24]req_shift_open_date [18:33:24]req_shift_open_date done [18:33:24]produce_requested_data done [18:33:24]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74733,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:33:24]process_action_free close_receipt [18:33:24]json_value_free [18:33:24]json_value_free done [18:33:24]process_json_proto returns [18:33:24]Send response to host [18:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74733,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:33:24]free response buf [18:33:24]execute_script done [18:33:24]execute_script returns [18:33:24]free content buf [18:33:24]Sock 8.Close socket [18:33:24]Sock 8.Thread stoped [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:32]int [18:43:32]Write to MH i2c: 01 00 00 37 8E C5 [18:43:32]*** FLAG_PRN_KEY set [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 37 8E 00 08 00 00 00 FF 0F E2 [18:43:32]state=0 [18:43:32]Key pressed [18:43:32]Feed [18:43:32]Write to MH i2c: D8 00 00 38 8E 9D [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: D8 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: D8 01 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: D8 01 00 38 8E 00 9E [18:43:32]int [18:43:32]Write to MH i2c: 01 00 00 39 8E C7 [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 39 8E 00 48 00 00 00 3C 00 52 [18:43:32]state=2 [18:43:32]Key pressed [18:43:32]int [18:43:32]Write to MH i2c: 01 00 00 3A 8E C8 [18:43:32]*** FLAG_PRN_KEY reset [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 3A 8E 00 00 00 00 00 F5 0F D3 [18:43:32]state=2 [18:43:32]Stop feed [18:43:32]int [18:43:32]Write to MH i2c: 01 00 00 3B 8E C9 [18:43:32]*** FLAG_PRN_KEY set [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 3B 8E 00 08 00 00 00 FF 0F E6 [18:43:32]state=0 [18:43:32]Key pressed [18:43:32]Feed [18:43:32]Write to MH i2c: D8 00 00 3C 8E A1 [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: D8 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: D8 01 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: D8 01 00 3C 8E 00 A2 [18:43:32]int [18:43:32]Write to MH i2c: 01 00 00 3D 8E CB [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 3D 8E 00 48 00 00 00 3C 00 56 [18:43:32]state=2 [18:43:32]Key pressed [18:43:32]int [18:43:32]Write to MH i2c: 01 00 00 3E 8E CC [18:43:32]*** FLAG_PRN_KEY reset [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: 01 07 00 3E 8E 00 00 00 00 00 F5 0F D7 [18:43:32]state=2 [18:43:32]Stop feed [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:02]accept exits with 9 [18:44:02]New connection [18:44:02]New thread 3066805604 created [18:44:02]Thread 3066662244 joined [18:44:02]Waiting for new connection... [18:44:02] Sock 9.Parse request [18:44:02]Sock 9.Check first char [18:44:02]Sock 9.First char is OK [18:44:02]request: POST /json_proto HTTP/1.0 [18:44:02]Method: POST [18:44:02]URL: /json_proto [18:44:02]Method is POST - this is cgi request [18:44:02]url: /json_proto [18:44:02]query_string will be loaded in cgi processing [18:44:02]execute_cgi json_proto POST (null) [18:44:02]execute_cgi path=json_proto method=POST [18:44:02]POST find Content-Length [18:44:02]Host: 172.17.39.131:8080 [18:44:02]Content-Length: 770 [18:44:02]Content-Type: application/json [18:44:02] [18:44:02]POST finish read [18:44:02]Found Content-Length = 770 [18:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:02]execute_script... [18:44: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)190704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:02]POST & json_proto [18:44:02]process_json_proto [18:44:02]json parsed OK: [18:44:02]protocol is kg_v1.0 [18:44:02]action value=close_receipt [18:44:02]process_action close_receipt [18:44:02]cmd_close_receipt [18:44:02]MH_GetDate [18:44:02]Write to MH i2c: F0 00 00 3F 8E BC [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: F0 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: F0 09 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: F0 09 00 3F 8E 00 7E 95 1A 67 86 57 24 65 BF [18:44:02]GetLastDocTimeStamp 1729794812 [18:44:02]current date 1729795454 [18:44:02]FM_GetShiftState [18:44:02]SAM_PROTO_GetShiftState [18:44:02]wFMCommunicate request_size=4 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 13 01 00 [18:44:02]Write to MH i2c: E2 08 00 40 8E 80 13 01 00 00 00 00 00 4B [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 0E 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 0E 00 40 8E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 75 [18:44:02]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:44:02]wFMCommunicate OK [18:44:02]SAM_PROTO_GetShiftState done [18:44:02]FM_GetShiftState done [18:44:02]opened in 1729729801 [18:44:02]opened+sec_in_day 1729816201 [18:44:02]quantity*price = 100015 [18:44:02]sum+1 = 100017 [18:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 178 24.10.2024 18:44 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000000871795 ФД: 74734 ФПД: 116785336203106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184414&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74734&fm=116785336203106&tin=02508201610067®Number=0000000000091691&sum=100016 [18:44:03]StoreToDocumentArchive [18:44:03]shift 510 fd 74734 [18:44:03]save to /storage/0510/doc_00074734 [18:44:03]save last doc name /storage/0510/doc_00074734 to /storage/kkm_last_doc_name [18:44:03]save OK [18:44:03]Clear old archive folders... [18:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:03]tlvbuf is 0085C640 [18:44:03]SAM_PROTO_ClearQueue [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 09 00 00 [18:44:03]Write to MH i2c: E2 08 00 4D 8E 80 09 00 00 00 00 00 00 4D [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 4D 8E 00 90 00 4F [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]SAM_PROTO_ClearQueue done [18:44:03]KKMCreateOFDPacket [18:44:03]OFDProtocolAddRootSTLVToBuf [18:44:03]FM_MakeSignedData [18:44:03]FM_MakeSignedData [18:44:03]SAM_PROTO_SignData [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 01 02 [18:44:03]Write to MH i2c: E2 08 00 4E 8E 80 0D 01 02 00 00 00 00 55 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 4E 8E 00 90 00 50 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]wFMCommunicate request_size=255 [18:44:03]MH_SAM_APDU [18:44: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7E 95 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EE 23 01 00 35 04 06 00 6A [18:44:03]Write to MH i2c: E2 02 01 4F 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7E 95 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EE 23 01 00 35 04 06 00 6A 00 00 C5 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 4F 8E 00 90 00 51 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]wFMCommunicate request_size=10 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 02 02 05 37 34 7A B7 62 [18:44:03]Write to MH i2c: E2 0D 00 50 8E 80 0D 02 02 05 00 37 34 7A B7 62 00 00 60 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 50 8E 00 90 00 52 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 03 02 [18:44:03]Write to MH i2c: E2 08 00 51 8E 80 0D 03 02 00 00 00 00 5A [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 0B 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 0B 00 51 8E 00 A4 10 13 D3 2C 20 EB 95 90 00 C1 [18:44:03]RAPDU: A4 10 13 D3 2C 20 EB 95 90 00 [18:44:03]wFMCommunicate OK [18:44:03]SAM_PROTO_SignData done [18:44:03]FM_MakeSignedData done [18:44:03]CreateOFDProtocolMessage [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 11 00 00 [18:44:03]Write to MH i2c: E2 08 00 52 8E 80 11 00 00 00 00 00 00 5A [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 17 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 17 00 52 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B2 [18:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:44:03]wFMCommunicate OK [18:44:03]CreateOFDProtocolMessage done [18:44:03]OFDSenderStorePacket 74734 [18:44:03]StoreOFDPacket docnum=74734 [18:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 2E BD 07 01 FE EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7E 95 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EE 23 01 00 35 04 06 00 6A 37 34 7A B7 62 A4 10 13 D3 2C 20 EB 95 [18:44:03]CheckFolder [18:44:03]dirname=/storage/ofd_packets [18:44:03]CheckFolder done [18:44:03]ProducePacketName [18:44:03]name=ofd_packets/00074734 [18:44:03]NVStorageSaveData ofd_packets/00074734 [18:44:03]File name is /storage/ofd_packets/00074734 [18:44:03]Write 301 bytes [18:44:03]NVStorageSaveData done [18:44:03]OFDSenderStorePacket done [18:44:03]KKMCreateOFDPacket done [18:44:03]NVStorageSaveData kkm_last_timestamp [18:44:03]File name is /storage/kkm_last_timestamp [18:44:03]Write 4 bytes [18:44:03]NVStorageSaveData done [18:44:03]ExternCall_PrintAddStr [18:44:03]wPrintStart [18:44:03]Write to MH i2c: 01 00 00 53 8E E1 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 53 8E 00 00 00 00 00 FF 0F F6 [18:44:03]RasterBufferAndPrint [18:44:03]line Счет N : (1)190704 [18:44:03]line ИНН: 02508201610067 [18:44:03]line Контрольно-Кассовый Чек [18:44:03]line ПРОДАЖА [18:44:03]line ТРК (МРК, ГНК) : 21 [18:44:03]line Товар: 2710124130 [18:44:03]line Аи-92-К-5 [18:44:03]line 14.950 * 66.90 [18:44:03]line = 1000.16 [18:44:03]line НДС 12% НСП 1% [18:44:03]line > о реализуемом товаре [18:44:03]line ИТОГО: 1000.16 [18:44:03]line НСП 1% : 8.85 [18:44:03]line НДС 12% : 106.21 [18:44:03]line Наличными: 0.00 [18:44:03]line Безнал.: 1000.16 [18:44:03]line Место: АЗС № 142 "Партнер Нефть" [18:44:03]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:44:03]line СНО: Общий режим [18:44:03]line Чек 178 24.10.2024 18:44 [18:44:03]line Смена: 510 ФФД: 1.0 [18:44:03]line ЗНМ: 0300000089 [18:44:03]line РНМ: 0000000000091691 [18:44:03]line Версия ККМ: 001 [18:44:03]line Платежная система: cash2u [18:44:03]line ФМ: 0000000000871795 [18:44:03]line ФД: 74734 [18:44:03]line ФПД: 116785336203106 [18:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184414&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74734&fm=116785336203106&tin=02508201610067®Number=0000000000091691&sum=100016 [18:44:03]written 0, free lines is 4095 [18:44:03]OFD Sender: Processing packet 74734 [packets to send 13, broken 12] [18:44:03]ProducePacketName [18:44:03]name=ofd_packets/00074734 [18:44:04]OFD Sender: To server: pG, [18:44:04]CommunicateWithHost lk.salyk.kg:30040 [18:44:04]ConnectInit lk.salyk.kg [18:44:04]Write to MH i2c: 01 00 00 7C 8E 0A [18:44:04]Write i2c OK [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: 01 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: 01 07 00 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: 01 07 00 7C 8E 00 00 00 00 00 CE 0C EB [18:44:04]RasterBufferAndPrint [18:44:04]line [18:44:04]line [18:44:04]line [18:44:04]line [18:44:04]line [18:44:04]written 0, free lines is 3282 [18:44:04]MH_Cut [18:44:04]Write to MH i2c: D1 01 00 83 8E 01 E3 [18:44:04]Write i2c OK [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: D1 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: D1 01 00 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: D1 01 00 83 8E 00 E2 [18:44:04]Write to MH i2c: 01 00 00 84 8E 12 [18:44:04]Write i2c OK [18:44:04]MH_I2C_Read... [18:44:04]Connected sock=10 [18: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 31 37 39 35 0F 01 00 00 2E BD 07 01 FE EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7E 95 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EE 23 01 00 35 04 06 00 6A 37 34 7A B7 62 A4 10 13 D3 2C 20 EB 95 [18:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 25 DA 47 00 2A 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 31 37 39 35 10 04 04 00 EE 23 01 00 F4 03 04 00 00 3D 1A 67 B6 04 01 00 00 9D 22 16 66 5A BD 87 49 [18:44:04]CommunicateWithHost err = 0 [18:44:04]CheckOFDResponse [18:44:04]1017 (14) - 77093643461234 [18:44:04]1041 (16) - 0000000000871795 [18:44:04]1040 (4) - 74734 [18:44:04]1012 (4) - 24.10.2024 12:26 [18:44:04]1206 (1) - 0 [18:44:04]OFD Sender: Remove packet 74734 [18:44:04]ProducePacketName [18:44:04]name=ofd_packets/00074734 [18:44:04]NVStorageDeleteData [18:44:05]*** Cut start [18:44:05]*** Partial cut [18:44:05]*** CUTSNS_PIN = 1 [18:44:05]*** CUTSNS_PIN = 0 [18:44:05]OFD Sender: No OFD packet to send [18:44:05]*** Brake cut motor [18:44:05]Read from MH i2c: 01 [18:44:05]MH_I2C_Read... [18:44:05]*** Stop cut motor [18:44:05]*** Cut end [18:44:05]Read from MH i2c: 01 07 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: 01 07 00 84 8E 00 00 00 00 00 FF 0F 27 [18:44:05]process_action close_receipt done [18:44:05]requested_data is exist [18:44:05]produce_requested_data [18:44:05]requested_item fm.sn is exist - process it [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 11 00 00 [18:44:05]Write to MH i2c: E2 08 00 85 8E 80 11 00 00 00 00 00 00 8D [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:05]Read from MH i2c: E2 17 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 17 00 85 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E5 [18:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:44:05]wFMCommunicate OK [18:44:05]requested_item fd.num is exist - process it [18:44:05]SAM_PROTO_GetFieldsCounters [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 13 00 00 [18:44:05]Write to MH i2c: E2 08 00 86 8E 80 13 00 00 00 00 00 00 90 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 62 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 62 00 86 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EE 23 01 00 0E 04 04 00 FE 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 DE [18:44:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EE 23 01 00 0E 04 04 00 FE 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 [18:44:05]wFMCommunicate OK [18:44:05]SAM_PROTO_GetFieldsCounters done [18:44:05]requested_item shift.num is exist - process it [18:44:05]requested_item shift.opened is exist - process it [18:44:05]req_shift_opened [18:44:05]FM_GetShiftState [18:44:05]SAM_PROTO_GetShiftState [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 13 01 00 [18:44:05]Write to MH i2c: E2 08 00 87 8E 80 13 01 00 00 00 00 00 92 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:06]Read from MH i2c: E2 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 0E 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 0E 00 87 8E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BC [18:44:06]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:44:06]wFMCommunicate OK [18:44:06]SAM_PROTO_GetShiftState done [18:44:06]FM_GetShiftState done [18:44:06]req_shift_opened done [18:44:06]requested_item shift.open_date is exist - process it [18:44:06]req_shift_open_date [18:44:06]req_shift_open_date done [18:44:06]produce_requested_data done [18:44:06]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74734,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:44:06]process_action_free close_receipt [18:44:06]json_value_free [18:44:06]json_value_free done [18:44:06]process_json_proto returns [18:44:06]Send response to host [18:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74734,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:44:06]free response buf [18:44:06]execute_script done [18:44:06]execute_script returns [18:44:06]free content buf [18:44:06]Sock 9.Close socket [18:44:06]Sock 9.Thread stoped [18:44:06]int [18:44:06]Write to MH i2c: 01 00 00 88 8E 16 [18:44:06]*** FLAG_PRN_KEY set [18:44:06]Write i2c OK [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 07 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 07 00 88 8E 00 08 00 00 00 FF 0F 33 [18:44:06]state=0 [18:44:06]Key pressed [18:44:06]Feed [18:44:06]Write to MH i2c: D8 00 00 89 8E EE [18:44:06]Write i2c OK [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: D8 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: D8 01 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: D8 01 00 89 8E 00 EF [18:44:06]int [18:44:06]Write to MH i2c: 01 00 00 8A 8E 18 [18:44:06]Write i2c OK [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 07 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 07 00 8A 8E 00 48 00 00 00 3C 00 A3 [18:44:06]state=2 [18:44:06]Key pressed [18:44:06]int [18:44:06]Write to MH i2c: 01 00 00 8B 8E 19 [18:44:06]*** FLAG_PRN_KEY reset [18:44:06]Write i2c OK [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 07 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: 01 07 00 8B 8E 00 00 00 00 00 FB 0F 2A [18:44:06]state=2 [18:44:06]Stop feed [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:43]recv_with_timeout no data received [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:18]accept exits with 8 [18:46:18]New connection [18:46:18]New thread 3066662244 created [18:46:18]Thread 3066805604 joined [18:46:18]Waiting for new connection... [18:46:18] Sock 8.Parse request [18:46:18]Sock 8.Check first char [18:46:18]Sock 8.First char is OK [18:46:18]request: POST /json_proto HTTP/1.0 [18:46:18]Method: POST [18:46:18]URL: /json_proto [18:46:18]Method is POST - this is cgi request [18:46:18]url: /json_proto [18:46:18]query_string will be loaded in cgi processing [18:46:18]execute_cgi json_proto POST (null) [18:46:18]execute_cgi path=json_proto method=POST [18:46:18]POST find Content-Length [18:46:18]Host: 172.17.39.131:8080 [18:46:18]Content-Length: 778 [18:46:18]Content-Type: application/json [18:46:18] [18:46:18]POST finish read [18:46:18]Found Content-Length = 778 [18:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 500.000, "sum" : 38600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 38600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:18]execute_script... [18: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)190693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 500.000, "sum" : 38600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 38600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:18]POST & json_proto [18:46:18]process_json_proto [18:46:18]json parsed OK: [18:46:18]protocol is kg_v1.0 [18:46:18]action value=close_receipt [18:46:18]process_action close_receipt [18:46:18]cmd_close_receipt [18:46:18]MH_GetDate [18:46:18]Write to MH i2c: F0 00 00 8C 8E 09 [18:46:18]Write i2c OK [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: F0 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: F0 09 00 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: F0 09 00 8C 8E 00 07 96 1A 67 86 57 24 65 96 [18:46:18]GetLastDocTimeStamp 1729795454 [18:46:18]current date 1729795591 [18:46:18]FM_GetShiftState [18:46:18]SAM_PROTO_GetShiftState [18:46:18]wFMCommunicate request_size=4 [18:46:18]MH_SAM_APDU [18:46:18]CAPDU: 80 13 01 00 [18:46:18]Write to MH i2c: E2 08 00 8D 8E 80 13 01 00 00 00 00 00 98 [18:46:18]Write i2c OK [18:46:18]MH_I2C_Read... [18:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:18]Read from MH i2c: E2 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 0E 00 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 0E 00 8D 8E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 C2 [18:46:18]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:46:18]wFMCommunicate OK [18:46:18]SAM_PROTO_GetShiftState done [18:46:18]FM_GetShiftState done [18:46:18]opened in 1729729801 [18:46:18]opened+sec_in_day 1729816201 [18:46:18]quantity*price = 3860000 [18:46:18]sum+1 = 3860001 [18:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 38600.00 НСП 1% : 341.59 НДС 12% : 4099.11 Наличными: 0.00 Безнал.: 38600.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 179 24.10.2024 18:46 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74735 ФПД: 228556887080791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184631&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74735&fm=228556887080791&tin=02508201610067®Number=0000000000091691&sum=3860000 [18:46:19]StoreToDocumentArchive [18:46:19]shift 510 fd 74735 [18:46:19]save to /storage/0510/doc_00074735 [18:46:19]save last doc name /storage/0510/doc_00074735 to /storage/kkm_last_doc_name [18:46:19]save OK [18:46:19]Clear old archive folders... [18:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:46:19]tlvbuf is 00A9DDB0 [18:46:19]SAM_PROTO_ClearQueue [18:46:19]wFMCommunicate request_size=4 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 09 00 00 [18:46:19]Write to MH i2c: E2 08 00 9A 8E 80 09 00 00 00 00 00 00 9A [18:46:19]Write i2c OK [18:46:19]MH_I2C_Read... [18:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:19]Read from MH i2c: E2 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 9A 8E 00 90 00 9C [18:46:19]RAPDU: 90 00 [18:46:19]wFMCommunicate OK [18:46:19]SAM_PROTO_ClearQueue done [18:46:19]KKMCreateOFDPacket [18:46:19]OFDProtocolAddRootSTLVToBuf [18:46:19]FM_MakeSignedData [18:46:19]FM_MakeSignedData [18:46:19]SAM_PROTO_SignData [18:46:19]wFMCommunicate request_size=4 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 0D 01 02 [18:46:19]Write to MH i2c: E2 08 00 9B 8E 80 0D 01 02 00 00 00 00 A2 [18:46:19]Write i2c OK [18:46:19]MH_I2C_Read... [18:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:19]Read from MH i2c: E2 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 9B 8E 00 90 00 9D [18:46:19]RAPDU: 90 00 [18:46:19]wFMCommunicate OK [18:46:19]wFMCommunicate request_size=255 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 07 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EF 23 01 [18:46:19]Write to MH i2c: E2 02 01 9C 8E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 07 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EF 23 01 00 00 60 [18:46:19]Write i2c OK [18:46:19]MH_I2C_Read... [18:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:20]Read from MH i2c: E2 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 03 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 03 00 9C 8E 00 90 00 9E [18:46:20]RAPDU: 90 00 [18:46:20]wFMCommunicate OK [18:46:20]wFMCommunicate request_size=16 [18:46:20]MH_SAM_APDU [18:46:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CF DF 0C 10 BF 57 [18:46:20]Write to MH i2c: E2 13 00 9D 8E 80 0D 02 02 0B 00 00 35 04 06 00 CF DF 0C 10 BF 57 00 00 DA [18:46:20]Write i2c OK [18:46:20]MH_I2C_Read... [18:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:20]Read from MH i2c: E2 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 03 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 03 00 9D 8E 00 90 00 9F [18:46:20]RAPDU: 90 00 [18:46:20]wFMCommunicate OK [18:46:20]wFMCommunicate request_size=4 [18:46:20]MH_SAM_APDU [18:46:20]CAPDU: 80 0D 03 02 [18:46:20]Write to MH i2c: E2 08 00 9E 8E 80 0D 03 02 00 00 00 00 A7 [18:46:20]Write i2c OK [18:46:20]MH_I2C_Read... [18:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:20]Read from MH i2c: E2 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 0B 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 0B 00 9E 8E 00 3A CB A5 E4 FF 35 3D 3B 90 00 E2 [18:46:20]RAPDU: 3A CB A5 E4 FF 35 3D 3B 90 00 [18:46:20]wFMCommunicate OK [18:46:20]SAM_PROTO_SignData done [18:46:20]FM_MakeSignedData done [18:46:20]CreateOFDProtocolMessage [18:46:20]wFMCommunicate request_size=4 [18:46:20]MH_SAM_APDU [18:46:20]CAPDU: 80 11 00 00 [18:46:20]Write to MH i2c: E2 08 00 9F 8E 80 11 00 00 00 00 00 00 A7 [18:46:20]Write i2c OK [18:46:20]MH_I2C_Read... [18:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:20]Read from MH i2c: E2 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 17 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 17 00 9F 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FF [18:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:46:20]wFMCommunicate OK [18:46:20]CreateOFDProtocolMessage done [18:46:20]OFDSenderStorePacket 74735 [18:46:20]StoreOFDPacket docnum=74735 [18:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 AB 9C 0D 01 6A 82 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 07 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EF 23 01 00 35 04 06 00 CF DF 0C 10 BF 57 3A CB A5 E4 FF 35 3D 3B [18:46:20]CheckFolder [18:46:20]dirname=/storage/ofd_packets [18:46:20]CheckFolder done [18:46:20]ProducePacketName [18:46:20]name=ofd_packets/00074735 [18:46:20]NVStorageSaveData ofd_packets/00074735 [18:46:20]File name is /storage/ofd_packets/00074735 [18:46:20]Write 307 bytes [18:46:20]NVStorageSaveData done [18:46:20]OFDSenderStorePacket done [18:46:20]KKMCreateOFDPacket done [18:46:20]NVStorageSaveData kkm_last_timestamp [18:46:20]File name is /storage/kkm_last_timestamp [18:46:20]Write 4 bytes [18:46:20]NVStorageSaveData done [18:46:20]ExternCall_PrintAddStr [18:46:20]wPrintStart [18:46:20]Write to MH i2c: 01 00 00 A0 8E 2E [18:46:20]Write i2c OK [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: 01 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: 01 07 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: 01 07 00 A0 8E 00 00 00 00 00 FF 0F 43 [18:46:20]RasterBufferAndPrint [18:46:20]line Счет N : (1)190693 [18:46:20]line ИНН: 02508201610067 [18:46:20]line Контрольно-Кассовый Чек [18:46:20]line ПРОДАЖА [18:46:20]line ТРК (МРК, ГНК) : 32 [18:46:20]line Товар: 2710194240 [18:46:20]line D-ENERGY ДТ-К-2 [18:46:20]line 500.000 * 77.20 [18:46:20]line = 38600.00 [18:46:20]line НДС 12% НСП 1% [18:46:20]line > о реализуемом товаре [18:46:20]line ИТОГО: 38600.00 [18:46:20]line НСП 1% : 341.59 [18:46:20]line НДС 12% : 4099.11 [18:46:20]line Наличными: 0.00 [18:46:20]line Безнал.: 38600.00 [18:46:20]line Место: АЗС № 142 "Партнер Нефть" [18:46:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:46:20]line СНО: Общий режим [18:46:20]line Чек 179 24.10.2024 18:46 [18:46:20]line Смена: 510 ФФД: 1.0 [18:46:20]line ЗНМ: 0300000089 [18:46:20]line РНМ: 0000000000091691 [18:46:20]line Версия ККМ: 001 [18:46:20]line Платежная система: Mbank [18:46:20]line ФМ: 0000000000871795 [18:46:20]line ФД: 74735 [18:46:20]line ФПД: 228556887080791 [18:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184631&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74735&fm=228556887080791&tin=02508201610067®Number=0000000000091691&sum=3860000 [18:46:20]OFD Sender: Processing packet 74735 [packets to send 13, broken 12] [18:46:20]ProducePacketName [18:46:20]name=ofd_packets/00074735 [18:46:20]OFD Sender: To server: pG, [18:46:20]CommunicateWithHost lk.salyk.kg:30040 [18:46:20]ConnectInit lk.salyk.kg [18:46:20]written 0, free lines is 4095 [18:46:21]Write to MH i2c: 01 00 00 C9 8E 57 [18:46:21]Write i2c OK [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: 01 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: 01 07 00 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: 01 07 00 C9 8E 00 00 00 00 00 D5 0C 3F [18:46:21]RasterBufferAndPrint [18:46:21]line [18:46:21]line [18:46:21]line [18:46:21]line [18:46:21]line [18:46:21]written 0, free lines is 3289 [18:46:21]MH_Cut [18:46:21]Write to MH i2c: D1 01 00 D0 8E 01 30 [18:46:21]Write i2c OK [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: D1 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: D1 01 00 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: D1 01 00 D0 8E 00 2F [18:46:21]Write to MH i2c: 01 00 00 D1 8E 5F [18:46:21]Write i2c OK [18:46:21]MH_I2C_Read... [18:46:21]*** Cut start [18:46:21]*** Partial cut [18:46:21]*** CUTSNS_PIN = 1 [18:46:21]*** CUTSNS_PIN = 0 [18:46:22]*** Brake cut motor [18:46:22]Read from MH i2c: 01 [18:46:22]MH_I2C_Read... [18:46:22]*** Stop cut motor [18:46:22]*** Cut end [18:46:22]Read from MH i2c: 01 07 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: 01 07 00 D1 8E 00 00 00 00 00 FF 0F 74 [18:46:22]process_action close_receipt done [18:46:22]requested_data is exist [18:46:22]produce_requested_data [18:46:22]requested_item fm.sn is exist - process it [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 11 00 00 [18:46:22]Write to MH i2c: E2 08 00 D2 8E 80 11 00 00 00 00 00 00 DA [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 17 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 17 00 D2 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 32 [18:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:46:22]wFMCommunicate OK [18:46:22]requested_item fd.num is exist - process it [18:46:22]SAM_PROTO_GetFieldsCounters [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 13 00 00 [18:46:22]Write to MH i2c: E2 08 00 D3 8E 80 13 00 00 00 00 00 00 DD [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 62 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 62 00 D3 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EF 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [18: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 EF 23 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:22]wFMCommunicate OK [18:46:22]SAM_PROTO_GetFieldsCounters done [18:46:22]requested_item shift.num is exist - process it [18:46:22]requested_item shift.opened is exist - process it [18:46:22]req_shift_opened [18:46:22]FM_GetShiftState [18:46:22]SAM_PROTO_GetShiftState [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 13 01 00 [18:46:22]Write to MH i2c: E2 08 00 D4 8E 80 13 01 00 00 00 00 00 DF [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 0E 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 0E 00 D4 8E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 09 [18:46:22]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:46:22]wFMCommunicate OK [18:46:22]SAM_PROTO_GetShiftState done [18:46:22]FM_GetShiftState done [18:46:22]req_shift_opened done [18:46:22]requested_item shift.open_date is exist - process it [18:46:22]req_shift_open_date [18:46:22]req_shift_open_date done [18:46:22]produce_requested_data done [18:46:22]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74735,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:46:22]process_action_free close_receipt [18:46:22]json_value_free [18:46:22]json_value_free done [18:46:22]process_json_proto returns [18:46:22]Send response to host [18:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74735,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:46:22]free response buf [18:46:22]execute_script done [18:46:22]execute_script returns [18:46:22]free content buf [18:46:22]Sock 8.Close socket [18:46:22]Sock 8.Thread stoped [18:48:33]ConnectInit Can't connect to host [18:48:33]CommunicateWithHost connect error [18:48:33]CommunicateWithHost err = -1 [18:48:33]OFD Sender: Server communicate error [18:48:38]OFD Sender: Processing packet 74735 [packets to send 13, broken 12] [18:48:38]ProducePacketName [18:48:38]name=ofd_packets/00074735 [18:48:38]OFD Sender: To server: pG, [18:48:38]CommunicateWithHost lk.salyk.kg:30040 [18:48:38]ConnectInit lk.salyk.kg [18:48:38]Connected sock=8 [18:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 AB 9C 0D 01 6A 82 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 07 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EF 23 01 00 35 04 06 00 CF DF 0C 10 BF 57 3A CB A5 E4 FF 35 3D 3B [18:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 69 78 47 00 43 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 EF 23 01 00 F4 03 04 00 12 3E 1A 67 B6 04 01 00 00 87 4D AE 06 D1 A9 F8 13 [18:48:39]CommunicateWithHost err = 0 [18:48:39]CheckOFDResponse [18:48:39]1017 (14) - 77093643461234 [18:48:39]1041 (16) - 0000000000871795 [18:48:39]1040 (4) - 74735 [18:48:39]1012 (4) - 24.10.2024 12:31 [18:48:39]1206 (1) - 0 [18:48:39]OFD Sender: Remove packet 74735 [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00074735 [18:48:39]NVStorageDeleteData [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:49]accept exits with 9 [18:49:49]New connection [18:49:49]New thread 3066805604 created [18:49:49]Thread 3066662244 joined [18:49:49]Waiting for new connection... [18:49:49] Sock 9.Parse request [18:49:49]Sock 9.Check first char [18:49:49]Sock 9.First char is OK [18:49:49]request: POST /json_proto HTTP/1.0 [18:49:49]Method: POST [18:49:49]URL: /json_proto [18:49:49]Method is POST - this is cgi request [18:49:49]url: /json_proto [18:49:49]query_string will be loaded in cgi processing [18:49:49]execute_cgi json_proto POST (null) [18:49:49]execute_cgi path=json_proto method=POST [18:49:49]POST find Content-Length [18:49:49]Host: 172.17.39.131:8080 [18:49:49]Content-Length: 677 [18:49:49]Content-Type: application/json [18:49:49] [18:49:49]POST finish read [18:49:49]Found Content-Length = 677 [18:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:49]execute_script... [18:49:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:49]POST & json_proto [18:49:49]process_json_proto [18:49:49]json parsed OK: [18:49:49]protocol is kg_v1.0 [18:49:49]action value=close_receipt [18:49:49]process_action close_receipt [18:49:49]cmd_close_receipt [18:49:49]MH_GetDate [18:49:49]Write to MH i2c: F0 00 00 D5 8E 52 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: F0 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: F0 09 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: F0 09 00 D5 8E 00 DA 96 1A 67 86 57 24 65 B2 [18:49:49]GetLastDocTimeStamp 1729795591 [18:49:49]current date 1729795802 [18:49:49]FM_GetShiftState [18:49:49]SAM_PROTO_GetShiftState [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 13 01 00 [18:49:49]Write to MH i2c: E2 08 00 D6 8E 80 13 01 00 00 00 00 00 E1 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 D6 8E 00 09 00 01 09 95 19 67 00 00 00 00 90 00 0B [18:49:49]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_GetShiftState done [18:49:49]FM_GetShiftState done [18:49:49]opened in 1729729801 [18:49:49]opened+sec_in_day 1729816201 [18:49:49]quantity*price = 50041 [18:49:49]sum+1 = 50042 [18:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 180 24.10.2024 18:50 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74736 ФПД: 77388711070019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185002&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74736&fm=77388711070019&tin=02508201610067®Number=0000000000091691&sum=50000 [18:49:50]StoreToDocumentArchive [18:49:50]shift 510 fd 74736 [18:49:50]save to /storage/0510/doc_00074736 [18:49:50]save last doc name /storage/0510/doc_00074736 to /storage/kkm_last_doc_name [18:49:50]save OK [18:49:50]Clear old archive folders... [18:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:50]tlvbuf is 007EBD80 [18:49:50]SAM_PROTO_ClearQueue [18:49:50]wFMCommunicate request_size=4 [18:49:50]MH_SAM_APDU [18:49:50]CAPDU: 80 09 00 00 [18:49:50]Write to MH i2c: E2 08 00 E3 8E 80 09 00 00 00 00 00 00 E3 [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 E3 8E 00 90 00 E5 [18:49:51]RAPDU: 90 00 [18:49:51]wFMCommunicate OK [18:49:51]SAM_PROTO_ClearQueue done [18:49:51]KKMCreateOFDPacket [18:49:51]OFDProtocolAddRootSTLVToBuf [18:49:51]FM_MakeSignedData [18:49:51]FM_MakeSignedData [18:49:51]SAM_PROTO_SignData [18:49:51]wFMCommunicate request_size=4 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 0D 01 02 [18:49:51]Write to MH i2c: E2 08 00 E4 8E 80 0D 01 02 00 00 00 00 EB [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 E4 8E 00 90 00 E6 [18:49:51]RAPDU: 90 00 [18:49:51]wFMCommunicate OK [18:49:51]wFMCommunicate request_size=255 [18:49:51]MH_SAM_APDU [18:49: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 DA 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F0 23 01 00 35 04 06 00 46 [18:49:51]Write to MH i2c: E2 02 01 E5 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 DA 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F0 23 01 00 35 04 06 00 46 00 00 7E [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 E5 8E 00 90 00 E7 [18:49:51]RAPDU: 90 00 [18:49:51]wFMCommunicate OK [18:49:51]wFMCommunicate request_size=10 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 0D 02 02 05 62 76 A2 09 43 [18:49:51]Write to MH i2c: E2 0D 00 E6 8E 80 0D 02 02 05 00 62 76 A2 09 43 00 00 BE [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 E6 8E 00 90 00 E8 [18:49:51]RAPDU: 90 00 [18:49:51]wFMCommunicate OK [18:49:51]wFMCommunicate request_size=4 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 0D 03 02 [18:49:51]Write to MH i2c: E2 08 00 E7 8E 80 0D 03 02 00 00 00 00 F0 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 0B 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 0B 00 E7 8E 00 DA 55 9B D1 D5 47 43 77 90 00 62 [18:49:51]RAPDU: DA 55 9B D1 D5 47 43 77 90 00 [18:49:51]wFMCommunicate OK [18:49:51]SAM_PROTO_SignData done [18:49:51]FM_MakeSignedData done [18:49:51]CreateOFDProtocolMessage [18:49:51]wFMCommunicate request_size=4 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 11 00 00 [18:49:51]Write to MH i2c: E2 08 00 E8 8E 80 11 00 00 00 00 00 00 F0 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 17 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 17 00 E8 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 48 [18:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:49:51]wFMCommunicate OK [18:49:51]CreateOFDProtocolMessage done [18:49:51]OFDSenderStorePacket 74736 [18:49:51]StoreOFDPacket docnum=74736 [18:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 F2 07 01 63 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 DA 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F0 23 01 00 35 04 06 00 46 62 76 A2 09 43 DA 55 9B D1 D5 47 43 77 [18:49:51]CheckFolder [18:49:51]dirname=/storage/ofd_packets [18:49:51]CheckFolder done [18:49:51]ProducePacketName [18:49:51]name=ofd_packets/00074736 [18:49:51]NVStorageSaveData ofd_packets/00074736 [18:49:51]File name is /storage/ofd_packets/00074736 [18:49:51]Write 301 bytes [18:49:51]NVStorageSaveData done [18:49:51]OFDSenderStorePacket done [18:49:51]KKMCreateOFDPacket done [18:49:51]NVStorageSaveData kkm_last_timestamp [18:49:51]File name is /storage/kkm_last_timestamp [18:49:51]Write 4 bytes [18:49:51]NVStorageSaveData done [18:49:51]ExternCall_PrintAddStr [18:49:51]wPrintStart [18:49:51]Write to MH i2c: 01 00 00 E9 8E 77 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 E9 8E 00 00 00 00 00 FF 0F 8C [18:49:51]RasterBufferAndPrint [18:49:51]line Счет N : (1)190705 [18:49:51]line ИНН: 02508201610067 [18:49:51]line Контрольно-Кассовый Чек [18:49:51]line ПРОДАЖА [18:49:51]line ТРК (МРК, ГНК) : 21 [18:49:51]line Товар: 2710124130 [18:49:51]line Аи-92-К-5 [18:49:51]line 7.480 * 66.90 [18:49:51]line = 500.41 [18:49:51]line НДС 12% НСП 1% [18:49:51]line > о реализуемом товаре [18:49:51]line ОКРУГЛЕНИЕ: -0.41 [18:49:51]line ИТОГО: 500.00 [18:49:51]line Внесено: 500.00 [18:49:51]line СДАЧА: 0.00 [18:49:51]line НСП 1% : 4.43 [18:49:51]line НДС 12% : 53.14 [18:49:51]line Наличными: 500.00 [18:49:51]line Безнал.: 0.00 [18:49:51]line Место: АЗС № 142 "Партнер Нефть" [18:49:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:49:51]line СНО: Общий режим [18:49:51]line Чек 180 24.10.2024 18:50 [18:49:51]line Смена: 510 ФФД: 1.0 [18:49:51]line ЗНМ: 0300000089 [18:49:51]line РНМ: 0000000000091691 [18:49:51]line Версия ККМ: 001 [18:49:51]line ФМ: 0000000000871795 [18:49:51]line ФД: 74736 [18:49:51]line ФПД: 77388711070019 [18:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185002&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74736&fm=77388711070019&tin=02508201610067®Number=0000000000091691&sum=50000 [18:49:51]written 0, free lines is 4095 [18:49:51]OFD Sender: Processing packet 74736 [packets to send 13, broken 12] [18:49:51]ProducePacketName [18:49:51]name=ofd_packets/00074736 [18:49:51]OFD Sender: To server: pG, [18:49:51]CommunicateWithHost lk.salyk.kg:30040 [18:49:51]ConnectInit lk.salyk.kg [18:49:52]Connected sock=10 [18:49:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 F2 07 01 63 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 DA 96 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F0 23 01 00 35 04 06 00 46 62 76 A2 09 43 DA 55 9B D1 D5 47 43 77 [18:49:52]Write to MH i2c: 01 00 00 14 8F A3 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 07 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 07 00 14 8F 00 00 00 00 00 9C 0C 52 [18:49:52]RasterBufferAndPrint [18:49:52]line [18:49:52]line [18:49:52]line [18:49:52]line [18:49:52]line [18:49:52]written 0, free lines is 3236 [18:49:52]MH_Cut [18:49:52]Write to MH i2c: D1 01 00 1B 8F 01 7C [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: D1 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: D1 01 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: D1 01 00 1B 8F 00 7B [18:49:52]Write to MH i2c: 01 00 00 1C 8F AB [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 70 F8 47 00 E9 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F0 23 01 00 F4 03 04 00 5B 3E 1A 67 B6 04 01 00 00 7F 8F 6C 31 F0 6C 7D B5 [18:49:53]CommunicateWithHost err = 0 [18:49:53]CheckOFDResponse [18:49:53]1017 (14) - 77093643461234 [18:49:53]1041 (16) - 0000000000871795 [18:49:53]1040 (4) - 74736 [18:49:53]1012 (4) - 24.10.2024 12:32 [18:49:53]1206 (1) - 0 [18:49:53]OFD Sender: Remove packet 74736 [18:49:53]ProducePacketName [18:49:53]name=ofd_packets/00074736 [18:49:53]NVStorageDeleteData [18:49:53]*** Cut start [18:49:53]*** Partial cut [18:49:53]*** CUTSNS_PIN = 1 [18:49:53]*** CUTSNS_PIN = 0 [18:49:53]*** Brake cut motor [18:49:53]OFD Sender: No OFD packet to send [18:49:53]Read from MH i2c: 01 [18:49:53]MH_I2C_Read... [18:49:53]*** Stop cut motor [18:49:53]*** Cut end [18:49:53]Read from MH i2c: 01 07 00 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: 01 07 00 1C 8F 00 00 00 00 00 FF 0F C0 [18:49:53]process_action close_receipt done [18:49:53]requested_data is exist [18:49:53]produce_requested_data [18:49:53]requested_item fm.sn is exist - process it [18:49:53]wFMCommunicate request_size=4 [18:49:53]MH_SAM_APDU [18:49:53]CAPDU: 80 11 00 00 [18:49:53]Write to MH i2c: E2 08 00 1D 8F 80 11 00 00 00 00 00 00 26 [18:49:53]Write i2c OK [18:49:53]MH_I2C_Read... [18:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:53]Read from MH i2c: E2 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 17 00 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 17 00 1D 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7E [18:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:49:53]wFMCommunicate OK [18:49:53]requested_item fd.num is exist - process it [18:49:53]SAM_PROTO_GetFieldsCounters [18:49:53]wFMCommunicate request_size=4 [18:49:53]MH_SAM_APDU [18:49:53]CAPDU: 80 13 00 00 [18:49:53]Write to MH i2c: E2 08 00 1E 8F 80 13 00 00 00 00 00 00 29 [18:49:53]Write i2c OK [18:49:53]MH_I2C_Read... [18:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:54]Read from MH i2c: E2 [18:49:54]MH_I2C_Read... [18:49:54]Read from MH i2c: E2 62 00 [18:49:54]MH_I2C_Read... [18:49:54]Read from MH i2c: E2 62 00 1E 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F0 23 01 00 0E 04 04 00 FE 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 7F [18:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F0 23 01 00 0E 04 04 00 FE 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 [18:49:54]wFMCommunicate OK [18:49:54]SAM_PROTO_GetFieldsCounters done [18:49:54]requested_item shift.num is exist - process it [18:49:54]requested_item shift.opened is exist - process it [18:49:54]req_shift_opened [18:49:54]FM_GetShiftState [18:49:54]SAM_PROTO_GetShiftState [18:49:54]wFMCommunicate request_size=4 [18:49:54]MH_SAM_APDU [18:49:54]CAPDU: 80 13 01 00 [18:49:54]Write to MH i2c: E2 08 00 1F 8F 80 13 01 00 00 00 00 00 2B [18:49:54]Write i2c OK [18:49:54]MH_I2C_Read... [18:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:54]Read from MH i2c: E2 [18:49:54]MH_I2C_Read... [18:49:54]Read from MH i2c: E2 0E 00 [18:49:54]MH_I2C_Read... [18:49:54]Read from MH i2c: E2 0E 00 1F 8F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 55 [18:49:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:49:54]wFMCommunicate OK [18:49:54]SAM_PROTO_GetShiftState done [18:49:54]FM_GetShiftState done [18:49:54]req_shift_opened done [18:49:54]requested_item shift.open_date is exist - process it [18:49:54]req_shift_open_date [18:49:54]req_shift_open_date done [18:49:54]produce_requested_data done [18:49:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74736,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:49:54]process_action_free close_receipt [18:49:54]json_value_free [18:49:54]json_value_free done [18:49:54]process_json_proto returns [18:49:54]Send response to host [18:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74736,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:49:54]free response buf [18:49:54]execute_script done [18:49:54]execute_script returns [18:49:54]free content buf [18:49:54]Sock 9.Close socket [18:49:54]Sock 9.Thread stoped [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:17]recv_with_timeout no data received [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:05]accept exits with 8 [18:54:05]New connection [18:54:05]New thread 3066662244 created [18:54:05]Thread 3066805604 joined [18:54:05]Waiting for new connection... [18:54:05] Sock 8.Parse request [18:54:05]Sock 8.Check first char [18:54:05]Sock 8.First char is OK [18:54:05]request: POST /json_proto HTTP/1.0 [18:54:05]Method: POST [18:54:05]URL: /json_proto [18:54:05]Method is POST - this is cgi request [18:54:05]url: /json_proto [18:54:05]query_string will be loaded in cgi processing [18:54:05]execute_cgi json_proto POST (null) [18:54:05]execute_cgi path=json_proto method=POST [18:54:05]POST find Content-Length [18:54:05]Host: 172.17.39.131:8080 [18:54:05]Content-Length: 685 [18:54:05]Content-Type: application/json [18:54:05] [18:54:05]POST finish read [18:54:05]Found Content-Length = 685 [18:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 40.380, "sum" : 1570.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1570.00, "payments": [ { "type": 0, "sum" : 1570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:05]execute_script... [18:54: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)190706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 40.380, "sum" : 1570.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1570.00, "payments": [ { "type": 0, "sum" : 1570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:05]POST & json_proto [18:54:05]process_json_proto [18:54:05]json parsed OK: [18:54:05]protocol is kg_v1.0 [18:54:05]action value=close_receipt [18:54:05]process_action close_receipt [18:54:05]cmd_close_receipt [18:54:05]MH_GetDate [18:54:05]Write to MH i2c: F0 00 00 20 8F 9E [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: F0 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: F0 09 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: F0 09 00 20 8F 00 DA 97 1A 67 86 57 24 65 FF [18:54:05]GetLastDocTimeStamp 1729795802 [18:54:05]current date 1729796058 [18:54:05]FM_GetShiftState [18:54:05]SAM_PROTO_GetShiftState [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 13 01 00 [18:54:05]Write to MH i2c: E2 08 00 21 8F 80 13 01 00 00 00 00 00 2D [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0E 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0E 00 21 8F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 57 [18:54:06]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:54:06]wFMCommunicate OK [18:54:06]SAM_PROTO_GetShiftState done [18:54:06]FM_GetShiftState done [18:54:06]opened in 1729729801 [18:54:06]opened+sec_in_day 1729816201 [18:54:06]quantity*price = 157078 [18:54:06]sum+1 = 157079 [18:54:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.78 ИТОГО: 1570.00 Внесено: 3000.00 СДАЧА: 1430.00 НСП 1% : 13.90 НДС 12% : 166.81 Наличными: 1570.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 181 24.10.2024 18:54 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74737 ФПД: 227475445501051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185418&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74737&fm=227475445501051&tin=02508201610067®Number=0000000000091691&sum=157000 [18:54:07]StoreToDocumentArchive [18:54:07]shift 510 fd 74737 [18:54:07]save to /storage/0510/doc_00074737 [18:54:07]save last doc name /storage/0510/doc_00074737 to /storage/kkm_last_doc_name [18:54:07]save OK [18:54:07]Clear old archive folders... [18:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:54:07]tlvbuf is 00A51C60 [18:54:07]SAM_PROTO_ClearQueue [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 09 00 00 [18:54:07]Write to MH i2c: E2 08 00 2E 8F 80 09 00 00 00 00 00 00 2F [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 2E 8F 00 90 00 31 [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]SAM_PROTO_ClearQueue done [18:54:07]KKMCreateOFDPacket [18:54:07]OFDProtocolAddRootSTLVToBuf [18:54:07]FM_MakeSignedData [18:54:07]FM_MakeSignedData [18:54:07]SAM_PROTO_SignData [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 0D 01 02 [18:54:07]Write to MH i2c: E2 08 00 2F 8F 80 0D 01 02 00 00 00 00 37 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 2F 8F 00 90 00 32 [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]wFMCommunicate request_size=255 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 9D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 41 00 00 00 00 07 04 06 00 48 65 02 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 DA 97 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F1 23 01 00 35 04 06 00 CE E3 [18:54:07]Write to MH i2c: E2 02 01 30 8F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 9D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 41 00 00 00 00 07 04 06 00 48 65 02 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 DA 97 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F1 23 01 00 35 04 06 00 CE E3 00 00 2A [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 30 8F 00 90 00 33 [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]wFMCommunicate request_size=9 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 0D 02 02 04 41 1F CC 7B [18:54:07]Write to MH i2c: E2 0C 00 31 8F 80 0D 02 02 04 00 41 1F CC 7B 00 00 E9 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 31 8F 00 90 00 34 [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 0D 03 02 [18:54:07]Write to MH i2c: E2 08 00 32 8F 80 0D 03 02 00 00 00 00 3C [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 0B 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 0B 00 32 8F 00 A4 2E 36 BB 90 72 A5 BA 90 00 61 [18:54:07]RAPDU: A4 2E 36 BB 90 72 A5 BA 90 00 [18:54:07]wFMCommunicate OK [18:54:07]SAM_PROTO_SignData done [18:54:07]FM_MakeSignedData done [18:54:07]CreateOFDProtocolMessage [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 11 00 00 [18:54:07]Write to MH i2c: E2 08 00 33 8F 80 11 00 00 00 00 00 00 3C [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 17 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 17 00 33 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 94 [18:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:54:07]wFMCommunicate OK [18:54:07]CreateOFDProtocolMessage done [18:54:07]OFDSenderStorePacket 74737 [18:54:07]StoreOFDPacket docnum=74737 [18:54:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 AA D6 06 01 FA 5F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 9D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 41 00 00 00 00 07 04 06 00 48 65 02 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 DA 97 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F1 23 01 00 35 04 06 00 CE E3 41 1F CC 7B A4 2E 36 BB 90 72 A5 BA [18:54:07]CheckFolder [18:54:07]dirname=/storage/ofd_packets [18:54:07]CheckFolder done [18:54:07]ProducePacketName [18:54:07]name=ofd_packets/00074737 [18:54:07]NVStorageSaveData ofd_packets/00074737 [18:54:07]File name is /storage/ofd_packets/00074737 [18:54:07]Write 300 bytes [18:54:07]NVStorageSaveData done [18:54:07]OFDSenderStorePacket done [18:54:07]KKMCreateOFDPacket done [18:54:07]NVStorageSaveData kkm_last_timestamp [18:54:07]File name is /storage/kkm_last_timestamp [18:54:07]Write 4 bytes [18:54:07]NVStorageSaveData done [18:54:07]ExternCall_PrintAddStr [18:54:07]wPrintStart [18:54:07]Write to MH i2c: 01 00 00 34 8F C3 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 07 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 07 00 34 8F 00 00 00 00 00 FF 0F D8 [18:54:07]RasterBufferAndPrint [18:54:07]line Счет N : (1)190706 [18:54:07]line ИНН: 02508201610067 [18:54:07]line Контрольно-Кассовый Чек [18:54:07]line ПРОДАЖА [18:54:07]line ТРК (МРК, ГНК) : 51 [18:54:07]line Товар: 2711190000 [18:54:07]line ГАЗ-К-3 [18:54:07]line 40.380 * 38.90 [18:54:07]line = 1570.78 [18:54:07]line НДС 12% НСП 1% [18:54:07]line > о реализуемом товаре [18:54:07]line ОКРУГЛЕНИЕ: -0.78 [18:54:07]line ИТОГО: 1570.00 [18:54:07]line Внесено: 3000.00 [18:54:07]line СДАЧА: 1430.00 [18:54:07]line НСП 1% : 13.90 [18:54:07]line НДС 12% : 166.81 [18:54:07]line Наличными: 1570.00 [18:54:07]line Безнал.: 0.00 [18:54:07]line Место: АЗС № 142 "Партнер Нефть" [18:54:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:54:07]line СНО: Общий режим [18:54:07]line Чек 181 24.10.2024 18:54 [18:54:07]line Смена: 510 ФФД: 1.0 [18:54:07]line ЗНМ: 0300000089 [18:54:07]line РНМ: 0000000000091691 [18:54:07]line Версия ККМ: 001 [18:54:07]line ФМ: 0000000000871795 [18:54:07]line ФД: 74737 [18:54:07]line ФПД: 227475445501051 [18:54:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185418&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74737&fm=227475445501051&tin=02508201610067®Number=0000000000091691&sum=157000 [18:54:07]written 0, free lines is 4095 [18:54:07]OFD Sender: Processing packet 74737 [packets to send 13, broken 12] [18:54:07]ProducePacketName [18:54:07]name=ofd_packets/00074737 [18:54:07]OFD Sender: To server: pG, [18:54:07]CommunicateWithHost lk.salyk.kg:30040 [18:54:07]ConnectInit lk.salyk.kg [18:54:08]Write to MH i2c: 01 00 00 5F 8F EE [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: 01 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: 01 07 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: 01 07 00 5F 8F 00 00 00 00 00 A7 0C A8 [18:54:08]RasterBufferAndPrint [18:54:08]line [18:54:08]line [18:54:08]line [18:54:08]line [18:54:08]line [18:54:08]written 0, free lines is 3246 [18:54:08]MH_Cut [18:54:08]Write to MH i2c: D1 01 00 66 8F 01 C7 [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: D1 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: D1 01 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: D1 01 00 66 8F 00 C6 [18:54:08]Write to MH i2c: 01 00 00 67 8F F6 [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Connected sock=9 [18:54:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 AA D6 06 01 FA 5F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BC 9D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 96 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 41 00 00 00 00 07 04 06 00 48 65 02 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 DA 97 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F1 23 01 00 35 04 06 00 CE E3 41 1F CC 7B A4 2E 36 BB 90 72 A5 BA [18:54:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DF 8F 47 00 5D 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 31 37 39 35 10 04 04 00 F1 23 01 00 F4 03 04 00 5C 3F 1A 67 B6 04 01 00 00 BE 21 A5 6B 42 CB 53 8B [18:54:08]CommunicateWithHost err = 0 [18:54:08]CheckOFDResponse [18:54:08]1017 (14) - 77093643461234 [18:54:08]1041 (16) - 0000000000871795 [18:54:08]1040 (4) - 74737 [18:54:08]1012 (4) - 24.10.2024 12:36 [18:54:08]1206 (1) - 0 [18:54:08]OFD Sender: Remove packet 74737 [18:54:08]ProducePacketName [18:54:08]name=ofd_packets/00074737 [18:54:08]NVStorageDeleteData [18:54:08]*** Cut start [18:54:08]*** Partial cut [18:54:08]*** CUTSNS_PIN = 1 [18:54:09]OFD Sender: No OFD packet to send [18:54:09]*** CUTSNS_PIN = 0 [18:54:09]*** Brake cut motor [18:54:09]Read from MH i2c: 01 [18:54:09]MH_I2C_Read... [18:54:09]*** Stop cut motor [18:54:09]*** Cut end [18:54:09]Read from MH i2c: 01 07 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: 01 07 00 67 8F 00 00 00 00 00 FF 0F 0B [18:54:09]process_action close_receipt done [18:54:09]requested_data is exist [18:54:09]produce_requested_data [18:54:09]requested_item fm.sn is exist - process it [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 11 00 00 [18:54:09]Write to MH i2c: E2 08 00 68 8F 80 11 00 00 00 00 00 00 71 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 17 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 17 00 68 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C9 [18:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:54:09]wFMCommunicate OK [18:54:09]requested_item fd.num is exist - process it [18:54:09]SAM_PROTO_GetFieldsCounters [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 13 00 00 [18:54:09]Write to MH i2c: E2 08 00 69 8F 80 13 00 00 00 00 00 00 74 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 62 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 62 00 69 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F1 23 01 00 0E 04 04 00 FE 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 CE [18:54:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F1 23 01 00 0E 04 04 00 FE 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 [18:54:09]wFMCommunicate OK [18:54:09]SAM_PROTO_GetFieldsCounters done [18:54:09]requested_item shift.num is exist - process it [18:54:09]requested_item shift.opened is exist - process it [18:54:09]req_shift_opened [18:54:09]FM_GetShiftState [18:54:09]SAM_PROTO_GetShiftState [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 13 01 00 [18:54:09]Write to MH i2c: E2 08 00 6A 8F 80 13 01 00 00 00 00 00 76 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 0E 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 0E 00 6A 8F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A0 [18:54:09]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:54:09]wFMCommunicate OK [18:54:09]SAM_PROTO_GetShiftState done [18:54:09]FM_GetShiftState done [18:54:09]req_shift_opened done [18:54:09]requested_item shift.open_date is exist - process it [18:54:09]req_shift_open_date [18:54:09]req_shift_open_date done [18:54:09]produce_requested_data done [18:54:09]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74737,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:54:09]process_action_free close_receipt [18:54:09]json_value_free [18:54:09]json_value_free done [18:54:09]process_json_proto returns [18:54:09]Send response to host [18:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74737,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:54:09]free response buf [18:54:09]execute_script done [18:54:09]execute_script returns [18:54:09]free content buf [18:54:09]Sock 8.Close socket [18:54:09]Sock 8.Thread stoped [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:01]accept exits with 10 [18:56:01]New connection [18:56:01]New thread 3066805604 created [18:56:01]Thread 3066662244 joined [18:56:01]Waiting for new connection... [18:56:01] Sock 10.Parse request [18:56:01]Sock 10.Check first char [18:56:01]Sock 10.First char is OK [18:56:01]request: POST /json_proto HTTP/1.0 [18:56:01]Method: POST [18:56:01]URL: /json_proto [18:56:01]Method is POST - this is cgi request [18:56:01]url: /json_proto [18:56:01]query_string will be loaded in cgi processing [18:56:01]execute_cgi json_proto POST (null) [18:56:01]execute_cgi path=json_proto method=POST [18:56:01]POST find Content-Length [18:56:01]Host: 172.17.39.131:8080 [18:56:01]Content-Length: 778 [18:56:01]Content-Type: application/json [18:56:01] [18:56:01]POST finish read [18:56:01]Found Content-Length = 778 [18:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 500.000, "sum" : 38600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 38600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:01]execute_script... [18:56: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)190691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 500.000, "sum" : 38600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 38600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:01]POST & json_proto [18:56:01]process_json_proto [18:56:01]json parsed OK: [18:56:01]protocol is kg_v1.0 [18:56:01]action value=close_receipt [18:56:01]process_action close_receipt [18:56:01]cmd_close_receipt [18:56:01]MH_GetDate [18:56:01]Write to MH i2c: F0 00 00 6B 8F E9 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: F0 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: F0 09 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: F0 09 00 6B 8F 00 4E 98 1A 67 86 57 24 65 BF [18:56:01]GetLastDocTimeStamp 1729796058 [18:56:01]current date 1729796174 [18:56:01]FM_GetShiftState [18:56:01]SAM_PROTO_GetShiftState [18:56:01]wFMCommunicate request_size=4 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 13 01 00 [18:56:01]Write to MH i2c: E2 08 00 6C 8F 80 13 01 00 00 00 00 00 78 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 0E 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 0E 00 6C 8F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A2 [18:56:01]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:56:01]wFMCommunicate OK [18:56:01]SAM_PROTO_GetShiftState done [18:56:01]FM_GetShiftState done [18:56:01]opened in 1729729801 [18:56:01]opened+sec_in_day 1729816201 [18:56:01]quantity*price = 3860000 [18:56:01]sum+1 = 3860001 [18:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 38600.00 НСП 1% : 341.59 НДС 12% : 4099.11 Наличными: 0.00 Безнал.: 38600.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 182 24.10.2024 18:56 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74738 ФПД: 63598203453331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185614&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74738&fm=63598203453331&tin=02508201610067®Number=0000000000091691&sum=3860000 [18:56:02]StoreToDocumentArchive [18:56:02]shift 510 fd 74738 [18:56:02]save to /storage/0510/doc_00074738 [18:56:02]save last doc name /storage/0510/doc_00074738 to /storage/kkm_last_doc_name [18:56:02]save OK [18:56:02]Clear old archive folders... [18:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:56:02]tlvbuf is 00A51E60 [18:56:02]SAM_PROTO_ClearQueue [18:56:02]wFMCommunicate request_size=4 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 09 00 00 [18:56:02]Write to MH i2c: E2 08 00 79 8F 80 09 00 00 00 00 00 00 7A [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 79 8F 00 90 00 7C [18:56:02]RAPDU: 90 00 [18:56:02]wFMCommunicate OK [18:56:02]SAM_PROTO_ClearQueue done [18:56:02]KKMCreateOFDPacket [18:56:02]OFDProtocolAddRootSTLVToBuf [18:56:02]FM_MakeSignedData [18:56:02]FM_MakeSignedData [18:56:02]SAM_PROTO_SignData [18:56:02]wFMCommunicate request_size=4 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 0D 01 02 [18:56:02]Write to MH i2c: E2 08 00 7A 8F 80 0D 01 02 00 00 00 00 82 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 7A 8F 00 90 00 7D [18:56:02]RAPDU: 90 00 [18:56:02]wFMCommunicate OK [18:56:02]wFMCommunicate request_size=255 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4E 98 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F2 23 01 [18:56:02]Write to MH i2c: E2 02 01 7B 8F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4E 98 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F2 23 01 00 00 8F [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 7B 8F 00 90 00 7E [18:56:03]RAPDU: 90 00 [18:56:03]wFMCommunicate OK [18:56:03]wFMCommunicate request_size=16 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 39 D7 9C 53 3F 93 [18:56:03]Write to MH i2c: E2 13 00 7C 8F 80 0D 02 02 0B 00 00 35 04 06 00 39 D7 9C 53 3F 93 00 00 AB [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 03 00 7C 8F 00 90 00 7F [18:56:03]RAPDU: 90 00 [18:56:03]wFMCommunicate OK [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 0D 03 02 [18:56:03]Write to MH i2c: E2 08 00 7D 8F 80 0D 03 02 00 00 00 00 87 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 0B 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 0B 00 7D 8F 00 52 DF 11 5B 02 15 DB E9 90 00 00 [18:56:03]RAPDU: 52 DF 11 5B 02 15 DB E9 90 00 [18:56:03]wFMCommunicate OK [18:56:03]SAM_PROTO_SignData done [18:56:03]FM_MakeSignedData done [18:56:03]CreateOFDProtocolMessage [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 11 00 00 [18:56:03]Write to MH i2c: E2 08 00 7E 8F 80 11 00 00 00 00 00 00 87 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 17 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 17 00 7E 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DF [18:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:56:03]wFMCommunicate OK [18:56:03]CreateOFDProtocolMessage done [18:56:03]OFDSenderStorePacket 74738 [18:56:03]StoreOFDPacket docnum=74738 [18:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 33 B6 0D 01 22 62 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4E 98 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F2 23 01 00 35 04 06 00 39 D7 9C 53 3F 93 52 DF 11 5B 02 15 DB E9 [18:56:03]CheckFolder [18:56:03]dirname=/storage/ofd_packets [18:56:03]CheckFolder done [18:56:03]ProducePacketName [18:56:03]name=ofd_packets/00074738 [18:56:03]NVStorageSaveData ofd_packets/00074738 [18:56:03]File name is /storage/ofd_packets/00074738 [18:56:03]Write 307 bytes [18:56:03]NVStorageSaveData done [18:56:03]OFDSenderStorePacket done [18:56:03]KKMCreateOFDPacket done [18:56:03]NVStorageSaveData kkm_last_timestamp [18:56:03]File name is /storage/kkm_last_timestamp [18:56:03]Write 4 bytes [18:56:03]NVStorageSaveData done [18:56:03]ExternCall_PrintAddStr [18:56:03]wPrintStart [18:56:03]Write to MH i2c: 01 00 00 7F 8F 0E [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 07 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 07 00 7F 8F 00 00 00 00 00 FF 0F 23 [18:56:03]RasterBufferAndPrint [18:56:03]line Счет N : (1)190691 [18:56:03]line ИНН: 02508201610067 [18:56:03]line Контрольно-Кассовый Чек [18:56:03]line ПРОДАЖА [18:56:03]line ТРК (МРК, ГНК) : 42 [18:56:03]line Товар: 2710194240 [18:56:03]line D-ENERGY ДТ-К-2 [18:56:03]line 500.000 * 77.20 [18:56:03]line = 38600.00 [18:56:03]line НДС 12% НСП 1% [18:56:03]line > о реализуемом товаре [18:56:03]line ИТОГО: 38600.00 [18:56:03]line НСП 1% : 341.59 [18:56:03]line НДС 12% : 4099.11 [18:56:03]line Наличными: 0.00 [18:56:03]line Безнал.: 38600.00 [18:56:03]line Место: АЗС № 142 "Партнер Нефть" [18:56:03]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:56:03]line СНО: Общий режим [18:56:03]line Чек 182 24.10.2024 18:56 [18:56:03]line Смена: 510 ФФД: 1.0 [18:56:03]line ЗНМ: 0300000089 [18:56:03]line РНМ: 0000000000091691 [18:56:03]line Версия ККМ: 001 [18:56:03]line Платежная система: Mbank [18:56:03]line ФМ: 0000000000871795 [18:56:03]line ФД: 74738 [18:56:03]line ФПД: 63598203453331 [18:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185614&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74738&fm=63598203453331&tin=02508201610067®Number=0000000000091691&sum=3860000 [18:56:03]OFD Sender: Processing packet 74738 [packets to send 13, broken 12] [18:56:03]ProducePacketName [18:56:03]name=ofd_packets/00074738 [18:56:03]OFD Sender: To server: pG, [18:56:03]CommunicateWithHost lk.salyk.kg:30040 [18:56:03]ConnectInit lk.salyk.kg [18:56:03]written 0, free lines is 4095 [18:56:03]Connected sock=9 [18: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 31 37 39 35 15 01 00 00 33 B6 0D 01 22 62 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 E6 3A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 3A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 85 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 41 06 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 3A 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4E 98 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F2 23 01 00 35 04 06 00 39 D7 9C 53 3F 93 52 DF 11 5B 02 15 DB E9 [18:56:04]Write to MH i2c: 01 00 00 A8 8F 37 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 A8 8F 00 00 00 00 00 DF 0C 29 [18:56:04]RasterBufferAndPrint [18:56:04]line [18:56:04]line [18:56:04]line [18:56:04]line [18:56:04]line [18:56:04]written 0, free lines is 3301 [18:56:04]MH_Cut [18:56:04]Write to MH i2c: D1 01 00 AF 8F 01 10 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: D1 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: D1 01 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: D1 01 00 AF 8F 00 0F [18:56:04]Write to MH i2c: 01 00 00 B0 8F 3F [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DC 5D 47 00 CA 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F2 23 01 00 F4 03 04 00 CF 3F 1A 67 B6 04 01 00 00 42 31 55 7D 30 4A BF A7 [18:56:04]CommunicateWithHost err = 0 [18:56:04]CheckOFDResponse [18:56:04]1017 (14) - 77093643461234 [18:56:04]1041 (16) - 0000000000871795 [18:56:04]1040 (4) - 74738 [18:56:04]1012 (4) - 24.10.2024 12:38 [18:56:04]1206 (1) - 0 [18:56:04]OFD Sender: Remove packet 74738 [18:56:04]ProducePacketName [18:56:04]name=ofd_packets/00074738 [18:56:04]NVStorageDeleteData [18:56:04]OFD Sender: No OFD packet to send [18:56:05]*** Cut start [18:56:05]*** Partial cut [18:56:05]*** CUTSNS_PIN = 1 [18:56:05]*** CUTSNS_PIN = 0 [18:56:05]*** Brake cut motor [18:56:05]Read from MH i2c: 01 [18:56:05]MH_I2C_Read... [18:56:05]*** Stop cut motor [18:56:05]*** Cut end [18:56:05]Read from MH i2c: 01 07 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: 01 07 00 B0 8F 00 00 00 00 00 FF 0F 54 [18:56:05]process_action close_receipt done [18:56:05]requested_data is exist [18:56:05]produce_requested_data [18:56:05]requested_item fm.sn is exist - process it [18:56:05]wFMCommunicate request_size=4 [18:56:05]MH_SAM_APDU [18:56:05]CAPDU: 80 11 00 00 [18:56:05]Write to MH i2c: E2 08 00 B1 8F 80 11 00 00 00 00 00 00 BA [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:05]Read from MH i2c: E2 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 17 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 17 00 B1 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 12 [18:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:56:05]wFMCommunicate OK [18:56:05]requested_item fd.num is exist - process it [18:56:05]SAM_PROTO_GetFieldsCounters [18:56:05]wFMCommunicate request_size=4 [18:56:05]MH_SAM_APDU [18:56:05]CAPDU: 80 13 00 00 [18:56:05]Write to MH i2c: E2 08 00 B2 8F 80 13 00 00 00 00 00 00 BD [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:05]Read from MH i2c: E2 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 62 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 62 00 B2 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F2 23 01 00 0E 04 04 00 FE 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 1B [18:56:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F2 23 01 00 0E 04 04 00 FE 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 [18:56:05]wFMCommunicate OK [18:56:05]SAM_PROTO_GetFieldsCounters done [18:56:05]requested_item shift.num is exist - process it [18:56:05]requested_item shift.opened is exist - process it [18:56:05]req_shift_opened [18:56:05]FM_GetShiftState [18:56:05]SAM_PROTO_GetShiftState [18:56:05]wFMCommunicate request_size=4 [18:56:05]MH_SAM_APDU [18:56:05]CAPDU: 80 13 01 00 [18:56:05]Write to MH i2c: E2 08 00 B3 8F 80 13 01 00 00 00 00 00 BF [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:05]Read from MH i2c: E2 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 0E 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 0E 00 B3 8F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E9 [18:56:05]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:56:05]wFMCommunicate OK [18:56:05]SAM_PROTO_GetShiftState done [18:56:05]FM_GetShiftState done [18:56:05]req_shift_opened done [18:56:05]requested_item shift.open_date is exist - process it [18:56:05]req_shift_open_date [18:56:05]req_shift_open_date done [18:56:05]produce_requested_data done [18:56:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74738,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:56:05]process_action_free close_receipt [18:56:05]json_value_free [18:56:05]json_value_free done [18:56:05]process_json_proto returns [18:56:05]Send response to host [18:56:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74738,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:56:05]free response buf [18:56:05]execute_script done [18:56:05]execute_script returns [18:56:05]free content buf [18:56:05]Sock 10.Close socket [18:56:05]Sock 10.Thread stoped [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]int [18:58:24]Write to MH i2c: 01 00 00 B4 8F 43 [18:58:24]*** FLAG_PRN_KEY set [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 B4 8F 00 08 00 00 00 FF 0F 60 [18:58:24]state=0 [18:58:24]Key pressed [18:58:24]Feed [18:58:24]Write to MH i2c: D8 00 00 B5 8F 1B [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: D8 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: D8 01 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: D8 01 00 B5 8F 00 1C [18:58:24]int [18:58:24]Write to MH i2c: 01 00 00 B6 8F 45 [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 B6 8F 00 48 00 00 00 3C 00 D0 [18:58:24]state=2 [18:58:24]Key pressed [18:58:24]OFD Sender: No OFD packet to send [18:58:24]int [18:58:24]Write to MH i2c: 01 00 00 B7 8F 46 [18:58:24]*** FLAG_PRN_KEY reset [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 B7 8F 00 00 00 00 00 F8 0F 54 [18:58:24]state=2 [18:58:24]Stop feed [18:58:25]int [18:58:25]Write to MH i2c: 01 00 00 B8 8F 47 [18:58:25]*** FLAG_PRN_KEY set [18:58:25]Write i2c OK [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 07 00 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 07 00 B8 8F 00 08 00 00 00 FF 0F 64 [18:58:25]state=0 [18:58:25]Key pressed [18:58:25]Feed [18:58:25]Write to MH i2c: D8 00 00 B9 8F 1F [18:58:25]Write i2c OK [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: D8 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: D8 01 00 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: D8 01 00 B9 8F 00 20 [18:58:25]int [18:58:25]Write to MH i2c: 01 00 00 BA 8F 49 [18:58:25]Write i2c OK [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 07 00 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 07 00 BA 8F 00 48 00 00 00 3C 00 D4 [18:58:25]state=2 [18:58:25]Key pressed [18:58:25]int [18:58:25]Write to MH i2c: 01 00 00 BB 8F 4A [18:58:25]*** FLAG_PRN_KEY reset [18:58:25]Write i2c OK [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 07 00 [18:58:25]MH_I2C_Read... [18:58:25]Read from MH i2c: 01 07 00 BB 8F 00 00 00 00 00 F5 0F 55 [18:58:25]state=2 [18:58:25]Stop feed [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:45]accept exits with 8 [18:59:45]New connection [18:59:45]New thread 3066662244 created [18:59:45]Thread 3066805604 joined [18:59:45]Waiting for new connection... [18:59:45] Sock 8.Parse request [18:59:45]Sock 8.Check first char [18:59:45]Sock 8.First char is OK [18:59:45]request: POST /json_proto HTTP/1.0 [18:59:45]Method: POST [18:59:45]URL: /json_proto [18:59:45]Method is POST - this is cgi request [18:59:45]url: /json_proto [18:59:45]query_string will be loaded in cgi processing [18:59:45]execute_cgi json_proto POST (null) [18:59:45]execute_cgi path=json_proto method=POST [18:59:45]POST find Content-Length [18:59:45]Host: 172.17.39.131:8080 [18:59:45]Content-Length: 800 [18:59:45]Content-Type: application/json [18:59:45] [18:59:45]POST finish read [18:59:45]Found Content-Length = 800 [18:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:45]execute_script... [18:59: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)190709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:45]POST & json_proto [18:59:45]process_json_proto [18:59:45]json parsed OK: [18:59:45]protocol is kg_v1.0 [18:59:45]action value=close_receipt [18:59:45]process_action close_receipt [18:59:45]cmd_close_receipt [18:59:45]MH_GetDate [18:59:45]Write to MH i2c: F0 00 00 BC 8F 3A [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: F0 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: F0 09 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: F0 09 00 BC 8F 00 2E 99 1A 67 86 57 24 65 F1 [18:59:45]GetLastDocTimeStamp 1729796174 [18:59:45]current date 1729796398 [18:59:45]FM_GetShiftState [18:59:45]SAM_PROTO_GetShiftState [18:59:45]wFMCommunicate request_size=4 [18:59:45]MH_SAM_APDU [18:59:45]CAPDU: 80 13 01 00 [18:59:45]Write to MH i2c: E2 08 00 BD 8F 80 13 01 00 00 00 00 00 C9 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:45]Read from MH i2c: E2 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 0E 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 0E 00 BD 8F 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F3 [18:59:45]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:59:45]wFMCommunicate OK [18:59:45]SAM_PROTO_GetShiftState done [18:59:45]FM_GetShiftState done [18:59:45]opened in 1729729801 [18:59:45]opened+sec_in_day 1729816201 [18:59:45]quantity*price = 0 [18:59:45]sum+1 = 1 [18:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 183 24.10.2024 18:59 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливные Талоны 4564809 ФМ: 0000000000871795 ФД: 74739 ФПД: 61718816764614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185958&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74739&fm=61718816764614&tin=02508201610067®Number=0000000000091691&sum=0 [18:59:46]StoreToDocumentArchive [18:59:46]shift 510 fd 74739 [18:59:46]save to /storage/0510/doc_00074739 [18:59:46]save last doc name /storage/0510/doc_00074739 to /storage/kkm_last_doc_name [18:59:46]save OK [18:59:46]Clear old archive folders... [18:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:46]tlvbuf is 007C61D0 [18:59:46]SAM_PROTO_ClearQueue [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 09 00 00 [18:59:46]Write to MH i2c: E2 08 00 CA 8F 80 09 00 00 00 00 00 00 CB [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 03 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 03 00 CA 8F 00 90 00 CD [18:59:46]RAPDU: 90 00 [18:59:46]wFMCommunicate OK [18:59:46]SAM_PROTO_ClearQueue done [18:59:46]KKMCreateOFDPacket [18:59:46]OFDProtocolAddRootSTLVToBuf [18:59:46]FM_MakeSignedData [18:59:46]FM_MakeSignedData [18:59:46]SAM_PROTO_SignData [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 0D 01 02 [18:59:46]Write to MH i2c: E2 08 00 CB 8F 80 0D 01 02 00 00 00 00 D3 [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 03 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 03 00 CB 8F 00 90 00 CE [18:59:46]RAPDU: 90 00 [18:59:46]wFMCommunicate OK [18:59:46]wFMCommunicate request_size=255 [18:59:46]MH_SAM_APDU [18:59: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F3 23 01 00 35 04 06 00 38 [18:59:46]Write to MH i2c: E2 02 01 CC 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F3 23 01 00 35 04 06 00 38 00 00 67 [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:47]Read from MH i2c: E2 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 03 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 03 00 CC 8F 00 90 00 CF [18:59:47]RAPDU: 90 00 [18:59:47]wFMCommunicate OK [18:59:47]wFMCommunicate request_size=10 [18:59:47]MH_SAM_APDU [18:59:47]CAPDU: 80 0D 02 02 05 22 08 26 32 C6 [18:59:47]Write to MH i2c: E2 0D 00 CD 8F 80 0D 02 02 05 00 22 08 26 32 C6 00 00 28 [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:47]Read from MH i2c: E2 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 03 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 03 00 CD 8F 00 90 00 D0 [18:59:47]RAPDU: 90 00 [18:59:47]wFMCommunicate OK [18:59:47]wFMCommunicate request_size=4 [18:59:47]MH_SAM_APDU [18:59:47]CAPDU: 80 0D 03 02 [18:59:47]Write to MH i2c: E2 08 00 CE 8F 80 0D 03 02 00 00 00 00 D8 [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:47]Read from MH i2c: E2 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 0B 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 0B 00 CE 8F 00 0B 9C 14 D8 07 28 A5 8F 90 00 CF [18:59:47]RAPDU: 0B 9C 14 D8 07 28 A5 8F 90 00 [18:59:47]wFMCommunicate OK [18:59:47]SAM_PROTO_SignData done [18:59:47]FM_MakeSignedData done [18:59:47]CreateOFDProtocolMessage [18:59:47]wFMCommunicate request_size=4 [18:59:47]MH_SAM_APDU [18:59:47]CAPDU: 80 11 00 00 [18:59:47]Write to MH i2c: E2 08 00 CF 8F 80 11 00 00 00 00 00 00 D8 [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:47]Read from MH i2c: E2 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 17 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 17 00 CF 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 30 [18:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:59:47]wFMCommunicate OK [18:59:47]CreateOFDProtocolMessage done [18:59:47]OFDSenderStorePacket 74739 [18:59:47]StoreOFDPacket docnum=74739 [18:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 57 F8 07 01 DE 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F3 23 01 00 35 04 06 00 38 22 08 26 32 C6 0B 9C 14 D8 07 28 A5 8F [18:59:47]CheckFolder [18:59:47]dirname=/storage/ofd_packets [18:59:47]CheckFolder done [18:59:47]ProducePacketName [18:59:47]name=ofd_packets/00074739 [18:59:47]NVStorageSaveData ofd_packets/00074739 [18:59:47]File name is /storage/ofd_packets/00074739 [18:59:47]Write 301 bytes [18:59:47]NVStorageSaveData done [18:59:47]OFDSenderStorePacket done [18:59:47]KKMCreateOFDPacket done [18:59:47]NVStorageSaveData kkm_last_timestamp [18:59:47]File name is /storage/kkm_last_timestamp [18:59:47]Write 4 bytes [18:59:47]NVStorageSaveData done [18:59:47]ExternCall_PrintAddStr [18:59:47]wPrintStart [18:59:47]Write to MH i2c: 01 00 00 D0 8F 5F [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: 01 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: 01 07 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: 01 07 00 D0 8F 00 00 00 00 00 FF 0F 74 [18:59:47]RasterBufferAndPrint [18:59:47]line Счет N : (1)190709 [18:59:47]line ИНН: 02508201610067 [18:59:47]line Контрольно-Кассовый Чек [18:59:47]line ПРОДАЖА [18:59:47]line ТРК (МРК, ГНК) : 21 [18:59:47]line Товар: 2710124130 [18:59:47]line Аи-92-К-5 [18:59:47]line 10.000 * 0.00 [18:59:47]line = 0.00 [18:59:47]line НДС 12% НСП 1% [18:59:47]line > о реализуемом товаре [18:59:47]line ИТОГО: 0.00 [18:59:47]line НСП 1% : 0.00 [18:59:47]line НДС 12% : 0.00 [18:59:47]line Наличными: 0.00 [18:59:47]line Безнал.: 0.00 [18:59:47]line Место: АЗС № 142 "Партнер Нефть" [18:59:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:59:47]line СНО: Общий режим [18:59:47]line Чек 183 24.10.2024 18:59 [18:59:47]line Смена: 510 ФФД: 1.0 [18:59:47]line ЗНМ: 0300000089 [18:59:47]line РНМ: 0000000000091691 [18:59:47]line Версия ККМ: 001 [18:59:47]line Талоны: Топливные Талоны [18:59:47]line 4564809 [18:59:47]line ФМ: 0000000000871795 [18:59:47]line ФД: 74739 [18:59:47]line ФПД: 61718816764614 [18:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185958&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74739&fm=61718816764614&tin=02508201610067®Number=0000000000091691&sum=0 [18:59:47]written 0, free lines is 4095 [18:59:47]OFD Sender: Processing packet 74739 [packets to send 13, broken 12] [18:59:47]ProducePacketName [18:59:47]name=ofd_packets/00074739 [18:59:47]OFD Sender: To server: pG, [18:59:47]CommunicateWithHost lk.salyk.kg:30040 [18:59:47]ConnectInit lk.salyk.kg [18:59:47]Connected sock=9 [18:59:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 57 F8 07 01 DE 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F3 23 01 00 35 04 06 00 38 22 08 26 32 C6 0B 9C 14 D8 07 28 A5 8F [18:59:47]Write to MH i2c: 01 00 00 FA 8F 89 [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: 01 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: 01 07 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: 01 07 00 FA 8F 00 00 00 00 00 BC 0C 58 [18:59:47]RasterBufferAndPrint [18:59:47]line [18:59:47]line [18:59:47]line [18:59:47]line [18:59:47]line [18:59:47]written 0, free lines is 3266 [18:59:47]MH_Cut [18:59:47]Write to MH i2c: D1 01 00 01 90 01 63 [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: D1 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: D1 01 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: D1 01 00 01 90 00 62 [18:59:47]Write to MH i2c: 01 00 00 02 90 92 [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 5D 83 47 00 EE 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 31 37 39 35 10 04 04 00 F3 23 01 00 F4 03 04 00 AF 40 1A 67 B6 04 01 00 00 B3 41 C6 BC E7 97 54 42 [18:59:47]CommunicateWithHost err = 0 [18:59:47]CheckOFDResponse [18:59:47]1017 (14) - 77093643461234 [18:59:47]1041 (16) - 0000000000871795 [18:59:47]1040 (4) - 74739 [18:59:47]1012 (4) - 24.10.2024 12:42 [18:59:47]1206 (1) - 0 [18:59:47]OFD Sender: Remove packet 74739 [18:59:47]ProducePacketName [18:59:47]name=ofd_packets/00074739 [18:59:47]NVStorageDeleteData [18:59:48]OFD Sender: No OFD packet to send [18:59:48]*** Cut start [18:59:48]*** Partial cut [18:59:48]*** CUTSNS_PIN = 1 [18:59:48]*** CUTSNS_PIN = 0 [18:59:48]*** Brake cut motor [18:59:49]Read from MH i2c: 01 [18:59:49]MH_I2C_Read... [18:59:49]*** Stop cut motor [18:59:49]*** Cut end [18:59:49]Read from MH i2c: 01 07 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: 01 07 00 02 90 00 00 00 00 00 FF 0F A7 [18:59:49]process_action close_receipt done [18:59:49]requested_data is exist [18:59:49]produce_requested_data [18:59:49]requested_item fm.sn is exist - process it [18:59:49]wFMCommunicate request_size=4 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 11 00 00 [18:59:49]Write to MH i2c: E2 08 00 03 90 80 11 00 00 00 00 00 00 0D [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:49]Read from MH i2c: E2 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 17 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 17 00 03 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 65 [18:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:59:49]wFMCommunicate OK [18:59:49]requested_item fd.num is exist - process it [18:59:49]SAM_PROTO_GetFieldsCounters [18:59:49]wFMCommunicate request_size=4 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 13 00 00 [18:59:49]Write to MH i2c: E2 08 00 04 90 80 13 00 00 00 00 00 00 10 [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:49]Read from MH i2c: E2 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 62 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 62 00 04 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F3 23 01 00 0E 04 04 00 FE 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 72 [18:59:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F3 23 01 00 0E 04 04 00 FE 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 [18:59:49]wFMCommunicate OK [18:59:49]SAM_PROTO_GetFieldsCounters done [18:59:49]requested_item shift.num is exist - process it [18:59:49]requested_item shift.opened is exist - process it [18:59:49]req_shift_opened [18:59:49]FM_GetShiftState [18:59:49]SAM_PROTO_GetShiftState [18:59:49]wFMCommunicate request_size=4 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 13 01 00 [18:59:49]Write to MH i2c: E2 08 00 05 90 80 13 01 00 00 00 00 00 12 [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:49]Read from MH i2c: E2 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 0E 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 0E 00 05 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 3C [18:59:49]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [18:59:49]wFMCommunicate OK [18:59:49]SAM_PROTO_GetShiftState done [18:59:49]FM_GetShiftState done [18:59:49]req_shift_opened done [18:59:49]requested_item shift.open_date is exist - process it [18:59:49]req_shift_open_date [18:59:49]req_shift_open_date done [18:59:49]produce_requested_data done [18:59:49]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74739,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [18:59:49]process_action_free close_receipt [18:59:49]json_value_free [18:59:49]json_value_free done [18:59:49]process_json_proto returns [18:59:49]Send response to host [18:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74739,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [18:59:49]free response buf [18:59:49]execute_script done [18:59:49]execute_script returns [18:59:49]free content buf [18:59:49]Sock 8.Close socket [18:59:49]Sock 8.Thread stoped [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:08]accept exits with 10 [19:01:08]New connection [19:01:08]New thread 3066805604 created [19:01:08]Thread 3066662244 joined [19:01:08]Waiting for new connection... [19:01:08] Sock 10.Parse request [19:01:08]Sock 10.Check first char [19:01:08]Sock 10.First char is OK [19:01:08]request: POST /json_proto HTTP/1.0 [19:01:08]Method: POST [19:01:08]URL: /json_proto [19:01:08]Method is POST - this is cgi request [19:01:08]url: /json_proto [19:01:08]query_string will be loaded in cgi processing [19:01:08]execute_cgi json_proto POST (null) [19:01:08]execute_cgi path=json_proto method=POST [19:01:08]POST find Content-Length [19:01:08]Host: 172.17.39.131:8080 [19:01:08]Content-Length: 678 [19:01:08]Content-Type: application/json [19:01:08] [19:01:08]POST finish read [19:01:08]Found Content-Length = 678 [19:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:08]execute_script... [19:01: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)190710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:08]POST & json_proto [19:01:08]process_json_proto [19:01:08]json parsed OK: [19:01:08]protocol is kg_v1.0 [19:01:08]action value=close_receipt [19:01:08]process_action close_receipt [19:01:08]cmd_close_receipt [19:01:08]MH_GetDate [19:01:08]Write to MH i2c: F0 00 00 06 90 85 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: F0 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: F0 09 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: F0 09 00 06 90 00 81 99 1A 67 86 57 24 65 8F [19:01:08]GetLastDocTimeStamp 1729796398 [19:01:08]current date 1729796481 [19:01:08]FM_GetShiftState [19:01:08]SAM_PROTO_GetShiftState [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 13 01 00 [19:01:08]Write to MH i2c: E2 08 00 07 90 80 13 01 00 00 00 00 00 14 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 07 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 3E [19:01:08]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:01:08]wFMCommunicate OK [19:01:08]SAM_PROTO_GetShiftState done [19:01:08]FM_GetShiftState done [19:01:08]opened in 1729729801 [19:01:08]opened+sec_in_day 1729816201 [19:01:08]quantity*price = 80012 [19:01:08]sum+1 = 80013 [19:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 184 24.10.2024 19:01 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74740 ФПД: 206828203710215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190121&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74740&fm=206828203710215&tin=02508201610067®Number=0000000000091691&sum=80000 [19:01:09]StoreToDocumentArchive [19:01:09]shift 510 fd 74740 [19:01:09]save to /storage/0510/doc_00074740 [19:01:09]save last doc name /storage/0510/doc_00074740 to /storage/kkm_last_doc_name [19:01:09]save OK [19:01:09]Clear old archive folders... [19:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:09]tlvbuf is 008FD3D0 [19:01:09]SAM_PROTO_ClearQueue [19:01:09]wFMCommunicate request_size=4 [19:01:09]MH_SAM_APDU [19:01:09]CAPDU: 80 09 00 00 [19:01:09]Write to MH i2c: E2 08 00 14 90 80 09 00 00 00 00 00 00 16 [19:01:09]Write i2c OK [19:01:09]MH_I2C_Read... [19:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:09]Read from MH i2c: E2 [19:01:09]MH_I2C_Read... [19:01:09]Read from MH i2c: E2 03 00 [19:01:09]MH_I2C_Read... [19:01:09]Read from MH i2c: E2 03 00 14 90 00 90 00 18 [19:01:09]RAPDU: 90 00 [19:01:09]wFMCommunicate OK [19:01:09]SAM_PROTO_ClearQueue done [19:01:09]KKMCreateOFDPacket [19:01:09]OFDProtocolAddRootSTLVToBuf [19:01:09]FM_MakeSignedData [19:01:09]FM_MakeSignedData [19:01:09]SAM_PROTO_SignData [19:01:09]wFMCommunicate request_size=4 [19:01:09]MH_SAM_APDU [19:01:09]CAPDU: 80 0D 01 02 [19:01:09]Write to MH i2c: E2 08 00 15 90 80 0D 01 02 00 00 00 00 1E [19:01:09]Write i2c OK [19:01:09]MH_I2C_Read... [19:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:09]Read from MH i2c: E2 [19:01:09]MH_I2C_Read... [19:01:09]Read from MH i2c: E2 03 00 [19:01:09]MH_I2C_Read... [19:01:09]Read from MH i2c: E2 03 00 15 90 00 90 00 19 [19:01:09]RAPDU: 90 00 [19:01:09]wFMCommunicate OK [19:01:09]wFMCommunicate request_size=255 [19:01:09]MH_SAM_APDU [19:01: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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 81 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F4 23 01 00 35 04 06 00 BC [19:01:09]Write to MH i2c: E2 02 01 16 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 81 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F4 23 01 00 35 04 06 00 BC 00 00 C5 [19:01:10]Write i2c OK [19:01:10]MH_I2C_Read... [19:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:10]Read from MH i2c: E2 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 03 00 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 03 00 16 90 00 90 00 1A [19:01:10]RAPDU: 90 00 [19:01:10]wFMCommunicate OK [19:01:10]wFMCommunicate request_size=10 [19:01:10]MH_SAM_APDU [19:01:10]CAPDU: 80 0D 02 02 05 1B F1 9C 97 07 [19:01:10]Write to MH i2c: E2 0D 00 17 90 80 0D 02 02 05 00 1B F1 9C 97 07 00 00 71 [19:01:10]Write i2c OK [19:01:10]MH_I2C_Read... [19:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:10]Read from MH i2c: E2 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 03 00 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 03 00 17 90 00 90 00 1B [19:01:10]RAPDU: 90 00 [19:01:10]wFMCommunicate OK [19:01:10]wFMCommunicate request_size=4 [19:01:10]MH_SAM_APDU [19:01:10]CAPDU: 80 0D 03 02 [19:01:10]Write to MH i2c: E2 08 00 18 90 80 0D 03 02 00 00 00 00 23 [19:01:10]Write i2c OK [19:01:10]MH_I2C_Read... [19:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:10]Read from MH i2c: E2 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 0B 00 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 0B 00 18 90 00 3F F2 BC B1 E2 52 9D 9D 90 00 30 [19:01:10]RAPDU: 3F F2 BC B1 E2 52 9D 9D 90 00 [19:01:10]wFMCommunicate OK [19:01:10]SAM_PROTO_SignData done [19:01:10]FM_MakeSignedData done [19:01:10]CreateOFDProtocolMessage [19:01:10]wFMCommunicate request_size=4 [19:01:10]MH_SAM_APDU [19:01:10]CAPDU: 80 11 00 00 [19:01:10]Write to MH i2c: E2 08 00 19 90 80 11 00 00 00 00 00 00 23 [19:01:10]Write i2c OK [19:01:10]MH_I2C_Read... [19:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:10]Read from MH i2c: E2 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 17 00 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 17 00 19 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7B [19:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:01:10]wFMCommunicate OK [19:01:10]CreateOFDProtocolMessage done [19:01:10]OFDSenderStorePacket 74740 [19:01:10]StoreOFDPacket docnum=74740 [19:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 75 B0 07 01 FE 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 81 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F4 23 01 00 35 04 06 00 BC 1B F1 9C 97 07 3F F2 BC B1 E2 52 9D 9D [19:01:10]CheckFolder [19:01:10]dirname=/storage/ofd_packets [19:01:10]CheckFolder done [19:01:10]ProducePacketName [19:01:10]name=ofd_packets/00074740 [19:01:10]NVStorageSaveData ofd_packets/00074740 [19:01:10]File name is /storage/ofd_packets/00074740 [19:01:10]Write 301 bytes [19:01:10]NVStorageSaveData done [19:01:10]OFDSenderStorePacket done [19:01:10]KKMCreateOFDPacket done [19:01:10]NVStorageSaveData kkm_last_timestamp [19:01:10]File name is /storage/kkm_last_timestamp [19:01:10]Write 4 bytes [19:01:10]NVStorageSaveData done [19:01:10]ExternCall_PrintAddStr [19:01:10]wPrintStart [19:01:10]Write to MH i2c: 01 00 00 1A 90 AA [19:01:10]Write i2c OK [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: 01 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: 01 07 00 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: 01 07 00 1A 90 00 00 00 00 00 FF 0F BF [19:01:10]RasterBufferAndPrint [19:01:10]line Счет N : (1)190710 [19:01:10]line ИНН: 02508201610067 [19:01:10]line Контрольно-Кассовый Чек [19:01:10]line ПРОДАЖА [19:01:10]line ТРК (МРК, ГНК) : 21 [19:01:10]line Товар: 2710124130 [19:01:10]line Аи-92-К-5 [19:01:10]line 11.960 * 66.90 [19:01:10]line = 800.12 [19:01:10]line НДС 12% НСП 1% [19:01:10]line > о реализуемом товаре [19:01:10]line ОКРУГЛЕНИЕ: -0.12 [19:01:10]line ИТОГО: 800.00 [19:01:10]line Внесено: 800.00 [19:01:10]line СДАЧА: 0.00 [19:01:10]line НСП 1% : 7.08 [19:01:10]line НДС 12% : 84.97 [19:01:10]line Наличными: 800.00 [19:01:10]line Безнал.: 0.00 [19:01:10]line Место: АЗС № 142 "Партнер Нефть" [19:01:10]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:01:10]line СНО: Общий режим [19:01:10]line Чек 184 24.10.2024 19:01 [19:01:10]line Смена: 510 ФФД: 1.0 [19:01:10]line ЗНМ: 0300000089 [19:01:10]line РНМ: 0000000000091691 [19:01:10]line Версия ККМ: 001 [19:01:10]line ФМ: 0000000000871795 [19:01:10]line ФД: 74740 [19:01:10]line ФПД: 206828203710215 [19:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190121&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74740&fm=206828203710215&tin=02508201610067®Number=0000000000091691&sum=80000 [19:01:10]OFD Sender: Processing packet 74740 [packets to send 13, broken 12] [19:01:10]ProducePacketName [19:01:10]name=ofd_packets/00074740 [19:01:10]OFD Sender: To server: pG, [19:01:10]CommunicateWithHost lk.salyk.kg:30040 [19:01:10]ConnectInit lk.salyk.kg [19:01:10]written 0, free lines is 4095 [19:01:10]Connected sock=9 [19:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 75 B0 07 01 FE 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 81 99 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F4 23 01 00 35 04 06 00 BC 1B F1 9C 97 07 3F F2 BC B1 E2 52 9D 9D [19:01:11]Write to MH i2c: 01 00 00 45 90 D5 [19:01:11]Write i2c OK [19:01:11]MH_I2C_Read... [19:01:11]Read from MH i2c: 01 [19:01:11]MH_I2C_Read... [19:01:11]Read from MH i2c: 01 07 00 [19:01:11]MH_I2C_Read... [19:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E7 8B 47 00 52 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 31 37 39 35 10 04 04 00 F4 23 01 00 F4 03 04 00 02 41 1A 67 B6 04 01 00 00 6A B3 83 92 C2 AC 5E E3 [19:01:11]CommunicateWithHost err = 0 [19:01:11]CheckOFDResponse [19:01:11]1017 (14) - 77093643461234 [19:01:11]1041 (16) - 0000000000871795 [19:01:11]1040 (4) - 74740 [19:01:11]1012 (4) - 24.10.2024 12:43 [19:01:11]1206 (1) - 0 [19:01:11]OFD Sender: Remove packet 74740 [19:01:11]ProducePacketName [19:01:11]name=ofd_packets/00074740 [19:01:11]NVStorageDeleteData [19:01:11]Read from MH i2c: 01 07 00 45 90 00 00 00 00 00 B9 0C A1 [19:01:11]RasterBufferAndPrint [19:01:11]line [19:01:11]line [19:01:11]line [19:01:11]line [19:01:11]line [19:01:11]written 0, free lines is 3288 [19:01:11]MH_Cut [19:01:11]Write to MH i2c: D1 01 00 4C 90 01 AE [19:01:11]Write i2c OK [19:01:11]MH_I2C_Read... [19:01:11]Read from MH i2c: D1 [19:01:11]MH_I2C_Read... [19:01:11]Read from MH i2c: D1 01 00 [19:01:11]MH_I2C_Read... [19:01:11]Read from MH i2c: D1 01 00 4C 90 00 AD [19:01:11]Write to MH i2c: 01 00 00 4D 90 DD [19:01:11]Write i2c OK [19:01:11]MH_I2C_Read... [19:01:11]OFD Sender: No OFD packet to send [19:01:12]*** Cut start [19:01:12]*** Partial cut [19:01:12]*** CUTSNS_PIN = 1 [19:01:12]*** CUTSNS_PIN = 0 [19:01:12]*** Brake cut motor [19:01:12]Read from MH i2c: 01 [19:01:12]MH_I2C_Read... [19:01:12]*** Stop cut motor [19:01:12]Read from MH i2c: 01 07 00 [19:01:12]MH_I2C_Read... [19:01:12]*** Cut end [19:01:12]Read from MH i2c: 01 07 00 4D 90 00 00 00 00 00 FF 0F F2 [19:01:12]process_action close_receipt done [19:01:12]requested_data is exist [19:01:12]produce_requested_data [19:01:12]requested_item fm.sn is exist - process it [19:01:12]wFMCommunicate request_size=4 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 11 00 00 [19:01:12]Write to MH i2c: E2 08 00 4E 90 80 11 00 00 00 00 00 00 58 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 17 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 17 00 4E 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B0 [19:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:01:12]wFMCommunicate OK [19:01:12]requested_item fd.num is exist - process it [19:01:12]SAM_PROTO_GetFieldsCounters [19:01:12]wFMCommunicate request_size=4 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 13 00 00 [19:01:12]Write to MH i2c: E2 08 00 4F 90 80 13 00 00 00 00 00 00 5B [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 62 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 62 00 4F 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F4 23 01 00 0E 04 04 00 FE 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 C1 [19:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F4 23 01 00 0E 04 04 00 FE 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 [19:01:12]wFMCommunicate OK [19:01:12]SAM_PROTO_GetFieldsCounters done [19:01:12]requested_item shift.num is exist - process it [19:01:12]requested_item shift.opened is exist - process it [19:01:12]req_shift_opened [19:01:12]FM_GetShiftState [19:01:12]SAM_PROTO_GetShiftState [19:01:12]wFMCommunicate request_size=4 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 13 01 00 [19:01:12]Write to MH i2c: E2 08 00 50 90 80 13 01 00 00 00 00 00 5D [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 0E 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 0E 00 50 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 87 [19:01:12]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:01:12]wFMCommunicate OK [19:01:12]SAM_PROTO_GetShiftState done [19:01:12]FM_GetShiftState done [19:01:12]req_shift_opened done [19:01:12]requested_item shift.open_date is exist - process it [19:01:12]req_shift_open_date [19:01:12]req_shift_open_date done [19:01:12]produce_requested_data done [19:01:12]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74740,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:01:12]process_action_free close_receipt [19:01:12]json_value_free [19:01:12]json_value_free done [19:01:12]process_json_proto returns [19:01:12]Send response to host [19:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74740,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:01:12]free response buf [19:01:12]execute_script done [19:01:12]execute_script returns [19:01:12]free content buf [19:01:12]Sock 10.Close socket [19:01:12]Sock 10.Thread stoped [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:39]accept exits with 8 [19:09:39]New connection [19:09:39]New thread 3066662244 created [19:09:39]Thread 3066805604 joined [19:09:39]Waiting for new connection... [19:09:39] Sock 8.Parse request [19:09:39]Sock 8.Check first char [19:09:39]Sock 8.First char is OK [19:09:39]request: POST /json_proto HTTP/1.0 [19:09:39]Method: POST [19:09:39]URL: /json_proto [19:09:39]Method is POST - this is cgi request [19:09:39]url: /json_proto [19:09:39]query_string will be loaded in cgi processing [19:09:39]execute_cgi json_proto POST (null) [19:09:39]execute_cgi path=json_proto method=POST [19:09:39]POST find Content-Length [19:09:39]Host: 172.17.39.131:8080 [19:09:39]Content-Length: 677 [19:09:39]Content-Type: application/json [19:09:39] [19:09:39]POST finish read [19:09:39]Found Content-Length = 677 [19:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:39]execute_script... [19:09: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)190711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:39]POST & json_proto [19:09:39]process_json_proto [19:09:39]json parsed OK: [19:09:39]protocol is kg_v1.0 [19:09:39]action value=close_receipt [19:09:39]process_action close_receipt [19:09:39]cmd_close_receipt [19:09:39]MH_GetDate [19:09:39]Write to MH i2c: F0 00 00 51 90 D0 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 09 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 09 00 51 90 00 80 9B 1A 67 86 57 24 65 DB [19:09:39]GetLastDocTimeStamp 1729796481 [19:09:39]current date 1729796992 [19:09:39]FM_GetShiftState [19:09:39]SAM_PROTO_GetShiftState [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 13 01 00 [19:09:39]Write to MH i2c: E2 08 00 52 90 80 13 01 00 00 00 00 00 5F [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 0E 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 0E 00 52 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 89 [19:09:40]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:09:40]wFMCommunicate OK [19:09:40]SAM_PROTO_GetShiftState done [19:09:40]FM_GetShiftState done [19:09:40]opened in 1729729801 [19:09:40]opened+sec_in_day 1729816201 [19:09:40]quantity*price = 50041 [19:09:40]sum+1 = 50042 [19:09:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 185 24.10.2024 19:09 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74741 ФПД: 111078009643670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190952&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74741&fm=111078009643670&tin=02508201610067®Number=0000000000091691&sum=50000 [19:09:41]StoreToDocumentArchive [19:09:41]shift 510 fd 74741 [19:09:41]save to /storage/0510/doc_00074741 [19:09:41]save last doc name /storage/0510/doc_00074741 to /storage/kkm_last_doc_name [19:09:41]save OK [19:09:41]Clear old archive folders... [19:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:41]tlvbuf is 00AF1080 [19:09:41]SAM_PROTO_ClearQueue [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 09 00 00 [19:09:41]Write to MH i2c: E2 08 00 5F 90 80 09 00 00 00 00 00 00 61 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 5F 90 00 90 00 63 [19:09:41]RAPDU: 90 00 [19:09:41]wFMCommunicate OK [19:09:41]SAM_PROTO_ClearQueue done [19:09:41]KKMCreateOFDPacket [19:09:41]OFDProtocolAddRootSTLVToBuf [19:09:41]FM_MakeSignedData [19:09:41]FM_MakeSignedData [19:09:41]SAM_PROTO_SignData [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 0D 01 02 [19:09:41]Write to MH i2c: E2 08 00 60 90 80 0D 01 02 00 00 00 00 69 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 60 90 00 90 00 64 [19:09:41]RAPDU: 90 00 [19:09:41]wFMCommunicate OK [19:09:41]wFMCommunicate request_size=255 [19:09:41]MH_SAM_APDU [19:09: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 80 9B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F5 23 01 00 35 04 06 00 65 [19:09:41]Write to MH i2c: E2 02 01 61 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 80 9B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F5 23 01 00 35 04 06 00 65 00 00 D0 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 61 90 00 90 00 65 [19:09:41]RAPDU: 90 00 [19:09:41]wFMCommunicate OK [19:09:41]wFMCommunicate request_size=10 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 0D 02 02 05 06 5D 4E A2 96 [19:09:41]Write to MH i2c: E2 0D 00 62 90 80 0D 02 02 05 00 06 5D 4E A2 96 00 00 5F [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 62 90 00 90 00 66 [19:09:41]RAPDU: 90 00 [19:09:41]wFMCommunicate OK [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 0D 03 02 [19:09:41]Write to MH i2c: E2 08 00 63 90 80 0D 03 02 00 00 00 00 6E [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0B 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0B 00 63 90 00 B3 EE 50 5A FB 82 94 2B 90 00 F6 [19:09:41]RAPDU: B3 EE 50 5A FB 82 94 2B 90 00 [19:09:41]wFMCommunicate OK [19:09:41]SAM_PROTO_SignData done [19:09:41]FM_MakeSignedData done [19:09:41]CreateOFDProtocolMessage [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 11 00 00 [19:09:41]Write to MH i2c: E2 08 00 64 90 80 11 00 00 00 00 00 00 6E [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 64 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C6 [19:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:09:41]wFMCommunicate OK [19:09:41]CreateOFDProtocolMessage done [19:09:41]OFDSenderStorePacket 74741 [19:09:41]StoreOFDPacket docnum=74741 [19:09:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 8B 14 07 01 8A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 80 9B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F5 23 01 00 35 04 06 00 65 06 5D 4E A2 96 B3 EE 50 5A FB 82 94 2B [19:09:41]CheckFolder [19:09:41]dirname=/storage/ofd_packets [19:09:41]CheckFolder done [19:09:41]ProducePacketName [19:09:41]name=ofd_packets/00074741 [19:09:41]NVStorageSaveData ofd_packets/00074741 [19:09:41]File name is /storage/ofd_packets/00074741 [19:09:41]Write 301 bytes [19:09:41]NVStorageSaveData done [19:09:41]OFDSenderStorePacket done [19:09:41]KKMCreateOFDPacket done [19:09:41]NVStorageSaveData kkm_last_timestamp [19:09:41]File name is /storage/kkm_last_timestamp [19:09:41]Write 4 bytes [19:09:41]NVStorageSaveData done [19:09:41]ExternCall_PrintAddStr [19:09:41]wPrintStart [19:09:41]Write to MH i2c: 01 00 00 65 90 F5 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 07 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 07 00 65 90 00 00 00 00 00 FF 0F 0A [19:09:41]RasterBufferAndPrint [19:09:41]line Счет N : (1)190711 [19:09:41]line ИНН: 02508201610067 [19:09:41]line Контрольно-Кассовый Чек [19:09:41]line ПРОДАЖА [19:09:41]line ТРК (МРК, ГНК) : 21 [19:09:41]line Товар: 2710124130 [19:09:41]line Аи-92-К-5 [19:09:41]line 7.480 * 66.90 [19:09:41]line = 500.41 [19:09:41]line НДС 12% НСП 1% [19:09:41]line > о реализуемом товаре [19:09:41]line ОКРУГЛЕНИЕ: -0.41 [19:09:41]line ИТОГО: 500.00 [19:09:41]line Внесено: 500.00 [19:09:41]line СДАЧА: 0.00 [19:09:41]line НСП 1% : 4.43 [19:09:41]line НДС 12% : 53.14 [19:09:41]line Наличными: 500.00 [19:09:41]line Безнал.: 0.00 [19:09:41]line Место: АЗС № 142 "Партнер Нефть" [19:09:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:09:41]line СНО: Общий режим [19:09:41]line Чек 185 24.10.2024 19:09 [19:09:41]line Смена: 510 ФФД: 1.0 [19:09:41]line ЗНМ: 0300000089 [19:09:41]line РНМ: 0000000000091691 [19:09:41]line Версия ККМ: 001 [19:09:41]line ФМ: 0000000000871795 [19:09:41]line ФД: 74741 [19:09:41]line ФПД: 111078009643670 [19:09:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190952&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74741&fm=111078009643670&tin=02508201610067®Number=0000000000091691&sum=50000 [19:09:42]written 0, free lines is 4095 [19:09:42]OFD Sender: Processing packet 74741 [packets to send 13, broken 12] [19:09:42]ProducePacketName [19:09:42]name=ofd_packets/00074741 [19:09:42]OFD Sender: To server: pG, [19:09:42]CommunicateWithHost lk.salyk.kg:30040 [19:09:42]ConnectInit lk.salyk.kg [19:09:42]Connected sock=10 [19:09:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 8B 14 07 01 8A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 80 9B 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F5 23 01 00 35 04 06 00 65 06 5D 4E A2 96 B3 EE 50 5A FB 82 94 2B [19:09:42]Write to MH i2c: 01 00 00 90 90 20 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: 01 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: 01 07 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: 01 07 00 90 90 00 00 00 00 00 B3 0C E6 [19:09:42]RasterBufferAndPrint [19:09:42]line [19:09:42]line [19:09:42]line [19:09:42]line [19:09:42]line [19:09:42]written 0, free lines is 3258 [19:09:42]MH_Cut [19:09:42]Write to MH i2c: D1 01 00 97 90 01 F9 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: D1 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: D1 01 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: D1 01 00 97 90 00 F8 [19:09:42]Write to MH i2c: 01 00 00 98 90 28 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8E 0F 47 00 DE 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 31 37 39 35 10 04 04 00 F5 23 01 00 F4 03 04 00 02 43 1A 67 B6 04 01 00 00 1F 62 52 C1 15 31 1A 7C [19:09:42]CommunicateWithHost err = 0 [19:09:42]CheckOFDResponse [19:09:42]1017 (14) - 77093643461234 [19:09:42]1041 (16) - 0000000000871795 [19:09:42]1040 (4) - 74741 [19:09:42]1012 (4) - 24.10.2024 12:52 [19:09:42]1206 (1) - 0 [19:09:42]OFD Sender: Remove packet 74741 [19:09:42]ProducePacketName [19:09:42]name=ofd_packets/00074741 [19:09:42]NVStorageDeleteData [19:09:43]OFD Sender: No OFD packet to send [19:09:43]*** Cut start [19:09:43]*** Partial cut [19:09:43]*** CUTSNS_PIN = 1 [19:09:43]*** CUTSNS_PIN = 0 [19:09:43]*** Brake cut motor [19:09:43]Read from MH i2c: 01 [19:09:43]MH_I2C_Read... [19:09:43]*** Stop cut motor [19:09:43]*** Cut end [19:09:43]Read from MH i2c: 01 07 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: 01 07 00 98 90 00 00 00 00 00 FF 0F 3D [19:09:43]process_action close_receipt done [19:09:43]requested_data is exist [19:09:43]produce_requested_data [19:09:43]requested_item fm.sn is exist - process it [19:09:43]wFMCommunicate request_size=4 [19:09:43]MH_SAM_APDU [19:09:43]CAPDU: 80 11 00 00 [19:09:43]Write to MH i2c: E2 08 00 99 90 80 11 00 00 00 00 00 00 A3 [19:09:43]Write i2c OK [19:09:43]MH_I2C_Read... [19:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:44]Read from MH i2c: E2 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 17 00 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 17 00 99 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FB [19:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:09:44]wFMCommunicate OK [19:09:44]requested_item fd.num is exist - process it [19:09:44]SAM_PROTO_GetFieldsCounters [19:09:44]wFMCommunicate request_size=4 [19:09:44]MH_SAM_APDU [19:09:44]CAPDU: 80 13 00 00 [19:09:44]Write to MH i2c: E2 08 00 9A 90 80 13 00 00 00 00 00 00 A6 [19:09:44]Write i2c OK [19:09:44]MH_I2C_Read... [19:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:44]Read from MH i2c: E2 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 62 00 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 62 00 9A 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F5 23 01 00 0E 04 04 00 FE 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 10 [19:09:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F5 23 01 00 0E 04 04 00 FE 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 [19:09:44]wFMCommunicate OK [19:09:44]SAM_PROTO_GetFieldsCounters done [19:09:44]requested_item shift.num is exist - process it [19:09:44]requested_item shift.opened is exist - process it [19:09:44]req_shift_opened [19:09:44]FM_GetShiftState [19:09:44]SAM_PROTO_GetShiftState [19:09:44]wFMCommunicate request_size=4 [19:09:44]MH_SAM_APDU [19:09:44]CAPDU: 80 13 01 00 [19:09:44]Write to MH i2c: E2 08 00 9B 90 80 13 01 00 00 00 00 00 A8 [19:09:44]Write i2c OK [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 [19:09:44]MH_I2C_Read... [19:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:44]Read from MH i2c: E2 0E 00 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 0E 00 9B 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D2 [19:09:44]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:09:44]wFMCommunicate OK [19:09:44]SAM_PROTO_GetShiftState done [19:09:44]FM_GetShiftState done [19:09:44]req_shift_opened done [19:09:44]requested_item shift.open_date is exist - process it [19:09:44]req_shift_open_date [19:09:44]req_shift_open_date done [19:09:44]produce_requested_data done [19:09:44]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74741,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:09:44]process_action_free close_receipt [19:09:44]json_value_free [19:09:44]json_value_free done [19:09:44]process_json_proto returns [19:09:44]Send response to host [19:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74741,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:09:44]free response buf [19:09:44]execute_script done [19:09:44]execute_script returns [19:09:44]free content buf [19:09:44]Sock 8.Close socket [19:09:44]Sock 8.Thread stoped [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:33]recv_with_timeout no data received [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:50]accept exits with 9 [19:18:50]New connection [19:18:50]New thread 3066805604 created [19:18:50]Thread 3066662244 joined [19:18:50]Waiting for new connection... [19:18:50] Sock 9.Parse request [19:18:50]Sock 9.Check first char [19:18:50]Sock 9.First char is OK [19:18:50]request: POST /json_proto HTTP/1.0 [19:18:50]Method: POST [19:18:50]URL: /json_proto [19:18:50]Method is POST - this is cgi request [19:18:50]url: /json_proto [19:18:50]query_string will be loaded in cgi processing [19:18:50]execute_cgi json_proto POST (null) [19:18:50]execute_cgi path=json_proto method=POST [19:18:50]POST find Content-Length [19:18:50]Host: 172.17.39.131:8080 [19:18:50]Content-Length: 677 [19:18:50]Content-Type: application/json [19:18:50] [19:18:50]POST finish read [19:18:50]Found Content-Length = 677 [19:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:50]execute_script... [19:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:50]POST & json_proto [19:18:50]process_json_proto [19:18:50]json parsed OK: [19:18:50]protocol is kg_v1.0 [19:18:50]action value=close_receipt [19:18:50]process_action close_receipt [19:18:50]cmd_close_receipt [19:18:50]MH_GetDate [19:18:50]Write to MH i2c: F0 00 00 9C 90 1B [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: F0 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: F0 09 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: F0 09 00 9C 90 00 A6 9D 1A 67 86 57 24 65 4E [19:18:50]GetLastDocTimeStamp 1729796992 [19:18:50]current date 1729797542 [19:18:50]FM_GetShiftState [19:18:50]SAM_PROTO_GetShiftState [19:18:50]wFMCommunicate request_size=4 [19:18:50]MH_SAM_APDU [19:18:50]CAPDU: 80 13 01 00 [19:18:50]Write to MH i2c: E2 08 00 9D 90 80 13 01 00 00 00 00 00 AA [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:50]Read from MH i2c: E2 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 0E 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: E2 0E 00 9D 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D4 [19:18:50]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:18:50]wFMCommunicate OK [19:18:50]SAM_PROTO_GetShiftState done [19:18:50]FM_GetShiftState done [19:18:50]opened in 1729729801 [19:18:50]opened+sec_in_day 1729816201 [19:18:50]quantity*price = 50041 [19:18:50]sum+1 = 50042 [19:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 186 24.10.2024 19:19 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74742 ФПД: 220881942057566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191902&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74742&fm=220881942057566&tin=02508201610067®Number=0000000000091691&sum=50000 [19:18:51]StoreToDocumentArchive [19:18:51]shift 510 fd 74742 [19:18:51]save to /storage/0510/doc_00074742 [19:18:51]save last doc name /storage/0510/doc_00074742 to /storage/kkm_last_doc_name [19:18:51]save OK [19:18:51]Clear old archive folders... [19:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:51]tlvbuf is 007C3BA0 [19:18:51]SAM_PROTO_ClearQueue [19:18:51]wFMCommunicate request_size=4 [19:18:51]MH_SAM_APDU [19:18:51]CAPDU: 80 09 00 00 [19:18:51]Write to MH i2c: E2 08 00 AA 90 80 09 00 00 00 00 00 00 AC [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 AA 90 00 90 00 AE [19:18:51]RAPDU: 90 00 [19:18:51]wFMCommunicate OK [19:18:51]SAM_PROTO_ClearQueue done [19:18:51]KKMCreateOFDPacket [19:18:51]OFDProtocolAddRootSTLVToBuf [19:18:51]FM_MakeSignedData [19:18:51]FM_MakeSignedData [19:18:51]SAM_PROTO_SignData [19:18:51]wFMCommunicate request_size=4 [19:18:51]MH_SAM_APDU [19:18:51]CAPDU: 80 0D 01 02 [19:18:51]Write to MH i2c: E2 08 00 AB 90 80 0D 01 02 00 00 00 00 B4 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 AB 90 00 90 00 AF [19:18:51]RAPDU: 90 00 [19:18:51]wFMCommunicate OK [19:18:51]wFMCommunicate request_size=255 [19:18:51]MH_SAM_APDU [19:18: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A6 9D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F6 23 01 00 35 04 06 00 C8 [19:18:51]Write to MH i2c: E2 02 01 AC 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A6 9D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F6 23 01 00 35 04 06 00 C8 00 00 A8 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 AC 90 00 90 00 B0 [19:18:51]RAPDU: 90 00 [19:18:51]wFMCommunicate OK [19:18:51]wFMCommunicate request_size=10 [19:18:51]MH_SAM_APDU [19:18:51]CAPDU: 80 0D 02 02 05 E4 15 B1 92 5E [19:18:51]Write to MH i2c: E2 0D 00 AD 90 80 0D 02 02 05 00 E4 15 B1 92 5E 00 00 5B [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 03 00 AD 90 00 90 00 B1 [19:18:51]RAPDU: 90 00 [19:18:51]wFMCommunicate OK [19:18:51]wFMCommunicate request_size=4 [19:18:51]MH_SAM_APDU [19:18:51]CAPDU: 80 0D 03 02 [19:18:51]Write to MH i2c: E2 08 00 AE 90 80 0D 03 02 00 00 00 00 B9 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 0B 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 0B 00 AE 90 00 26 5F CE A7 E4 81 A1 19 90 00 D3 [19:18:51]RAPDU: 26 5F CE A7 E4 81 A1 19 90 00 [19:18:51]wFMCommunicate OK [19:18:51]SAM_PROTO_SignData done [19:18:51]FM_MakeSignedData done [19:18:51]CreateOFDProtocolMessage [19:18:51]wFMCommunicate request_size=4 [19:18:51]MH_SAM_APDU [19:18:51]CAPDU: 80 11 00 00 [19:18:51]Write to MH i2c: E2 08 00 AF 90 80 11 00 00 00 00 00 00 B9 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 17 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 17 00 AF 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 11 [19:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:18:51]wFMCommunicate OK [19:18:51]CreateOFDProtocolMessage done [19:18:51]OFDSenderStorePacket 74742 [19:18:51]StoreOFDPacket docnum=74742 [19:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 9E 31 07 01 32 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A6 9D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F6 23 01 00 35 04 06 00 C8 E4 15 B1 92 5E 26 5F CE A7 E4 81 A1 19 [19:18:51]CheckFolder [19:18:51]dirname=/storage/ofd_packets [19:18:51]CheckFolder done [19:18:51]ProducePacketName [19:18:51]name=ofd_packets/00074742 [19:18:51]NVStorageSaveData ofd_packets/00074742 [19:18:51]File name is /storage/ofd_packets/00074742 [19:18:51]Write 301 bytes [19:18:51]NVStorageSaveData done [19:18:51]OFDSenderStorePacket done [19:18:51]KKMCreateOFDPacket done [19:18:51]NVStorageSaveData kkm_last_timestamp [19:18:51]File name is /storage/kkm_last_timestamp [19:18:51]Write 4 bytes [19:18:51]NVStorageSaveData done [19:18:51]ExternCall_PrintAddStr [19:18:51]wPrintStart [19:18:51]Write to MH i2c: 01 00 00 B0 90 40 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: 01 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: 01 07 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: 01 07 00 B0 90 00 00 00 00 00 FF 0F 55 [19:18:51]RasterBufferAndPrint [19:18:51]line Счет N : (1)190713 [19:18:51]line ИНН: 02508201610067 [19:18:51]line Контрольно-Кассовый Чек [19:18:51]line ПРОДАЖА [19:18:51]line ТРК (МРК, ГНК) : 21 [19:18:51]line Товар: 2710124130 [19:18:51]line Аи-92-К-5 [19:18:51]line 7.480 * 66.90 [19:18:51]line = 500.41 [19:18:51]line НДС 12% НСП 1% [19:18:51]line > о реализуемом товаре [19:18:51]line ОКРУГЛЕНИЕ: -0.41 [19:18:51]line ИТОГО: 500.00 [19:18:51]line Внесено: 500.00 [19:18:51]line СДАЧА: 0.00 [19:18:51]line НСП 1% : 4.43 [19:18:51]line НДС 12% : 53.14 [19:18:51]line Наличными: 500.00 [19:18:51]line Безнал.: 0.00 [19:18:51]line Место: АЗС № 142 "Партнер Нефть" [19:18:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:18:51]line СНО: Общий режим [19:18:51]line Чек 186 24.10.2024 19:19 [19:18:51]line Смена: 510 ФФД: 1.0 [19:18:51]line ЗНМ: 0300000089 [19:18:51]line РНМ: 0000000000091691 [19:18:51]line Версия ККМ: 001 [19:18:51]line ФМ: 0000000000871795 [19:18:51]line ФД: 74742 [19:18:51]line ФПД: 220881942057566 [19:18:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191902&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74742&fm=220881942057566&tin=02508201610067®Number=0000000000091691&sum=50000 [19:18:52]written 0, free lines is 4095 [19:18:52]OFD Sender: Processing packet 74742 [packets to send 13, broken 12] [19:18:52]ProducePacketName [19:18:52]name=ofd_packets/00074742 [19:18:52]OFD Sender: To server: pG, [19:18:52]CommunicateWithHost lk.salyk.kg:30040 [19:18:52]ConnectInit lk.salyk.kg [19:18:52]Connected sock=10 [19:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 9E 31 07 01 32 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 A6 9D 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F6 23 01 00 35 04 06 00 C8 E4 15 B1 92 5E 26 5F CE A7 E4 81 A1 19 [19:18:52]Write to MH i2c: 01 00 00 DB 90 6B [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: 01 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: 01 07 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: 01 07 00 DB 90 00 00 00 00 00 B3 0C 31 [19:18:52]RasterBufferAndPrint [19:18:52]line [19:18:52]line [19:18:52]line [19:18:52]line [19:18:52]line [19:18:52]written 0, free lines is 3258 [19:18:52]MH_Cut [19:18:52]Write to MH i2c: D1 01 00 E2 90 01 44 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: D1 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: D1 01 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: D1 01 00 E2 90 00 43 [19:18:52]Write to MH i2c: 01 00 00 E3 90 73 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 17 63 47 00 9D 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F6 23 01 00 F4 03 04 00 28 45 1A 67 B6 04 01 00 00 D5 AF 4E 8C CF 03 F7 85 [19:18:52]CommunicateWithHost err = 0 [19:18:52]CheckOFDResponse [19:18:52]1017 (14) - 77093643461234 [19:18:52]1041 (16) - 0000000000871795 [19:18:52]1040 (4) - 74742 [19:18:52]1012 (4) - 24.10.2024 13:01 [19:18:52]1206 (1) - 0 [19:18:52]OFD Sender: Remove packet 74742 [19:18:52]ProducePacketName [19:18:52]name=ofd_packets/00074742 [19:18:52]NVStorageDeleteData [19:18:53]OFD Sender: No OFD packet to send [19:18:53]*** Cut start [19:18:53]*** Partial cut [19:18:53]*** CUTSNS_PIN = 1 [19:18:53]*** CUTSNS_PIN = 0 [19:18:53]*** Brake cut motor [19:18:54]Read from MH i2c: 01 [19:18:54]MH_I2C_Read... [19:18:54]*** Stop cut motor [19:18:54]*** Cut end [19:18:54]Read from MH i2c: 01 07 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: 01 07 00 E3 90 00 00 00 00 00 FF 0F 88 [19:18:54]process_action close_receipt done [19:18:54]requested_data is exist [19:18:54]produce_requested_data [19:18:54]requested_item fm.sn is exist - process it [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 11 00 00 [19:18:54]Write to MH i2c: E2 08 00 E4 90 80 11 00 00 00 00 00 00 EE [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:54]Read from MH i2c: E2 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 17 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 17 00 E4 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 46 [19:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:18:54]wFMCommunicate OK [19:18:54]requested_item fd.num is exist - process it [19:18:54]SAM_PROTO_GetFieldsCounters [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 13 00 00 [19:18:54]Write to MH i2c: E2 08 00 E5 90 80 13 00 00 00 00 00 00 F1 [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:54]Read from MH i2c: E2 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 62 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 62 00 E5 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F6 23 01 00 0E 04 04 00 FE 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 5F [19:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F6 23 01 00 0E 04 04 00 FE 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 [19:18:54]wFMCommunicate OK [19:18:54]SAM_PROTO_GetFieldsCounters done [19:18:54]requested_item shift.num is exist - process it [19:18:54]requested_item shift.opened is exist - process it [19:18:54]req_shift_opened [19:18:54]FM_GetShiftState [19:18:54]SAM_PROTO_GetShiftState [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 13 01 00 [19:18:54]Write to MH i2c: E2 08 00 E6 90 80 13 01 00 00 00 00 00 F3 [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:54]Read from MH i2c: E2 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 0E 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 0E 00 E6 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 1D [19:18:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:18:54]wFMCommunicate OK [19:18:54]SAM_PROTO_GetShiftState done [19:18:54]FM_GetShiftState done [19:18:54]req_shift_opened done [19:18:54]requested_item shift.open_date is exist - process it [19:18:54]req_shift_open_date [19:18:54]req_shift_open_date done [19:18:54]produce_requested_data done [19:18:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74742,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:18:54]process_action_free close_receipt [19:18:54]json_value_free [19:18:54]json_value_free done [19:18:54]process_json_proto returns [19:18:54]Send response to host [19:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74742,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:18:54]free response buf [19:18:54]execute_script done [19:18:54]execute_script returns [19:18:54]free content buf [19:18:54]Sock 9.Close socket [19:18:54]Sock 9.Thread stoped [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:47]recv_with_timeout no data received [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:21]recv_with_timeout no data received [19:22:23]OFD Sender: No OFD packet to send [19:22:27]accept exits with 8 [19:22:27]New connection [19:22:27]New thread 3066662244 created [19:22:27]Thread 3066805604 joined [19:22:27]Waiting for new connection... [19:22:27] Sock 8.Parse request [19:22:27]Sock 8.Check first char [19:22:27]Sock 8.First char is OK [19:22:27]request: POST /json_proto HTTP/1.0 [19:22:27]Method: POST [19:22:27]URL: /json_proto [19:22:27]Method is POST - this is cgi request [19:22:27]url: /json_proto [19:22:27]query_string will be loaded in cgi processing [19:22:27]execute_cgi json_proto POST (null) [19:22:27]execute_cgi path=json_proto method=POST [19:22:27]POST find Content-Length [19:22:27]Host: 172.17.39.131:8080 [19:22:27]Content-Length: 817 [19:22:27]Content-Type: application/json [19:22:27] [19:22:27]POST finish read [19:22:27]Found Content-Length = 817 [19:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:27]execute_script... [19:22: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)190714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:27]POST & json_proto [19:22:27]process_json_proto [19:22:27]json parsed OK: [19:22:27]protocol is kg_v1.0 [19:22:27]action value=close_receipt [19:22:27]process_action close_receipt [19:22:27]cmd_close_receipt [19:22:27]MH_GetDate [19:22:27]Write to MH i2c: F0 00 00 E7 90 66 [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: F0 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: F0 09 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: F0 09 00 E7 90 00 80 9E 1A 67 86 57 24 65 74 [19:22:27]GetLastDocTimeStamp 1729797542 [19:22:27]current date 1729797760 [19:22:27]FM_GetShiftState [19:22:27]SAM_PROTO_GetShiftState [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 13 01 00 [19:22:27]Write to MH i2c: E2 08 00 E8 90 80 13 01 00 00 00 00 00 F5 [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 0E 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 0E 00 E8 90 00 09 00 01 09 95 19 67 00 00 00 00 90 00 1F [19:22:27]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:22:27]wFMCommunicate OK [19:22:27]SAM_PROTO_GetShiftState done [19:22:27]FM_GetShiftState done [19:22:27]opened in 1729729801 [19:22:27]opened+sec_in_day 1729816201 [19:22:27]quantity*price = 70044 [19:22:27]sum+1 = 70045 [19:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 187 24.10.2024 19:22 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871795 ФД: 74743 ФПД: 74836886530780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192240&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74743&fm=74836886530780&tin=02508201610067®Number=0000000000091691&sum=70044 [19:22:28]StoreToDocumentArchive [19:22:28]shift 510 fd 74743 [19:22:28]save to /storage/0510/doc_00074743 [19:22:28]save last doc name /storage/0510/doc_00074743 to /storage/kkm_last_doc_name [19:22:28]save OK [19:22:28]Clear old archive folders... [19:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:28]tlvbuf is 00AF1620 [19:22:28]SAM_PROTO_ClearQueue [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 09 00 00 [19:22:28]Write to MH i2c: E2 08 00 F5 90 80 09 00 00 00 00 00 00 F7 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 F5 90 00 90 00 F9 [19:22:28]RAPDU: 90 00 [19:22:28]wFMCommunicate OK [19:22:28]SAM_PROTO_ClearQueue done [19:22:28]KKMCreateOFDPacket [19:22:28]OFDProtocolAddRootSTLVToBuf [19:22:28]FM_MakeSignedData [19:22:28]FM_MakeSignedData [19:22:28]SAM_PROTO_SignData [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 0D 01 02 [19:22:28]Write to MH i2c: E2 08 00 F6 90 80 0D 01 02 00 00 00 00 FF [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 F6 90 00 90 00 FA [19:22:28]RAPDU: 90 00 [19:22:28]wFMCommunicate OK [19:22:28]wFMCommunicate request_size=255 [19:22:28]MH_SAM_APDU [19:22: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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 80 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F7 23 01 00 35 04 06 00 44 [19:22:28]Write to MH i2c: E2 02 01 F7 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 80 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F7 23 01 00 35 04 06 00 44 00 00 B4 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:29]Read from MH i2c: E2 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 03 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 03 00 F7 90 00 90 00 FB [19:22:29]RAPDU: 90 00 [19:22:29]wFMCommunicate OK [19:22:29]wFMCommunicate request_size=10 [19:22:29]MH_SAM_APDU [19:22:29]CAPDU: 80 0D 02 02 05 10 52 09 AA DC [19:22:29]Write to MH i2c: E2 0D 00 F8 90 80 0D 02 02 05 00 10 52 09 AA DC 00 00 FD [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:29]Read from MH i2c: E2 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 03 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 03 00 F8 90 00 90 00 FC [19:22:29]RAPDU: 90 00 [19:22:29]wFMCommunicate OK [19:22:29]wFMCommunicate request_size=4 [19:22:29]MH_SAM_APDU [19:22:29]CAPDU: 80 0D 03 02 [19:22:29]Write to MH i2c: E2 08 00 F9 90 80 0D 03 02 00 00 00 00 04 [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:29]Read from MH i2c: E2 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 0B 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 0B 00 F9 90 00 E3 06 80 B6 26 EF 57 3A 90 00 CA [19:22:29]RAPDU: E3 06 80 B6 26 EF 57 3A 90 00 [19:22:29]wFMCommunicate OK [19:22:29]SAM_PROTO_SignData done [19:22:29]FM_MakeSignedData done [19:22:29]CreateOFDProtocolMessage [19:22:29]wFMCommunicate request_size=4 [19:22:29]MH_SAM_APDU [19:22:29]CAPDU: 80 11 00 00 [19:22:29]Write to MH i2c: E2 08 00 FA 90 80 11 00 00 00 00 00 00 04 [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:29]Read from MH i2c: E2 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 17 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 17 00 FA 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5C [19:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:22:29]wFMCommunicate OK [19:22:29]CreateOFDProtocolMessage done [19:22:29]OFDSenderStorePacket 74743 [19:22:29]StoreOFDPacket docnum=74743 [19:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6D CD 07 01 4E 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 80 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F7 23 01 00 35 04 06 00 44 10 52 09 AA DC E3 06 80 B6 26 EF 57 3A [19:22:29]CheckFolder [19:22:29]dirname=/storage/ofd_packets [19:22:29]CheckFolder done [19:22:29]ProducePacketName [19:22:29]name=ofd_packets/00074743 [19:22:29]NVStorageSaveData ofd_packets/00074743 [19:22:29]File name is /storage/ofd_packets/00074743 [19:22:29]Write 301 bytes [19:22:29]NVStorageSaveData done [19:22:29]OFDSenderStorePacket done [19:22:29]KKMCreateOFDPacket done [19:22:29]NVStorageSaveData kkm_last_timestamp [19:22:29]File name is /storage/kkm_last_timestamp [19:22:29]Write 4 bytes [19:22:29]NVStorageSaveData done [19:22:29]ExternCall_PrintAddStr [19:22:29]wPrintStart [19:22:29]Write to MH i2c: 01 00 00 FB 90 8B [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 07 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 07 00 FB 90 00 00 00 00 00 FF 0F A0 [19:22:29]RasterBufferAndPrint [19:22:29]line Счет N : (1)190714 [19:22:29]line ИНН: 02508201610067 [19:22:29]line Контрольно-Кассовый Чек [19:22:29]line ПРОДАЖА [19:22:29]line ТРК (МРК, ГНК) : 21 [19:22:29]line Товар: 2710124130 [19:22:29]line Аи-92-К-5 [19:22:29]line 10.470 * 66.90 [19:22:29]line = 700.44 [19:22:29]line НДС 12% НСП 1% [19:22:29]line > о реализуемом товаре [19:22:29]line ИТОГО: 700.44 [19:22:29]line НСП 1% : 6.20 [19:22:29]line НДС 12% : 74.38 [19:22:29]line Наличными: 0.00 [19:22:29]line Безнал.: 700.44 [19:22:29]line Место: АЗС № 142 "Партнер Нефть" [19:22:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:22:29]line СНО: Общий режим [19:22:29]line Чек 187 24.10.2024 19:22 [19:22:29]line Смена: 510 ФФД: 1.0 [19:22:29]line ЗНМ: 0300000089 [19:22:29]line РНМ: 0000000000091691 [19:22:29]line Версия ККМ: 001 [19:22:29]line Платежная система: Бакай Банк [19:22:29]line ФМ: 0000000000871795 [19:22:29]line ФД: 74743 [19:22:29]line ФПД: 74836886530780 [19:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192240&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74743&fm=74836886530780&tin=02508201610067®Number=0000000000091691&sum=70044 [19:22:29]OFD Sender: Processing packet 74743 [packets to send 13, broken 12] [19:22:29]ProducePacketName [19:22:29]name=ofd_packets/00074743 [19:22:29]OFD Sender: To server: pG, [19:22:29]CommunicateWithHost lk.salyk.kg:30040 [19:22:29]ConnectInit lk.salyk.kg [19:22:29]written 0, free lines is 4095 [19:22:29]Connected sock=10 [19:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6D CD 07 01 4E 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 80 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F7 23 01 00 35 04 06 00 44 10 52 09 AA DC E3 06 80 B6 26 EF 57 3A [19:22:29]Write to MH i2c: 01 00 00 25 91 B6 [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 07 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 07 00 25 91 00 00 00 00 00 BB 0C 84 [19:22:29]RasterBufferAndPrint [19:22:29]line [19:22:29]line [19:22:29]line [19:22:29]line [19:22:29]line [19:22:29]written 0, free lines is 3265 [19:22:29]MH_Cut [19:22:29]Write to MH i2c: D1 01 00 2C 91 01 8F [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: D1 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: D1 01 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: D1 01 00 2C 91 00 8E [19:22:29]Write to MH i2c: 01 00 00 2D 91 BE [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 64 C2 47 00 6B 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 31 37 39 35 10 04 04 00 F7 23 01 00 F4 03 04 00 01 46 1A 67 B6 04 01 00 00 D0 07 E2 36 0F 94 D1 D5 [19:22:30]CommunicateWithHost err = 0 [19:22:30]CheckOFDResponse [19:22:30]1017 (14) - 77093643461234 [19:22:30]1041 (16) - 0000000000871795 [19:22:30]1040 (4) - 74743 [19:22:30]1012 (4) - 24.10.2024 13:05 [19:22:30]1206 (1) - 0 [19:22:30]OFD Sender: Remove packet 74743 [19:22:30]ProducePacketName [19:22:30]name=ofd_packets/00074743 [19:22:30]NVStorageDeleteData [19:22:30]OFD Sender: No OFD packet to send [19:22:30]*** Cut start [19:22:30]*** Partial cut [19:22:30]*** CUTSNS_PIN = 1 [19:22:30]*** CUTSNS_PIN = 0 [19:22:31]*** Brake cut motor [19:22:31]Read from MH i2c: 01 [19:22:31]MH_I2C_Read... [19:22:31]*** Stop cut motor [19:22:31]*** Cut end [19:22:31]Read from MH i2c: 01 07 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 07 00 2D 91 00 00 00 00 00 FF 0F D3 [19:22:31]process_action close_receipt done [19:22:31]requested_data is exist [19:22:31]produce_requested_data [19:22:31]requested_item fm.sn is exist - process it [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 11 00 00 [19:22:31]Write to MH i2c: E2 08 00 2E 91 80 11 00 00 00 00 00 00 39 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 17 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 17 00 2E 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 91 [19:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:22:31]wFMCommunicate OK [19:22:31]requested_item fd.num is exist - process it [19:22:31]SAM_PROTO_GetFieldsCounters [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 13 00 00 [19:22:31]Write to MH i2c: E2 08 00 2F 91 80 13 00 00 00 00 00 00 3C [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 2F 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F7 23 01 00 0E 04 04 00 FE 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 AE [19:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F7 23 01 00 0E 04 04 00 FE 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 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetFieldsCounters done [19:22:31]requested_item shift.num is exist - process it [19:22:31]requested_item shift.opened is exist - process it [19:22:31]req_shift_opened [19:22:31]FM_GetShiftState [19:22:31]SAM_PROTO_GetShiftState [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 13 01 00 [19:22:31]Write to MH i2c: E2 08 00 30 91 80 13 01 00 00 00 00 00 3E [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 30 91 00 09 00 01 09 95 19 67 00 00 00 00 90 00 68 [19:22:31]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetShiftState done [19:22:31]FM_GetShiftState done [19:22:31]req_shift_opened done [19:22:31]requested_item shift.open_date is exist - process it [19:22:31]req_shift_open_date [19:22:31]req_shift_open_date done [19:22:31]produce_requested_data done [19:22:31]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74743,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:22:31]process_action_free close_receipt [19:22:31]json_value_free [19:22:31]json_value_free done [19:22:31]process_json_proto returns [19:22:31]Send response to host [19:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74743,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:22:31]free response buf [19:22:31]execute_script done [19:22:31]execute_script returns [19:22:31]free content buf [19:22:31]Sock 8.Close socket [19:22:31]Sock 8.Thread stoped [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:42]int [19:22:42]Write to MH i2c: 01 00 00 31 91 C2 [19:22:42]*** FLAG_PRN_KEY set [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 31 91 00 08 00 00 00 FF 0F DF [19:22:42]state=0 [19:22:42]Key pressed [19:22:42]Feed [19:22:42]Write to MH i2c: D8 00 00 32 91 9A [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: D8 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: D8 01 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: D8 01 00 32 91 00 9B [19:22:42]int [19:22:42]Write to MH i2c: 01 00 00 33 91 C4 [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 33 91 00 48 00 00 00 3C 00 4F [19:22:42]state=2 [19:22:42]Key pressed [19:22:42]int [19:22:42]Write to MH i2c: 01 00 00 34 91 C5 [19:22:42]*** FLAG_PRN_KEY reset [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 34 91 00 00 00 00 00 F9 0F D4 [19:22:42]state=2 [19:22:42]Stop feed [19:22:42]int [19:22:42]Write to MH i2c: 01 00 00 35 91 C6 [19:22:42]*** FLAG_PRN_KEY set [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 35 91 00 08 00 00 00 FF 0F E3 [19:22:42]state=0 [19:22:42]Key pressed [19:22:42]Feed [19:22:42]Write to MH i2c: D8 00 00 36 91 9E [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: D8 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: D8 01 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: D8 01 00 36 91 00 9F [19:22:42]int [19:22:42]Write to MH i2c: 01 00 00 37 91 C8 [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 37 91 00 48 00 00 00 3C 00 53 [19:22:42]state=2 [19:22:42]Key pressed [19:22:42]int [19:22:42]Write to MH i2c: 01 00 00 38 91 C9 [19:22:42]*** FLAG_PRN_KEY reset [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 38 91 00 00 00 00 00 F6 0F D5 [19:22:42]state=2 [19:22:42]Stop feed [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:22]accept exits with 9 [19:23:22]New connection [19:23:22]New thread 3066805604 created [19:23:22]Thread 3066662244 joined [19:23:22]Waiting for new connection... [19:23:22] Sock 9.Parse request [19:23:22]Sock 9.Check first char [19:23:22]Sock 9.First char is OK [19:23:22]request: POST /json_proto HTTP/1.0 [19:23:22]Method: POST [19:23:22]URL: /json_proto [19:23:22]Method is POST - this is cgi request [19:23:22]url: /json_proto [19:23:22]query_string will be loaded in cgi processing [19:23:22]execute_cgi json_proto POST (null) [19:23:22]execute_cgi path=json_proto method=POST [19:23:22]POST find Content-Length [19:23:22]Host: 172.17.39.131:8080 [19:23:22]Content-Length: 677 [19:23:22]Content-Type: application/json [19:23:22] [19:23:22]POST finish read [19:23:22]Found Content-Length = 677 [19:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:22]execute_script... [19: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)190715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:22]POST & json_proto [19:23:22]process_json_proto [19:23:22]json parsed OK: [19:23:22]protocol is kg_v1.0 [19:23:22]action value=close_receipt [19:23:22]process_action close_receipt [19:23:22]cmd_close_receipt [19:23:22]MH_GetDate [19:23:22]Write to MH i2c: F0 00 00 39 91 B9 [19:23:22]Write i2c OK [19:23:22]MH_I2C_Read... [19:23:22]Read from MH i2c: F0 [19:23:22]MH_I2C_Read... [19:23:22]Read from MH i2c: F0 09 00 [19:23:22]MH_I2C_Read... [19:23:22]Read from MH i2c: F0 09 00 39 91 00 B7 9E 1A 67 86 57 24 65 FE [19:23:22]GetLastDocTimeStamp 1729797760 [19:23:22]current date 1729797815 [19:23:22]FM_GetShiftState [19:23:22]SAM_PROTO_GetShiftState [19:23:22]wFMCommunicate request_size=4 [19:23:22]MH_SAM_APDU [19:23:22]CAPDU: 80 13 01 00 [19:23:22]Write to MH i2c: E2 08 00 3A 91 80 13 01 00 00 00 00 00 48 [19:23:22]Write i2c OK [19:23:22]MH_I2C_Read... [19:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:22]Read from MH i2c: E2 [19:23:22]MH_I2C_Read... [19:23:22]Read from MH i2c: E2 0E 00 [19:23:22]MH_I2C_Read... [19:23:22]Read from MH i2c: E2 0E 00 3A 91 00 09 00 01 09 95 19 67 00 00 00 00 90 00 72 [19:23:22]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:23:22]wFMCommunicate OK [19:23:22]SAM_PROTO_GetShiftState done [19:23:22]FM_GetShiftState done [19:23:22]opened in 1729729801 [19:23:22]opened+sec_in_day 1729816201 [19:23:22]quantity*price = 30038 [19:23:22]sum+1 = 30039 [19:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 188 24.10.2024 19:23 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74744 ФПД: 183459243671914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192335&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74744&fm=183459243671914&tin=02508201610067®Number=0000000000091691&sum=30000 [19:23:23]StoreToDocumentArchive [19:23:23]shift 510 fd 74744 [19:23:23]save to /storage/0510/doc_00074744 [19:23:23]save last doc name /storage/0510/doc_00074744 to /storage/kkm_last_doc_name [19:23:23]save OK [19:23:23]Clear old archive folders... [19:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:23]tlvbuf is 00A51DB0 [19:23:23]SAM_PROTO_ClearQueue [19:23:23]wFMCommunicate request_size=4 [19:23:23]MH_SAM_APDU [19:23:23]CAPDU: 80 09 00 00 [19:23:23]Write to MH i2c: E2 08 00 47 91 80 09 00 00 00 00 00 00 4A [19:23:23]Write i2c OK [19:23:23]MH_I2C_Read... [19:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:23]Read from MH i2c: E2 [19:23:23]MH_I2C_Read... [19:23:23]Read from MH i2c: E2 03 00 [19:23:23]MH_I2C_Read... [19:23:23]Read from MH i2c: E2 03 00 47 91 00 90 00 4C [19:23:23]RAPDU: 90 00 [19:23:23]wFMCommunicate OK [19:23:23]SAM_PROTO_ClearQueue done [19:23:23]KKMCreateOFDPacket [19:23:23]OFDProtocolAddRootSTLVToBuf [19:23:23]FM_MakeSignedData [19:23:23]FM_MakeSignedData [19:23:23]SAM_PROTO_SignData [19:23:23]wFMCommunicate request_size=4 [19:23:23]MH_SAM_APDU [19:23:23]CAPDU: 80 0D 01 02 [19:23:23]Write to MH i2c: E2 08 00 48 91 80 0D 01 02 00 00 00 00 52 [19:23:23]Write i2c OK [19:23:23]MH_I2C_Read... [19:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:23]Read from MH i2c: E2 [19:23:23]MH_I2C_Read... [19:23:23]Read from MH i2c: E2 03 00 [19:23:23]MH_I2C_Read... [19:23:23]Read from MH i2c: E2 03 00 48 91 00 90 00 4D [19:23:23]RAPDU: 90 00 [19:23:23]wFMCommunicate OK [19:23:23]wFMCommunicate request_size=255 [19:23:23]MH_SAM_APDU [19: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B7 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F8 23 01 00 35 04 06 00 A6 [19:23:23]Write to MH i2c: E2 02 01 49 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B7 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F8 23 01 00 35 04 06 00 A6 00 00 2E [19:23:23]Write i2c OK [19:23:23]MH_I2C_Read... [19:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:24]Read from MH i2c: E2 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 03 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 03 00 49 91 00 90 00 4E [19:23:24]RAPDU: 90 00 [19:23:24]wFMCommunicate OK [19:23:24]wFMCommunicate request_size=10 [19:23:24]MH_SAM_APDU [19:23:24]CAPDU: 80 0D 02 02 05 DA EF 0C C1 6A [19:23:24]Write to MH i2c: E2 0D 00 4A 91 80 0D 02 02 05 00 DA EF 0C C1 6A 00 00 5F [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:24]Read from MH i2c: E2 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 03 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 03 00 4A 91 00 90 00 4F [19:23:24]RAPDU: 90 00 [19:23:24]wFMCommunicate OK [19:23:24]wFMCommunicate request_size=4 [19:23:24]MH_SAM_APDU [19:23:24]CAPDU: 80 0D 03 02 [19:23:24]Write to MH i2c: E2 08 00 4B 91 80 0D 03 02 00 00 00 00 57 [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:24]Read from MH i2c: E2 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 0B 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 0B 00 4B 91 00 03 FE 09 A4 02 11 EC C2 90 00 C7 [19:23:24]RAPDU: 03 FE 09 A4 02 11 EC C2 90 00 [19:23:24]wFMCommunicate OK [19:23:24]SAM_PROTO_SignData done [19:23:24]FM_MakeSignedData done [19:23:24]CreateOFDProtocolMessage [19:23:24]wFMCommunicate request_size=4 [19:23:24]MH_SAM_APDU [19:23:24]CAPDU: 80 11 00 00 [19:23:24]Write to MH i2c: E2 08 00 4C 91 80 11 00 00 00 00 00 00 57 [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:24]Read from MH i2c: E2 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 17 00 [19:23:24]MH_I2C_Read... [19:23:24]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 31 37 39 35 90 00 AF [19:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:23:24]wFMCommunicate OK [19:23:24]CreateOFDProtocolMessage done [19:23:24]OFDSenderStorePacket 74744 [19:23:24]StoreOFDPacket docnum=74744 [19:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F7 3B 07 01 09 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B7 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F8 23 01 00 35 04 06 00 A6 DA EF 0C C1 6A 03 FE 09 A4 02 11 EC C2 [19:23:24]CheckFolder [19:23:24]dirname=/storage/ofd_packets [19:23:24]CheckFolder done [19:23:24]ProducePacketName [19:23:24]name=ofd_packets/00074744 [19:23:24]NVStorageSaveData ofd_packets/00074744 [19:23:24]File name is /storage/ofd_packets/00074744 [19:23:24]Write 301 bytes [19:23:24]NVStorageSaveData done [19:23:24]OFDSenderStorePacket done [19:23:24]KKMCreateOFDPacket done [19:23:24]NVStorageSaveData kkm_last_timestamp [19:23:24]File name is /storage/kkm_last_timestamp [19:23:24]Write 4 bytes [19:23:24]NVStorageSaveData done [19:23:24]ExternCall_PrintAddStr [19:23:24]wPrintStart [19:23:24]Write to MH i2c: 01 00 00 4D 91 DE [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: 01 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: 01 07 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: 01 07 00 4D 91 00 00 00 00 00 FF 0F F3 [19:23:24]RasterBufferAndPrint [19:23:24]line Счет N : (1)190715 [19:23:24]line ИНН: 02508201610067 [19:23:24]line Контрольно-Кассовый Чек [19:23:24]line ПРОДАЖА [19:23:24]line ТРК (МРК, ГНК) : 21 [19:23:24]line Товар: 2710124130 [19:23:24]line Аи-92-К-5 [19:23:24]line 4.490 * 66.90 [19:23:24]line = 300.38 [19:23:24]line НДС 12% НСП 1% [19:23:24]line > о реализуемом товаре [19:23:24]line ОКРУГЛЕНИЕ: -0.38 [19:23:24]line ИТОГО: 300.00 [19:23:24]line Внесено: 300.00 [19:23:24]line СДАЧА: 0.00 [19:23:24]line НСП 1% : 2.66 [19:23:24]line НДС 12% : 31.90 [19:23:24]line Наличными: 300.00 [19:23:24]line Безнал.: 0.00 [19:23:24]line Место: АЗС № 142 "Партнер Нефть" [19:23:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:23:24]line СНО: Общий режим [19:23:24]line Чек 188 24.10.2024 19:23 [19:23:24]line Смена: 510 ФФД: 1.0 [19:23:24]line ЗНМ: 0300000089 [19:23:24]line РНМ: 0000000000091691 [19:23:24]line Версия ККМ: 001 [19:23:24]line ФМ: 0000000000871795 [19:23:24]line ФД: 74744 [19:23:24]line ФПД: 183459243671914 [19:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192335&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74744&fm=183459243671914&tin=02508201610067®Number=0000000000091691&sum=30000 [19:23:24]written 0, free lines is 4095 [19:23:24]OFD Sender: Processing packet 74744 [packets to send 13, broken 12] [19:23:24]ProducePacketName [19:23:24]name=ofd_packets/00074744 [19:23:24]OFD Sender: To server: pG, [19:23:24]CommunicateWithHost lk.salyk.kg:30040 [19:23:24]ConnectInit lk.salyk.kg [19:23:24]Connected sock=8 [19: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 31 37 39 35 0F 01 00 00 F7 3B 07 01 09 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B7 9E 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F8 23 01 00 35 04 06 00 A6 DA EF 0C C1 6A 03 FE 09 A4 02 11 EC C2 [19:23:24]Write to MH i2c: 01 00 00 78 91 09 [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: 01 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: 01 07 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: 01 07 00 78 91 00 00 00 00 00 BC 0C D8 [19:23:24]RasterBufferAndPrint [19:23:24]line [19:23:24]line [19:23:24]line [19:23:24]line [19:23:24]line [19:23:24]written 0, free lines is 3267 [19:23:24]MH_Cut [19:23:24]Write to MH i2c: D1 01 00 7F 91 01 E2 [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: D1 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: D1 01 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: D1 01 00 7F 91 00 E1 [19:23:24]Write to MH i2c: 01 00 00 80 91 11 [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D2 B7 47 00 F2 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F8 23 01 00 F4 03 04 00 38 46 1A 67 B6 04 01 00 00 38 37 AF E9 0A 33 B1 7D [19:23:25]CommunicateWithHost err = 0 [19:23:25]CheckOFDResponse [19:23:25]1017 (14) - 77093643461234 [19:23:25]1041 (16) - 0000000000871795 [19:23:25]1040 (4) - 74744 [19:23:25]1012 (4) - 24.10.2024 13:06 [19:23:25]1206 (1) - 0 [19:23:25]OFD Sender: Remove packet 74744 [19:23:25]ProducePacketName [19:23:25]name=ofd_packets/00074744 [19:23:25]NVStorageDeleteData [19:23:25]OFD Sender: No OFD packet to send [19:23:25]*** Cut start [19:23:25]*** Partial cut [19:23:25]*** CUTSNS_PIN = 1 [19:23:25]*** CUTSNS_PIN = 0 [19:23:26]*** Brake cut motor [19:23:26]Read from MH i2c: 01 [19:23:26]MH_I2C_Read... [19:23:26]*** Stop cut motor [19:23:26]*** Cut end [19:23:26]Read from MH i2c: 01 07 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: 01 07 00 80 91 00 00 00 00 00 FF 0F 26 [19:23:26]process_action close_receipt done [19:23:26]requested_data is exist [19:23:26]produce_requested_data [19:23:26]requested_item fm.sn is exist - process it [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 11 00 00 [19:23:26]Write to MH i2c: E2 08 00 81 91 80 11 00 00 00 00 00 00 8C [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 17 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 17 00 81 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E4 [19:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:23:26]wFMCommunicate OK [19:23:26]requested_item fd.num is exist - process it [19:23:26]SAM_PROTO_GetFieldsCounters [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 13 00 00 [19:23:26]Write to MH i2c: E2 08 00 82 91 80 13 00 00 00 00 00 00 8F [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 62 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 62 00 82 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F8 23 01 00 0E 04 04 00 FE 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 05 [19: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F8 23 01 00 0E 04 04 00 FE 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 [19:23:26]wFMCommunicate OK [19:23:26]SAM_PROTO_GetFieldsCounters done [19:23:26]requested_item shift.num is exist - process it [19:23:26]requested_item shift.opened is exist - process it [19:23:26]req_shift_opened [19:23:26]FM_GetShiftState [19:23:26]SAM_PROTO_GetShiftState [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 13 01 00 [19:23:26]Write to MH i2c: E2 08 00 83 91 80 13 01 00 00 00 00 00 91 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 0E 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 0E 00 83 91 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BB [19:23:26]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:23:26]wFMCommunicate OK [19:23:26]SAM_PROTO_GetShiftState done [19:23:26]FM_GetShiftState done [19:23:26]req_shift_opened done [19:23:26]requested_item shift.open_date is exist - process it [19:23:26]req_shift_open_date [19:23:26]req_shift_open_date done [19:23:26]produce_requested_data done [19:23:26]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74744,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:23:26]process_action_free close_receipt [19:23:26]json_value_free [19:23:26]json_value_free done [19:23:26]process_json_proto returns [19:23:26]Send response to host [19:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74744,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:23:26]free response buf [19:23:26]execute_script done [19:23:26]execute_script returns [19:23:26]free content buf [19:23:26]Sock 9.Close socket [19:23:26]Sock 9.Thread stoped [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:29]recv_with_timeout no data received [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]accept exits with 10 [19:24:50]New connection [19:24:50]New thread 3066662244 created [19:24:50]Thread 3066805604 joined [19:24:50]Waiting for new connection... [19:24:50] Sock 10.Parse request [19:24:50]Sock 10.Check first char [19:24:50]Sock 10.First char is OK [19:24:50]request: POST /json_proto HTTP/1.0 [19:24:50]Method: POST [19:24:50]URL: /json_proto [19:24:50]Method is POST - this is cgi request [19:24:50]url: /json_proto [19:24:50]query_string will be loaded in cgi processing [19:24:50]execute_cgi json_proto POST (null) [19:24:50]execute_cgi path=json_proto method=POST [19:24:50]POST find Content-Length [19:24:50]Host: 172.17.39.131:8080 [19:24:50]Content-Length: 677 [19:24:50]Content-Type: application/json [19:24:50] [19:24:50]POST finish read [19:24:50]Found Content-Length = 677 [19:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:50]execute_script... [19:24: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)190716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:50]POST & json_proto [19:24:50]process_json_proto [19:24:50]json parsed OK: [19:24:50]protocol is kg_v1.0 [19:24:50]action value=close_receipt [19:24:50]process_action close_receipt [19:24:50]cmd_close_receipt [19:24:50]MH_GetDate [19:24:50]Write to MH i2c: F0 00 00 84 91 04 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: F0 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: F0 09 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: F0 09 00 84 91 00 0F 9F 1A 67 86 57 24 65 A2 [19:24:50]GetLastDocTimeStamp 1729797815 [19:24:50]current date 1729797903 [19:24:50]FM_GetShiftState [19:24:50]SAM_PROTO_GetShiftState [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 13 01 00 [19:24:50]Write to MH i2c: E2 08 00 85 91 80 13 01 00 00 00 00 00 93 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0E 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0E 00 85 91 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BD [19:24:50]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:24:50]wFMCommunicate OK [19:24:50]SAM_PROTO_GetShiftState done [19:24:50]FM_GetShiftState done [19:24:50]opened in 1729729801 [19:24:50]opened+sec_in_day 1729816201 [19:24:50]quantity*price = 30038 [19:24:50]sum+1 = 30039 [19:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 189 24.10.2024 19:25 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74745 ФПД: 176091156471608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192503&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74745&fm=176091156471608&tin=02508201610067®Number=0000000000091691&sum=30000 [19:24:51]StoreToDocumentArchive [19:24:51]shift 510 fd 74745 [19:24:51]save to /storage/0510/doc_00074745 [19:24:51]save last doc name /storage/0510/doc_00074745 to /storage/kkm_last_doc_name [19:24:51]save OK [19:24:51]Clear old archive folders... [19:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:51]tlvbuf is 00A8E920 [19:24:51]SAM_PROTO_ClearQueue [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 09 00 00 [19:24:51]Write to MH i2c: E2 08 00 92 91 80 09 00 00 00 00 00 00 95 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 92 91 00 90 00 97 [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]SAM_PROTO_ClearQueue done [19:24:51]KKMCreateOFDPacket [19:24:51]OFDProtocolAddRootSTLVToBuf [19:24:51]FM_MakeSignedData [19:24:51]FM_MakeSignedData [19:24:51]SAM_PROTO_SignData [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 0D 01 02 [19:24:51]Write to MH i2c: E2 08 00 93 91 80 0D 01 02 00 00 00 00 9D [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 93 91 00 90 00 98 [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]wFMCommunicate request_size=255 [19:24:51]MH_SAM_APDU [19:24: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0F 9F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F9 23 01 00 35 04 06 00 A0 [19:24:51]Write to MH i2c: E2 02 01 94 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0F 9F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F9 23 01 00 35 04 06 00 A0 00 00 CE [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 94 91 00 90 00 99 [19:24:52]RAPDU: 90 00 [19:24:52]wFMCommunicate OK [19:24:52]wFMCommunicate request_size=10 [19:24:52]MH_SAM_APDU [19:24:52]CAPDU: 80 0D 02 02 05 27 6A D4 5F 38 [19:24:52]Write to MH i2c: E2 0D 00 95 91 80 0D 02 02 05 00 27 6A D4 5F 38 00 00 A6 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 95 91 00 90 00 9A [19:24:52]RAPDU: 90 00 [19:24:52]wFMCommunicate OK [19:24:52]wFMCommunicate request_size=4 [19:24:52]MH_SAM_APDU [19:24:52]CAPDU: 80 0D 03 02 [19:24:52]Write to MH i2c: E2 08 00 96 91 80 0D 03 02 00 00 00 00 A2 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 0B 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 0B 00 96 91 00 25 93 C4 5C CF 1C 23 D7 90 00 60 [19:24:52]RAPDU: 25 93 C4 5C CF 1C 23 D7 90 00 [19:24:52]wFMCommunicate OK [19:24:52]SAM_PROTO_SignData done [19:24:52]FM_MakeSignedData done [19:24:52]CreateOFDProtocolMessage [19:24:52]wFMCommunicate request_size=4 [19:24:52]MH_SAM_APDU [19:24:52]CAPDU: 80 11 00 00 [19:24:52]Write to MH i2c: E2 08 00 97 91 80 11 00 00 00 00 00 00 A2 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 17 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 17 00 97 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FA [19:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:24:52]wFMCommunicate OK [19:24:52]CreateOFDProtocolMessage done [19:24:52]OFDSenderStorePacket 74745 [19:24:52]StoreOFDPacket docnum=74745 [19:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 43 EF 07 01 30 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0F 9F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F9 23 01 00 35 04 06 00 A0 27 6A D4 5F 38 25 93 C4 5C CF 1C 23 D7 [19:24:52]CheckFolder [19:24:52]dirname=/storage/ofd_packets [19:24:52]CheckFolder done [19:24:52]ProducePacketName [19:24:52]name=ofd_packets/00074745 [19:24:52]NVStorageSaveData ofd_packets/00074745 [19:24:52]File name is /storage/ofd_packets/00074745 [19:24:52]Write 301 bytes [19:24:52]NVStorageSaveData done [19:24:52]OFDSenderStorePacket done [19:24:52]KKMCreateOFDPacket done [19:24:52]NVStorageSaveData kkm_last_timestamp [19:24:52]File name is /storage/kkm_last_timestamp [19:24:52]Write 4 bytes [19:24:52]NVStorageSaveData done [19:24:52]ExternCall_PrintAddStr [19:24:52]wPrintStart [19:24:52]Write to MH i2c: 01 00 00 98 91 29 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 98 91 00 00 00 00 00 FF 0F 3E [19:24:52]RasterBufferAndPrint [19:24:52]line Счет N : (1)190716 [19:24:52]line ИНН: 02508201610067 [19:24:52]line Контрольно-Кассовый Чек [19:24:52]line ПРОДАЖА [19:24:52]line ТРК (МРК, ГНК) : 21 [19:24:52]line Товар: 2710124130 [19:24:52]line Аи-92-К-5 [19:24:52]line 4.490 * 66.90 [19:24:52]line = 300.38 [19:24:52]line НДС 12% НСП 1% [19:24:52]line > о реализуемом товаре [19:24:52]line ОКРУГЛЕНИЕ: -0.38 [19:24:52]line ИТОГО: 300.00 [19:24:52]line Внесено: 300.00 [19:24:52]line СДАЧА: 0.00 [19:24:52]line НСП 1% : 2.66 [19:24:52]line НДС 12% : 31.90 [19:24:52]line Наличными: 300.00 [19:24:52]line Безнал.: 0.00 [19:24:52]line Место: АЗС № 142 "Партнер Нефть" [19:24:52]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:24:52]line СНО: Общий режим [19:24:52]line Чек 189 24.10.2024 19:25 [19:24:52]line Смена: 510 ФФД: 1.0 [19:24:52]line ЗНМ: 0300000089 [19:24:52]line РНМ: 0000000000091691 [19:24:52]line Версия ККМ: 001 [19:24:52]line ФМ: 0000000000871795 [19:24:52]line ФД: 74745 [19:24:52]line ФПД: 176091156471608 [19:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192503&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74745&fm=176091156471608&tin=02508201610067®Number=0000000000091691&sum=30000 [19:24:52]OFD Sender: Processing packet 74745 [packets to send 13, broken 12] [19:24:52]ProducePacketName [19:24:52]name=ofd_packets/00074745 [19:24:52]OFD Sender: To server: pG, [19:24:52]CommunicateWithHost lk.salyk.kg:30040 [19:24:52]ConnectInit lk.salyk.kg [19:24:52]written 0, free lines is 4095 [19:24:52]Connected sock=9 [19:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 43 EF 07 01 30 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0F 9F 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F9 23 01 00 35 04 06 00 A0 27 6A D4 5F 38 25 93 C4 5C CF 1C 23 D7 [19:24:53]Write to MH i2c: 01 00 00 C3 91 54 [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: 01 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: 01 07 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: 01 07 00 C3 91 00 00 00 00 00 B0 0C 17 [19:24:53]RasterBufferAndPrint [19:24:53]line [19:24:53]line [19:24:53]line [19:24:53]line [19:24:53]line [19:24:53]written 0, free lines is 3256 [19:24:53]MH_Cut [19:24:53]Write to MH i2c: D1 01 00 CA 91 01 2D [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: D1 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: D1 01 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: D1 01 00 CA 91 00 2C [19:24:53]Write to MH i2c: 01 00 00 CB 91 5C [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F2 B0 47 00 E0 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 F9 23 01 00 F4 03 04 00 90 46 1A 67 B6 04 01 00 00 F7 51 64 EF 3E E9 1E 33 [19:24:53]CommunicateWithHost err = 0 [19:24:53]CheckOFDResponse [19:24:53]1017 (14) - 77093643461234 [19:24:53]1041 (16) - 0000000000871795 [19:24:53]1040 (4) - 74745 [19:24:53]1012 (4) - 24.10.2024 13:07 [19:24:53]1206 (1) - 0 [19:24:53]OFD Sender: Remove packet 74745 [19:24:53]ProducePacketName [19:24:53]name=ofd_packets/00074745 [19:24:53]NVStorageDeleteData [19:24:53]OFD Sender: No OFD packet to send [19:24:54]*** Cut start [19:24:54]*** Partial cut [19:24:54]*** CUTSNS_PIN = 1 [19:24:54]*** CUTSNS_PIN = 0 [19:24:54]*** Brake cut motor [19:24:54]Read from MH i2c: 01 [19:24:54]MH_I2C_Read... [19:24:54]*** Stop cut motor [19:24:54]*** Cut end [19:24:54]Read from MH i2c: 01 07 00 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: 01 07 00 CB 91 00 00 00 00 00 FF 0F 71 [19:24:54]process_action close_receipt done [19:24:54]requested_data is exist [19:24:54]produce_requested_data [19:24:54]requested_item fm.sn is exist - process it [19:24:54]wFMCommunicate request_size=4 [19:24:54]MH_SAM_APDU [19:24:54]CAPDU: 80 11 00 00 [19:24:54]Write to MH i2c: E2 08 00 CC 91 80 11 00 00 00 00 00 00 D7 [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:54]Read from MH i2c: E2 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 17 00 [19:24:54]MH_I2C_Read... [19:24: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 31 37 39 35 90 00 2F [19:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:24:54]wFMCommunicate OK [19:24:54]requested_item fd.num is exist - process it [19:24:54]SAM_PROTO_GetFieldsCounters [19:24:54]wFMCommunicate request_size=4 [19:24:54]MH_SAM_APDU [19:24:54]CAPDU: 80 13 00 00 [19:24:54]Write to MH i2c: E2 08 00 CD 91 80 13 00 00 00 00 00 00 DA [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:54]Read from MH i2c: E2 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 62 00 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 62 00 CD 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F9 23 01 00 0E 04 04 00 FE 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 54 [19:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 F9 23 01 00 0E 04 04 00 FE 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 [19:24:54]wFMCommunicate OK [19:24:54]SAM_PROTO_GetFieldsCounters done [19:24:54]requested_item shift.num is exist - process it [19:24:54]requested_item shift.opened is exist - process it [19:24:54]req_shift_opened [19:24:54]FM_GetShiftState [19:24:54]SAM_PROTO_GetShiftState [19:24:54]wFMCommunicate request_size=4 [19:24:54]MH_SAM_APDU [19:24:54]CAPDU: 80 13 01 00 [19:24:54]Write to MH i2c: E2 08 00 CE 91 80 13 01 00 00 00 00 00 DC [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:54]Read from MH i2c: E2 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 0E 00 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 0E 00 CE 91 00 09 00 01 09 95 19 67 00 00 00 00 90 00 06 [19:24:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:24:54]wFMCommunicate OK [19:24:54]SAM_PROTO_GetShiftState done [19:24:54]FM_GetShiftState done [19:24:54]req_shift_opened done [19:24:54]requested_item shift.open_date is exist - process it [19:24:54]req_shift_open_date [19:24:54]req_shift_open_date done [19:24:54]produce_requested_data done [19:24:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74745,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:24:54]process_action_free close_receipt [19:24:54]json_value_free [19:24:54]json_value_free done [19:24:54]process_json_proto returns [19:24:54]Send response to host [19:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74745,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:24:54]free response buf [19:24:54]execute_script done [19:24:54]execute_script returns [19:24:54]free content buf [19:24:54]Sock 10.Close socket [19:24:54]Sock 10.Thread stoped [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:06]accept exits with 8 [19:39:06]New connection [19:39:06]New thread 3066805604 created [19:39:06]Thread 3066662244 joined [19:39:06]Waiting for new connection... [19:39:06] Sock 8.Parse request [19:39:06]Sock 8.Check first char [19:39:06]Sock 8.First char is OK [19:39:06]request: POST /json_proto HTTP/1.0 [19:39:06]Method: POST [19:39:06]URL: /json_proto [19:39:06]Method is POST - this is cgi request [19:39:06]url: /json_proto [19:39:06]query_string will be loaded in cgi processing [19:39:06]execute_cgi json_proto POST (null) [19:39:06]execute_cgi path=json_proto method=POST [19:39:06]POST find Content-Length [19:39:06]Host: 172.17.39.131:8080 [19:39:06]Content-Length: 677 [19:39:06]Content-Type: application/json [19:39:06] [19:39:06]POST finish read [19:39:06]Found Content-Length = 677 [19:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:06]execute_script... [19:39: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)190717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:06]POST & json_proto [19:39:06]process_json_proto [19:39:06]json parsed OK: [19:39:06]protocol is kg_v1.0 [19:39:06]action value=close_receipt [19:39:06]process_action close_receipt [19:39:06]cmd_close_receipt [19:39:06]MH_GetDate [19:39:06]Write to MH i2c: F0 00 00 CF 91 4F [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: F0 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: F0 09 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: F0 09 00 CF 91 00 67 A2 1A 67 86 57 24 65 48 [19:39:06]GetLastDocTimeStamp 1729797903 [19:39:06]current date 1729798759 [19:39:06]FM_GetShiftState [19:39:06]SAM_PROTO_GetShiftState [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 13 01 00 [19:39:06]Write to MH i2c: E2 08 00 D0 91 80 13 01 00 00 00 00 00 DE [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0E 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0E 00 D0 91 00 09 00 01 09 95 19 67 00 00 00 00 90 00 08 [19:39:06]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:39:06]wFMCommunicate OK [19:39:06]SAM_PROTO_GetShiftState done [19:39:06]FM_GetShiftState done [19:39:06]opened in 1729729801 [19:39:06]opened+sec_in_day 1729816201 [19:39:06]quantity*price = 10035 [19:39:06]sum+1 = 10036 [19:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 190 24.10.2024 19:39 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74746 ФПД: 14826068866325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193919&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74746&fm=14826068866325&tin=02508201610067®Number=0000000000091691&sum=10000 [19:39:07]StoreToDocumentArchive [19:39:07]shift 510 fd 74746 [19:39:07]save to /storage/0510/doc_00074746 [19:39:07]save last doc name /storage/0510/doc_00074746 to /storage/kkm_last_doc_name [19:39:07]save OK [19:39:07]Clear old archive folders... [19:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:07]tlvbuf is 00A52020 [19:39:07]SAM_PROTO_ClearQueue [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 09 00 00 [19:39:07]Write to MH i2c: E2 08 00 DD 91 80 09 00 00 00 00 00 00 E0 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 DD 91 00 90 00 E2 [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]SAM_PROTO_ClearQueue done [19:39:07]KKMCreateOFDPacket [19:39:07]OFDProtocolAddRootSTLVToBuf [19:39:07]FM_MakeSignedData [19:39:07]FM_MakeSignedData [19:39:07]SAM_PROTO_SignData [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 01 02 [19:39:07]Write to MH i2c: E2 08 00 DE 91 80 0D 01 02 00 00 00 00 E8 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 DE 91 00 90 00 E3 [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]wFMCommunicate request_size=255 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 67 A2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FA 23 01 00 35 04 06 00 0D [19:39:07]Write to MH i2c: E2 02 01 DF 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 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 67 A2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FA 23 01 00 35 04 06 00 0D 00 00 D6 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 DF 91 00 90 00 E4 [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]wFMCommunicate request_size=10 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 02 02 05 7B F6 91 75 15 [19:39:07]Write to MH i2c: E2 0D 00 E0 91 80 0D 02 02 05 00 7B F6 91 75 15 00 00 81 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 E0 91 00 90 00 E5 [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 03 02 [19:39:07]Write to MH i2c: E2 08 00 E1 91 80 0D 03 02 00 00 00 00 ED [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 0B 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 0B 00 E1 91 00 3C 68 BD AA FA 96 3B 41 90 00 05 [19:39:07]RAPDU: 3C 68 BD AA FA 96 3B 41 90 00 [19:39:07]wFMCommunicate OK [19:39:07]SAM_PROTO_SignData done [19:39:07]FM_MakeSignedData done [19:39:07]CreateOFDProtocolMessage [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 11 00 00 [19:39:07]Write to MH i2c: E2 08 00 E2 91 80 11 00 00 00 00 00 00 ED [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 17 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 17 00 E2 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 45 [19:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:39:07]wFMCommunicate OK [19:39:07]CreateOFDProtocolMessage done [19:39:07]OFDSenderStorePacket 74746 [19:39:07]StoreOFDPacket docnum=74746 [19:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5E 19 07 01 3D 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 67 A2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FA 23 01 00 35 04 06 00 0D 7B F6 91 75 15 3C 68 BD AA FA 96 3B 41 [19:39:07]CheckFolder [19:39:07]dirname=/storage/ofd_packets [19:39:07]CheckFolder done [19:39:07]ProducePacketName [19:39:07]name=ofd_packets/00074746 [19:39:07]NVStorageSaveData ofd_packets/00074746 [19:39:07]File name is /storage/ofd_packets/00074746 [19:39:07]Write 301 bytes [19:39:07]NVStorageSaveData done [19:39:07]OFDSenderStorePacket done [19:39:07]KKMCreateOFDPacket done [19:39:07]NVStorageSaveData kkm_last_timestamp [19:39:07]File name is /storage/kkm_last_timestamp [19:39:07]Write 4 bytes [19:39:07]NVStorageSaveData done [19:39:07]ExternCall_PrintAddStr [19:39:07]wPrintStart [19:39:07]Write to MH i2c: 01 00 00 E3 91 74 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 E3 91 00 00 00 00 00 FF 0F 89 [19:39:07]RasterBufferAndPrint [19:39:07]line Счет N : (1)190717 [19:39:07]line ИНН: 02508201610067 [19:39:07]line Контрольно-Кассовый Чек [19:39:07]line ПРОДАЖА [19:39:07]line ТРК (МРК, ГНК) : 21 [19:39:07]line Товар: 2710124130 [19:39:07]line Аи-92-К-5 [19:39:07]line 1.500 * 66.90 [19:39:07]line = 100.35 [19:39:07]line НДС 12% НСП 1% [19:39:07]line > о реализуемом товаре [19:39:07]line ОКРУГЛЕНИЕ: -0.35 [19:39:07]line ИТОГО: 100.00 [19:39:07]line Внесено: 100.00 [19:39:07]line СДАЧА: 0.00 [19:39:07]line НСП 1% : 0.89 [19:39:07]line НДС 12% : 10.66 [19:39:07]line Наличными: 100.00 [19:39:07]line Безнал.: 0.00 [19:39:07]line Место: АЗС № 142 "Партнер Нефть" [19:39:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:39:07]line СНО: Общий режим [19:39:07]line Чек 190 24.10.2024 19:39 [19:39:07]line Смена: 510 ФФД: 1.0 [19:39:07]line ЗНМ: 0300000089 [19:39:07]line РНМ: 0000000000091691 [19:39:07]line Версия ККМ: 001 [19:39:07]line ФМ: 0000000000871795 [19:39:07]line ФД: 74746 [19:39:07]line ФПД: 14826068866325 [19:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193919&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74746&fm=14826068866325&tin=02508201610067®Number=0000000000091691&sum=10000 [19:39:07]written 0, free lines is 4095 [19:39:07]OFD Sender: Processing packet 74746 [packets to send 13, broken 12] [19:39:07]ProducePacketName [19:39:07]name=ofd_packets/00074746 [19:39:07]OFD Sender: To server: pG, [19:39:07]CommunicateWithHost lk.salyk.kg:30040 [19:39:07]ConnectInit lk.salyk.kg [19:39:08]Connected sock=9 [19:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5E 19 07 01 3D 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 67 A2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FA 23 01 00 35 04 06 00 0D 7B F6 91 75 15 3C 68 BD AA FA 96 3B 41 [19:39:08]Write to MH i2c: 01 00 00 0E 92 A0 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 07 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 07 00 0E 92 00 00 00 00 00 B3 0C 66 [19:39:08]RasterBufferAndPrint [19:39:08]line [19:39:08]line [19:39:08]line [19:39:08]line [19:39:08]line [19:39:08]written 0, free lines is 3258 [19:39:08]MH_Cut [19:39:08]Write to MH i2c: D1 01 00 15 92 01 79 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: D1 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: D1 01 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: D1 01 00 15 92 00 78 [19:39:08]Write to MH i2c: 01 00 00 16 92 A8 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6A F6 47 00 58 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FA 23 01 00 F4 03 04 00 E8 49 1A 67 B6 04 01 00 00 FD C3 68 E3 F0 92 EA 4A [19:39:08]CommunicateWithHost err = 0 [19:39:08]CheckOFDResponse [19:39:08]1017 (14) - 77093643461234 [19:39:08]1041 (16) - 0000000000871795 [19:39:08]1040 (4) - 74746 [19:39:08]1012 (4) - 24.10.2024 13:21 [19:39:08]1206 (1) - 0 [19:39:08]OFD Sender: Remove packet 74746 [19:39:08]ProducePacketName [19:39:08]name=ofd_packets/00074746 [19:39:08]NVStorageDeleteData [19:39:08]OFD Sender: No OFD packet to send [19:39:09]*** Cut start [19:39:09]*** Partial cut [19:39:09]*** CUTSNS_PIN = 1 [19:39:09]*** CUTSNS_PIN = 0 [19:39:09]*** Brake cut motor [19:39:09]Read from MH i2c: 01 [19:39:09]MH_I2C_Read... [19:39:09]*** Stop cut motor [19:39:09]*** Cut end [19:39:09]Read from MH i2c: 01 07 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 07 00 16 92 00 00 00 00 00 FF 0F BD [19:39:09]process_action close_receipt done [19:39:09]requested_data is exist [19:39:09]produce_requested_data [19:39:09]requested_item fm.sn is exist - process it [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 11 00 00 [19:39:09]Write to MH i2c: E2 08 00 17 92 80 11 00 00 00 00 00 00 23 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 17 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 17 00 17 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7B [19:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:39:09]wFMCommunicate OK [19:39:09]requested_item fd.num is exist - process it [19:39:09]SAM_PROTO_GetFieldsCounters [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 13 00 00 [19:39:09]Write to MH i2c: E2 08 00 18 92 80 13 00 00 00 00 00 00 26 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 62 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 62 00 18 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FA 23 01 00 0E 04 04 00 FE 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 A4 [19:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FA 23 01 00 0E 04 04 00 FE 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 [19:39:09]wFMCommunicate OK [19:39:09]SAM_PROTO_GetFieldsCounters done [19:39:09]requested_item shift.num is exist - process it [19:39:09]requested_item shift.opened is exist - process it [19:39:09]req_shift_opened [19:39:09]FM_GetShiftState [19:39:09]SAM_PROTO_GetShiftState [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 13 01 00 [19:39:09]Write to MH i2c: E2 08 00 19 92 80 13 01 00 00 00 00 00 28 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0E 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0E 00 19 92 00 09 00 01 09 95 19 67 00 00 00 00 90 00 52 [19:39:10]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:39:10]wFMCommunicate OK [19:39:10]SAM_PROTO_GetShiftState done [19:39:10]FM_GetShiftState done [19:39:10]req_shift_opened done [19:39:10]requested_item shift.open_date is exist - process it [19:39:10]req_shift_open_date [19:39:10]req_shift_open_date done [19:39:10]produce_requested_data done [19:39:10]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74746,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:39:10]process_action_free close_receipt [19:39:10]json_value_free [19:39:10]json_value_free done [19:39:10]process_json_proto returns [19:39:10]Send response to host [19:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74746,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:39:10]free response buf [19:39:10]execute_script done [19:39:10]execute_script returns [19:39:10]free content buf [19:39:10]Sock 8.Close socket [19:39:10]Sock 8.Thread stoped [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:55]recv_with_timeout no data received [19:39:58]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:31]int [19:46:31]Write to MH i2c: 01 00 00 1A 92 AC [19:46:31]*** FLAG_PRN_KEY set [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 07 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 07 00 1A 92 00 08 00 00 00 FF 0F C9 [19:46:31]state=0 [19:46:31]Key pressed [19:46:31]Feed [19:46:31]Write to MH i2c: D8 00 00 1B 92 84 [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: D8 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: D8 01 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: D8 01 00 1B 92 00 85 [19:46:31]int [19:46:31]Write to MH i2c: 01 00 00 1C 92 AE [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 07 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 07 00 1C 92 00 48 00 00 00 3C 00 39 [19:46:31]state=2 [19:46:31]Key pressed [19:46:31]int [19:46:31]Write to MH i2c: 01 00 00 1D 92 AF [19:46:31]*** FLAG_PRN_KEY reset [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 07 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 07 00 1D 92 00 00 00 00 00 FD 0F C2 [19:46:31]state=2 [19:46:31]Stop feed [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:39]accept exits with 10 [19:46:39]New connection [19:46:39]New thread 3066662244 created [19:46:39]Thread 3066805604 joined [19:46:39]Waiting for new connection... [19:46:39] Sock 10.Parse request [19:46:39]Sock 10.Check first char [19:46:39]Sock 10.First char is OK [19:46:39]request: POST /json_proto HTTP/1.0 [19:46:39]Method: POST [19:46:39]URL: /json_proto [19:46:39]Method is POST - this is cgi request [19:46:39]url: /json_proto [19:46:39]query_string will be loaded in cgi processing [19:46:39]execute_cgi json_proto POST (null) [19:46:39]execute_cgi path=json_proto method=POST [19:46:39]POST find Content-Length [19:46:39]Host: 172.17.39.131:8080 [19:46:39]Content-Length: 799 [19:46:39]Content-Type: application/json [19:46:39] [19:46:39]POST finish read [19:46:39]Found Content-Length = 799 [19:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:39]execute_script... [19:46: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)190707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:39]POST & json_proto [19:46:39]process_json_proto [19:46:39]json parsed OK: [19:46:39]protocol is kg_v1.0 [19:46:39]action value=close_receipt [19:46:39]process_action close_receipt [19:46:39]cmd_close_receipt [19:46:39]MH_GetDate [19:46:39]Write to MH i2c: F0 00 00 1E 92 9F [19:46:39]Write i2c OK [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: F0 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: F0 09 00 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: F0 09 00 1E 92 00 2C A4 1A 67 86 57 24 65 5F [19:46:39]GetLastDocTimeStamp 1729798759 [19:46:39]current date 1729799212 [19:46:39]FM_GetShiftState [19:46:39]SAM_PROTO_GetShiftState [19:46:39]wFMCommunicate request_size=4 [19:46:39]MH_SAM_APDU [19:46:39]CAPDU: 80 13 01 00 [19:46:39]Write to MH i2c: E2 08 00 1F 92 80 13 01 00 00 00 00 00 2E [19:46:39]Write i2c OK [19:46:39]MH_I2C_Read... [19:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:39]Read from MH i2c: E2 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 0E 00 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 0E 00 1F 92 00 09 00 01 09 95 19 67 00 00 00 00 90 00 58 [19:46:39]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:46:39]wFMCommunicate OK [19:46:39]SAM_PROTO_GetShiftState done [19:46:39]FM_GetShiftState done [19:46:39]opened in 1729729801 [19:46:39]opened+sec_in_day 1729816201 [19:46:39]quantity*price = 0 [19:46:39]sum+1 = 1 [19:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 191 24.10.2024 19:46 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74747 ФПД: 169702721931277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194652&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74747&fm=169702721931277&tin=02508201610067®Number=0000000000091691&sum=0 [19:46:40]StoreToDocumentArchive [19:46:40]shift 510 fd 74747 [19:46:40]save to /storage/0510/doc_00074747 [19:46:40]save last doc name /storage/0510/doc_00074747 to /storage/kkm_last_doc_name [19:46:40]save OK [19:46:40]Clear old archive folders... [19:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:46:40]tlvbuf is 00AF1810 [19:46:40]SAM_PROTO_ClearQueue [19:46:40]wFMCommunicate request_size=4 [19:46:40]MH_SAM_APDU [19:46:40]CAPDU: 80 09 00 00 [19:46:40]Write to MH i2c: E2 08 00 2C 92 80 09 00 00 00 00 00 00 30 [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:40]Read from MH i2c: E2 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 2C 92 00 90 00 32 [19:46:40]RAPDU: 90 00 [19:46:40]wFMCommunicate OK [19:46:40]SAM_PROTO_ClearQueue done [19:46:40]KKMCreateOFDPacket [19:46:40]OFDProtocolAddRootSTLVToBuf [19:46:40]FM_MakeSignedData [19:46:40]FM_MakeSignedData [19:46:40]SAM_PROTO_SignData [19:46:40]wFMCommunicate request_size=4 [19:46:40]MH_SAM_APDU [19:46:40]CAPDU: 80 0D 01 02 [19:46:40]Write to MH i2c: E2 08 00 2D 92 80 0D 01 02 00 00 00 00 38 [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:40]Read from MH i2c: E2 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 2D 92 00 90 00 33 [19:46:40]RAPDU: 90 00 [19:46:40]wFMCommunicate OK [19:46:40]wFMCommunicate request_size=255 [19:46:40]MH_SAM_APDU [19:46:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2C A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FB 23 01 [19:46:40]Write to MH i2c: E2 02 01 2E 92 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2C A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FB 23 01 00 00 C9 [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:41]Read from MH i2c: E2 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 03 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 03 00 2E 92 00 90 00 34 [19:46:41]RAPDU: 90 00 [19:46:41]wFMCommunicate OK [19:46:41]wFMCommunicate request_size=16 [19:46:41]MH_SAM_APDU [19:46:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9A 57 FE 75 48 0D [19:46:41]Write to MH i2c: E2 13 00 2F 92 80 0D 02 02 0B 00 00 35 04 06 00 9A 57 FE 75 48 0D 00 00 49 [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:41]Read from MH i2c: E2 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 03 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 03 00 2F 92 00 90 00 35 [19:46:41]RAPDU: 90 00 [19:46:41]wFMCommunicate OK [19:46:41]wFMCommunicate request_size=4 [19:46:41]MH_SAM_APDU [19:46:41]CAPDU: 80 0D 03 02 [19:46:41]Write to MH i2c: E2 08 00 30 92 80 0D 03 02 00 00 00 00 3D [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:41]Read from MH i2c: E2 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 0B 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 0B 00 30 92 00 3F 9C 05 88 A3 67 C9 7D 90 00 F6 [19:46:41]RAPDU: 3F 9C 05 88 A3 67 C9 7D 90 00 [19:46:41]wFMCommunicate OK [19:46:41]SAM_PROTO_SignData done [19:46:41]FM_MakeSignedData done [19:46:41]CreateOFDProtocolMessage [19:46:41]wFMCommunicate request_size=4 [19:46:41]MH_SAM_APDU [19:46:41]CAPDU: 80 11 00 00 [19:46:41]Write to MH i2c: E2 08 00 31 92 80 11 00 00 00 00 00 00 3D [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:41]Read from MH i2c: E2 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 17 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 17 00 31 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 95 [19:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:46:41]wFMCommunicate OK [19:46:41]CreateOFDProtocolMessage done [19:46:41]OFDSenderStorePacket 74747 [19:46:41]StoreOFDPacket docnum=74747 [19:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 EB 32 0D 01 78 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2C A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FB 23 01 00 35 04 06 00 9A 57 FE 75 48 0D 3F 9C 05 88 A3 67 C9 7D [19:46:41]CheckFolder [19:46:41]dirname=/storage/ofd_packets [19:46:41]CheckFolder done [19:46:41]ProducePacketName [19:46:41]name=ofd_packets/00074747 [19:46:41]NVStorageSaveData ofd_packets/00074747 [19:46:41]File name is /storage/ofd_packets/00074747 [19:46:41]Write 307 bytes [19:46:41]NVStorageSaveData done [19:46:41]OFDSenderStorePacket done [19:46:41]KKMCreateOFDPacket done [19:46:41]NVStorageSaveData kkm_last_timestamp [19:46:41]File name is /storage/kkm_last_timestamp [19:46:41]Write 4 bytes [19:46:41]NVStorageSaveData done [19:46:41]ExternCall_PrintAddStr [19:46:41]wPrintStart [19:46:41]Write to MH i2c: 01 00 00 32 92 C4 [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: 01 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: 01 07 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: 01 07 00 32 92 00 00 00 00 00 FF 0F D9 [19:46:41]RasterBufferAndPrint [19:46:41]line Счет N : (1)190707 [19:46:41]line ИНН: 02508201610067 [19:46:41]line Контрольно-Кассовый Чек [19:46:41]line ПРОДАЖА [19:46:41]line ТРК (МРК, ГНК) : 32 [19:46:41]line Товар: 2710194240 [19:46:41]line D-ENERGY ДТ-К-2 [19:46:41]line 500.000 * 0.00 [19:46:41]line = 0.00 [19:46:41]line НДС 12% НСП 1% [19:46:41]line > о реализуемом товаре [19:46:41]line ИТОГО: 0.00 [19:46:41]line НСП 1% : 0.00 [19:46:41]line НДС 12% : 0.00 [19:46:41]line Наличными: 0.00 [19:46:41]line Безнал.: 0.00 [19:46:41]line Место: АЗС № 142 "Партнер Нефть" [19:46:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:46:41]line СНО: Общий режим [19:46:41]line Чек 191 24.10.2024 19:46 [19:46:41]line Смена: 510 ФФД: 1.0 [19:46:41]line ЗНМ: 0300000089 [19:46:41]line РНМ: 0000000000091691 [19:46:41]line Версия ККМ: 001 [19:46:41]line Талоны: Топливная Карта [19:46:41]line 82575 [19:46:41]line ФМ: 0000000000871795 [19:46:41]line ФД: 74747 [19:46:41]line ФПД: 169702721931277 [19:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194652&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74747&fm=169702721931277&tin=02508201610067®Number=0000000000091691&sum=0 [19:46:41]OFD Sender: Processing packet 74747 [packets to send 13, broken 12] [19:46:41]ProducePacketName [19:46:41]name=ofd_packets/00074747 [19:46:41]OFD Sender: To server: pG, [19:46:41]CommunicateWithHost lk.salyk.kg:30040 [19:46:41]ConnectInit lk.salyk.kg [19:46:41]written 0, free lines is 4095 [19:46:41]Connected sock=9 [19: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 31 37 39 35 15 01 00 00 EB 32 0D 01 78 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2C A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FB 23 01 00 35 04 06 00 9A 57 FE 75 48 0D 3F 9C 05 88 A3 67 C9 7D [19:46:42]Write to MH i2c: 01 00 00 5C 92 EE [19:46:42]Write i2c OK [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: 01 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: 01 07 00 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: 01 07 00 5C 92 00 00 00 00 00 BD 0C BE [19:46:42]RasterBufferAndPrint [19:46:42]line [19:46:42]line [19:46:42]line [19:46:42]line [19:46:42]line [19:46:42]written 0, free lines is 3267 [19:46:42]MH_Cut [19:46:42]Write to MH i2c: D1 01 00 63 92 01 C7 [19:46:42]Write i2c OK [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: D1 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: D1 01 00 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: D1 01 00 63 92 00 C6 [19:46:42]Write to MH i2c: 01 00 00 64 92 F6 [19:46:42]Write i2c OK [19:46:42]MH_I2C_Read... [19:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 14 9A 47 00 87 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FB 23 01 00 F4 03 04 00 AD 4B 1A 67 B6 04 01 00 00 4E BC 1D 0F EF D9 43 6D [19:46:42]CommunicateWithHost err = 0 [19:46:42]CheckOFDResponse [19:46:42]1017 (14) - 77093643461234 [19:46:42]1041 (16) - 0000000000871795 [19:46:42]1040 (4) - 74747 [19:46:42]1012 (4) - 24.10.2024 13:29 [19:46:42]1206 (1) - 0 [19:46:42]OFD Sender: Remove packet 74747 [19:46:42]ProducePacketName [19:46:42]name=ofd_packets/00074747 [19:46:42]NVStorageDeleteData [19:46:42]OFD Sender: No OFD packet to send [19:46:42]*** Cut start [19:46:42]*** Partial cut [19:46:42]*** CUTSNS_PIN = 1 [19:46:43]*** CUTSNS_PIN = 0 [19:46:43]*** Brake cut motor [19:46:43]Read from MH i2c: 01 [19:46:43]MH_I2C_Read... [19:46:43]*** Stop cut motor [19:46:43]*** Cut end [19:46:43]Read from MH i2c: 01 07 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: 01 07 00 64 92 00 00 00 00 00 FF 0F 0B [19:46:43]process_action close_receipt done [19:46:43]requested_data is exist [19:46:43]produce_requested_data [19:46:43]requested_item fm.sn is exist - process it [19:46:43]wFMCommunicate request_size=4 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 11 00 00 [19:46:43]Write to MH i2c: E2 08 00 65 92 80 11 00 00 00 00 00 00 71 [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:43]Read from MH i2c: E2 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 17 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 17 00 65 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C9 [19:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:46:43]wFMCommunicate OK [19:46:43]requested_item fd.num is exist - process it [19:46:43]SAM_PROTO_GetFieldsCounters [19:46:43]wFMCommunicate request_size=4 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 13 00 00 [19:46:43]Write to MH i2c: E2 08 00 66 92 80 13 00 00 00 00 00 00 74 [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:43]Read from MH i2c: E2 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 62 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 62 00 66 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FB 23 01 00 0E 04 04 00 FE 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 F6 [19: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FB 23 01 00 0E 04 04 00 FE 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 [19:46:43]wFMCommunicate OK [19:46:43]SAM_PROTO_GetFieldsCounters done [19:46:43]requested_item shift.num is exist - process it [19:46:43]requested_item shift.opened is exist - process it [19:46:43]req_shift_opened [19:46:43]FM_GetShiftState [19:46:43]SAM_PROTO_GetShiftState [19:46:43]wFMCommunicate request_size=4 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 13 01 00 [19:46:43]Write to MH i2c: E2 08 00 67 92 80 13 01 00 00 00 00 00 76 [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:43]Read from MH i2c: E2 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 0E 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 0E 00 67 92 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A0 [19:46:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:46:43]wFMCommunicate OK [19:46:43]SAM_PROTO_GetShiftState done [19:46:43]FM_GetShiftState done [19:46:43]req_shift_opened done [19:46:43]requested_item shift.open_date is exist - process it [19:46:43]req_shift_open_date [19:46:43]req_shift_open_date done [19:46:43]produce_requested_data done [19:46:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74747,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:46:43]process_action_free close_receipt [19:46:43]json_value_free [19:46:43]json_value_free done [19:46:43]process_json_proto returns [19:46:43]Send response to host [19:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74747,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:46:43]free response buf [19:46:43]execute_script done [19:46:43]execute_script returns [19:46:43]free content buf [19:46:43]Sock 10.Close socket [19:46:43]Sock 10.Thread stoped [19:46:47]OFD Sender: No OFD packet to send [19:46:50]int [19:46:50]Write to MH i2c: 01 00 00 68 92 FA [19:46:50]*** FLAG_PRN_KEY set [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 68 92 00 08 00 00 00 FF 0F 17 [19:46:50]state=0 [19:46:50]Key pressed [19:46:50]Feed [19:46:50]Write to MH i2c: D8 00 00 69 92 D2 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: D8 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: D8 01 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: D8 01 00 69 92 00 D3 [19:46:50]int [19:46:50]Write to MH i2c: 01 00 00 6A 92 FC [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 6A 92 00 48 00 00 00 3C 00 87 [19:46:50]state=2 [19:46:50]Key pressed [19:46:50]int [19:46:50]Write to MH i2c: 01 00 00 6B 92 FD [19:46:50]*** FLAG_PRN_KEY reset [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 6B 92 00 00 00 00 00 FA 0F 0D [19:46:50]state=2 [19:46:50]Stop feed [19:46:50]int [19:46:50]Write to MH i2c: 01 00 00 6C 92 FE [19:46:50]*** FLAG_PRN_KEY set [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 6C 92 00 08 00 00 00 FF 0F 1B [19:46:50]state=0 [19:46:50]Key pressed [19:46:50]Feed [19:46:50]Write to MH i2c: D8 00 00 6D 92 D6 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: D8 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: D8 01 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: D8 01 00 6D 92 00 D7 [19:46:50]int [19:46:50]Write to MH i2c: 01 00 00 6E 92 00 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 6E 92 00 48 00 00 00 3C 00 8B [19:46:50]state=2 [19:46:50]Key pressed [19:46:51]int [19:46:51]Write to MH i2c: 01 00 00 6F 92 01 [19:46:51]*** FLAG_PRN_KEY reset [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 07 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 07 00 6F 92 00 00 00 00 00 F6 0F 0D [19:46:51]state=2 [19:46:51]Stop feed [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]accept exits with 8 [19:47:37]New connection [19:47:37]New thread 3066805604 created [19:47:37]Thread 3066662244 joined [19:47:37]Waiting for new connection... [19:47:37] Sock 8.Parse request [19:47:37]Sock 8.Check first char [19:47:37]Sock 8.First char is OK [19:47:37]request: POST /json_proto HTTP/1.0 [19:47:37]Method: POST [19:47:37]URL: /json_proto [19:47:37]Method is POST - this is cgi request [19:47:37]url: /json_proto [19:47:37]query_string will be loaded in cgi processing [19:47:37]execute_cgi json_proto POST (null) [19:47:37]execute_cgi path=json_proto method=POST [19:47:37]POST find Content-Length [19:47:37]Host: 172.17.39.131:8080 [19:47:37]Content-Length: 800 [19:47:37]Content-Type: application/json [19:47:37] [19:47:37]POST finish read [19:47:37]Found Content-Length = 800 [19:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:37]execute_script... [19:47: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)190718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:37]POST & json_proto [19:47:37]process_json_proto [19:47:37]json parsed OK: [19:47:37]protocol is kg_v1.0 [19:47:37]action value=close_receipt [19:47:37]process_action close_receipt [19:47:37]cmd_close_receipt [19:47:37]MH_GetDate [19:47:37]Write to MH i2c: F0 00 00 70 92 F1 [19:47:37]Write i2c OK [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: F0 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: F0 09 00 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: F0 09 00 70 92 00 66 A4 1A 67 86 57 24 65 EB [19:47:37]GetLastDocTimeStamp 1729799212 [19:47:37]current date 1729799270 [19:47:37]FM_GetShiftState [19:47:37]SAM_PROTO_GetShiftState [19:47:37]wFMCommunicate request_size=4 [19:47:37]MH_SAM_APDU [19:47:37]CAPDU: 80 13 01 00 [19:47:37]Write to MH i2c: E2 08 00 71 92 80 13 01 00 00 00 00 00 80 [19:47:37]Write i2c OK [19:47:37]MH_I2C_Read... [19:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:37]Read from MH i2c: E2 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 0E 00 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 0E 00 71 92 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AA [19:47:37]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:47:37]wFMCommunicate OK [19:47:37]SAM_PROTO_GetShiftState done [19:47:37]FM_GetShiftState done [19:47:37]opened in 1729729801 [19:47:37]opened+sec_in_day 1729816201 [19:47:37]quantity*price = 300075 [19:47:37]sum+1 = 300077 [19:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 192 24.10.2024 19:47 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 74748 ФПД: 113741823839487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194750&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74748&fm=113741823839487&tin=02508201610067®Number=0000000000091691&sum=300076 [19:47:38]StoreToDocumentArchive [19:47:38]shift 510 fd 74748 [19:47:38]save to /storage/0510/doc_00074748 [19:47:38]save last doc name /storage/0510/doc_00074748 to /storage/kkm_last_doc_name [19:47:38]save OK [19:47:38]Clear old archive folders... [19:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:47:38]tlvbuf is 00894450 [19:47:38]SAM_PROTO_ClearQueue [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 09 00 00 [19:47:38]Write to MH i2c: E2 08 00 7E 92 80 09 00 00 00 00 00 00 82 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 7E 92 00 90 00 84 [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]SAM_PROTO_ClearQueue done [19:47:38]KKMCreateOFDPacket [19:47:38]OFDProtocolAddRootSTLVToBuf [19:47:38]FM_MakeSignedData [19:47:38]FM_MakeSignedData [19:47:38]SAM_PROTO_SignData [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 0D 01 02 [19:47:38]Write to MH i2c: E2 08 00 7F 92 80 0D 01 02 00 00 00 00 8A [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 7F 92 00 90 00 85 [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]wFMCommunicate request_size=255 [19:47:38]MH_SAM_APDU [19:47: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 66 A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FC 23 01 00 35 04 06 00 67 72 95 01 [19:47:38]Write to MH i2c: E2 02 01 80 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 66 A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FC 23 01 00 35 04 06 00 67 72 95 01 00 00 BE [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:39]Read from MH i2c: E2 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 03 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 03 00 80 92 00 90 00 86 [19:47:39]RAPDU: 90 00 [19:47:39]wFMCommunicate OK [19:47:39]wFMCommunicate request_size=7 [19:47:39]MH_SAM_APDU [19:47:39]CAPDU: 80 0D 02 02 02 8C FF [19:47:39]Write to MH i2c: E2 0A 00 81 92 80 0D 02 02 02 00 8C FF 00 00 1C [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:39]Read from MH i2c: E2 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 03 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 03 00 81 92 00 90 00 87 [19:47:39]RAPDU: 90 00 [19:47:39]wFMCommunicate OK [19:47:39]wFMCommunicate request_size=4 [19:47:39]MH_SAM_APDU [19:47:39]CAPDU: 80 0D 03 02 [19:47:39]Write to MH i2c: E2 08 00 82 92 80 0D 03 02 00 00 00 00 8F [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:39]Read from MH i2c: E2 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 0B 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 0B 00 82 92 00 62 FA AC 24 0C 36 C3 47 90 00 08 [19:47:39]RAPDU: 62 FA AC 24 0C 36 C3 47 90 00 [19:47:39]wFMCommunicate OK [19:47:39]SAM_PROTO_SignData done [19:47:39]FM_MakeSignedData done [19:47:39]CreateOFDProtocolMessage [19:47:39]wFMCommunicate request_size=4 [19:47:39]MH_SAM_APDU [19:47:39]CAPDU: 80 11 00 00 [19:47:39]Write to MH i2c: E2 08 00 83 92 80 11 00 00 00 00 00 00 8F [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:39]Read from MH i2c: E2 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 17 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 17 00 83 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E7 [19:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:47:39]wFMCommunicate OK [19:47:39]CreateOFDProtocolMessage done [19:47:39]OFDSenderStorePacket 74748 [19:47:39]StoreOFDPacket docnum=74748 [19:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 93 6C 04 01 90 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 66 A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FC 23 01 00 35 04 06 00 67 72 95 01 8C FF 62 FA AC 24 0C 36 C3 47 [19:47:39]CheckFolder [19:47:39]dirname=/storage/ofd_packets [19:47:39]CheckFolder done [19:47:39]ProducePacketName [19:47:39]name=ofd_packets/00074748 [19:47:39]NVStorageSaveData ofd_packets/00074748 [19:47:39]File name is /storage/ofd_packets/00074748 [19:47:39]Write 298 bytes [19:47:39]NVStorageSaveData done [19:47:39]OFDSenderStorePacket done [19:47:39]KKMCreateOFDPacket done [19:47:39]NVStorageSaveData kkm_last_timestamp [19:47:39]File name is /storage/kkm_last_timestamp [19:47:39]Write 4 bytes [19:47:39]NVStorageSaveData done [19:47:39]ExternCall_PrintAddStr [19:47:39]wPrintStart [19:47:39]Write to MH i2c: 01 00 00 84 92 16 [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 07 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 07 00 84 92 00 00 00 00 00 FF 0F 2B [19:47:39]RasterBufferAndPrint [19:47:39]line Счет N : (1)190718 [19:47:39]line ИНН: 02508201610067 [19:47:39]line Контрольно-Кассовый Чек [19:47:39]line ПРОДАЖА [19:47:39]line ТРК (МРК, ГНК) : 31 [19:47:39]line Товар: 2710194210 [19:47:39]line ДТ-К-4 [19:47:39]line 39.380 * 76.20 [19:47:39]line = 3000.76 [19:47:39]line НДС 12% НСП 1% [19:47:39]line > о реализуемом товаре [19:47:39]line ИТОГО: 3000.76 [19:47:39]line НСП 1% : 26.55 [19:47:39]line НДС 12% : 318.66 [19:47:39]line Наличными: 0.00 [19:47:39]line Безнал.: 3000.76 [19:47:39]line Место: АЗС № 142 "Партнер Нефть" [19:47:39]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:47:39]line СНО: Общий режим [19:47:39]line Чек 192 24.10.2024 19:47 [19:47:39]line Смена: 510 ФФД: 1.0 [19:47:39]line ЗНМ: 0300000089 [19:47:39]line РНМ: 0000000000091691 [19:47:39]line Версия ККМ: 001 [19:47:39]line Платежная система: O! деньги [19:47:39]line ФМ: 0000000000871795 [19:47:39]line ФД: 74748 [19:47:39]line ФПД: 113741823839487 [19:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194750&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74748&fm=113741823839487&tin=02508201610067®Number=0000000000091691&sum=300076 [19:47:39]OFD Sender: Processing packet 74748 [packets to send 13, broken 12] [19:47:39]ProducePacketName [19:47:39]name=ofd_packets/00074748 [19:47:39]OFD Sender: To server: pG, [19:47:39]CommunicateWithHost lk.salyk.kg:30040 [19:47:39]ConnectInit lk.salyk.kg [19:47:39]written 0, free lines is 4095 [19:47:39]Connected sock=10 [19:47:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 93 6C 04 01 90 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 66 A4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FC 23 01 00 35 04 06 00 67 72 95 01 8C FF 62 FA AC 24 0C 36 C3 47 [19:47:40]Write to MH i2c: 01 00 00 AE 92 40 [19:47:40]Write i2c OK [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: 01 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: 01 07 00 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: 01 07 00 AE 92 00 00 00 00 00 B9 0C 0C [19:47:40]RasterBufferAndPrint [19:47:40]line [19:47:40]line [19:47:40]line [19:47:40]line [19:47:40]line [19:47:40]written 0, free lines is 3264 [19:47:40]MH_Cut [19:47:40]Write to MH i2c: D1 01 00 B5 92 01 19 [19:47:40]Write i2c OK [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: D1 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: D1 01 00 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: D1 01 00 B5 92 00 18 [19:47:40]Write to MH i2c: 01 00 00 B6 92 48 [19:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 55 96 47 00 AD 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 31 37 39 35 10 04 04 00 FC 23 01 00 F4 03 04 00 E7 4B 1A 67 B6 04 01 00 00 68 04 94 6D D1 8E 92 CC [19:47:40]CommunicateWithHost err = 0 [19:47:40]CheckOFDResponse [19:47:40]1017 (14) - 77093643461234 [19:47:40]1041 (16) - 0000000000871795 [19:47:40]1040 (4) - 74748 [19:47:40]1012 (4) - 24.10.2024 13:30 [19:47:40]1206 (1) - 0 [19:47:40]OFD Sender: Remove packet 74748 [19:47:40]ProducePacketName [19:47:40]name=ofd_packets/00074748 [19:47:40]NVStorageDeleteData [19:47:40]Write i2c OK [19:47:40]MH_I2C_Read... [19:47:40]OFD Sender: No OFD packet to send [19:47:40]*** Cut start [19:47:40]*** Partial cut [19:47:40]*** CUTSNS_PIN = 1 [19:47:41]*** CUTSNS_PIN = 0 [19:47:41]*** Brake cut motor [19:47:41]Read from MH i2c: 01 [19:47:41]MH_I2C_Read... [19:47:41]*** Stop cut motor [19:47:41]*** Cut end [19:47:41]Read from MH i2c: 01 07 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: 01 07 00 B6 92 00 00 00 00 00 FF 0F 5D [19:47:41]process_action close_receipt done [19:47:41]requested_data is exist [19:47:41]produce_requested_data [19:47:41]requested_item fm.sn is exist - process it [19:47:41]wFMCommunicate request_size=4 [19:47:41]MH_SAM_APDU [19:47:41]CAPDU: 80 11 00 00 [19:47:41]Write to MH i2c: E2 08 00 B7 92 80 11 00 00 00 00 00 00 C3 [19:47:41]Write i2c OK [19:47:41]MH_I2C_Read... [19:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:41]Read from MH i2c: E2 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 17 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 17 00 B7 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1B [19:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:47:41]wFMCommunicate OK [19:47:41]requested_item fd.num is exist - process it [19:47:41]SAM_PROTO_GetFieldsCounters [19:47:41]wFMCommunicate request_size=4 [19:47:41]MH_SAM_APDU [19:47:41]CAPDU: 80 13 00 00 [19:47:41]Write to MH i2c: E2 08 00 B8 92 80 13 00 00 00 00 00 00 C6 [19:47:41]Write i2c OK [19:47:41]MH_I2C_Read... [19:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:41]Read from MH i2c: E2 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 62 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 62 00 B8 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FC 23 01 00 0E 04 04 00 FE 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 4C [19:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FC 23 01 00 0E 04 04 00 FE 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 [19:47:41]wFMCommunicate OK [19:47:41]SAM_PROTO_GetFieldsCounters done [19:47:41]requested_item shift.num is exist - process it [19:47:41]requested_item shift.opened is exist - process it [19:47:41]req_shift_opened [19:47:41]FM_GetShiftState [19:47:41]SAM_PROTO_GetShiftState [19:47:41]wFMCommunicate request_size=4 [19:47:41]MH_SAM_APDU [19:47:41]CAPDU: 80 13 01 00 [19:47:41]Write to MH i2c: E2 08 00 B9 92 80 13 01 00 00 00 00 00 C8 [19:47:41]Write i2c OK [19:47:41]MH_I2C_Read... [19:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:41]Read from MH i2c: E2 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 0E 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 0E 00 B9 92 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F2 [19:47:41]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:47:41]wFMCommunicate OK [19:47:41]SAM_PROTO_GetShiftState done [19:47:41]FM_GetShiftState done [19:47:41]req_shift_opened done [19:47:41]requested_item shift.open_date is exist - process it [19:47:41]req_shift_open_date [19:47:41]req_shift_open_date done [19:47:41]produce_requested_data done [19:47:41]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74748,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:47:41]process_action_free close_receipt [19:47:41]json_value_free [19:47:41]json_value_free done [19:47:41]process_json_proto returns [19:47:41]Send response to host [19:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74748,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:47:41]free response buf [19:47:41]execute_script done [19:47:41]execute_script returns [19:47:41]free content buf [19:47:41]Sock 8.Close socket [19:47:41]Sock 8.Thread stoped [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:47:58]int [19:47:58]Write to MH i2c: 01 00 00 BA 92 4C [19:47:58]*** FLAG_PRN_KEY set [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 BA 92 00 08 00 00 00 FF 0F 69 [19:47:58]state=0 [19:47:58]Key pressed [19:47:58]Feed [19:47:58]Write to MH i2c: D8 00 00 BB 92 24 [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: D8 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: D8 01 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: D8 01 00 BB 92 00 25 [19:47:58]int [19:47:58]Write to MH i2c: 01 00 00 BC 92 4E [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 BC 92 00 48 00 00 00 3C 00 D9 [19:47:58]state=2 [19:47:58]Key pressed [19:47:58]int [19:47:58]Write to MH i2c: 01 00 00 BD 92 4F [19:47:58]*** FLAG_PRN_KEY reset [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 BD 92 00 00 00 00 00 F5 0F 5A [19:47:58]state=2 [19:47:58]Stop feed [19:47:58]int [19:47:58]Write to MH i2c: 01 00 00 BE 92 50 [19:47:58]*** FLAG_PRN_KEY set [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 BE 92 00 08 00 00 00 FF 0F 6D [19:47:58]state=0 [19:47:58]Key pressed [19:47:58]Feed [19:47:58]Write to MH i2c: D8 00 00 BF 92 28 [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: D8 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: D8 01 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: D8 01 00 BF 92 00 29 [19:47:58]int [19:47:58]Write to MH i2c: 01 00 00 C0 92 52 [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 C0 92 00 48 00 00 00 3C 00 DD [19:47:58]state=2 [19:47:58]Key pressed [19:47:58]int [19:47:58]Write to MH i2c: 01 00 00 C1 92 53 [19:47:58]*** FLAG_PRN_KEY reset [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 C1 92 00 00 00 00 00 F5 0F 5E [19:47:58]state=2 [19:47:58]Stop feed [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:23]accept exits with 9 [19:56:23]New connection [19:56:23]New thread 3066662244 created [19:56:23]Thread 3066805604 joined [19:56:23]Waiting for new connection... [19:56:23] Sock 9.Parse request [19:56:23]Sock 9.Check first char [19:56:23]Sock 9.First char is OK [19:56:23]request: POST /json_proto HTTP/1.0 [19:56:23]Method: POST [19:56:23]URL: /json_proto [19:56:23]Method is POST - this is cgi request [19:56:23]url: /json_proto [19:56:23]query_string will be loaded in cgi processing [19:56:23]execute_cgi json_proto POST (null) [19:56:23]execute_cgi path=json_proto method=POST [19:56:23]POST find Content-Length [19:56:23]Host: 172.17.39.131:8080 [19:56:23]Content-Length: 769 [19:56:23]Content-Type: application/json [19:56:23] [19:56:23]POST finish read [19:56:23]Found Content-Length = 769 [19:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:23]execute_script... [19: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)190720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:23]POST & json_proto [19:56:23]process_json_proto [19:56:23]json parsed OK: [19:56:23]protocol is kg_v1.0 [19:56:23]action value=close_receipt [19:56:23]process_action close_receipt [19:56:23]cmd_close_receipt [19:56:23]MH_GetDate [19:56:23]Write to MH i2c: F0 00 00 C2 92 43 [19:56:23]Write i2c OK [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: F0 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: F0 09 00 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: F0 09 00 C2 92 00 74 A6 1A 67 86 57 24 65 4D [19:56:23]GetLastDocTimeStamp 1729799270 [19:56:23]current date 1729799796 [19:56:23]FM_GetShiftState [19:56:23]SAM_PROTO_GetShiftState [19:56:23]wFMCommunicate request_size=4 [19:56:23]MH_SAM_APDU [19:56:23]CAPDU: 80 13 01 00 [19:56:23]Write to MH i2c: E2 08 00 C3 92 80 13 01 00 00 00 00 00 D2 [19:56:23]Write i2c OK [19:56:23]MH_I2C_Read... [19:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:23]Read from MH i2c: E2 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: E2 0E 00 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: E2 0E 00 C3 92 00 09 00 01 09 95 19 67 00 00 00 00 90 00 FC [19:56:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:56:23]wFMCommunicate OK [19:56:23]SAM_PROTO_GetShiftState done [19:56:23]FM_GetShiftState done [19:56:23]opened in 1729729801 [19:56:23]opened+sec_in_day 1729816201 [19:56:23]quantity*price = 200031 [19:56:23]sum+1 = 200032 [19:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 193 24.10.2024 19:56 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74749 ФПД: 255534260789963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195636&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74749&fm=255534260789963&tin=02508201610067®Number=0000000000091691&sum=200031 [19:56:24]StoreToDocumentArchive [19:56:24]shift 510 fd 74749 [19:56:24]save to /storage/0510/doc_00074749 [19:56:24]save last doc name /storage/0510/doc_00074749 to /storage/kkm_last_doc_name [19:56:24]save OK [19:56:24]Clear old archive folders... [19:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:24]tlvbuf is 00976FF0 [19:56:24]SAM_PROTO_ClearQueue [19:56:24]wFMCommunicate request_size=4 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 09 00 00 [19:56:24]Write to MH i2c: E2 08 00 D0 92 80 09 00 00 00 00 00 00 D4 [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 D0 92 00 90 00 D6 [19:56:24]RAPDU: 90 00 [19:56:24]wFMCommunicate OK [19:56:24]SAM_PROTO_ClearQueue done [19:56:24]KKMCreateOFDPacket [19:56:24]OFDProtocolAddRootSTLVToBuf [19:56:24]FM_MakeSignedData [19:56:24]FM_MakeSignedData [19:56:24]SAM_PROTO_SignData [19:56:24]wFMCommunicate request_size=4 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 0D 01 02 [19:56:24]Write to MH i2c: E2 08 00 D1 92 80 0D 01 02 00 00 00 00 DC [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 D1 92 00 90 00 D7 [19:56:24]RAPDU: 90 00 [19:56:24]wFMCommunicate OK [19:56:24]wFMCommunicate request_size=255 [19:56:24]MH_SAM_APDU [19:56: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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 74 A6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FD 23 01 00 35 04 06 00 E8 [19:56:24]Write to MH i2c: E2 02 01 D2 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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 74 A6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FD 23 01 00 35 04 06 00 E8 00 00 55 [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:25]Read from MH i2c: E2 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 03 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 03 00 D2 92 00 90 00 D8 [19:56:25]RAPDU: 90 00 [19:56:25]wFMCommunicate OK [19:56:25]wFMCommunicate request_size=10 [19:56:25]MH_SAM_APDU [19:56:25]CAPDU: 80 0D 02 02 05 68 34 D7 A2 CB [19:56:25]Write to MH i2c: E2 0D 00 D3 92 80 0D 02 02 05 00 68 34 D7 A2 CB 00 00 C9 [19:56:25]Write i2c OK [19:56:25]MH_I2C_Read... [19:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:25]Read from MH i2c: E2 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 03 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 03 00 D3 92 00 90 00 D9 [19:56:25]RAPDU: 90 00 [19:56:25]wFMCommunicate OK [19:56:25]wFMCommunicate request_size=4 [19:56:25]MH_SAM_APDU [19:56:25]CAPDU: 80 0D 03 02 [19:56:25]Write to MH i2c: E2 08 00 D4 92 80 0D 03 02 00 00 00 00 E1 [19:56:25]Write i2c OK [19:56:25]MH_I2C_Read... [19:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:25]Read from MH i2c: E2 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 0B 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 0B 00 D4 92 00 17 83 7C 05 FD 1E C7 44 90 00 23 [19:56:25]RAPDU: 17 83 7C 05 FD 1E C7 44 90 00 [19:56:25]wFMCommunicate OK [19:56:25]SAM_PROTO_SignData done [19:56:25]FM_MakeSignedData done [19:56:25]CreateOFDProtocolMessage [19:56:25]wFMCommunicate request_size=4 [19:56:25]MH_SAM_APDU [19:56:25]CAPDU: 80 11 00 00 [19:56:25]Write to MH i2c: E2 08 00 D5 92 80 11 00 00 00 00 00 00 E1 [19:56:25]Write i2c OK [19:56:25]MH_I2C_Read... [19:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:25]Read from MH i2c: E2 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 17 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 17 00 D5 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 39 [19:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:56:25]wFMCommunicate OK [19:56:25]CreateOFDProtocolMessage done [19:56:25]OFDSenderStorePacket 74749 [19:56:25]StoreOFDPacket docnum=74749 [19:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B1 74 07 01 82 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 74 A6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FD 23 01 00 35 04 06 00 E8 68 34 D7 A2 CB 17 83 7C 05 FD 1E C7 44 [19:56:25]CheckFolder [19:56:25]dirname=/storage/ofd_packets [19:56:25]CheckFolder done [19:56:25]ProducePacketName [19:56:25]name=ofd_packets/00074749 [19:56:25]NVStorageSaveData ofd_packets/00074749 [19:56:25]File name is /storage/ofd_packets/00074749 [19:56:25]Write 301 bytes [19:56:25]NVStorageSaveData done [19:56:25]OFDSenderStorePacket done [19:56:25]KKMCreateOFDPacket done [19:56:25]NVStorageSaveData kkm_last_timestamp [19:56:25]File name is /storage/kkm_last_timestamp [19:56:25]Write 4 bytes [19:56:25]NVStorageSaveData done [19:56:25]ExternCall_PrintAddStr [19:56:25]wPrintStart [19:56:25]Write to MH i2c: 01 00 00 D6 92 68 [19:56:25]Write i2c OK [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: 01 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: 01 07 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: 01 07 00 D6 92 00 00 00 00 00 FF 0F 7D [19:56:25]RasterBufferAndPrint [19:56:25]line Счет N : (1)190720 [19:56:25]line ИНН: 02508201610067 [19:56:25]line Контрольно-Кассовый Чек [19:56:25]line ПРОДАЖА [19:56:25]line ТРК (МРК, ГНК) : 21 [19:56:25]line Товар: 2710124130 [19:56:25]line Аи-92-К-5 [19:56:25]line 29.900 * 66.90 [19:56:25]line = 2000.31 [19:56:25]line НДС 12% НСП 1% [19:56:25]line > о реализуемом товаре [19:56:25]line ИТОГО: 2000.31 [19:56:25]line НСП 1% : 17.70 [19:56:25]line НДС 12% : 212.42 [19:56:25]line Наличными: 0.00 [19:56:25]line Безнал.: 2000.31 [19:56:25]line Место: АЗС № 142 "Партнер Нефть" [19:56:25]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:56:25]line СНО: Общий режим [19:56:25]line Чек 193 24.10.2024 19:56 [19:56:25]line Смена: 510 ФФД: 1.0 [19:56:25]line ЗНМ: 0300000089 [19:56:25]line РНМ: 0000000000091691 [19:56:25]line Версия ККМ: 001 [19:56:25]line Платежная система: Mbank [19:56:25]line ФМ: 0000000000871795 [19:56:25]line ФД: 74749 [19:56:25]line ФПД: 255534260789963 [19:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195636&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74749&fm=255534260789963&tin=02508201610067®Number=0000000000091691&sum=200031 [19:56:25]OFD Sender: Processing packet 74749 [packets to send 13, broken 12] [19:56:25]ProducePacketName [19:56:25]name=ofd_packets/00074749 [19:56:25]OFD Sender: To server: pG, [19:56:25]CommunicateWithHost lk.salyk.kg:30040 [19:56:25]ConnectInit lk.salyk.kg [19:56:25]written 0, free lines is 4095 [19:56:25]Connected sock=10 [19:56:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B1 74 07 01 82 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 74 A6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FD 23 01 00 35 04 06 00 E8 68 34 D7 A2 CB 17 83 7C 05 FD 1E C7 44 [19:56:26]Write to MH i2c: 01 00 00 FF 92 91 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: 01 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: 01 07 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: 01 07 00 FF 92 00 00 00 00 00 D0 0C 74 [19:56:26]RasterBufferAndPrint [19:56:26]line [19:56:26]line [19:56:26]line [19:56:26]line [19:56:26]line [19:56:26]written 0, free lines is 3286 [19:56:26]MH_Cut [19:56:26]Write to MH i2c: D1 01 00 06 93 01 6B [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: D1 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: D1 01 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: D1 01 00 06 93 00 6A [19:56:26]Write to MH i2c: 01 00 00 07 93 9A [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A3 8E 47 00 F6 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FD 23 01 00 F4 03 04 00 F5 4D 1A 67 B6 04 01 00 00 AE E9 3F A6 E5 64 A2 DF [19:56:26]CommunicateWithHost err = 0 [19:56:26]CheckOFDResponse [19:56:26]1017 (14) - 77093643461234 [19:56:26]1041 (16) - 0000000000871795 [19:56:26]1040 (4) - 74749 [19:56:26]1012 (4) - 24.10.2024 13:39 [19:56:26]1206 (1) - 0 [19:56:26]OFD Sender: Remove packet 74749 [19:56:26]ProducePacketName [19:56:26]name=ofd_packets/00074749 [19:56:26]NVStorageDeleteData [19:56:26]OFD Sender: No OFD packet to send [19:56:26]*** Cut start [19:56:26]*** Partial cut [19:56:26]*** CUTSNS_PIN = 1 [19:56:27]*** CUTSNS_PIN = 0 [19:56:27]*** Brake cut motor [19:56:27]Read from MH i2c: 01 [19:56:27]MH_I2C_Read... [19:56:27]*** Stop cut motor [19:56:27]*** Cut end [19:56:27]Read from MH i2c: 01 07 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: 01 07 00 07 93 00 00 00 00 00 FF 0F AF [19:56:27]process_action close_receipt done [19:56:27]requested_data is exist [19:56:27]produce_requested_data [19:56:27]requested_item fm.sn is exist - process it [19:56:27]wFMCommunicate request_size=4 [19:56:27]MH_SAM_APDU [19:56:27]CAPDU: 80 11 00 00 [19:56:27]Write to MH i2c: E2 08 00 08 93 80 11 00 00 00 00 00 00 15 [19:56:27]Write i2c OK [19:56:27]MH_I2C_Read... [19:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:27]Read from MH i2c: E2 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 17 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 17 00 08 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6D [19:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:56:27]wFMCommunicate OK [19:56:27]requested_item fd.num is exist - process it [19:56:27]SAM_PROTO_GetFieldsCounters [19:56:27]wFMCommunicate request_size=4 [19:56:27]MH_SAM_APDU [19:56:27]CAPDU: 80 13 00 00 [19:56:27]Write to MH i2c: E2 08 00 09 93 80 13 00 00 00 00 00 00 18 [19:56:27]Write i2c OK [19:56:27]MH_I2C_Read... [19:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:27]Read from MH i2c: E2 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 62 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 62 00 09 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FD 23 01 00 0E 04 04 00 FE 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 A2 [19:56: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FD 23 01 00 0E 04 04 00 FE 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 [19:56:27]wFMCommunicate OK [19:56:27]SAM_PROTO_GetFieldsCounters done [19:56:27]requested_item shift.num is exist - process it [19:56:27]requested_item shift.opened is exist - process it [19:56:27]req_shift_opened [19:56:27]FM_GetShiftState [19:56:27]SAM_PROTO_GetShiftState [19:56:27]wFMCommunicate request_size=4 [19:56:27]MH_SAM_APDU [19:56:27]CAPDU: 80 13 01 00 [19:56:27]Write to MH i2c: E2 08 00 0A 93 80 13 01 00 00 00 00 00 1A [19:56:27]Write i2c OK [19:56:27]MH_I2C_Read... [19:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:27]Read from MH i2c: E2 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 0E 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 0E 00 0A 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 44 [19:56:27]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [19:56:27]wFMCommunicate OK [19:56:27]SAM_PROTO_GetShiftState done [19:56:27]FM_GetShiftState done [19:56:27]req_shift_opened done [19:56:27]requested_item shift.open_date is exist - process it [19:56:27]req_shift_open_date [19:56:27]req_shift_open_date done [19:56:27]produce_requested_data done [19:56:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74749,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [19:56:27]process_action_free close_receipt [19:56:27]json_value_free [19:56:27]json_value_free done [19:56:27]process_json_proto returns [19:56:27]Send response to host [19:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74749,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [19:56:27]free response buf [19:56:27]execute_script done [19:56:27]execute_script returns [19:56:27]free content buf [19:56:27]Sock 9.Close socket [19:56:27]Sock 9.Thread stoped [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:12]recv_with_timeout no data received [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:43]accept exits with 8 [20:13:43]New connection [20:13:43]New thread 3066805604 created [20:13:43]Thread 3066662244 joined [20:13:43]Waiting for new connection... [20:13:43] Sock 8.Parse request [20:13:43]Sock 8.Check first char [20:13:43]Sock 8.First char is OK [20:13:43]request: POST /json_proto HTTP/1.0 [20:13:43]Method: POST [20:13:43]URL: /json_proto [20:13:43]Method is POST - this is cgi request [20:13:43]url: /json_proto [20:13:43]query_string will be loaded in cgi processing [20:13:43]execute_cgi json_proto POST (null) [20:13:43]execute_cgi path=json_proto method=POST [20:13:43]POST find Content-Length [20:13:43]Host: 172.17.39.131:8080 [20:13:43]Content-Length: 677 [20:13:43]Content-Type: application/json [20:13:43] [20:13:43]POST finish read [20:13:43]Found Content-Length = 677 [20:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:43]execute_script... [20:13: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)190721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:43]POST & json_proto [20:13:43]process_json_proto [20:13:43]json parsed OK: [20:13:43]protocol is kg_v1.0 [20:13:43]action value=close_receipt [20:13:43]process_action close_receipt [20:13:43]cmd_close_receipt [20:13:43]MH_GetDate [20:13:43]Write to MH i2c: F0 00 00 0B 93 8D [20:13:43]Write i2c OK [20:13:43]MH_I2C_Read... [20:13:43]Read from MH i2c: F0 [20:13:43]MH_I2C_Read... [20:13:43]Read from MH i2c: F0 09 00 [20:13:43]MH_I2C_Read... [20:13:43]Read from MH i2c: F0 09 00 0B 93 00 83 AA 1A 67 86 57 24 65 AA [20:13:43]GetLastDocTimeStamp 1729799796 [20:13:43]current date 1729800835 [20:13:43]FM_GetShiftState [20:13:43]SAM_PROTO_GetShiftState [20:13:43]wFMCommunicate request_size=4 [20:13:43]MH_SAM_APDU [20:13:43]CAPDU: 80 13 01 00 [20:13:43]Write to MH i2c: E2 08 00 0C 93 80 13 01 00 00 00 00 00 1C [20:13:43]Write i2c OK [20:13:43]MH_I2C_Read... [20:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:43]Read from MH i2c: E2 [20:13:43]MH_I2C_Read... [20:13:43]Read from MH i2c: E2 0E 00 [20:13:43]MH_I2C_Read... [20:13:43]Read from MH i2c: E2 0E 00 0C 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 46 [20:13:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:13:43]wFMCommunicate OK [20:13:43]SAM_PROTO_GetShiftState done [20:13:43]FM_GetShiftState done [20:13:43]opened in 1729729801 [20:13:43]opened+sec_in_day 1729816201 [20:13:43]quantity*price = 20003 [20:13:43]sum+1 = 20004 [20:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 194 24.10.2024 20:13 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74750 ФПД: 270829825888167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201355&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74750&fm=270829825888167&tin=02508201610067®Number=0000000000091691&sum=20000 [20:13:44]StoreToDocumentArchive [20:13:44]shift 510 fd 74750 [20:13:44]save to /storage/0510/doc_00074750 [20:13:44]save last doc name /storage/0510/doc_00074750 to /storage/kkm_last_doc_name [20:13:44]save OK [20:13:44]Clear old archive folders... [20:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:44]tlvbuf is 007D3120 [20:13:44]SAM_PROTO_ClearQueue [20:13:44]wFMCommunicate request_size=4 [20:13:44]MH_SAM_APDU [20:13:44]CAPDU: 80 09 00 00 [20:13:44]Write to MH i2c: E2 08 00 19 93 80 09 00 00 00 00 00 00 1E [20:13:44]Write i2c OK [20:13:44]MH_I2C_Read... [20:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:44]Read from MH i2c: E2 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 19 93 00 90 00 20 [20:13:44]RAPDU: 90 00 [20:13:44]wFMCommunicate OK [20:13:44]SAM_PROTO_ClearQueue done [20:13:44]KKMCreateOFDPacket [20:13:44]OFDProtocolAddRootSTLVToBuf [20:13:44]FM_MakeSignedData [20:13:44]FM_MakeSignedData [20:13:44]SAM_PROTO_SignData [20:13:44]wFMCommunicate request_size=4 [20:13:44]MH_SAM_APDU [20:13:44]CAPDU: 80 0D 01 02 [20:13:44]Write to MH i2c: E2 08 00 1A 93 80 0D 01 02 00 00 00 00 26 [20:13:44]Write i2c OK [20:13:44]MH_I2C_Read... [20:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:44]Read from MH i2c: E2 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 1A 93 00 90 00 21 [20:13:44]RAPDU: 90 00 [20:13:44]wFMCommunicate OK [20:13:44]wFMCommunicate request_size=255 [20:13:44]MH_SAM_APDU [20:13: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 83 AA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FE 23 01 00 35 04 06 00 F6 [20:13:44]Write to MH i2c: E2 02 01 1B 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 83 AA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FE 23 01 00 35 04 06 00 F6 00 00 04 [20:13:44]Write i2c OK [20:13:44]MH_I2C_Read... [20:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:44]Read from MH i2c: E2 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 1B 93 00 90 00 22 [20:13:44]RAPDU: 90 00 [20:13:44]wFMCommunicate OK [20:13:44]wFMCommunicate request_size=10 [20:13:44]MH_SAM_APDU [20:13:44]CAPDU: 80 0D 02 02 05 51 7B 91 0F A7 [20:13:44]Write to MH i2c: E2 0D 00 1C 93 80 0D 02 02 05 00 51 7B 91 0F A7 00 00 46 [20:13:44]Write i2c OK [20:13:44]MH_I2C_Read... [20:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:44]Read from MH i2c: E2 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 03 00 1C 93 00 90 00 23 [20:13:44]RAPDU: 90 00 [20:13:44]wFMCommunicate OK [20:13:44]wFMCommunicate request_size=4 [20:13:44]MH_SAM_APDU [20:13:44]CAPDU: 80 0D 03 02 [20:13:44]Write to MH i2c: E2 08 00 1D 93 80 0D 03 02 00 00 00 00 2B [20:13:44]Write i2c OK [20:13:44]MH_I2C_Read... [20:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:44]Read from MH i2c: E2 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 0B 00 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 0B 00 1D 93 00 9A 73 B3 D5 BF F1 85 04 90 00 FA [20:13:44]RAPDU: 9A 73 B3 D5 BF F1 85 04 90 00 [20:13:44]wFMCommunicate OK [20:13:44]SAM_PROTO_SignData done [20:13:44]FM_MakeSignedData done [20:13:44]CreateOFDProtocolMessage [20:13:44]wFMCommunicate request_size=4 [20:13:44]MH_SAM_APDU [20:13:44]CAPDU: 80 11 00 00 [20:13:44]Write to MH i2c: E2 08 00 1E 93 80 11 00 00 00 00 00 00 2B [20:13:44]Write i2c OK [20:13:44]MH_I2C_Read... [20:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:44]Read from MH i2c: E2 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 17 00 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: E2 17 00 1E 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [20:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:13:44]wFMCommunicate OK [20:13:44]CreateOFDProtocolMessage done [20:13:44]OFDSenderStorePacket 74750 [20:13:44]StoreOFDPacket docnum=74750 [20:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5C 21 07 01 F8 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 83 AA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FE 23 01 00 35 04 06 00 F6 51 7B 91 0F A7 9A 73 B3 D5 BF F1 85 04 [20:13:44]CheckFolder [20:13:44]dirname=/storage/ofd_packets [20:13:44]CheckFolder done [20:13:44]ProducePacketName [20:13:44]name=ofd_packets/00074750 [20:13:44]NVStorageSaveData ofd_packets/00074750 [20:13:44]File name is /storage/ofd_packets/00074750 [20:13:44]Write 301 bytes [20:13:44]NVStorageSaveData done [20:13:44]OFDSenderStorePacket done [20:13:44]KKMCreateOFDPacket done [20:13:44]NVStorageSaveData kkm_last_timestamp [20:13:44]File name is /storage/kkm_last_timestamp [20:13:44]Write 4 bytes [20:13:44]NVStorageSaveData done [20:13:44]ExternCall_PrintAddStr [20:13:44]wPrintStart [20:13:44]Write to MH i2c: 01 00 00 1F 93 B2 [20:13:44]Write i2c OK [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: 01 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: 01 07 00 [20:13:44]MH_I2C_Read... [20:13:44]Read from MH i2c: 01 07 00 1F 93 00 00 00 00 00 FF 0F C7 [20:13:44]RasterBufferAndPrint [20:13:44]line Счет N : (1)190721 [20:13:44]line ИНН: 02508201610067 [20:13:44]line Контрольно-Кассовый Чек [20:13:44]line ПРОДАЖА [20:13:44]line ТРК (МРК, ГНК) : 21 [20:13:44]line Товар: 2710124130 [20:13:44]line Аи-92-К-5 [20:13:44]line 2.990 * 66.90 [20:13:44]line = 200.03 [20:13:44]line НДС 12% НСП 1% [20:13:44]line > о реализуемом товаре [20:13:44]line ОКРУГЛЕНИЕ: -0.03 [20:13:44]line ИТОГО: 200.00 [20:13:44]line Внесено: 200.00 [20:13:44]line СДАЧА: 0.00 [20:13:44]line НСП 1% : 1.77 [20:13:44]line НДС 12% : 21.24 [20:13:44]line Наличными: 200.00 [20:13:44]line Безнал.: 0.00 [20:13:44]line Место: АЗС № 142 "Партнер Нефть" [20:13:44]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:13:44]line СНО: Общий режим [20:13:44]line Чек 194 24.10.2024 20:13 [20:13:44]line Смена: 510 ФФД: 1.0 [20:13:44]line ЗНМ: 0300000089 [20:13:44]line РНМ: 0000000000091691 [20:13:44]line Версия ККМ: 001 [20:13:44]line ФМ: 0000000000871795 [20:13:44]line ФД: 74750 [20:13:44]line ФПД: 270829825888167 [20:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201355&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74750&fm=270829825888167&tin=02508201610067®Number=0000000000091691&sum=20000 [20:13:45]written 0, free lines is 4095 [20:13:45]OFD Sender: Processing packet 74750 [packets to send 13, broken 12] [20:13:45]ProducePacketName [20:13:45]name=ofd_packets/00074750 [20:13:45]OFD Sender: To server: pG, [20:13:45]CommunicateWithHost lk.salyk.kg:30040 [20:13:45]ConnectInit lk.salyk.kg [20:13:45]Connected sock=10 [20:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5C 21 07 01 F8 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 83 AA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FE 23 01 00 35 04 06 00 F6 51 7B 91 0F A7 9A 73 B3 D5 BF F1 85 04 [20:13:45]Write to MH i2c: 01 00 00 4A 93 DD [20:13:45]Write i2c OK [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 07 00 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 07 00 4A 93 00 00 00 00 00 B3 0C A3 [20:13:45]RasterBufferAndPrint [20:13:45]line [20:13:45]line [20:13:45]line [20:13:45]line [20:13:45]line [20:13:45]written 0, free lines is 3258 [20:13:45]MH_Cut [20:13:45]Write to MH i2c: D1 01 00 51 93 01 B6 [20:13:45]Write i2c OK [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: D1 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: D1 01 00 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: D1 01 00 51 93 00 B5 [20:13:45]Write to MH i2c: 01 00 00 52 93 E5 [20:13:45]Write i2c OK [20:13:45]MH_I2C_Read... [20:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B7 09 47 00 53 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FE 23 01 00 F4 03 04 00 05 52 1A 67 B6 04 01 00 00 DC 27 6C 16 01 93 56 FA [20:13:45]CommunicateWithHost err = 0 [20:13:45]CheckOFDResponse [20:13:45]1017 (14) - 77093643461234 [20:13:45]1041 (16) - 0000000000871795 [20:13:45]1040 (4) - 74750 [20:13:45]1012 (4) - 24.10.2024 13:56 [20:13:45]1206 (1) - 0 [20:13:45]OFD Sender: Remove packet 74750 [20:13:45]ProducePacketName [20:13:45]name=ofd_packets/00074750 [20:13:45]NVStorageDeleteData [20:13:46]OFD Sender: No OFD packet to send [20:13:46]*** Cut start [20:13:46]*** Partial cut [20:13:46]*** CUTSNS_PIN = 1 [20:13:46]*** CUTSNS_PIN = 0 [20:13:46]*** Brake cut motor [20:13:47]Read from MH i2c: 01 [20:13:47]MH_I2C_Read... [20:13:47]*** Stop cut motor [20:13:47]*** Cut end [20:13:47]Read from MH i2c: 01 07 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: 01 07 00 52 93 00 00 00 00 00 FF 0F FA [20:13:47]process_action close_receipt done [20:13:47]requested_data is exist [20:13:47]produce_requested_data [20:13:47]requested_item fm.sn is exist - process it [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 11 00 00 [20:13:47]Write to MH i2c: E2 08 00 53 93 80 11 00 00 00 00 00 00 60 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 17 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 17 00 53 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B8 [20:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:13:47]wFMCommunicate OK [20:13:47]requested_item fd.num is exist - process it [20:13:47]SAM_PROTO_GetFieldsCounters [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 13 00 00 [20:13:47]Write to MH i2c: E2 08 00 54 93 80 13 00 00 00 00 00 00 63 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 62 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 62 00 54 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FE 23 01 00 0E 04 04 00 FE 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 F1 [20:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FE 23 01 00 0E 04 04 00 FE 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 [20:13:47]wFMCommunicate OK [20:13:47]SAM_PROTO_GetFieldsCounters done [20:13:47]requested_item shift.num is exist - process it [20:13:47]requested_item shift.opened is exist - process it [20:13:47]req_shift_opened [20:13:47]FM_GetShiftState [20:13:47]SAM_PROTO_GetShiftState [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 13 01 00 [20:13:47]Write to MH i2c: E2 08 00 55 93 80 13 01 00 00 00 00 00 65 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 0E 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 0E 00 55 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 8F [20:13:47]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:13:47]wFMCommunicate OK [20:13:47]SAM_PROTO_GetShiftState done [20:13:47]FM_GetShiftState done [20:13:47]req_shift_opened done [20:13:47]requested_item shift.open_date is exist - process it [20:13:47]req_shift_open_date [20:13:47]req_shift_open_date done [20:13:47]produce_requested_data done [20:13:47]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74750,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:13:47]process_action_free close_receipt [20:13:47]json_value_free [20:13:47]json_value_free done [20:13:47]process_json_proto returns [20:13:47]Send response to host [20:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74750,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:13:47]free response buf [20:13:47]execute_script done [20:13:47]execute_script returns [20:13:47]free content buf [20:13:47]Sock 8.Close socket [20:13:47]Sock 8.Thread stoped [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:42]accept exits with 9 [20:17:42]New connection [20:17:42]New thread 3066662244 created [20:17:42]Thread 3066805604 joined [20:17:42]Waiting for new connection... [20:17:42] Sock 9.Parse request [20:17:42]Sock 9.Check first char [20:17:42]Sock 9.First char is OK [20:17:42]request: POST /json_proto HTTP/1.0 [20:17:42]Method: POST [20:17:42]URL: /json_proto [20:17:42]Method is POST - this is cgi request [20:17:42]url: /json_proto [20:17:42]query_string will be loaded in cgi processing [20:17:42]execute_cgi json_proto POST (null) [20:17:42]execute_cgi path=json_proto method=POST [20:17:42]POST find Content-Length [20:17:42]Host: 172.17.39.131:8080 [20:17:42]Content-Length: 799 [20:17:42]Content-Type: application/json [20:17:42] [20:17:42]POST finish read [20:17:42]Found Content-Length = 799 [20:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:42]execute_script... [20:17: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)190708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:42]POST & json_proto [20:17:42]process_json_proto [20:17:42]json parsed OK: [20:17:42]protocol is kg_v1.0 [20:17:42]action value=close_receipt [20:17:42]process_action close_receipt [20:17:42]cmd_close_receipt [20:17:42]MH_GetDate [20:17:42]Write to MH i2c: F0 00 00 56 93 D8 [20:17:42]Write i2c OK [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: F0 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: F0 09 00 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: F0 09 00 56 93 00 73 AB 1A 67 86 57 24 65 E6 [20:17:42]GetLastDocTimeStamp 1729800835 [20:17:42]current date 1729801075 [20:17:42]FM_GetShiftState [20:17:42]SAM_PROTO_GetShiftState [20:17:42]wFMCommunicate request_size=4 [20:17:42]MH_SAM_APDU [20:17:42]CAPDU: 80 13 01 00 [20:17:42]Write to MH i2c: E2 08 00 57 93 80 13 01 00 00 00 00 00 67 [20:17:42]Write i2c OK [20:17:42]MH_I2C_Read... [20:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:42]Read from MH i2c: E2 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 0E 00 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 0E 00 57 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 91 [20:17:42]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:17:42]wFMCommunicate OK [20:17:42]SAM_PROTO_GetShiftState done [20:17:42]FM_GetShiftState done [20:17:42]opened in 1729729801 [20:17:42]opened+sec_in_day 1729816201 [20:17:42]quantity*price = 0 [20:17:42]sum+1 = 1 [20:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 195 24.10.2024 20:17 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74751 ФПД: 135879196084025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201755&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74751&fm=135879196084025&tin=02508201610067®Number=0000000000091691&sum=0 [20:17:43]StoreToDocumentArchive [20:17:43]shift 510 fd 74751 [20:17:43]save to /storage/0510/doc_00074751 [20:17:43]save last doc name /storage/0510/doc_00074751 to /storage/kkm_last_doc_name [20:17:43]save OK [20:17:43]Clear old archive folders... [20:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:17:43]tlvbuf is 007EBCC0 [20:17:43]SAM_PROTO_ClearQueue [20:17:43]wFMCommunicate request_size=4 [20:17:43]MH_SAM_APDU [20:17:43]CAPDU: 80 09 00 00 [20:17:43]Write to MH i2c: E2 08 00 64 93 80 09 00 00 00 00 00 00 69 [20:17:43]Write i2c OK [20:17:43]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 64 93 00 90 00 6B [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]SAM_PROTO_ClearQueue done [20:17:44]KKMCreateOFDPacket [20:17:44]OFDProtocolAddRootSTLVToBuf [20:17:44]FM_MakeSignedData [20:17:44]FM_MakeSignedData [20:17:44]SAM_PROTO_SignData [20:17:44]wFMCommunicate request_size=4 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 01 02 [20:17:44]Write to MH i2c: E2 08 00 65 93 80 0D 01 02 00 00 00 00 71 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 65 93 00 90 00 6C [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]wFMCommunicate request_size=255 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FF 23 01 [20:17:44]Write to MH i2c: E2 02 01 66 93 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FF 23 01 00 00 58 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 66 93 00 90 00 6D [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]wFMCommunicate request_size=16 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7B 94 D7 37 07 39 [20:17:44]Write to MH i2c: E2 13 00 67 93 80 0D 02 02 0B 00 00 35 04 06 00 7B 94 D7 37 07 39 00 00 26 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 67 93 00 90 00 6E [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]wFMCommunicate request_size=4 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 03 02 [20:17:44]Write to MH i2c: E2 08 00 68 93 80 0D 03 02 00 00 00 00 76 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 0B 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 0B 00 68 93 00 B7 61 F2 66 20 5B 4B ED 90 00 9A [20:17:44]RAPDU: B7 61 F2 66 20 5B 4B ED 90 00 [20:17:44]wFMCommunicate OK [20:17:44]SAM_PROTO_SignData done [20:17:44]FM_MakeSignedData done [20:17:44]CreateOFDProtocolMessage [20:17:44]wFMCommunicate request_size=4 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 11 00 00 [20:17:44]Write to MH i2c: E2 08 00 69 93 80 11 00 00 00 00 00 00 76 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 17 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 17 00 69 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CE [20:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:17:44]wFMCommunicate OK [20:17:44]CreateOFDProtocolMessage done [20:17:44]OFDSenderStorePacket 74751 [20:17:44]StoreOFDPacket docnum=74751 [20:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 B3 A0 0D 01 61 63 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FF 23 01 00 35 04 06 00 7B 94 D7 37 07 39 B7 61 F2 66 20 5B 4B ED [20:17:44]CheckFolder [20:17:44]dirname=/storage/ofd_packets [20:17:44]CheckFolder done [20:17:44]ProducePacketName [20:17:44]name=ofd_packets/00074751 [20:17:44]NVStorageSaveData ofd_packets/00074751 [20:17:44]File name is /storage/ofd_packets/00074751 [20:17:44]Write 307 bytes [20:17:44]NVStorageSaveData done [20:17:44]OFDSenderStorePacket done [20:17:44]KKMCreateOFDPacket done [20:17:44]NVStorageSaveData kkm_last_timestamp [20:17:44]File name is /storage/kkm_last_timestamp [20:17:44]Write 4 bytes [20:17:44]NVStorageSaveData done [20:17:44]ExternCall_PrintAddStr [20:17:44]wPrintStart [20:17:44]Write to MH i2c: 01 00 00 6A 93 FD [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: 01 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: 01 07 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: 01 07 00 6A 93 00 00 00 00 00 FF 0F 12 [20:17:44]RasterBufferAndPrint [20:17:44]line Счет N : (1)190708 [20:17:44]line ИНН: 02508201610067 [20:17:44]line Контрольно-Кассовый Чек [20:17:44]line ПРОДАЖА [20:17:44]line ТРК (МРК, ГНК) : 42 [20:17:44]line Товар: 2710194240 [20:17:44]line D-ENERGY ДТ-К-2 [20:17:44]line 500.000 * 0.00 [20:17:44]line = 0.00 [20:17:44]line НДС 12% НСП 1% [20:17:44]line > о реализуемом товаре [20:17:44]line ИТОГО: 0.00 [20:17:44]line НСП 1% : 0.00 [20:17:44]line НДС 12% : 0.00 [20:17:44]line Наличными: 0.00 [20:17:44]line Безнал.: 0.00 [20:17:44]line Место: АЗС № 142 "Партнер Нефть" [20:17:44]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:17:44]line СНО: Общий режим [20:17:44]line Чек 195 24.10.2024 20:17 [20:17:44]line Смена: 510 ФФД: 1.0 [20:17:44]line ЗНМ: 0300000089 [20:17:44]line РНМ: 0000000000091691 [20:17:44]line Версия ККМ: 001 [20:17:44]line Талоны: Топливная Карта [20:17:44]line 82575 [20:17:44]line ФМ: 0000000000871795 [20:17:44]line ФД: 74751 [20:17:44]line ФПД: 135879196084025 [20:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201755&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74751&fm=135879196084025&tin=02508201610067®Number=0000000000091691&sum=0 [20:17:44]OFD Sender: Processing packet 74751 [packets to send 13, broken 12] [20:17:44]ProducePacketName [20:17:44]name=ofd_packets/00074751 [20:17:44]OFD Sender: To server: pG, [20:17:44]CommunicateWithHost lk.salyk.kg:30040 [20:17:44]ConnectInit lk.salyk.kg [20:17:44]written 0, free lines is 4095 [20:17:45]Connected sock=8 [20:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 B3 A0 0D 01 61 63 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 FF 23 01 00 35 04 06 00 7B 94 D7 37 07 39 B7 61 F2 66 20 5B 4B ED [20:17:45]Write to MH i2c: 01 00 00 94 93 27 [20:17:45]Write i2c OK [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 07 00 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 07 00 94 93 00 00 00 00 00 C1 0C FB [20:17:45]RasterBufferAndPrint [20:17:45]line [20:17:45]line [20:17:45]line [20:17:45]line [20:17:45]line [20:17:45]written 0, free lines is 3271 [20:17:45]MH_Cut [20:17:45]Write to MH i2c: D1 01 00 9B 93 01 00 [20:17:45]Write i2c OK [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: D1 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: D1 01 00 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: D1 01 00 9B 93 00 FF [20:17:45]Write to MH i2c: 01 00 00 9C 93 2F [20:17:45]Write i2c OK [20:17:45]MH_I2C_Read... [20:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 99 2D 47 00 ED 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 31 37 39 35 10 04 04 00 FF 23 01 00 F4 03 04 00 F5 52 1A 67 B6 04 01 00 00 00 48 8E 43 97 49 E2 BD [20:17:45]CommunicateWithHost err = 0 [20:17:45]CheckOFDResponse [20:17:45]1017 (14) - 77093643461234 [20:17:45]1041 (16) - 0000000000871795 [20:17:45]1040 (4) - 74751 [20:17:45]1012 (4) - 24.10.2024 14:00 [20:17:45]1206 (1) - 0 [20:17:45]OFD Sender: Remove packet 74751 [20:17:45]ProducePacketName [20:17:45]name=ofd_packets/00074751 [20:17:45]NVStorageDeleteData [20:17:45]OFD Sender: No OFD packet to send [20:17:46]*** Cut start [20:17:46]*** Partial cut [20:17:46]*** CUTSNS_PIN = 1 [20:17:46]*** CUTSNS_PIN = 0 [20:17:46]*** Brake cut motor [20:17:46]Read from MH i2c: 01 [20:17:46]MH_I2C_Read... [20:17:46]*** Stop cut motor [20:17:46]*** Cut end [20:17:46]Read from MH i2c: 01 07 00 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: 01 07 00 9C 93 00 00 00 00 00 FF 0F 44 [20:17:46]process_action close_receipt done [20:17:46]requested_data is exist [20:17:46]produce_requested_data [20:17:46]requested_item fm.sn is exist - process it [20:17:46]wFMCommunicate request_size=4 [20:17:46]MH_SAM_APDU [20:17:46]CAPDU: 80 11 00 00 [20:17:46]Write to MH i2c: E2 08 00 9D 93 80 11 00 00 00 00 00 00 AA [20:17:46]Write i2c OK [20:17:46]MH_I2C_Read... [20:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:46]Read from MH i2c: E2 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: E2 17 00 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: E2 17 00 9D 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [20:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:17:46]wFMCommunicate OK [20:17:46]requested_item fd.num is exist - process it [20:17:46]SAM_PROTO_GetFieldsCounters [20:17:46]wFMCommunicate request_size=4 [20:17:46]MH_SAM_APDU [20:17:46]CAPDU: 80 13 00 00 [20:17:46]Write to MH i2c: E2 08 00 9E 93 80 13 00 00 00 00 00 00 AD [20:17:46]Write i2c OK [20:17:46]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 62 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 62 00 9E 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FF 23 01 00 0E 04 04 00 FE 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 3F [20:17:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 FF 23 01 00 0E 04 04 00 FE 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 [20:17:47]wFMCommunicate OK [20:17:47]SAM_PROTO_GetFieldsCounters done [20:17:47]requested_item shift.num is exist - process it [20:17:47]requested_item shift.opened is exist - process it [20:17:47]req_shift_opened [20:17:47]FM_GetShiftState [20:17:47]SAM_PROTO_GetShiftState [20:17:47]wFMCommunicate request_size=4 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 13 01 00 [20:17:47]Write to MH i2c: E2 08 00 9F 93 80 13 01 00 00 00 00 00 AF [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 0E 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 0E 00 9F 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D9 [20:17:47]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:17:47]wFMCommunicate OK [20:17:47]SAM_PROTO_GetShiftState done [20:17:47]FM_GetShiftState done [20:17:47]req_shift_opened done [20:17:47]requested_item shift.open_date is exist - process it [20:17:47]req_shift_open_date [20:17:47]req_shift_open_date done [20:17:47]produce_requested_data done [20:17:47]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74751,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:17:47]process_action_free close_receipt [20:17:47]json_value_free [20:17:47]json_value_free done [20:17:47]process_json_proto returns [20:17:47]Send response to host [20:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74751,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:17:47]free response buf [20:17:47]execute_script done [20:17:47]execute_script returns [20:17:47]free content buf [20:17:47]Sock 9.Close socket [20:17:47]Sock 9.Thread stoped [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]int [20:18:00]Write to MH i2c: 01 00 00 A0 93 33 [20:18:00]*** FLAG_PRN_KEY set [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 A0 93 00 08 00 00 00 FF 0F 50 [20:18:00]state=0 [20:18:00]Key pressed [20:18:00]Feed [20:18:00]Write to MH i2c: D8 00 00 A1 93 0B [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D8 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D8 01 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D8 01 00 A1 93 00 0C [20:18:00]int [20:18:00]Write to MH i2c: 01 00 00 A2 93 35 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 A2 93 00 48 00 00 00 3C 00 C0 [20:18:00]state=2 [20:18:00]Key pressed [20:18:00]OFD Sender: No OFD packet to send [20:18:00]int [20:18:00]Write to MH i2c: 01 00 00 A3 93 36 [20:18:00]*** FLAG_PRN_KEY reset [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 A3 93 00 00 00 00 00 FA 0F 46 [20:18:00]state=2 [20:18:00]Stop feed [20:18:01]int [20:18:01]Write to MH i2c: 01 00 00 A4 93 37 [20:18:01]*** FLAG_PRN_KEY set [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 A4 93 00 08 00 00 00 FF 0F 54 [20:18:01]state=0 [20:18:01]Key pressed [20:18:01]Feed [20:18:01]Write to MH i2c: D8 00 00 A5 93 0F [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: D8 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: D8 01 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: D8 01 00 A5 93 00 10 [20:18:01]int [20:18:01]Write to MH i2c: 01 00 00 A6 93 39 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 A6 93 00 48 00 00 00 3C 00 C4 [20:18:01]state=2 [20:18:01]Key pressed [20:18:01]int [20:18:01]Write to MH i2c: 01 00 00 A7 93 3A [20:18:01]*** FLAG_PRN_KEY reset [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 A7 93 00 00 00 00 00 F5 0F 45 [20:18:01]state=2 [20:18:01]Stop feed [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]accept exits with 10 [20:20:00]New connection [20:20:00]New thread 3066805604 created [20:20:00]Thread 3066662244 joined [20:20:00]Waiting for new connection... [20:20:00] Sock 10.Parse request [20:20:00]Sock 10.Check first char [20:20:00]Sock 10.First char is OK [20:20:00]request: POST /json_proto HTTP/1.0 [20:20:00]Method: POST [20:20:00]URL: /json_proto [20:20:00]Method is POST - this is cgi request [20:20:00]url: /json_proto [20:20:00]query_string will be loaded in cgi processing [20:20:00]execute_cgi json_proto POST (null) [20:20:00]execute_cgi path=json_proto method=POST [20:20:00]POST find Content-Length [20:20:00]Host: 172.17.39.131:8080 [20:20:00]Content-Length: 679 [20:20:00]Content-Type: application/json [20:20:00] [20:20:00]POST finish read [20:20:00]Found Content-Length = 679 [20:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 26.130, "sum" : 1991.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1991.00, "payments": [ { "type": 0, "sum" : 1991.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:00]execute_script... [20:20: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)190722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 26.130, "sum" : 1991.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1991.00, "payments": [ { "type": 0, "sum" : 1991.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:00]POST & json_proto [20:20:00]process_json_proto [20:20:00]json parsed OK: [20:20:00]protocol is kg_v1.0 [20:20:00]action value=close_receipt [20:20:00]process_action close_receipt [20:20:00]cmd_close_receipt [20:20:00]MH_GetDate [20:20:00]Write to MH i2c: F0 00 00 A8 93 2A [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: F0 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: F0 09 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: F0 09 00 A8 93 00 FD AB 1A 67 86 57 24 65 C2 [20:20:00]GetLastDocTimeStamp 1729801075 [20:20:00]current date 1729801213 [20:20:00]FM_GetShiftState [20:20:00]SAM_PROTO_GetShiftState [20:20:00]wFMCommunicate request_size=4 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 13 01 00 [20:20:00]Write to MH i2c: E2 08 00 A9 93 80 13 01 00 00 00 00 00 B9 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 0E 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 0E 00 A9 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E3 [20:20:00]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:20:00]wFMCommunicate OK [20:20:00]SAM_PROTO_GetShiftState done [20:20:00]FM_GetShiftState done [20:20:00]opened in 1729729801 [20:20:00]opened+sec_in_day 1729816201 [20:20:00]quantity*price = 199110 [20:20:00]sum+1 = 199112 [20:20:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1991.00 Внесено: 2000.00 СДАЧА: 9.00 НСП 1% : 17.62 НДС 12% : 211.44 Наличными: 1991.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 196 24.10.2024 20:20 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74752 ФПД: 203464813605651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202013&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74752&fm=203464813605651&tin=02508201610067®Number=0000000000091691&sum=199100 [20:20:01]StoreToDocumentArchive [20:20:01]shift 510 fd 74752 [20:20:01]save to /storage/0510/doc_00074752 [20:20:01]save last doc name /storage/0510/doc_00074752 to /storage/kkm_last_doc_name [20:20:01]save OK [20:20:01]Clear old archive folders... [20:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:20:01]tlvbuf is 007C41C0 [20:20:01]SAM_PROTO_ClearQueue [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 09 00 00 [20:20:01]Write to MH i2c: E2 08 00 B6 93 80 09 00 00 00 00 00 00 BB [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 B6 93 00 90 00 BD [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]SAM_PROTO_ClearQueue done [20:20:02]KKMCreateOFDPacket [20:20:02]OFDProtocolAddRootSTLVToBuf [20:20:02]FM_MakeSignedData [20:20:02]FM_MakeSignedData [20:20:02]SAM_PROTO_SignData [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 0D 01 02 [20:20:02]Write to MH i2c: E2 08 00 B7 93 80 0D 01 02 00 00 00 00 C3 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 B7 93 00 90 00 BE [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]wFMCommunicate request_size=255 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 12 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 52 00 00 00 00 07 04 06 00 BC 09 03 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 FD AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 00 24 01 00 35 04 06 00 B9 0C D7 F0 [20:20:02]Write to MH i2c: E2 02 01 B8 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 12 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 52 00 00 00 00 07 04 06 00 BC 09 03 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 FD AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 00 24 01 00 35 04 06 00 B9 0C D7 F0 00 00 50 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 B8 93 00 90 00 BF [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]wFMCommunicate request_size=7 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 0D 02 02 02 73 13 [20:20:02]Write to MH i2c: E2 0A 00 B9 93 80 0D 02 02 02 00 73 13 00 00 50 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 B9 93 00 90 00 C0 [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 0D 03 02 [20:20:02]Write to MH i2c: E2 08 00 BA 93 80 0D 03 02 00 00 00 00 C8 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 0B 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 0B 00 BA 93 00 AA B2 74 49 1F C5 18 FC 90 00 DA [20:20:02]RAPDU: AA B2 74 49 1F C5 18 FC 90 00 [20:20:02]wFMCommunicate OK [20:20:02]SAM_PROTO_SignData done [20:20:02]FM_MakeSignedData done [20:20:02]CreateOFDProtocolMessage [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 11 00 00 [20:20:02]Write to MH i2c: E2 08 00 BB 93 80 11 00 00 00 00 00 00 C8 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 17 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 17 00 BB 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 20 [20:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:20:02]wFMCommunicate OK [20:20:02]CreateOFDProtocolMessage done [20:20:02]OFDSenderStorePacket 74752 [20:20:02]StoreOFDPacket docnum=74752 [20:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 D3 15 04 01 18 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 12 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 52 00 00 00 00 07 04 06 00 BC 09 03 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 FD AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 00 24 01 00 35 04 06 00 B9 0C D7 F0 73 13 AA B2 74 49 1F C5 18 FC [20:20:02]CheckFolder [20:20:02]dirname=/storage/ofd_packets [20:20:02]CheckFolder done [20:20:02]ProducePacketName [20:20:02]name=ofd_packets/00074752 [20:20:02]NVStorageSaveData ofd_packets/00074752 [20:20:02]File name is /storage/ofd_packets/00074752 [20:20:02]Write 298 bytes [20:20:02]NVStorageSaveData done [20:20:02]OFDSenderStorePacket done [20:20:02]KKMCreateOFDPacket done [20:20:02]NVStorageSaveData kkm_last_timestamp [20:20:02]File name is /storage/kkm_last_timestamp [20:20:02]Write 4 bytes [20:20:02]NVStorageSaveData done [20:20:02]ExternCall_PrintAddStr [20:20:02]wPrintStart [20:20:02]Write to MH i2c: 01 00 00 BC 93 4F [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: 01 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: 01 07 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: 01 07 00 BC 93 00 00 00 00 00 FF 0F 64 [20:20:02]RasterBufferAndPrint [20:20:02]line Счет N : (1)190722 [20:20:02]line ИНН: 02508201610067 [20:20:02]line Контрольно-Кассовый Чек [20:20:02]line ПРОДАЖА [20:20:02]line ТРК (МРК, ГНК) : 41 [20:20:02]line Товар: 2710194210 [20:20:02]line ДТ-К-4 [20:20:02]line 26.130 * 76.20 [20:20:02]line = 1991.11 [20:20:02]line НДС 12% НСП 1% [20:20:02]line > о реализуемом товаре [20:20:02]line ОКРУГЛЕНИЕ: -0.11 [20:20:02]line ИТОГО: 1991.00 [20:20:02]line Внесено: 2000.00 [20:20:02]line СДАЧА: 9.00 [20:20:02]line НСП 1% : 17.62 [20:20:02]line НДС 12% : 211.44 [20:20:02]line Наличными: 1991.00 [20:20:02]line Безнал.: 0.00 [20:20:02]line Место: АЗС № 142 "Партнер Нефть" [20:20:02]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:20:02]line СНО: Общий режим [20:20:02]line Чек 196 24.10.2024 20:20 [20:20:02]line Смена: 510 ФФД: 1.0 [20:20:02]line ЗНМ: 0300000089 [20:20:02]line РНМ: 0000000000091691 [20:20:02]line Версия ККМ: 001 [20:20:02]line ФМ: 0000000000871795 [20:20:02]line ФД: 74752 [20:20:02]line ФПД: 203464813605651 [20:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202013&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74752&fm=203464813605651&tin=02508201610067®Number=0000000000091691&sum=199100 [20:20:02]OFD Sender: Processing packet 74752 [packets to send 13, broken 12] [20:20:02]ProducePacketName [20:20:02]name=ofd_packets/00074752 [20:20:02]OFD Sender: To server: pG, [20:20:02]CommunicateWithHost lk.salyk.kg:30040 [20:20:02]ConnectInit lk.salyk.kg [20:20:02]written 0, free lines is 4095 [20:20:02]Connected sock=9 [20:20:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 D3 15 04 01 18 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 12 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 52 00 00 00 00 07 04 06 00 BC 09 03 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 FD AB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 00 24 01 00 35 04 06 00 B9 0C D7 F0 73 13 AA B2 74 49 1F C5 18 FC [20:20:03]Write to MH i2c: 01 00 00 E7 93 7A [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: 01 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: 01 07 00 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: 01 07 00 E7 93 00 00 00 00 00 BB 0C 48 [20:20:03]RasterBufferAndPrint [20:20:03]line [20:20:03]line [20:20:03]line [20:20:03]line [20:20:03]line [20:20:03]written 0, free lines is 3267 [20:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 09 A0 47 00 5B 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 00 24 01 00 F4 03 04 00 7E 53 1A 67 B6 04 01 00 00 03 F1 6F D0 CF C8 7E 5C [20:20:03]CommunicateWithHost err = 0 [20:20:03]CheckOFDResponse [20:20:03]1017 (14) - 77093643461234 [20:20:03]1041 (16) - 0000000000871795 [20:20:03]1040 (4) - 74752 [20:20:03]1012 (4) - 24.10.2024 14:02 [20:20:03]1206 (1) - 0 [20:20:03]OFD Sender: Remove packet 74752 [20:20:03]ProducePacketName [20:20:03]name=ofd_packets/00074752 [20:20:03]NVStorageDeleteData [20:20:03]MH_Cut [20:20:03]Write to MH i2c: D1 01 00 EE 93 01 53 [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: D1 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: D1 01 00 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: D1 01 00 EE 93 00 52 [20:20:03]Write to MH i2c: 01 00 00 EF 93 82 [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:03]OFD Sender: No OFD packet to send [20:20:04]*** Cut start [20:20:04]*** Partial cut [20:20:04]*** CUTSNS_PIN = 1 [20:20:04]*** CUTSNS_PIN = 0 [20:20:04]*** Brake cut motor [20:20:04]Read from MH i2c: 01 [20:20:04]MH_I2C_Read... [20:20:04]*** Stop cut motor [20:20:04]*** Cut end [20:20:04]Read from MH i2c: 01 07 00 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: 01 07 00 EF 93 00 00 00 00 00 FF 0F 97 [20:20:04]process_action close_receipt done [20:20:04]requested_data is exist [20:20:04]produce_requested_data [20:20:04]requested_item fm.sn is exist - process it [20:20:04]wFMCommunicate request_size=4 [20:20:04]MH_SAM_APDU [20:20:04]CAPDU: 80 11 00 00 [20:20:04]Write to MH i2c: E2 08 00 F0 93 80 11 00 00 00 00 00 00 FD [20:20:04]Write i2c OK [20:20:04]MH_I2C_Read... [20:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:04]Read from MH i2c: E2 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 17 00 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 17 00 F0 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 55 [20:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:20:04]wFMCommunicate OK [20:20:04]requested_item fd.num is exist - process it [20:20:04]SAM_PROTO_GetFieldsCounters [20:20:04]wFMCommunicate request_size=4 [20:20:04]MH_SAM_APDU [20:20:04]CAPDU: 80 13 00 00 [20:20:04]Write to MH i2c: E2 08 00 F1 93 80 13 00 00 00 00 00 00 00 [20:20:04]Write i2c OK [20:20:04]MH_I2C_Read... [20:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:04]Read from MH i2c: E2 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 62 00 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 62 00 F1 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 00 24 01 00 0E 04 04 00 FE 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 97 [20:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 00 24 01 00 0E 04 04 00 FE 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 [20:20:04]wFMCommunicate OK [20:20:04]SAM_PROTO_GetFieldsCounters done [20:20:04]requested_item shift.num is exist - process it [20:20:04]requested_item shift.opened is exist - process it [20:20:04]req_shift_opened [20:20:04]FM_GetShiftState [20:20:04]SAM_PROTO_GetShiftState [20:20:04]wFMCommunicate request_size=4 [20:20:04]MH_SAM_APDU [20:20:04]CAPDU: 80 13 01 00 [20:20:04]Write to MH i2c: E2 08 00 F2 93 80 13 01 00 00 00 00 00 02 [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 0E 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 0E 00 F2 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 2C [20:20:05]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:20:05]wFMCommunicate OK [20:20:05]SAM_PROTO_GetShiftState done [20:20:05]FM_GetShiftState done [20:20:05]req_shift_opened done [20:20:05]requested_item shift.open_date is exist - process it [20:20:05]req_shift_open_date [20:20:05]req_shift_open_date done [20:20:05]produce_requested_data done [20:20:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74752,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:20:05]process_action_free close_receipt [20:20:05]json_value_free [20:20:05]json_value_free done [20:20:05]process_json_proto returns [20:20:05]Send response to host [20:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74752,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:20:05]free response buf [20:20:05]execute_script done [20:20:05]execute_script returns [20:20:05]free content buf [20:20:05]Sock 10.Close socket [20:20:05]Sock 10.Thread stoped [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:25]accept exits with 8 [20:21:25]New connection [20:21:25]New thread 3066662244 created [20:21:25]Thread 3066805604 joined [20:21:25]Waiting for new connection... [20:21:25] Sock 8.Parse request [20:21:25]Sock 8.Check first char [20:21:25]Sock 8.First char is OK [20:21:25]request: POST /json_proto HTTP/1.0 [20:21:25]Method: POST [20:21:25]URL: /json_proto [20:21:25]Method is POST - this is cgi request [20:21:25]url: /json_proto [20:21:25]query_string will be loaded in cgi processing [20:21:25]execute_cgi json_proto POST (null) [20:21:25]execute_cgi path=json_proto method=POST [20:21:25]POST find Content-Length [20:21:25]Host: 172.17.39.131:8080 [20:21:25]Content-Length: 682 [20:21:25]Content-Type: application/json [20:21:25] [20:21:25]POST finish read [20:21:25]Found Content-Length = 682 [20:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:25]execute_script... [20:21: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)190723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:25]POST & json_proto [20:21:25]process_json_proto [20:21:25]json parsed OK: [20:21:25]protocol is kg_v1.0 [20:21:25]action value=close_receipt [20:21:25]process_action close_receipt [20:21:25]cmd_close_receipt [20:21:25]MH_GetDate [20:21:25]Write to MH i2c: F0 00 00 F3 93 75 [20:21:25]Write i2c OK [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: F0 [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: F0 09 00 [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: F0 09 00 F3 93 00 52 AC 1A 67 86 57 24 65 63 [20:21:25]GetLastDocTimeStamp 1729801213 [20:21:25]current date 1729801298 [20:21:25]FM_GetShiftState [20:21:25]SAM_PROTO_GetShiftState [20:21:25]wFMCommunicate request_size=4 [20:21:25]MH_SAM_APDU [20:21:25]CAPDU: 80 13 01 00 [20:21:25]Write to MH i2c: E2 08 00 F4 93 80 13 01 00 00 00 00 00 04 [20:21:25]Write i2c OK [20:21:25]MH_I2C_Read... [20:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:25]Read from MH i2c: E2 [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: E2 0E 00 [20:21:25]MH_I2C_Read... [20:21:25]Read from MH i2c: E2 0E 00 F4 93 00 09 00 01 09 95 19 67 00 00 00 00 90 00 2E [20:21:25]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:21:25]wFMCommunicate OK [20:21:25]SAM_PROTO_GetShiftState done [20:21:25]FM_GetShiftState done [20:21:25]opened in 1729729801 [20:21:25]opened+sec_in_day 1729816201 [20:21:25]quantity*price = 100015 [20:21:25]sum+1 = 100017 [20:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 197 24.10.2024 20:21 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74753 ФПД: 280576160610117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202138&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74753&fm=280576160610117&tin=02508201610067®Number=0000000000091691&sum=100000 [20:21:26]StoreToDocumentArchive [20:21:26]shift 510 fd 74753 [20:21:26]save to /storage/0510/doc_00074753 [20:21:26]save last doc name /storage/0510/doc_00074753 to /storage/kkm_last_doc_name [20:21:26]save OK [20:21:26]Clear old archive folders... [20:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:26]tlvbuf is 0081A340 [20:21:26]SAM_PROTO_ClearQueue [20:21:26]wFMCommunicate request_size=4 [20:21:26]MH_SAM_APDU [20:21:26]CAPDU: 80 09 00 00 [20:21:26]Write to MH i2c: E2 08 00 01 94 80 09 00 00 00 00 00 00 07 [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:26]Read from MH i2c: E2 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 01 94 00 90 00 09 [20:21:26]RAPDU: 90 00 [20:21:26]wFMCommunicate OK [20:21:26]SAM_PROTO_ClearQueue done [20:21:26]KKMCreateOFDPacket [20:21:26]OFDProtocolAddRootSTLVToBuf [20:21:26]FM_MakeSignedData [20:21:26]FM_MakeSignedData [20:21:26]SAM_PROTO_SignData [20:21:26]wFMCommunicate request_size=4 [20:21:26]MH_SAM_APDU [20:21:26]CAPDU: 80 0D 01 02 [20:21:26]Write to MH i2c: E2 08 00 02 94 80 0D 01 02 00 00 00 00 0F [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:26]Read from MH i2c: E2 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 02 94 00 90 00 0A [20:21:26]RAPDU: 90 00 [20:21:26]wFMCommunicate OK [20:21:26]wFMCommunicate request_size=255 [20:21:26]MH_SAM_APDU [20:21: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 52 AC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 01 24 01 00 35 04 06 00 FF [20:21:26]Write to MH i2c: E2 02 01 03 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 52 AC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 01 24 01 00 35 04 06 00 FF 00 00 06 [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:26]Read from MH i2c: E2 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 03 94 00 90 00 0B [20:21:26]RAPDU: 90 00 [20:21:26]wFMCommunicate OK [20:21:26]wFMCommunicate request_size=10 [20:21:26]MH_SAM_APDU [20:21:26]CAPDU: 80 0D 02 02 05 2E BA 62 B7 45 [20:21:26]Write to MH i2c: E2 0D 00 04 94 80 0D 02 02 05 00 2E BA 62 B7 45 00 00 62 [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:26]Read from MH i2c: E2 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 03 00 04 94 00 90 00 0C [20:21:26]RAPDU: 90 00 [20:21:26]wFMCommunicate OK [20:21:26]wFMCommunicate request_size=4 [20:21:26]MH_SAM_APDU [20:21:26]CAPDU: 80 0D 03 02 [20:21:26]Write to MH i2c: E2 08 00 05 94 80 0D 03 02 00 00 00 00 14 [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:26]Read from MH i2c: E2 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 0B 00 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 0B 00 05 94 00 13 74 DC 3A 88 94 25 8A 90 00 7D [20:21:26]RAPDU: 13 74 DC 3A 88 94 25 8A 90 00 [20:21:26]wFMCommunicate OK [20:21:26]SAM_PROTO_SignData done [20:21:26]FM_MakeSignedData done [20:21:26]CreateOFDProtocolMessage [20:21:26]wFMCommunicate request_size=4 [20:21:26]MH_SAM_APDU [20:21:26]CAPDU: 80 11 00 00 [20:21:26]Write to MH i2c: E2 08 00 06 94 80 11 00 00 00 00 00 00 14 [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:26]Read from MH i2c: E2 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: E2 17 00 [20:21:26]MH_I2C_Read... [20:21:26]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 31 37 39 35 90 00 6C [20:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:21:26]wFMCommunicate OK [20:21:26]CreateOFDProtocolMessage done [20:21:26]OFDSenderStorePacket 74753 [20:21:26]StoreOFDPacket docnum=74753 [20:21:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C0 EB 07 01 E6 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 52 AC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 01 24 01 00 35 04 06 00 FF 2E BA 62 B7 45 13 74 DC 3A 88 94 25 8A [20:21:26]CheckFolder [20:21:26]dirname=/storage/ofd_packets [20:21:26]CheckFolder done [20:21:26]ProducePacketName [20:21:26]name=ofd_packets/00074753 [20:21:26]NVStorageSaveData ofd_packets/00074753 [20:21:26]File name is /storage/ofd_packets/00074753 [20:21:26]Write 301 bytes [20:21:26]NVStorageSaveData done [20:21:26]OFDSenderStorePacket done [20:21:26]KKMCreateOFDPacket done [20:21:26]NVStorageSaveData kkm_last_timestamp [20:21:26]File name is /storage/kkm_last_timestamp [20:21:26]Write 4 bytes [20:21:26]NVStorageSaveData done [20:21:26]ExternCall_PrintAddStr [20:21:26]wPrintStart [20:21:26]Write to MH i2c: 01 00 00 07 94 9B [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: 01 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: 01 07 00 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: 01 07 00 07 94 00 00 00 00 00 FF 0F B0 [20:21:26]RasterBufferAndPrint [20:21:26]line Счет N : (1)190723 [20:21:26]line ИНН: 02508201610067 [20:21:26]line Контрольно-Кассовый Чек [20:21:26]line ПРОДАЖА [20:21:26]line ТРК (МРК, ГНК) : 21 [20:21:26]line Товар: 2710124130 [20:21:26]line Аи-92-К-5 [20:21:26]line 14.950 * 66.90 [20:21:26]line = 1000.16 [20:21:26]line НДС 12% НСП 1% [20:21:26]line > о реализуемом товаре [20:21:26]line ОКРУГЛЕНИЕ: -0.16 [20:21:26]line ИТОГО: 1000.00 [20:21:26]line Внесено: 1000.00 [20:21:26]line СДАЧА: 0.00 [20:21:26]line НСП 1% : 8.85 [20:21:26]line НДС 12% : 106.21 [20:21:26]line Наличными: 1000.00 [20:21:26]line Безнал.: 0.00 [20:21:26]line Место: АЗС № 142 "Партнер Нефть" [20:21:26]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:21:26]line СНО: Общий режим [20:21:26]line Чек 197 24.10.2024 20:21 [20:21:26]line Смена: 510 ФФД: 1.0 [20:21:26]line ЗНМ: 0300000089 [20:21:26]line РНМ: 0000000000091691 [20:21:26]line Версия ККМ: 001 [20:21:26]line ФМ: 0000000000871795 [20:21:26]line ФД: 74753 [20:21:26]line ФПД: 280576160610117 [20:21:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202138&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74753&fm=280576160610117&tin=02508201610067®Number=0000000000091691&sum=100000 [20:21:27]written 0, free lines is 4095 [20:21:27]OFD Sender: Processing packet 74753 [packets to send 13, broken 12] [20:21:27]ProducePacketName [20:21:27]name=ofd_packets/00074753 [20:21:27]OFD Sender: To server: pG, [20:21:27]CommunicateWithHost lk.salyk.kg:30040 [20:21:27]ConnectInit lk.salyk.kg [20:21:27]Connected sock=11 [20:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C0 EB 07 01 E6 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 52 AC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 01 24 01 00 35 04 06 00 FF 2E BA 62 B7 45 13 74 DC 3A 88 94 25 8A [20:21:27]Write to MH i2c: 01 00 00 32 94 C6 [20:21:27]Write i2c OK [20:21:27]MH_I2C_Read... [20:21:27]Read from MH i2c: 01 [20:21:27]MH_I2C_Read... [20:21:27]Read from MH i2c: 01 07 00 [20:21:27]MH_I2C_Read... [20:21:27]Read from MH i2c: 01 07 00 32 94 00 00 00 00 00 A3 0C 7C [20:21:27]RasterBufferAndPrint [20:21:27]line [20:21:27]line [20:21:27]line [20:21:27]line [20:21:27]line [20:21:27]written 0, free lines is 3241 [20:21:27]MH_Cut [20:21:27]Write to MH i2c: D1 01 00 39 94 01 9F [20:21:27]Write i2c OK [20:21:27]MH_I2C_Read... [20:21:27]Read from MH i2c: D1 [20:21:27]MH_I2C_Read... [20:21:27]Read from MH i2c: D1 01 00 [20:21:27]MH_I2C_Read... [20:21:27]Read from MH i2c: D1 01 00 39 94 00 9E [20:21:27]Write to MH i2c: 01 00 00 3A 94 CE [20:21:27]Write i2c OK [20:21:27]MH_I2C_Read... [20:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 40 F1 47 00 93 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 31 37 39 35 10 04 04 00 01 24 01 00 F4 03 04 00 D3 53 1A 67 B6 04 01 00 00 11 46 E5 C9 A6 5F D8 61 [20:21:27]CommunicateWithHost err = 0 [20:21:27]CheckOFDResponse [20:21:27]1017 (14) - 77093643461234 [20:21:27]1041 (16) - 0000000000871795 [20:21:27]1040 (4) - 74753 [20:21:27]1012 (4) - 24.10.2024 14:04 [20:21:27]1206 (1) - 0 [20:21:27]OFD Sender: Remove packet 74753 [20:21:27]ProducePacketName [20:21:27]name=ofd_packets/00074753 [20:21:27]NVStorageDeleteData [20:21:28]OFD Sender: No OFD packet to send [20:21:28]*** Cut start [20:21:28]*** Partial cut [20:21:28]*** CUTSNS_PIN = 1 [20:21:28]*** CUTSNS_PIN = 0 [20:21:28]*** Brake cut motor [20:21:29]Read from MH i2c: 01 [20:21:29]MH_I2C_Read... [20:21:29]*** Stop cut motor [20:21:29]*** Cut end [20:21:29]Read from MH i2c: 01 07 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: 01 07 00 3A 94 00 00 00 00 00 FF 0F E3 [20:21:29]process_action close_receipt done [20:21:29]requested_data is exist [20:21:29]produce_requested_data [20:21:29]requested_item fm.sn is exist - process it [20:21:29]wFMCommunicate request_size=4 [20:21:29]MH_SAM_APDU [20:21:29]CAPDU: 80 11 00 00 [20:21:29]Write to MH i2c: E2 08 00 3B 94 80 11 00 00 00 00 00 00 49 [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:29]Read from MH i2c: E2 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 17 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 17 00 3B 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A1 [20:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:21:29]wFMCommunicate OK [20:21:29]requested_item fd.num is exist - process it [20:21:29]SAM_PROTO_GetFieldsCounters [20:21:29]wFMCommunicate request_size=4 [20:21:29]MH_SAM_APDU [20:21:29]CAPDU: 80 13 00 00 [20:21:29]Write to MH i2c: E2 08 00 3C 94 80 13 00 00 00 00 00 00 4C [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:29]Read from MH i2c: E2 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 62 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 62 00 3C 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 01 24 01 00 0E 04 04 00 FE 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 E7 [20:21:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 01 24 01 00 0E 04 04 00 FE 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 [20:21:29]wFMCommunicate OK [20:21:29]SAM_PROTO_GetFieldsCounters done [20:21:29]requested_item shift.num is exist - process it [20:21:29]requested_item shift.opened is exist - process it [20:21:29]req_shift_opened [20:21:29]FM_GetShiftState [20:21:29]SAM_PROTO_GetShiftState [20:21:29]wFMCommunicate request_size=4 [20:21:29]MH_SAM_APDU [20:21:29]CAPDU: 80 13 01 00 [20:21:29]Write to MH i2c: E2 08 00 3D 94 80 13 01 00 00 00 00 00 4E [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:29]Read from MH i2c: E2 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 3D 94 00 09 00 01 09 95 19 67 00 00 00 00 90 00 78 [20:21:29]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:21:29]wFMCommunicate OK [20:21:29]SAM_PROTO_GetShiftState done [20:21:29]FM_GetShiftState done [20:21:29]req_shift_opened done [20:21:29]requested_item shift.open_date is exist - process it [20:21:29]req_shift_open_date [20:21:29]req_shift_open_date done [20:21:29]produce_requested_data done [20:21:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74753,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:21:29]process_action_free close_receipt [20:21:29]json_value_free [20:21:29]json_value_free done [20:21:29]process_json_proto returns [20:21:29]Send response to host [20:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74753,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:21:29]free response buf [20:21:29]execute_script done [20:21:29]execute_script returns [20:21:29]free content buf [20:21:29]Sock 8.Close socket [20:21:29]Sock 8.Thread stoped [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:55]accept exits with 9 [20:27:55]New connection [20:27:55]New thread 3066805604 created [20:27:55]Thread 3066662244 joined [20:27:55]Waiting for new connection... [20:27:55] Sock 9.Parse request [20:27:55]Sock 9.Check first char [20:27:55]Sock 9.First char is OK [20:27:55]request: POST /json_proto HTTP/1.0 [20:27:55]Method: POST [20:27:55]URL: /json_proto [20:27:55]Method is POST - this is cgi request [20:27:55]url: /json_proto [20:27:55]query_string will be loaded in cgi processing [20:27:55]execute_cgi json_proto POST (null) [20:27:55]execute_cgi path=json_proto method=POST [20:27:55]POST find Content-Length [20:27:55]Host: 172.17.39.131:8080 [20:27:55]Content-Length: 677 [20:27:55]Content-Type: application/json [20:27:55] [20:27:55]POST finish read [20:27:55]Found Content-Length = 677 [20:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:55]execute_script... [20:27: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)190725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:55]POST & json_proto [20:27:55]process_json_proto [20:27:55]json parsed OK: [20:27:55]protocol is kg_v1.0 [20:27:55]action value=close_receipt [20:27:55]process_action close_receipt [20:27:55]cmd_close_receipt [20:27:55]MH_GetDate [20:27:55]Write to MH i2c: F0 00 00 3E 94 C1 [20:27:55]Write i2c OK [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: F0 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: F0 09 00 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: F0 09 00 3E 94 00 D8 AD 1A 67 86 57 24 65 36 [20:27:55]GetLastDocTimeStamp 1729801298 [20:27:55]current date 1729801688 [20:27:55]FM_GetShiftState [20:27:55]SAM_PROTO_GetShiftState [20:27:55]wFMCommunicate request_size=4 [20:27:55]MH_SAM_APDU [20:27:55]CAPDU: 80 13 01 00 [20:27:55]Write to MH i2c: E2 08 00 3F 94 80 13 01 00 00 00 00 00 50 [20:27:55]Write i2c OK [20:27:55]MH_I2C_Read... [20:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:55]Read from MH i2c: E2 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 0E 00 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 0E 00 3F 94 00 09 00 01 09 95 19 67 00 00 00 00 90 00 7A [20:27:55]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:27:55]wFMCommunicate OK [20:27:55]SAM_PROTO_GetShiftState done [20:27:55]FM_GetShiftState done [20:27:55]opened in 1729729801 [20:27:55]opened+sec_in_day 1729816201 [20:27:55]quantity*price = 50041 [20:27:55]sum+1 = 50042 [20:27:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 198 24.10.2024 20:28 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74754 ФПД: 188572065968478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202808&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74754&fm=188572065968478&tin=02508201610067®Number=0000000000091691&sum=50000 [20:27:56]StoreToDocumentArchive [20:27:56]shift 510 fd 74754 [20:27:56]save to /storage/0510/doc_00074754 [20:27:56]save last doc name /storage/0510/doc_00074754 to /storage/kkm_last_doc_name [20:27:56]save OK [20:27:56]Clear old archive folders... [20:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:56]tlvbuf is 007EBB30 [20:27:56]SAM_PROTO_ClearQueue [20:27:56]wFMCommunicate request_size=4 [20:27:56]MH_SAM_APDU [20:27:56]CAPDU: 80 09 00 00 [20:27:56]Write to MH i2c: E2 08 00 4C 94 80 09 00 00 00 00 00 00 52 [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:56]Read from MH i2c: E2 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 03 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 03 00 4C 94 00 90 00 54 [20:27:56]RAPDU: 90 00 [20:27:56]wFMCommunicate OK [20:27:56]SAM_PROTO_ClearQueue done [20:27:56]KKMCreateOFDPacket [20:27:56]OFDProtocolAddRootSTLVToBuf [20:27:56]FM_MakeSignedData [20:27:56]FM_MakeSignedData [20:27:56]SAM_PROTO_SignData [20:27:56]wFMCommunicate request_size=4 [20:27:56]MH_SAM_APDU [20:27:56]CAPDU: 80 0D 01 02 [20:27:56]Write to MH i2c: E2 08 00 4D 94 80 0D 01 02 00 00 00 00 5A [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:56]Read from MH i2c: E2 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 03 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 03 00 4D 94 00 90 00 55 [20:27:56]RAPDU: 90 00 [20:27:56]wFMCommunicate OK [20:27:56]wFMCommunicate request_size=255 [20:27:56]MH_SAM_APDU [20:27: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 D8 AD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 02 24 01 00 35 04 06 00 AB [20:27:56]Write to MH i2c: E2 02 01 4E 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 D8 AD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 02 24 01 00 35 04 06 00 AB 00 00 8C [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:57]Read from MH i2c: E2 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 03 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 03 00 4E 94 00 90 00 56 [20:27:57]RAPDU: 90 00 [20:27:57]wFMCommunicate OK [20:27:57]wFMCommunicate request_size=10 [20:27:57]MH_SAM_APDU [20:27:57]CAPDU: 80 0D 02 02 05 81 5B 01 B1 5E [20:27:57]Write to MH i2c: E2 0D 00 4F 94 80 0D 02 02 05 00 81 5B 01 B1 5E 00 00 53 [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:57]Read from MH i2c: E2 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 03 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 03 00 4F 94 00 90 00 57 [20:27:57]RAPDU: 90 00 [20:27:57]wFMCommunicate OK [20:27:57]wFMCommunicate request_size=4 [20:27:57]MH_SAM_APDU [20:27:57]CAPDU: 80 0D 03 02 [20:27:57]Write to MH i2c: E2 08 00 50 94 80 0D 03 02 00 00 00 00 5F [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:57]Read from MH i2c: E2 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 0B 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 0B 00 50 94 00 57 73 04 CF A6 EB 51 16 90 00 F5 [20:27:57]RAPDU: 57 73 04 CF A6 EB 51 16 90 00 [20:27:57]wFMCommunicate OK [20:27:57]SAM_PROTO_SignData done [20:27:57]FM_MakeSignedData done [20:27:57]CreateOFDProtocolMessage [20:27:57]wFMCommunicate request_size=4 [20:27:57]MH_SAM_APDU [20:27:57]CAPDU: 80 11 00 00 [20:27:57]Write to MH i2c: E2 08 00 51 94 80 11 00 00 00 00 00 00 5F [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:57]Read from MH i2c: E2 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 17 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: E2 17 00 51 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B7 [20:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:27:57]wFMCommunicate OK [20:27:57]CreateOFDProtocolMessage done [20:27:57]OFDSenderStorePacket 74754 [20:27:57]StoreOFDPacket docnum=74754 [20:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D3 34 07 01 89 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 D8 AD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 02 24 01 00 35 04 06 00 AB 81 5B 01 B1 5E 57 73 04 CF A6 EB 51 16 [20:27:57]CheckFolder [20:27:57]dirname=/storage/ofd_packets [20:27:57]CheckFolder done [20:27:57]ProducePacketName [20:27:57]name=ofd_packets/00074754 [20:27:57]NVStorageSaveData ofd_packets/00074754 [20:27:57]File name is /storage/ofd_packets/00074754 [20:27:57]Write 301 bytes [20:27:57]NVStorageSaveData done [20:27:57]OFDSenderStorePacket done [20:27:57]KKMCreateOFDPacket done [20:27:57]NVStorageSaveData kkm_last_timestamp [20:27:57]File name is /storage/kkm_last_timestamp [20:27:57]Write 4 bytes [20:27:57]NVStorageSaveData done [20:27:57]ExternCall_PrintAddStr [20:27:57]wPrintStart [20:27:57]Write to MH i2c: 01 00 00 52 94 E6 [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: 01 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: 01 07 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: 01 07 00 52 94 00 00 00 00 00 FF 0F FB [20:27:57]RasterBufferAndPrint [20:27:57]line Счет N : (1)190725 [20:27:57]line ИНН: 02508201610067 [20:27:57]line Контрольно-Кассовый Чек [20:27:57]line ПРОДАЖА [20:27:57]line ТРК (МРК, ГНК) : 21 [20:27:57]line Товар: 2710124130 [20:27:57]line Аи-92-К-5 [20:27:57]line 7.480 * 66.90 [20:27:57]line = 500.41 [20:27:57]line НДС 12% НСП 1% [20:27:57]line > о реализуемом товаре [20:27:57]line ОКРУГЛЕНИЕ: -0.41 [20:27:57]line ИТОГО: 500.00 [20:27:57]line Внесено: 500.00 [20:27:57]line СДАЧА: 0.00 [20:27:57]line НСП 1% : 4.43 [20:27:57]line НДС 12% : 53.14 [20:27:57]line Наличными: 500.00 [20:27:57]line Безнал.: 0.00 [20:27:57]line Место: АЗС № 142 "Партнер Нефть" [20:27:57]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:27:57]line СНО: Общий режим [20:27:57]line Чек 198 24.10.2024 20:28 [20:27:57]line Смена: 510 ФФД: 1.0 [20:27:57]line ЗНМ: 0300000089 [20:27:57]line РНМ: 0000000000091691 [20:27:57]line Версия ККМ: 001 [20:27:57]line ФМ: 0000000000871795 [20:27:57]line ФД: 74754 [20:27:57]line ФПД: 188572065968478 [20:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202808&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74754&fm=188572065968478&tin=02508201610067®Number=0000000000091691&sum=50000 [20:27:57]OFD Sender: Processing packet 74754 [packets to send 13, broken 12] [20:27:57]ProducePacketName [20:27:57]name=ofd_packets/00074754 [20:27:57]OFD Sender: To server: pG, [20:27:57]CommunicateWithHost lk.salyk.kg:30040 [20:27:57]ConnectInit lk.salyk.kg [20:27:57]written 0, free lines is 4095 [20:27:57]Connected sock=10 [20:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D3 34 07 01 89 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 D8 AD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 02 24 01 00 35 04 06 00 AB 81 5B 01 B1 5E 57 73 04 CF A6 EB 51 16 [20:27:58]Write to MH i2c: 01 00 00 7D 94 11 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: 01 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: 01 07 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: 01 07 00 7D 94 00 00 00 00 00 B3 0C D7 [20:27:58]RasterBufferAndPrint [20:27:58]line [20:27:58]line [20:27:58]line [20:27:58]line [20:27:58]line [20:27:58]written 0, free lines is 3258 [20:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B0 3D 47 00 5B 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 02 24 01 00 F4 03 04 00 59 55 1A 67 B6 04 01 00 00 15 DE AB 6A A3 6E 8D 09 [20:27:58]CommunicateWithHost err = 0 [20:27:58]CheckOFDResponse [20:27:58]1017 (14) - 77093643461234 [20:27:58]1041 (16) - 0000000000871795 [20:27:58]1040 (4) - 74754 [20:27:58]1012 (4) - 24.10.2024 14:10 [20:27:58]1206 (1) - 0 [20:27:58]OFD Sender: Remove packet 74754 [20:27:58]ProducePacketName [20:27:58]name=ofd_packets/00074754 [20:27:58]NVStorageDeleteData [20:27:58]MH_Cut [20:27:58]Write to MH i2c: D1 01 00 84 94 01 EA [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: D1 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: D1 01 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: D1 01 00 84 94 00 E9 [20:27:58]Write to MH i2c: 01 00 00 85 94 19 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]OFD Sender: No OFD packet to send [20:27:58]*** Cut start [20:27:58]*** Partial cut [20:27:58]*** CUTSNS_PIN = 1 [20:27:58]*** CUTSNS_PIN = 0 [20:27:59]*** Brake cut motor [20:27:59]Read from MH i2c: 01 [20:27:59]MH_I2C_Read... [20:27:59]*** Stop cut motor [20:27:59]*** Cut end [20:27:59]Read from MH i2c: 01 07 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 85 94 00 00 00 00 00 FF 0F 2E [20:27:59]process_action close_receipt done [20:27:59]requested_data is exist [20:27:59]produce_requested_data [20:27:59]requested_item fm.sn is exist - process it [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 11 00 00 [20:27:59]Write to MH i2c: E2 08 00 86 94 80 11 00 00 00 00 00 00 94 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 17 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 17 00 86 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EC [20:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:27:59]wFMCommunicate OK [20:27:59]requested_item fd.num is exist - process it [20:27:59]SAM_PROTO_GetFieldsCounters [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 13 00 00 [20:27:59]Write to MH i2c: E2 08 00 87 94 80 13 00 00 00 00 00 00 97 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 62 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 62 00 87 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 02 24 01 00 0E 04 04 00 FE 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 36 [20:27:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 02 24 01 00 0E 04 04 00 FE 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 [20:27:59]wFMCommunicate OK [20:27:59]SAM_PROTO_GetFieldsCounters done [20:27:59]requested_item shift.num is exist - process it [20:27:59]requested_item shift.opened is exist - process it [20:27:59]req_shift_opened [20:27:59]FM_GetShiftState [20:27:59]SAM_PROTO_GetShiftState [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 13 01 00 [20:27:59]Write to MH i2c: E2 08 00 88 94 80 13 01 00 00 00 00 00 99 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 0E 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 0E 00 88 94 00 09 00 01 09 95 19 67 00 00 00 00 90 00 C3 [20:27:59]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:27:59]wFMCommunicate OK [20:27:59]SAM_PROTO_GetShiftState done [20:27:59]FM_GetShiftState done [20:27:59]req_shift_opened done [20:27:59]requested_item shift.open_date is exist - process it [20:27:59]req_shift_open_date [20:27:59]req_shift_open_date done [20:27:59]produce_requested_data done [20:27:59]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74754,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:27:59]process_action_free close_receipt [20:27:59]json_value_free [20:27:59]json_value_free done [20:27:59]process_json_proto returns [20:27:59]Send response to host [20:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74754,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:27:59]free response buf [20:27:59]execute_script done [20:27:59]execute_script returns [20:27:59]free content buf [20:27:59]Sock 9.Close socket [20:27:59]Sock 9.Thread stoped [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]accept exits with 8 [20:39:54]New connection [20:39:54]New thread 3066662244 created [20:39:54]Thread 3066805604 joined [20:39:54]Waiting for new connection... [20:39:54] Sock 8.Parse request [20:39:54]Sock 8.Check first char [20:39:54]Sock 8.First char is OK [20:39:54]request: POST /json_proto HTTP/1.0 [20:39:54]Method: POST [20:39:54]URL: /json_proto [20:39:54]Method is POST - this is cgi request [20:39:54]url: /json_proto [20:39:54]query_string will be loaded in cgi processing [20:39:54]execute_cgi json_proto POST (null) [20:39:54]execute_cgi path=json_proto method=POST [20:39:54]POST find Content-Length [20:39:54]Host: 172.17.39.131:8080 [20:39:54]Content-Length: 799 [20:39:54]Content-Type: application/json [20:39:54] [20:39:54]POST finish read [20:39:54]Found Content-Length = 799 [20:39:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:54]execute_script... [20:39: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)190719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:54]POST & json_proto [20:39:54]process_json_proto [20:39:54]json parsed OK: [20:39:54]protocol is kg_v1.0 [20:39:54]action value=close_receipt [20:39:54]process_action close_receipt [20:39:54]cmd_close_receipt [20:39:54]MH_GetDate [20:39:54]Write to MH i2c: F0 00 00 89 94 0C [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: F0 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: F0 09 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: F0 09 00 89 94 00 A6 B0 1A 67 86 57 24 65 52 [20:39:54]GetLastDocTimeStamp 1729801688 [20:39:54]current date 1729802406 [20:39:54]FM_GetShiftState [20:39:54]SAM_PROTO_GetShiftState [20:39:54]wFMCommunicate request_size=4 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 13 01 00 [20:39:54]Write to MH i2c: E2 08 00 8A 94 80 13 01 00 00 00 00 00 9B [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:54]Read from MH i2c: E2 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 0E 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 0E 00 8A 94 00 09 00 01 09 95 19 67 00 00 00 00 90 00 C5 [20:39:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:39:54]wFMCommunicate OK [20:39:54]SAM_PROTO_GetShiftState done [20:39:54]FM_GetShiftState done [20:39:54]opened in 1729729801 [20:39:54]opened+sec_in_day 1729816201 [20:39:54]quantity*price = 0 [20:39:54]sum+1 = 1 [20:39:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 199 24.10.2024 20:40 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74755 ФПД: 92694921934350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204007&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74755&fm=92694921934350&tin=02508201610067®Number=0000000000091691&sum=0 [20:39:55]StoreToDocumentArchive [20:39:55]shift 510 fd 74755 [20:39:55]save to /storage/0510/doc_00074755 [20:39:55]save last doc name /storage/0510/doc_00074755 to /storage/kkm_last_doc_name [20:39:55]save OK [20:39:55]Clear old archive folders... [20:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:39:55]tlvbuf is 00A9D7E0 [20:39:55]SAM_PROTO_ClearQueue [20:39:55]wFMCommunicate request_size=4 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 09 00 00 [20:39:55]Write to MH i2c: E2 08 00 97 94 80 09 00 00 00 00 00 00 9D [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 97 94 00 90 00 9F [20:39:55]RAPDU: 90 00 [20:39:55]wFMCommunicate OK [20:39:55]SAM_PROTO_ClearQueue done [20:39:55]KKMCreateOFDPacket [20:39:55]OFDProtocolAddRootSTLVToBuf [20:39:55]FM_MakeSignedData [20:39:55]FM_MakeSignedData [20:39:55]SAM_PROTO_SignData [20:39:55]wFMCommunicate request_size=4 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 0D 01 02 [20:39:55]Write to MH i2c: E2 08 00 98 94 80 0D 01 02 00 00 00 00 A5 [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 98 94 00 90 00 A0 [20:39:55]RAPDU: 90 00 [20:39:55]wFMCommunicate OK [20:39:55]wFMCommunicate request_size=255 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A7 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 03 24 01 [20:39:55]Write to MH i2c: E2 02 01 99 94 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A7 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 03 24 01 00 00 CE [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 99 94 00 90 00 A1 [20:39:55]RAPDU: 90 00 [20:39:55]wFMCommunicate OK [20:39:55]wFMCommunicate request_size=16 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 54 4E 37 E4 F6 0E [20:39:55]Write to MH i2c: E2 13 00 9A 94 80 0D 02 02 0B 00 00 35 04 06 00 54 4E 37 E4 F6 0E 00 00 BE [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 9A 94 00 90 00 A2 [20:39:55]RAPDU: 90 00 [20:39:55]wFMCommunicate OK [20:39:55]wFMCommunicate request_size=4 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 0D 03 02 [20:39:55]Write to MH i2c: E2 08 00 9B 94 80 0D 03 02 00 00 00 00 AA [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 0B 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 0B 00 9B 94 00 96 79 61 7E 9B 24 A6 56 90 00 54 [20:39:55]RAPDU: 96 79 61 7E 9B 24 A6 56 90 00 [20:39:55]wFMCommunicate OK [20:39:55]SAM_PROTO_SignData done [20:39:55]FM_MakeSignedData done [20:39:55]CreateOFDProtocolMessage [20:39:55]wFMCommunicate request_size=4 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 11 00 00 [20:39:55]Write to MH i2c: E2 08 00 9C 94 80 11 00 00 00 00 00 00 AA [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 17 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 17 00 9C 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [20:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:39:55]wFMCommunicate OK [20:39:55]CreateOFDProtocolMessage done [20:39:55]OFDSenderStorePacket 74755 [20:39:55]StoreOFDPacket docnum=74755 [20:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 34 56 0D 01 23 F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A7 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 03 24 01 00 35 04 06 00 54 4E 37 E4 F6 0E 96 79 61 7E 9B 24 A6 56 [20:39:55]CheckFolder [20:39:55]dirname=/storage/ofd_packets [20:39:55]CheckFolder done [20:39:55]ProducePacketName [20:39:55]name=ofd_packets/00074755 [20:39:55]NVStorageSaveData ofd_packets/00074755 [20:39:55]File name is /storage/ofd_packets/00074755 [20:39:55]Write 307 bytes [20:39:55]NVStorageSaveData done [20:39:55]OFDSenderStorePacket done [20:39:55]KKMCreateOFDPacket done [20:39:55]NVStorageSaveData kkm_last_timestamp [20:39:55]File name is /storage/kkm_last_timestamp [20:39:55]Write 4 bytes [20:39:55]NVStorageSaveData done [20:39:55]ExternCall_PrintAddStr [20:39:55]wPrintStart [20:39:55]Write to MH i2c: 01 00 00 9D 94 31 [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 07 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 07 00 9D 94 00 00 00 00 00 FF 0F 46 [20:39:55]RasterBufferAndPrint [20:39:55]line Счет N : (1)190719 [20:39:55]line ИНН: 02508201610067 [20:39:55]line Контрольно-Кассовый Чек [20:39:55]line ПРОДАЖА [20:39:55]line ТРК (МРК, ГНК) : 32 [20:39:55]line Товар: 2710194240 [20:39:55]line D-ENERGY ДТ-К-2 [20:39:55]line 500.000 * 0.00 [20:39:55]line = 0.00 [20:39:55]line НДС 12% НСП 1% [20:39:55]line > о реализуемом товаре [20:39:55]line ИТОГО: 0.00 [20:39:55]line НСП 1% : 0.00 [20:39:55]line НДС 12% : 0.00 [20:39:55]line Наличными: 0.00 [20:39:55]line Безнал.: 0.00 [20:39:55]line Место: АЗС № 142 "Партнер Нефть" [20:39:55]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:39:55]line СНО: Общий режим [20:39:55]line Чек 199 24.10.2024 20:40 [20:39:55]line Смена: 510 ФФД: 1.0 [20:39:55]line ЗНМ: 0300000089 [20:39:55]line РНМ: 0000000000091691 [20:39:55]line Версия ККМ: 001 [20:39:55]line Талоны: Топливная Карта [20:39:55]line 82575 [20:39:55]line ФМ: 0000000000871795 [20:39:55]line ФД: 74755 [20:39:55]line ФПД: 92694921934350 [20:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204007&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74755&fm=92694921934350&tin=02508201610067®Number=0000000000091691&sum=0 [20:39:56]OFD Sender: Processing packet 74755 [packets to send 13, broken 12] [20:39:56]ProducePacketName [20:39:56]name=ofd_packets/00074755 [20:39:56]OFD Sender: To server: pG, [20:39:56]CommunicateWithHost lk.salyk.kg:30040 [20:39:56]ConnectInit lk.salyk.kg [20:39:56]written 0, free lines is 4095 [20:39:56]Connected sock=10 [20:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 34 56 0D 01 23 F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A7 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 03 24 01 00 35 04 06 00 54 4E 37 E4 F6 0E 96 79 61 7E 9B 24 A6 56 [20:39:56]Write to MH i2c: 01 00 00 C7 94 5B [20:39:56]Write i2c OK [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: 01 [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: 01 07 00 [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: 01 07 00 C7 94 00 00 00 00 00 B4 0C 22 [20:39:56]RasterBufferAndPrint [20:39:56]line [20:39:56]line [20:39:56]line [20:39:56]line [20:39:56]line [20:39:56]written 0, free lines is 3256 [20:39:56]MH_Cut [20:39:56]Write to MH i2c: D1 01 00 CE 94 01 34 [20:39:56]Write i2c OK [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: D1 [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: D1 01 00 [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: D1 01 00 CE 94 00 33 [20:39:56]Write to MH i2c: 01 00 00 CF 94 63 [20:39:56]Write i2c OK [20:39:56]MH_I2C_Read... [20:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BF DA 47 00 0E CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 03 24 01 00 F4 03 04 00 28 58 1A 67 B6 04 01 00 00 7E 5F F5 2C E3 CD EB 34 [20:39:56]CommunicateWithHost err = 0 [20:39:56]CheckOFDResponse [20:39:56]1017 (14) - 77093643461234 [20:39:56]1041 (16) - 0000000000871795 [20:39:56]1040 (4) - 74755 [20:39:56]1012 (4) - 24.10.2024 14:22 [20:39:56]1206 (1) - 0 [20:39:56]OFD Sender: Remove packet 74755 [20:39:56]ProducePacketName [20:39:56]name=ofd_packets/00074755 [20:39:56]NVStorageDeleteData [20:39:57]OFD Sender: No OFD packet to send [20:39:57]*** Cut start [20:39:57]*** Partial cut [20:39:57]*** CUTSNS_PIN = 1 [20:39:57]*** CUTSNS_PIN = 0 [20:39:57]*** Brake cut motor [20:39:58]Read from MH i2c: 01 [20:39:58]MH_I2C_Read... [20:39:58]*** Stop cut motor [20:39:58]*** Cut end [20:39:58]Read from MH i2c: 01 07 00 [20:39:58]MH_I2C_Read... [20:39:58]Read from MH i2c: 01 07 00 CF 94 00 00 00 00 00 FF 0F 78 [20:39:58]process_action close_receipt done [20:39:58]requested_data is exist [20:39:58]produce_requested_data [20:39:58]requested_item fm.sn is exist - process it [20:39:58]wFMCommunicate request_size=4 [20:39:58]MH_SAM_APDU [20:39:58]CAPDU: 80 11 00 00 [20:39:58]Write to MH i2c: E2 08 00 D0 94 80 11 00 00 00 00 00 00 DE [20:39:58]Write i2c OK [20:39:58]MH_I2C_Read... [20:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:58]Read from MH i2c: E2 [20:39:58]MH_I2C_Read... [20:39:58]Read from MH i2c: E2 17 00 [20:39:58]MH_I2C_Read... [20:39:58]Read from MH i2c: E2 17 00 D0 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 36 [20:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:39:58]wFMCommunicate OK [20:39:58]requested_item fd.num is exist - process it [20:39:58]SAM_PROTO_GetFieldsCounters [20:39:58]wFMCommunicate request_size=4 [20:39:58]MH_SAM_APDU [20:39:58]CAPDU: 80 13 00 00 [20:39:58]Write to MH i2c: E2 08 00 D1 94 80 13 00 00 00 00 00 00 E1 [20:39:58]Write i2c OK [20:39:58]MH_I2C_Read... [20:39:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:58]Read from MH i2c: E2 [20:39:58]MH_I2C_Read... [20:39:58]Read from MH i2c: E2 62 00 [20:39:58]MH_I2C_Read... [20:39:58]Read from MH i2c: E2 62 00 D1 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 03 24 01 00 0E 04 04 00 FE 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 84 [20:39:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 03 24 01 00 0E 04 04 00 FE 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 [20:39:58]wFMCommunicate OK [20:39:58]SAM_PROTO_GetFieldsCounters done [20:39:58]requested_item shift.num is exist - process it [20:39:58]requested_item shift.opened is exist - process it [20:39:58]req_shift_opened [20:39:58]FM_GetShiftState [20:39:58]SAM_PROTO_GetShiftState [20:39:58]wFMCommunicate request_size=4 [20:39:58]MH_SAM_APDU [20:39:58]CAPDU: 80 13 01 00 [20:39:58]Write to MH i2c: E2 08 00 D2 94 80 13 01 00 00 00 00 00 E3 [20:39:58]Write i2c OK [20:39:58]MH_I2C_Read... [20:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:58]Read from MH i2c: E2 [20:39:58]MH_I2C_Read... [20:39:58]Read from MH i2c: E2 0E 00 [20:39:58]MH_I2C_Read... [20:39:58]Read from MH i2c: E2 0E 00 D2 94 00 09 00 01 09 95 19 67 00 00 00 00 90 00 0D [20:39:58]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:39:58]wFMCommunicate OK [20:39:58]SAM_PROTO_GetShiftState done [20:39:58]FM_GetShiftState done [20:39:58]req_shift_opened done [20:39:58]requested_item shift.open_date is exist - process it [20:39:58]req_shift_open_date [20:39:58]req_shift_open_date done [20:39:58]produce_requested_data done [20:39:58]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74755,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:39:58]process_action_free close_receipt [20:39:58]json_value_free [20:39:58]json_value_free done [20:39:58]process_json_proto returns [20:39:58]Send response to host [20:39:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74755,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:39:58]free response buf [20:39:58]execute_script done [20:39:58]execute_script returns [20:39:58]free content buf [20:39:58]Sock 8.Close socket [20:39:58]Sock 8.Thread stoped [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:53]accept exits with 9 [20:40:53]New connection [20:40:53]New thread 3066805604 created [20:40:53]Thread 3066662244 joined [20:40:53]Waiting for new connection... [20:40:53] Sock 9.Parse request [20:40:53]Sock 9.Check first char [20:40:53]Sock 9.First char is OK [20:40:53]request: POST /json_proto HTTP/1.0 [20:40:53]Method: POST [20:40:53]URL: /json_proto [20:40:53]Method is POST - this is cgi request [20:40:53]url: /json_proto [20:40:53]query_string will be loaded in cgi processing [20:40:53]execute_cgi json_proto POST (null) [20:40:53]execute_cgi path=json_proto method=POST [20:40:53]POST find Content-Length [20:40:53]Host: 172.17.39.131:8080 [20:40:53]Content-Length: 677 [20:40:53]Content-Type: application/json [20:40:53] [20:40:53]POST finish read [20:40:53]Found Content-Length = 677 [20:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:53]execute_script... [20:40: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)190726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:53]POST & json_proto [20:40:53]process_json_proto [20:40:53]json parsed OK: [20:40:53]protocol is kg_v1.0 [20:40:53]action value=close_receipt [20:40:53]process_action close_receipt [20:40:53]cmd_close_receipt [20:40:53]MH_GetDate [20:40:53]Write to MH i2c: F0 00 00 D3 94 56 [20:40:53]Write i2c OK [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: F0 [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: F0 09 00 [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: F0 09 00 D3 94 00 E2 B0 1A 67 86 57 24 65 D8 [20:40:53]GetLastDocTimeStamp 1729802407 [20:40:53]current date 1729802466 [20:40:53]FM_GetShiftState [20:40:53]SAM_PROTO_GetShiftState [20:40:53]wFMCommunicate request_size=4 [20:40:53]MH_SAM_APDU [20:40:53]CAPDU: 80 13 01 00 [20:40:53]Write to MH i2c: E2 08 00 D4 94 80 13 01 00 00 00 00 00 E5 [20:40:53]Write i2c OK [20:40:53]MH_I2C_Read... [20:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:53]Read from MH i2c: E2 [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: E2 0E 00 [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: E2 0E 00 D4 94 00 09 00 01 09 95 19 67 00 00 00 00 90 00 0F [20:40:53]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:40:53]wFMCommunicate OK [20:40:53]SAM_PROTO_GetShiftState done [20:40:53]FM_GetShiftState done [20:40:53]opened in 1729729801 [20:40:53]opened+sec_in_day 1729816201 [20:40:53]quantity*price = 30038 [20:40:53]sum+1 = 30039 [20:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 200 24.10.2024 20:41 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74756 ФПД: 78435289509773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204106&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74756&fm=78435289509773&tin=02508201610067®Number=0000000000091691&sum=30000 [20:40:54]StoreToDocumentArchive [20:40:54]shift 510 fd 74756 [20:40:54]save to /storage/0510/doc_00074756 [20:40:54]save last doc name /storage/0510/doc_00074756 to /storage/kkm_last_doc_name [20:40:54]save OK [20:40:54]Clear old archive folders... [20:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:54]tlvbuf is 0087C4E0 [20:40:54]SAM_PROTO_ClearQueue [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 09 00 00 [20:40:54]Write to MH i2c: E2 08 00 E1 94 80 09 00 00 00 00 00 00 E7 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 E1 94 00 90 00 E9 [20:40:54]RAPDU: 90 00 [20:40:54]wFMCommunicate OK [20:40:54]SAM_PROTO_ClearQueue done [20:40:54]KKMCreateOFDPacket [20:40:54]OFDProtocolAddRootSTLVToBuf [20:40:54]FM_MakeSignedData [20:40:54]FM_MakeSignedData [20:40:54]SAM_PROTO_SignData [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 0D 01 02 [20:40:54]Write to MH i2c: E2 08 00 E2 94 80 0D 01 02 00 00 00 00 EF [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 E2 94 00 90 00 EA [20:40:54]RAPDU: 90 00 [20:40:54]wFMCommunicate OK [20:40:54]wFMCommunicate request_size=255 [20:40:54]MH_SAM_APDU [20:40: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 04 24 01 00 35 04 06 00 47 [20:40:54]Write to MH i2c: E2 02 01 E3 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 04 24 01 00 35 04 06 00 47 00 00 C2 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 E3 94 00 90 00 EB [20:40:54]RAPDU: 90 00 [20:40:54]wFMCommunicate OK [20:40:54]wFMCommunicate request_size=10 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 0D 02 02 05 56 23 91 AF 8D [20:40:54]Write to MH i2c: E2 0D 00 E4 94 80 0D 02 02 05 00 56 23 91 AF 8D 00 00 42 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 03 00 E4 94 00 90 00 EC [20:40:54]RAPDU: 90 00 [20:40:54]wFMCommunicate OK [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 0D 03 02 [20:40:54]Write to MH i2c: E2 08 00 E5 94 80 0D 03 02 00 00 00 00 F4 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 0B 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 0B 00 E5 94 00 CF 1F D6 49 78 8F AB 67 90 00 1B [20:40:54]RAPDU: CF 1F D6 49 78 8F AB 67 90 00 [20:40:54]wFMCommunicate OK [20:40:54]SAM_PROTO_SignData done [20:40:54]FM_MakeSignedData done [20:40:54]CreateOFDProtocolMessage [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 11 00 00 [20:40:54]Write to MH i2c: E2 08 00 E6 94 80 11 00 00 00 00 00 00 F4 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 17 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 17 00 E6 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4C [20:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:40:54]wFMCommunicate OK [20:40:54]CreateOFDProtocolMessage done [20:40:54]OFDSenderStorePacket 74756 [20:40:54]StoreOFDPacket docnum=74756 [20:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4C 38 07 01 E2 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 04 24 01 00 35 04 06 00 47 56 23 91 AF 8D CF 1F D6 49 78 8F AB 67 [20:40:54]CheckFolder [20:40:54]dirname=/storage/ofd_packets [20:40:54]CheckFolder done [20:40:54]ProducePacketName [20:40:54]name=ofd_packets/00074756 [20:40:54]NVStorageSaveData ofd_packets/00074756 [20:40:54]File name is /storage/ofd_packets/00074756 [20:40:54]Write 301 bytes [20:40:54]NVStorageSaveData done [20:40:54]OFDSenderStorePacket done [20:40:54]KKMCreateOFDPacket done [20:40:54]NVStorageSaveData kkm_last_timestamp [20:40:54]File name is /storage/kkm_last_timestamp [20:40:54]Write 4 bytes [20:40:54]NVStorageSaveData done [20:40:54]ExternCall_PrintAddStr [20:40:54]wPrintStart [20:40:54]Write to MH i2c: 01 00 00 E7 94 7B [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: 01 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: 01 07 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: 01 07 00 E7 94 00 00 00 00 00 FF 0F 90 [20:40:54]RasterBufferAndPrint [20:40:54]line Счет N : (1)190726 [20:40:54]line ИНН: 02508201610067 [20:40:54]line Контрольно-Кассовый Чек [20:40:54]line ПРОДАЖА [20:40:54]line ТРК (МРК, ГНК) : 21 [20:40:54]line Товар: 2710124130 [20:40:54]line Аи-92-К-5 [20:40:54]line 4.490 * 66.90 [20:40:54]line = 300.38 [20:40:54]line НДС 12% НСП 1% [20:40:54]line > о реализуемом товаре [20:40:54]line ОКРУГЛЕНИЕ: -0.38 [20:40:54]line ИТОГО: 300.00 [20:40:54]line Внесено: 300.00 [20:40:54]line СДАЧА: 0.00 [20:40:54]line НСП 1% : 2.66 [20:40:54]line НДС 12% : 31.90 [20:40:54]line Наличными: 300.00 [20:40:54]line Безнал.: 0.00 [20:40:54]line Место: АЗС № 142 "Партнер Нефть" [20:40:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:40:54]line СНО: Общий режим [20:40:54]line Чек 200 24.10.2024 20:41 [20:40:54]line Смена: 510 ФФД: 1.0 [20:40:54]line ЗНМ: 0300000089 [20:40:54]line РНМ: 0000000000091691 [20:40:54]line Версия ККМ: 001 [20:40:54]line ФМ: 0000000000871795 [20:40:54]line ФД: 74756 [20:40:54]line ФПД: 78435289509773 [20:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204106&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74756&fm=78435289509773&tin=02508201610067®Number=0000000000091691&sum=30000 [20:40:55]written 0, free lines is 4095 [20:40:55]OFD Sender: Processing packet 74756 [packets to send 13, broken 12] [20:40:55]ProducePacketName [20:40:55]name=ofd_packets/00074756 [20:40:55]OFD Sender: To server: pG, [20:40:55]CommunicateWithHost lk.salyk.kg:30040 [20:40:55]ConnectInit lk.salyk.kg [20:40:55]Connected sock=10 [20:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4C 38 07 01 E2 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 B0 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 04 24 01 00 35 04 06 00 47 56 23 91 AF 8D CF 1F D6 49 78 8F AB 67 [20:40:55]Write to MH i2c: 01 00 00 12 95 A7 [20:40:55]Write i2c OK [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: 01 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: 01 07 00 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: 01 07 00 12 95 00 00 00 00 00 A5 0C 5F [20:40:55]RasterBufferAndPrint [20:40:55]line [20:40:55]line [20:40:55]line [20:40:55]line [20:40:55]line [20:40:55]written 0, free lines is 3242 [20:40:55]MH_Cut [20:40:55]Write to MH i2c: D1 01 00 19 95 01 80 [20:40:55]Write i2c OK [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: D1 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: D1 01 00 [20:40:55]MH_I2C_Read... [20:40:55]Read from MH i2c: D1 01 00 19 95 00 7F [20:40:55]Write to MH i2c: 01 00 00 1A 95 AF [20:40:55]Write i2c OK [20:40:55]MH_I2C_Read... [20:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 95 1B 47 00 F8 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 04 24 01 00 F4 03 04 00 63 58 1A 67 B6 04 01 00 00 F4 96 4B B1 44 41 04 2B [20:40:55]CommunicateWithHost err = 0 [20:40:55]CheckOFDResponse [20:40:55]1017 (14) - 77093643461234 [20:40:55]1041 (16) - 0000000000871795 [20:40:55]1040 (4) - 74756 [20:40:55]1012 (4) - 24.10.2024 14:23 [20:40:55]1206 (1) - 0 [20:40:55]OFD Sender: Remove packet 74756 [20:40:55]ProducePacketName [20:40:55]name=ofd_packets/00074756 [20:40:55]NVStorageDeleteData [20:40:56]OFD Sender: No OFD packet to send [20:40:56]*** Cut start [20:40:56]*** Partial cut [20:40:56]*** CUTSNS_PIN = 1 [20:40:56]*** CUTSNS_PIN = 0 [20:40:56]*** Brake cut motor [20:40:57]Read from MH i2c: 01 [20:40:57]MH_I2C_Read... [20:40:57]*** Stop cut motor [20:40:57]*** Cut end [20:40:57]Read from MH i2c: 01 07 00 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: 01 07 00 1A 95 00 00 00 00 00 FF 0F C4 [20:40:57]process_action close_receipt done [20:40:57]requested_data is exist [20:40:57]produce_requested_data [20:40:57]requested_item fm.sn is exist - process it [20:40:57]wFMCommunicate request_size=4 [20:40:57]MH_SAM_APDU [20:40:57]CAPDU: 80 11 00 00 [20:40:57]Write to MH i2c: E2 08 00 1B 95 80 11 00 00 00 00 00 00 2A [20:40:57]Write i2c OK [20:40:57]MH_I2C_Read... [20:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:57]Read from MH i2c: E2 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: E2 17 00 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: E2 17 00 1B 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 82 [20:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:40:57]wFMCommunicate OK [20:40:57]requested_item fd.num is exist - process it [20:40:57]SAM_PROTO_GetFieldsCounters [20:40:57]wFMCommunicate request_size=4 [20:40:57]MH_SAM_APDU [20:40:57]CAPDU: 80 13 00 00 [20:40:57]Write to MH i2c: E2 08 00 1C 95 80 13 00 00 00 00 00 00 2D [20:40:57]Write i2c OK [20:40:57]MH_I2C_Read... [20:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:57]Read from MH i2c: E2 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: E2 62 00 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: E2 62 00 1C 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 04 24 01 00 0E 04 04 00 FE 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 D4 [20:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 04 24 01 00 0E 04 04 00 FE 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 [20:40:57]wFMCommunicate OK [20:40:57]SAM_PROTO_GetFieldsCounters done [20:40:57]requested_item shift.num is exist - process it [20:40:57]requested_item shift.opened is exist - process it [20:40:57]req_shift_opened [20:40:57]FM_GetShiftState [20:40:57]SAM_PROTO_GetShiftState [20:40:57]wFMCommunicate request_size=4 [20:40:57]MH_SAM_APDU [20:40:57]CAPDU: 80 13 01 00 [20:40:57]Write to MH i2c: E2 08 00 1D 95 80 13 01 00 00 00 00 00 2F [20:40:57]Write i2c OK [20:40:57]MH_I2C_Read... [20:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:57]Read from MH i2c: E2 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: E2 0E 00 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: E2 0E 00 1D 95 00 09 00 01 09 95 19 67 00 00 00 00 90 00 59 [20:40:57]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:40:57]wFMCommunicate OK [20:40:57]SAM_PROTO_GetShiftState done [20:40:57]FM_GetShiftState done [20:40:57]req_shift_opened done [20:40:57]requested_item shift.open_date is exist - process it [20:40:57]req_shift_open_date [20:40:57]req_shift_open_date done [20:40:57]produce_requested_data done [20:40:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74756,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:40:57]process_action_free close_receipt [20:40:57]json_value_free [20:40:57]json_value_free done [20:40:57]process_json_proto returns [20:40:57]Send response to host [20:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74756,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:40:57]free response buf [20:40:57]execute_script done [20:40:57]execute_script returns [20:40:57]free content buf [20:40:57]Sock 9.Close socket [20:40:57]Sock 9.Thread stoped [20:40:59]int [20:40:59]Write to MH i2c: 01 00 00 1E 95 B3 [20:40:59]*** FLAG_PRN_KEY set [20:40:59]Write i2c OK [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: 01 [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: 01 07 00 [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: 01 07 00 1E 95 00 08 00 00 00 FF 0F D0 [20:40:59]state=0 [20:40:59]Key pressed [20:40:59]Feed [20:40:59]Write to MH i2c: D8 00 00 1F 95 8B [20:40:59]Write i2c OK [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: D8 [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: D8 01 00 [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: D8 01 00 1F 95 00 8C [20:40:59]int [20:40:59]Write to MH i2c: 01 00 00 20 95 B5 [20:40:59]Write i2c OK [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: 01 [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: 01 07 00 [20:40:59]MH_I2C_Read... [20:40:59]Read from MH i2c: 01 07 00 20 95 00 48 00 00 00 3C 00 40 [20:40:59]state=2 [20:40:59]Key pressed [20:41:00]int [20:41:00]Write to MH i2c: 01 00 00 21 95 B6 [20:41:00]*** FLAG_PRN_KEY reset [20:41:00]Write i2c OK [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: 01 [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: 01 07 00 [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: 01 07 00 21 95 00 00 00 00 00 FD 0F C9 [20:41:00]state=2 [20:41:00]Stop feed [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:10]accept exits with 8 [20:52:10]New connection [20:52:10]New thread 3066662244 created [20:52:10]Thread 3066805604 joined [20:52:10]Waiting for new connection... [20:52:10] Sock 8.Parse request [20:52:10]Sock 8.Check first char [20:52:10]Sock 8.First char is OK [20:52:10]request: POST /json_proto HTTP/1.0 [20:52:10]Method: POST [20:52:10]URL: /json_proto [20:52:10]Method is POST - this is cgi request [20:52:10]url: /json_proto [20:52:10]query_string will be loaded in cgi processing [20:52:10]execute_cgi json_proto POST (null) [20:52:10]execute_cgi path=json_proto method=POST [20:52:10]POST find Content-Length [20:52:10]Host: 172.17.39.131:8080 [20:52:10]Content-Length: 677 [20:52:10]Content-Type: application/json [20:52:10] [20:52:10]POST finish read [20:52:10]Found Content-Length = 677 [20:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:10]execute_script... [20: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)190728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:10]POST & json_proto [20:52:10]process_json_proto [20:52:10]json parsed OK: [20:52:10]protocol is kg_v1.0 [20:52:10]action value=close_receipt [20:52:10]process_action close_receipt [20:52:10]cmd_close_receipt [20:52:10]MH_GetDate [20:52:10]Write to MH i2c: F0 00 00 22 95 A6 [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: F0 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: F0 09 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: F0 09 00 22 95 00 87 B3 1A 67 86 57 24 65 D0 [20:52:10]GetLastDocTimeStamp 1729802466 [20:52:10]current date 1729803143 [20:52:10]FM_GetShiftState [20:52:10]SAM_PROTO_GetShiftState [20:52:10]wFMCommunicate request_size=4 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 13 01 00 [20:52:10]Write to MH i2c: E2 08 00 23 95 80 13 01 00 00 00 00 00 35 [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:10]Read from MH i2c: E2 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 0E 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 0E 00 23 95 00 09 00 01 09 95 19 67 00 00 00 00 90 00 5F [20:52:10]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:52:10]wFMCommunicate OK [20:52:10]SAM_PROTO_GetShiftState done [20:52:10]FM_GetShiftState done [20:52:10]opened in 1729729801 [20:52:10]opened+sec_in_day 1729816201 [20:52:10]quantity*price = 50041 [20:52:10]sum+1 = 50042 [20:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 201 24.10.2024 20:52 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74757 ФПД: 29528058167648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205223&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74757&fm=29528058167648&tin=02508201610067®Number=0000000000091691&sum=50000 [20:52:11]StoreToDocumentArchive [20:52:11]shift 510 fd 74757 [20:52:11]save to /storage/0510/doc_00074757 [20:52:11]save last doc name /storage/0510/doc_00074757 to /storage/kkm_last_doc_name [20:52:11]save OK [20:52:11]Clear old archive folders... [20:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:11]tlvbuf is 00A9E070 [20:52:11]SAM_PROTO_ClearQueue [20:52:11]wFMCommunicate request_size=4 [20:52:11]MH_SAM_APDU [20:52:11]CAPDU: 80 09 00 00 [20:52:11]Write to MH i2c: E2 08 00 30 95 80 09 00 00 00 00 00 00 37 [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:11]OFD Sender: No OFD packet to send [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 03 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 03 00 30 95 00 90 00 39 [20:52:11]RAPDU: 90 00 [20:52:11]wFMCommunicate OK [20:52:11]SAM_PROTO_ClearQueue done [20:52:11]KKMCreateOFDPacket [20:52:11]OFDProtocolAddRootSTLVToBuf [20:52:11]FM_MakeSignedData [20:52:11]FM_MakeSignedData [20:52:11]SAM_PROTO_SignData [20:52:11]wFMCommunicate request_size=4 [20:52:11]MH_SAM_APDU [20:52:11]CAPDU: 80 0D 01 02 [20:52:11]Write to MH i2c: E2 08 00 31 95 80 0D 01 02 00 00 00 00 3F [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 03 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 03 00 31 95 00 90 00 3A [20:52:11]RAPDU: 90 00 [20:52:11]wFMCommunicate OK [20:52:11]wFMCommunicate request_size=255 [20:52:11]MH_SAM_APDU [20:52: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 87 B3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 05 24 01 00 35 04 06 00 1A [20:52:11]Write to MH i2c: E2 02 01 32 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 87 B3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 05 24 01 00 35 04 06 00 1A 00 00 9B [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:12]Read from MH i2c: E2 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 03 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 03 00 32 95 00 90 00 3B [20:52:12]RAPDU: 90 00 [20:52:12]wFMCommunicate OK [20:52:12]wFMCommunicate request_size=10 [20:52:12]MH_SAM_APDU [20:52:12]CAPDU: 80 0D 02 02 05 DB 09 6B 01 60 [20:52:12]Write to MH i2c: E2 0D 00 33 95 80 0D 02 02 05 00 DB 09 6B 01 60 00 00 FC [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:12]Read from MH i2c: E2 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 03 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 03 00 33 95 00 90 00 3C [20:52:12]RAPDU: 90 00 [20:52:12]wFMCommunicate OK [20:52:12]wFMCommunicate request_size=4 [20:52:12]MH_SAM_APDU [20:52:12]CAPDU: 80 0D 03 02 [20:52:12]Write to MH i2c: E2 08 00 34 95 80 0D 03 02 00 00 00 00 44 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:12]Read from MH i2c: E2 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 0B 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 0B 00 34 95 00 DF 66 07 0F 16 4B 8B E3 90 00 6F [20:52:12]RAPDU: DF 66 07 0F 16 4B 8B E3 90 00 [20:52:12]wFMCommunicate OK [20:52:12]SAM_PROTO_SignData done [20:52:12]FM_MakeSignedData done [20:52:12]CreateOFDProtocolMessage [20:52:12]wFMCommunicate request_size=4 [20:52:12]MH_SAM_APDU [20:52:12]CAPDU: 80 11 00 00 [20:52:12]Write to MH i2c: E2 08 00 35 95 80 11 00 00 00 00 00 00 44 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:12]Read from MH i2c: E2 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 17 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 17 00 35 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9C [20:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:52:12]wFMCommunicate OK [20:52:12]CreateOFDProtocolMessage done [20:52:12]OFDSenderStorePacket 74757 [20:52:12]StoreOFDPacket docnum=74757 [20:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 74 CC 07 01 86 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 87 B3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 05 24 01 00 35 04 06 00 1A DB 09 6B 01 60 DF 66 07 0F 16 4B 8B E3 [20:52:12]CheckFolder [20:52:12]dirname=/storage/ofd_packets [20:52:12]CheckFolder done [20:52:12]ProducePacketName [20:52:12]name=ofd_packets/00074757 [20:52:12]NVStorageSaveData ofd_packets/00074757 [20:52:12]File name is /storage/ofd_packets/00074757 [20:52:12]Write 301 bytes [20:52:12]NVStorageSaveData done [20:52:12]OFDSenderStorePacket done [20:52:12]KKMCreateOFDPacket done [20:52:12]NVStorageSaveData kkm_last_timestamp [20:52:12]File name is /storage/kkm_last_timestamp [20:52:12]Write 4 bytes [20:52:12]NVStorageSaveData done [20:52:12]ExternCall_PrintAddStr [20:52:12]wPrintStart [20:52:12]Write to MH i2c: 01 00 00 36 95 CB [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 36 95 00 00 00 00 00 FF 0F E0 [20:52:12]RasterBufferAndPrint [20:52:12]line Счет N : (1)190728 [20:52:12]line ИНН: 02508201610067 [20:52:12]line Контрольно-Кассовый Чек [20:52:12]line ПРОДАЖА [20:52:12]line ТРК (МРК, ГНК) : 21 [20:52:12]line Товар: 2710124130 [20:52:12]line Аи-92-К-5 [20:52:12]line 7.480 * 66.90 [20:52:12]line = 500.41 [20:52:12]line НДС 12% НСП 1% [20:52:12]line > о реализуемом товаре [20:52:12]line ОКРУГЛЕНИЕ: -0.41 [20:52:12]line ИТОГО: 500.00 [20:52:12]line Внесено: 500.00 [20:52:12]line СДАЧА: 0.00 [20:52:12]line НСП 1% : 4.43 [20:52:12]line НДС 12% : 53.14 [20:52:12]line Наличными: 500.00 [20:52:12]line Безнал.: 0.00 [20:52:12]line Место: АЗС № 142 "Партнер Нефть" [20:52:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:52:12]line СНО: Общий режим [20:52:12]line Чек 201 24.10.2024 20:52 [20:52:12]line Смена: 510 ФФД: 1.0 [20:52:12]line ЗНМ: 0300000089 [20:52:12]line РНМ: 0000000000091691 [20:52:12]line Версия ККМ: 001 [20:52:12]line ФМ: 0000000000871795 [20:52:12]line ФД: 74757 [20:52:12]line ФПД: 29528058167648 [20:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205223&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74757&fm=29528058167648&tin=02508201610067®Number=0000000000091691&sum=50000 [20:52:12]OFD Sender: Processing packet 74757 [packets to send 13, broken 12] [20:52:12]ProducePacketName [20:52:12]name=ofd_packets/00074757 [20:52:12]OFD Sender: To server: pG, [20:52:12]CommunicateWithHost lk.salyk.kg:30040 [20:52:12]ConnectInit lk.salyk.kg [20:52:12]written 0, free lines is 4095 [20:52:12]Connected sock=9 [20: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 31 37 39 35 0F 01 00 00 74 CC 07 01 86 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 87 B3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 05 24 01 00 35 04 06 00 1A DB 09 6B 01 60 DF 66 07 0F 16 4B 8B E3 [20:52:12]Write to MH i2c: 01 00 00 61 95 F6 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 61 95 00 00 00 00 00 A0 0C A9 [20:52:12]RasterBufferAndPrint [20:52:12]line [20:52:12]line [20:52:12]line [20:52:12]line [20:52:12]line [20:52:12]written 0, free lines is 3240 [20:52:13]MH_Cut [20:52:13]Write to MH i2c: D1 01 00 68 95 01 CF [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: D1 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: D1 01 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: D1 01 00 68 95 00 CE [20:52:13]Write to MH i2c: 01 00 00 69 95 FE [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8A 86 47 00 30 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 31 37 39 35 10 04 04 00 05 24 01 00 F4 03 04 00 08 5B 1A 67 B6 04 01 00 00 B1 EE 7C 79 26 03 ED 4B [20:52:13]CommunicateWithHost err = 0 [20:52:13]CheckOFDResponse [20:52:13]1017 (14) - 77093643461234 [20:52:13]1041 (16) - 0000000000871795 [20:52:13]1040 (4) - 74757 [20:52:13]1012 (4) - 24.10.2024 14:34 [20:52:13]1206 (1) - 0 [20:52:13]OFD Sender: Remove packet 74757 [20:52:13]ProducePacketName [20:52:13]name=ofd_packets/00074757 [20:52:13]NVStorageDeleteData [20:52:13]OFD Sender: No OFD packet to send [20:52:13]*** Cut start [20:52:13]*** Partial cut [20:52:13]*** CUTSNS_PIN = 1 [20:52:13]*** CUTSNS_PIN = 0 [20:52:14]*** Brake cut motor [20:52:14]Read from MH i2c: 01 [20:52:14]MH_I2C_Read... [20:52:14]*** Stop cut motor [20:52:14]*** Cut end [20:52:14]Read from MH i2c: 01 07 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: 01 07 00 69 95 00 00 00 00 00 FF 0F 13 [20:52:14]process_action close_receipt done [20:52:14]requested_data is exist [20:52:14]produce_requested_data [20:52:14]requested_item fm.sn is exist - process it [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 11 00 00 [20:52:14]Write to MH i2c: E2 08 00 6A 95 80 11 00 00 00 00 00 00 79 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 17 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 17 00 6A 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D1 [20:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:52:14]wFMCommunicate OK [20:52:14]requested_item fd.num is exist - process it [20:52:14]SAM_PROTO_GetFieldsCounters [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 13 00 00 [20:52:14]Write to MH i2c: E2 08 00 6B 95 80 13 00 00 00 00 00 00 7C [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 62 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 62 00 6B 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 05 24 01 00 0E 04 04 00 FE 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 27 [20: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 05 24 01 00 0E 04 04 00 FE 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 [20:52:14]wFMCommunicate OK [20:52:14]SAM_PROTO_GetFieldsCounters done [20:52:14]requested_item shift.num is exist - process it [20:52:14]requested_item shift.opened is exist - process it [20:52:14]req_shift_opened [20:52:14]FM_GetShiftState [20:52:14]SAM_PROTO_GetShiftState [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 13 01 00 [20:52:14]Write to MH i2c: E2 08 00 6C 95 80 13 01 00 00 00 00 00 7E [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 0E 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 0E 00 6C 95 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A8 [20:52:14]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [20:52:14]wFMCommunicate OK [20:52:14]SAM_PROTO_GetShiftState done [20:52:14]FM_GetShiftState done [20:52:14]req_shift_opened done [20:52:14]requested_item shift.open_date is exist - process it [20:52:14]req_shift_open_date [20:52:14]req_shift_open_date done [20:52:14]produce_requested_data done [20:52:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74757,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [20:52:14]process_action_free close_receipt [20:52:14]json_value_free [20:52:14]json_value_free done [20:52:14]process_json_proto returns [20:52:14]Send response to host [20:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74757,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [20:52:14]free response buf [20:52:14]execute_script done [20:52:14]execute_script returns [20:52:14]free content buf [20:52:14]Sock 8.Close socket [20:52:14]Sock 8.Thread stoped [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:26]accept exits with 10 [21:04:26]New connection [21:04:26]New thread 3066805604 created [21:04:26]Thread 3066662244 joined [21:04:26]Waiting for new connection... [21:04:26] Sock 10.Parse request [21:04:26]Sock 10.Check first char [21:04:26]Sock 10.First char is OK [21:04:26]request: POST /json_proto HTTP/1.0 [21:04:26]Method: POST [21:04:26]URL: /json_proto [21:04:26]Method is POST - this is cgi request [21:04:26]url: /json_proto [21:04:26]query_string will be loaded in cgi processing [21:04:26]execute_cgi json_proto POST (null) [21:04:26]execute_cgi path=json_proto method=POST [21:04:26]POST find Content-Length [21:04:26]Host: 172.17.39.131:8080 [21:04:26]Content-Length: 677 [21:04:26]Content-Type: application/json [21:04:26] [21:04:26]POST finish read [21:04:26]Found Content-Length = 677 [21:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:26]execute_script... [21:04: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)190729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:26]POST & json_proto [21:04:26]process_json_proto [21:04:26]json parsed OK: [21:04:26]protocol is kg_v1.0 [21:04:26]action value=close_receipt [21:04:26]process_action close_receipt [21:04:26]cmd_close_receipt [21:04:26]MH_GetDate [21:04:26]Write to MH i2c: F0 00 00 6D 95 F1 [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: F0 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: F0 09 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: F0 09 00 6D 95 00 67 B6 1A 67 86 57 24 65 FE [21:04:26]GetLastDocTimeStamp 1729803143 [21:04:26]current date 1729803879 [21:04:26]FM_GetShiftState [21:04:26]SAM_PROTO_GetShiftState [21:04:26]wFMCommunicate request_size=4 [21:04:26]MH_SAM_APDU [21:04:26]CAPDU: 80 13 01 00 [21:04:26]Write to MH i2c: E2 08 00 6E 95 80 13 01 00 00 00 00 00 80 [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:26]Read from MH i2c: E2 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 0E 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 0E 00 6E 95 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AA [21:04:26]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:04:26]wFMCommunicate OK [21:04:26]SAM_PROTO_GetShiftState done [21:04:26]FM_GetShiftState done [21:04:26]opened in 1729729801 [21:04:26]opened+sec_in_day 1729816201 [21:04:26]quantity*price = 20003 [21:04:26]sum+1 = 20004 [21:04:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 202 24.10.2024 21:04 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74758 ФПД: 66752695877250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210439&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74758&fm=66752695877250&tin=02508201610067®Number=0000000000091691&sum=20000 [21:04:27]StoreToDocumentArchive [21:04:27]shift 510 fd 74758 [21:04:27]save to /storage/0510/doc_00074758 [21:04:27]save last doc name /storage/0510/doc_00074758 to /storage/kkm_last_doc_name [21:04:27]save OK [21:04:27]Clear old archive folders... [21:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:27]tlvbuf is 00A9DB30 [21:04:27]SAM_PROTO_ClearQueue [21:04:27]wFMCommunicate request_size=4 [21:04:27]MH_SAM_APDU [21:04:27]CAPDU: 80 09 00 00 [21:04:27]Write to MH i2c: E2 08 00 7B 95 80 09 00 00 00 00 00 00 82 [21:04:27]Write i2c OK [21:04:27]MH_I2C_Read... [21:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:27]Read from MH i2c: E2 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 03 00 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 03 00 7B 95 00 90 00 84 [21:04:27]RAPDU: 90 00 [21:04:27]wFMCommunicate OK [21:04:27]SAM_PROTO_ClearQueue done [21:04:27]KKMCreateOFDPacket [21:04:27]OFDProtocolAddRootSTLVToBuf [21:04:27]FM_MakeSignedData [21:04:27]FM_MakeSignedData [21:04:27]SAM_PROTO_SignData [21:04:27]wFMCommunicate request_size=4 [21:04:27]MH_SAM_APDU [21:04:27]CAPDU: 80 0D 01 02 [21:04:27]Write to MH i2c: E2 08 00 7C 95 80 0D 01 02 00 00 00 00 8A [21:04:27]Write i2c OK [21:04:27]MH_I2C_Read... [21:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:27]Read from MH i2c: E2 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 03 00 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 03 00 7C 95 00 90 00 85 [21:04:27]RAPDU: 90 00 [21:04:27]wFMCommunicate OK [21:04:27]wFMCommunicate request_size=255 [21:04:27]MH_SAM_APDU [21:04: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 67 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 06 24 01 00 35 04 06 00 3C [21:04:27]Write to MH i2c: E2 02 01 7D 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 67 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 06 24 01 00 35 04 06 00 3C 00 00 AF [21:04:27]Write i2c OK [21:04:27]MH_I2C_Read... [21:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:28]Read from MH i2c: E2 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 03 00 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 03 00 7D 95 00 90 00 86 [21:04:28]RAPDU: 90 00 [21:04:28]wFMCommunicate OK [21:04:28]wFMCommunicate request_size=10 [21:04:28]MH_SAM_APDU [21:04:28]CAPDU: 80 0D 02 02 05 B6 12 B9 BE 82 [21:04:28]Write to MH i2c: E2 0D 00 7E 95 80 0D 02 02 05 00 B6 12 B9 BE 82 00 00 58 [21:04:28]Write i2c OK [21:04:28]MH_I2C_Read... [21:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:28]Read from MH i2c: E2 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 03 00 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 03 00 7E 95 00 90 00 87 [21:04:28]RAPDU: 90 00 [21:04:28]wFMCommunicate OK [21:04:28]wFMCommunicate request_size=4 [21:04:28]MH_SAM_APDU [21:04:28]CAPDU: 80 0D 03 02 [21:04:28]Write to MH i2c: E2 08 00 7F 95 80 0D 03 02 00 00 00 00 8F [21:04:28]Write i2c OK [21:04:28]MH_I2C_Read... [21:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:28]Read from MH i2c: E2 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 0B 00 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 0B 00 7F 95 00 DB 2F 75 CD 9D E9 E1 80 90 00 C3 [21:04:28]RAPDU: DB 2F 75 CD 9D E9 E1 80 90 00 [21:04:28]wFMCommunicate OK [21:04:28]SAM_PROTO_SignData done [21:04:28]FM_MakeSignedData done [21:04:28]CreateOFDProtocolMessage [21:04:28]wFMCommunicate request_size=4 [21:04:28]MH_SAM_APDU [21:04:28]CAPDU: 80 11 00 00 [21:04:28]Write to MH i2c: E2 08 00 80 95 80 11 00 00 00 00 00 00 8F [21:04:28]Write i2c OK [21:04:28]MH_I2C_Read... [21:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:28]Read from MH i2c: E2 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 17 00 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: E2 17 00 80 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E7 [21:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:04:28]wFMCommunicate OK [21:04:28]CreateOFDProtocolMessage done [21:04:28]OFDSenderStorePacket 74758 [21:04:28]StoreOFDPacket docnum=74758 [21:04:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FD CD 07 01 F3 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 67 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 06 24 01 00 35 04 06 00 3C B6 12 B9 BE 82 DB 2F 75 CD 9D E9 E1 80 [21:04:28]CheckFolder [21:04:28]dirname=/storage/ofd_packets [21:04:28]CheckFolder done [21:04:28]ProducePacketName [21:04:28]name=ofd_packets/00074758 [21:04:28]NVStorageSaveData ofd_packets/00074758 [21:04:28]File name is /storage/ofd_packets/00074758 [21:04:28]Write 301 bytes [21:04:28]NVStorageSaveData done [21:04:28]OFDSenderStorePacket done [21:04:28]KKMCreateOFDPacket done [21:04:28]NVStorageSaveData kkm_last_timestamp [21:04:28]File name is /storage/kkm_last_timestamp [21:04:28]Write 4 bytes [21:04:28]NVStorageSaveData done [21:04:28]ExternCall_PrintAddStr [21:04:28]wPrintStart [21:04:28]Write to MH i2c: 01 00 00 81 95 16 [21:04:28]Write i2c OK [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: 01 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: 01 07 00 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: 01 07 00 81 95 00 00 00 00 00 FF 0F 2B [21:04:28]RasterBufferAndPrint [21:04:28]line Счет N : (1)190729 [21:04:28]line ИНН: 02508201610067 [21:04:28]line Контрольно-Кассовый Чек [21:04:28]line ПРОДАЖА [21:04:28]line ТРК (МРК, ГНК) : 21 [21:04:28]line Товар: 2710124130 [21:04:28]line Аи-92-К-5 [21:04:28]line 2.990 * 66.90 [21:04:28]line = 200.03 [21:04:28]line НДС 12% НСП 1% [21:04:28]line > о реализуемом товаре [21:04:28]line ОКРУГЛЕНИЕ: -0.03 [21:04:28]line ИТОГО: 200.00 [21:04:28]line Внесено: 200.00 [21:04:28]line СДАЧА: 0.00 [21:04:28]line НСП 1% : 1.77 [21:04:28]line НДС 12% : 21.24 [21:04:28]line Наличными: 200.00 [21:04:28]line Безнал.: 0.00 [21:04:28]line Место: АЗС № 142 "Партнер Нефть" [21:04:28]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:04:28]line СНО: Общий режим [21:04:28]line Чек 202 24.10.2024 21:04 [21:04:28]line Смена: 510 ФФД: 1.0 [21:04:28]line ЗНМ: 0300000089 [21:04:28]line РНМ: 0000000000091691 [21:04:28]line Версия ККМ: 001 [21:04:28]line ФМ: 0000000000871795 [21:04:28]line ФД: 74758 [21:04:28]line ФПД: 66752695877250 [21:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210439&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74758&fm=66752695877250&tin=02508201610067®Number=0000000000091691&sum=20000 [21:04:28]written 0, free lines is 4095 [21:04:28]OFD Sender: Processing packet 74758 [packets to send 13, broken 12] [21:04:28]ProducePacketName [21:04:28]name=ofd_packets/00074758 [21:04:28]OFD Sender: To server: pG, [21:04:28]CommunicateWithHost lk.salyk.kg:30040 [21:04:28]ConnectInit lk.salyk.kg [21:04:28]Connected sock=9 [21:04:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FD CD 07 01 F3 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 67 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 06 24 01 00 35 04 06 00 3C B6 12 B9 BE 82 DB 2F 75 CD 9D E9 E1 80 [21:04:29]Write to MH i2c: 01 00 00 AC 95 41 [21:04:29]Write i2c OK [21:04:29]MH_I2C_Read... [21:04:29]Read from MH i2c: 01 [21:04:29]MH_I2C_Read... [21:04:29]Read from MH i2c: 01 07 00 [21:04:29]MH_I2C_Read... [21:04:29]Read from MH i2c: 01 07 00 AC 95 00 00 00 00 00 9C 0C F0 [21:04:29]RasterBufferAndPrint [21:04:29]line [21:04:29]line [21:04:29]line [21:04:29]line [21:04:29]line [21:04:29]written 0, free lines is 3233 [21:04:29]MH_Cut [21:04:29]Write to MH i2c: D1 01 00 B3 95 01 1A [21:04:29]Write i2c OK [21:04:29]MH_I2C_Read... [21:04:29]Read from MH i2c: D1 [21:04:29]MH_I2C_Read... [21:04:29]Read from MH i2c: D1 01 00 [21:04:29]MH_I2C_Read... [21:04:29]Read from MH i2c: D1 01 00 B3 95 00 19 [21:04:29]Write to MH i2c: 01 00 00 B4 95 49 [21:04:29]Write i2c OK [21:04:29]MH_I2C_Read... [21:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BB BD 47 00 A4 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 06 24 01 00 F4 03 04 00 E8 5D 1A 67 B6 04 01 00 00 A2 66 2A 90 43 DE 10 A7 [21:04:29]CommunicateWithHost err = 0 [21:04:29]CheckOFDResponse [21:04:29]1017 (14) - 77093643461234 [21:04:29]1041 (16) - 0000000000871795 [21:04:29]1040 (4) - 74758 [21:04:29]1012 (4) - 24.10.2024 14:47 [21:04:29]1206 (1) - 0 [21:04:29]OFD Sender: Remove packet 74758 [21:04:29]ProducePacketName [21:04:29]name=ofd_packets/00074758 [21:04:29]NVStorageDeleteData [21:04:29]OFD Sender: No OFD packet to send [21:04:30]*** Cut start [21:04:30]*** Partial cut [21:04:30]*** CUTSNS_PIN = 1 [21:04:30]*** CUTSNS_PIN = 0 [21:04:30]*** Brake cut motor [21:04:30]Read from MH i2c: 01 [21:04:30]MH_I2C_Read... [21:04:30]*** Stop cut motor [21:04:30]*** Cut end [21:04:30]Read from MH i2c: 01 07 00 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: 01 07 00 B4 95 00 00 00 00 00 FF 0F 5E [21:04:30]process_action close_receipt done [21:04:30]requested_data is exist [21:04:30]produce_requested_data [21:04:30]requested_item fm.sn is exist - process it [21:04:30]wFMCommunicate request_size=4 [21:04:30]MH_SAM_APDU [21:04:30]CAPDU: 80 11 00 00 [21:04:30]Write to MH i2c: E2 08 00 B5 95 80 11 00 00 00 00 00 00 C4 [21:04:30]Write i2c OK [21:04:30]MH_I2C_Read... [21:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:30]Read from MH i2c: E2 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 17 00 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 17 00 B5 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1C [21:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:04:30]wFMCommunicate OK [21:04:30]requested_item fd.num is exist - process it [21:04:30]SAM_PROTO_GetFieldsCounters [21:04:30]wFMCommunicate request_size=4 [21:04:30]MH_SAM_APDU [21:04:30]CAPDU: 80 13 00 00 [21:04:30]Write to MH i2c: E2 08 00 B6 95 80 13 00 00 00 00 00 00 C7 [21:04:30]Write i2c OK [21:04:30]MH_I2C_Read... [21:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:30]Read from MH i2c: E2 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 62 00 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 62 00 B6 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 06 24 01 00 0E 04 04 00 FE 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 76 [21:04:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 06 24 01 00 0E 04 04 00 FE 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 [21:04:30]wFMCommunicate OK [21:04:30]SAM_PROTO_GetFieldsCounters done [21:04:30]requested_item shift.num is exist - process it [21:04:30]requested_item shift.opened is exist - process it [21:04:30]req_shift_opened [21:04:30]FM_GetShiftState [21:04:30]SAM_PROTO_GetShiftState [21:04:30]wFMCommunicate request_size=4 [21:04:30]MH_SAM_APDU [21:04:30]CAPDU: 80 13 01 00 [21:04:30]Write to MH i2c: E2 08 00 B7 95 80 13 01 00 00 00 00 00 C9 [21:04:30]Write i2c OK [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 [21:04:30]MH_I2C_Read... [21:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:30]Read from MH i2c: E2 0E 00 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 0E 00 B7 95 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F3 [21:04:30]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:04:30]wFMCommunicate OK [21:04:30]SAM_PROTO_GetShiftState done [21:04:30]FM_GetShiftState done [21:04:30]req_shift_opened done [21:04:30]requested_item shift.open_date is exist - process it [21:04:30]req_shift_open_date [21:04:30]req_shift_open_date done [21:04:30]produce_requested_data done [21:04:30]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74758,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:04:30]process_action_free close_receipt [21:04:30]json_value_free [21:04:30]json_value_free done [21:04:30]process_json_proto returns [21:04:30]Send response to host [21:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74758,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:04:30]free response buf [21:04:30]execute_script done [21:04:30]execute_script returns [21:04:30]free content buf [21:04:30]Sock 10.Close socket [21:04:30]Sock 10.Thread stoped [21:04:34]OFD Sender: No OFD packet to send [21:04:37]accept exits with 8 [21:04:37]New connection [21:04:37]New thread 3066662244 created [21:04:37]Thread 3066805604 joined [21:04:37]Waiting for new connection... [21:04:37] Sock 8.Parse request [21:04:37]Sock 8.Check first char [21:04:37]Sock 8.First char is OK [21:04:37]request: POST /json_proto HTTP/1.0 [21:04:37]Method: POST [21:04:37]URL: /json_proto [21:04:37]Method is POST - this is cgi request [21:04:37]url: /json_proto [21:04:37]query_string will be loaded in cgi processing [21:04:37]execute_cgi json_proto POST (null) [21:04:37]execute_cgi path=json_proto method=POST [21:04:37]POST find Content-Length [21:04:37]Host: 172.17.39.131:8080 [21:04:37]Content-Length: 672 [21:04:37]Content-Type: application/json [21:04:37] [21:04:37]POST finish read [21:04:37]Found Content-Length = 672 [21:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:37]execute_script... [21:04: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)190730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:37]POST & json_proto [21:04:37]process_json_proto [21:04:37]json parsed OK: [21:04:37]protocol is kg_v1.0 [21:04:37]action value=close_receipt [21:04:37]process_action close_receipt [21:04:37]cmd_close_receipt [21:04:37]MH_GetDate [21:04:37]Write to MH i2c: F0 00 00 B8 95 3C [21:04:37]Write i2c OK [21:04:37]MH_I2C_Read... [21:04:37]Read from MH i2c: F0 [21:04:37]MH_I2C_Read... [21:04:37]Read from MH i2c: F0 09 00 [21:04:37]MH_I2C_Read... [21:04:37]Read from MH i2c: F0 09 00 B8 95 00 72 B6 1A 67 86 57 24 65 54 [21:04:37]GetLastDocTimeStamp 1729803879 [21:04:37]current date 1729803890 [21:04:37]FM_GetShiftState [21:04:37]SAM_PROTO_GetShiftState [21:04:37]wFMCommunicate request_size=4 [21:04:37]MH_SAM_APDU [21:04:37]CAPDU: 80 13 01 00 [21:04:37]Write to MH i2c: E2 08 00 B9 95 80 13 01 00 00 00 00 00 CB [21:04:37]Write i2c OK [21:04:37]MH_I2C_Read... [21:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:37]Read from MH i2c: E2 [21:04:37]MH_I2C_Read... [21:04:37]Read from MH i2c: E2 0E 00 [21:04:37]MH_I2C_Read... [21:04:37]Read from MH i2c: E2 0E 00 B9 95 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F5 [21:04:37]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:04:37]wFMCommunicate OK [21:04:37]SAM_PROTO_GetShiftState done [21:04:37]FM_GetShiftState done [21:04:37]opened in 1729729801 [21:04:37]opened+sec_in_day 1729816201 [21:04:37]quantity*price = 66 [21:04:37]sum+1 = 68 [21:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 1000.00 СДАЧА: 1000.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 203 24.10.2024 21:04 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74759 ФПД: 233894976892551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210450&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74759&fm=233894976892551&tin=02508201610067®Number=0000000000091691&sum=0 [21:04:38]StoreToDocumentArchive [21:04:38]shift 510 fd 74759 [21:04:38]save to /storage/0510/doc_00074759 [21:04:38]save last doc name /storage/0510/doc_00074759 to /storage/kkm_last_doc_name [21:04:38]save OK [21:04:38]Clear old archive folders... [21:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:38]tlvbuf is 008B2C30 [21:04:38]SAM_PROTO_ClearQueue [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 09 00 00 [21:04:38]Write to MH i2c: E2 08 00 C6 95 80 09 00 00 00 00 00 00 CD [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 C6 95 00 90 00 CF [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]SAM_PROTO_ClearQueue done [21:04:38]KKMCreateOFDPacket [21:04:38]OFDProtocolAddRootSTLVToBuf [21:04:38]FM_MakeSignedData [21:04:38]FM_MakeSignedData [21:04:38]SAM_PROTO_SignData [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 0D 01 02 [21:04:38]Write to MH i2c: E2 08 00 C7 95 80 0D 01 02 00 00 00 00 D5 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 C7 95 00 90 00 D0 [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]wFMCommunicate request_size=255 [21:04:38]MH_SAM_APDU [21:04: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 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 72 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 07 24 01 00 35 04 06 00 D4 [21:04:38]Write to MH i2c: E2 02 01 C8 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 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 72 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 07 24 01 00 35 04 06 00 D4 00 00 E9 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 C8 95 00 90 00 D1 [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]wFMCommunicate request_size=10 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 0D 02 02 05 B9 EB 03 2E 87 [21:04:38]Write to MH i2c: E2 0D 00 C9 95 80 0D 02 02 05 00 B9 EB 03 2E 87 00 00 3E [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 C9 95 00 90 00 D2 [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 0D 03 02 [21:04:38]Write to MH i2c: E2 08 00 CA 95 80 0D 03 02 00 00 00 00 DA [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0B 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0B 00 CA 95 00 93 82 55 38 8B 7D 87 E5 90 00 F1 [21:04:38]RAPDU: 93 82 55 38 8B 7D 87 E5 90 00 [21:04:38]wFMCommunicate OK [21:04:38]SAM_PROTO_SignData done [21:04:38]FM_MakeSignedData done [21:04:38]CreateOFDProtocolMessage [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 11 00 00 [21:04:38]Write to MH i2c: E2 08 00 CB 95 80 11 00 00 00 00 00 00 DA [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 17 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 17 00 CB 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 32 [21:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:04:38]wFMCommunicate OK [21:04:38]CreateOFDProtocolMessage done [21:04:38]OFDSenderStorePacket 74759 [21:04:38]StoreOFDPacket docnum=74759 [21:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 68 E5 07 01 97 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 72 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 07 24 01 00 35 04 06 00 D4 B9 EB 03 2E 87 93 82 55 38 8B 7D 87 E5 [21:04:38]CheckFolder [21:04:38]dirname=/storage/ofd_packets [21:04:38]CheckFolder done [21:04:38]ProducePacketName [21:04:38]name=ofd_packets/00074759 [21:04:38]NVStorageSaveData ofd_packets/00074759 [21:04:38]File name is /storage/ofd_packets/00074759 [21:04:38]Write 301 bytes [21:04:38]NVStorageSaveData done [21:04:38]OFDSenderStorePacket done [21:04:38]KKMCreateOFDPacket done [21:04:38]NVStorageSaveData kkm_last_timestamp [21:04:38]File name is /storage/kkm_last_timestamp [21:04:38]Write 4 bytes [21:04:38]NVStorageSaveData done [21:04:38]ExternCall_PrintAddStr [21:04:38]wPrintStart [21:04:38]Write to MH i2c: 01 00 00 CC 95 61 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 07 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 07 00 CC 95 00 00 00 00 00 FF 0F 76 [21:04:38]RasterBufferAndPrint [21:04:38]line Счет N : (1)190730 [21:04:38]line ИНН: 02508201610067 [21:04:38]line Контрольно-Кассовый Чек [21:04:38]line ПРОДАЖА [21:04:38]line ТРК (МРК, ГНК) : 21 [21:04:38]line Товар: 2710124130 [21:04:38]line Аи-92-К-5 [21:04:38]line 0.010 * 66.90 [21:04:38]line = 0.67 [21:04:38]line НДС 12% НСП 1% [21:04:38]line > о реализуемом товаре [21:04:38]line ОКРУГЛЕНИЕ: -0.67 [21:04:38]line ИТОГО: 0.00 [21:04:38]line Внесено: 1000.00 [21:04:38]line СДАЧА: 1000.00 [21:04:38]line НСП 1% : 0.01 [21:04:38]line НДС 12% : 0.07 [21:04:38]line Наличными: 0.00 [21:04:38]line Безнал.: 0.00 [21:04:38]line Место: АЗС № 142 "Партнер Нефть" [21:04:38]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:04:38]line СНО: Общий режим [21:04:38]line Чек 203 24.10.2024 21:04 [21:04:38]line Смена: 510 ФФД: 1.0 [21:04:38]line ЗНМ: 0300000089 [21:04:38]line РНМ: 0000000000091691 [21:04:38]line Версия ККМ: 001 [21:04:38]line ФМ: 0000000000871795 [21:04:38]line ФД: 74759 [21:04:38]line ФПД: 233894976892551 [21:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210450&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74759&fm=233894976892551&tin=02508201610067®Number=0000000000091691&sum=0 [21:04:38]OFD Sender: Processing packet 74759 [packets to send 13, broken 12] [21:04:38]ProducePacketName [21:04:38]name=ofd_packets/00074759 [21:04:38]OFD Sender: To server: pG, [21:04:38]CommunicateWithHost lk.salyk.kg:30040 [21:04:38]ConnectInit lk.salyk.kg [21:04:38]written 0, free lines is 4095 [21:04:39]Connected sock=10 [21:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 68 E5 07 01 97 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 72 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 07 24 01 00 35 04 06 00 D4 B9 EB 03 2E 87 93 82 55 38 8B 7D 87 E5 [21:04:39]Write to MH i2c: 01 00 00 F7 95 8C [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: 01 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: 01 07 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: 01 07 00 F7 95 00 00 00 00 00 B7 0C 56 [21:04:39]RasterBufferAndPrint [21:04:39]line [21:04:39]line [21:04:39]line [21:04:39]line [21:04:39]line [21:04:39]written 0, free lines is 3267 [21:04:39]MH_Cut [21:04:39]Write to MH i2c: D1 01 00 FE 95 01 65 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: D1 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: D1 01 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: D1 01 00 FE 95 00 64 [21:04:39]Write to MH i2c: 01 00 00 FF 95 94 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 4B 7D 47 00 54 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 07 24 01 00 F4 03 04 00 F3 5D 1A 67 B6 04 01 00 00 CB 37 7F FA 22 13 4E 68 [21:04:39]CommunicateWithHost err = 0 [21:04:39]CheckOFDResponse [21:04:39]1017 (14) - 77093643461234 [21:04:39]1041 (16) - 0000000000871795 [21:04:39]1040 (4) - 74759 [21:04:39]1012 (4) - 24.10.2024 14:47 [21:04:39]1206 (1) - 0 [21:04:39]OFD Sender: Remove packet 74759 [21:04:39]ProducePacketName [21:04:39]name=ofd_packets/00074759 [21:04:39]NVStorageDeleteData [21:04:39]OFD Sender: No OFD packet to send [21:04:40]*** Cut start [21:04:40]*** Partial cut [21:04:40]*** CUTSNS_PIN = 1 [21:04:40]*** CUTSNS_PIN = 0 [21:04:40]*** Brake cut motor [21:04:40]Read from MH i2c: 01 [21:04:40]MH_I2C_Read... [21:04:40]*** Stop cut motor [21:04:40]*** Cut end [21:04:40]Read from MH i2c: 01 07 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 FF 95 00 00 00 00 00 FF 0F A9 [21:04:40]process_action close_receipt done [21:04:40]requested_data is exist [21:04:40]produce_requested_data [21:04:40]requested_item fm.sn is exist - process it [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 11 00 00 [21:04:40]Write to MH i2c: E2 08 00 00 96 80 11 00 00 00 00 00 00 10 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 17 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 17 00 00 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 68 [21:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:04:40]wFMCommunicate OK [21:04:40]requested_item fd.num is exist - process it [21:04:40]SAM_PROTO_GetFieldsCounters [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 13 00 00 [21:04:40]Write to MH i2c: E2 08 00 01 96 80 13 00 00 00 00 00 00 13 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 62 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 62 00 01 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 07 24 01 00 0E 04 04 00 FE 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 C6 [21:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 07 24 01 00 0E 04 04 00 FE 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 [21:04:41]wFMCommunicate OK [21:04:41]SAM_PROTO_GetFieldsCounters done [21:04:41]requested_item shift.num is exist - process it [21:04:41]requested_item shift.opened is exist - process it [21:04:41]req_shift_opened [21:04:41]FM_GetShiftState [21:04:41]SAM_PROTO_GetShiftState [21:04:41]wFMCommunicate request_size=4 [21:04:41]MH_SAM_APDU [21:04:41]CAPDU: 80 13 01 00 [21:04:41]Write to MH i2c: E2 08 00 02 96 80 13 01 00 00 00 00 00 15 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0E 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0E 00 02 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 3F [21:04:41]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:04:41]wFMCommunicate OK [21:04:41]SAM_PROTO_GetShiftState done [21:04:41]FM_GetShiftState done [21:04:41]req_shift_opened done [21:04:41]requested_item shift.open_date is exist - process it [21:04:41]req_shift_open_date [21:04:41]req_shift_open_date done [21:04:41]produce_requested_data done [21:04:41]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74759,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:04:41]process_action_free close_receipt [21:04:41]json_value_free [21:04:41]json_value_free done [21:04:41]process_json_proto returns [21:04:41]Send response to host [21:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74759,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:04:41]free response buf [21:04:41]execute_script done [21:04:41]execute_script returns [21:04:41]free content buf [21:04:41]Sock 8.Close socket [21:04:41]Sock 8.Thread stoped [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:51]accept exits with 9 [21:06:51]New connection [21:06:51]New thread 3066805604 created [21:06:51]Thread 3066662244 joined [21:06:51]Waiting for new connection... [21:06:51] Sock 9.Parse request [21:06:51]Sock 9.Check first char [21:06:51]Sock 9.First char is OK [21:06:51]request: POST /json_proto HTTP/1.0 [21:06:51]Method: POST [21:06:51]URL: /json_proto [21:06:51]Method is POST - this is cgi request [21:06:51]url: /json_proto [21:06:51]query_string will be loaded in cgi processing [21:06:51]execute_cgi json_proto POST (null) [21:06:51]execute_cgi path=json_proto method=POST [21:06:51]POST find Content-Length [21:06:51]Host: 172.17.39.131:8080 [21:06:51]Content-Length: 682 [21:06:51]Content-Type: application/json [21:06:51] [21:06:51]POST finish read [21:06:51]Found Content-Length = 682 [21:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:51]execute_script... [21:06: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)190731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:51]POST & json_proto [21:06:51]process_json_proto [21:06:51]json parsed OK: [21:06:51]protocol is kg_v1.0 [21:06:51]action value=close_receipt [21:06:51]process_action close_receipt [21:06:51]cmd_close_receipt [21:06:51]MH_GetDate [21:06:51]Write to MH i2c: F0 00 00 03 96 88 [21:06:51]Write i2c OK [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: F0 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: F0 09 00 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: F0 09 00 03 96 00 F8 B6 1A 67 86 57 24 65 26 [21:06:51]GetLastDocTimeStamp 1729803890 [21:06:51]current date 1729804024 [21:06:51]FM_GetShiftState [21:06:51]SAM_PROTO_GetShiftState [21:06:51]wFMCommunicate request_size=4 [21:06:51]MH_SAM_APDU [21:06:51]CAPDU: 80 13 01 00 [21:06:51]Write to MH i2c: E2 08 00 04 96 80 13 01 00 00 00 00 00 17 [21:06:51]Write i2c OK [21:06:51]MH_I2C_Read... [21:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:51]Read from MH i2c: E2 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: E2 0E 00 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: E2 0E 00 04 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 41 [21:06:51]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:06:51]wFMCommunicate OK [21:06:51]SAM_PROTO_GetShiftState done [21:06:51]FM_GetShiftState done [21:06:51]opened in 1729729801 [21:06:51]opened+sec_in_day 1729816201 [21:06:51]quantity*price = 100015 [21:06:51]sum+1 = 100017 [21:06:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 204 24.10.2024 21:07 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74760 ФПД: 109520648232818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210704&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74760&fm=109520648232818&tin=02508201610067®Number=0000000000091691&sum=100000 [21:06:52]StoreToDocumentArchive [21:06:52]shift 510 fd 74760 [21:06:52]save to /storage/0510/doc_00074760 [21:06:52]save last doc name /storage/0510/doc_00074760 to /storage/kkm_last_doc_name [21:06:52]save OK [21:06:52]Clear old archive folders... [21:06:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:52]tlvbuf is 007EBB90 [21:06:52]SAM_PROTO_ClearQueue [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 09 00 00 [21:06:52]Write to MH i2c: E2 08 00 11 96 80 09 00 00 00 00 00 00 19 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 11 96 00 90 00 1B [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]SAM_PROTO_ClearQueue done [21:06:52]KKMCreateOFDPacket [21:06:52]OFDProtocolAddRootSTLVToBuf [21:06:52]FM_MakeSignedData [21:06:52]FM_MakeSignedData [21:06:52]SAM_PROTO_SignData [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 0D 01 02 [21:06:52]Write to MH i2c: E2 08 00 12 96 80 0D 01 02 00 00 00 00 21 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 12 96 00 90 00 1C [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]wFMCommunicate request_size=255 [21:06:52]MH_SAM_APDU [21:06: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F8 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 08 24 01 00 35 04 06 00 63 [21:06:52]Write to MH i2c: E2 02 01 13 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F8 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 08 24 01 00 35 04 06 00 63 00 00 3A [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 13 96 00 90 00 1D [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]wFMCommunicate request_size=10 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 0D 02 02 05 9B C3 55 5F 72 [21:06:52]Write to MH i2c: E2 0D 00 14 96 80 0D 02 02 05 00 9B C3 55 5F 72 00 00 B2 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 14 96 00 90 00 1E [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 0D 03 02 [21:06:52]Write to MH i2c: E2 08 00 15 96 80 0D 03 02 00 00 00 00 26 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0B 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0B 00 15 96 00 19 C2 EC 2A 89 BD 8C B6 90 00 A0 [21:06:52]RAPDU: 19 C2 EC 2A 89 BD 8C B6 90 00 [21:06:52]wFMCommunicate OK [21:06:52]SAM_PROTO_SignData done [21:06:52]FM_MakeSignedData done [21:06:52]CreateOFDProtocolMessage [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 11 00 00 [21:06:52]Write to MH i2c: E2 08 00 16 96 80 11 00 00 00 00 00 00 26 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 17 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 17 00 16 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7E [21:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:06:52]wFMCommunicate OK [21:06:52]CreateOFDProtocolMessage done [21:06:52]OFDSenderStorePacket 74760 [21:06:52]StoreOFDPacket docnum=74760 [21:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5A AA 07 01 39 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F8 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 08 24 01 00 35 04 06 00 63 9B C3 55 5F 72 19 C2 EC 2A 89 BD 8C B6 [21:06:52]CheckFolder [21:06:52]dirname=/storage/ofd_packets [21:06:52]CheckFolder done [21:06:52]ProducePacketName [21:06:52]name=ofd_packets/00074760 [21:06:52]NVStorageSaveData ofd_packets/00074760 [21:06:52]File name is /storage/ofd_packets/00074760 [21:06:52]Write 301 bytes [21:06:52]NVStorageSaveData done [21:06:52]OFDSenderStorePacket done [21:06:52]KKMCreateOFDPacket done [21:06:52]NVStorageSaveData kkm_last_timestamp [21:06:52]File name is /storage/kkm_last_timestamp [21:06:52]Write 4 bytes [21:06:52]NVStorageSaveData done [21:06:52]ExternCall_PrintAddStr [21:06:52]wPrintStart [21:06:52]Write to MH i2c: 01 00 00 17 96 AD [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: 01 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: 01 07 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: 01 07 00 17 96 00 00 00 00 00 FF 0F C2 [21:06:52]RasterBufferAndPrint [21:06:52]line Счет N : (1)190731 [21:06:52]line ИНН: 02508201610067 [21:06:52]line Контрольно-Кассовый Чек [21:06:52]line ПРОДАЖА [21:06:52]line ТРК (МРК, ГНК) : 21 [21:06:52]line Товар: 2710124130 [21:06:52]line Аи-92-К-5 [21:06:52]line 14.950 * 66.90 [21:06:52]line = 1000.16 [21:06:52]line НДС 12% НСП 1% [21:06:52]line > о реализуемом товаре [21:06:52]line ОКРУГЛЕНИЕ: -0.16 [21:06:52]line ИТОГО: 1000.00 [21:06:52]line Внесено: 1000.00 [21:06:52]line СДАЧА: 0.00 [21:06:52]line НСП 1% : 8.85 [21:06:52]line НДС 12% : 106.21 [21:06:52]line Наличными: 1000.00 [21:06:52]line Безнал.: 0.00 [21:06:52]line Место: АЗС № 142 "Партнер Нефть" [21:06:52]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:06:52]line СНО: Общий режим [21:06:52]line Чек 204 24.10.2024 21:07 [21:06:52]line Смена: 510 ФФД: 1.0 [21:06:52]line ЗНМ: 0300000089 [21:06:52]line РНМ: 0000000000091691 [21:06:52]line Версия ККМ: 001 [21:06:52]line ФМ: 0000000000871795 [21:06:52]line ФД: 74760 [21:06:52]line ФПД: 109520648232818 [21:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210704&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74760&fm=109520648232818&tin=02508201610067®Number=0000000000091691&sum=100000 [21:06:53]written 0, free lines is 4095 [21:06:53]OFD Sender: Processing packet 74760 [packets to send 13, broken 12] [21:06:53]ProducePacketName [21:06:53]name=ofd_packets/00074760 [21:06:53]OFD Sender: To server: pG, [21:06:53]CommunicateWithHost lk.salyk.kg:30040 [21:06:53]ConnectInit lk.salyk.kg [21:06:53]Connected sock=10 [21:06:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5A AA 07 01 39 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F8 B6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 08 24 01 00 35 04 06 00 63 9B C3 55 5F 72 19 C2 EC 2A 89 BD 8C B6 [21:06:53]Write to MH i2c: 01 00 00 42 96 D8 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 07 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 07 00 42 96 00 00 00 00 00 B1 0C 9C [21:06:53]RasterBufferAndPrint [21:06:53]line [21:06:53]line [21:06:53]line [21:06:53]line [21:06:53]line [21:06:53]written 0, free lines is 3256 [21:06:53]MH_Cut [21:06:53]Write to MH i2c: D1 01 00 49 96 01 B1 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: D1 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: D1 01 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: D1 01 00 49 96 00 B0 [21:06:53]Write to MH i2c: 01 00 00 4A 96 E0 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BB CA 47 00 E3 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 08 24 01 00 F4 03 04 00 79 5E 1A 67 B6 04 01 00 00 43 6B 5C 04 CC 0E DB 28 [21:06:53]CommunicateWithHost err = 0 [21:06:53]CheckOFDResponse [21:06:53]1017 (14) - 77093643461234 [21:06:53]1041 (16) - 0000000000871795 [21:06:53]1040 (4) - 74760 [21:06:53]1012 (4) - 24.10.2024 14:49 [21:06:53]1206 (1) - 0 [21:06:53]OFD Sender: Remove packet 74760 [21:06:53]ProducePacketName [21:06:53]name=ofd_packets/00074760 [21:06:53]NVStorageDeleteData [21:06:54]OFD Sender: No OFD packet to send [21:06:54]*** Cut start [21:06:54]*** Partial cut [21:06:54]*** CUTSNS_PIN = 1 [21:06:54]*** CUTSNS_PIN = 0 [21:06:54]*** Brake cut motor [21:06:55]Read from MH i2c: 01 [21:06:55]MH_I2C_Read... [21:06:55]*** Stop cut motor [21:06:55]*** Cut end [21:06:55]Read from MH i2c: 01 07 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: 01 07 00 4A 96 00 00 00 00 00 FF 0F F5 [21:06:55]process_action close_receipt done [21:06:55]requested_data is exist [21:06:55]produce_requested_data [21:06:55]requested_item fm.sn is exist - process it [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 11 00 00 [21:06:55]Write to MH i2c: E2 08 00 4B 96 80 11 00 00 00 00 00 00 5B [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 17 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 17 00 4B 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B3 [21:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:06:55]wFMCommunicate OK [21:06:55]requested_item fd.num is exist - process it [21:06:55]SAM_PROTO_GetFieldsCounters [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 13 00 00 [21:06:55]Write to MH i2c: E2 08 00 4C 96 80 13 00 00 00 00 00 00 5E [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 62 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 62 00 4C 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 08 24 01 00 0E 04 04 00 FE 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 15 [21:06:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 08 24 01 00 0E 04 04 00 FE 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 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetFieldsCounters done [21:06:55]requested_item shift.num is exist - process it [21:06:55]requested_item shift.opened is exist - process it [21:06:55]req_shift_opened [21:06:55]FM_GetShiftState [21:06:55]SAM_PROTO_GetShiftState [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 13 01 00 [21:06:55]Write to MH i2c: E2 08 00 4D 96 80 13 01 00 00 00 00 00 60 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 4D 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 8A [21:06:55]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetShiftState done [21:06:55]FM_GetShiftState done [21:06:55]req_shift_opened done [21:06:55]requested_item shift.open_date is exist - process it [21:06:55]req_shift_open_date [21:06:55]req_shift_open_date done [21:06:55]produce_requested_data done [21:06:55]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74760,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:06:55]process_action_free close_receipt [21:06:55]json_value_free [21:06:55]json_value_free done [21:06:55]process_json_proto returns [21:06:55]Send response to host [21:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74760,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:06:55]free response buf [21:06:55]execute_script done [21:06:55]execute_script returns [21:06:55]free content buf [21:06:55]Sock 9.Close socket [21:06:55]Sock 9.Thread stoped [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]accept exits with 8 [21:21:54]New connection [21:21:54]New thread 3066662244 created [21:21:54]Thread 3066805604 joined [21:21:54]Waiting for new connection... [21:21:54] Sock 8.Parse request [21:21:54]Sock 8.Check first char [21:21:54]Sock 8.First char is OK [21:21:54]request: POST /json_proto HTTP/1.0 [21:21:54]Method: POST [21:21:54]URL: /json_proto [21:21:54]Method is POST - this is cgi request [21:21:54]url: /json_proto [21:21:54]query_string will be loaded in cgi processing [21:21:54]execute_cgi json_proto POST (null) [21:21:54]execute_cgi path=json_proto method=POST [21:21:54]POST find Content-Length [21:21:54]Host: 172.17.39.131:8080 [21:21:54]Content-Length: 677 [21:21:54]Content-Type: application/json [21:21:54] [21:21:54]POST finish read [21:21:54]Found Content-Length = 677 [21:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:54]execute_script... [21:21: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)190732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:54]POST & json_proto [21:21:54]process_json_proto [21:21:54]json parsed OK: [21:21:54]protocol is kg_v1.0 [21:21:54]action value=close_receipt [21:21:54]process_action close_receipt [21:21:54]cmd_close_receipt [21:21:54]MH_GetDate [21:21:54]Write to MH i2c: F0 00 00 4E 96 D3 [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: F0 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: F0 09 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: F0 09 00 4E 96 00 7F BA 1A 67 86 57 24 65 FC [21:21:54]GetLastDocTimeStamp 1729804024 [21:21:54]current date 1729804927 [21:21:54]FM_GetShiftState [21:21:54]SAM_PROTO_GetShiftState [21:21:54]wFMCommunicate request_size=4 [21:21:54]MH_SAM_APDU [21:21:54]CAPDU: 80 13 01 00 [21:21:54]Write to MH i2c: E2 08 00 4F 96 80 13 01 00 00 00 00 00 62 [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:54]Read from MH i2c: E2 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 0E 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 0E 00 4F 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 8C [21:21:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:21:54]wFMCommunicate OK [21:21:54]SAM_PROTO_GetShiftState done [21:21:54]FM_GetShiftState done [21:21:54]opened in 1729729801 [21:21:54]opened+sec_in_day 1729816201 [21:21:54]quantity*price = 50041 [21:21:54]sum+1 = 50042 [21:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 205 24.10.2024 21:22 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74761 ФПД: 138323008604334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212207&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74761&fm=138323008604334&tin=02508201610067®Number=0000000000091691&sum=50000 [21:21:55]StoreToDocumentArchive [21:21:55]shift 510 fd 74761 [21:21:55]save to /storage/0510/doc_00074761 [21:21:55]save last doc name /storage/0510/doc_00074761 to /storage/kkm_last_doc_name [21:21:55]save OK [21:21:55]Clear old archive folders... [21:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:55]tlvbuf is 007C63B0 [21:21:55]SAM_PROTO_ClearQueue [21:21:55]wFMCommunicate request_size=4 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 09 00 00 [21:21:55]Write to MH i2c: E2 08 00 5C 96 80 09 00 00 00 00 00 00 64 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 5C 96 00 90 00 66 [21:21:55]RAPDU: 90 00 [21:21:55]wFMCommunicate OK [21:21:55]SAM_PROTO_ClearQueue done [21:21:55]KKMCreateOFDPacket [21:21:55]OFDProtocolAddRootSTLVToBuf [21:21:55]FM_MakeSignedData [21:21:55]FM_MakeSignedData [21:21:55]SAM_PROTO_SignData [21:21:55]wFMCommunicate request_size=4 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 0D 01 02 [21:21:55]Write to MH i2c: E2 08 00 5D 96 80 0D 01 02 00 00 00 00 6C [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 03 00 5D 96 00 90 00 67 [21:21:55]RAPDU: 90 00 [21:21:55]wFMCommunicate OK [21:21:55]wFMCommunicate request_size=255 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F BA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 09 24 01 00 35 04 06 00 7D [21:21:55]Write to MH i2c: E2 02 01 5E 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F BA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 09 24 01 00 35 04 06 00 7D 00 00 32 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:56]Read from MH i2c: E2 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 03 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 03 00 5E 96 00 90 00 68 [21:21:56]RAPDU: 90 00 [21:21:56]wFMCommunicate OK [21:21:56]wFMCommunicate request_size=10 [21:21:56]MH_SAM_APDU [21:21:56]CAPDU: 80 0D 02 02 05 CD D5 CA C8 AE [21:21:56]Write to MH i2c: E2 0D 00 5F 96 80 0D 02 02 05 00 CD D5 CA C8 AE 00 00 5B [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:56]Read from MH i2c: E2 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 03 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 03 00 5F 96 00 90 00 69 [21:21:56]RAPDU: 90 00 [21:21:56]wFMCommunicate OK [21:21:56]wFMCommunicate request_size=4 [21:21:56]MH_SAM_APDU [21:21:56]CAPDU: 80 0D 03 02 [21:21:56]Write to MH i2c: E2 08 00 60 96 80 0D 03 02 00 00 00 00 71 [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:56]Read from MH i2c: E2 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 0B 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 0B 00 60 96 00 9E C7 69 8B A6 FB A7 24 90 00 37 [21:21:56]RAPDU: 9E C7 69 8B A6 FB A7 24 90 00 [21:21:56]wFMCommunicate OK [21:21:56]SAM_PROTO_SignData done [21:21:56]FM_MakeSignedData done [21:21:56]CreateOFDProtocolMessage [21:21:56]wFMCommunicate request_size=4 [21:21:56]MH_SAM_APDU [21:21:56]CAPDU: 80 11 00 00 [21:21:56]Write to MH i2c: E2 08 00 61 96 80 11 00 00 00 00 00 00 71 [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:56]Read from MH i2c: E2 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 17 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: E2 17 00 61 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C9 [21:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:21:56]wFMCommunicate OK [21:21:56]CreateOFDProtocolMessage done [21:21:56]OFDSenderStorePacket 74761 [21:21:56]StoreOFDPacket docnum=74761 [21:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CD 64 07 01 39 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F BA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 09 24 01 00 35 04 06 00 7D CD D5 CA C8 AE 9E C7 69 8B A6 FB A7 24 [21:21:56]CheckFolder [21:21:56]dirname=/storage/ofd_packets [21:21:56]CheckFolder done [21:21:56]ProducePacketName [21:21:56]name=ofd_packets/00074761 [21:21:56]NVStorageSaveData ofd_packets/00074761 [21:21:56]File name is /storage/ofd_packets/00074761 [21:21:56]Write 301 bytes [21:21:56]NVStorageSaveData done [21:21:56]OFDSenderStorePacket done [21:21:56]KKMCreateOFDPacket done [21:21:56]NVStorageSaveData kkm_last_timestamp [21:21:56]File name is /storage/kkm_last_timestamp [21:21:56]Write 4 bytes [21:21:56]NVStorageSaveData done [21:21:56]ExternCall_PrintAddStr [21:21:56]wPrintStart [21:21:56]Write to MH i2c: 01 00 00 62 96 F8 [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 07 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 07 00 62 96 00 00 00 00 00 FF 0F 0D [21:21:56]RasterBufferAndPrint [21:21:56]line Счет N : (1)190732 [21:21:56]line ИНН: 02508201610067 [21:21:56]line Контрольно-Кассовый Чек [21:21:56]line ПРОДАЖА [21:21:56]line ТРК (МРК, ГНК) : 21 [21:21:56]line Товар: 2710124130 [21:21:56]line Аи-92-К-5 [21:21:56]line 7.480 * 66.90 [21:21:56]line = 500.41 [21:21:56]line НДС 12% НСП 1% [21:21:56]line > о реализуемом товаре [21:21:56]line ОКРУГЛЕНИЕ: -0.41 [21:21:56]line ИТОГО: 500.00 [21:21:56]line Внесено: 500.00 [21:21:56]line СДАЧА: 0.00 [21:21:56]line НСП 1% : 4.43 [21:21:56]line НДС 12% : 53.14 [21:21:56]line Наличными: 500.00 [21:21:56]line Безнал.: 0.00 [21:21:56]line Место: АЗС № 142 "Партнер Нефть" [21:21:56]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:21:56]line СНО: Общий режим [21:21:56]line Чек 205 24.10.2024 21:22 [21:21:56]line Смена: 510 ФФД: 1.0 [21:21:56]line ЗНМ: 0300000089 [21:21:56]line РНМ: 0000000000091691 [21:21:56]line Версия ККМ: 001 [21:21:56]line ФМ: 0000000000871795 [21:21:56]line ФД: 74761 [21:21:56]line ФПД: 138323008604334 [21:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212207&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74761&fm=138323008604334&tin=02508201610067®Number=0000000000091691&sum=50000 [21:21:56]written 0, free lines is 4095 [21:21:56]OFD Sender: Processing packet 74761 [packets to send 13, broken 12] [21:21:56]ProducePacketName [21:21:56]name=ofd_packets/00074761 [21:21:56]OFD Sender: To server: pG, [21:21:56]CommunicateWithHost lk.salyk.kg:30040 [21:21:56]ConnectInit lk.salyk.kg [21:21:56]Connected sock=10 [21:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CD 64 07 01 39 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F BA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 09 24 01 00 35 04 06 00 7D CD D5 CA C8 AE 9E C7 69 8B A6 FB A7 24 [21:21:57]Write to MH i2c: 01 00 00 8D 96 23 [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: 01 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: 01 07 00 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: 01 07 00 8D 96 00 00 00 00 00 A5 0C DB [21:21:57]RasterBufferAndPrint [21:21:57]line [21:21:57]line [21:21:57]line [21:21:57]line [21:21:57]line [21:21:57]written 0, free lines is 3242 [21:21:57]MH_Cut [21:21:57]Write to MH i2c: D1 01 00 94 96 01 FC [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: D1 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: D1 01 00 [21:21:57]MH_I2C_Read... [21:21:57]Read from MH i2c: D1 01 00 94 96 00 FB [21:21:57]Write to MH i2c: 01 00 00 95 96 2B [21:21:57]Write i2c OK [21:21:57]MH_I2C_Read... [21:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1F F7 47 00 8E 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 31 37 39 35 10 04 04 00 09 24 01 00 F4 03 04 00 00 62 1A 67 B6 04 01 00 00 5F 16 D5 45 27 EA D2 00 [21:21:57]CommunicateWithHost err = 0 [21:21:57]CheckOFDResponse [21:21:57]1017 (14) - 77093643461234 [21:21:57]1041 (16) - 0000000000871795 [21:21:57]1040 (4) - 74761 [21:21:57]1012 (4) - 24.10.2024 15:04 [21:21:57]1206 (1) - 0 [21:21:57]OFD Sender: Remove packet 74761 [21:21:57]ProducePacketName [21:21:57]name=ofd_packets/00074761 [21:21:57]NVStorageDeleteData [21:21:57]OFD Sender: No OFD packet to send [21:21:57]*** Cut start [21:21:57]*** Partial cut [21:21:57]*** CUTSNS_PIN = 1 [21:21:57]*** CUTSNS_PIN = 0 [21:21:58]*** Brake cut motor [21:21:58]Read from MH i2c: 01 [21:21:58]MH_I2C_Read... [21:21:58]*** Stop cut motor [21:21:58]*** Cut end [21:21:58]Read from MH i2c: 01 07 00 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: 01 07 00 95 96 00 00 00 00 00 FF 0F 40 [21:21:58]process_action close_receipt done [21:21:58]requested_data is exist [21:21:58]produce_requested_data [21:21:58]requested_item fm.sn is exist - process it [21:21:58]wFMCommunicate request_size=4 [21:21:58]MH_SAM_APDU [21:21:58]CAPDU: 80 11 00 00 [21:21:58]Write to MH i2c: E2 08 00 96 96 80 11 00 00 00 00 00 00 A6 [21:21:58]Write i2c OK [21:21:58]MH_I2C_Read... [21:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:58]Read from MH i2c: E2 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 17 00 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 17 00 96 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FE [21:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:21:58]wFMCommunicate OK [21:21:58]requested_item fd.num is exist - process it [21:21:58]SAM_PROTO_GetFieldsCounters [21:21:58]wFMCommunicate request_size=4 [21:21:58]MH_SAM_APDU [21:21:58]CAPDU: 80 13 00 00 [21:21:58]Write to MH i2c: E2 08 00 97 96 80 13 00 00 00 00 00 00 A9 [21:21:58]Write i2c OK [21:21:58]MH_I2C_Read... [21:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:58]Read from MH i2c: E2 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 62 00 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 62 00 97 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 09 24 01 00 0E 04 04 00 FE 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 64 [21:21:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 09 24 01 00 0E 04 04 00 FE 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 [21:21:58]wFMCommunicate OK [21:21:58]SAM_PROTO_GetFieldsCounters done [21:21:58]requested_item shift.num is exist - process it [21:21:58]requested_item shift.opened is exist - process it [21:21:58]req_shift_opened [21:21:58]FM_GetShiftState [21:21:58]SAM_PROTO_GetShiftState [21:21:58]wFMCommunicate request_size=4 [21:21:58]MH_SAM_APDU [21:21:58]CAPDU: 80 13 01 00 [21:21:58]Write to MH i2c: E2 08 00 98 96 80 13 01 00 00 00 00 00 AB [21:21:58]Write i2c OK [21:21:58]MH_I2C_Read... [21:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:58]Read from MH i2c: E2 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 0E 00 [21:21:58]MH_I2C_Read... [21:21:58]Read from MH i2c: E2 0E 00 98 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D5 [21:21:58]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:21:58]wFMCommunicate OK [21:21:58]SAM_PROTO_GetShiftState done [21:21:58]FM_GetShiftState done [21:21:58]req_shift_opened done [21:21:58]requested_item shift.open_date is exist - process it [21:21:58]req_shift_open_date [21:21:58]req_shift_open_date done [21:21:58]produce_requested_data done [21:21:58]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74761,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:21:58]process_action_free close_receipt [21:21:58]json_value_free [21:21:58]json_value_free done [21:21:58]process_json_proto returns [21:21:58]Send response to host [21:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74761,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:21:58]free response buf [21:21:58]execute_script done [21:21:58]execute_script returns [21:21:58]free content buf [21:21:58]Sock 8.Close socket [21:21:58]Sock 8.Thread stoped [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:48]accept exits with 9 [21:25:48]New connection [21:25:48]New thread 3066805604 created [21:25:48]Thread 3066662244 joined [21:25:48]Waiting for new connection... [21:25:48] Sock 9.Parse request [21:25:48]Sock 9.Check first char [21:25:48]Sock 9.First char is OK [21:25:48]request: POST /json_proto HTTP/1.0 [21:25:48]Method: POST [21:25:48]URL: /json_proto [21:25:48]Method is POST - this is cgi request [21:25:48]url: /json_proto [21:25:48]query_string will be loaded in cgi processing [21:25:48]execute_cgi json_proto POST (null) [21:25:48]execute_cgi path=json_proto method=POST [21:25:48]POST find Content-Length [21:25:48]Host: 172.17.39.131:8080 [21:25:48]Content-Length: 677 [21:25:48]Content-Type: application/json [21:25:48] [21:25:48]POST finish read [21:25:48]Found Content-Length = 677 [21:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:48]execute_script... [21:25: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)190734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:48]POST & json_proto [21:25:48]process_json_proto [21:25:48]json parsed OK: [21:25:48]protocol is kg_v1.0 [21:25:48]action value=close_receipt [21:25:48]process_action close_receipt [21:25:48]cmd_close_receipt [21:25:48]MH_GetDate [21:25:48]Write to MH i2c: F0 00 00 99 96 1E [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: F0 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: F0 09 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: F0 09 00 99 96 00 69 BB 1A 67 86 57 24 65 32 [21:25:48]GetLastDocTimeStamp 1729804927 [21:25:48]current date 1729805161 [21:25:48]FM_GetShiftState [21:25:48]SAM_PROTO_GetShiftState [21:25:48]wFMCommunicate request_size=4 [21:25:48]MH_SAM_APDU [21:25:48]CAPDU: 80 13 01 00 [21:25:48]Write to MH i2c: E2 08 00 9A 96 80 13 01 00 00 00 00 00 AD [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 0E 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 0E 00 9A 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D7 [21:25:48]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:25:48]wFMCommunicate OK [21:25:48]SAM_PROTO_GetShiftState done [21:25:48]FM_GetShiftState done [21:25:48]opened in 1729729801 [21:25:48]opened+sec_in_day 1729816201 [21:25:48]quantity*price = 50041 [21:25:48]sum+1 = 50042 [21:25:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 206 24.10.2024 21:26 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74762 ФПД: 185703346527530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212601&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74762&fm=185703346527530&tin=02508201610067®Number=0000000000091691&sum=50000 [21:25:49]StoreToDocumentArchive [21:25:49]shift 510 fd 74762 [21:25:49]save to /storage/0510/doc_00074762 [21:25:49]save last doc name /storage/0510/doc_00074762 to /storage/kkm_last_doc_name [21:25:49]save OK [21:25:49]Clear old archive folders... [21:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:49]tlvbuf is 00AF14A0 [21:25:49]SAM_PROTO_ClearQueue [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 09 00 00 [21:25:49]Write to MH i2c: E2 08 00 A7 96 80 09 00 00 00 00 00 00 AF [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 A7 96 00 90 00 B1 [21:25:49]RAPDU: 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_ClearQueue done [21:25:49]KKMCreateOFDPacket [21:25:49]OFDProtocolAddRootSTLVToBuf [21:25:49]FM_MakeSignedData [21:25:49]FM_MakeSignedData [21:25:49]SAM_PROTO_SignData [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 0D 01 02 [21:25:49]Write to MH i2c: E2 08 00 A8 96 80 0D 01 02 00 00 00 00 B7 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 A8 96 00 90 00 B2 [21:25:49]RAPDU: 90 00 [21:25:49]wFMCommunicate OK [21:25:49]wFMCommunicate request_size=255 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 69 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0A 24 01 00 35 04 06 00 A8 [21:25:49]Write to MH i2c: E2 02 01 A9 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 69 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0A 24 01 00 35 04 06 00 A8 00 00 95 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 A9 96 00 90 00 B3 [21:25:49]RAPDU: 90 00 [21:25:49]wFMCommunicate OK [21:25:49]wFMCommunicate request_size=10 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 0D 02 02 05 E5 6E 00 DD 2A [21:25:49]Write to MH i2c: E2 0D 00 AA 96 80 0D 02 02 05 00 E5 6E 00 DD 2A 00 00 1E [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 03 00 AA 96 00 90 00 B4 [21:25:49]RAPDU: 90 00 [21:25:49]wFMCommunicate OK [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 0D 03 02 [21:25:49]Write to MH i2c: E2 08 00 AB 96 80 0D 03 02 00 00 00 00 BC [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0B 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0B 00 AB 96 00 2E D5 E2 AF 45 64 47 1F 90 00 60 [21:25:49]RAPDU: 2E D5 E2 AF 45 64 47 1F 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_SignData done [21:25:49]FM_MakeSignedData done [21:25:49]CreateOFDProtocolMessage [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 11 00 00 [21:25:49]Write to MH i2c: E2 08 00 AC 96 80 11 00 00 00 00 00 00 BC [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 17 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 17 00 AC 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 14 [21:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:25:49]wFMCommunicate OK [21:25:49]CreateOFDProtocolMessage done [21:25:49]OFDSenderStorePacket 74762 [21:25:49]StoreOFDPacket docnum=74762 [21:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7F B3 07 01 E6 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 69 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0A 24 01 00 35 04 06 00 A8 E5 6E 00 DD 2A 2E D5 E2 AF 45 64 47 1F [21:25:49]CheckFolder [21:25:49]dirname=/storage/ofd_packets [21:25:49]CheckFolder done [21:25:49]ProducePacketName [21:25:49]name=ofd_packets/00074762 [21:25:49]NVStorageSaveData ofd_packets/00074762 [21:25:49]File name is /storage/ofd_packets/00074762 [21:25:49]Write 301 bytes [21:25:49]NVStorageSaveData done [21:25:49]OFDSenderStorePacket done [21:25:49]KKMCreateOFDPacket done [21:25:49]NVStorageSaveData kkm_last_timestamp [21:25:49]File name is /storage/kkm_last_timestamp [21:25:49]Write 4 bytes [21:25:49]NVStorageSaveData done [21:25:49]ExternCall_PrintAddStr [21:25:49]wPrintStart [21:25:49]Write to MH i2c: 01 00 00 AD 96 43 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: 01 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: 01 07 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: 01 07 00 AD 96 00 00 00 00 00 FF 0F 58 [21:25:49]RasterBufferAndPrint [21:25:49]line Счет N : (1)190734 [21:25:49]line ИНН: 02508201610067 [21:25:49]line Контрольно-Кассовый Чек [21:25:49]line ПРОДАЖА [21:25:49]line ТРК (МРК, ГНК) : 21 [21:25:49]line Товар: 2710124130 [21:25:49]line Аи-92-К-5 [21:25:49]line 7.480 * 66.90 [21:25:49]line = 500.41 [21:25:49]line НДС 12% НСП 1% [21:25:49]line > о реализуемом товаре [21:25:49]line ОКРУГЛЕНИЕ: -0.41 [21:25:49]line ИТОГО: 500.00 [21:25:49]line Внесено: 500.00 [21:25:49]line СДАЧА: 0.00 [21:25:49]line НСП 1% : 4.43 [21:25:49]line НДС 12% : 53.14 [21:25:49]line Наличными: 500.00 [21:25:49]line Безнал.: 0.00 [21:25:49]line Место: АЗС № 142 "Партнер Нефть" [21:25:49]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:25:49]line СНО: Общий режим [21:25:49]line Чек 206 24.10.2024 21:26 [21:25:49]line Смена: 510 ФФД: 1.0 [21:25:49]line ЗНМ: 0300000089 [21:25:49]line РНМ: 0000000000091691 [21:25:49]line Версия ККМ: 001 [21:25:49]line ФМ: 0000000000871795 [21:25:49]line ФД: 74762 [21:25:49]line ФПД: 185703346527530 [21:25:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212601&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74762&fm=185703346527530&tin=02508201610067®Number=0000000000091691&sum=50000 [21:25:50]written 0, free lines is 4095 [21:25:50]OFD Sender: Processing packet 74762 [packets to send 13, broken 12] [21:25:50]ProducePacketName [21:25:50]name=ofd_packets/00074762 [21:25:50]OFD Sender: To server: pG, [21:25:50]CommunicateWithHost lk.salyk.kg:30040 [21:25:50]ConnectInit lk.salyk.kg [21:25:50]Connected sock=8 [21:25:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7F B3 07 01 E6 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 69 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0A 24 01 00 35 04 06 00 A8 E5 6E 00 DD 2A 2E D5 E2 AF 45 64 47 1F [21:25:50]Write to MH i2c: 01 00 00 D8 96 6E [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: 01 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: 01 07 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: 01 07 00 D8 96 00 00 00 00 00 9E 0C 1F [21:25:50]RasterBufferAndPrint [21:25:50]line [21:25:50]line [21:25:50]line [21:25:50]line [21:25:50]line [21:25:50]written 0, free lines is 3239 [21:25:50]MH_Cut [21:25:50]Write to MH i2c: D1 01 00 DF 96 01 47 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: D1 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: D1 01 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: D1 01 00 DF 96 00 46 [21:25:50]Write to MH i2c: 01 00 00 E0 96 76 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 71 8D 47 00 0F 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0A 24 01 00 F4 03 04 00 EA 62 1A 67 B6 04 01 00 00 C2 1C 63 0C 7D 34 5C 30 [21:25:50]CommunicateWithHost err = 0 [21:25:50]CheckOFDResponse [21:25:50]1017 (14) - 77093643461234 [21:25:50]1041 (16) - 0000000000871795 [21:25:50]1040 (4) - 74762 [21:25:50]1012 (4) - 24.10.2024 15:08 [21:25:50]1206 (1) - 0 [21:25:50]OFD Sender: Remove packet 74762 [21:25:50]ProducePacketName [21:25:50]name=ofd_packets/00074762 [21:25:50]NVStorageDeleteData [21:25:51]OFD Sender: No OFD packet to send [21:25:51]*** Cut start [21:25:51]*** Partial cut [21:25:51]*** CUTSNS_PIN = 1 [21:25:51]*** CUTSNS_PIN = 0 [21:25:51]*** Brake cut motor [21:25:52]Read from MH i2c: 01 [21:25:52]MH_I2C_Read... [21:25:52]*** Stop cut motor [21:25:52]*** Cut end [21:25:52]Read from MH i2c: 01 07 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 07 00 E0 96 00 00 00 00 00 FF 0F 8B [21:25:52]process_action close_receipt done [21:25:52]requested_data is exist [21:25:52]produce_requested_data [21:25:52]requested_item fm.sn is exist - process it [21:25:52]wFMCommunicate request_size=4 [21:25:52]MH_SAM_APDU [21:25:52]CAPDU: 80 11 00 00 [21:25:52]Write to MH i2c: E2 08 00 E1 96 80 11 00 00 00 00 00 00 F1 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 17 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 17 00 E1 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 49 [21:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:25:52]wFMCommunicate OK [21:25:52]requested_item fd.num is exist - process it [21:25:52]SAM_PROTO_GetFieldsCounters [21:25:52]wFMCommunicate request_size=4 [21:25:52]MH_SAM_APDU [21:25:52]CAPDU: 80 13 00 00 [21:25:52]Write to MH i2c: E2 08 00 E2 96 80 13 00 00 00 00 00 00 F4 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 62 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 62 00 E2 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0A 24 01 00 0E 04 04 00 FE 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 B3 [21:25:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0A 24 01 00 0E 04 04 00 FE 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 [21:25:52]wFMCommunicate OK [21:25:52]SAM_PROTO_GetFieldsCounters done [21:25:52]requested_item shift.num is exist - process it [21:25:52]requested_item shift.opened is exist - process it [21:25:52]req_shift_opened [21:25:52]FM_GetShiftState [21:25:52]SAM_PROTO_GetShiftState [21:25:52]wFMCommunicate request_size=4 [21:25:52]MH_SAM_APDU [21:25:52]CAPDU: 80 13 01 00 [21:25:52]Write to MH i2c: E2 08 00 E3 96 80 13 01 00 00 00 00 00 F6 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 0E 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 0E 00 E3 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 20 [21:25:52]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:25:52]wFMCommunicate OK [21:25:52]SAM_PROTO_GetShiftState done [21:25:52]FM_GetShiftState done [21:25:52]req_shift_opened done [21:25:52]requested_item shift.open_date is exist - process it [21:25:52]req_shift_open_date [21:25:52]req_shift_open_date done [21:25:52]produce_requested_data done [21:25:52]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74762,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:25:52]process_action_free close_receipt [21:25:52]json_value_free [21:25:52]json_value_free done [21:25:52]process_json_proto returns [21:25:52]Send response to host [21:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74762,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:25:52]free response buf [21:25:52]execute_script done [21:25:52]execute_script returns [21:25:52]free content buf [21:25:52]Sock 9.Close socket [21:25:52]Sock 9.Thread stoped [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:11]accept exits with 10 [21:28:11]New connection [21:28:11]New thread 3066662244 created [21:28:11]Thread 3066805604 joined [21:28:11]Waiting for new connection... [21:28:11] Sock 10.Parse request [21:28:11]Sock 10.Check first char [21:28:11]Sock 10.First char is OK [21:28:11]request: POST /json_proto HTTP/1.0 [21:28:11]Method: POST [21:28:11]URL: /json_proto [21:28:11]Method is POST - this is cgi request [21:28:11]url: /json_proto [21:28:11]query_string will be loaded in cgi processing [21:28:11]execute_cgi json_proto POST (null) [21:28:11]execute_cgi path=json_proto method=POST [21:28:11]POST find Content-Length [21:28:11]Host: 172.17.39.131:8080 [21:28:11]Content-Length: 685 [21:28:11]Content-Type: application/json [21:28:11] [21:28:11]POST finish read [21:28:11]Found Content-Length = 685 [21:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 46.150, "sum" : 1795.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1795.00, "payments": [ { "type": 0, "sum" : 1795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:11]execute_script... [21:28: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)190733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 46.150, "sum" : 1795.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1795.00, "payments": [ { "type": 0, "sum" : 1795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:11]POST & json_proto [21:28:11]process_json_proto [21:28:11]json parsed OK: [21:28:11]protocol is kg_v1.0 [21:28:11]action value=close_receipt [21:28:11]process_action close_receipt [21:28:11]cmd_close_receipt [21:28:11]MH_GetDate [21:28:11]Write to MH i2c: F0 00 00 E4 96 69 [21:28:11]Write i2c OK [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: F0 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: F0 09 00 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: F0 09 00 E4 96 00 F8 BB 1A 67 86 57 24 65 0C [21:28:11]GetLastDocTimeStamp 1729805161 [21:28:11]current date 1729805304 [21:28:11]FM_GetShiftState [21:28:11]SAM_PROTO_GetShiftState [21:28:11]wFMCommunicate request_size=4 [21:28:11]MH_SAM_APDU [21:28:11]CAPDU: 80 13 01 00 [21:28:11]Write to MH i2c: E2 08 00 E5 96 80 13 01 00 00 00 00 00 F8 [21:28:11]Write i2c OK [21:28:11]MH_I2C_Read... [21:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:11]Read from MH i2c: E2 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: E2 0E 00 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: E2 0E 00 E5 96 00 09 00 01 09 95 19 67 00 00 00 00 90 00 22 [21:28:11]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:28:11]wFMCommunicate OK [21:28:11]SAM_PROTO_GetShiftState done [21:28:11]FM_GetShiftState done [21:28:11]opened in 1729729801 [21:28:11]opened+sec_in_day 1729816201 [21:28:11]quantity*price = 179523 [21:28:11]sum+1 = 179525 [21:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1795.00 Внесено: 2000.00 СДАЧА: 205.00 НСП 1% : 15.89 НДС 12% : 190.64 Наличными: 1795.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 207 24.10.2024 21:28 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74763 ФПД: 116488032722025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212824&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74763&fm=116488032722025&tin=02508201610067®Number=0000000000091691&sum=179500 [21:28:12]StoreToDocumentArchive [21:28:12]shift 510 fd 74763 [21:28:12]save to /storage/0510/doc_00074763 [21:28:12]save last doc name /storage/0510/doc_00074763 to /storage/kkm_last_doc_name [21:28:12]save OK [21:28:12]Clear old archive folders... [21:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:28:12]tlvbuf is 00A9DE80 [21:28:12]SAM_PROTO_ClearQueue [21:28:12]wFMCommunicate request_size=4 [21:28:12]MH_SAM_APDU [21:28:12]CAPDU: 80 09 00 00 [21:28:12]Write to MH i2c: E2 08 00 F2 96 80 09 00 00 00 00 00 00 FA [21:28:12]Write i2c OK [21:28:12]MH_I2C_Read... [21:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:12]Read from MH i2c: E2 [21:28:12]MH_I2C_Read... [21:28:12]Read from MH i2c: E2 03 00 [21:28:12]MH_I2C_Read... [21:28:12]Read from MH i2c: E2 03 00 F2 96 00 90 00 FC [21:28:12]RAPDU: 90 00 [21:28:12]wFMCommunicate OK [21:28:12]SAM_PROTO_ClearQueue done [21:28:12]KKMCreateOFDPacket [21:28:12]OFDProtocolAddRootSTLVToBuf [21:28:12]FM_MakeSignedData [21:28:12]FM_MakeSignedData [21:28:12]SAM_PROTO_SignData [21:28:12]wFMCommunicate request_size=4 [21:28:12]MH_SAM_APDU [21:28:12]CAPDU: 80 0D 01 02 [21:28:12]Write to MH i2c: E2 08 00 F3 96 80 0D 01 02 00 00 00 00 02 [21:28:12]Write i2c OK [21:28:12]MH_I2C_Read... [21:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:12]Read from MH i2c: E2 [21:28:12]MH_I2C_Read... [21:28:12]Read from MH i2c: E2 03 00 [21:28:12]MH_I2C_Read... [21:28:12]Read from MH i2c: E2 03 00 F3 96 00 90 00 FD [21:28:12]RAPDU: 90 00 [21:28:12]wFMCommunicate OK [21:28:12]wFMCommunicate request_size=255 [21:28:12]MH_SAM_APDU [21:28:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 B4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 44 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4A 00 00 00 00 07 04 06 00 2C BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F8 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0B 24 01 00 35 04 06 00 69 F1 [21:28:12]Write to MH i2c: E2 02 01 F4 96 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 B4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 44 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4A 00 00 00 00 07 04 06 00 2C BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F8 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0B 24 01 00 35 04 06 00 69 F1 00 00 54 [21:28:12]Write i2c OK [21:28:12]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 F4 96 00 90 00 FE [21:28:13]RAPDU: 90 00 [21:28:13]wFMCommunicate OK [21:28:13]wFMCommunicate request_size=9 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 0D 02 02 04 FB CF 9C 69 [21:28:13]Write to MH i2c: E2 0C 00 F5 96 80 0D 02 02 04 00 FB CF 9C 69 00 00 DC [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 F5 96 00 90 00 FF [21:28:13]RAPDU: 90 00 [21:28:13]wFMCommunicate OK [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 0D 03 02 [21:28:13]Write to MH i2c: E2 08 00 F6 96 80 0D 03 02 00 00 00 00 07 [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 0B 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 0B 00 F6 96 00 8A BC C2 03 4C EE BD 78 90 00 82 [21:28:13]RAPDU: 8A BC C2 03 4C EE BD 78 90 00 [21:28:13]wFMCommunicate OK [21:28:13]SAM_PROTO_SignData done [21:28:13]FM_MakeSignedData done [21:28:13]CreateOFDProtocolMessage [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 11 00 00 [21:28:13]Write to MH i2c: E2 08 00 F7 96 80 11 00 00 00 00 00 00 07 [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 17 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 17 00 F7 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5F [21:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:28:13]wFMCommunicate OK [21:28:13]CreateOFDProtocolMessage done [21:28:13]OFDSenderStorePacket 74763 [21:28:13]StoreOFDPacket docnum=74763 [21:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 D8 C4 06 01 52 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 B4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 44 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4A 00 00 00 00 07 04 06 00 2C BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F8 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0B 24 01 00 35 04 06 00 69 F1 FB CF 9C 69 8A BC C2 03 4C EE BD 78 [21:28:13]CheckFolder [21:28:13]dirname=/storage/ofd_packets [21:28:13]CheckFolder done [21:28:13]ProducePacketName [21:28:13]name=ofd_packets/00074763 [21:28:13]NVStorageSaveData ofd_packets/00074763 [21:28:13]File name is /storage/ofd_packets/00074763 [21:28:13]Write 300 bytes [21:28:13]NVStorageSaveData done [21:28:13]OFDSenderStorePacket done [21:28:13]KKMCreateOFDPacket done [21:28:13]NVStorageSaveData kkm_last_timestamp [21:28:13]File name is /storage/kkm_last_timestamp [21:28:13]Write 4 bytes [21:28:13]NVStorageSaveData done [21:28:13]ExternCall_PrintAddStr [21:28:13]wPrintStart [21:28:13]Write to MH i2c: 01 00 00 F8 96 8E [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 07 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 07 00 F8 96 00 00 00 00 00 FF 0F A3 [21:28:13]RasterBufferAndPrint [21:28:13]line Счет N : (1)190733 [21:28:13]line ИНН: 02508201610067 [21:28:13]line Контрольно-Кассовый Чек [21:28:13]line ПРОДАЖА [21:28:13]line ТРК (МРК, ГНК) : 51 [21:28:13]line Товар: 2711190000 [21:28:13]line ГАЗ-К-3 [21:28:13]line 46.150 * 38.90 [21:28:13]line = 1795.24 [21:28:13]line НДС 12% НСП 1% [21:28:13]line > о реализуемом товаре [21:28:13]line ОКРУГЛЕНИЕ: -0.24 [21:28:13]line ИТОГО: 1795.00 [21:28:13]line Внесено: 2000.00 [21:28:13]line СДАЧА: 205.00 [21:28:13]line НСП 1% : 15.89 [21:28:13]line НДС 12% : 190.64 [21:28:13]line Наличными: 1795.00 [21:28:13]line Безнал.: 0.00 [21:28:13]line Место: АЗС № 142 "Партнер Нефть" [21:28:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:28:13]line СНО: Общий режим [21:28:13]line Чек 207 24.10.2024 21:28 [21:28:13]line Смена: 510 ФФД: 1.0 [21:28:13]line ЗНМ: 0300000089 [21:28:13]line РНМ: 0000000000091691 [21:28:13]line Версия ККМ: 001 [21:28:13]line ФМ: 0000000000871795 [21:28:13]line ФД: 74763 [21:28:13]line ФПД: 116488032722025 [21:28:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212824&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74763&fm=116488032722025&tin=02508201610067®Number=0000000000091691&sum=179500 [21:28:13]written 0, free lines is 4095 [21:28:13]OFD Sender: Processing packet 74763 [packets to send 13, broken 12] [21:28:13]ProducePacketName [21:28:13]name=ofd_packets/00074763 [21:28:13]OFD Sender: To server: pG, [21:28:13]CommunicateWithHost lk.salyk.kg:30040 [21:28:13]ConnectInit lk.salyk.kg [21:28:13]Connected sock=9 [21:28:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 D8 C4 06 01 52 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 B4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 44 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 4A 00 00 00 00 07 04 06 00 2C BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F8 BB 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0B 24 01 00 35 04 06 00 69 F1 FB CF 9C 69 8A BC C2 03 4C EE BD 78 [21:28:14]Write to MH i2c: 01 00 00 23 97 BA [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: 01 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: 01 07 00 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: 01 07 00 23 97 00 00 00 00 00 AB 0C 78 [21:28:14]RasterBufferAndPrint [21:28:14]line [21:28:14]line [21:28:14]line [21:28:14]line [21:28:14]line [21:28:14]written 0, free lines is 3248 [21:28:14]MH_Cut [21:28:14]Write to MH i2c: D1 01 00 2A 97 01 93 [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: D1 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: D1 01 00 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: D1 01 00 2A 97 00 92 [21:28:14]Write to MH i2c: 01 00 00 2B 97 C2 [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 07 98 47 00 73 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0B 24 01 00 F4 03 04 00 79 63 1A 67 B6 04 01 00 00 42 F4 72 CB 50 E5 6B 5C [21:28:14]CommunicateWithHost err = 0 [21:28:14]CheckOFDResponse [21:28:14]1017 (14) - 77093643461234 [21:28:14]1041 (16) - 0000000000871795 [21:28:14]1040 (4) - 74763 [21:28:14]1012 (4) - 24.10.2024 15:10 [21:28:14]1206 (1) - 0 [21:28:14]OFD Sender: Remove packet 74763 [21:28:14]ProducePacketName [21:28:14]name=ofd_packets/00074763 [21:28:14]NVStorageDeleteData [21:28:14]OFD Sender: No OFD packet to send [21:28:15]*** Cut start [21:28:15]*** Partial cut [21:28:15]*** CUTSNS_PIN = 1 [21:28:15]*** CUTSNS_PIN = 0 [21:28:15]*** Brake cut motor [21:28:15]Read from MH i2c: 01 [21:28:15]MH_I2C_Read... [21:28:15]*** Stop cut motor [21:28:15]*** Cut end [21:28:15]Read from MH i2c: 01 07 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: 01 07 00 2B 97 00 00 00 00 00 FF 0F D7 [21:28:15]process_action close_receipt done [21:28:15]requested_data is exist [21:28:15]produce_requested_data [21:28:15]requested_item fm.sn is exist - process it [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 11 00 00 [21:28:15]Write to MH i2c: E2 08 00 2C 97 80 11 00 00 00 00 00 00 3D [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:15]Read from MH i2c: E2 17 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 17 00 2C 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 95 [21:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:28:15]wFMCommunicate OK [21:28:15]requested_item fd.num is exist - process it [21:28:15]SAM_PROTO_GetFieldsCounters [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 13 00 00 [21:28:15]Write to MH i2c: E2 08 00 2D 97 80 13 00 00 00 00 00 00 40 [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 62 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 62 00 2D 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0B 24 01 00 0E 04 04 00 FE 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 03 [21:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0B 24 01 00 0E 04 04 00 FE 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 [21:28:15]wFMCommunicate OK [21:28:15]SAM_PROTO_GetFieldsCounters done [21:28:15]requested_item shift.num is exist - process it [21:28:15]requested_item shift.opened is exist - process it [21:28:15]req_shift_opened [21:28:15]FM_GetShiftState [21:28:15]SAM_PROTO_GetShiftState [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 13 01 00 [21:28:15]Write to MH i2c: E2 08 00 2E 97 80 13 01 00 00 00 00 00 42 [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 0E 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 0E 00 2E 97 00 09 00 01 09 95 19 67 00 00 00 00 90 00 6C [21:28:15]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:28:15]wFMCommunicate OK [21:28:15]SAM_PROTO_GetShiftState done [21:28:15]FM_GetShiftState done [21:28:15]req_shift_opened done [21:28:15]requested_item shift.open_date is exist - process it [21:28:15]req_shift_open_date [21:28:15]req_shift_open_date done [21:28:15]produce_requested_data done [21:28:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74763,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:28:15]process_action_free close_receipt [21:28:15]json_value_free [21:28:15]json_value_free done [21:28:15]process_json_proto returns [21:28:15]Send response to host [21:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74763,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:28:15]free response buf [21:28:15]execute_script done [21:28:15]execute_script returns [21:28:15]free content buf [21:28:15]Sock 10.Close socket [21:28:15]Sock 10.Thread stoped [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:12]accept exits with 8 [21:36:12]New connection [21:36:12]New thread 3066805604 created [21:36:12]Thread 3066662244 joined [21:36:12]Waiting for new connection... [21:36:12] Sock 8.Parse request [21:36:12]Sock 8.Check first char [21:36:12]Sock 8.First char is OK [21:36:12]request: POST /json_proto HTTP/1.0 [21:36:12]Method: POST [21:36:12]URL: /json_proto [21:36:12]Method is POST - this is cgi request [21:36:12]url: /json_proto [21:36:12]query_string will be loaded in cgi processing [21:36:12]execute_cgi json_proto POST (null) [21:36:12]execute_cgi path=json_proto method=POST [21:36:12]POST find Content-Length [21:36:12]Host: 172.17.39.131:8080 [21:36:12]Content-Length: 799 [21:36:12]Content-Type: application/json [21:36:12] [21:36:12]POST finish read [21:36:12]Found Content-Length = 799 [21:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:12]execute_script... [21:36: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)190727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:12]POST & json_proto [21:36:12]process_json_proto [21:36:12]json parsed OK: [21:36:12]protocol is kg_v1.0 [21:36:12]action value=close_receipt [21:36:12]process_action close_receipt [21:36:12]cmd_close_receipt [21:36:12]MH_GetDate [21:36:12]Write to MH i2c: F0 00 00 2F 97 B5 [21:36:12]Write i2c OK [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: F0 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: F0 09 00 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: F0 09 00 2F 97 00 D9 BD 1A 67 86 57 24 65 3B [21:36:12]GetLastDocTimeStamp 1729805304 [21:36:12]current date 1729805785 [21:36:12]FM_GetShiftState [21:36:12]SAM_PROTO_GetShiftState [21:36:12]wFMCommunicate request_size=4 [21:36:12]MH_SAM_APDU [21:36:12]CAPDU: 80 13 01 00 [21:36:12]Write to MH i2c: E2 08 00 30 97 80 13 01 00 00 00 00 00 44 [21:36:12]Write i2c OK [21:36:12]MH_I2C_Read... [21:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:12]Read from MH i2c: E2 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: E2 0E 00 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: E2 0E 00 30 97 00 09 00 01 09 95 19 67 00 00 00 00 90 00 6E [21:36:12]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:36:12]wFMCommunicate OK [21:36:12]SAM_PROTO_GetShiftState done [21:36:12]FM_GetShiftState done [21:36:12]opened in 1729729801 [21:36:12]opened+sec_in_day 1729816201 [21:36:12]quantity*price = 0 [21:36:12]sum+1 = 1 [21:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 208 24.10.2024 21:36 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74764 ФПД: 119094362334889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213625&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74764&fm=119094362334889&tin=02508201610067®Number=0000000000091691&sum=0 [21:36:13]StoreToDocumentArchive [21:36:13]shift 510 fd 74764 [21:36:13]save to /storage/0510/doc_00074764 [21:36:13]save last doc name /storage/0510/doc_00074764 to /storage/kkm_last_doc_name [21:36:13]save OK [21:36:13]Clear old archive folders... [21:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:36:13]tlvbuf is 007C6330 [21:36:13]SAM_PROTO_ClearQueue [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 09 00 00 [21:36:13]Write to MH i2c: E2 08 00 3D 97 80 09 00 00 00 00 00 00 46 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 3D 97 00 90 00 48 [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]SAM_PROTO_ClearQueue done [21:36:13]KKMCreateOFDPacket [21:36:13]OFDProtocolAddRootSTLVToBuf [21:36:13]FM_MakeSignedData [21:36:13]FM_MakeSignedData [21:36:13]SAM_PROTO_SignData [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 01 02 [21:36:13]Write to MH i2c: E2 08 00 3E 97 80 0D 01 02 00 00 00 00 4E [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 3E 97 00 90 00 49 [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=255 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D9 BD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0C 24 01 [21:36:13]Write to MH i2c: E2 02 01 3F 97 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D9 BD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0C 24 01 00 00 C8 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 3F 97 00 90 00 4A [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=16 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6C 50 D1 29 66 A9 [21:36:13]Write to MH i2c: E2 13 00 40 97 80 0D 02 02 0B 00 00 35 04 06 00 6C 50 D1 29 66 A9 00 00 6B [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 40 97 00 90 00 4B [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 03 02 [21:36:13]Write to MH i2c: E2 08 00 41 97 80 0D 03 02 00 00 00 00 53 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 0B 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 0B 00 41 97 00 0C FE FA 93 58 14 20 FE 90 00 75 [21:36:13]RAPDU: 0C FE FA 93 58 14 20 FE 90 00 [21:36:13]wFMCommunicate OK [21:36:13]SAM_PROTO_SignData done [21:36:13]FM_MakeSignedData done [21:36:13]CreateOFDProtocolMessage [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 11 00 00 [21:36:13]Write to MH i2c: E2 08 00 42 97 80 11 00 00 00 00 00 00 53 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 17 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 17 00 42 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AB [21:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:36:13]wFMCommunicate OK [21:36:13]CreateOFDProtocolMessage done [21:36:13]OFDSenderStorePacket 74764 [21:36:13]StoreOFDPacket docnum=74764 [21:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 25 71 0D 01 CA C6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D9 BD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0C 24 01 00 35 04 06 00 6C 50 D1 29 66 A9 0C FE FA 93 58 14 20 FE [21:36:13]CheckFolder [21:36:13]dirname=/storage/ofd_packets [21:36:13]CheckFolder done [21:36:13]ProducePacketName [21:36:13]name=ofd_packets/00074764 [21:36:13]NVStorageSaveData ofd_packets/00074764 [21:36:13]File name is /storage/ofd_packets/00074764 [21:36:13]Write 307 bytes [21:36:13]NVStorageSaveData done [21:36:13]OFDSenderStorePacket done [21:36:13]KKMCreateOFDPacket done [21:36:13]NVStorageSaveData kkm_last_timestamp [21:36:13]File name is /storage/kkm_last_timestamp [21:36:13]Write 4 bytes [21:36:13]NVStorageSaveData done [21:36:13]ExternCall_PrintAddStr [21:36:13]wPrintStart [21:36:13]Write to MH i2c: 01 00 00 43 97 DA [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 43 97 00 00 00 00 00 FF 0F EF [21:36:13]RasterBufferAndPrint [21:36:13]line Счет N : (1)190727 [21:36:13]line ИНН: 02508201610067 [21:36:13]line Контрольно-Кассовый Чек [21:36:13]line ПРОДАЖА [21:36:13]line ТРК (МРК, ГНК) : 32 [21:36:13]line Товар: 2710194240 [21:36:13]line D-ENERGY ДТ-К-2 [21:36:13]line 500.000 * 0.00 [21:36:13]line = 0.00 [21:36:13]line НДС 12% НСП 1% [21:36:13]line > о реализуемом товаре [21:36:13]line ИТОГО: 0.00 [21:36:13]line НСП 1% : 0.00 [21:36:13]line НДС 12% : 0.00 [21:36:13]line Наличными: 0.00 [21:36:13]line Безнал.: 0.00 [21:36:13]line Место: АЗС № 142 "Партнер Нефть" [21:36:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:36:13]line СНО: Общий режим [21:36:13]line Чек 208 24.10.2024 21:36 [21:36:13]line Смена: 510 ФФД: 1.0 [21:36:13]line ЗНМ: 0300000089 [21:36:13]line РНМ: 0000000000091691 [21:36:13]line Версия ККМ: 001 [21:36:13]line Талоны: Топливная Карта [21:36:13]line 82575 [21:36:13]line ФМ: 0000000000871795 [21:36:13]line ФД: 74764 [21:36:13]line ФПД: 119094362334889 [21:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213625&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74764&fm=119094362334889&tin=02508201610067®Number=0000000000091691&sum=0 [21:36:14]OFD Sender: Processing packet 74764 [packets to send 13, broken 12] [21:36:14]ProducePacketName [21:36:14]name=ofd_packets/00074764 [21:36:14]OFD Sender: To server: pG, [21:36:14]CommunicateWithHost lk.salyk.kg:30040 [21:36:14]ConnectInit lk.salyk.kg [21:36:14]written 0, free lines is 4095 [21:36:14]Connected sock=10 [21:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 25 71 0D 01 CA C6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D9 BD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0C 24 01 00 35 04 06 00 6C 50 D1 29 66 A9 0C FE FA 93 58 14 20 FE [21:36:14]Write to MH i2c: 01 00 00 6D 97 04 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 6D 97 00 00 00 00 00 BA 0C D1 [21:36:14]RasterBufferAndPrint [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]written 0, free lines is 3265 [21:36:14]MH_Cut [21:36:14]Write to MH i2c: D1 01 00 74 97 01 DD [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 01 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 01 00 74 97 00 DC [21:36:14]Write to MH i2c: 01 00 00 75 97 0C [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 53 87 47 00 F7 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 31 37 39 35 10 04 04 00 0C 24 01 00 F4 03 04 00 5A 65 1A 67 B6 04 01 00 00 61 39 DD 7F 2C D4 5D 5A [21:36:14]CommunicateWithHost err = 0 [21:36:14]CheckOFDResponse [21:36:14]1017 (14) - 77093643461234 [21:36:14]1041 (16) - 0000000000871795 [21:36:14]1040 (4) - 74764 [21:36:14]1012 (4) - 24.10.2024 15:18 [21:36:14]1206 (1) - 0 [21:36:14]OFD Sender: Remove packet 74764 [21:36:14]ProducePacketName [21:36:14]name=ofd_packets/00074764 [21:36:14]NVStorageDeleteData [21:36:15]OFD Sender: No OFD packet to send [21:36:15]*** Cut start [21:36:15]*** Partial cut [21:36:15]*** CUTSNS_PIN = 1 [21:36:15]*** CUTSNS_PIN = 0 [21:36:15]*** Brake cut motor [21:36:16]Read from MH i2c: 01 [21:36:16]MH_I2C_Read... [21:36:16]*** Stop cut motor [21:36:16]*** Cut end [21:36:16]Read from MH i2c: 01 07 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: 01 07 00 75 97 00 00 00 00 00 FF 0F 21 [21:36:16]process_action close_receipt done [21:36:16]requested_data is exist [21:36:16]produce_requested_data [21:36:16]requested_item fm.sn is exist - process it [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 11 00 00 [21:36:16]Write to MH i2c: E2 08 00 76 97 80 11 00 00 00 00 00 00 87 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 17 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 17 00 76 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DF [21:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:36:16]wFMCommunicate OK [21:36:16]requested_item fd.num is exist - process it [21:36:16]SAM_PROTO_GetFieldsCounters [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 00 00 [21:36:16]Write to MH i2c: E2 08 00 77 97 80 13 00 00 00 00 00 00 8A [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 62 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 62 00 77 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0C 24 01 00 0E 04 04 00 FE 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 51 [21:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0C 24 01 00 0E 04 04 00 FE 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 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetFieldsCounters done [21:36:16]requested_item shift.num is exist - process it [21:36:16]requested_item shift.opened is exist - process it [21:36:16]req_shift_opened [21:36:16]FM_GetShiftState [21:36:16]SAM_PROTO_GetShiftState [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 01 00 [21:36:16]Write to MH i2c: E2 08 00 78 97 80 13 01 00 00 00 00 00 8C [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 78 97 00 09 00 01 09 95 19 67 00 00 00 00 90 00 B6 [21:36:16]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetShiftState done [21:36:16]FM_GetShiftState done [21:36:16]req_shift_opened done [21:36:16]requested_item shift.open_date is exist - process it [21:36:16]req_shift_open_date [21:36:16]req_shift_open_date done [21:36:16]produce_requested_data done [21:36:16]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74764,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:36:16]process_action_free close_receipt [21:36:16]json_value_free [21:36:16]json_value_free done [21:36:16]process_json_proto returns [21:36:16]Send response to host [21:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74764,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:36:16]free response buf [21:36:16]execute_script done [21:36:16]execute_script returns [21:36:16]free content buf [21:36:16]Sock 8.Close socket [21:36:16]Sock 8.Thread stoped [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:54]accept exits with 9 [21:36:54]New connection [21:36:54]New thread 3066662244 created [21:36:54]Thread 3066805604 joined [21:36:54]Waiting for new connection... [21:36:54] Sock 9.Parse request [21:36:54]Sock 9.Check first char [21:36:54]Sock 9.First char is OK [21:36:54]request: POST /json_proto HTTP/1.0 [21:36:54]Method: POST [21:36:54]URL: /json_proto [21:36:54]Method is POST - this is cgi request [21:36:54]url: /json_proto [21:36:54]query_string will be loaded in cgi processing [21:36:54]execute_cgi json_proto POST (null) [21:36:54]execute_cgi path=json_proto method=POST [21:36:54]POST find Content-Length [21:36:54]Host: 172.17.39.131:8080 [21:36:54]Content-Length: 679 [21:36:54]Content-Type: application/json [21:36:54] [21:36:54]POST finish read [21:36:54]Found Content-Length = 679 [21:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [21:36:54]execute_script... [21:36: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)190735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [21:36:54]POST & json_proto [21:36:54]process_json_proto [21:36:54]json parsed OK: [21:36:54]protocol is kg_v1.0 [21:36:54]action value=close_receipt [21:36:54]process_action close_receipt [21:36:54]cmd_close_receipt [21:36:54]MH_GetDate [21:36:54]Write to MH i2c: F0 00 00 79 97 FF [21:36:54]Write i2c OK [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: F0 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: F0 09 00 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: F0 09 00 79 97 00 03 BE 1A 67 86 57 24 65 B0 [21:36:54]GetLastDocTimeStamp 1729805785 [21:36:54]current date 1729805827 [21:36:54]FM_GetShiftState [21:36:54]SAM_PROTO_GetShiftState [21:36:54]wFMCommunicate request_size=4 [21:36:54]MH_SAM_APDU [21:36:54]CAPDU: 80 13 01 00 [21:36:54]Write to MH i2c: E2 08 00 7A 97 80 13 01 00 00 00 00 00 8E [21:36:54]Write i2c OK [21:36:54]MH_I2C_Read... [21:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:54]Read from MH i2c: E2 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: E2 0E 00 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: E2 0E 00 7A 97 00 09 00 01 09 95 19 67 00 00 00 00 90 00 B8 [21:36:54]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:36:54]wFMCommunicate OK [21:36:54]SAM_PROTO_GetShiftState done [21:36:54]FM_GetShiftState done [21:36:54]opened in 1729729801 [21:36:54]opened+sec_in_day 1729816201 [21:36:54]quantity*price = 150037 [21:36:54]sum+1 = 150039 [21:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 209 24.10.2024 21:37 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74765 ФПД: 87756724545728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213707&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74765&fm=87756724545728&tin=02508201610067®Number=0000000000091691&sum=150000 [21:36:55]StoreToDocumentArchive [21:36:55]shift 510 fd 74765 [21:36:55]save to /storage/0510/doc_00074765 [21:36:55]save last doc name /storage/0510/doc_00074765 to /storage/kkm_last_doc_name [21:36:55]save OK [21:36:55]Clear old archive folders... [21:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:36:55]tlvbuf is 00AAF500 [21:36:55]SAM_PROTO_ClearQueue [21:36:55]wFMCommunicate request_size=4 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 09 00 00 [21:36:55]Write to MH i2c: E2 08 00 87 97 80 09 00 00 00 00 00 00 90 [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 87 97 00 90 00 92 [21:36:55]RAPDU: 90 00 [21:36:55]wFMCommunicate OK [21:36:55]SAM_PROTO_ClearQueue done [21:36:55]KKMCreateOFDPacket [21:36:55]OFDProtocolAddRootSTLVToBuf [21:36:55]FM_MakeSignedData [21:36:55]FM_MakeSignedData [21:36:55]SAM_PROTO_SignData [21:36:55]wFMCommunicate request_size=4 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 0D 01 02 [21:36:55]Write to MH i2c: E2 08 00 88 97 80 0D 01 02 00 00 00 00 98 [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 88 97 00 90 00 93 [21:36:55]RAPDU: 90 00 [21:36:55]wFMCommunicate OK [21:36:55]wFMCommunicate request_size=255 [21:36:55]MH_SAM_APDU [21:36: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 D1 00 00 00 F4 03 04 00 03 BE 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0D 24 01 00 35 04 06 00 4F D0 74 64 [21:36:55]Write to MH i2c: E2 02 01 89 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 D1 00 00 00 F4 03 04 00 03 BE 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0D 24 01 00 35 04 06 00 4F D0 74 64 00 00 D4 [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 89 97 00 90 00 94 [21:36:55]RAPDU: 90 00 [21:36:55]wFMCommunicate OK [21:36:55]wFMCommunicate request_size=7 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 0D 02 02 02 A8 C0 [21:36:55]Write to MH i2c: E2 0A 00 8A 97 80 0D 02 02 02 00 A8 C0 00 00 07 [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 03 00 8A 97 00 90 00 95 [21:36:55]RAPDU: 90 00 [21:36:55]wFMCommunicate OK [21:36:55]wFMCommunicate request_size=4 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 0D 03 02 [21:36:55]Write to MH i2c: E2 08 00 8B 97 80 0D 03 02 00 00 00 00 9D [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 0B 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 0B 00 8B 97 00 07 0B B0 84 92 BA E0 57 90 00 67 [21:36:55]RAPDU: 07 0B B0 84 92 BA E0 57 90 00 [21:36:55]wFMCommunicate OK [21:36:55]SAM_PROTO_SignData done [21:36:55]FM_MakeSignedData done [21:36:55]CreateOFDProtocolMessage [21:36:55]wFMCommunicate request_size=4 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 11 00 00 [21:36:55]Write to MH i2c: E2 08 00 8C 97 80 11 00 00 00 00 00 00 9D [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 17 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 17 00 8C 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F5 [21:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:36:55]wFMCommunicate OK [21:36:55]CreateOFDProtocolMessage done [21:36:55]OFDSenderStorePacket 74765 [21:36:55]StoreOFDPacket docnum=74765 [21:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 C1 49 04 01 1F 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 D1 00 00 00 F4 03 04 00 03 BE 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0D 24 01 00 35 04 06 00 4F D0 74 64 A8 C0 07 0B B0 84 92 BA E0 57 [21:36:55]CheckFolder [21:36:55]dirname=/storage/ofd_packets [21:36:55]CheckFolder done [21:36:55]ProducePacketName [21:36:55]name=ofd_packets/00074765 [21:36:55]NVStorageSaveData ofd_packets/00074765 [21:36:55]File name is /storage/ofd_packets/00074765 [21:36:55]Write 298 bytes [21:36:55]NVStorageSaveData done [21:36:55]OFDSenderStorePacket done [21:36:55]KKMCreateOFDPacket done [21:36:55]NVStorageSaveData kkm_last_timestamp [21:36:55]File name is /storage/kkm_last_timestamp [21:36:55]Write 4 bytes [21:36:55]NVStorageSaveData done [21:36:55]ExternCall_PrintAddStr [21:36:55]wPrintStart [21:36:55]Write to MH i2c: 01 00 00 8D 97 24 [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: 01 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: 01 07 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: 01 07 00 8D 97 00 00 00 00 00 FF 0F 39 [21:36:55]RasterBufferAndPrint [21:36:55]line Счет N : (1)190735 [21:36:55]line ИНН: 02508201610067 [21:36:55]line Контрольно-Кассовый Чек [21:36:55]line ПРОДАЖА [21:36:55]line ТРК (МРК, ГНК) : 31 [21:36:55]line Товар: 2710194210 [21:36:55]line ДТ-К-4 [21:36:55]line 19.690 * 76.20 [21:36:55]line = 1500.38 [21:36:55]line НДС 12% НСП 1% [21:36:55]line > о реализуемом товаре [21:36:55]line ОКРУГЛЕНИЕ: -0.38 [21:36:55]line ИТОГО: 1500.00 [21:36:55]line Внесено: 1500.00 [21:36:55]line СДАЧА: 0.00 [21:36:55]line НСП 1% : 13.28 [21:36:55]line НДС 12% : 159.33 [21:36:55]line Наличными: 1500.00 [21:36:55]line Безнал.: 0.00 [21:36:55]line Место: АЗС № 142 "Партнер Нефть" [21:36:55]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:36:55]line СНО: Общий режим [21:36:55]line Чек 209 24.10.2024 21:37 [21:36:55]line Смена: 510 ФФД: 1.0 [21:36:55]line ЗНМ: 0300000089 [21:36:55]line РНМ: 0000000000091691 [21:36:55]line Версия ККМ: 001 [21:36:55]line ФМ: 0000000000871795 [21:36:55]line ФД: 74765 [21:36:55]line ФПД: 87756724545728 [21:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213707&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74765&fm=87756724545728&tin=02508201610067®Number=0000000000091691&sum=150000 [21:36:56]OFD Sender: Processing packet 74765 [packets to send 13, broken 12] [21:36:56]ProducePacketName [21:36:56]name=ofd_packets/00074765 [21:36:56]OFD Sender: To server: pG, [21:36:56]CommunicateWithHost lk.salyk.kg:30040 [21:36:56]ConnectInit lk.salyk.kg [21:36:56]written 0, free lines is 4095 [21:36:56]Connected sock=10 [21:36:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 C1 49 04 01 1F 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 D1 00 00 00 F4 03 04 00 03 BE 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0D 24 01 00 35 04 06 00 4F D0 74 64 A8 C0 07 0B B0 84 92 BA E0 57 [21:36:56]Write to MH i2c: 01 00 00 B8 97 4F [21:36:56]Write i2c OK [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: 01 [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: 01 07 00 [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: 01 07 00 B8 97 00 00 00 00 00 B1 0C 13 [21:36:56]RasterBufferAndPrint [21:36:56]line [21:36:56]line [21:36:56]line [21:36:56]line [21:36:56]line [21:36:56]written 0, free lines is 3255 [21:36:56]MH_Cut [21:36:56]Write to MH i2c: D1 01 00 BF 97 01 28 [21:36:56]Write i2c OK [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: D1 [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: D1 01 00 [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: D1 01 00 BF 97 00 27 [21:36:56]Write to MH i2c: 01 00 00 C0 97 57 [21:36:56]Write i2c OK [21:36:56]MH_I2C_Read... [21:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 EE 4D 47 00 54 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 31 37 39 35 10 04 04 00 0D 24 01 00 F4 03 04 00 84 65 1A 67 B6 04 01 00 00 90 C9 B8 A2 9E 70 99 A1 [21:36:56]CommunicateWithHost err = 0 [21:36:56]CheckOFDResponse [21:36:56]1017 (14) - 77093643461234 [21:36:56]1041 (16) - 0000000000871795 [21:36:56]1040 (4) - 74765 [21:36:56]1012 (4) - 24.10.2024 15:19 [21:36:56]1206 (1) - 0 [21:36:56]OFD Sender: Remove packet 74765 [21:36:56]ProducePacketName [21:36:56]name=ofd_packets/00074765 [21:36:56]NVStorageDeleteData [21:36:57]OFD Sender: No OFD packet to send [21:36:57]*** Cut start [21:36:57]*** Partial cut [21:36:57]*** CUTSNS_PIN = 1 [21:36:57]*** CUTSNS_PIN = 0 [21:36:57]*** Brake cut motor [21:36:58]Read from MH i2c: 01 [21:36:58]MH_I2C_Read... [21:36:58]*** Stop cut motor [21:36:58]*** Cut end [21:36:58]Read from MH i2c: 01 07 00 [21:36:58]MH_I2C_Read... [21:36:58]Read from MH i2c: 01 07 00 C0 97 00 00 00 00 00 FF 0F 6C [21:36:58]process_action close_receipt done [21:36:58]requested_data is exist [21:36:58]produce_requested_data [21:36:58]requested_item fm.sn is exist - process it [21:36:58]wFMCommunicate request_size=4 [21:36:58]MH_SAM_APDU [21:36:58]CAPDU: 80 11 00 00 [21:36:58]Write to MH i2c: E2 08 00 C1 97 80 11 00 00 00 00 00 00 D2 [21:36:58]Write i2c OK [21:36:58]MH_I2C_Read... [21:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:58]Read from MH i2c: E2 [21:36:58]MH_I2C_Read... [21:36:58]Read from MH i2c: E2 17 00 [21:36:58]MH_I2C_Read... [21:36:58]Read from MH i2c: E2 17 00 C1 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2A [21:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:36:58]wFMCommunicate OK [21:36:58]requested_item fd.num is exist - process it [21:36:58]SAM_PROTO_GetFieldsCounters [21:36:58]wFMCommunicate request_size=4 [21:36:58]MH_SAM_APDU [21:36:58]CAPDU: 80 13 00 00 [21:36:58]Write to MH i2c: E2 08 00 C2 97 80 13 00 00 00 00 00 00 D5 [21:36:58]Write i2c OK [21:36:58]MH_I2C_Read... [21:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:58]Read from MH i2c: E2 [21:36:58]MH_I2C_Read... [21:36:58]Read from MH i2c: E2 62 00 [21:36:58]MH_I2C_Read... [21:36:58]Read from MH i2c: E2 62 00 C2 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0D 24 01 00 0E 04 04 00 FE 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 A0 [21:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0D 24 01 00 0E 04 04 00 FE 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 [21:36:58]wFMCommunicate OK [21:36:58]SAM_PROTO_GetFieldsCounters done [21:36:58]requested_item shift.num is exist - process it [21:36:58]requested_item shift.opened is exist - process it [21:36:58]req_shift_opened [21:36:58]FM_GetShiftState [21:36:58]SAM_PROTO_GetShiftState [21:36:58]wFMCommunicate request_size=4 [21:36:58]MH_SAM_APDU [21:36:58]CAPDU: 80 13 01 00 [21:36:58]Write to MH i2c: E2 08 00 C3 97 80 13 01 00 00 00 00 00 D7 [21:36:58]Write i2c OK [21:36:58]MH_I2C_Read... [21:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:58]Read from MH i2c: E2 [21:36:58]MH_I2C_Read... [21:36:58]Read from MH i2c: E2 0E 00 [21:36:58]MH_I2C_Read... [21:36:58]Read from MH i2c: E2 0E 00 C3 97 00 09 00 01 09 95 19 67 00 00 00 00 90 00 01 [21:36:58]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:36:58]wFMCommunicate OK [21:36:58]SAM_PROTO_GetShiftState done [21:36:58]FM_GetShiftState done [21:36:58]req_shift_opened done [21:36:58]requested_item shift.open_date is exist - process it [21:36:58]req_shift_open_date [21:36:58]req_shift_open_date done [21:36:58]produce_requested_data done [21:36:58]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74765,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:36:58]process_action_free close_receipt [21:36:58]json_value_free [21:36:58]json_value_free done [21:36:58]process_json_proto returns [21:36:58]Send response to host [21:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74765,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:36:58]free response buf [21:36:58]execute_script done [21:36:58]execute_script returns [21:36:58]free content buf [21:36:58]Sock 9.Close socket [21:36:58]Sock 9.Thread stoped [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:47]accept exits with 8 [21:43:47]New connection [21:43:47]New thread 3066805604 created [21:43:47]Thread 3066662244 joined [21:43:47]Waiting for new connection... [21:43:47] Sock 8.Parse request [21:43:47]Sock 8.Check first char [21:43:47]Sock 8.First char is OK [21:43:47]request: POST /json_proto HTTP/1.0 [21:43:47]Method: POST [21:43:47]URL: /json_proto [21:43:47]Method is POST - this is cgi request [21:43:47]url: /json_proto [21:43:47]query_string will be loaded in cgi processing [21:43:47]execute_cgi json_proto POST (null) [21:43:47]execute_cgi path=json_proto method=POST [21:43:47]POST find Content-Length [21:43:47]Host: 172.17.39.131:8080 [21:43:47]Content-Length: 799 [21:43:47]Content-Type: application/json [21:43:47] [21:43:47]POST finish read [21:43:47]Found Content-Length = 799 [21:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:47]execute_script... [21:43:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:47]POST & json_proto [21:43:47]process_json_proto [21:43:47]json parsed OK: [21:43:47]protocol is kg_v1.0 [21:43:47]action value=close_receipt [21:43:47]process_action close_receipt [21:43:47]cmd_close_receipt [21:43:47]MH_GetDate [21:43:47]Write to MH i2c: F0 00 00 C4 97 4A [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: F0 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: F0 09 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: F0 09 00 C4 97 00 A0 BF 1A 67 86 57 24 65 99 [21:43:47]GetLastDocTimeStamp 1729805827 [21:43:47]current date 1729806240 [21:43:47]FM_GetShiftState [21:43:47]SAM_PROTO_GetShiftState [21:43:47]wFMCommunicate request_size=4 [21:43:47]MH_SAM_APDU [21:43:47]CAPDU: 80 13 01 00 [21:43:47]Write to MH i2c: E2 08 00 C5 97 80 13 01 00 00 00 00 00 D9 [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:47]Read from MH i2c: E2 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 0E 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 0E 00 C5 97 00 09 00 01 09 95 19 67 00 00 00 00 90 00 03 [21:43:47]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:43:47]wFMCommunicate OK [21:43:47]SAM_PROTO_GetShiftState done [21:43:47]FM_GetShiftState done [21:43:47]opened in 1729729801 [21:43:47]opened+sec_in_day 1729816201 [21:43:47]quantity*price = 0 [21:43:47]sum+1 = 1 [21:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 210 24.10.2024 21:44 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74766 ФПД: 207122914584249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214400&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74766&fm=207122914584249&tin=02508201610067®Number=0000000000091691&sum=0 [21:43:48]StoreToDocumentArchive [21:43:48]shift 510 fd 74766 [21:43:48]save to /storage/0510/doc_00074766 [21:43:48]save last doc name /storage/0510/doc_00074766 to /storage/kkm_last_doc_name [21:43:48]save OK [21:43:48]Clear old archive folders... [21:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:43:48]tlvbuf is 0081AA10 [21:43:48]SAM_PROTO_ClearQueue [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 09 00 00 [21:43:48]Write to MH i2c: E2 08 00 D2 97 80 09 00 00 00 00 00 00 DB [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 D2 97 00 90 00 DD [21:43:48]RAPDU: 90 00 [21:43:48]wFMCommunicate OK [21:43:48]SAM_PROTO_ClearQueue done [21:43:48]KKMCreateOFDPacket [21:43:48]OFDProtocolAddRootSTLVToBuf [21:43:48]FM_MakeSignedData [21:43:48]FM_MakeSignedData [21:43:48]SAM_PROTO_SignData [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 0D 01 02 [21:43:48]Write to MH i2c: E2 08 00 D3 97 80 0D 01 02 00 00 00 00 E3 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 03 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 03 00 D3 97 00 90 00 DE [21:43:49]RAPDU: 90 00 [21:43:49]wFMCommunicate OK [21:43:49]wFMCommunicate request_size=255 [21:43:49]MH_SAM_APDU [21:43:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 A0 BF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0E 24 01 [21:43:49]Write to MH i2c: E2 02 01 D4 97 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 A0 BF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0E 24 01 00 00 2A [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 03 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 03 00 D4 97 00 90 00 DF [21:43:49]RAPDU: 90 00 [21:43:49]wFMCommunicate OK [21:43:49]wFMCommunicate request_size=16 [21:43:49]MH_SAM_APDU [21:43:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BC 60 8F BF A6 B9 [21:43:49]Write to MH i2c: E2 13 00 D5 97 80 0D 02 02 0B 00 00 35 04 06 00 BC 60 8F BF A6 B9 00 00 04 [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 03 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 03 00 D5 97 00 90 00 E0 [21:43:49]RAPDU: 90 00 [21:43:49]wFMCommunicate OK [21:43:49]wFMCommunicate request_size=4 [21:43:49]MH_SAM_APDU [21:43:49]CAPDU: 80 0D 03 02 [21:43:49]Write to MH i2c: E2 08 00 D6 97 80 0D 03 02 00 00 00 00 E8 [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 0B 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 0B 00 D6 97 00 32 CE C1 97 3E 2E 9A 70 90 00 B7 [21:43:49]RAPDU: 32 CE C1 97 3E 2E 9A 70 90 00 [21:43:49]wFMCommunicate OK [21:43:49]SAM_PROTO_SignData done [21:43:49]FM_MakeSignedData done [21:43:49]CreateOFDProtocolMessage [21:43:49]wFMCommunicate request_size=4 [21:43:49]MH_SAM_APDU [21:43:49]CAPDU: 80 11 00 00 [21:43:49]Write to MH i2c: E2 08 00 D7 97 80 11 00 00 00 00 00 00 E8 [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 17 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 17 00 D7 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 40 [21:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:43:49]wFMCommunicate OK [21:43:49]CreateOFDProtocolMessage done [21:43:49]OFDSenderStorePacket 74766 [21:43:49]StoreOFDPacket docnum=74766 [21:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 2D 31 0D 01 D4 B3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 A0 BF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0E 24 01 00 35 04 06 00 BC 60 8F BF A6 B9 32 CE C1 97 3E 2E 9A 70 [21:43:49]CheckFolder [21:43:49]dirname=/storage/ofd_packets [21:43:49]CheckFolder done [21:43:49]ProducePacketName [21:43:49]name=ofd_packets/00074766 [21:43:49]NVStorageSaveData ofd_packets/00074766 [21:43:49]File name is /storage/ofd_packets/00074766 [21:43:49]Write 307 bytes [21:43:49]NVStorageSaveData done [21:43:49]OFDSenderStorePacket done [21:43:49]KKMCreateOFDPacket done [21:43:49]NVStorageSaveData kkm_last_timestamp [21:43:49]File name is /storage/kkm_last_timestamp [21:43:49]Write 4 bytes [21:43:49]NVStorageSaveData done [21:43:49]ExternCall_PrintAddStr [21:43:49]wPrintStart [21:43:49]Write to MH i2c: 01 00 00 D8 97 6F [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: 01 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: 01 07 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: 01 07 00 D8 97 00 00 00 00 00 FF 0F 84 [21:43:49]RasterBufferAndPrint [21:43:49]line Счет N : (1)190724 [21:43:49]line ИНН: 02508201610067 [21:43:49]line Контрольно-Кассовый Чек [21:43:49]line ПРОДАЖА [21:43:49]line ТРК (МРК, ГНК) : 42 [21:43:49]line Товар: 2710194240 [21:43:49]line D-ENERGY ДТ-К-2 [21:43:49]line 500.000 * 0.00 [21:43:49]line = 0.00 [21:43:49]line НДС 12% НСП 1% [21:43:49]line > о реализуемом товаре [21:43:49]line ИТОГО: 0.00 [21:43:49]line НСП 1% : 0.00 [21:43:49]line НДС 12% : 0.00 [21:43:49]line Наличными: 0.00 [21:43:49]line Безнал.: 0.00 [21:43:49]line Место: АЗС № 142 "Партнер Нефть" [21:43:49]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:43:49]line СНО: Общий режим [21:43:49]line Чек 210 24.10.2024 21:44 [21:43:49]line Смена: 510 ФФД: 1.0 [21:43:49]line ЗНМ: 0300000089 [21:43:49]line РНМ: 0000000000091691 [21:43:49]line Версия ККМ: 001 [21:43:49]line Талоны: Топливная Карта [21:43:49]line 82575 [21:43:49]line ФМ: 0000000000871795 [21:43:49]line ФД: 74766 [21:43:49]line ФПД: 207122914584249 [21:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214400&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74766&fm=207122914584249&tin=02508201610067®Number=0000000000091691&sum=0 [21:43:49]OFD Sender: Processing packet 74766 [packets to send 13, broken 12] [21:43:49]ProducePacketName [21:43:49]name=ofd_packets/00074766 [21:43:49]OFD Sender: To server: pG, [21:43:49]CommunicateWithHost lk.salyk.kg:30040 [21:43:49]ConnectInit lk.salyk.kg [21:43:49]written 0, free lines is 4095 [21:43:49]Connected sock=10 [21:43:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 2D 31 0D 01 D4 B3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 A0 BF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0E 24 01 00 35 04 06 00 BC 60 8F BF A6 B9 32 CE C1 97 3E 2E 9A 70 [21:43:50]Write to MH i2c: 01 00 00 02 98 9A [21:43:50]Write i2c OK [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: 01 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: 01 07 00 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: 01 07 00 02 98 00 00 00 00 00 B6 0C 63 [21:43:50]RasterBufferAndPrint [21:43:50]line [21:43:50]line [21:43:50]line [21:43:50]line [21:43:50]line [21:43:50]written 0, free lines is 3260 [21:43:50]MH_Cut [21:43:50]Write to MH i2c: D1 01 00 09 98 01 73 [21:43:50]Write i2c OK [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: D1 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: D1 01 00 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: D1 01 00 09 98 00 72 [21:43:50]Write to MH i2c: 01 00 00 0A 98 A2 [21:43:50]Write i2c OK [21:43:50]MH_I2C_Read... [21:43:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8E BE 47 00 C1 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0E 24 01 00 F4 03 04 00 22 67 1A 67 B6 04 01 00 00 77 8F A9 82 2F F5 56 77 [21:43:50]CommunicateWithHost err = 0 [21:43:50]CheckOFDResponse [21:43:50]1017 (14) - 77093643461234 [21:43:50]1041 (16) - 0000000000871795 [21:43:50]1040 (4) - 74766 [21:43:50]1012 (4) - 24.10.2024 15:26 [21:43:50]1206 (1) - 0 [21:43:50]OFD Sender: Remove packet 74766 [21:43:50]ProducePacketName [21:43:50]name=ofd_packets/00074766 [21:43:50]NVStorageDeleteData [21:43:50]OFD Sender: No OFD packet to send [21:43:51]*** Cut start [21:43:51]*** Partial cut [21:43:51]*** CUTSNS_PIN = 1 [21:43:51]*** CUTSNS_PIN = 0 [21:43:51]*** Brake cut motor [21:43:51]Read from MH i2c: 01 [21:43:51]MH_I2C_Read... [21:43:51]*** Stop cut motor [21:43:51]*** Cut end [21:43:51]Read from MH i2c: 01 07 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: 01 07 00 0A 98 00 00 00 00 00 FF 0F B7 [21:43:51]process_action close_receipt done [21:43:51]requested_data is exist [21:43:51]produce_requested_data [21:43:51]requested_item fm.sn is exist - process it [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 11 00 00 [21:43:51]Write to MH i2c: E2 08 00 0B 98 80 11 00 00 00 00 00 00 1D [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 17 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 17 00 0B 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [21:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:43:51]wFMCommunicate OK [21:43:51]requested_item fd.num is exist - process it [21:43:51]SAM_PROTO_GetFieldsCounters [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 13 00 00 [21:43:51]Write to MH i2c: E2 08 00 0C 98 80 13 00 00 00 00 00 00 20 [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 62 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 62 00 0C 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0E 24 01 00 0E 04 04 00 FE 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 EF [21:43:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0E 24 01 00 0E 04 04 00 FE 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 [21:43:51]wFMCommunicate OK [21:43:51]SAM_PROTO_GetFieldsCounters done [21:43:51]requested_item shift.num is exist - process it [21:43:51]requested_item shift.opened is exist - process it [21:43:51]req_shift_opened [21:43:51]FM_GetShiftState [21:43:51]SAM_PROTO_GetShiftState [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 13 01 00 [21:43:51]Write to MH i2c: E2 08 00 0D 98 80 13 01 00 00 00 00 00 22 [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 0E 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 0E 00 0D 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 4C [21:43:51]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [21:43:51]wFMCommunicate OK [21:43:51]SAM_PROTO_GetShiftState done [21:43:51]FM_GetShiftState done [21:43:51]req_shift_opened done [21:43:51]requested_item shift.open_date is exist - process it [21:43:51]req_shift_open_date [21:43:51]req_shift_open_date done [21:43:51]produce_requested_data done [21:43:51]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74766,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [21:43:51]process_action_free close_receipt [21:43:51]json_value_free [21:43:51]json_value_free done [21:43:51]process_json_proto returns [21:43:51]Send response to host [21:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74766,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [21:43:51]free response buf [21:43:51]execute_script done [21:43:51]execute_script returns [21:43:51]free content buf [21:43:51]Sock 8.Close socket [21:43:51]Sock 8.Thread stoped [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:07]int [22:13:07]Write to MH i2c: 01 00 00 0E 98 A6 [22:13:07]*** FLAG_PRN_KEY set [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 0E 98 00 08 00 00 00 FF 0F C3 [22:13:07]state=0 [22:13:07]Key pressed [22:13:07]Feed [22:13:07]Write to MH i2c: D8 00 00 0F 98 7E [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D8 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D8 01 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D8 01 00 0F 98 00 7F [22:13:07]int [22:13:07]Write to MH i2c: 01 00 00 10 98 A8 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 10 98 00 48 00 00 00 3C 00 33 [22:13:07]state=2 [22:13:07]Key pressed [22:13:07]int [22:13:07]Write to MH i2c: 01 00 00 11 98 A9 [22:13:07]*** FLAG_PRN_KEY reset [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 11 98 00 00 00 00 00 F5 0F B4 [22:13:07]state=2 [22:13:07]Stop feed [22:13:07]int [22:13:07]Write to MH i2c: 01 00 00 12 98 AA [22:13:07]*** FLAG_PRN_KEY set [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 12 98 00 08 00 00 00 FF 0F C7 [22:13:07]state=0 [22:13:07]Key pressed [22:13:07]Feed [22:13:07]Write to MH i2c: D8 00 00 13 98 82 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D8 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D8 01 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D8 01 00 13 98 00 83 [22:13:07]int [22:13:07]Write to MH i2c: 01 00 00 14 98 AC [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 14 98 00 48 00 00 00 3C 00 37 [22:13:07]state=2 [22:13:07]Key pressed [22:13:08]int [22:13:08]Write to MH i2c: 01 00 00 15 98 AD [22:13:08]*** FLAG_PRN_KEY reset [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: 01 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: 01 07 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: 01 07 00 15 98 00 00 00 00 00 F6 0F B9 [22:13:08]state=2 [22:13:08]Stop feed [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:56]accept exits with 9 [22:30:56]New connection [22:30:56]New thread 3066662244 created [22:30:56]Thread 3066805604 joined [22:30:56]Waiting for new connection... [22:30:56] Sock 9.Parse request [22:30:56]Sock 9.Check first char [22:30:56]Sock 9.First char is OK [22:30:56]request: POST /json_proto HTTP/1.0 [22:30:56]Method: POST [22:30:56]URL: /json_proto [22:30:56]Method is POST - this is cgi request [22:30:56]url: /json_proto [22:30:56]query_string will be loaded in cgi processing [22:30:56]execute_cgi json_proto POST (null) [22:30:56]execute_cgi path=json_proto method=POST [22:30:56]POST find Content-Length [22:30:56]Host: 172.17.39.131:8080 [22:30:56]Content-Length: 799 [22:30:56]Content-Type: application/json [22:30:56] [22:30:56]POST finish read [22:30:56]Found Content-Length = 799 [22:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:56]execute_script... [22:30: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)190736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:56]POST & json_proto [22:30:56]process_json_proto [22:30:56]json parsed OK: [22:30:56]protocol is kg_v1.0 [22:30:56]action value=close_receipt [22:30:56]process_action close_receipt [22:30:56]cmd_close_receipt [22:30:56]MH_GetDate [22:30:56]Write to MH i2c: F0 00 00 16 98 9D [22:30:56]Write i2c OK [22:30:56]MH_I2C_Read... [22:30:56]Read from MH i2c: F0 [22:30:56]MH_I2C_Read... [22:30:56]Read from MH i2c: F0 09 00 [22:30:56]MH_I2C_Read... [22:30:56]Read from MH i2c: F0 09 00 16 98 00 AE CA 1A 67 86 57 24 65 05 [22:30:56]GetLastDocTimeStamp 1729806240 [22:30:56]current date 1729809070 [22:30:56]FM_GetShiftState [22:30:56]SAM_PROTO_GetShiftState [22:30:56]wFMCommunicate request_size=4 [22:30:56]MH_SAM_APDU [22:30:56]CAPDU: 80 13 01 00 [22:30:56]Write to MH i2c: E2 08 00 17 98 80 13 01 00 00 00 00 00 2C [22:30:56]Write i2c OK [22:30:56]MH_I2C_Read... [22:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:56]Read from MH i2c: E2 [22:30:56]MH_I2C_Read... [22:30:56]Read from MH i2c: E2 0E 00 [22:30:56]MH_I2C_Read... [22:30:56]Read from MH i2c: E2 0E 00 17 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 56 [22:30:56]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [22:30:56]wFMCommunicate OK [22:30:56]SAM_PROTO_GetShiftState done [22:30:56]FM_GetShiftState done [22:30:56]opened in 1729729801 [22:30:56]opened+sec_in_day 1729816201 [22:30:56]quantity*price = 0 [22:30:56]sum+1 = 1 [22:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 211 24.10.2024 22:31 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74767 ФПД: 233345134956023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223110&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74767&fm=233345134956023&tin=02508201610067®Number=0000000000091691&sum=0 [22:30:57]StoreToDocumentArchive [22:30:57]shift 510 fd 74767 [22:30:57]save to /storage/0510/doc_00074767 [22:30:57]save last doc name /storage/0510/doc_00074767 to /storage/kkm_last_doc_name [22:30:57]save OK [22:30:57]Clear old archive folders... [22:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:30:57]tlvbuf is 00A9DB10 [22:30:57]SAM_PROTO_ClearQueue [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 09 00 00 [22:30:57]Write to MH i2c: E2 08 00 24 98 80 09 00 00 00 00 00 00 2E [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 24 98 00 90 00 30 [22:30:57]RAPDU: 90 00 [22:30:57]wFMCommunicate OK [22:30:57]SAM_PROTO_ClearQueue done [22:30:57]KKMCreateOFDPacket [22:30:57]OFDProtocolAddRootSTLVToBuf [22:30:57]FM_MakeSignedData [22:30:57]FM_MakeSignedData [22:30:57]SAM_PROTO_SignData [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 0D 01 02 [22:30:57]Write to MH i2c: E2 08 00 25 98 80 0D 01 02 00 00 00 00 36 [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 25 98 00 90 00 31 [22:30:57]RAPDU: 90 00 [22:30:57]wFMCommunicate OK [22:30:57]wFMCommunicate request_size=255 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 AE CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 24 01 [22:30:57]Write to MH i2c: E2 02 01 26 98 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 AE CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 24 01 00 00 98 [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:58]OFD Sender: No OFD packet to send [22:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:58]Read from MH i2c: E2 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 03 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 03 00 26 98 00 90 00 32 [22:30:58]RAPDU: 90 00 [22:30:58]wFMCommunicate OK [22:30:58]wFMCommunicate request_size=16 [22:30:58]MH_SAM_APDU [22:30:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D4 39 E5 E1 0D F7 [22:30:58]Write to MH i2c: E2 13 00 27 98 80 0D 02 02 0B 00 00 35 04 06 00 D4 39 E5 E1 0D F7 00 00 65 [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:58]Read from MH i2c: E2 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 03 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 03 00 27 98 00 90 00 33 [22:30:58]RAPDU: 90 00 [22:30:58]wFMCommunicate OK [22:30:58]wFMCommunicate request_size=4 [22:30:58]MH_SAM_APDU [22:30:58]CAPDU: 80 0D 03 02 [22:30:58]Write to MH i2c: E2 08 00 28 98 80 0D 03 02 00 00 00 00 3B [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:58]Read from MH i2c: E2 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 0B 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 0B 00 28 98 00 0F 4B F4 95 09 E6 5E 6B 90 00 D7 [22:30:58]RAPDU: 0F 4B F4 95 09 E6 5E 6B 90 00 [22:30:58]wFMCommunicate OK [22:30:58]SAM_PROTO_SignData done [22:30:58]FM_MakeSignedData done [22:30:58]CreateOFDProtocolMessage [22:30:58]wFMCommunicate request_size=4 [22:30:58]MH_SAM_APDU [22:30:58]CAPDU: 80 11 00 00 [22:30:58]Write to MH i2c: E2 08 00 29 98 80 11 00 00 00 00 00 00 3B [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:58]Read from MH i2c: E2 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 17 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 17 00 29 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 93 [22:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:30:58]wFMCommunicate OK [22:30:58]CreateOFDProtocolMessage done [22:30:58]OFDSenderStorePacket 74767 [22:30:58]StoreOFDPacket docnum=74767 [22:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 CC D0 0D 01 69 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 AE CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 24 01 00 35 04 06 00 D4 39 E5 E1 0D F7 0F 4B F4 95 09 E6 5E 6B [22:30:58]CheckFolder [22:30:58]dirname=/storage/ofd_packets [22:30:58]CheckFolder done [22:30:58]ProducePacketName [22:30:58]name=ofd_packets/00074767 [22:30:58]NVStorageSaveData ofd_packets/00074767 [22:30:58]File name is /storage/ofd_packets/00074767 [22:30:58]Write 307 bytes [22:30:58]NVStorageSaveData done [22:30:58]OFDSenderStorePacket done [22:30:58]KKMCreateOFDPacket done [22:30:58]NVStorageSaveData kkm_last_timestamp [22:30:58]File name is /storage/kkm_last_timestamp [22:30:58]Write 4 bytes [22:30:58]NVStorageSaveData done [22:30:58]ExternCall_PrintAddStr [22:30:58]wPrintStart [22:30:58]Write to MH i2c: 01 00 00 2A 98 C2 [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: 01 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: 01 07 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: 01 07 00 2A 98 00 00 00 00 00 FF 0F D7 [22:30:58]RasterBufferAndPrint [22:30:58]line Счет N : (1)190736 [22:30:58]line ИНН: 02508201610067 [22:30:58]line Контрольно-Кассовый Чек [22:30:58]line ПРОДАЖА [22:30:58]line ТРК (МРК, ГНК) : 32 [22:30:58]line Товар: 2710194240 [22:30:58]line D-ENERGY ДТ-К-2 [22:30:58]line 500.000 * 0.00 [22:30:58]line = 0.00 [22:30:58]line НДС 12% НСП 1% [22:30:58]line > о реализуемом товаре [22:30:58]line ИТОГО: 0.00 [22:30:58]line НСП 1% : 0.00 [22:30:58]line НДС 12% : 0.00 [22:30:58]line Наличными: 0.00 [22:30:58]line Безнал.: 0.00 [22:30:58]line Место: АЗС № 142 "Партнер Нефть" [22:30:58]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:30:58]line СНО: Общий режим [22:30:58]line Чек 211 24.10.2024 22:31 [22:30:58]line Смена: 510 ФФД: 1.0 [22:30:58]line ЗНМ: 0300000089 [22:30:58]line РНМ: 0000000000091691 [22:30:58]line Версия ККМ: 001 [22:30:58]line Талоны: Топливная Карта [22:30:58]line 82575 [22:30:58]line ФМ: 0000000000871795 [22:30:58]line ФД: 74767 [22:30:58]line ФПД: 233345134956023 [22:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223110&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74767&fm=233345134956023&tin=02508201610067®Number=0000000000091691&sum=0 [22:30:58]OFD Sender: Processing packet 74767 [packets to send 13, broken 12] [22:30:58]ProducePacketName [22:30:58]name=ofd_packets/00074767 [22:30:58]OFD Sender: To server: pG, [22:30:58]CommunicateWithHost lk.salyk.kg:30040 [22:30:58]ConnectInit lk.salyk.kg [22:30:58]written 0, free lines is 4095 [22:30:58]Connected sock=10 [22:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 CC D0 0D 01 69 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 AE CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 24 01 00 35 04 06 00 D4 39 E5 E1 0D F7 0F 4B F4 95 09 E6 5E 6B [22:30:59]Write to MH i2c: 01 00 00 54 98 EC [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: 01 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: 01 07 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: 01 07 00 54 98 00 00 00 00 00 B8 0C B7 [22:30:59]RasterBufferAndPrint [22:30:59]line [22:30:59]line [22:30:59]line [22:30:59]line [22:30:59]line [22:30:59]written 0, free lines is 3262 [22:30:59]MH_Cut [22:30:59]Write to MH i2c: D1 01 00 5B 98 01 C5 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: D1 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: D1 01 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: D1 01 00 5B 98 00 C4 [22:30:59]Write to MH i2c: 01 00 00 5C 98 F4 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 61 AB 47 00 7B B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 24 01 00 F4 03 04 00 2F 72 1A 67 B6 04 01 00 00 12 DB 5E B5 81 90 B7 D1 [22:30:59]CommunicateWithHost err = 0 [22:30:59]CheckOFDResponse [22:30:59]1017 (14) - 77093643461234 [22:30:59]1041 (16) - 0000000000871795 [22:30:59]1040 (4) - 74767 [22:30:59]1012 (4) - 24.10.2024 16:13 [22:30:59]1206 (1) - 0 [22:30:59]OFD Sender: Remove packet 74767 [22:30:59]ProducePacketName [22:30:59]name=ofd_packets/00074767 [22:30:59]NVStorageDeleteData [22:30:59]OFD Sender: No OFD packet to send [22:31:00]*** Cut start [22:31:00]*** Partial cut [22:31:00]*** CUTSNS_PIN = 1 [22:31:00]*** CUTSNS_PIN = 0 [22:31:00]*** Brake cut motor [22:31:00]Read from MH i2c: 01 [22:31:00]MH_I2C_Read... [22:31:00]*** Stop cut motor [22:31:00]*** Cut end [22:31:00]Read from MH i2c: 01 07 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: 01 07 00 5C 98 00 00 00 00 00 FF 0F 09 [22:31:00]process_action close_receipt done [22:31:00]requested_data is exist [22:31:00]produce_requested_data [22:31:00]requested_item fm.sn is exist - process it [22:31:00]wFMCommunicate request_size=4 [22:31:00]MH_SAM_APDU [22:31:00]CAPDU: 80 11 00 00 [22:31:00]Write to MH i2c: E2 08 00 5D 98 80 11 00 00 00 00 00 00 6F [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:00]Read from MH i2c: E2 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 17 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 17 00 5D 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C7 [22:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:31:00]wFMCommunicate OK [22:31:00]requested_item fd.num is exist - process it [22:31:00]SAM_PROTO_GetFieldsCounters [22:31:00]wFMCommunicate request_size=4 [22:31:00]MH_SAM_APDU [22:31:00]CAPDU: 80 13 00 00 [22:31:00]Write to MH i2c: E2 08 00 5E 98 80 13 00 00 00 00 00 00 72 [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:00]Read from MH i2c: E2 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 62 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 62 00 5E 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0F 24 01 00 0E 04 04 00 FE 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 45 [22:31:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0F 24 01 00 0E 04 04 00 FE 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 [22:31:00]wFMCommunicate OK [22:31:00]SAM_PROTO_GetFieldsCounters done [22:31:00]requested_item shift.num is exist - process it [22:31:00]requested_item shift.opened is exist - process it [22:31:00]req_shift_opened [22:31:00]FM_GetShiftState [22:31:00]SAM_PROTO_GetShiftState [22:31:00]wFMCommunicate request_size=4 [22:31:00]MH_SAM_APDU [22:31:00]CAPDU: 80 13 01 00 [22:31:00]Write to MH i2c: E2 08 00 5F 98 80 13 01 00 00 00 00 00 74 [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 [22:31:00]MH_I2C_Read... [22:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:00]Read from MH i2c: E2 0E 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 0E 00 5F 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 9E [22:31:00]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [22:31:00]wFMCommunicate OK [22:31:00]SAM_PROTO_GetShiftState done [22:31:00]FM_GetShiftState done [22:31:00]req_shift_opened done [22:31:00]requested_item shift.open_date is exist - process it [22:31:00]req_shift_open_date [22:31:00]req_shift_open_date done [22:31:00]produce_requested_data done [22:31:00]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74767,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [22:31:00]process_action_free close_receipt [22:31:00]json_value_free [22:31:00]json_value_free done [22:31:00]process_json_proto returns [22:31:00]Send response to host [22:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74767,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [22:31:00]free response buf [22:31:00]execute_script done [22:31:00]execute_script returns [22:31:00]free content buf [22:31:00]Sock 9.Close socket [22:31:00]Sock 9.Thread stoped [22:31:03]int [22:31:03]Write to MH i2c: 01 00 00 60 98 F8 [22:31:03]*** FLAG_PRN_KEY set [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 60 98 00 08 00 00 00 FF 0F 15 [22:31:03]state=0 [22:31:03]Key pressed [22:31:03]Feed [22:31:03]Write to MH i2c: D8 00 00 61 98 D0 [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: D8 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: D8 01 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: D8 01 00 61 98 00 D1 [22:31:03]int [22:31:03]Write to MH i2c: 01 00 00 62 98 FA [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 62 98 00 48 00 00 00 3C 00 85 [22:31:03]state=2 [22:31:03]Key pressed [22:31:03]int [22:31:03]Write to MH i2c: 01 00 00 63 98 FB [22:31:03]*** FLAG_PRN_KEY reset [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 63 98 00 00 00 00 00 F7 0F 08 [22:31:03]state=2 [22:31:03]Stop feed [22:31:03]int [22:31:03]Write to MH i2c: 01 00 00 64 98 FC [22:31:03]*** FLAG_PRN_KEY set [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 64 98 00 08 00 00 00 FF 0F 19 [22:31:03]state=0 [22:31:03]Key pressed [22:31:03]Feed [22:31:03]Write to MH i2c: D8 00 00 65 98 D4 [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: D8 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: D8 01 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: D8 01 00 65 98 00 D5 [22:31:03]int [22:31:03]Write to MH i2c: 01 00 00 66 98 FE [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 66 98 00 48 00 00 00 3C 00 89 [22:31:03]state=2 [22:31:03]Key pressed [22:31:03]int [22:31:03]Write to MH i2c: 01 00 00 67 98 FF [22:31:03]*** FLAG_PRN_KEY reset [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: 01 07 00 67 98 00 00 00 00 00 FA 0F 0F [22:31:03]state=2 [22:31:03]Stop feed [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:25]accept exits with 8 [22:31:25]New connection [22:31:25]New thread 3066805604 created [22:31:25]Thread 3066662244 joined [22:31:25]Waiting for new connection... [22:31:25] Sock 8.Parse request [22:31:25]Sock 8.Check first char [22:31:25]Sock 8.First char is OK [22:31:25]request: POST /json_proto HTTP/1.0 [22:31:25]Method: POST [22:31:25]URL: /json_proto [22:31:25]Method is POST - this is cgi request [22:31:25]url: /json_proto [22:31:25]query_string will be loaded in cgi processing [22:31:25]execute_cgi json_proto POST (null) [22:31:25]execute_cgi path=json_proto method=POST [22:31:25]POST find Content-Length [22:31:25]Host: 172.17.39.131:8080 [22:31:25]Content-Length: 677 [22:31:25]Content-Type: application/json [22:31:25] [22:31:25]POST finish read [22:31:25]Found Content-Length = 677 [22:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:25]execute_script... [22:31:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:25]POST & json_proto [22:31:25]process_json_proto [22:31:25]json parsed OK: [22:31:25]protocol is kg_v1.0 [22:31:25]action value=close_receipt [22:31:25]process_action close_receipt [22:31:25]cmd_close_receipt [22:31:25]MH_GetDate [22:31:25]Write to MH i2c: F0 00 00 68 98 EF [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: F0 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: F0 09 00 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: F0 09 00 68 98 00 CA CA 1A 67 86 57 24 65 73 [22:31:25]GetLastDocTimeStamp 1729809070 [22:31:25]current date 1729809098 [22:31:25]FM_GetShiftState [22:31:25]SAM_PROTO_GetShiftState [22:31:25]wFMCommunicate request_size=4 [22:31:25]MH_SAM_APDU [22:31:25]CAPDU: 80 13 01 00 [22:31:25]Write to MH i2c: E2 08 00 69 98 80 13 01 00 00 00 00 00 7E [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:25]Read from MH i2c: E2 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 0E 00 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 0E 00 69 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A8 [22:31:25]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [22:31:25]wFMCommunicate OK [22:31:25]SAM_PROTO_GetShiftState done [22:31:25]FM_GetShiftState done [22:31:25]opened in 1729729801 [22:31:25]opened+sec_in_day 1729816201 [22:31:25]quantity*price = 35055 [22:31:25]sum+1 = 35057 [22:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 212 24.10.2024 22:31 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74768 ФПД: 159603021424582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223138&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74768&fm=159603021424582&tin=02508201610067®Number=0000000000091691&sum=35000 [22:31:26]StoreToDocumentArchive [22:31:26]shift 510 fd 74768 [22:31:26]save to /storage/0510/doc_00074768 [22:31:26]save last doc name /storage/0510/doc_00074768 to /storage/kkm_last_doc_name [22:31:26]save OK [22:31:26]Clear old archive folders... [22:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:31:26]tlvbuf is 008010B0 [22:31:26]SAM_PROTO_ClearQueue [22:31:26]wFMCommunicate request_size=4 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 09 00 00 [22:31:26]Write to MH i2c: E2 08 00 76 98 80 09 00 00 00 00 00 00 80 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 76 98 00 90 00 82 [22:31:26]RAPDU: 90 00 [22:31:26]wFMCommunicate OK [22:31:26]SAM_PROTO_ClearQueue done [22:31:26]KKMCreateOFDPacket [22:31:26]OFDProtocolAddRootSTLVToBuf [22:31:26]FM_MakeSignedData [22:31:26]FM_MakeSignedData [22:31:26]SAM_PROTO_SignData [22:31:26]wFMCommunicate request_size=4 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 0D 01 02 [22:31:26]Write to MH i2c: E2 08 00 77 98 80 0D 01 02 00 00 00 00 88 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 77 98 00 90 00 83 [22:31:26]RAPDU: 90 00 [22:31:26]wFMCommunicate OK [22:31:26]wFMCommunicate request_size=255 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 CA CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 24 01 00 35 04 06 00 91 [22:31:26]Write to MH i2c: E2 02 01 78 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 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 CA CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 24 01 00 35 04 06 00 91 00 00 D6 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 78 98 00 90 00 84 [22:31:26]RAPDU: 90 00 [22:31:26]wFMCommunicate OK [22:31:26]wFMCommunicate request_size=10 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 0D 02 02 05 28 79 65 A7 C6 [22:31:26]Write to MH i2c: E2 0D 00 79 98 80 0D 02 02 05 00 28 79 65 A7 C6 00 00 08 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 03 00 79 98 00 90 00 85 [22:31:26]RAPDU: 90 00 [22:31:26]wFMCommunicate OK [22:31:26]wFMCommunicate request_size=4 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 0D 03 02 [22:31:26]Write to MH i2c: E2 08 00 7A 98 80 0D 03 02 00 00 00 00 8D [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 0B 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 0B 00 7A 98 00 FF 9E 38 F3 BF C7 BF 8B 90 00 26 [22:31:26]RAPDU: FF 9E 38 F3 BF C7 BF 8B 90 00 [22:31:26]wFMCommunicate OK [22:31:26]SAM_PROTO_SignData done [22:31:26]FM_MakeSignedData done [22:31:26]CreateOFDProtocolMessage [22:31:26]wFMCommunicate request_size=4 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 11 00 00 [22:31:26]Write to MH i2c: E2 08 00 7B 98 80 11 00 00 00 00 00 00 8D [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 17 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 17 00 7B 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E5 [22:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:31:26]wFMCommunicate OK [22:31:26]CreateOFDProtocolMessage done [22:31:26]OFDSenderStorePacket 74768 [22:31:26]StoreOFDPacket docnum=74768 [22:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5F 6F 07 01 2D 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 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 CA CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 24 01 00 35 04 06 00 91 28 79 65 A7 C6 FF 9E 38 F3 BF C7 BF 8B [22:31:26]CheckFolder [22:31:26]dirname=/storage/ofd_packets [22:31:26]CheckFolder done [22:31:26]ProducePacketName [22:31:26]name=ofd_packets/00074768 [22:31:26]NVStorageSaveData ofd_packets/00074768 [22:31:26]File name is /storage/ofd_packets/00074768 [22:31:26]Write 301 bytes [22:31:26]NVStorageSaveData done [22:31:26]OFDSenderStorePacket done [22:31:26]KKMCreateOFDPacket done [22:31:26]NVStorageSaveData kkm_last_timestamp [22:31:26]File name is /storage/kkm_last_timestamp [22:31:26]Write 4 bytes [22:31:26]NVStorageSaveData done [22:31:26]ExternCall_PrintAddStr [22:31:26]wPrintStart [22:31:26]Write to MH i2c: 01 00 00 7C 98 14 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: 01 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: 01 07 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: 01 07 00 7C 98 00 00 00 00 00 FF 0F 29 [22:31:26]RasterBufferAndPrint [22:31:26]line Счет N : (1)190738 [22:31:26]line ИНН: 02508201610067 [22:31:26]line Контрольно-Кассовый Чек [22:31:26]line ПРОДАЖА [22:31:26]line ТРК (МРК, ГНК) : 21 [22:31:26]line Товар: 2710124130 [22:31:26]line Аи-92-К-5 [22:31:26]line 5.240 * 66.90 [22:31:26]line = 350.56 [22:31:26]line НДС 12% НСП 1% [22:31:26]line > о реализуемом товаре [22:31:26]line ОКРУГЛЕНИЕ: -0.56 [22:31:26]line ИТОГО: 350.00 [22:31:26]line Внесено: 350.00 [22:31:26]line СДАЧА: 0.00 [22:31:26]line НСП 1% : 3.10 [22:31:26]line НДС 12% : 37.23 [22:31:26]line Наличными: 350.00 [22:31:26]line Безнал.: 0.00 [22:31:26]line Место: АЗС № 142 "Партнер Нефть" [22:31:26]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:31:26]line СНО: Общий режим [22:31:26]line Чек 212 24.10.2024 22:31 [22:31:26]line Смена: 510 ФФД: 1.0 [22:31:26]line ЗНМ: 0300000089 [22:31:26]line РНМ: 0000000000091691 [22:31:26]line Версия ККМ: 001 [22:31:26]line ФМ: 0000000000871795 [22:31:26]line ФД: 74768 [22:31:26]line ФПД: 159603021424582 [22:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223138&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74768&fm=159603021424582&tin=02508201610067®Number=0000000000091691&sum=35000 [22:31:27]written 0, free lines is 4095 [22:31:27]OFD Sender: Processing packet 74768 [packets to send 13, broken 12] [22:31:27]ProducePacketName [22:31:27]name=ofd_packets/00074768 [22:31:27]OFD Sender: To server: pG, [22:31:27]CommunicateWithHost lk.salyk.kg:30040 [22:31:27]ConnectInit lk.salyk.kg [22:31:27]Connected sock=10 [22: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 31 37 39 35 0F 01 00 00 5F 6F 07 01 2D 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 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 CA CA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 24 01 00 35 04 06 00 91 28 79 65 A7 C6 FF 9E 38 F3 BF C7 BF 8B [22:31:27]Write to MH i2c: 01 00 00 A7 98 3F [22:31:27]Write i2c OK [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: 01 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: 01 07 00 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: 01 07 00 A7 98 00 00 00 00 00 AF 0C 01 [22:31:27]RasterBufferAndPrint [22:31:27]line [22:31:27]line [22:31:27]line [22:31:27]line [22:31:27]line [22:31:27]written 0, free lines is 3253 [22:31:27]MH_Cut [22:31:27]Write to MH i2c: D1 01 00 AE 98 01 18 [22:31:27]Write i2c OK [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: D1 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: D1 01 00 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: D1 01 00 AE 98 00 17 [22:31:27]Write to MH i2c: 01 00 00 AF 98 47 [22:31:27]Write i2c OK [22:31:27]MH_I2C_Read... [22:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B9 9B 47 00 A6 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 31 37 39 35 10 04 04 00 10 24 01 00 F4 03 04 00 4B 72 1A 67 B6 04 01 00 00 20 72 61 B4 90 9F 78 4F [22:31:27]CommunicateWithHost err = 0 [22:31:27]CheckOFDResponse [22:31:27]1017 (14) - 77093643461234 [22:31:27]1041 (16) - 0000000000871795 [22:31:27]1040 (4) - 74768 [22:31:27]1012 (4) - 24.10.2024 16:14 [22:31:27]1206 (1) - 0 [22:31:27]OFD Sender: Remove packet 74768 [22:31:27]ProducePacketName [22:31:27]name=ofd_packets/00074768 [22:31:27]NVStorageDeleteData [22:31:28]OFD Sender: No OFD packet to send [22:31:28]*** Cut start [22:31:28]*** Partial cut [22:31:28]*** CUTSNS_PIN = 1 [22:31:28]*** CUTSNS_PIN = 0 [22:31:28]*** Brake cut motor [22:31:29]Read from MH i2c: 01 [22:31:29]MH_I2C_Read... [22:31:29]*** Stop cut motor [22:31:29]*** Cut end [22:31:29]Read from MH i2c: 01 07 00 [22:31:29]MH_I2C_Read... [22:31:29]Read from MH i2c: 01 07 00 AF 98 00 00 00 00 00 FF 0F 5C [22:31:29]process_action close_receipt done [22:31:29]requested_data is exist [22:31:29]produce_requested_data [22:31:29]requested_item fm.sn is exist - process it [22:31:29]wFMCommunicate request_size=4 [22:31:29]MH_SAM_APDU [22:31:29]CAPDU: 80 11 00 00 [22:31:29]Write to MH i2c: E2 08 00 B0 98 80 11 00 00 00 00 00 00 C2 [22:31:29]Write i2c OK [22:31:29]MH_I2C_Read... [22:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:29]Read from MH i2c: E2 [22:31:29]MH_I2C_Read... [22:31:29]Read from MH i2c: E2 17 00 [22:31:29]MH_I2C_Read... [22:31:29]Read from MH i2c: E2 17 00 B0 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1A [22:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:31:29]wFMCommunicate OK [22:31:29]requested_item fd.num is exist - process it [22:31:29]SAM_PROTO_GetFieldsCounters [22:31:29]wFMCommunicate request_size=4 [22:31:29]MH_SAM_APDU [22:31:29]CAPDU: 80 13 00 00 [22:31:29]Write to MH i2c: E2 08 00 B1 98 80 13 00 00 00 00 00 00 C5 [22:31:29]Write i2c OK [22:31:29]MH_I2C_Read... [22:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:29]Read from MH i2c: E2 [22:31:29]MH_I2C_Read... [22:31:29]Read from MH i2c: E2 62 00 [22:31:29]MH_I2C_Read... [22:31:29]Read from MH i2c: E2 62 00 B1 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 10 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [22:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 10 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:31:29]wFMCommunicate OK [22:31:29]SAM_PROTO_GetFieldsCounters done [22:31:29]requested_item shift.num is exist - process it [22:31:29]requested_item shift.opened is exist - process it [22:31:29]req_shift_opened [22:31:29]FM_GetShiftState [22:31:29]SAM_PROTO_GetShiftState [22:31:29]wFMCommunicate request_size=4 [22:31:29]MH_SAM_APDU [22:31:29]CAPDU: 80 13 01 00 [22:31:29]Write to MH i2c: E2 08 00 B2 98 80 13 01 00 00 00 00 00 C7 [22:31:29]Write i2c OK [22:31:29]MH_I2C_Read... [22:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:29]Read from MH i2c: E2 [22:31:29]MH_I2C_Read... [22:31:29]Read from MH i2c: E2 0E 00 [22:31:29]MH_I2C_Read... [22:31:29]Read from MH i2c: E2 0E 00 B2 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F1 [22:31:29]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [22:31:29]wFMCommunicate OK [22:31:29]SAM_PROTO_GetShiftState done [22:31:29]FM_GetShiftState done [22:31:29]req_shift_opened done [22:31:29]requested_item shift.open_date is exist - process it [22:31:29]req_shift_open_date [22:31:29]req_shift_open_date done [22:31:29]produce_requested_data done [22:31:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74768,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [22:31:29]process_action_free close_receipt [22:31:29]json_value_free [22:31:29]json_value_free done [22:31:29]process_json_proto returns [22:31:29]Send response to host [22:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74768,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [22:31:29]free response buf [22:31:29]execute_script done [22:31:29]execute_script returns [22:31:29]free content buf [22:31:29]Sock 8.Close socket [22:31:29]Sock 8.Thread stoped [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:39:59]ConnectInit Can't connect to host [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:36]recv_with_timeout no data received [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:52]recv_with_timeout no data received [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:17]accept exits with 9 [22:44:17]New connection [22:44:17]New thread 3066662244 created [22:44:17]Thread 3066805604 joined [22:44:17]Waiting for new connection... [22:44:17] Sock 9.Parse request [22:44:17]Sock 9.Check first char [22:44:17]Sock 9.First char is OK [22:44:17]request: POST /json_proto HTTP/1.0 [22:44:17]Method: POST [22:44:17]URL: /json_proto [22:44:17]Method is POST - this is cgi request [22:44:17]url: /json_proto [22:44:17]query_string will be loaded in cgi processing [22:44:17]execute_cgi json_proto POST (null) [22:44:17]execute_cgi path=json_proto method=POST [22:44:17]POST find Content-Length [22:44:17]Host: 172.17.39.131:8080 [22:44:17]Content-Length: 682 [22:44:17]Content-Type: application/json [22:44:17] [22:44:17]POST finish read [22:44:17]Found Content-Length = 682 [22:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:17]execute_script... [22:44: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)190740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:17]POST & json_proto [22:44:17]process_json_proto [22:44:17]json parsed OK: [22:44:17]protocol is kg_v1.0 [22:44:17]action value=close_receipt [22:44:17]process_action close_receipt [22:44:17]cmd_close_receipt [22:44:17]MH_GetDate [22:44:17]Write to MH i2c: F0 00 00 B3 98 3A [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: F0 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: F0 09 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: F0 09 00 B3 98 00 CF CD 1A 67 86 57 24 65 C6 [22:44:17]GetLastDocTimeStamp 1729809098 [22:44:17]current date 1729809871 [22:44:17]FM_GetShiftState [22:44:17]SAM_PROTO_GetShiftState [22:44:17]wFMCommunicate request_size=4 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 13 01 00 [22:44:17]Write to MH i2c: E2 08 00 B4 98 80 13 01 00 00 00 00 00 C9 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 0E 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 0E 00 B4 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F3 [22:44:17]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [22:44:17]wFMCommunicate OK [22:44:17]SAM_PROTO_GetShiftState done [22:44:17]FM_GetShiftState done [22:44:17]opened in 1729729801 [22:44:17]opened+sec_in_day 1729816201 [22:44:17]quantity*price = 100015 [22:44:17]sum+1 = 100017 [22:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 213 24.10.2024 22:44 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74769 ФПД: 100716863193774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224431&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74769&fm=100716863193774&tin=02508201610067®Number=0000000000091691&sum=100000 [22:44:18]StoreToDocumentArchive [22:44:18]shift 510 fd 74769 [22:44:18]save to /storage/0510/doc_00074769 [22:44:18]save last doc name /storage/0510/doc_00074769 to /storage/kkm_last_doc_name [22:44:18]save OK [22:44:18]Clear old archive folders... [22:44:18]OFD Sender: No OFD packet to send [22:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:18]tlvbuf is 00AF1280 [22:44:18]SAM_PROTO_ClearQueue [22:44:18]wFMCommunicate request_size=4 [22:44:18]MH_SAM_APDU [22:44:18]CAPDU: 80 09 00 00 [22:44:18]Write to MH i2c: E2 08 00 C1 98 80 09 00 00 00 00 00 00 CB [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 C1 98 00 90 00 CD [22:44:19]RAPDU: 90 00 [22:44:19]wFMCommunicate OK [22:44:19]SAM_PROTO_ClearQueue done [22:44:19]KKMCreateOFDPacket [22:44:19]OFDProtocolAddRootSTLVToBuf [22:44:19]FM_MakeSignedData [22:44:19]FM_MakeSignedData [22:44:19]SAM_PROTO_SignData [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 0D 01 02 [22:44:19]Write to MH i2c: E2 08 00 C2 98 80 0D 01 02 00 00 00 00 D3 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 C2 98 00 90 00 CE [22:44:19]RAPDU: 90 00 [22:44:19]wFMCommunicate OK [22:44:19]wFMCommunicate request_size=255 [22:44:19]MH_SAM_APDU [22:44: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF CD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 24 01 00 35 04 06 00 5B [22:44:19]Write to MH i2c: E2 02 01 C3 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF CD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 24 01 00 35 04 06 00 5B 00 00 E4 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 C3 98 00 90 00 CF [22:44:19]RAPDU: 90 00 [22:44:19]wFMCommunicate OK [22:44:19]wFMCommunicate request_size=10 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 0D 02 02 05 99 F8 DA 82 AE [22:44:19]Write to MH i2c: E2 0D 00 C4 98 80 0D 02 02 05 00 99 F8 DA 82 AE 00 00 7B [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 03 00 C4 98 00 90 00 D0 [22:44:19]RAPDU: 90 00 [22:44:19]wFMCommunicate OK [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 0D 03 02 [22:44:19]Write to MH i2c: E2 08 00 C5 98 80 0D 03 02 00 00 00 00 D8 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 0B 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 0B 00 C5 98 00 A2 05 26 71 4A AC AE 5F 90 00 1A [22:44:19]RAPDU: A2 05 26 71 4A AC AE 5F 90 00 [22:44:19]wFMCommunicate OK [22:44:19]SAM_PROTO_SignData done [22:44:19]FM_MakeSignedData done [22:44:19]CreateOFDProtocolMessage [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 11 00 00 [22:44:19]Write to MH i2c: E2 08 00 C6 98 80 11 00 00 00 00 00 00 D8 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 17 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 17 00 C6 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 30 [22:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:44:19]wFMCommunicate OK [22:44:19]CreateOFDProtocolMessage done [22:44:19]OFDSenderStorePacket 74769 [22:44:19]StoreOFDPacket docnum=74769 [22:44:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D7 7E 07 01 3B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF CD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 24 01 00 35 04 06 00 5B 99 F8 DA 82 AE A2 05 26 71 4A AC AE 5F [22:44:19]CheckFolder [22:44:19]dirname=/storage/ofd_packets [22:44:19]CheckFolder done [22:44:19]ProducePacketName [22:44:19]name=ofd_packets/00074769 [22:44:19]NVStorageSaveData ofd_packets/00074769 [22:44:19]File name is /storage/ofd_packets/00074769 [22:44:19]Write 301 bytes [22:44:19]NVStorageSaveData done [22:44:19]OFDSenderStorePacket done [22:44:19]KKMCreateOFDPacket done [22:44:19]NVStorageSaveData kkm_last_timestamp [22:44:19]File name is /storage/kkm_last_timestamp [22:44:19]Write 4 bytes [22:44:19]NVStorageSaveData done [22:44:19]ExternCall_PrintAddStr [22:44:19]wPrintStart [22:44:19]Write to MH i2c: 01 00 00 C7 98 5F [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: 01 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: 01 07 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: 01 07 00 C7 98 00 00 00 00 00 FF 0F 74 [22:44:19]RasterBufferAndPrint [22:44:19]line Счет N : (1)190740 [22:44:19]line ИНН: 02508201610067 [22:44:19]line Контрольно-Кассовый Чек [22:44:19]line ПРОДАЖА [22:44:19]line ТРК (МРК, ГНК) : 21 [22:44:19]line Товар: 2710124130 [22:44:19]line Аи-92-К-5 [22:44:19]line 14.950 * 66.90 [22:44:19]line = 1000.16 [22:44:19]line НДС 12% НСП 1% [22:44:19]line > о реализуемом товаре [22:44:19]line ОКРУГЛЕНИЕ: -0.16 [22:44:19]line ИТОГО: 1000.00 [22:44:19]line Внесено: 1000.00 [22:44:19]line СДАЧА: 0.00 [22:44:19]line НСП 1% : 8.85 [22:44:19]line НДС 12% : 106.21 [22:44:19]line Наличными: 1000.00 [22:44:19]line Безнал.: 0.00 [22:44:19]line Место: АЗС № 142 "Партнер Нефть" [22:44:19]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:44:19]line СНО: Общий режим [22:44:19]line Чек 213 24.10.2024 22:44 [22:44:19]line Смена: 510 ФФД: 1.0 [22:44:19]line ЗНМ: 0300000089 [22:44:19]line РНМ: 0000000000091691 [22:44:19]line Версия ККМ: 001 [22:44:19]line ФМ: 0000000000871795 [22:44:19]line ФД: 74769 [22:44:19]line ФПД: 100716863193774 [22:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224431&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74769&fm=100716863193774&tin=02508201610067®Number=0000000000091691&sum=100000 [22:44:19]OFD Sender: Processing packet 74769 [packets to send 13, broken 12] [22:44:19]ProducePacketName [22:44:19]name=ofd_packets/00074769 [22:44:19]OFD Sender: To server: pG, [22:44:19]CommunicateWithHost lk.salyk.kg:30040 [22:44:19]ConnectInit lk.salyk.kg [22:44:19]written 0, free lines is 4095 [22:44:20]Connected sock=10 [22:44:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D7 7E 07 01 3B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CF CD 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 24 01 00 35 04 06 00 5B 99 F8 DA 82 AE A2 05 26 71 4A AC AE 5F [22:44:20]Write to MH i2c: 01 00 00 F2 98 8A [22:44:20]Write i2c OK [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: 01 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: 01 07 00 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: 01 07 00 F2 98 00 00 00 00 00 9E 0C 3B [22:44:20]RasterBufferAndPrint [22:44:20]line [22:44:20]line [22:44:20]line [22:44:20]line [22:44:20]line [22:44:20]written 0, free lines is 3239 [22:44:20]MH_Cut [22:44:20]Write to MH i2c: D1 01 00 F9 98 01 63 [22:44:20]Write i2c OK [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: D1 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: D1 01 00 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: D1 01 00 F9 98 00 62 [22:44:20]Write to MH i2c: 01 00 00 FA 98 92 [22:44:20]Write i2c OK [22:44:20]MH_I2C_Read... [22:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 56 33 47 00 5E E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 24 01 00 F4 03 04 00 50 75 1A 67 B6 04 01 00 00 14 2B 01 4E 3A 4F 8B D3 [22:44:20]CommunicateWithHost err = 0 [22:44:20]CheckOFDResponse [22:44:20]1017 (14) - 77093643461234 [22:44:20]1041 (16) - 0000000000871795 [22:44:20]1040 (4) - 74769 [22:44:20]1012 (4) - 24.10.2024 16:26 [22:44:20]1206 (1) - 0 [22:44:20]OFD Sender: Remove packet 74769 [22:44:20]ProducePacketName [22:44:20]name=ofd_packets/00074769 [22:44:20]NVStorageDeleteData [22:44:20]OFD Sender: No OFD packet to send [22:44:21]*** Cut start [22:44:21]*** Partial cut [22:44:21]*** CUTSNS_PIN = 1 [22:44:21]*** CUTSNS_PIN = 0 [22:44:21]*** Brake cut motor [22:44:21]Read from MH i2c: 01 [22:44:21]MH_I2C_Read... [22:44:21]*** Stop cut motor [22:44:21]*** Cut end [22:44:21]Read from MH i2c: 01 07 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: 01 07 00 FA 98 00 00 00 00 00 FF 0F A7 [22:44:21]process_action close_receipt done [22:44:21]requested_data is exist [22:44:21]produce_requested_data [22:44:21]requested_item fm.sn is exist - process it [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 11 00 00 [22:44:21]Write to MH i2c: E2 08 00 FB 98 80 11 00 00 00 00 00 00 0D [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:21]Read from MH i2c: E2 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 17 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 17 00 FB 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 65 [22:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:44:21]wFMCommunicate OK [22:44:21]requested_item fd.num is exist - process it [22:44:21]SAM_PROTO_GetFieldsCounters [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 13 00 00 [22:44:21]Write to MH i2c: E2 08 00 FC 98 80 13 00 00 00 00 00 00 10 [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:21]Read from MH i2c: E2 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 62 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 62 00 FC 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 11 24 01 00 0E 04 04 00 FE 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 EB [22:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 11 24 01 00 0E 04 04 00 FE 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 [22:44:21]wFMCommunicate OK [22:44:21]SAM_PROTO_GetFieldsCounters done [22:44:21]requested_item shift.num is exist - process it [22:44:21]requested_item shift.opened is exist - process it [22:44:21]req_shift_opened [22:44:21]FM_GetShiftState [22:44:21]SAM_PROTO_GetShiftState [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 13 01 00 [22:44:21]Write to MH i2c: E2 08 00 FD 98 80 13 01 00 00 00 00 00 12 [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:22]Read from MH i2c: E2 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 0E 00 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 0E 00 FD 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 3C [22:44:22]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [22:44:22]wFMCommunicate OK [22:44:22]SAM_PROTO_GetShiftState done [22:44:22]FM_GetShiftState done [22:44:22]req_shift_opened done [22:44:22]requested_item shift.open_date is exist - process it [22:44:22]req_shift_open_date [22:44:22]req_shift_open_date done [22:44:22]produce_requested_data done [22:44:22]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74769,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [22:44:22]process_action_free close_receipt [22:44:22]json_value_free [22:44:22]json_value_free done [22:44:22]process_json_proto returns [22:44:22]Send response to host [22:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74769,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [22:44:22]free response buf [22:44:22]execute_script done [22:44:22]execute_script returns [22:44:22]free content buf [22:44:22]Sock 9.Close socket [22:44:22]Sock 9.Thread stoped [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:27]recv_with_timeout no data received [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]ConnectInit Can't connect to host [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:08]accept exits with 8 [23:04:08]New connection [23:04:08]New thread 3066805604 created [23:04:08]Thread 3066662244 joined [23:04:08]Waiting for new connection... [23:04:08] Sock 8.Parse request [23:04:08]Sock 8.Check first char [23:04:08]Sock 8.First char is OK [23:04:08]request: POST /json_proto HTTP/1.0 [23:04:08]Method: POST [23:04:08]URL: /json_proto [23:04:08]Method is POST - this is cgi request [23:04:08]url: /json_proto [23:04:08]query_string will be loaded in cgi processing [23:04:08]execute_cgi json_proto POST (null) [23:04:08]execute_cgi path=json_proto method=POST [23:04:08]POST find Content-Length [23:04:08]Host: 172.17.39.131:8080 [23:04:08]Content-Length: 772 [23:04:08]Content-Type: application/json [23:04:08] [23:04:08]POST finish read [23:04:08]Found Content-Length = 772 [23:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 47.550, "sum" : 1849.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1849.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:08]execute_script... [23:04: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)190741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 47.550, "sum" : 1849.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1849.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:08]POST & json_proto [23:04:08]process_json_proto [23:04:08]json parsed OK: [23:04:08]protocol is kg_v1.0 [23:04:08]action value=close_receipt [23:04:08]process_action close_receipt [23:04:08]cmd_close_receipt [23:04:08]MH_GetDate [23:04:08]Write to MH i2c: F0 00 00 FE 98 85 [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: F0 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: F0 09 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: F0 09 00 FE 98 00 76 D2 1A 67 86 57 24 65 BD [23:04:08]GetLastDocTimeStamp 1729809871 [23:04:08]current date 1729811062 [23:04:08]FM_GetShiftState [23:04:08]SAM_PROTO_GetShiftState [23:04:08]wFMCommunicate request_size=4 [23:04:08]MH_SAM_APDU [23:04:08]CAPDU: 80 13 01 00 [23:04:08]Write to MH i2c: E2 08 00 FF 98 80 13 01 00 00 00 00 00 14 [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:08]Read from MH i2c: E2 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 0E 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 0E 00 FF 98 00 09 00 01 09 95 19 67 00 00 00 00 90 00 3E [23:04:08]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:04:08]wFMCommunicate OK [23:04:08]SAM_PROTO_GetShiftState done [23:04:08]FM_GetShiftState done [23:04:08]opened in 1729729801 [23:04:08]opened+sec_in_day 1729816201 [23:04:08]quantity*price = 184969 [23:04:08]sum+1 = 184971 [23:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1849.70 НСП 1% : 16.37 НДС 12% : 196.43 Наличными: 0.00 Безнал.: 1849.70 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 214 24.10.2024 23:04 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74770 ФПД: 136019392992816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230422&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74770&fm=136019392992816&tin=02508201610067®Number=0000000000091691&sum=184970 [23:04:09]StoreToDocumentArchive [23:04:09]shift 510 fd 74770 [23:04:09]save to /storage/0510/doc_00074770 [23:04:09]save last doc name /storage/0510/doc_00074770 to /storage/kkm_last_doc_name [23:04:09]save OK [23:04:09]Clear old archive folders... [23:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:04:09]tlvbuf is 007D2DC0 [23:04:09]SAM_PROTO_ClearQueue [23:04:09]wFMCommunicate request_size=4 [23:04:09]MH_SAM_APDU [23:04:09]CAPDU: 80 09 00 00 [23:04:09]Write to MH i2c: E2 08 00 0C 99 80 09 00 00 00 00 00 00 17 [23:04:09]Write i2c OK [23:04:09]MH_I2C_Read... [23:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:09]Read from MH i2c: E2 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 03 00 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 03 00 0C 99 00 90 00 19 [23:04:09]RAPDU: 90 00 [23:04:09]wFMCommunicate OK [23:04:09]SAM_PROTO_ClearQueue done [23:04:09]KKMCreateOFDPacket [23:04:09]OFDProtocolAddRootSTLVToBuf [23:04:09]FM_MakeSignedData [23:04:09]FM_MakeSignedData [23:04:09]SAM_PROTO_SignData [23:04:09]wFMCommunicate request_size=4 [23:04:09]MH_SAM_APDU [23:04:09]CAPDU: 80 0D 01 02 [23:04:09]Write to MH i2c: E2 08 00 0D 99 80 0D 01 02 00 00 00 00 1F [23:04:09]Write i2c OK [23:04:09]MH_I2C_Read... [23:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:09]Read from MH i2c: E2 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 03 00 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 03 00 0D 99 00 90 00 1A [23:04:09]RAPDU: 90 00 [23:04:09]wFMCommunicate OK [23:04:09]wFMCommunicate request_size=255 [23:04:09]MH_SAM_APDU [23:04:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE B9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A D2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 76 D2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 24 01 00 35 04 06 00 7B B5 [23:04:09]Write to MH i2c: E2 02 01 0E 99 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE B9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A D2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 76 D2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 24 01 00 35 04 06 00 7B B5 00 00 1D [23:04:09]Write i2c OK [23:04:09]MH_I2C_Read... [23:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:10]Read from MH i2c: E2 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 03 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 03 00 0E 99 00 90 00 1B [23:04:10]RAPDU: 90 00 [23:04:10]wFMCommunicate OK [23:04:10]wFMCommunicate request_size=9 [23:04:10]MH_SAM_APDU [23:04:10]CAPDU: 80 0D 02 02 04 7B 9A 16 30 [23:04:10]Write to MH i2c: E2 0C 00 0F 99 80 0D 02 02 04 00 7B 9A 16 30 00 00 85 [23:04:10]Write i2c OK [23:04:10]MH_I2C_Read... [23:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:10]Read from MH i2c: E2 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 03 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 03 00 0F 99 00 90 00 1C [23:04:10]RAPDU: 90 00 [23:04:10]wFMCommunicate OK [23:04:10]wFMCommunicate request_size=4 [23:04:10]MH_SAM_APDU [23:04:10]CAPDU: 80 0D 03 02 [23:04:10]Write to MH i2c: E2 08 00 10 99 80 0D 03 02 00 00 00 00 24 [23:04:10]Write i2c OK [23:04:10]MH_I2C_Read... [23:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:10]Read from MH i2c: E2 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 0B 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 0B 00 10 99 00 10 00 D6 44 18 BF 0C 44 90 00 76 [23:04:10]RAPDU: 10 00 D6 44 18 BF 0C 44 90 00 [23:04:10]wFMCommunicate OK [23:04:10]SAM_PROTO_SignData done [23:04:10]FM_MakeSignedData done [23:04:10]CreateOFDProtocolMessage [23:04:10]wFMCommunicate request_size=4 [23:04:10]MH_SAM_APDU [23:04:10]CAPDU: 80 11 00 00 [23:04:10]Write to MH i2c: E2 08 00 11 99 80 11 00 00 00 00 00 00 24 [23:04:10]Write i2c OK [23:04:10]MH_I2C_Read... [23:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:10]Read from MH i2c: E2 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 17 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 17 00 11 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7C [23:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:04:10]wFMCommunicate OK [23:04:10]CreateOFDProtocolMessage done [23:04:10]OFDSenderStorePacket 74770 [23:04:10]StoreOFDPacket docnum=74770 [23:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 05 FD 06 01 6E 73 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE B9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A D2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 76 D2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 24 01 00 35 04 06 00 7B B5 7B 9A 16 30 10 00 D6 44 18 BF 0C 44 [23:04:10]CheckFolder [23:04:10]dirname=/storage/ofd_packets [23:04:10]CheckFolder done [23:04:10]ProducePacketName [23:04:10]name=ofd_packets/00074770 [23:04:10]NVStorageSaveData ofd_packets/00074770 [23:04:10]File name is /storage/ofd_packets/00074770 [23:04:10]Write 300 bytes [23:04:10]NVStorageSaveData done [23:04:10]OFDSenderStorePacket done [23:04:10]KKMCreateOFDPacket done [23:04:10]NVStorageSaveData kkm_last_timestamp [23:04:10]File name is /storage/kkm_last_timestamp [23:04:10]Write 4 bytes [23:04:10]NVStorageSaveData done [23:04:10]ExternCall_PrintAddStr [23:04:10]wPrintStart [23:04:10]Write to MH i2c: 01 00 00 12 99 AB [23:04:10]Write i2c OK [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: 01 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: 01 07 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: 01 07 00 12 99 00 00 00 00 00 FF 0F C0 [23:04:10]RasterBufferAndPrint [23:04:10]line Счет N : (1)190741 [23:04:10]line ИНН: 02508201610067 [23:04:10]line Контрольно-Кассовый Чек [23:04:10]line ПРОДАЖА [23:04:10]line ТРК (МРК, ГНК) : 51 [23:04:10]line Товар: 2711190000 [23:04:10]line ГАЗ-К-3 [23:04:10]line 47.550 * 38.90 [23:04:10]line = 1849.70 [23:04:10]line НДС 12% НСП 1% [23:04:10]line > о реализуемом товаре [23:04:10]line ИТОГО: 1849.70 [23:04:10]line НСП 1% : 16.37 [23:04:10]line НДС 12% : 196.43 [23:04:10]line Наличными: 0.00 [23:04:10]line Безнал.: 1849.70 [23:04:10]line Место: АЗС № 142 "Партнер Нефть" [23:04:10]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:04:10]line СНО: Общий режим [23:04:10]line Чек 214 24.10.2024 23:04 [23:04:10]line Смена: 510 ФФД: 1.0 [23:04:10]line ЗНМ: 0300000089 [23:04:10]line РНМ: 0000000000091691 [23:04:10]line Версия ККМ: 001 [23:04:10]line Платежная система: Mbank [23:04:10]line ФМ: 0000000000871795 [23:04:10]line ФД: 74770 [23:04:10]line ФПД: 136019392992816 [23:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230422&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74770&fm=136019392992816&tin=02508201610067®Number=0000000000091691&sum=184970 [23:04:10]written 0, free lines is 4095 [23:04:10]OFD Sender: Processing packet 74770 [packets to send 13, broken 12] [23:04:10]ProducePacketName [23:04:10]name=ofd_packets/00074770 [23:04:10]OFD Sender: To server: pG, [23:04:10]CommunicateWithHost lk.salyk.kg:30040 [23:04:10]ConnectInit lk.salyk.kg [23:04:10]Connected sock=11 [23:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 05 FD 06 01 6E 73 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE B9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A D2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 76 D2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 24 01 00 35 04 06 00 7B B5 7B 9A 16 30 10 00 D6 44 18 BF 0C 44 [23:04:10]Write to MH i2c: 01 00 00 3B 99 D4 [23:04:10]Write i2c OK [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: 01 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: 01 07 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: 01 07 00 3B 99 00 00 00 00 00 D4 0C BB [23:04:10]RasterBufferAndPrint [23:04:10]line [23:04:10]line [23:04:10]line [23:04:10]line [23:04:10]line [23:04:10]written 0, free lines is 3292 [23:04:10]MH_Cut [23:04:10]Write to MH i2c: D1 01 00 42 99 01 AD [23:04:10]Write i2c OK [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: D1 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: D1 01 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: D1 01 00 42 99 00 AC [23:04:10]Write to MH i2c: 01 00 00 43 99 DC [23:04:10]Write i2c OK [23:04:10]MH_I2C_Read... [23:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8B 93 47 00 6B 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 24 01 00 F4 03 04 00 F6 79 1A 67 B6 04 01 00 00 BC D1 7A C1 A6 B1 F1 7F [23:04:10]CommunicateWithHost err = 0 [23:04:10]CheckOFDResponse [23:04:10]1017 (14) - 77093643461234 [23:04:10]1041 (16) - 0000000000871795 [23:04:10]1040 (4) - 74770 [23:04:10]1012 (4) - 24.10.2024 16:46 [23:04:10]1206 (1) - 0 [23:04:10]OFD Sender: Remove packet 74770 [23:04:10]ProducePacketName [23:04:10]name=ofd_packets/00074770 [23:04:10]NVStorageDeleteData [23:04:11]OFD Sender: No OFD packet to send [23:04:11]*** Cut start [23:04:11]*** Partial cut [23:04:11]*** CUTSNS_PIN = 1 [23:04:11]*** CUTSNS_PIN = 0 [23:04:11]*** Brake cut motor [23:04:12]Read from MH i2c: 01 [23:04:12]MH_I2C_Read... [23:04:12]*** Stop cut motor [23:04:12]*** Cut end [23:04:12]Read from MH i2c: 01 07 00 [23:04:12]MH_I2C_Read... [23:04:12]Read from MH i2c: 01 07 00 43 99 00 00 00 00 00 FF 0F F1 [23:04:12]process_action close_receipt done [23:04:12]requested_data is exist [23:04:12]produce_requested_data [23:04:12]requested_item fm.sn is exist - process it [23:04:12]wFMCommunicate request_size=4 [23:04:12]MH_SAM_APDU [23:04:12]CAPDU: 80 11 00 00 [23:04:12]Write to MH i2c: E2 08 00 44 99 80 11 00 00 00 00 00 00 57 [23:04:12]Write i2c OK [23:04:12]MH_I2C_Read... [23:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:12]Read from MH i2c: E2 [23:04:12]MH_I2C_Read... [23:04:12]Read from MH i2c: E2 17 00 [23:04:12]MH_I2C_Read... [23:04:12]Read from MH i2c: E2 17 00 44 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AF [23:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:04:12]wFMCommunicate OK [23:04:12]requested_item fd.num is exist - process it [23:04:12]SAM_PROTO_GetFieldsCounters [23:04:12]wFMCommunicate request_size=4 [23:04:12]MH_SAM_APDU [23:04:12]CAPDU: 80 13 00 00 [23:04:12]Write to MH i2c: E2 08 00 45 99 80 13 00 00 00 00 00 00 5A [23:04:12]Write i2c OK [23:04:12]MH_I2C_Read... [23:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:12]Read from MH i2c: E2 [23:04:12]MH_I2C_Read... [23:04:12]Read from MH i2c: E2 62 00 [23:04:12]MH_I2C_Read... [23:04:12]Read from MH i2c: E2 62 00 45 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 12 24 01 00 0E 04 04 00 FE 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 39 [23:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 12 24 01 00 0E 04 04 00 FE 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 [23:04:12]wFMCommunicate OK [23:04:12]SAM_PROTO_GetFieldsCounters done [23:04:12]requested_item shift.num is exist - process it [23:04:12]requested_item shift.opened is exist - process it [23:04:12]req_shift_opened [23:04:12]FM_GetShiftState [23:04:12]SAM_PROTO_GetShiftState [23:04:12]wFMCommunicate request_size=4 [23:04:12]MH_SAM_APDU [23:04:12]CAPDU: 80 13 01 00 [23:04:12]Write to MH i2c: E2 08 00 46 99 80 13 01 00 00 00 00 00 5C [23:04:12]Write i2c OK [23:04:12]MH_I2C_Read... [23:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:12]Read from MH i2c: E2 [23:04:12]MH_I2C_Read... [23:04:12]Read from MH i2c: E2 0E 00 [23:04:12]MH_I2C_Read... [23:04:12]Read from MH i2c: E2 0E 00 46 99 00 09 00 01 09 95 19 67 00 00 00 00 90 00 86 [23:04:12]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:04:12]wFMCommunicate OK [23:04:12]SAM_PROTO_GetShiftState done [23:04:12]FM_GetShiftState done [23:04:12]req_shift_opened done [23:04:12]requested_item shift.open_date is exist - process it [23:04:12]req_shift_open_date [23:04:12]req_shift_open_date done [23:04:12]produce_requested_data done [23:04:12]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74770,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:04:12]process_action_free close_receipt [23:04:12]json_value_free [23:04:12]json_value_free done [23:04:12]process_json_proto returns [23:04:12]Send response to host [23:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74770,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:04:12]free response buf [23:04:12]execute_script done [23:04:12]execute_script returns [23:04:12]free content buf [23:04:12]Sock 8.Close socket [23:04:12]Sock 8.Thread stoped [23:04:15]int [23:04:15]Write to MH i2c: 01 00 00 47 99 E0 [23:04:15]*** FLAG_PRN_KEY set [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 47 99 00 08 00 00 00 FF 0F FD [23:04:15]state=0 [23:04:15]Key pressed [23:04:15]Feed [23:04:15]Write to MH i2c: D8 00 00 48 99 B8 [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D8 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D8 01 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D8 01 00 48 99 00 B9 [23:04:15]int [23:04:15]Write to MH i2c: 01 00 00 49 99 E2 [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 49 99 00 48 00 00 00 3C 00 6D [23:04:15]state=2 [23:04:15]Key pressed [23:04:15]int [23:04:15]Write to MH i2c: 01 00 00 4A 99 E3 [23:04:15]*** FLAG_PRN_KEY reset [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 4A 99 00 00 00 00 00 F9 0F F2 [23:04:15]state=2 [23:04:15]Stop feed [23:04:15]int [23:04:15]Write to MH i2c: 01 00 00 4B 99 E4 [23:04:15]*** FLAG_PRN_KEY set [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 4B 99 00 08 00 00 00 FF 0F 01 [23:04:15]state=0 [23:04:15]Key pressed [23:04:15]Feed [23:04:15]Write to MH i2c: D8 00 00 4C 99 BC [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D8 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D8 01 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D8 01 00 4C 99 00 BD [23:04:15]int [23:04:15]Write to MH i2c: 01 00 00 4D 99 E6 [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 4D 99 00 48 00 00 00 3C 00 71 [23:04:15]state=2 [23:04:15]Key pressed [23:04:15]int [23:04:15]Write to MH i2c: 01 00 00 4E 99 E7 [23:04:15]*** FLAG_PRN_KEY reset [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 4E 99 00 00 00 00 00 F6 0F F3 [23:04:15]state=2 [23:04:15]Stop feed [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:38]accept exits with 10 [23:06:38]New connection [23:06:38]New thread 3066662244 created [23:06:38]Thread 3066805604 joined [23:06:38]Waiting for new connection... [23:06:38] Sock 10.Parse request [23:06:38]Sock 10.Check first char [23:06:38]Sock 10.First char is OK [23:06:38]request: POST /json_proto HTTP/1.0 [23:06:38]Method: POST [23:06:38]URL: /json_proto [23:06:38]Method is POST - this is cgi request [23:06:38]url: /json_proto [23:06:38]query_string will be loaded in cgi processing [23:06:38]execute_cgi json_proto POST (null) [23:06:38]execute_cgi path=json_proto method=POST [23:06:38]POST find Content-Length [23:06:38]Host: 172.17.39.131:8080 [23:06:38]Content-Length: 677 [23:06:38]Content-Type: application/json [23:06:38] [23:06:38]POST finish read [23:06:38]Found Content-Length = 677 [23:06:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:38]execute_script... [23:06: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)190742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:38]POST & json_proto [23:06:38]process_json_proto [23:06:38]json parsed OK: [23:06:38]protocol is kg_v1.0 [23:06:38]action value=close_receipt [23:06:38]process_action close_receipt [23:06:38]cmd_close_receipt [23:06:38]MH_GetDate [23:06:38]Write to MH i2c: F0 00 00 4F 99 D7 [23:06:38]Write i2c OK [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: F0 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: F0 09 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: F0 09 00 4F 99 00 0B D3 1A 67 86 57 24 65 A5 [23:06:38]GetLastDocTimeStamp 1729811062 [23:06:38]current date 1729811211 [23:06:38]FM_GetShiftState [23:06:38]SAM_PROTO_GetShiftState [23:06:38]wFMCommunicate request_size=4 [23:06:38]MH_SAM_APDU [23:06:38]CAPDU: 80 13 01 00 [23:06:38]Write to MH i2c: E2 08 00 50 99 80 13 01 00 00 00 00 00 66 [23:06:38]Write i2c OK [23:06:38]MH_I2C_Read... [23:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:38]Read from MH i2c: E2 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 0E 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 0E 00 50 99 00 09 00 01 09 95 19 67 00 00 00 00 90 00 90 [23:06:38]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:06:38]wFMCommunicate OK [23:06:38]SAM_PROTO_GetShiftState done [23:06:38]FM_GetShiftState done [23:06:38]opened in 1729729801 [23:06:38]opened+sec_in_day 1729816201 [23:06:38]quantity*price = 25020 [23:06:38]sum+1 = 25022 [23:06:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 215 24.10.2024 23:06 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74771 ФПД: 35839914282800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230651&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74771&fm=35839914282800&tin=02508201610067®Number=0000000000091691&sum=25000 [23:06:39]StoreToDocumentArchive [23:06:39]shift 510 fd 74771 [23:06:39]save to /storage/0510/doc_00074771 [23:06:39]save last doc name /storage/0510/doc_00074771 to /storage/kkm_last_doc_name [23:06:39]save OK [23:06:39]Clear old archive folders... [23:06:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:06:39]tlvbuf is 00B55110 [23:06:39]SAM_PROTO_ClearQueue [23:06:39]wFMCommunicate request_size=4 [23:06:39]MH_SAM_APDU [23:06:39]CAPDU: 80 09 00 00 [23:06:39]Write to MH i2c: E2 08 00 5D 99 80 09 00 00 00 00 00 00 68 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:39]Read from MH i2c: E2 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 5D 99 00 90 00 6A [23:06:39]RAPDU: 90 00 [23:06:39]wFMCommunicate OK [23:06:39]SAM_PROTO_ClearQueue done [23:06:39]KKMCreateOFDPacket [23:06:39]OFDProtocolAddRootSTLVToBuf [23:06:39]FM_MakeSignedData [23:06:39]FM_MakeSignedData [23:06:39]SAM_PROTO_SignData [23:06:39]wFMCommunicate request_size=4 [23:06:39]MH_SAM_APDU [23:06:39]CAPDU: 80 0D 01 02 [23:06:39]Write to MH i2c: E2 08 00 5E 99 80 0D 01 02 00 00 00 00 70 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:39]Read from MH i2c: E2 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 5E 99 00 90 00 6B [23:06:39]RAPDU: 90 00 [23:06:39]wFMCommunicate OK [23:06:39]wFMCommunicate request_size=255 [23:06:39]MH_SAM_APDU [23:06: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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 0B D3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 24 01 00 35 04 06 00 20 [23:06:39]Write to MH i2c: E2 02 01 5F 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 0B D3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 24 01 00 35 04 06 00 20 00 00 6B [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:39]Read from MH i2c: E2 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 5F 99 00 90 00 6C [23:06:39]RAPDU: 90 00 [23:06:39]wFMCommunicate OK [23:06:39]wFMCommunicate request_size=10 [23:06:39]MH_SAM_APDU [23:06:39]CAPDU: 80 0D 02 02 05 98 A1 5C 0F 30 [23:06:39]Write to MH i2c: E2 0D 00 60 99 80 0D 02 02 05 00 98 A1 5C 0F 30 00 00 51 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:39]Read from MH i2c: E2 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 03 00 60 99 00 90 00 6D [23:06:39]RAPDU: 90 00 [23:06:39]wFMCommunicate OK [23:06:39]wFMCommunicate request_size=4 [23:06:39]MH_SAM_APDU [23:06:39]CAPDU: 80 0D 03 02 [23:06:39]Write to MH i2c: E2 08 00 61 99 80 0D 03 02 00 00 00 00 75 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:39]Read from MH i2c: E2 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 0B 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 0B 00 61 99 00 A6 7F 65 93 57 18 90 E6 90 00 78 [23:06:39]RAPDU: A6 7F 65 93 57 18 90 E6 90 00 [23:06:39]wFMCommunicate OK [23:06:39]SAM_PROTO_SignData done [23:06:39]FM_MakeSignedData done [23:06:39]CreateOFDProtocolMessage [23:06:39]wFMCommunicate request_size=4 [23:06:39]MH_SAM_APDU [23:06:39]CAPDU: 80 11 00 00 [23:06:39]Write to MH i2c: E2 08 00 62 99 80 11 00 00 00 00 00 00 75 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:39]Read from MH i2c: E2 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 17 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: E2 17 00 62 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CD [23:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:06:39]wFMCommunicate OK [23:06:39]CreateOFDProtocolMessage done [23:06:39]OFDSenderStorePacket 74771 [23:06:39]StoreOFDPacket docnum=74771 [23:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BA 37 07 01 C4 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 0B D3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 24 01 00 35 04 06 00 20 98 A1 5C 0F 30 A6 7F 65 93 57 18 90 E6 [23:06:39]CheckFolder [23:06:39]dirname=/storage/ofd_packets [23:06:39]CheckFolder done [23:06:39]ProducePacketName [23:06:39]name=ofd_packets/00074771 [23:06:39]NVStorageSaveData ofd_packets/00074771 [23:06:39]File name is /storage/ofd_packets/00074771 [23:06:39]Write 301 bytes [23:06:39]NVStorageSaveData done [23:06:39]OFDSenderStorePacket done [23:06:39]KKMCreateOFDPacket done [23:06:39]NVStorageSaveData kkm_last_timestamp [23:06:39]File name is /storage/kkm_last_timestamp [23:06:39]Write 4 bytes [23:06:39]NVStorageSaveData done [23:06:39]ExternCall_PrintAddStr [23:06:39]wPrintStart [23:06:39]Write to MH i2c: 01 00 00 63 99 FC [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: 01 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: 01 07 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: 01 07 00 63 99 00 00 00 00 00 FF 0F 11 [23:06:39]RasterBufferAndPrint [23:06:39]line Счет N : (1)190742 [23:06:39]line ИНН: 02508201610067 [23:06:39]line Контрольно-Кассовый Чек [23:06:39]line ПРОДАЖА [23:06:39]line ТРК (МРК, ГНК) : 21 [23:06:39]line Товар: 2710124130 [23:06:39]line Аи-92-К-5 [23:06:39]line 3.740 * 66.90 [23:06:39]line = 250.21 [23:06:39]line НДС 12% НСП 1% [23:06:39]line > о реализуемом товаре [23:06:39]line ОКРУГЛЕНИЕ: -0.21 [23:06:39]line ИТОГО: 250.00 [23:06:39]line Внесено: 250.00 [23:06:39]line СДАЧА: 0.00 [23:06:39]line НСП 1% : 2.21 [23:06:39]line НДС 12% : 26.57 [23:06:39]line Наличными: 250.00 [23:06:39]line Безнал.: 0.00 [23:06:39]line Место: АЗС № 142 "Партнер Нефть" [23:06:39]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:06:39]line СНО: Общий режим [23:06:39]line Чек 215 24.10.2024 23:06 [23:06:39]line Смена: 510 ФФД: 1.0 [23:06:39]line ЗНМ: 0300000089 [23:06:39]line РНМ: 0000000000091691 [23:06:39]line Версия ККМ: 001 [23:06:39]line ФМ: 0000000000871795 [23:06:39]line ФД: 74771 [23:06:40]line ФПД: 35839914282800 [23:06:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230651&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74771&fm=35839914282800&tin=02508201610067®Number=0000000000091691&sum=25000 [23:06:40]OFD Sender: Processing packet 74771 [packets to send 13, broken 12] [23:06:40]ProducePacketName [23:06:40]name=ofd_packets/00074771 [23:06:40]OFD Sender: To server: pG, [23:06:40]CommunicateWithHost lk.salyk.kg:30040 [23:06:40]ConnectInit lk.salyk.kg [23:06:40]written 0, free lines is 4095 [23:06:40]Connected sock=9 [23:06:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BA 37 07 01 C4 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 0B D3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 24 01 00 35 04 06 00 20 98 A1 5C 0F 30 A6 7F 65 93 57 18 90 E6 [23:06:40]Write to MH i2c: 01 00 00 8E 99 27 [23:06:40]Write i2c OK [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: 01 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: 01 07 00 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: 01 07 00 8E 99 00 00 00 00 00 AB 0C E5 [23:06:40]RasterBufferAndPrint [23:06:40]line [23:06:40]line [23:06:40]line [23:06:40]line [23:06:40]line [23:06:40]written 0, free lines is 3249 [23:06:40]MH_Cut [23:06:40]Write to MH i2c: D1 01 00 95 99 01 00 [23:06:40]Write i2c OK [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: D1 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: D1 01 00 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: D1 01 00 95 99 00 FF [23:06:40]Write to MH i2c: 01 00 00 96 99 2F [23:06:40]Write i2c OK [23:06:40]MH_I2C_Read... [23:06:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 2C D6 47 00 6F 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 31 37 39 35 10 04 04 00 13 24 01 00 F4 03 04 00 8C 7A 1A 67 B6 04 01 00 00 34 DD EE 11 30 F0 4C 29 [23:06:40]CommunicateWithHost err = 0 [23:06:40]CheckOFDResponse [23:06:40]1017 (14) - 77093643461234 [23:06:40]1041 (16) - 0000000000871795 [23:06:40]1040 (4) - 74771 [23:06:40]1012 (4) - 24.10.2024 16:49 [23:06:40]1206 (1) - 0 [23:06:40]OFD Sender: Remove packet 74771 [23:06:40]ProducePacketName [23:06:40]name=ofd_packets/00074771 [23:06:40]NVStorageDeleteData [23:06:41]OFD Sender: No OFD packet to send [23:06:41]*** Cut start [23:06:41]*** Partial cut [23:06:41]*** CUTSNS_PIN = 1 [23:06:41]*** CUTSNS_PIN = 0 [23:06:41]*** Brake cut motor [23:06:42]Read from MH i2c: 01 [23:06:42]MH_I2C_Read... [23:06:42]*** Stop cut motor [23:06:42]*** Cut end [23:06:42]Read from MH i2c: 01 07 00 [23:06:42]MH_I2C_Read... [23:06:42]Read from MH i2c: 01 07 00 96 99 00 00 00 00 00 FF 0F 44 [23:06:42]process_action close_receipt done [23:06:42]requested_data is exist [23:06:42]produce_requested_data [23:06:42]requested_item fm.sn is exist - process it [23:06:42]wFMCommunicate request_size=4 [23:06:42]MH_SAM_APDU [23:06:42]CAPDU: 80 11 00 00 [23:06:42]Write to MH i2c: E2 08 00 97 99 80 11 00 00 00 00 00 00 AA [23:06:42]Write i2c OK [23:06:42]MH_I2C_Read... [23:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:42]Read from MH i2c: E2 [23:06:42]MH_I2C_Read... [23:06:42]Read from MH i2c: E2 17 00 [23:06:42]MH_I2C_Read... [23:06:42]Read from MH i2c: E2 17 00 97 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [23:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:06:42]wFMCommunicate OK [23:06:42]requested_item fd.num is exist - process it [23:06:42]SAM_PROTO_GetFieldsCounters [23:06:42]wFMCommunicate request_size=4 [23:06:42]MH_SAM_APDU [23:06:42]CAPDU: 80 13 00 00 [23:06:42]Write to MH i2c: E2 08 00 98 99 80 13 00 00 00 00 00 00 AD [23:06:42]Write i2c OK [23:06:42]MH_I2C_Read... [23:06:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:42]Read from MH i2c: E2 [23:06:42]MH_I2C_Read... [23:06:42]Read from MH i2c: E2 62 00 [23:06:42]MH_I2C_Read... [23:06:42]Read from MH i2c: E2 62 00 98 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 13 24 01 00 0E 04 04 00 FE 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 90 [23:06:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 13 24 01 00 0E 04 04 00 FE 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 [23:06:42]wFMCommunicate OK [23:06:42]SAM_PROTO_GetFieldsCounters done [23:06:42]requested_item shift.num is exist - process it [23:06:42]requested_item shift.opened is exist - process it [23:06:42]req_shift_opened [23:06:42]FM_GetShiftState [23:06:42]SAM_PROTO_GetShiftState [23:06:42]wFMCommunicate request_size=4 [23:06:42]MH_SAM_APDU [23:06:42]CAPDU: 80 13 01 00 [23:06:42]Write to MH i2c: E2 08 00 99 99 80 13 01 00 00 00 00 00 AF [23:06:42]Write i2c OK [23:06:42]MH_I2C_Read... [23:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:42]Read from MH i2c: E2 [23:06:42]MH_I2C_Read... [23:06:42]Read from MH i2c: E2 0E 00 [23:06:42]MH_I2C_Read... [23:06:42]Read from MH i2c: E2 0E 00 99 99 00 09 00 01 09 95 19 67 00 00 00 00 90 00 D9 [23:06:42]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:06:42]wFMCommunicate OK [23:06:42]SAM_PROTO_GetShiftState done [23:06:42]FM_GetShiftState done [23:06:42]req_shift_opened done [23:06:42]requested_item shift.open_date is exist - process it [23:06:42]req_shift_open_date [23:06:42]req_shift_open_date done [23:06:42]produce_requested_data done [23:06:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74771,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:06:42]process_action_free close_receipt [23:06:42]json_value_free [23:06:42]json_value_free done [23:06:42]process_json_proto returns [23:06:42]Send response to host [23:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74771,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:06:42]free response buf [23:06:42]execute_script done [23:06:42]execute_script returns [23:06:42]free content buf [23:06:42]Sock 10.Close socket [23:06:42]Sock 10.Thread stoped [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:03]accept exits with 8 [23:11:03]New connection [23:11:03]New thread 3066805604 created [23:11:03]Thread 3066662244 joined [23:11:03]Waiting for new connection... [23:11:03] Sock 8.Parse request [23:11:03]Sock 8.Check first char [23:11:03]Sock 8.First char is OK [23:11:03]request: POST /json_proto HTTP/1.0 [23:11:03]Method: POST [23:11:03]URL: /json_proto [23:11:03]Method is POST - this is cgi request [23:11:03]url: /json_proto [23:11:03]query_string will be loaded in cgi processing [23:11:03]execute_cgi json_proto POST (null) [23:11:03]execute_cgi path=json_proto method=POST [23:11:03]POST find Content-Length [23:11:03]Host: 172.17.39.131:8080 [23:11:03]Content-Length: 799 [23:11:03]Content-Type: application/json [23:11:03] [23:11:03]POST finish read [23:11:03]Found Content-Length = 799 [23:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:03]execute_script... [23:11: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)190737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:03]POST & json_proto [23:11:03]process_json_proto [23:11:03]json parsed OK: [23:11:03]protocol is kg_v1.0 [23:11:03]action value=close_receipt [23:11:03]process_action close_receipt [23:11:03]cmd_close_receipt [23:11:03]MH_GetDate [23:11:03]Write to MH i2c: F0 00 00 9A 99 22 [23:11:03]Write i2c OK [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: F0 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: F0 09 00 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: F0 09 00 9A 99 00 15 D4 1A 67 86 57 24 65 FB [23:11:03]GetLastDocTimeStamp 1729811211 [23:11:03]current date 1729811477 [23:11:03]FM_GetShiftState [23:11:03]SAM_PROTO_GetShiftState [23:11:03]wFMCommunicate request_size=4 [23:11:03]MH_SAM_APDU [23:11:03]CAPDU: 80 13 01 00 [23:11:03]Write to MH i2c: E2 08 00 9B 99 80 13 01 00 00 00 00 00 B1 [23:11:03]Write i2c OK [23:11:03]MH_I2C_Read... [23:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:03]Read from MH i2c: E2 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 0E 00 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 0E 00 9B 99 00 09 00 01 09 95 19 67 00 00 00 00 90 00 DB [23:11:03]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:11:03]wFMCommunicate OK [23:11:03]SAM_PROTO_GetShiftState done [23:11:03]FM_GetShiftState done [23:11:03]opened in 1729729801 [23:11:03]opened+sec_in_day 1729816201 [23:11:03]quantity*price = 0 [23:11:03]sum+1 = 1 [23:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 216 24.10.2024 23:11 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74772 ФПД: 180643481658297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231117&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74772&fm=180643481658297&tin=02508201610067®Number=0000000000091691&sum=0 [23:11:05]StoreToDocumentArchive [23:11:05]shift 510 fd 74772 [23:11:05]save to /storage/0510/doc_00074772 [23:11:05]save last doc name /storage/0510/doc_00074772 to /storage/kkm_last_doc_name [23:11:05]save OK [23:11:05]Clear old archive folders... [23:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:11:05]tlvbuf is 007D30D0 [23:11:05]SAM_PROTO_ClearQueue [23:11:05]wFMCommunicate request_size=4 [23:11:05]MH_SAM_APDU [23:11:05]CAPDU: 80 09 00 00 [23:11:05]Write to MH i2c: E2 08 00 A8 99 80 09 00 00 00 00 00 00 B3 [23:11:05]Write i2c OK [23:11:05]MH_I2C_Read... [23:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:05]Read from MH i2c: E2 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 A8 99 00 90 00 B5 [23:11:05]RAPDU: 90 00 [23:11:05]wFMCommunicate OK [23:11:05]SAM_PROTO_ClearQueue done [23:11:05]KKMCreateOFDPacket [23:11:05]OFDProtocolAddRootSTLVToBuf [23:11:05]FM_MakeSignedData [23:11:05]FM_MakeSignedData [23:11:05]SAM_PROTO_SignData [23:11:05]wFMCommunicate request_size=4 [23:11:05]MH_SAM_APDU [23:11:05]CAPDU: 80 0D 01 02 [23:11:05]Write to MH i2c: E2 08 00 A9 99 80 0D 01 02 00 00 00 00 BB [23:11:05]Write i2c OK [23:11:05]MH_I2C_Read... [23:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:05]Read from MH i2c: E2 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 A9 99 00 90 00 B6 [23:11:05]RAPDU: 90 00 [23:11:05]wFMCommunicate OK [23:11:05]wFMCommunicate request_size=255 [23:11:05]MH_SAM_APDU [23:11:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 15 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 24 01 [23:11:05]Write to MH i2c: E2 02 01 AA 99 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 15 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 24 01 00 00 98 [23:11:05]Write i2c OK [23:11:05]MH_I2C_Read... [23:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:05]Read from MH i2c: E2 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 AA 99 00 90 00 B7 [23:11:05]RAPDU: 90 00 [23:11:05]wFMCommunicate OK [23:11:05]wFMCommunicate request_size=16 [23:11:05]MH_SAM_APDU [23:11:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A4 4B 56 8E 23 B9 [23:11:05]Write to MH i2c: E2 13 00 AB 99 80 0D 02 02 0B 00 00 35 04 06 00 A4 4B 56 8E 23 B9 00 00 C2 [23:11:05]Write i2c OK [23:11:05]MH_I2C_Read... [23:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:05]Read from MH i2c: E2 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 03 00 AB 99 00 90 00 B8 [23:11:05]RAPDU: 90 00 [23:11:05]wFMCommunicate OK [23:11:05]wFMCommunicate request_size=4 [23:11:05]MH_SAM_APDU [23:11:05]CAPDU: 80 0D 03 02 [23:11:05]Write to MH i2c: E2 08 00 AC 99 80 0D 03 02 00 00 00 00 C0 [23:11:05]Write i2c OK [23:11:05]MH_I2C_Read... [23:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:05]Read from MH i2c: E2 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 0B 00 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 0B 00 AC 99 00 80 28 DA 1F FC A5 B9 46 90 00 02 [23:11:05]RAPDU: 80 28 DA 1F FC A5 B9 46 90 00 [23:11:05]wFMCommunicate OK [23:11:05]SAM_PROTO_SignData done [23:11:05]FM_MakeSignedData done [23:11:05]CreateOFDProtocolMessage [23:11:05]wFMCommunicate request_size=4 [23:11:05]MH_SAM_APDU [23:11:05]CAPDU: 80 11 00 00 [23:11:05]Write to MH i2c: E2 08 00 AD 99 80 11 00 00 00 00 00 00 C0 [23:11:05]Write i2c OK [23:11:05]MH_I2C_Read... [23:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:05]Read from MH i2c: E2 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 17 00 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: E2 17 00 AD 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 18 [23:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:11:05]wFMCommunicate OK [23:11:05]CreateOFDProtocolMessage done [23:11:05]OFDSenderStorePacket 74772 [23:11:05]StoreOFDPacket docnum=74772 [23:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 72 DF 0D 01 F9 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 15 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 24 01 00 35 04 06 00 A4 4B 56 8E 23 B9 80 28 DA 1F FC A5 B9 46 [23:11:05]CheckFolder [23:11:05]dirname=/storage/ofd_packets [23:11:05]CheckFolder done [23:11:05]ProducePacketName [23:11:05]name=ofd_packets/00074772 [23:11:05]NVStorageSaveData ofd_packets/00074772 [23:11:05]File name is /storage/ofd_packets/00074772 [23:11:05]Write 307 bytes [23:11:05]NVStorageSaveData done [23:11:05]OFDSenderStorePacket done [23:11:05]KKMCreateOFDPacket done [23:11:05]NVStorageSaveData kkm_last_timestamp [23:11:05]File name is /storage/kkm_last_timestamp [23:11:05]Write 4 bytes [23:11:05]NVStorageSaveData done [23:11:05]ExternCall_PrintAddStr [23:11:05]wPrintStart [23:11:05]Write to MH i2c: 01 00 00 AE 99 47 [23:11:05]Write i2c OK [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: 01 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: 01 07 00 [23:11:05]MH_I2C_Read... [23:11:05]Read from MH i2c: 01 07 00 AE 99 00 00 00 00 00 FF 0F 5C [23:11:05]RasterBufferAndPrint [23:11:05]line Счет N : (1)190737 [23:11:05]line ИНН: 02508201610067 [23:11:05]line Контрольно-Кассовый Чек [23:11:05]line ПРОДАЖА [23:11:05]line ТРК (МРК, ГНК) : 42 [23:11:05]line Товар: 2710194240 [23:11:05]line D-ENERGY ДТ-К-2 [23:11:05]line 500.000 * 0.00 [23:11:05]line = 0.00 [23:11:05]line НДС 12% НСП 1% [23:11:05]line > о реализуемом товаре [23:11:05]line ИТОГО: 0.00 [23:11:05]line НСП 1% : 0.00 [23:11:05]line НДС 12% : 0.00 [23:11:05]line Наличными: 0.00 [23:11:05]line Безнал.: 0.00 [23:11:05]line Место: АЗС № 142 "Партнер Нефть" [23:11:05]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:11:05]line СНО: Общий режим [23:11:05]line Чек 216 24.10.2024 23:11 [23:11:05]line Смена: 510 ФФД: 1.0 [23:11:05]line ЗНМ: 0300000089 [23:11:05]line РНМ: 0000000000091691 [23:11:05]line Версия ККМ: 001 [23:11:05]line Талоны: Топливная Карта [23:11:05]line 82575 [23:11:05]line ФМ: 0000000000871795 [23:11:05]line ФД: 74772 [23:11:05]line ФПД: 180643481658297 [23:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231117&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74772&fm=180643481658297&tin=02508201610067®Number=0000000000091691&sum=0 [23:11:05]OFD Sender: Processing packet 74772 [packets to send 13, broken 12] [23:11:05]ProducePacketName [23:11:05]name=ofd_packets/00074772 [23:11:05]OFD Sender: To server: pG, [23:11:05]CommunicateWithHost lk.salyk.kg:30040 [23:11:05]ConnectInit lk.salyk.kg [23:11:05]written 0, free lines is 4095 [23:11:06]Connected sock=10 [23:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 72 DF 0D 01 F9 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 15 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 24 01 00 35 04 06 00 A4 4B 56 8E 23 B9 80 28 DA 1F FC A5 B9 46 [23:11:06]Write to MH i2c: 01 00 00 D8 99 71 [23:11:06]Write i2c OK [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: 01 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: 01 07 00 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: 01 07 00 D8 99 00 00 00 00 00 B8 0C 3C [23:11:06]RasterBufferAndPrint [23:11:06]line [23:11:06]line [23:11:06]line [23:11:06]line [23:11:06]line [23:11:06]written 0, free lines is 3262 [23:11:06]MH_Cut [23:11:06]Write to MH i2c: D1 01 00 DF 99 01 4A [23:11:06]Write i2c OK [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: D1 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: D1 01 00 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: D1 01 00 DF 99 00 49 [23:11:06]Write to MH i2c: 01 00 00 E0 99 79 [23:11:06]Write i2c OK [23:11:06]MH_I2C_Read... [23:11:07]*** Cut start [23:11:07]*** Partial cut [23:11:07]*** CUTSNS_PIN = 1 [23:11:07]*** CUTSNS_PIN = 0 [23:11:07]*** Brake cut motor [23:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F1 49 47 00 FA EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 24 01 00 F4 03 04 00 97 7B 1A 67 B6 04 01 00 00 0C A1 5C 37 78 C8 DA CB [23:11:07]CommunicateWithHost err = 0 [23:11:07]CheckOFDResponse [23:11:07]1017 (14) - 77093643461234 [23:11:07]1041 (16) - 0000000000871795 [23:11:07]1040 (4) - 74772 [23:11:07]1012 (4) - 24.10.2024 16:53 [23:11:07]1206 (1) - 0 [23:11:07]OFD Sender: Remove packet 74772 [23:11:07]ProducePacketName [23:11:07]name=ofd_packets/00074772 [23:11:07]NVStorageDeleteData [23:11:07]Read from MH i2c: 01 [23:11:07]MH_I2C_Read... [23:11:07]*** Stop cut motor [23:11:07]*** Cut end [23:11:07]Read from MH i2c: 01 07 00 [23:11:07]MH_I2C_Read... [23:11:07]Read from MH i2c: 01 07 00 E0 99 00 00 00 00 00 FF 0F 8E [23:11:07]process_action close_receipt done [23:11:07]requested_data is exist [23:11:07]produce_requested_data [23:11:07]requested_item fm.sn is exist - process it [23:11:07]wFMCommunicate request_size=4 [23:11:07]MH_SAM_APDU [23:11:07]CAPDU: 80 11 00 00 [23:11:07]Write to MH i2c: E2 08 00 E1 99 80 11 00 00 00 00 00 00 F4 [23:11:07]Write i2c OK [23:11:07]MH_I2C_Read... [23:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:07]Read from MH i2c: E2 [23:11:07]MH_I2C_Read... [23:11:07]Read from MH i2c: E2 17 00 [23:11:07]MH_I2C_Read... [23:11:07]Read from MH i2c: E2 17 00 E1 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4C [23:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:11:07]wFMCommunicate OK [23:11:07]requested_item fd.num is exist - process it [23:11:07]SAM_PROTO_GetFieldsCounters [23:11:07]wFMCommunicate request_size=4 [23:11:07]MH_SAM_APDU [23:11:07]CAPDU: 80 13 00 00 [23:11:07]Write to MH i2c: E2 08 00 E2 99 80 13 00 00 00 00 00 00 F7 [23:11:07]Write i2c OK [23:11:07]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 62 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 62 00 E2 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 14 24 01 00 0E 04 04 00 FE 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 DE [23:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 14 24 01 00 0E 04 04 00 FE 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 [23:11:08]wFMCommunicate OK [23:11:08]SAM_PROTO_GetFieldsCounters done [23:11:08]requested_item shift.num is exist - process it [23:11:08]requested_item shift.opened is exist - process it [23:11:08]req_shift_opened [23:11:08]FM_GetShiftState [23:11:08]SAM_PROTO_GetShiftState [23:11:08]wFMCommunicate request_size=4 [23:11:08]MH_SAM_APDU [23:11:08]CAPDU: 80 13 01 00 [23:11:08]Write to MH i2c: E2 08 00 E3 99 80 13 01 00 00 00 00 00 F9 [23:11:08]Write i2c OK [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:08]Read from MH i2c: E2 0E 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 0E 00 E3 99 00 09 00 01 09 95 19 67 00 00 00 00 90 00 23 [23:11:08]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:11:08]wFMCommunicate OK [23:11:08]SAM_PROTO_GetShiftState done [23:11:08]FM_GetShiftState done [23:11:08]req_shift_opened done [23:11:08]requested_item shift.open_date is exist - process it [23:11:08]req_shift_open_date [23:11:08]req_shift_open_date done [23:11:08]produce_requested_data done [23:11:08]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74772,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:11:08]process_action_free close_receipt [23:11:08]json_value_free [23:11:08]json_value_free done [23:11:08]process_json_proto returns [23:11:08]Send response to host [23:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74772,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:11:08]free response buf [23:11:08]execute_script done [23:11:08]execute_script returns [23:11:08]free content buf [23:11:08]Sock 8.Close socket [23:11:08]Sock 8.Thread stoped [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:40]accept exits with 9 [23:11:40]New connection [23:11:40]New thread 3066662244 created [23:11:40]Thread 3066805604 joined [23:11:40]Waiting for new connection... [23:11:40] Sock 9.Parse request [23:11:40]Sock 9.Check first char [23:11:40]Sock 9.First char is OK [23:11:40]request: POST /json_proto HTTP/1.0 [23:11:40]Method: POST [23:11:40]URL: /json_proto [23:11:40]Method is POST - this is cgi request [23:11:40]url: /json_proto [23:11:40]query_string will be loaded in cgi processing [23:11:40]execute_cgi json_proto POST (null) [23:11:40]execute_cgi path=json_proto method=POST [23:11:40]POST find Content-Length [23:11:40]Host: 172.17.39.131:8080 [23:11:40]Content-Length: 769 [23:11:40]Content-Type: application/json [23:11:40] [23:11:40]POST finish read [23:11:40]Found Content-Length = 769 [23:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 36.420, "sum" : 2436.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: Mbank", "payments": [ { "type": 1, "sum" : 2436.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:40]execute_script... [23:11: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)190743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 36.420, "sum" : 2436.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: Mbank", "payments": [ { "type": 1, "sum" : 2436.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:40]POST & json_proto [23:11:40]process_json_proto [23:11:40]json parsed OK: [23:11:40]protocol is kg_v1.0 [23:11:40]action value=close_receipt [23:11:40]process_action close_receipt [23:11:40]cmd_close_receipt [23:11:40]MH_GetDate [23:11:40]Write to MH i2c: F0 00 00 E4 99 6C [23:11:40]Write i2c OK [23:11:40]MH_I2C_Read... [23:11:40]Read from MH i2c: F0 [23:11:40]MH_I2C_Read... [23:11:40]Read from MH i2c: F0 09 00 [23:11:40]MH_I2C_Read... [23:11:40]Read from MH i2c: F0 09 00 E4 99 00 39 D4 1A 67 86 57 24 65 69 [23:11:40]GetLastDocTimeStamp 1729811477 [23:11:40]current date 1729811513 [23:11:40]FM_GetShiftState [23:11:40]SAM_PROTO_GetShiftState [23:11:40]wFMCommunicate request_size=4 [23:11:40]MH_SAM_APDU [23:11:40]CAPDU: 80 13 01 00 [23:11:40]Write to MH i2c: E2 08 00 E5 99 80 13 01 00 00 00 00 00 FB [23:11:40]Write i2c OK [23:11:40]MH_I2C_Read... [23:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:40]Read from MH i2c: E2 [23:11:40]MH_I2C_Read... [23:11:40]Read from MH i2c: E2 0E 00 [23:11:40]MH_I2C_Read... [23:11:40]Read from MH i2c: E2 0E 00 E5 99 00 09 00 01 09 95 19 67 00 00 00 00 90 00 25 [23:11:40]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:11:40]wFMCommunicate OK [23:11:40]SAM_PROTO_GetShiftState done [23:11:40]FM_GetShiftState done [23:11:40]opened in 1729729801 [23:11:40]opened+sec_in_day 1729816201 [23:11:40]quantity*price = 243649 [23:11:40]sum+1 = 243651 [23:11:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2436.50 НСП 1% : 21.56 НДС 12% : 258.74 Наличными: 0.00 Безнал.: 2436.50 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 217 24.10.2024 23:11 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74773 ФПД: 70863048411458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231153&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74773&fm=70863048411458&tin=02508201610067®Number=0000000000091691&sum=243650 [23:11:41]StoreToDocumentArchive [23:11:41]shift 510 fd 74773 [23:11:41]save to /storage/0510/doc_00074773 [23:11:41]save last doc name /storage/0510/doc_00074773 to /storage/kkm_last_doc_name [23:11:41]save OK [23:11:41]Clear old archive folders... [23:11:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:11:41]tlvbuf is 008FD780 [23:11:41]SAM_PROTO_ClearQueue [23:11:41]wFMCommunicate request_size=4 [23:11:41]MH_SAM_APDU [23:11:41]CAPDU: 80 09 00 00 [23:11:41]Write to MH i2c: E2 08 00 F2 99 80 09 00 00 00 00 00 00 FD [23:11:41]Write i2c OK [23:11:41]MH_I2C_Read... [23:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:41]Read from MH i2c: E2 [23:11:41]MH_I2C_Read... [23:11:41]Read from MH i2c: E2 03 00 [23:11:41]MH_I2C_Read... [23:11:41]Read from MH i2c: E2 03 00 F2 99 00 90 00 FF [23:11:41]RAPDU: 90 00 [23:11:41]wFMCommunicate OK [23:11:41]SAM_PROTO_ClearQueue done [23:11:41]KKMCreateOFDPacket [23:11:41]OFDProtocolAddRootSTLVToBuf [23:11:41]FM_MakeSignedData [23:11:41]FM_MakeSignedData [23:11:41]SAM_PROTO_SignData [23:11:41]wFMCommunicate request_size=4 [23:11:41]MH_SAM_APDU [23:11:41]CAPDU: 80 0D 01 02 [23:11:41]Write to MH i2c: E2 08 00 F3 99 80 0D 01 02 00 00 00 00 05 [23:11:41]Write i2c OK [23:11:41]MH_I2C_Read... [23:11:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:41]Read from MH i2c: E2 [23:11:41]MH_I2C_Read... [23:11:41]Read from MH i2c: E2 03 00 [23:11:41]MH_I2C_Read... [23:11:41]Read from MH i2c: E2 03 00 F3 99 00 90 00 00 [23:11:41]RAPDU: 90 00 [23:11:41]wFMCommunicate OK [23:11:41]wFMCommunicate request_size=255 [23:11:41]MH_SAM_APDU [23:11: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 35 FF 03 08 00 03 44 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 B7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 24 01 00 35 04 06 00 40 [23:11:41]Write to MH i2c: E2 02 01 F4 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 35 FF 03 08 00 03 44 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 B7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 24 01 00 35 04 06 00 40 00 00 62 [23:11:41]Write i2c OK [23:11:41]MH_I2C_Read... [23:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:42]Read from MH i2c: E2 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 03 00 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 03 00 F4 99 00 90 00 01 [23:11:42]RAPDU: 90 00 [23:11:42]wFMCommunicate OK [23:11:42]wFMCommunicate request_size=10 [23:11:42]MH_SAM_APDU [23:11:42]CAPDU: 80 0D 02 02 05 73 16 D4 09 42 [23:11:42]Write to MH i2c: E2 0D 00 F5 99 80 0D 02 02 05 00 73 16 D4 09 42 00 00 BA [23:11:42]Write i2c OK [23:11:42]MH_I2C_Read... [23:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:42]Read from MH i2c: E2 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 03 00 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 03 00 F5 99 00 90 00 02 [23:11:42]RAPDU: 90 00 [23:11:42]wFMCommunicate OK [23:11:42]wFMCommunicate request_size=4 [23:11:42]MH_SAM_APDU [23:11:42]CAPDU: 80 0D 03 02 [23:11:42]Write to MH i2c: E2 08 00 F6 99 80 0D 03 02 00 00 00 00 0A [23:11:42]Write i2c OK [23:11:42]MH_I2C_Read... [23:11:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:42]Read from MH i2c: E2 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 0B 00 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 0B 00 F6 99 00 D2 C6 86 00 64 4D B2 7C 90 00 08 [23:11:42]RAPDU: D2 C6 86 00 64 4D B2 7C 90 00 [23:11:42]wFMCommunicate OK [23:11:42]SAM_PROTO_SignData done [23:11:42]FM_MakeSignedData done [23:11:42]CreateOFDProtocolMessage [23:11:42]wFMCommunicate request_size=4 [23:11:42]MH_SAM_APDU [23:11:42]CAPDU: 80 11 00 00 [23:11:42]Write to MH i2c: E2 08 00 F7 99 80 11 00 00 00 00 00 00 0A [23:11:42]Write i2c OK [23:11:42]MH_I2C_Read... [23:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:42]Read from MH i2c: E2 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 17 00 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: E2 17 00 F7 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 62 [23:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:11:42]wFMCommunicate OK [23:11:42]CreateOFDProtocolMessage done [23:11:42]OFDSenderStorePacket 74773 [23:11:42]StoreOFDPacket docnum=74773 [23:11:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 9C 07 01 04 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 B7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 24 01 00 35 04 06 00 40 73 16 D4 09 42 D2 C6 86 00 64 4D B2 7C [23:11:42]CheckFolder [23:11:42]dirname=/storage/ofd_packets [23:11:42]CheckFolder done [23:11:42]ProducePacketName [23:11:42]name=ofd_packets/00074773 [23:11:42]NVStorageSaveData ofd_packets/00074773 [23:11:42]File name is /storage/ofd_packets/00074773 [23:11:42]Write 301 bytes [23:11:42]NVStorageSaveData done [23:11:42]OFDSenderStorePacket done [23:11:42]KKMCreateOFDPacket done [23:11:42]NVStorageSaveData kkm_last_timestamp [23:11:42]File name is /storage/kkm_last_timestamp [23:11:42]Write 4 bytes [23:11:42]NVStorageSaveData done [23:11:42]ExternCall_PrintAddStr [23:11:42]wPrintStart [23:11:42]Write to MH i2c: 01 00 00 F8 99 91 [23:11:42]Write i2c OK [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: 01 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: 01 07 00 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: 01 07 00 F8 99 00 00 00 00 00 FF 0F A6 [23:11:42]RasterBufferAndPrint [23:11:42]line Счет N : (1)190743 [23:11:42]line ИНН: 02508201610067 [23:11:42]line Контрольно-Кассовый Чек [23:11:42]line ПРОДАЖА [23:11:42]line ТРК (МРК, ГНК) : 21 [23:11:42]line Товар: 2710124130 [23:11:42]line Аи-92-К-5 [23:11:42]line 36.420 * 66.90 [23:11:42]line = 2436.50 [23:11:42]line НДС 12% НСП 1% [23:11:42]line > о реализуемом товаре [23:11:42]line ИТОГО: 2436.50 [23:11:42]line НСП 1% : 21.56 [23:11:42]line НДС 12% : 258.74 [23:11:42]line Наличными: 0.00 [23:11:42]line Безнал.: 2436.50 [23:11:42]line Место: АЗС № 142 "Партнер Нефть" [23:11:42]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:11:42]line СНО: Общий режим [23:11:42]line Чек 217 24.10.2024 23:11 [23:11:42]line Смена: 510 ФФД: 1.0 [23:11:42]line ЗНМ: 0300000089 [23:11:42]line РНМ: 0000000000091691 [23:11:42]line Версия ККМ: 001 [23:11:42]line Платежная система: Mbank [23:11:42]line ФМ: 0000000000871795 [23:11:42]line ФД: 74773 [23:11:42]line ФПД: 70863048411458 [23:11:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231153&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74773&fm=70863048411458&tin=02508201610067®Number=0000000000091691&sum=243650 [23:11:42]OFD Sender: Processing packet 74773 [packets to send 13, broken 12] [23:11:42]ProducePacketName [23:11:42]name=ofd_packets/00074773 [23:11:42]OFD Sender: To server: pG, [23:11:42]CommunicateWithHost lk.salyk.kg:30040 [23:11:42]ConnectInit lk.salyk.kg [23:11:42]written 0, free lines is 4095 [23:11:42]Connected sock=8 [23:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 9C 07 01 04 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 B7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 39 D4 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 24 01 00 35 04 06 00 40 73 16 D4 09 42 D2 C6 86 00 64 4D B2 7C [23:11:42]Write to MH i2c: 01 00 00 21 9A BB [23:11:42]Write i2c OK [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: 01 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: 01 07 00 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: 01 07 00 21 9A 00 00 00 00 00 D4 0C A2 [23:11:42]RasterBufferAndPrint [23:11:42]line [23:11:42]line [23:11:42]line [23:11:42]line [23:11:42]line [23:11:42]written 0, free lines is 3289 [23:11:42]MH_Cut [23:11:42]Write to MH i2c: D1 01 00 28 9A 01 94 [23:11:42]Write i2c OK [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: D1 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: D1 01 00 [23:11:42]MH_I2C_Read... [23:11:42]Read from MH i2c: D1 01 00 28 9A 00 93 [23:11:42]Write to MH i2c: 01 00 00 29 9A C3 [23:11:42]Write i2c OK [23:11:42]MH_I2C_Read... [23:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6D 89 47 00 43 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 24 01 00 F4 03 04 00 BA 7B 1A 67 B6 04 01 00 00 3D C3 E5 E4 F9 67 E7 75 [23:11:43]CommunicateWithHost err = 0 [23:11:43]CheckOFDResponse [23:11:43]1017 (14) - 77093643461234 [23:11:43]1041 (16) - 0000000000871795 [23:11:43]1040 (4) - 74773 [23:11:43]1012 (4) - 24.10.2024 16:54 [23:11:43]1206 (1) - 0 [23:11:43]OFD Sender: Remove packet 74773 [23:11:43]ProducePacketName [23:11:43]name=ofd_packets/00074773 [23:11:43]NVStorageDeleteData [23:11:43]OFD Sender: No OFD packet to send [23:11:43]*** Cut start [23:11:43]*** Partial cut [23:11:43]*** CUTSNS_PIN = 1 [23:11:43]*** CUTSNS_PIN = 0 [23:11:44]*** Brake cut motor [23:11:44]Read from MH i2c: 01 [23:11:44]MH_I2C_Read... [23:11:44]*** Stop cut motor [23:11:44]*** Cut end [23:11:44]Read from MH i2c: 01 07 00 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: 01 07 00 29 9A 00 00 00 00 00 FF 0F D8 [23:11:44]process_action close_receipt done [23:11:44]requested_data is exist [23:11:44]produce_requested_data [23:11:44]requested_item fm.sn is exist - process it [23:11:44]wFMCommunicate request_size=4 [23:11:44]MH_SAM_APDU [23:11:44]CAPDU: 80 11 00 00 [23:11:44]Write to MH i2c: E2 08 00 2A 9A 80 11 00 00 00 00 00 00 3E [23:11:44]Write i2c OK [23:11:44]MH_I2C_Read... [23:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:44]Read from MH i2c: E2 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 17 00 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 17 00 2A 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 96 [23:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:11:44]wFMCommunicate OK [23:11:44]requested_item fd.num is exist - process it [23:11:44]SAM_PROTO_GetFieldsCounters [23:11:44]wFMCommunicate request_size=4 [23:11:44]MH_SAM_APDU [23:11:44]CAPDU: 80 13 00 00 [23:11:44]Write to MH i2c: E2 08 00 2B 9A 80 13 00 00 00 00 00 00 41 [23:11:44]Write i2c OK [23:11:44]MH_I2C_Read... [23:11:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:44]Read from MH i2c: E2 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 62 00 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 62 00 2B 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 15 24 01 00 0E 04 04 00 FE 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 2C [23:11:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 15 24 01 00 0E 04 04 00 FE 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 [23:11:44]wFMCommunicate OK [23:11:44]SAM_PROTO_GetFieldsCounters done [23:11:44]requested_item shift.num is exist - process it [23:11:44]requested_item shift.opened is exist - process it [23:11:44]req_shift_opened [23:11:44]FM_GetShiftState [23:11:44]SAM_PROTO_GetShiftState [23:11:44]wFMCommunicate request_size=4 [23:11:44]MH_SAM_APDU [23:11:44]CAPDU: 80 13 01 00 [23:11:44]Write to MH i2c: E2 08 00 2C 9A 80 13 01 00 00 00 00 00 43 [23:11:44]Write i2c OK [23:11:44]MH_I2C_Read... [23:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:44]Read from MH i2c: E2 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 0E 00 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 0E 00 2C 9A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 6D [23:11:44]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:11:44]wFMCommunicate OK [23:11:44]SAM_PROTO_GetShiftState done [23:11:44]FM_GetShiftState done [23:11:44]req_shift_opened done [23:11:44]requested_item shift.open_date is exist - process it [23:11:44]req_shift_open_date [23:11:44]req_shift_open_date done [23:11:44]produce_requested_data done [23:11:44]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74773,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:11:44]process_action_free close_receipt [23:11:44]json_value_free [23:11:44]json_value_free done [23:11:44]process_json_proto returns [23:11:44]Send response to host [23:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74773,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:11:44]free response buf [23:11:44]execute_script done [23:11:44]execute_script returns [23:11:44]free content buf [23:11:44]Sock 9.Close socket [23:11:44]Sock 9.Thread stoped [23:11:48]OFD Sender: No OFD packet to send [23:11:50]int [23:11:50]Write to MH i2c: 01 00 00 2D 9A C7 [23:11:50]*** FLAG_PRN_KEY set [23:11:50]Write i2c OK [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 07 00 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 07 00 2D 9A 00 08 00 00 00 FF 0F E4 [23:11:50]state=0 [23:11:50]Key pressed [23:11:50]Feed [23:11:50]Write to MH i2c: D8 00 00 2E 9A 9F [23:11:50]Write i2c OK [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: D8 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: D8 01 00 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: D8 01 00 2E 9A 00 A0 [23:11:50]int [23:11:50]Write to MH i2c: 01 00 00 2F 9A C9 [23:11:50]Write i2c OK [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 07 00 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 07 00 2F 9A 00 48 00 00 00 3C 00 54 [23:11:50]state=2 [23:11:50]Key pressed [23:11:50]int [23:11:50]Write to MH i2c: 01 00 00 30 9A CA [23:11:50]*** FLAG_PRN_KEY reset [23:11:50]Write i2c OK [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 07 00 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: 01 07 00 30 9A 00 00 00 00 00 F9 0F D9 [23:11:50]state=2 [23:11:50]Stop feed [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:39]accept exits with 10 [23:20:39]New connection [23:20:39]New thread 3066805604 created [23:20:39]Thread 3066662244 joined [23:20:39]Waiting for new connection... [23:20:39] Sock 10.Parse request [23:20:39]Sock 10.Check first char [23:20:39]Sock 10.First char is OK [23:20:39]request: POST /json_proto HTTP/1.0 [23:20:39]Method: POST [23:20:39]URL: /json_proto [23:20:39]Method is POST - this is cgi request [23:20:39]url: /json_proto [23:20:39]query_string will be loaded in cgi processing [23:20:39]execute_cgi json_proto POST (null) [23:20:39]execute_cgi path=json_proto method=POST [23:20:39]POST find Content-Length [23:20:39]Host: 172.17.39.131:8080 [23:20:39]Content-Length: 677 [23:20:39]Content-Type: application/json [23:20:39] [23:20:39]POST finish read [23:20:39]Found Content-Length = 677 [23:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:39]execute_script... [23:20: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)190746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:39]POST & json_proto [23:20:39]process_json_proto [23:20:39]json parsed OK: [23:20:39]protocol is kg_v1.0 [23:20:39]action value=close_receipt [23:20:39]process_action close_receipt [23:20:39]cmd_close_receipt [23:20:39]MH_GetDate [23:20:39]Write to MH i2c: F0 00 00 31 9A BA [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: F0 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: F0 09 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: F0 09 00 31 9A 00 55 D6 1A 67 86 57 24 65 D5 [23:20:39]GetLastDocTimeStamp 1729811513 [23:20:39]current date 1729812053 [23:20:39]FM_GetShiftState [23:20:39]SAM_PROTO_GetShiftState [23:20:39]wFMCommunicate request_size=4 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 13 01 00 [23:20:39]Write to MH i2c: E2 08 00 32 9A 80 13 01 00 00 00 00 00 49 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 0E 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 0E 00 32 9A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 73 [23:20:39]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:20:39]wFMCommunicate OK [23:20:39]SAM_PROTO_GetShiftState done [23:20:39]FM_GetShiftState done [23:20:39]opened in 1729729801 [23:20:39]opened+sec_in_day 1729816201 [23:20:39]quantity*price = 50041 [23:20:39]sum+1 = 50042 [23:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 218 24.10.2024 23:20 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74774 ФПД: 151223775289234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232053&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74774&fm=151223775289234&tin=02508201610067®Number=0000000000091691&sum=50000 [23:20:40]StoreToDocumentArchive [23:20:40]shift 510 fd 74774 [23:20:40]save to /storage/0510/doc_00074774 [23:20:40]save last doc name /storage/0510/doc_00074774 to /storage/kkm_last_doc_name [23:20:40]save OK [23:20:40]Clear old archive folders... [23:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:41]tlvbuf is 0087C3D0 [23:20:41]SAM_PROTO_ClearQueue [23:20:41]wFMCommunicate request_size=4 [23:20:41]MH_SAM_APDU [23:20:41]CAPDU: 80 09 00 00 [23:20:41]Write to MH i2c: E2 08 00 3F 9A 80 09 00 00 00 00 00 00 4B [23:20:41]Write i2c OK [23:20:41]MH_I2C_Read... [23:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:41]Read from MH i2c: E2 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 3F 9A 00 90 00 4D [23:20:41]RAPDU: 90 00 [23:20:41]wFMCommunicate OK [23:20:41]SAM_PROTO_ClearQueue done [23:20:41]KKMCreateOFDPacket [23:20:41]OFDProtocolAddRootSTLVToBuf [23:20:41]FM_MakeSignedData [23:20:41]FM_MakeSignedData [23:20:41]SAM_PROTO_SignData [23:20:41]wFMCommunicate request_size=4 [23:20:41]MH_SAM_APDU [23:20:41]CAPDU: 80 0D 01 02 [23:20:41]Write to MH i2c: E2 08 00 40 9A 80 0D 01 02 00 00 00 00 53 [23:20:41]Write i2c OK [23:20:41]MH_I2C_Read... [23:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:41]Read from MH i2c: E2 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 40 9A 00 90 00 4E [23:20:41]RAPDU: 90 00 [23:20:41]wFMCommunicate OK [23:20:41]wFMCommunicate request_size=255 [23:20:41]MH_SAM_APDU [23: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 55 D6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 16 24 01 00 35 04 06 00 89 [23:20:41]Write to MH i2c: E2 02 01 41 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 55 D6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 16 24 01 00 35 04 06 00 89 00 00 31 [23:20:41]Write i2c OK [23:20:41]MH_I2C_Read... [23:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:41]Read from MH i2c: E2 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 41 9A 00 90 00 4F [23:20:41]RAPDU: 90 00 [23:20:41]wFMCommunicate OK [23:20:41]wFMCommunicate request_size=10 [23:20:41]MH_SAM_APDU [23:20:41]CAPDU: 80 0D 02 02 05 89 87 68 5F 92 [23:20:41]Write to MH i2c: E2 0D 00 42 9A 80 0D 02 02 05 00 89 87 68 5F 92 00 00 C9 [23:20:41]Write i2c OK [23:20:41]MH_I2C_Read... [23:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:41]Read from MH i2c: E2 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 03 00 42 9A 00 90 00 50 [23:20:41]RAPDU: 90 00 [23:20:41]wFMCommunicate OK [23:20:41]wFMCommunicate request_size=4 [23:20:41]MH_SAM_APDU [23:20:41]CAPDU: 80 0D 03 02 [23:20:41]Write to MH i2c: E2 08 00 43 9A 80 0D 03 02 00 00 00 00 58 [23:20:41]Write i2c OK [23:20:41]MH_I2C_Read... [23:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:41]Read from MH i2c: E2 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 0B 00 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 0B 00 43 9A 00 AD A1 13 AF 6E E6 E6 E6 90 00 89 [23:20:41]RAPDU: AD A1 13 AF 6E E6 E6 E6 90 00 [23:20:41]wFMCommunicate OK [23:20:41]SAM_PROTO_SignData done [23:20:41]FM_MakeSignedData done [23:20:41]CreateOFDProtocolMessage [23:20:41]wFMCommunicate request_size=4 [23:20:41]MH_SAM_APDU [23:20:41]CAPDU: 80 11 00 00 [23:20:41]Write to MH i2c: E2 08 00 44 9A 80 11 00 00 00 00 00 00 58 [23:20:41]Write i2c OK [23:20:41]MH_I2C_Read... [23:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:41]Read from MH i2c: E2 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 17 00 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: E2 17 00 44 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B0 [23:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:20:41]wFMCommunicate OK [23:20:41]CreateOFDProtocolMessage done [23:20:41]OFDSenderStorePacket 74774 [23:20:41]StoreOFDPacket docnum=74774 [23:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 43 4C 07 01 54 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 55 D6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 16 24 01 00 35 04 06 00 89 89 87 68 5F 92 AD A1 13 AF 6E E6 E6 E6 [23:20:41]CheckFolder [23:20:41]dirname=/storage/ofd_packets [23:20:41]CheckFolder done [23:20:41]ProducePacketName [23:20:41]name=ofd_packets/00074774 [23:20:41]NVStorageSaveData ofd_packets/00074774 [23:20:41]File name is /storage/ofd_packets/00074774 [23:20:41]Write 301 bytes [23:20:41]NVStorageSaveData done [23:20:41]OFDSenderStorePacket done [23:20:41]KKMCreateOFDPacket done [23:20:41]NVStorageSaveData kkm_last_timestamp [23:20:41]File name is /storage/kkm_last_timestamp [23:20:41]Write 4 bytes [23:20:41]NVStorageSaveData done [23:20:41]ExternCall_PrintAddStr [23:20:41]wPrintStart [23:20:41]Write to MH i2c: 01 00 00 45 9A DF [23:20:41]Write i2c OK [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: 01 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: 01 07 00 [23:20:41]MH_I2C_Read... [23:20:41]Read from MH i2c: 01 07 00 45 9A 00 00 00 00 00 FF 0F F4 [23:20:41]RasterBufferAndPrint [23:20:41]line Счет N : (1)190746 [23:20:41]line ИНН: 02508201610067 [23:20:41]line Контрольно-Кассовый Чек [23:20:41]line ПРОДАЖА [23:20:41]line ТРК (МРК, ГНК) : 21 [23:20:41]line Товар: 2710124130 [23:20:41]line Аи-92-К-5 [23:20:41]line 7.480 * 66.90 [23:20:41]line = 500.41 [23:20:41]line НДС 12% НСП 1% [23:20:41]line > о реализуемом товаре [23:20:41]line ОКРУГЛЕНИЕ: -0.41 [23:20:41]line ИТОГО: 500.00 [23:20:41]line Внесено: 500.00 [23:20:41]line СДАЧА: 0.00 [23:20:41]line НСП 1% : 4.43 [23:20:41]line НДС 12% : 53.14 [23:20:41]line Наличными: 500.00 [23:20:41]line Безнал.: 0.00 [23:20:41]line Место: АЗС № 142 "Партнер Нефть" [23:20:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:20:41]line СНО: Общий режим [23:20:41]line Чек 218 24.10.2024 23:20 [23:20:41]line Смена: 510 ФФД: 1.0 [23:20:41]line ЗНМ: 0300000089 [23:20:41]line РНМ: 0000000000091691 [23:20:41]line Версия ККМ: 001 [23:20:41]line ФМ: 0000000000871795 [23:20:41]line ФД: 74774 [23:20:41]line ФПД: 151223775289234 [23:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232053&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74774&fm=151223775289234&tin=02508201610067®Number=0000000000091691&sum=50000 [23:20:41]OFD Sender: Processing packet 74774 [packets to send 13, broken 12] [23:20:41]ProducePacketName [23:20:41]name=ofd_packets/00074774 [23:20:41]OFD Sender: To server: pG, [23:20:41]CommunicateWithHost lk.salyk.kg:30040 [23:20:41]ConnectInit lk.salyk.kg [23:20:41]written 0, free lines is 4095 [23:20:42]Connected sock=8 [23: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 31 37 39 35 0F 01 00 00 43 4C 07 01 54 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 55 D6 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 16 24 01 00 35 04 06 00 89 89 87 68 5F 92 AD A1 13 AF 6E E6 E6 E6 [23:20:42]Write to MH i2c: 01 00 00 70 9A 0A [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: 01 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: 01 07 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: 01 07 00 70 9A 00 00 00 00 00 A7 0C C4 [23:20:42]RasterBufferAndPrint [23:20:42]line [23:20:42]line [23:20:42]line [23:20:42]line [23:20:42]line [23:20:42]written 0, free lines is 3245 [23:20:42]MH_Cut [23:20:42]Write to MH i2c: D1 01 00 77 9A 01 E3 [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: D1 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: D1 01 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: D1 01 00 77 9A 00 E2 [23:20:42]Write to MH i2c: 01 00 00 78 9A 12 [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 67 38 47 00 C3 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 31 37 39 35 10 04 04 00 16 24 01 00 F4 03 04 00 D6 7D 1A 67 B6 04 01 00 00 2A 4D 53 BA B8 0D DF 1E [23:20:42]CommunicateWithHost err = 0 [23:20:42]CheckOFDResponse [23:20:42]1017 (14) - 77093643461234 [23:20:42]1041 (16) - 0000000000871795 [23:20:42]1040 (4) - 74774 [23:20:42]1012 (4) - 24.10.2024 17:03 [23:20:42]1206 (1) - 0 [23:20:42]OFD Sender: Remove packet 74774 [23:20:42]ProducePacketName [23:20:42]name=ofd_packets/00074774 [23:20:42]NVStorageDeleteData [23:20:42]OFD Sender: No OFD packet to send [23:20:43]*** Cut start [23:20:43]*** Partial cut [23:20:43]*** CUTSNS_PIN = 1 [23:20:43]*** CUTSNS_PIN = 0 [23:20:43]*** Brake cut motor [23:20:43]Read from MH i2c: 01 [23:20:43]MH_I2C_Read... [23:20:43]*** Stop cut motor [23:20:43]*** Cut end [23:20:43]Read from MH i2c: 01 07 00 [23:20:43]MH_I2C_Read... [23:20:43]Read from MH i2c: 01 07 00 78 9A 00 00 00 00 00 FF 0F 27 [23:20:43]process_action close_receipt done [23:20:43]requested_data is exist [23:20:43]produce_requested_data [23:20:43]requested_item fm.sn is exist - process it [23:20:43]wFMCommunicate request_size=4 [23:20:43]MH_SAM_APDU [23:20:43]CAPDU: 80 11 00 00 [23:20:43]Write to MH i2c: E2 08 00 79 9A 80 11 00 00 00 00 00 00 8D [23:20:43]Write i2c OK [23:20:43]MH_I2C_Read... [23:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:43]Read from MH i2c: E2 [23:20:43]MH_I2C_Read... [23:20:43]Read from MH i2c: E2 17 00 [23:20:43]MH_I2C_Read... [23:20:43]Read from MH i2c: E2 17 00 79 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E5 [23:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:20:43]wFMCommunicate OK [23:20:43]requested_item fd.num is exist - process it [23:20:43]SAM_PROTO_GetFieldsCounters [23:20:43]wFMCommunicate request_size=4 [23:20:43]MH_SAM_APDU [23:20:43]CAPDU: 80 13 00 00 [23:20:43]Write to MH i2c: E2 08 00 7A 9A 80 13 00 00 00 00 00 00 90 [23:20:43]Write i2c OK [23:20:43]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 62 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 62 00 7A 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 16 24 01 00 0E 04 04 00 FE 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 7F [23: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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 16 24 01 00 0E 04 04 00 FE 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 [23:20:44]wFMCommunicate OK [23:20:44]SAM_PROTO_GetFieldsCounters done [23:20:44]requested_item shift.num is exist - process it [23:20:44]requested_item shift.opened is exist - process it [23:20:44]req_shift_opened [23:20:44]FM_GetShiftState [23:20:44]SAM_PROTO_GetShiftState [23:20:44]wFMCommunicate request_size=4 [23:20:44]MH_SAM_APDU [23:20:44]CAPDU: 80 13 01 00 [23:20:44]Write to MH i2c: E2 08 00 7B 9A 80 13 01 00 00 00 00 00 92 [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0E 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0E 00 7B 9A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BC [23:20:44]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:20:44]wFMCommunicate OK [23:20:44]SAM_PROTO_GetShiftState done [23:20:44]FM_GetShiftState done [23:20:44]req_shift_opened done [23:20:44]requested_item shift.open_date is exist - process it [23:20:44]req_shift_open_date [23:20:44]req_shift_open_date done [23:20:44]produce_requested_data done [23:20:44]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74774,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:20:44]process_action_free close_receipt [23:20:44]json_value_free [23:20:44]json_value_free done [23:20:44]process_json_proto returns [23:20:44]Send response to host [23:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74774,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:20:44]free response buf [23:20:44]execute_script done [23:20:44]execute_script returns [23:20:44]free content buf [23:20:44]Sock 10.Close socket [23:20:44]Sock 10.Thread stoped [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:54]recv_with_timeout no data received [23:21:57]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:03]accept exits with 9 [23:24:03]New connection [23:24:03]New thread 3066662244 created [23:24:03]Thread 3066805604 joined [23:24:03]Waiting for new connection... [23:24:03] Sock 9.Parse request [23:24:03]Sock 9.Check first char [23:24:03]Sock 9.First char is OK [23:24:03]request: POST /json_proto HTTP/1.0 [23:24:03]Method: POST [23:24:03]URL: /json_proto [23:24:03]Method is POST - this is cgi request [23:24:03]url: /json_proto [23:24:03]query_string will be loaded in cgi processing [23:24:03]execute_cgi json_proto POST (null) [23:24:03]execute_cgi path=json_proto method=POST [23:24:03]POST find Content-Length [23:24:03]Host: 172.17.39.131:8080 [23:24:03]Content-Length: 799 [23:24:03]Content-Type: application/json [23:24:03] [23:24:03]POST finish read [23:24:03]Found Content-Length = 799 [23:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:03]execute_script... [23:24: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)190739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:03]POST & json_proto [23:24:03]process_json_proto [23:24:03]json parsed OK: [23:24:03]protocol is kg_v1.0 [23:24:03]action value=close_receipt [23:24:03]process_action close_receipt [23:24:03]cmd_close_receipt [23:24:03]MH_GetDate [23:24:03]Write to MH i2c: F0 00 00 7C 9A 05 [23:24:03]Write i2c OK [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: F0 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: F0 09 00 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: F0 09 00 7C 9A 00 20 D7 1A 67 86 57 24 65 EC [23:24:03]GetLastDocTimeStamp 1729812053 [23:24:03]current date 1729812256 [23:24:03]FM_GetShiftState [23:24:03]SAM_PROTO_GetShiftState [23:24:03]wFMCommunicate request_size=4 [23:24:03]MH_SAM_APDU [23:24:03]CAPDU: 80 13 01 00 [23:24:03]Write to MH i2c: E2 08 00 7D 9A 80 13 01 00 00 00 00 00 94 [23:24:03]Write i2c OK [23:24:03]MH_I2C_Read... [23:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:03]Read from MH i2c: E2 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: E2 0E 00 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: E2 0E 00 7D 9A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 BE [23:24:03]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:24:03]wFMCommunicate OK [23:24:03]SAM_PROTO_GetShiftState done [23:24:03]FM_GetShiftState done [23:24:03]opened in 1729729801 [23:24:03]opened+sec_in_day 1729816201 [23:24:03]quantity*price = 0 [23:24:03]sum+1 = 1 [23:24:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 219 24.10.2024 23:24 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74775 ФПД: 281069104592633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232416&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74775&fm=281069104592633&tin=02508201610067®Number=0000000000091691&sum=0 [23:24:04]StoreToDocumentArchive [23:24:04]shift 510 fd 74775 [23:24:04]save to /storage/0510/doc_00074775 [23:24:04]save last doc name /storage/0510/doc_00074775 to /storage/kkm_last_doc_name [23:24:04]save OK [23:24:04]Clear old archive folders... [23:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:24:04]tlvbuf is 007EBB70 [23:24:04]SAM_PROTO_ClearQueue [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 09 00 00 [23:24:04]Write to MH i2c: E2 08 00 8A 9A 80 09 00 00 00 00 00 00 96 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 8A 9A 00 90 00 98 [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]SAM_PROTO_ClearQueue done [23:24:04]KKMCreateOFDPacket [23:24:04]OFDProtocolAddRootSTLVToBuf [23:24:04]FM_MakeSignedData [23:24:04]FM_MakeSignedData [23:24:04]SAM_PROTO_SignData [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 0D 01 02 [23:24:04]Write to MH i2c: E2 08 00 8B 9A 80 0D 01 02 00 00 00 00 9E [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 8B 9A 00 90 00 99 [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]wFMCommunicate request_size=255 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 D7 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 24 01 [23:24:04]Write to MH i2c: E2 02 01 8C 9A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 D7 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 24 01 00 00 8F [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 8C 9A 00 90 00 9A [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]wFMCommunicate request_size=16 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FF A1 80 22 F6 F9 [23:24:04]Write to MH i2c: E2 13 00 8D 9A 80 0D 02 02 0B 00 00 35 04 06 00 FF A1 80 22 F6 F9 00 00 27 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 03 00 8D 9A 00 90 00 9B [23:24:04]RAPDU: 90 00 [23:24:04]wFMCommunicate OK [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 0D 03 02 [23:24:04]Write to MH i2c: E2 08 00 8E 9A 80 0D 03 02 00 00 00 00 A3 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 0B 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 0B 00 8E 9A 00 C8 E4 8E 33 7F 88 5D 76 90 00 EB [23:24:04]RAPDU: C8 E4 8E 33 7F 88 5D 76 90 00 [23:24:04]wFMCommunicate OK [23:24:04]SAM_PROTO_SignData done [23:24:04]FM_MakeSignedData done [23:24:04]CreateOFDProtocolMessage [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 11 00 00 [23:24:04]Write to MH i2c: E2 08 00 8F 9A 80 11 00 00 00 00 00 00 A3 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 17 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 17 00 8F 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FB [23:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:24:04]wFMCommunicate OK [23:24:04]CreateOFDProtocolMessage done [23:24:04]OFDSenderStorePacket 74775 [23:24:04]StoreOFDPacket docnum=74775 [23:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 C3 C2 0D 01 43 E6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 D7 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 24 01 00 35 04 06 00 FF A1 80 22 F6 F9 C8 E4 8E 33 7F 88 5D 76 [23:24:04]CheckFolder [23:24:04]dirname=/storage/ofd_packets [23:24:04]CheckFolder done [23:24:04]ProducePacketName [23:24:04]name=ofd_packets/00074775 [23:24:04]NVStorageSaveData ofd_packets/00074775 [23:24:04]File name is /storage/ofd_packets/00074775 [23:24:04]Write 307 bytes [23:24:04]NVStorageSaveData done [23:24:04]OFDSenderStorePacket done [23:24:04]KKMCreateOFDPacket done [23:24:04]NVStorageSaveData kkm_last_timestamp [23:24:04]File name is /storage/kkm_last_timestamp [23:24:04]Write 4 bytes [23:24:04]NVStorageSaveData done [23:24:04]ExternCall_PrintAddStr [23:24:04]wPrintStart [23:24:04]Write to MH i2c: 01 00 00 90 9A 2A [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: 01 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: 01 07 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: 01 07 00 90 9A 00 00 00 00 00 FF 0F 3F [23:24:04]RasterBufferAndPrint [23:24:04]line Счет N : (1)190739 [23:24:04]line ИНН: 02508201610067 [23:24:04]line Контрольно-Кассовый Чек [23:24:04]line ПРОДАЖА [23:24:04]line ТРК (МРК, ГНК) : 32 [23:24:04]line Товар: 2710194240 [23:24:04]line D-ENERGY ДТ-К-2 [23:24:04]line 500.000 * 0.00 [23:24:04]line = 0.00 [23:24:04]line НДС 12% НСП 1% [23:24:04]line > о реализуемом товаре [23:24:04]line ИТОГО: 0.00 [23:24:04]line НСП 1% : 0.00 [23:24:04]line НДС 12% : 0.00 [23:24:04]line Наличными: 0.00 [23:24:04]line Безнал.: 0.00 [23:24:04]line Место: АЗС № 142 "Партнер Нефть" [23:24:04]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:24:04]line СНО: Общий режим [23:24:04]line Чек 219 24.10.2024 23:24 [23:24:04]line Смена: 510 ФФД: 1.0 [23:24:04]line ЗНМ: 0300000089 [23:24:04]line РНМ: 0000000000091691 [23:24:04]line Версия ККМ: 001 [23:24:04]line Талоны: Топливная Карта [23:24:04]line 82575 [23:24:04]line ФМ: 0000000000871795 [23:24:04]line ФД: 74775 [23:24:04]line ФПД: 281069104592633 [23:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232416&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74775&fm=281069104592633&tin=02508201610067®Number=0000000000091691&sum=0 [23:24:05]OFD Sender: Processing packet 74775 [packets to send 13, broken 12] [23:24:05]ProducePacketName [23:24:05]name=ofd_packets/00074775 [23:24:05]OFD Sender: To server: pG, [23:24:05]CommunicateWithHost lk.salyk.kg:30040 [23:24:05]ConnectInit lk.salyk.kg [23:24:05]written 0, free lines is 4095 [23:24:05]Connected sock=11 [23:24:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 C3 C2 0D 01 43 E6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 D7 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 24 01 00 35 04 06 00 FF A1 80 22 F6 F9 C8 E4 8E 33 7F 88 5D 76 [23:24:05]Write to MH i2c: 01 00 00 BA 9A 54 [23:24:05]Write i2c OK [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: 01 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: 01 07 00 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: 01 07 00 BA 9A 00 00 00 00 00 B6 0C 1D [23:24:05]RasterBufferAndPrint [23:24:05]line [23:24:05]line [23:24:05]line [23:24:05]line [23:24:05]line [23:24:05]written 0, free lines is 3260 [23:24:05]MH_Cut [23:24:05]Write to MH i2c: D1 01 00 C1 9A 01 2D [23:24:05]Write i2c OK [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: D1 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: D1 01 00 [23:24:05]MH_I2C_Read... [23:24:05]Read from MH i2c: D1 01 00 C1 9A 00 2C [23:24:05]Write to MH i2c: 01 00 00 C2 9A 5C [23:24:05]Write i2c OK [23:24:05]MH_I2C_Read... [23:24:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F4 3B 47 00 28 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 31 37 39 35 10 04 04 00 17 24 01 00 F4 03 04 00 A1 7E 1A 67 B6 04 01 00 00 4C AC FE 9E 5C 6B E7 88 [23:24:05]CommunicateWithHost err = 0 [23:24:05]CheckOFDResponse [23:24:05]1017 (14) - 77093643461234 [23:24:05]1041 (16) - 0000000000871795 [23:24:05]1040 (4) - 74775 [23:24:05]1012 (4) - 24.10.2024 17:06 [23:24:05]1206 (1) - 0 [23:24:05]OFD Sender: Remove packet 74775 [23:24:05]ProducePacketName [23:24:05]name=ofd_packets/00074775 [23:24:05]NVStorageDeleteData [23:24:06]OFD Sender: No OFD packet to send [23:24:06]*** Cut start [23:24:06]*** Partial cut [23:24:06]*** CUTSNS_PIN = 1 [23:24:06]*** CUTSNS_PIN = 0 [23:24:06]*** Brake cut motor [23:24:07]Read from MH i2c: 01 [23:24:07]MH_I2C_Read... [23:24:07]*** Stop cut motor [23:24:07]*** Cut end [23:24:07]Read from MH i2c: 01 07 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: 01 07 00 C2 9A 00 00 00 00 00 FF 0F 71 [23:24:07]process_action close_receipt done [23:24:07]requested_data is exist [23:24:07]produce_requested_data [23:24:07]requested_item fm.sn is exist - process it [23:24:07]wFMCommunicate request_size=4 [23:24:07]MH_SAM_APDU [23:24:07]CAPDU: 80 11 00 00 [23:24:07]Write to MH i2c: E2 08 00 C3 9A 80 11 00 00 00 00 00 00 D7 [23:24:07]Write i2c OK [23:24:07]MH_I2C_Read... [23:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:07]Read from MH i2c: E2 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 17 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 17 00 C3 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2F [23:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:24:07]wFMCommunicate OK [23:24:07]requested_item fd.num is exist - process it [23:24:07]SAM_PROTO_GetFieldsCounters [23:24:07]wFMCommunicate request_size=4 [23:24:07]MH_SAM_APDU [23:24:07]CAPDU: 80 13 00 00 [23:24:07]Write to MH i2c: E2 08 00 C4 9A 80 13 00 00 00 00 00 00 DA [23:24:07]Write i2c OK [23:24:07]MH_I2C_Read... [23:24:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:07]Read from MH i2c: E2 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 62 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 62 00 C4 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 17 24 01 00 0E 04 04 00 FE 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 CD [23:24:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 17 24 01 00 0E 04 04 00 FE 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 [23:24:07]wFMCommunicate OK [23:24:07]SAM_PROTO_GetFieldsCounters done [23:24:07]requested_item shift.num is exist - process it [23:24:07]requested_item shift.opened is exist - process it [23:24:07]req_shift_opened [23:24:07]FM_GetShiftState [23:24:07]SAM_PROTO_GetShiftState [23:24:07]wFMCommunicate request_size=4 [23:24:07]MH_SAM_APDU [23:24:07]CAPDU: 80 13 01 00 [23:24:07]Write to MH i2c: E2 08 00 C5 9A 80 13 01 00 00 00 00 00 DC [23:24:07]Write i2c OK [23:24:07]MH_I2C_Read... [23:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:07]Read from MH i2c: E2 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 0E 00 [23:24:07]MH_I2C_Read... [23:24:07]Read from MH i2c: E2 0E 00 C5 9A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 06 [23:24:07]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:24:07]wFMCommunicate OK [23:24:07]SAM_PROTO_GetShiftState done [23:24:07]FM_GetShiftState done [23:24:07]req_shift_opened done [23:24:07]requested_item shift.open_date is exist - process it [23:24:07]req_shift_open_date [23:24:07]req_shift_open_date done [23:24:07]produce_requested_data done [23:24:07]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74775,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:24:07]process_action_free close_receipt [23:24:07]json_value_free [23:24:07]json_value_free done [23:24:07]process_json_proto returns [23:24:07]Send response to host [23:24:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74775,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:24:07]free response buf [23:24:07]execute_script done [23:24:07]execute_script returns [23:24:07]free content buf [23:24:07]Sock 9.Close socket [23:24:07]Sock 9.Thread stoped [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:21]ConnectInit Can't connect to host [23:24:23]int [23:24:23]Write to MH i2c: 01 00 00 C6 9A 60 [23:24:23]*** FLAG_PRN_KEY set [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 C6 9A 00 08 00 00 00 FF 0F 7D [23:24:23]state=0 [23:24:23]Key pressed [23:24:23]Feed [23:24:23]Write to MH i2c: D8 00 00 C7 9A 38 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D8 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D8 01 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D8 01 00 C7 9A 00 39 [23:24:23]int [23:24:23]Write to MH i2c: 01 00 00 C8 9A 62 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 C8 9A 00 48 00 00 00 3C 00 ED [23:24:23]state=2 [23:24:23]Key pressed [23:24:23]int [23:24:23]Write to MH i2c: 01 00 00 C9 9A 63 [23:24:23]*** FLAG_PRN_KEY reset [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 C9 9A 00 00 00 00 00 F7 0F 70 [23:24:23]state=2 [23:24:23]Stop feed [23:24:23]int [23:24:23]Write to MH i2c: 01 00 00 CA 9A 64 [23:24:23]*** FLAG_PRN_KEY set [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 CA 9A 00 08 00 00 00 FF 0F 81 [23:24:23]state=0 [23:24:23]Key pressed [23:24:23]Feed [23:24:23]Write to MH i2c: D8 00 00 CB 9A 3C [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D8 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D8 01 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: D8 01 00 CB 9A 00 3D [23:24:23]int [23:24:23]Write to MH i2c: 01 00 00 CC 9A 66 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 CC 9A 00 48 00 00 00 3C 00 F1 [23:24:23]state=2 [23:24:23]Key pressed [23:24:23]int [23:24:23]Write to MH i2c: 01 00 00 CD 9A 67 [23:24:23]*** FLAG_PRN_KEY reset [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 CD 9A 00 00 00 00 00 FB 0F 78 [23:24:23]state=2 [23:24:23]Stop feed [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [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:38]accept exits with 10 [23:39:38]New connection [23:39:38]New thread 3066805604 created [23:39:38]Thread 3066662244 joined [23:39:38]Waiting for new connection... [23:39:38] Sock 10.Parse request [23:39:38]Sock 10.Check first char [23:39:38]Sock 10.First char is OK [23:39:38]request: POST /json_proto HTTP/1.0 [23:39:38]Method: POST [23:39:38]URL: /json_proto [23:39:38]Method is POST - this is cgi request [23:39:38]url: /json_proto [23:39:38]query_string will be loaded in cgi processing [23:39:38]execute_cgi json_proto POST (null) [23:39:38]execute_cgi path=json_proto method=POST [23:39:38]POST find Content-Length [23:39:38]Host: 172.17.39.131:8080 [23:39:38]Content-Length: 682 [23:39:38]Content-Type: application/json [23:39:38] [23:39:38]POST finish read [23:39:38]Found Content-Length = 682 [23:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:38]execute_script... [23:39: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)190748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:38]POST & json_proto [23:39:38]process_json_proto [23:39:38]json parsed OK: [23:39:38]protocol is kg_v1.0 [23:39:38]action value=close_receipt [23:39:38]process_action close_receipt [23:39:38]cmd_close_receipt [23:39:38]MH_GetDate [23:39:38]Write to MH i2c: F0 00 00 CE 9A 57 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: F0 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: F0 09 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: F0 09 00 CE 9A 00 C8 DA 1A 67 86 57 24 65 E9 [23:39:38]GetLastDocTimeStamp 1729812256 [23:39:38]current date 1729813192 [23:39:38]FM_GetShiftState [23:39:38]SAM_PROTO_GetShiftState [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 13 01 00 [23:39:38]Write to MH i2c: E2 08 00 CF 9A 80 13 01 00 00 00 00 00 E6 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 0E 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 0E 00 CF 9A 00 09 00 01 09 95 19 67 00 00 00 00 90 00 10 [23:39:38]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:39:38]wFMCommunicate OK [23:39:38]SAM_PROTO_GetShiftState done [23:39:38]FM_GetShiftState done [23:39:38]opened in 1729729801 [23:39:38]opened+sec_in_day 1729816201 [23:39:38]quantity*price = 130053 [23:39:38]sum+1 = 130055 [23:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 220 24.10.2024 23:39 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74776 ФПД: 220875921756537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233952&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74776&fm=220875921756537&tin=02508201610067®Number=0000000000091691&sum=130000 [23:39:39]StoreToDocumentArchive [23:39:39]shift 510 fd 74776 [23:39:39]save to /storage/0510/doc_00074776 [23:39:39]save last doc name /storage/0510/doc_00074776 to /storage/kkm_last_doc_name [23:39:39]save OK [23:39:39]Clear old archive folders... [23:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:39:39]tlvbuf is 007D31C0 [23:39:39]SAM_PROTO_ClearQueue [23:39:39]wFMCommunicate request_size=4 [23:39:39]MH_SAM_APDU [23:39:39]CAPDU: 80 09 00 00 [23:39:39]Write to MH i2c: E2 08 00 DC 9A 80 09 00 00 00 00 00 00 E8 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:39]Read from MH i2c: E2 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: E2 03 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: E2 03 00 DC 9A 00 90 00 EA [23:39:39]RAPDU: 90 00 [23:39:39]wFMCommunicate OK [23:39:39]SAM_PROTO_ClearQueue done [23:39:39]KKMCreateOFDPacket [23:39:39]OFDProtocolAddRootSTLVToBuf [23:39:39]FM_MakeSignedData [23:39:39]FM_MakeSignedData [23:39:39]SAM_PROTO_SignData [23:39:39]wFMCommunicate request_size=4 [23:39:39]MH_SAM_APDU [23:39:39]CAPDU: 80 0D 01 02 [23:39:39]Write to MH i2c: E2 08 00 DD 9A 80 0D 01 02 00 00 00 00 F0 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:40]Read from MH i2c: E2 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 03 00 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 03 00 DD 9A 00 90 00 EB [23:39:40]RAPDU: 90 00 [23:39:40]wFMCommunicate OK [23:39:40]wFMCommunicate request_size=255 [23:39:40]MH_SAM_APDU [23:39: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 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C8 DA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 24 01 00 35 04 06 00 C8 [23:39:40]Write to MH i2c: E2 02 01 DE 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 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C8 DA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 24 01 00 35 04 06 00 C8 00 00 C0 [23:39:40]Write i2c OK [23:39:40]MH_I2C_Read... [23:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:40]Read from MH i2c: E2 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 03 00 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 03 00 DE 9A 00 90 00 EC [23:39:40]RAPDU: 90 00 [23:39:40]wFMCommunicate OK [23:39:40]wFMCommunicate request_size=10 [23:39:40]MH_SAM_APDU [23:39:40]CAPDU: 80 0D 02 02 05 E2 AE DB 11 79 [23:39:40]Write to MH i2c: E2 0D 00 DF 9A 80 0D 02 02 05 00 E2 AE DB 11 79 00 00 F2 [23:39:40]Write i2c OK [23:39:40]MH_I2C_Read... [23:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:40]Read from MH i2c: E2 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 03 00 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 03 00 DF 9A 00 90 00 ED [23:39:40]RAPDU: 90 00 [23:39:40]wFMCommunicate OK [23:39:40]wFMCommunicate request_size=4 [23:39:40]MH_SAM_APDU [23:39:40]CAPDU: 80 0D 03 02 [23:39:40]Write to MH i2c: E2 08 00 E0 9A 80 0D 03 02 00 00 00 00 F5 [23:39:40]Write i2c OK [23:39:40]MH_I2C_Read... [23:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:40]Read from MH i2c: E2 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 0B 00 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 0B 00 E0 9A 00 14 26 DB 35 BD 58 4B D3 90 00 73 [23:39:40]RAPDU: 14 26 DB 35 BD 58 4B D3 90 00 [23:39:40]wFMCommunicate OK [23:39:40]SAM_PROTO_SignData done [23:39:40]FM_MakeSignedData done [23:39:40]CreateOFDProtocolMessage [23:39:40]wFMCommunicate request_size=4 [23:39:40]MH_SAM_APDU [23:39:40]CAPDU: 80 11 00 00 [23:39:40]Write to MH i2c: E2 08 00 E1 9A 80 11 00 00 00 00 00 00 F5 [23:39:40]Write i2c OK [23:39:40]MH_I2C_Read... [23:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:40]Read from MH i2c: E2 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 17 00 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: E2 17 00 E1 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4D [23:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:39:40]wFMCommunicate OK [23:39:40]CreateOFDProtocolMessage done [23:39:40]OFDSenderStorePacket 74776 [23:39:40]StoreOFDPacket docnum=74776 [23:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B0 51 07 01 36 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C8 DA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 24 01 00 35 04 06 00 C8 E2 AE DB 11 79 14 26 DB 35 BD 58 4B D3 [23:39:40]CheckFolder [23:39:40]dirname=/storage/ofd_packets [23:39:40]CheckFolder done [23:39:40]ProducePacketName [23:39:40]name=ofd_packets/00074776 [23:39:40]NVStorageSaveData ofd_packets/00074776 [23:39:40]File name is /storage/ofd_packets/00074776 [23:39:40]Write 301 bytes [23:39:40]NVStorageSaveData done [23:39:40]OFDSenderStorePacket done [23:39:40]KKMCreateOFDPacket done [23:39:40]NVStorageSaveData kkm_last_timestamp [23:39:40]File name is /storage/kkm_last_timestamp [23:39:40]Write 4 bytes [23:39:40]NVStorageSaveData done [23:39:40]ExternCall_PrintAddStr [23:39:40]wPrintStart [23:39:40]Write to MH i2c: 01 00 00 E2 9A 7C [23:39:40]Write i2c OK [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: 01 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: 01 07 00 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: 01 07 00 E2 9A 00 00 00 00 00 FF 0F 91 [23:39:40]RasterBufferAndPrint [23:39:40]line Счет N : (1)190748 [23:39:40]line ИНН: 02508201610067 [23:39:40]line Контрольно-Кассовый Чек [23:39:40]line ПРОДАЖА [23:39:40]line ТРК (МРК, ГНК) : 21 [23:39:40]line Товар: 2710124130 [23:39:40]line Аи-92-К-5 [23:39:40]line 19.440 * 66.90 [23:39:40]line = 1300.54 [23:39:40]line НДС 12% НСП 1% [23:39:40]line > о реализуемом товаре [23:39:40]line ОКРУГЛЕНИЕ: -0.54 [23:39:40]line ИТОГО: 1300.00 [23:39:40]line Внесено: 1300.00 [23:39:40]line СДАЧА: 0.00 [23:39:40]line НСП 1% : 11.51 [23:39:40]line НДС 12% : 138.11 [23:39:40]line Наличными: 1300.00 [23:39:40]line Безнал.: 0.00 [23:39:40]line Место: АЗС № 142 "Партнер Нефть" [23:39:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:39:40]line СНО: Общий режим [23:39:40]line Чек 220 24.10.2024 23:39 [23:39:40]line Смена: 510 ФФД: 1.0 [23:39:40]line ЗНМ: 0300000089 [23:39:40]line РНМ: 0000000000091691 [23:39:40]line Версия ККМ: 001 [23:39:40]line ФМ: 0000000000871795 [23:39:40]line ФД: 74776 [23:39:40]line ФПД: 220875921756537 [23:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233952&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74776&fm=220875921756537&tin=02508201610067®Number=0000000000091691&sum=130000 [23:39:40]written 0, free lines is 4095 [23:39:40]OFD Sender: Processing packet 74776 [packets to send 13, broken 12] [23:39:40]ProducePacketName [23:39:40]name=ofd_packets/00074776 [23:39:40]OFD Sender: To server: pG, [23:39:40]CommunicateWithHost lk.salyk.kg:30040 [23:39:40]ConnectInit lk.salyk.kg [23:39:40]Connected sock=8 [23:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B0 51 07 01 36 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C8 DA 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 24 01 00 35 04 06 00 C8 E2 AE DB 11 79 14 26 DB 35 BD 58 4B D3 [23:39:41]Write to MH i2c: 01 00 00 0D 9B A8 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: 01 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: 01 07 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: 01 07 00 0D 9B 00 00 00 00 00 C0 0C 7B [23:39:41]RasterBufferAndPrint [23:39:41]line [23:39:41]line [23:39:41]line [23:39:41]line [23:39:41]line [23:39:41]written 0, free lines is 3271 [23:39:41]MH_Cut [23:39:41]Write to MH i2c: D1 01 00 14 9B 01 81 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: D1 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: D1 01 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: D1 01 00 14 9B 00 80 [23:39:41]Write to MH i2c: 01 00 00 15 9B B0 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D3 1F 47 00 C8 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 24 01 00 F4 03 04 00 49 82 1A 67 B6 04 01 00 00 3A 9D 2C 96 DE 8E C8 5F [23:39:41]CommunicateWithHost err = 0 [23:39:41]CheckOFDResponse [23:39:41]1017 (14) - 77093643461234 [23:39:41]1041 (16) - 0000000000871795 [23:39:41]1040 (4) - 74776 [23:39:41]1012 (4) - 24.10.2024 17:22 [23:39:41]1206 (1) - 0 [23:39:41]OFD Sender: Remove packet 74776 [23:39:41]ProducePacketName [23:39:41]name=ofd_packets/00074776 [23:39:41]NVStorageDeleteData [23:39:42]*** Cut start [23:39:42]*** Partial cut [23:39:42]*** CUTSNS_PIN = 1 [23:39:42]OFD Sender: No OFD packet to send [23:39:42]*** CUTSNS_PIN = 0 [23:39:42]*** Brake cut motor [23:39:42]Read from MH i2c: 01 [23:39:42]MH_I2C_Read... [23:39:42]*** Stop cut motor [23:39:42]*** Cut end [23:39:42]Read from MH i2c: 01 07 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: 01 07 00 15 9B 00 00 00 00 00 FF 0F C5 [23:39:42]process_action close_receipt done [23:39:42]requested_data is exist [23:39:42]produce_requested_data [23:39:42]requested_item fm.sn is exist - process it [23:39:42]wFMCommunicate request_size=4 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 11 00 00 [23:39:42]Write to MH i2c: E2 08 00 16 9B 80 11 00 00 00 00 00 00 2B [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 17 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 17 00 16 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [23:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:39:42]wFMCommunicate OK [23:39:42]requested_item fd.num is exist - process it [23:39:42]SAM_PROTO_GetFieldsCounters [23:39:42]wFMCommunicate request_size=4 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 13 00 00 [23:39:42]Write to MH i2c: E2 08 00 17 9B 80 13 00 00 00 00 00 00 2E [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 62 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 62 00 17 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 18 24 01 00 0E 04 04 00 FE 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 25 [23:39:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 18 24 01 00 0E 04 04 00 FE 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 [23:39:42]wFMCommunicate OK [23:39:42]SAM_PROTO_GetFieldsCounters done [23:39:42]requested_item shift.num is exist - process it [23:39:42]requested_item shift.opened is exist - process it [23:39:42]req_shift_opened [23:39:42]FM_GetShiftState [23:39:42]SAM_PROTO_GetShiftState [23:39:42]wFMCommunicate request_size=4 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 13 01 00 [23:39:42]Write to MH i2c: E2 08 00 18 9B 80 13 01 00 00 00 00 00 30 [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:43]Read from MH i2c: E2 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: E2 0E 00 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: E2 0E 00 18 9B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 5A [23:39:43]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:39:43]wFMCommunicate OK [23:39:43]SAM_PROTO_GetShiftState done [23:39:43]FM_GetShiftState done [23:39:43]req_shift_opened done [23:39:43]requested_item shift.open_date is exist - process it [23:39:43]req_shift_open_date [23:39:43]req_shift_open_date done [23:39:43]produce_requested_data done [23:39:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74776,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:39:43]process_action_free close_receipt [23:39:43]json_value_free [23:39:43]json_value_free done [23:39:43]process_json_proto returns [23:39:43]Send response to host [23:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74776,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:39:43]free response buf [23:39:43]execute_script done [23:39:43]execute_script returns [23:39:43]free content buf [23:39:43]Sock 10.Close socket [23:39:43]Sock 10.Thread stoped [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:13]accept exits with 9 [23:45:13]New connection [23:45:13]New thread 3066662244 created [23:45:13]Thread 3066805604 joined [23:45:13]Waiting for new connection... [23:45:13] Sock 9.Parse request [23:45:13]Sock 9.Check first char [23:45:13]Sock 9.First char is OK [23:45:13]request: POST /json_proto HTTP/1.0 [23:45:13]Method: POST [23:45:13]URL: /json_proto [23:45:13]Method is POST - this is cgi request [23:45:13]url: /json_proto [23:45:13]query_string will be loaded in cgi processing [23:45:13]execute_cgi json_proto POST (null) [23:45:13]execute_cgi path=json_proto method=POST [23:45:13]POST find Content-Length [23:45:13]Host: 172.17.39.131:8080 [23:45:13]Content-Length: 677 [23:45:13]Content-Type: application/json [23:45:13] [23:45:13]POST finish read [23:45:13]Found Content-Length = 677 [23:45:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:13]execute_script... [23:45: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)190749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:13]POST & json_proto [23:45:13]process_json_proto [23:45:13]json parsed OK: [23:45:13]protocol is kg_v1.0 [23:45:13]action value=close_receipt [23:45:13]process_action close_receipt [23:45:13]cmd_close_receipt [23:45:13]MH_GetDate [23:45:13]Write to MH i2c: F0 00 00 19 9B A3 [23:45:13]Write i2c OK [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: F0 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: F0 09 00 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: F0 09 00 19 9B 00 16 DC 1A 67 86 57 24 65 85 [23:45:13]GetLastDocTimeStamp 1729813192 [23:45:13]current date 1729813526 [23:45:13]FM_GetShiftState [23:45:13]SAM_PROTO_GetShiftState [23:45:13]wFMCommunicate request_size=4 [23:45:13]MH_SAM_APDU [23:45:13]CAPDU: 80 13 01 00 [23:45:13]Write to MH i2c: E2 08 00 1A 9B 80 13 01 00 00 00 00 00 32 [23:45:13]Write i2c OK [23:45:13]MH_I2C_Read... [23:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:13]Read from MH i2c: E2 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 0E 00 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 0E 00 1A 9B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 5C [23:45:13]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:45:13]wFMCommunicate OK [23:45:13]SAM_PROTO_GetShiftState done [23:45:13]FM_GetShiftState done [23:45:13]opened in 1729729801 [23:45:13]opened+sec_in_day 1729816201 [23:45:13]quantity*price = 50041 [23:45:13]sum+1 = 50042 [23:45:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 221 24.10.2024 23:45 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74777 ФПД: 240391003890564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234526&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74777&fm=240391003890564&tin=02508201610067®Number=0000000000091691&sum=50000 [23:45:14]StoreToDocumentArchive [23:45:14]shift 510 fd 74777 [23:45:14]save to /storage/0510/doc_00074777 [23:45:14]save last doc name /storage/0510/doc_00074777 to /storage/kkm_last_doc_name [23:45:14]save OK [23:45:14]Clear old archive folders... [23:45:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:45:14]tlvbuf is 00AF12C0 [23:45:14]SAM_PROTO_ClearQueue [23:45:14]wFMCommunicate request_size=4 [23:45:14]MH_SAM_APDU [23:45:14]CAPDU: 80 09 00 00 [23:45:14]Write to MH i2c: E2 08 00 27 9B 80 09 00 00 00 00 00 00 34 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:14]Read from MH i2c: E2 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 27 9B 00 90 00 36 [23:45:14]RAPDU: 90 00 [23:45:14]wFMCommunicate OK [23:45:14]SAM_PROTO_ClearQueue done [23:45:14]KKMCreateOFDPacket [23:45:14]OFDProtocolAddRootSTLVToBuf [23:45:14]FM_MakeSignedData [23:45:14]FM_MakeSignedData [23:45:14]SAM_PROTO_SignData [23:45:14]wFMCommunicate request_size=4 [23:45:14]MH_SAM_APDU [23:45:14]CAPDU: 80 0D 01 02 [23:45:14]Write to MH i2c: E2 08 00 28 9B 80 0D 01 02 00 00 00 00 3C [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:14]Read from MH i2c: E2 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 28 9B 00 90 00 37 [23:45:14]RAPDU: 90 00 [23:45:14]wFMCommunicate OK [23:45:14]wFMCommunicate request_size=255 [23:45:14]MH_SAM_APDU [23:45: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 16 DC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 24 01 00 35 04 06 00 DA [23:45:14]Write to MH i2c: E2 02 01 29 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 16 DC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 24 01 00 35 04 06 00 DA 00 00 38 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:14]Read from MH i2c: E2 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 29 9B 00 90 00 38 [23:45:14]RAPDU: 90 00 [23:45:14]wFMCommunicate OK [23:45:14]wFMCommunicate request_size=10 [23:45:14]MH_SAM_APDU [23:45:14]CAPDU: 80 0D 02 02 05 A2 64 64 E3 84 [23:45:14]Write to MH i2c: E2 0D 00 2A 9B 80 0D 02 02 05 00 A2 64 64 E3 84 00 00 1A [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:14]Read from MH i2c: E2 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 03 00 2A 9B 00 90 00 39 [23:45:14]RAPDU: 90 00 [23:45:14]wFMCommunicate OK [23:45:14]wFMCommunicate request_size=4 [23:45:14]MH_SAM_APDU [23:45:14]CAPDU: 80 0D 03 02 [23:45:14]Write to MH i2c: E2 08 00 2B 9B 80 0D 03 02 00 00 00 00 41 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:14]Read from MH i2c: E2 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 0B 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 0B 00 2B 9B 00 2D E7 91 01 2E CE 30 E6 90 00 FA [23:45:14]RAPDU: 2D E7 91 01 2E CE 30 E6 90 00 [23:45:14]wFMCommunicate OK [23:45:14]SAM_PROTO_SignData done [23:45:14]FM_MakeSignedData done [23:45:14]CreateOFDProtocolMessage [23:45:14]wFMCommunicate request_size=4 [23:45:14]MH_SAM_APDU [23:45:14]CAPDU: 80 11 00 00 [23:45:14]Write to MH i2c: E2 08 00 2C 9B 80 11 00 00 00 00 00 00 41 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:14]Read from MH i2c: E2 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 17 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 17 00 2C 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 99 [23:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:45:14]wFMCommunicate OK [23:45:14]CreateOFDProtocolMessage done [23:45:14]OFDSenderStorePacket 74777 [23:45:14]StoreOFDPacket docnum=74777 [23:45:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B9 6E 07 01 74 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 16 DC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 24 01 00 35 04 06 00 DA A2 64 64 E3 84 2D E7 91 01 2E CE 30 E6 [23:45:14]CheckFolder [23:45:14]dirname=/storage/ofd_packets [23:45:14]CheckFolder done [23:45:14]ProducePacketName [23:45:14]name=ofd_packets/00074777 [23:45:14]NVStorageSaveData ofd_packets/00074777 [23:45:14]File name is /storage/ofd_packets/00074777 [23:45:14]Write 301 bytes [23:45:14]NVStorageSaveData done [23:45:14]OFDSenderStorePacket done [23:45:14]KKMCreateOFDPacket done [23:45:14]NVStorageSaveData kkm_last_timestamp [23:45:14]File name is /storage/kkm_last_timestamp [23:45:14]Write 4 bytes [23:45:14]NVStorageSaveData done [23:45:14]ExternCall_PrintAddStr [23:45:14]wPrintStart [23:45:14]Write to MH i2c: 01 00 00 2D 9B C8 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: 01 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: 01 07 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: 01 07 00 2D 9B 00 00 00 00 00 FF 0F DD [23:45:14]RasterBufferAndPrint [23:45:14]line Счет N : (1)190749 [23:45:14]line ИНН: 02508201610067 [23:45:14]line Контрольно-Кассовый Чек [23:45:14]line ПРОДАЖА [23:45:14]line ТРК (МРК, ГНК) : 21 [23:45:14]line Товар: 2710124130 [23:45:14]line Аи-92-К-5 [23:45:14]line 7.480 * 66.90 [23:45:14]line = 500.41 [23:45:14]line НДС 12% НСП 1% [23:45:14]line > о реализуемом товаре [23:45:14]line ОКРУГЛЕНИЕ: -0.41 [23:45:14]line ИТОГО: 500.00 [23:45:14]line Внесено: 500.00 [23:45:14]line СДАЧА: 0.00 [23:45:14]line НСП 1% : 4.43 [23:45:14]line НДС 12% : 53.14 [23:45:14]line Наличными: 500.00 [23:45:14]line Безнал.: 0.00 [23:45:14]line Место: АЗС № 142 "Партнер Нефть" [23:45:14]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:45:14]line СНО: Общий режим [23:45:14]line Чек 221 24.10.2024 23:45 [23:45:14]line Смена: 510 ФФД: 1.0 [23:45:14]line ЗНМ: 0300000089 [23:45:14]line РНМ: 0000000000091691 [23:45:14]line Версия ККМ: 001 [23:45:14]line ФМ: 0000000000871795 [23:45:14]line ФД: 74777 [23:45:14]line ФПД: 240391003890564 [23:45:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234526&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74777&fm=240391003890564&tin=02508201610067®Number=0000000000091691&sum=50000 [23:45:15]written 0, free lines is 4095 [23:45:15]OFD Sender: Processing packet 74777 [packets to send 13, broken 12] [23:45:15]ProducePacketName [23:45:15]name=ofd_packets/00074777 [23:45:15]OFD Sender: To server: pG, [23:45:15]CommunicateWithHost lk.salyk.kg:30040 [23:45:15]ConnectInit lk.salyk.kg [23:45:15]Connected sock=10 [23:45:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B9 6E 07 01 74 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 16 DC 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 24 01 00 35 04 06 00 DA A2 64 64 E3 84 2D E7 91 01 2E CE 30 E6 [23:45:15]Write to MH i2c: 01 00 00 58 9B F3 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: 01 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: 01 07 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: 01 07 00 58 9B 00 00 00 00 00 B1 0C B7 [23:45:15]RasterBufferAndPrint [23:45:15]line [23:45:15]line [23:45:15]line [23:45:15]line [23:45:15]line [23:45:15]written 0, free lines is 3257 [23:45:15]MH_Cut [23:45:15]Write to MH i2c: D1 01 00 5F 9B 01 CC [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: D1 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: D1 01 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: D1 01 00 5F 9B 00 CB [23:45:15]Write to MH i2c: 01 00 00 60 9B FB [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A2 F8 47 00 A2 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 24 01 00 F4 03 04 00 97 83 1A 67 B6 04 01 00 00 02 3D 81 6E 1E FE 46 FC [23:45:15]CommunicateWithHost err = 0 [23:45:15]CheckOFDResponse [23:45:15]1017 (14) - 77093643461234 [23:45:15]1041 (16) - 0000000000871795 [23:45:15]1040 (4) - 74777 [23:45:15]1012 (4) - 24.10.2024 17:27 [23:45:15]1206 (1) - 0 [23:45:15]OFD Sender: Remove packet 74777 [23:45:15]ProducePacketName [23:45:15]name=ofd_packets/00074777 [23:45:15]NVStorageDeleteData [23:45:16]OFD Sender: No OFD packet to send [23:45:16]*** Cut start [23:45:16]*** Partial cut [23:45:16]*** CUTSNS_PIN = 1 [23:45:16]*** CUTSNS_PIN = 0 [23:45:16]*** Brake cut motor [23:45:17]Read from MH i2c: 01 [23:45:17]MH_I2C_Read... [23:45:17]*** Stop cut motor [23:45:17]*** Cut end [23:45:17]Read from MH i2c: 01 07 00 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: 01 07 00 60 9B 00 00 00 00 00 FF 0F 10 [23:45:17]process_action close_receipt done [23:45:17]requested_data is exist [23:45:17]produce_requested_data [23:45:17]requested_item fm.sn is exist - process it [23:45:17]wFMCommunicate request_size=4 [23:45:17]MH_SAM_APDU [23:45:17]CAPDU: 80 11 00 00 [23:45:17]Write to MH i2c: E2 08 00 61 9B 80 11 00 00 00 00 00 00 76 [23:45:17]Write i2c OK [23:45:17]MH_I2C_Read... [23:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:17]Read from MH i2c: E2 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 17 00 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 17 00 61 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CE [23:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:45:17]wFMCommunicate OK [23:45:17]requested_item fd.num is exist - process it [23:45:17]SAM_PROTO_GetFieldsCounters [23:45:17]wFMCommunicate request_size=4 [23:45:17]MH_SAM_APDU [23:45:17]CAPDU: 80 13 00 00 [23:45:17]Write to MH i2c: E2 08 00 62 9B 80 13 00 00 00 00 00 00 79 [23:45:17]Write i2c OK [23:45:17]MH_I2C_Read... [23:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:17]Read from MH i2c: E2 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 62 00 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 62 00 62 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 19 24 01 00 0E 04 04 00 FE 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 74 [23:45:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 19 24 01 00 0E 04 04 00 FE 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 [23:45:17]wFMCommunicate OK [23:45:17]SAM_PROTO_GetFieldsCounters done [23:45:17]requested_item shift.num is exist - process it [23:45:17]requested_item shift.opened is exist - process it [23:45:17]req_shift_opened [23:45:17]FM_GetShiftState [23:45:17]SAM_PROTO_GetShiftState [23:45:17]wFMCommunicate request_size=4 [23:45:17]MH_SAM_APDU [23:45:17]CAPDU: 80 13 01 00 [23:45:17]Write to MH i2c: E2 08 00 63 9B 80 13 01 00 00 00 00 00 7B [23:45:17]Write i2c OK [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 [23:45:17]MH_I2C_Read... [23:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:17]Read from MH i2c: E2 0E 00 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 0E 00 63 9B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 A5 [23:45:17]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:45:17]wFMCommunicate OK [23:45:17]SAM_PROTO_GetShiftState done [23:45:17]FM_GetShiftState done [23:45:17]req_shift_opened done [23:45:17]requested_item shift.open_date is exist - process it [23:45:17]req_shift_open_date [23:45:17]req_shift_open_date done [23:45:17]produce_requested_data done [23:45:17]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74777,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:45:17]process_action_free close_receipt [23:45:17]json_value_free [23:45:17]json_value_free done [23:45:17]process_json_proto returns [23:45:17]Send response to host [23:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74777,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:45:17]free response buf [23:45:17]execute_script done [23:45:17]execute_script returns [23:45:17]free content buf [23:45:17]Sock 9.Close socket [23:45:17]Sock 9.Thread stoped [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:30]int [23:45:30]Write to MH i2c: 01 00 00 64 9B FF [23:45:30]*** FLAG_PRN_KEY set [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 64 9B 00 08 00 00 00 FF 0F 1C [23:45:30]state=0 [23:45:30]Key pressed [23:45:30]Feed [23:45:30]Write to MH i2c: D8 00 00 65 9B D7 [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: D8 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: D8 01 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: D8 01 00 65 9B 00 D8 [23:45:30]int [23:45:30]Write to MH i2c: 01 00 00 66 9B 01 [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 66 9B 00 48 00 00 00 3C 00 8C [23:45:30]state=2 [23:45:30]Key pressed [23:45:30]int [23:45:30]Write to MH i2c: 01 00 00 67 9B 02 [23:45:30]*** FLAG_PRN_KEY reset [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 67 9B 00 00 00 00 00 F6 0F 0E [23:45:30]state=2 [23:45:30]Stop feed [23:45:30]int [23:45:30]Write to MH i2c: 01 00 00 68 9B 03 [23:45:30]*** FLAG_PRN_KEY set [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 68 9B 00 08 00 00 00 FF 0F 20 [23:45:30]state=0 [23:45:30]Key pressed [23:45:30]Feed [23:45:30]Write to MH i2c: D8 00 00 69 9B DB [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: D8 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: D8 01 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: D8 01 00 69 9B 00 DC [23:45:30]int [23:45:30]Write to MH i2c: 01 00 00 6A 9B 05 [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 6A 9B 00 48 00 00 00 3C 00 90 [23:45:30]state=2 [23:45:30]Key pressed [23:45:30]int [23:45:30]Write to MH i2c: 01 00 00 6B 9B 06 [23:45:30]*** FLAG_PRN_KEY reset [23:45:30]Write i2c OK [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 [23:45:30]MH_I2C_Read... [23:45:30]Read from MH i2c: 01 07 00 6B 9B 00 00 00 00 00 F5 0F 11 [23:45:30]state=2 [23:45:30]Stop feed [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:57:57]accept exits with 8 [23:57:57]New connection [23:57:57]New thread 3066805604 created [23:57:57]Thread 3066662244 joined [23:57:57]Waiting for new connection... [23:57:57] Sock 8.Parse request [23:57:57]Sock 8.Check first char [23:57:57]Sock 8.First char is OK [23:57:57]request: POST /json_proto HTTP/1.0 [23:57:57]Method: POST [23:57:57]URL: /json_proto [23:57:57]Method is POST - this is cgi request [23:57:57]url: /json_proto [23:57:57]query_string will be loaded in cgi processing [23:57:57]execute_cgi json_proto POST (null) [23:57:57]execute_cgi path=json_proto method=POST [23:57:57]POST find Content-Length [23:57:57]Host: 172.17.39.131:8080 [23:57:57]Content-Length: 677 [23:57:57]Content-Type: application/json [23:57:57] [23:57:57]POST finish read [23:57:57]Found Content-Length = 677 [23:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:57]execute_script... [23:57: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)190750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:57]POST & json_proto [23:57:57]process_json_proto [23:57:57]json parsed OK: [23:57:57]protocol is kg_v1.0 [23:57:57]action value=close_receipt [23:57:57]process_action close_receipt [23:57:57]cmd_close_receipt [23:57:57]MH_GetDate [23:57:57]Write to MH i2c: F0 00 00 6C 9B F6 [23:57:57]Write i2c OK [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: F0 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: F0 09 00 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: F0 09 00 6C 9B 00 12 DF 1A 67 86 57 24 65 D7 [23:57:57]GetLastDocTimeStamp 1729813526 [23:57:57]current date 1729814290 [23:57:57]FM_GetShiftState [23:57:57]SAM_PROTO_GetShiftState [23:57:57]wFMCommunicate request_size=4 [23:57:57]MH_SAM_APDU [23:57:57]CAPDU: 80 13 01 00 [23:57:57]Write to MH i2c: E2 08 00 6D 9B 80 13 01 00 00 00 00 00 85 [23:57:57]Write i2c OK [23:57:57]MH_I2C_Read... [23:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:57]Read from MH i2c: E2 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 0E 00 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 0E 00 6D 9B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AF [23:57:57]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:57:57]wFMCommunicate OK [23:57:57]SAM_PROTO_GetShiftState done [23:57:57]FM_GetShiftState done [23:57:57]opened in 1729729801 [23:57:57]opened+sec_in_day 1729816201 [23:57:57]quantity*price = 50041 [23:57:57]sum+1 = 50042 [23:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 222 24.10.2024 23:58 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74778 ФПД: 240125428721739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T235810&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74778&fm=240125428721739&tin=02508201610067®Number=0000000000091691&sum=50000 [23:57:58]StoreToDocumentArchive [23:57:58]shift 510 fd 74778 [23:57:58]save to /storage/0510/doc_00074778 [23:57:58]save last doc name /storage/0510/doc_00074778 to /storage/kkm_last_doc_name [23:57:58]save OK [23:57:58]Clear old archive folders... [23:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:57:58]tlvbuf is 00AF1580 [23:57:58]SAM_PROTO_ClearQueue [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 09 00 00 [23:57:58]Write to MH i2c: E2 08 00 7A 9B 80 09 00 00 00 00 00 00 87 [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 7A 9B 00 90 00 89 [23:57:58]RAPDU: 90 00 [23:57:58]wFMCommunicate OK [23:57:58]SAM_PROTO_ClearQueue done [23:57:58]KKMCreateOFDPacket [23:57:58]OFDProtocolAddRootSTLVToBuf [23:57:58]FM_MakeSignedData [23:57:58]FM_MakeSignedData [23:57:58]SAM_PROTO_SignData [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 0D 01 02 [23:57:58]Write to MH i2c: E2 08 00 7B 9B 80 0D 01 02 00 00 00 00 8F [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 7B 9B 00 90 00 8A [23:57:58]RAPDU: 90 00 [23:57:58]wFMCommunicate OK [23:57:58]wFMCommunicate request_size=255 [23:57:58]MH_SAM_APDU [23:57: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 12 DF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 24 01 00 35 04 06 00 DA [23:57:58]Write to MH i2c: E2 02 01 7C 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 12 DF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 24 01 00 35 04 06 00 DA 00 00 8C [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 7C 9B 00 90 00 8B [23:57:58]RAPDU: 90 00 [23:57:58]wFMCommunicate OK [23:57:58]wFMCommunicate request_size=10 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 0D 02 02 05 64 8E E1 68 4B [23:57:58]Write to MH i2c: E2 0D 00 7D 9B 80 0D 02 02 05 00 64 8E E1 68 4B 00 00 22 [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 7D 9B 00 90 00 8C [23:57:58]RAPDU: 90 00 [23:57:58]wFMCommunicate OK [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 0D 03 02 [23:57:58]Write to MH i2c: E2 08 00 7E 9B 80 0D 03 02 00 00 00 00 94 [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0B 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0B 00 7E 9B 00 01 4E 10 1B 69 EC 3A D3 90 00 71 [23:57:58]RAPDU: 01 4E 10 1B 69 EC 3A D3 90 00 [23:57:58]wFMCommunicate OK [23:57:58]SAM_PROTO_SignData done [23:57:58]FM_MakeSignedData done [23:57:58]CreateOFDProtocolMessage [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 11 00 00 [23:57:58]Write to MH i2c: E2 08 00 7F 9B 80 11 00 00 00 00 00 00 94 [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 17 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 17 00 7F 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EC [23:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:57:58]wFMCommunicate OK [23:57:58]CreateOFDProtocolMessage done [23:57:58]OFDSenderStorePacket 74778 [23:57:58]StoreOFDPacket docnum=74778 [23:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 27 55 07 01 6B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 12 DF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 24 01 00 35 04 06 00 DA 64 8E E1 68 4B 01 4E 10 1B 69 EC 3A D3 [23:57:58]CheckFolder [23:57:58]dirname=/storage/ofd_packets [23:57:58]CheckFolder done [23:57:58]ProducePacketName [23:57:58]name=ofd_packets/00074778 [23:57:58]NVStorageSaveData ofd_packets/00074778 [23:57:58]File name is /storage/ofd_packets/00074778 [23:57:58]Write 301 bytes [23:57:58]NVStorageSaveData done [23:57:58]OFDSenderStorePacket done [23:57:58]KKMCreateOFDPacket done [23:57:58]NVStorageSaveData kkm_last_timestamp [23:57:58]File name is /storage/kkm_last_timestamp [23:57:58]Write 4 bytes [23:57:58]NVStorageSaveData done [23:57:58]ExternCall_PrintAddStr [23:57:58]wPrintStart [23:57:58]Write to MH i2c: 01 00 00 80 9B 1B [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: 01 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: 01 07 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: 01 07 00 80 9B 00 00 00 00 00 FF 0F 30 [23:57:58]RasterBufferAndPrint [23:57:58]line Счет N : (1)190750 [23:57:58]line ИНН: 02508201610067 [23:57:58]line Контрольно-Кассовый Чек [23:57:58]line ПРОДАЖА [23:57:58]line ТРК (МРК, ГНК) : 21 [23:57:58]line Товар: 2710124130 [23:57:58]line Аи-92-К-5 [23:57:58]line 7.480 * 66.90 [23:57:58]line = 500.41 [23:57:58]line НДС 12% НСП 1% [23:57:58]line > о реализуемом товаре [23:57:58]line ОКРУГЛЕНИЕ: -0.41 [23:57:58]line ИТОГО: 500.00 [23:57:58]line Внесено: 500.00 [23:57:58]line СДАЧА: 0.00 [23:57:58]line НСП 1% : 4.43 [23:57:58]line НДС 12% : 53.14 [23:57:58]line Наличными: 500.00 [23:57:58]line Безнал.: 0.00 [23:57:58]line Место: АЗС № 142 "Партнер Нефть" [23:57:58]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:57:58]line СНО: Общий режим [23:57:58]line Чек 222 24.10.2024 23:58 [23:57:58]line Смена: 510 ФФД: 1.0 [23:57:58]line ЗНМ: 0300000089 [23:57:58]line РНМ: 0000000000091691 [23:57:58]line Версия ККМ: 001 [23:57:58]line ФМ: 0000000000871795 [23:57:58]line ФД: 74778 [23:57:58]line ФПД: 240125428721739 [23:57:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T235810&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74778&fm=240125428721739&tin=02508201610067®Number=0000000000091691&sum=50000 [23:57:59]written 0, free lines is 4095 [23:57:59]OFD Sender: Processing packet 74778 [packets to send 13, broken 12] [23:57:59]ProducePacketName [23:57:59]name=ofd_packets/00074778 [23:57:59]OFD Sender: To server: pG, [23:57:59]CommunicateWithHost lk.salyk.kg:30040 [23:57:59]ConnectInit lk.salyk.kg [23:57:59]Connected sock=10 [23:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 27 55 07 01 6B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 12 DF 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 24 01 00 35 04 06 00 DA 64 8E E1 68 4B 01 4E 10 1B 69 EC 3A D3 [23:57:59]Write to MH i2c: 01 00 00 AB 9B 46 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 07 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 07 00 AB 9B 00 00 00 00 00 B3 0C 0C [23:57:59]RasterBufferAndPrint [23:57:59]line [23:57:59]line [23:57:59]line [23:57:59]line [23:57:59]line [23:57:59]written 0, free lines is 3258 [23:57:59]MH_Cut [23:57:59]Write to MH i2c: D1 01 00 B2 9B 01 1F [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: D1 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: D1 01 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: D1 01 00 B2 9B 00 1E [23:57:59]Write to MH i2c: 01 00 00 B3 9B 4E [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 4F 49 47 00 DB 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 24 01 00 F4 03 04 00 93 86 1A 67 B6 04 01 00 00 9E 21 4A FE F0 9A 4B 27 [23:57:59]CommunicateWithHost err = 0 [23:57:59]CheckOFDResponse [23:57:59]1017 (14) - 77093643461234 [23:57:59]1041 (16) - 0000000000871795 [23:57:59]1040 (4) - 74778 [23:57:59]1012 (4) - 24.10.2024 17:40 [23:57:59]1206 (1) - 0 [23:57:59]OFD Sender: Remove packet 74778 [23:57:59]ProducePacketName [23:57:59]name=ofd_packets/00074778 [23:57:59]NVStorageDeleteData [23:58:00]OFD Sender: No OFD packet to send [23:58:00]*** Cut start [23:58:00]*** Partial cut [23:58:00]*** CUTSNS_PIN = 1 [23:58:00]*** CUTSNS_PIN = 0 [23:58:00]*** Brake cut motor [23:58:01]Read from MH i2c: 01 [23:58:01]MH_I2C_Read... [23:58:01]*** Stop cut motor [23:58:01]*** Cut end [23:58:01]Read from MH i2c: 01 07 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: 01 07 00 B3 9B 00 00 00 00 00 FF 0F 63 [23:58:01]process_action close_receipt done [23:58:01]requested_data is exist [23:58:01]produce_requested_data [23:58:01]requested_item fm.sn is exist - process it [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 11 00 00 [23:58:01]Write to MH i2c: E2 08 00 B4 9B 80 11 00 00 00 00 00 00 C9 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 17 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 17 00 B4 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 21 [23:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:58:01]wFMCommunicate OK [23:58:01]requested_item fd.num is exist - process it [23:58:01]SAM_PROTO_GetFieldsCounters [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 13 00 00 [23:58:01]Write to MH i2c: E2 08 00 B5 9B 80 13 00 00 00 00 00 00 CC [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 62 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 62 00 B5 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1A 24 01 00 0E 04 04 00 FE 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 CB [23:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1A 24 01 00 0E 04 04 00 FE 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 [23:58:01]wFMCommunicate OK [23:58:01]SAM_PROTO_GetFieldsCounters done [23:58:01]requested_item shift.num is exist - process it [23:58:01]requested_item shift.opened is exist - process it [23:58:01]req_shift_opened [23:58:01]FM_GetShiftState [23:58:01]SAM_PROTO_GetShiftState [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 13 01 00 [23:58:01]Write to MH i2c: E2 08 00 B6 9B 80 13 01 00 00 00 00 00 CE [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 0E 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 0E 00 B6 9B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F8 [23:58:01]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [23:58:01]wFMCommunicate OK [23:58:01]SAM_PROTO_GetShiftState done [23:58:01]FM_GetShiftState done [23:58:01]req_shift_opened done [23:58:01]requested_item shift.open_date is exist - process it [23:58:01]req_shift_open_date [23:58:01]req_shift_open_date done [23:58:01]produce_requested_data done [23:58:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74778,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [23:58:01]process_action_free close_receipt [23:58:01]json_value_free [23:58:01]json_value_free done [23:58:01]process_json_proto returns [23:58:01]Send response to host [23:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74778,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [23:58:01]free response buf [23:58:01]execute_script done [23:58:01]execute_script returns [23:58:01]free content buf [23:58:01]Sock 8.Close socket [23:58:01]Sock 8.Thread stoped [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:05:57]int [00:05:57]Write to MH i2c: 01 00 00 B7 9B 52 [00:05:57]*** FLAG_PRN_KEY set [00:05:57]Write i2c OK [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: 01 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: 01 07 00 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: 01 07 00 B7 9B 00 08 00 00 00 FF 0F 6F [00:05:57]state=0 [00:05:57]Key pressed [00:05:57]Feed [00:05:57]Write to MH i2c: D8 00 00 B8 9B 2A [00:05:57]Write i2c OK [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: D8 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: D8 01 00 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: D8 01 00 B8 9B 00 2B [00:05:57]int [00:05:57]Write to MH i2c: 01 00 00 B9 9B 54 [00:05:57]Write i2c OK [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: 01 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: 01 07 00 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: 01 07 00 B9 9B 00 48 00 00 00 3C 00 DF [00:05:57]state=2 [00:05:57]Key pressed [00:05:58]int [00:05:58]Write to MH i2c: 01 00 00 BA 9B 55 [00:05:58]*** FLAG_PRN_KEY reset [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 BA 9B 00 00 00 00 00 F6 0F 61 [00:05:58]state=2 [00:05:58]Stop feed [00:05:58]int [00:05:58]Write to MH i2c: 01 00 00 BB 9B 56 [00:05:58]*** FLAG_PRN_KEY set [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 BB 9B 00 08 00 00 00 FF 0F 73 [00:05:58]state=0 [00:05:58]Key pressed [00:05:58]Feed [00:05:58]Write to MH i2c: D8 00 00 BC 9B 2E [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: D8 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: D8 01 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: D8 01 00 BC 9B 00 2F [00:05:58]int [00:05:58]Write to MH i2c: 01 00 00 BD 9B 58 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 BD 9B 00 48 00 00 00 3C 00 E3 [00:05:58]state=2 [00:05:58]Key pressed [00:05:58]int [00:05:58]Write to MH i2c: 01 00 00 BE 9B 59 [00:05:58]*** FLAG_PRN_KEY reset [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 BE 9B 00 00 00 00 00 F6 0F 65 [00:05:58]state=2 [00:05:58]Stop feed [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:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:16]accept exits with 9 [00:13:16]New connection [00:13:16]New thread 3066662244 created [00:13:16]Thread 3066805604 joined [00:13:16]Waiting for new connection... [00:13:16] Sock 9.Parse request [00:13:16]Sock 9.Check first char [00:13:16]Sock 9.First char is OK [00:13:16]request: POST /json_proto HTTP/1.0 [00:13:16]Method: POST [00:13:16]URL: /json_proto [00:13:16]Method is POST - this is cgi request [00:13:16]url: /json_proto [00:13:16]query_string will be loaded in cgi processing [00:13:16]execute_cgi json_proto POST (null) [00:13:16]execute_cgi path=json_proto method=POST [00:13:16]POST find Content-Length [00:13:16]Host: 172.17.39.131:8080 [00:13:16]Content-Length: 772 [00:13:16]Content-Type: application/json [00:13:16] [00:13:16]POST finish read [00:13:16]Found Content-Length = 772 [00:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 42.160, "sum" : 1640.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: Mbank", "payments": [ { "type": 1, "sum" : 1640.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:16]execute_script... [00:13: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)190751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 42.160, "sum" : 1640.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: Mbank", "payments": [ { "type": 1, "sum" : 1640.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:16]POST & json_proto [00:13:16]process_json_proto [00:13:16]json parsed OK: [00:13:16]protocol is kg_v1.0 [00:13:16]action value=close_receipt [00:13:16]process_action close_receipt [00:13:16]cmd_close_receipt [00:13:16]MH_GetDate [00:13:16]Write to MH i2c: F0 00 00 BF 9B 49 [00:13:16]Write i2c OK [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: F0 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: F0 09 00 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: F0 09 00 BF 9B 00 AA E2 1A 67 86 57 24 65 C5 [00:13:16]GetLastDocTimeStamp 1729814290 [00:13:16]current date 1729815210 [00:13:16]FM_GetShiftState [00:13:16]SAM_PROTO_GetShiftState [00:13:16]wFMCommunicate request_size=4 [00:13:16]MH_SAM_APDU [00:13:16]CAPDU: 80 13 01 00 [00:13:16]Write to MH i2c: E2 08 00 C0 9B 80 13 01 00 00 00 00 00 D8 [00:13:16]Write i2c OK [00:13:16]MH_I2C_Read... [00:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:16]Read from MH i2c: E2 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 0E 00 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 0E 00 C0 9B 00 09 00 01 09 95 19 67 00 00 00 00 90 00 02 [00:13:16]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:13:16]wFMCommunicate OK [00:13:16]SAM_PROTO_GetShiftState done [00:13:16]FM_GetShiftState done [00:13:16]opened in 1729729801 [00:13:16]opened+sec_in_day 1729816201 [00:13:16]quantity*price = 164002 [00:13:16]sum+1 = 164003 [00:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1640.02 НСП 1% : 14.51 НДС 12% : 174.16 Наличными: 0.00 Безнал.: 1640.02 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 223 25.10.2024 00:13 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74779 ФПД: 62738624370441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001330&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74779&fm=62738624370441&tin=02508201610067®Number=0000000000091691&sum=164002 [00:13:18]StoreToDocumentArchive [00:13:18]shift 510 fd 74779 [00:13:18]save to /storage/0510/doc_00074779 [00:13:18]save last doc name /storage/0510/doc_00074779 to /storage/kkm_last_doc_name [00:13:18]save OK [00:13:18]Clear old archive folders... [00:13:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:13:18]tlvbuf is 007EBAB0 [00:13:18]SAM_PROTO_ClearQueue [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 09 00 00 [00:13:18]Write to MH i2c: E2 08 00 CD 9B 80 09 00 00 00 00 00 00 DA [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 CD 9B 00 90 00 DC [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]SAM_PROTO_ClearQueue done [00:13:18]KKMCreateOFDPacket [00:13:18]OFDProtocolAddRootSTLVToBuf [00:13:18]FM_MakeSignedData [00:13:18]FM_MakeSignedData [00:13:18]SAM_PROTO_SignData [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 01 02 [00:13:18]Write to MH i2c: E2 08 00 CE 9B 80 0D 01 02 00 00 00 00 E2 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 CE 9B 00 90 00 DD [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=255 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B0 A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A2 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 80 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 AA E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 24 01 00 35 04 06 00 39 0F [00:13:18]Write to MH i2c: E2 02 01 CF 9B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B0 A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A2 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 80 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 AA E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 24 01 00 35 04 06 00 39 0F 00 00 07 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 CF 9B 00 90 00 DE [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=9 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 02 02 04 79 6B 57 09 [00:13:18]Write to MH i2c: E2 0C 00 D0 9B 80 0D 02 02 04 00 79 6B 57 09 00 00 31 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 D0 9B 00 90 00 DF [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 03 02 [00:13:18]Write to MH i2c: E2 08 00 D1 9B 80 0D 03 02 00 00 00 00 E7 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 0B 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 0B 00 D1 9B 00 B1 96 E8 1B 4E 57 F9 F0 90 00 C0 [00:13:18]RAPDU: B1 96 E8 1B 4E 57 F9 F0 90 00 [00:13:18]wFMCommunicate OK [00:13:18]SAM_PROTO_SignData done [00:13:18]FM_MakeSignedData done [00:13:18]CreateOFDProtocolMessage [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 11 00 00 [00:13:18]Write to MH i2c: E2 08 00 D2 9B 80 11 00 00 00 00 00 00 E7 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 17 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 17 00 D2 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3F [00:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:13:18]wFMCommunicate OK [00:13:18]CreateOFDProtocolMessage done [00:13:18]OFDSenderStorePacket 74779 [00:13:18]StoreOFDPacket docnum=74779 [00:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 CD 63 06 01 AE 05 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B0 A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A2 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 80 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 AA E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 24 01 00 35 04 06 00 39 0F 79 6B 57 09 B1 96 E8 1B 4E 57 F9 F0 [00:13:18]CheckFolder [00:13:18]dirname=/storage/ofd_packets [00:13:18]CheckFolder done [00:13:18]ProducePacketName [00:13:18]name=ofd_packets/00074779 [00:13:18]NVStorageSaveData ofd_packets/00074779 [00:13:18]File name is /storage/ofd_packets/00074779 [00:13:18]Write 300 bytes [00:13:18]NVStorageSaveData done [00:13:18]OFDSenderStorePacket done [00:13:18]KKMCreateOFDPacket done [00:13:18]NVStorageSaveData kkm_last_timestamp [00:13:18]File name is /storage/kkm_last_timestamp [00:13:18]Write 4 bytes [00:13:18]NVStorageSaveData done [00:13:18]ExternCall_PrintAddStr [00:13:18]wPrintStart [00:13:18]Write to MH i2c: 01 00 00 D3 9B 6E [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 07 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 07 00 D3 9B 00 00 00 00 00 FF 0F 83 [00:13:18]RasterBufferAndPrint [00:13:18]line Счет N : (1)190751 [00:13:18]line ИНН: 02508201610067 [00:13:18]line Контрольно-Кассовый Чек [00:13:18]line ПРОДАЖА [00:13:18]line ТРК (МРК, ГНК) : 51 [00:13:18]line Товар: 2711190000 [00:13:18]line ГАЗ-К-3 [00:13:18]line 42.160 * 38.90 [00:13:18]line = 1640.02 [00:13:18]line НДС 12% НСП 1% [00:13:18]line > о реализуемом товаре [00:13:18]line ИТОГО: 1640.02 [00:13:18]line НСП 1% : 14.51 [00:13:18]line НДС 12% : 174.16 [00:13:18]line Наличными: 0.00 [00:13:18]line Безнал.: 1640.02 [00:13:18]line Место: АЗС № 142 "Партнер Нефть" [00:13:18]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:13:18]line СНО: Общий режим [00:13:18]line Чек 223 25.10.2024 00:13 [00:13:18]line Смена: 510 ФФД: 1.0 [00:13:18]line ЗНМ: 0300000089 [00:13:18]line РНМ: 0000000000091691 [00:13:18]line Версия ККМ: 001 [00:13:18]line Платежная система: Mbank [00:13:18]line ФМ: 0000000000871795 [00:13:18]line ФД: 74779 [00:13:18]line ФПД: 62738624370441 [00:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001330&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74779&fm=62738624370441&tin=02508201610067®Number=0000000000091691&sum=164002 [00:13:18]written 0, free lines is 4095 [00:13:18]OFD Sender: Processing packet 74779 [packets to send 13, broken 12] [00:13:18]ProducePacketName [00:13:18]name=ofd_packets/00074779 [00:13:18]OFD Sender: To server: pG, [00:13:18]CommunicateWithHost lk.salyk.kg:30040 [00:13:18]ConnectInit lk.salyk.kg [00:13:19]Write to MH i2c: 01 00 00 FC 9B 97 [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 07 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 07 00 FC 9B 00 00 00 00 00 D3 0C 7D [00:13:19]RasterBufferAndPrint [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]written 0, free lines is 3288 [00:13:19]MH_Cut [00:13:19]Write to MH i2c: D1 01 00 03 9C 01 71 [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 01 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 01 00 03 9C 00 70 [00:13:19]Write to MH i2c: 01 00 00 04 9C A0 [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]*** Cut start [00:13:19]*** Partial cut [00:13:19]*** CUTSNS_PIN = 1 [00:13:19]*** CUTSNS_PIN = 0 [00:13:20]*** Brake cut motor [00:13:20]Read from MH i2c: 01 [00:13:20]MH_I2C_Read... [00:13:20]*** Stop cut motor [00:13:20]*** Cut end [00:13:20]Read from MH i2c: 01 07 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: 01 07 00 04 9C 00 00 00 00 00 FF 0F B5 [00:13:20]process_action close_receipt done [00:13:20]requested_data is exist [00:13:20]produce_requested_data [00:13:20]requested_item fm.sn is exist - process it [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 11 00 00 [00:13:20]Write to MH i2c: E2 08 00 05 9C 80 11 00 00 00 00 00 00 1B [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 17 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 17 00 05 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 73 [00:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:13:20]wFMCommunicate OK [00:13:20]requested_item fd.num is exist - process it [00:13:20]SAM_PROTO_GetFieldsCounters [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 13 00 00 [00:13:20]Write to MH i2c: E2 08 00 06 9C 80 13 00 00 00 00 00 00 1E [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 62 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 62 00 06 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1B 24 01 00 0E 04 04 00 FE 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 21 [00:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1B 24 01 00 0E 04 04 00 FE 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 [00:13:20]wFMCommunicate OK [00:13:20]SAM_PROTO_GetFieldsCounters done [00:13:20]requested_item shift.num is exist - process it [00:13:20]requested_item shift.opened is exist - process it [00:13:20]req_shift_opened [00:13:20]FM_GetShiftState [00:13:20]SAM_PROTO_GetShiftState [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 13 01 00 [00:13:20]Write to MH i2c: E2 08 00 07 9C 80 13 01 00 00 00 00 00 20 [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 0E 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 0E 00 07 9C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 4A [00:13:20]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:13:20]wFMCommunicate OK [00:13:20]SAM_PROTO_GetShiftState done [00:13:20]FM_GetShiftState done [00:13:20]req_shift_opened done [00:13:20]requested_item shift.open_date is exist - process it [00:13:20]req_shift_open_date [00:13:20]req_shift_open_date done [00:13:20]produce_requested_data done [00:13:20]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74779,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:13:20]process_action_free close_receipt [00:13:20]json_value_free [00:13:20]json_value_free done [00:13:20]process_json_proto returns [00:13:20]Send response to host [00:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74779,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:13:20]free response buf [00:13:20]execute_script done [00:13:20]execute_script returns [00:13:20]free content buf [00:13:20]Sock 9.Close socket [00:13:20]Sock 9.Thread stoped [00:13:21]accept exits with 10 [00:13:21]New connection [00:13:21]New thread 3066805604 created [00:13:21]Thread 3066662244 joined [00:13:21]Waiting for new connection... [00:13:21] Sock 10.Parse request [00:13:21]Sock 10.Check first char [00:13:21]Sock 10.First char is OK [00:13:21]request: POST /json_proto HTTP/1.0 [00:13:21]Method: POST [00:13:21]URL: /json_proto [00:13:21]Method is POST - this is cgi request [00:13:21]url: /json_proto [00:13:21]query_string will be loaded in cgi processing [00:13:21]execute_cgi json_proto POST (null) [00:13:21]execute_cgi path=json_proto method=POST [00:13:21]POST find Content-Length [00:13:21]Host: 172.17.39.131:8080 [00:13:21]Content-Length: 677 [00:13:21]Content-Type: application/json [00:13:21] [00:13:21]POST finish read [00:13:21]Found Content-Length = 677 [00:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:21]execute_script... [00:13: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)190752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:21]POST & json_proto [00:13:21]process_json_proto [00:13:21]json parsed OK: [00:13:21]protocol is kg_v1.0 [00:13:21]action value=close_receipt [00:13:21]process_action close_receipt [00:13:21]cmd_close_receipt [00:13:21]MH_GetDate [00:13:21]Write to MH i2c: F0 00 00 08 9C 93 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: F0 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: F0 09 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: F0 09 00 08 9C 00 AE E2 1A 67 86 57 24 65 13 [00:13:21]GetLastDocTimeStamp 1729815210 [00:13:21]current date 1729815214 [00:13:21]FM_GetShiftState [00:13:21]SAM_PROTO_GetShiftState [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 13 01 00 [00:13:21]Write to MH i2c: E2 08 00 09 9C 80 13 01 00 00 00 00 00 22 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 0E 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 0E 00 09 9C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 4C [00:13:21]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:13:21]wFMCommunicate OK [00:13:21]SAM_PROTO_GetShiftState done [00:13:21]FM_GetShiftState done [00:13:21]opened in 1729729801 [00:13:21]opened+sec_in_day 1729816201 [00:13:21]quantity*price = 50041 [00:13:21]sum+1 = 50042 [00:13:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 224 25.10.2024 00:13 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74780 ФПД: 272601500798807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001334&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74780&fm=272601500798807&tin=02508201610067®Number=0000000000091691&sum=50000 [00:13:21]StoreToDocumentArchive [00:13:21]shift 510 fd 74780 [00:13:21]save to /storage/0510/doc_00074780 [00:13:21]save last doc name /storage/0510/doc_00074780 to /storage/kkm_last_doc_name [00:13:21]save OK [00:13:21]Clear old archive folders... [00:13:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:13:21]tlvbuf is B6E84AF0 [00:13:21]SAM_PROTO_ClearQueue [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 09 00 00 [00:13:21]Write to MH i2c: E2 08 00 16 9C 80 09 00 00 00 00 00 00 24 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:22]Read from MH i2c: E2 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 03 00 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 03 00 16 9C 00 90 00 26 [00:13:22]RAPDU: 90 00 [00:13:22]wFMCommunicate OK [00:13:22]SAM_PROTO_ClearQueue done [00:13:22]KKMCreateOFDPacket [00:13:22]OFDProtocolAddRootSTLVToBuf [00:13:22]FM_MakeSignedData [00:13:22]FM_MakeSignedData [00:13:22]SAM_PROTO_SignData [00:13:22]wFMCommunicate request_size=4 [00:13:22]MH_SAM_APDU [00:13:22]CAPDU: 80 0D 01 02 [00:13:22]Write to MH i2c: E2 08 00 17 9C 80 0D 01 02 00 00 00 00 2C [00:13:22]Write i2c OK [00:13:22]MH_I2C_Read... [00:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:22]Read from MH i2c: E2 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 03 00 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 03 00 17 9C 00 90 00 27 [00:13:22]RAPDU: 90 00 [00:13:22]wFMCommunicate OK [00:13:22]wFMCommunicate request_size=255 [00:13:22]MH_SAM_APDU [00:13: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 AE E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 24 01 00 35 04 06 00 F7 [00:13:22]Write to MH i2c: E2 02 01 18 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 AE E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 24 01 00 35 04 06 00 F7 00 00 E9 [00:13:22]Write i2c OK [00:13:22]MH_I2C_Read... [00:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:22]Read from MH i2c: E2 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 03 00 [00:13:22]MH_I2C_Read... [00:13:22]Read from MH i2c: E2 03 00 18 9C 00 90 00 28 [00:13:22]RAPDU: 90 00 [00:13:22]wFMCommunicate OK [00:13:22]wFMCommunicate request_size=10 [00:13:22]MH_SAM_APDU [00:13:22]CAPDU: 80 0D 02 02 05 ED FB 9E CF 57 [00:13:22]Write to MH i2c: E2 0D 00 19 9C 80 0D 02 02 05 00 ED FB 9E CF 57 00 00 E5 [00:13:22]Write i2c OK [00:13:22]MH_I2C_Read... [00:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:23]Read from MH i2c: E2 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 03 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 03 00 19 9C 00 90 00 29 [00:13:23]RAPDU: 90 00 [00:13:23]wFMCommunicate OK [00:13:23]wFMCommunicate request_size=4 [00:13:23]MH_SAM_APDU [00:13:23]CAPDU: 80 0D 03 02 [00:13:23]Write to MH i2c: E2 08 00 1A 9C 80 0D 03 02 00 00 00 00 31 [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:23]Read from MH i2c: E2 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 0B 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 0B 00 1A 9C 00 7B C3 BE 87 53 86 87 06 90 00 1B [00:13:23]RAPDU: 7B C3 BE 87 53 86 87 06 90 00 [00:13:23]wFMCommunicate OK [00:13:23]SAM_PROTO_SignData done [00:13:23]FM_MakeSignedData done [00:13:23]CreateOFDProtocolMessage [00:13:23]wFMCommunicate request_size=4 [00:13:23]MH_SAM_APDU [00:13:23]CAPDU: 80 11 00 00 [00:13:23]Write to MH i2c: E2 08 00 1B 9C 80 11 00 00 00 00 00 00 31 [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:23]Read from MH i2c: E2 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 17 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: E2 17 00 1B 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 89 [00:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:13:23]wFMCommunicate OK [00:13:23]CreateOFDProtocolMessage done [00:13:23]OFDSenderStorePacket 74780 [00:13:23]StoreOFDPacket docnum=74780 [00:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 3E 07 01 02 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 AE E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 24 01 00 35 04 06 00 F7 ED FB 9E CF 57 7B C3 BE 87 53 86 87 06 [00:13:23]CheckFolder [00:13:23]dirname=/storage/ofd_packets [00:13:23]CheckFolder done [00:13:23]ProducePacketName [00:13:23]name=ofd_packets/00074780 [00:13:23]NVStorageSaveData ofd_packets/00074780 [00:13:23]File name is /storage/ofd_packets/00074780 [00:13:23]Write 301 bytes [00:13:23]NVStorageSaveData done [00:13:23]OFDSenderStorePacket done [00:13:23]KKMCreateOFDPacket done [00:13:23]NVStorageSaveData kkm_last_timestamp [00:13:23]File name is /storage/kkm_last_timestamp [00:13:23]Write 4 bytes [00:13:23]NVStorageSaveData done [00:13:23]ExternCall_PrintAddStr [00:13:23]wPrintStart [00:13:23]Write to MH i2c: 01 00 00 1C 9C B8 [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: 01 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: 01 07 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: 01 07 00 1C 9C 00 00 00 00 00 FF 0F CD [00:13:23]RasterBufferAndPrint [00:13:23]line Счет N : (1)190752 [00:13:23]line ИНН: 02508201610067 [00:13:23]line Контрольно-Кассовый Чек [00:13:23]line ПРОДАЖА [00:13:23]line ТРК (МРК, ГНК) : 21 [00:13:23]line Товар: 2710124130 [00:13:23]line Аи-92-К-5 [00:13:23]line 7.480 * 66.90 [00:13:23]line = 500.41 [00:13:23]line НДС 12% НСП 1% [00:13:23]line > о реализуемом товаре [00:13:23]line ОКРУГЛЕНИЕ: -0.41 [00:13:23]line ИТОГО: 500.00 [00:13:23]line Внесено: 500.00 [00:13:23]line СДАЧА: 0.00 [00:13:23]line НСП 1% : 4.43 [00:13:23]line НДС 12% : 53.14 [00:13:23]line Наличными: 500.00 [00:13:23]line Безнал.: 0.00 [00:13:23]line Место: АЗС № 142 "Партнер Нефть" [00:13:23]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:13:23]line СНО: Общий режим [00:13:23]line Чек 224 25.10.2024 00:13 [00:13:23]line Смена: 510 ФФД: 1.0 [00:13:23]line ЗНМ: 0300000089 [00:13:23]line РНМ: 0000000000091691 [00:13:23]line Версия ККМ: 001 [00:13:23]line ФМ: 0000000000871795 [00:13:23]line ФД: 74780 [00:13:23]line ФПД: 272601500798807 [00:13:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001334&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74780&fm=272601500798807&tin=02508201610067®Number=0000000000091691&sum=50000 [00:13:23]written 0, free lines is 4095 [00:13:23]Write to MH i2c: 01 00 00 47 9C E3 [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: 01 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: 01 07 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: 01 07 00 47 9C 00 00 00 00 00 B2 0C A8 [00:13:23]RasterBufferAndPrint [00:13:23]line [00:13:23]line [00:13:23]line [00:13:23]line [00:13:23]line [00:13:23]written 0, free lines is 3267 [00:13:23]MH_Cut [00:13:23]Write to MH i2c: D1 01 00 4E 9C 01 BC [00:13:23]ConnectInit Can't take IP for lk.salyk.kg [00:13:23]CommunicateWithHost connect error [00:13:23]CommunicateWithHost err = -1 [00:13:23]OFD Sender: Server communicate error [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: D1 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: D1 01 00 [00:13:23]MH_I2C_Read... [00:13:23]Read from MH i2c: D1 01 00 4E 9C 00 BB [00:13:23]Write to MH i2c: 01 00 00 4F 9C EB [00:13:23]Write i2c OK [00:13:23]MH_I2C_Read... [00:13:23]OFD Sender: Processing packet 74779 [packets to send 14, broken 12] [00:13:23]ProducePacketName [00:13:23]name=ofd_packets/00074779 [00:13:23]OFD Sender: To server: pG, [00:13:23]CommunicateWithHost lk.salyk.kg:30040 [00:13:23]ConnectInit lk.salyk.kg [00:13:24]*** Cut start [00:13:24]*** Partial cut [00:13:24]*** CUTSNS_PIN = 1 [00:13:24]*** CUTSNS_PIN = 0 [00:13:24]*** Brake cut motor [00:13:25]Read from MH i2c: 01 [00:13:25]MH_I2C_Read... [00:13:25]*** Stop cut motor [00:13:25]*** Cut end [00:13:25]Read from MH i2c: 01 07 00 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: 01 07 00 4F 9C 00 00 00 00 00 FF 0F 00 [00:13:25]process_action close_receipt done [00:13:25]requested_data is exist [00:13:25]produce_requested_data [00:13:25]requested_item fm.sn is exist - process it [00:13:25]wFMCommunicate request_size=4 [00:13:25]MH_SAM_APDU [00:13:25]CAPDU: 80 11 00 00 [00:13:25]Write to MH i2c: E2 08 00 50 9C 80 11 00 00 00 00 00 00 66 [00:13:25]Write i2c OK [00:13:25]MH_I2C_Read... [00:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:25]Read from MH i2c: E2 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 17 00 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 17 00 50 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BE [00:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:13:25]wFMCommunicate OK [00:13:25]requested_item fd.num is exist - process it [00:13:25]SAM_PROTO_GetFieldsCounters [00:13:25]wFMCommunicate request_size=4 [00:13:25]MH_SAM_APDU [00:13:25]CAPDU: 80 13 00 00 [00:13:25]Write to MH i2c: E2 08 00 51 9C 80 13 00 00 00 00 00 00 69 [00:13:25]Write i2c OK [00:13:25]MH_I2C_Read... [00:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:25]Read from MH i2c: E2 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 62 00 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 62 00 51 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1C 24 01 00 0E 04 04 00 FE 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 70 [00:13:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1C 24 01 00 0E 04 04 00 FE 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 [00:13:25]wFMCommunicate OK [00:13:25]SAM_PROTO_GetFieldsCounters done [00:13:25]requested_item shift.num is exist - process it [00:13:25]requested_item shift.opened is exist - process it [00:13:25]req_shift_opened [00:13:25]FM_GetShiftState [00:13:25]SAM_PROTO_GetShiftState [00:13:25]wFMCommunicate request_size=4 [00:13:25]MH_SAM_APDU [00:13:25]CAPDU: 80 13 01 00 [00:13:25]Write to MH i2c: E2 08 00 52 9C 80 13 01 00 00 00 00 00 6B [00:13:25]Write i2c OK [00:13:25]MH_I2C_Read... [00:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:25]Read from MH i2c: E2 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 0E 00 [00:13:25]MH_I2C_Read... [00:13:25]Read from MH i2c: E2 0E 00 52 9C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 95 [00:13:25]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:13:25]wFMCommunicate OK [00:13:25]SAM_PROTO_GetShiftState done [00:13:25]FM_GetShiftState done [00:13:25]req_shift_opened done [00:13:25]requested_item shift.open_date is exist - process it [00:13:25]req_shift_open_date [00:13:25]req_shift_open_date done [00:13:25]produce_requested_data done [00:13:25]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74780,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:13:25]process_action_free close_receipt [00:13:25]json_value_free [00:13:25]json_value_free done [00:13:25]process_json_proto returns [00:13:25]Send response to host [00:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74780,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:13:25]free response buf [00:13:25]execute_script done [00:13:25]execute_script returns [00:13:25]free content buf [00:13:25]Sock 10.Close socket [00:13:25]Sock 10.Thread stoped [00:13:28]int [00:13:28]Write to MH i2c: 01 00 00 53 9C EF [00:13:28]*** FLAG_PRN_KEY set [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 53 9C 00 08 00 00 00 FF 0F 0C [00:13:28]state=0 [00:13:28]Key pressed [00:13:28]Feed [00:13:28]Write to MH i2c: D8 00 00 54 9C C7 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: D8 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: D8 01 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: D8 01 00 54 9C 00 C8 [00:13:28]int [00:13:28]Write to MH i2c: 01 00 00 55 9C F1 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 55 9C 00 48 00 00 00 3C 00 7C [00:13:28]state=2 [00:13:28]Key pressed [00:13:28]int [00:13:28]Write to MH i2c: 01 00 00 56 9C F2 [00:13:28]*** FLAG_PRN_KEY reset [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 56 9C 00 00 00 00 00 FA 0F 02 [00:13:28]state=2 [00:13:28]Stop feed [00:13:28]int [00:13:28]Write to MH i2c: 01 00 00 57 9C F3 [00:13:28]*** FLAG_PRN_KEY set [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 57 9C 00 08 00 00 00 FF 0F 10 [00:13:28]state=0 [00:13:28]Key pressed [00:13:28]Feed [00:13:28]Write to MH i2c: D8 00 00 58 9C CB [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: D8 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: D8 01 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: D8 01 00 58 9C 00 CC [00:13:28]int [00:13:28]Write to MH i2c: 01 00 00 59 9C F5 [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 59 9C 00 48 00 00 00 3C 00 80 [00:13:28]state=2 [00:13:28]Key pressed [00:13:28]int [00:13:28]Write to MH i2c: 01 00 00 5A 9C F6 [00:13:28]*** FLAG_PRN_KEY reset [00:13:28]Write i2c OK [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 [00:13:28]MH_I2C_Read... [00:13:28]Read from MH i2c: 01 07 00 5A 9C 00 00 00 00 00 F9 0F 05 [00:13:28]state=2 [00:13:28]Stop feed [00:13:28]ConnectInit Can't take IP for lk.salyk.kg [00:13:28]CommunicateWithHost connect error [00:13:28]CommunicateWithHost err = -1 [00:13:28]OFD Sender: Server communicate error [00:13:33]OFD Sender: Processing packet 74779 [packets to send 14, broken 12] [00:13:33]ProducePacketName [00:13:33]name=ofd_packets/00074779 [00:13:33]OFD Sender: To server: pG, [00:13:33]CommunicateWithHost lk.salyk.kg:30040 [00:13:33]ConnectInit lk.salyk.kg [00:13:38]ConnectInit Can't take IP for lk.salyk.kg [00:13:38]CommunicateWithHost connect error [00:13:38]CommunicateWithHost err = -1 [00:13:38]OFD Sender: Server communicate error [00:13:43]OFD Sender: Processing packet 74779 [packets to send 14, broken 12] [00:13:43]ProducePacketName [00:13:43]name=ofd_packets/00074779 [00:13:43]OFD Sender: To server: pG, [00:13:43]CommunicateWithHost lk.salyk.kg:30040 [00:13:43]ConnectInit lk.salyk.kg [00:13:48]ConnectInit Can't take IP for lk.salyk.kg [00:13:48]CommunicateWithHost connect error [00:13:48]CommunicateWithHost err = -1 [00:13:48]OFD Sender: Server communicate error [00:13:53]OFD Sender: Processing packet 74779 [packets to send 14, broken 12] [00:13:53]ProducePacketName [00:13:53]name=ofd_packets/00074779 [00:13:53]OFD Sender: To server: pG, [00:13:53]CommunicateWithHost lk.salyk.kg:30040 [00:13:53]ConnectInit lk.salyk.kg [00:13:53]Connected sock=10 [00:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 CD 63 06 01 AE 05 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B0 A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A2 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 80 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 AA E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 24 01 00 35 04 06 00 39 0F 79 6B 57 09 B1 96 E8 1B 4E 57 F9 F0 [00:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C7 C4 47 00 A7 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 24 01 00 F4 03 04 00 4E 8A 1A 67 B6 04 01 00 00 FD 49 66 63 3C E2 07 DF [00:13:54]CommunicateWithHost err = 0 [00:13:54]CheckOFDResponse [00:13:54]1017 (14) - 77093643461234 [00:13:54]1041 (16) - 0000000000871795 [00:13:54]1040 (4) - 74779 [00:13:54]1012 (4) - 24.10.2024 17:56 [00:13:54]1206 (1) - 0 [00:13:54]OFD Sender: Remove packet 74779 [00:13:54]ProducePacketName [00:13:54]name=ofd_packets/00074779 [00:13:54]NVStorageDeleteData [00:13:54]OFD Sender: Processing packet 74780 [packets to send 13, broken 12] [00:13:54]ProducePacketName [00:13:54]name=ofd_packets/00074780 [00:13:54]OFD Sender: To server: pG, [00:13:54]CommunicateWithHost lk.salyk.kg:30040 [00:13:54]ConnectInit lk.salyk.kg [00:13:55]Connected sock=10 [00:13:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 97 3E 07 01 02 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 AE E2 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 24 01 00 35 04 06 00 F7 ED FB 9E CF 57 7B C3 BE 87 53 86 87 06 [00:13:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B2 44 47 00 02 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 24 01 00 F4 03 04 00 4F 8A 1A 67 B6 04 01 00 00 66 4C E3 47 AE 93 23 D6 [00:13:55]CommunicateWithHost err = 0 [00:13:55]CheckOFDResponse [00:13:55]1017 (14) - 77093643461234 [00:13:55]1041 (16) - 0000000000871795 [00:13:55]1040 (4) - 74780 [00:13:55]1012 (4) - 24.10.2024 17:56 [00:13:55]1206 (1) - 0 [00:13:55]OFD Sender: Remove packet 74780 [00:13:55]ProducePacketName [00:13:55]name=ofd_packets/00074780 [00:13:55]NVStorageDeleteData [00:13:56]OFD Sender: No OFD packet to send [00:13:56]ConnectInit Can't connect to host [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:29]accept exits with 9 [00:15:29]New connection [00:15:29]New thread 3066662244 created [00:15:29]Thread 3066805604 joined [00:15:29]Waiting for new connection... [00:15:29] Sock 9.Parse request [00:15:29]Sock 9.Check first char [00:15:29]Sock 9.First char is OK [00:15:29]request: POST /json_proto HTTP/1.0 [00:15:29]Method: POST [00:15:29]URL: /json_proto [00:15:29]Method is POST - this is cgi request [00:15:29]url: /json_proto [00:15:29]query_string will be loaded in cgi processing [00:15:29]execute_cgi json_proto POST (null) [00:15:29]execute_cgi path=json_proto method=POST [00:15:29]POST find Content-Length [00:15:29]Host: 172.17.39.131:8080 [00:15:29]Content-Length: 799 [00:15:29]Content-Type: application/json [00:15:29] [00:15:29]POST finish read [00:15:29]Found Content-Length = 799 [00:15:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:29]execute_script... [00:15: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)190747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:29]POST & json_proto [00:15:29]process_json_proto [00:15:29]json parsed OK: [00:15:29]protocol is kg_v1.0 [00:15:29]action value=close_receipt [00:15:29]process_action close_receipt [00:15:29]cmd_close_receipt [00:15:29]MH_GetDate [00:15:29]Write to MH i2c: F0 00 00 5B 9C E6 [00:15:29]Write i2c OK [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: F0 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: F0 09 00 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: F0 09 00 5B 9C 00 2F E3 1A 67 86 57 24 65 E8 [00:15:29]GetLastDocTimeStamp 1729815214 [00:15:29]current date 1729815343 [00:15:29]FM_GetShiftState [00:15:29]SAM_PROTO_GetShiftState [00:15:29]wFMCommunicate request_size=4 [00:15:29]MH_SAM_APDU [00:15:29]CAPDU: 80 13 01 00 [00:15:29]Write to MH i2c: E2 08 00 5C 9C 80 13 01 00 00 00 00 00 75 [00:15:29]Write i2c OK [00:15:29]MH_I2C_Read... [00:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:29]Read from MH i2c: E2 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: E2 0E 00 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: E2 0E 00 5C 9C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 9F [00:15:29]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:15:29]wFMCommunicate OK [00:15:29]SAM_PROTO_GetShiftState done [00:15:29]FM_GetShiftState done [00:15:29]opened in 1729729801 [00:15:29]opened+sec_in_day 1729816201 [00:15:29]quantity*price = 0 [00:15:29]sum+1 = 1 [00:15:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 225 25.10.2024 00:15 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74781 ФПД: 174198411569715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001543&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74781&fm=174198411569715&tin=02508201610067®Number=0000000000091691&sum=0 [00:15:30]StoreToDocumentArchive [00:15:30]shift 510 fd 74781 [00:15:30]save to /storage/0510/doc_00074781 [00:15:30]save last doc name /storage/0510/doc_00074781 to /storage/kkm_last_doc_name [00:15:30]save OK [00:15:30]Clear old archive folders... [00:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:15:30]tlvbuf is 007C6700 [00:15:30]SAM_PROTO_ClearQueue [00:15:30]wFMCommunicate request_size=4 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 09 00 00 [00:15:30]Write to MH i2c: E2 08 00 69 9C 80 09 00 00 00 00 00 00 77 [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:30]Read from MH i2c: E2 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 03 00 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 03 00 69 9C 00 90 00 79 [00:15:30]RAPDU: 90 00 [00:15:30]wFMCommunicate OK [00:15:30]SAM_PROTO_ClearQueue done [00:15:30]KKMCreateOFDPacket [00:15:30]OFDProtocolAddRootSTLVToBuf [00:15:30]FM_MakeSignedData [00:15:30]FM_MakeSignedData [00:15:30]SAM_PROTO_SignData [00:15:30]wFMCommunicate request_size=4 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 0D 01 02 [00:15:30]Write to MH i2c: E2 08 00 6A 9C 80 0D 01 02 00 00 00 00 7F [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:30]Read from MH i2c: E2 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 03 00 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 03 00 6A 9C 00 90 00 7A [00:15:30]RAPDU: 90 00 [00:15:30]wFMCommunicate OK [00:15:30]wFMCommunicate request_size=255 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 2F E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 24 01 [00:15:30]Write to MH i2c: E2 02 01 6B 9C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 2F E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 24 01 00 00 97 [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 03 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 03 00 6B 9C 00 90 00 7B [00:15:31]RAPDU: 90 00 [00:15:31]wFMCommunicate OK [00:15:31]wFMCommunicate request_size=16 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9E 6E BA 71 2A 33 [00:15:31]Write to MH i2c: E2 13 00 6C 9C 80 0D 02 02 0B 00 00 35 04 06 00 9E 6E BA 71 2A 33 00 00 6B [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 03 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 03 00 6C 9C 00 90 00 7C [00:15:31]RAPDU: 90 00 [00:15:31]wFMCommunicate OK [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 0D 03 02 [00:15:31]Write to MH i2c: E2 08 00 6D 9C 80 0D 03 02 00 00 00 00 84 [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 0B 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 0B 00 6D 9C 00 49 B8 97 E7 DA D0 C7 99 90 00 0E [00:15:31]RAPDU: 49 B8 97 E7 DA D0 C7 99 90 00 [00:15:31]wFMCommunicate OK [00:15:31]SAM_PROTO_SignData done [00:15:31]FM_MakeSignedData done [00:15:31]CreateOFDProtocolMessage [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 11 00 00 [00:15:31]Write to MH i2c: E2 08 00 6E 9C 80 11 00 00 00 00 00 00 84 [00:15:31]OFD Sender: No OFD packet to send [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 17 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 17 00 6E 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DC [00:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:15:31]wFMCommunicate OK [00:15:31]CreateOFDProtocolMessage done [00:15:31]OFDSenderStorePacket 74781 [00:15:31]StoreOFDPacket docnum=74781 [00:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 5F A2 0D 01 90 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 2F E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 24 01 00 35 04 06 00 9E 6E BA 71 2A 33 49 B8 97 E7 DA D0 C7 99 [00:15:31]CheckFolder [00:15:31]dirname=/storage/ofd_packets [00:15:31]CheckFolder done [00:15:31]ProducePacketName [00:15:31]name=ofd_packets/00074781 [00:15:31]NVStorageSaveData ofd_packets/00074781 [00:15:31]File name is /storage/ofd_packets/00074781 [00:15:31]Write 307 bytes [00:15:31]NVStorageSaveData done [00:15:31]OFDSenderStorePacket done [00:15:31]KKMCreateOFDPacket done [00:15:31]NVStorageSaveData kkm_last_timestamp [00:15:31]File name is /storage/kkm_last_timestamp [00:15:31]Write 4 bytes [00:15:31]NVStorageSaveData done [00:15:31]ExternCall_PrintAddStr [00:15:31]wPrintStart [00:15:31]Write to MH i2c: 01 00 00 6F 9C 0B [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: 01 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: 01 07 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: 01 07 00 6F 9C 00 00 00 00 00 FF 0F 20 [00:15:31]RasterBufferAndPrint [00:15:31]line Счет N : (1)190747 [00:15:31]line ИНН: 02508201610067 [00:15:31]line Контрольно-Кассовый Чек [00:15:31]line ПРОДАЖА [00:15:31]line ТРК (МРК, ГНК) : 32 [00:15:31]line Товар: 2710194240 [00:15:31]line D-ENERGY ДТ-К-2 [00:15:31]line 500.000 * 0.00 [00:15:31]line = 0.00 [00:15:31]line НДС 12% НСП 1% [00:15:31]line > о реализуемом товаре [00:15:31]line ИТОГО: 0.00 [00:15:31]line НСП 1% : 0.00 [00:15:31]line НДС 12% : 0.00 [00:15:31]line Наличными: 0.00 [00:15:31]line Безнал.: 0.00 [00:15:31]line Место: АЗС № 142 "Партнер Нефть" [00:15:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:15:31]line СНО: Общий режим [00:15:31]line Чек 225 25.10.2024 00:15 [00:15:31]line Смена: 510 ФФД: 1.0 [00:15:31]line ЗНМ: 0300000089 [00:15:31]line РНМ: 0000000000091691 [00:15:31]line Версия ККМ: 001 [00:15:31]line Талоны: Топливная Карта [00:15:31]line 82575 [00:15:31]line ФМ: 0000000000871795 [00:15:31]line ФД: 74781 [00:15:31]line ФПД: 174198411569715 [00:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001543&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74781&fm=174198411569715&tin=02508201610067®Number=0000000000091691&sum=0 [00:15:31]OFD Sender: Processing packet 74781 [packets to send 13, broken 12] [00:15:31]ProducePacketName [00:15:31]name=ofd_packets/00074781 [00:15:31]OFD Sender: To server: pG, [00:15:31]CommunicateWithHost lk.salyk.kg:30040 [00:15:31]ConnectInit lk.salyk.kg [00:15:31]written 0, free lines is 4095 [00:15:31]Connected sock=10 [00:15:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 5F A2 0D 01 90 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 2F E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 24 01 00 35 04 06 00 9E 6E BA 71 2A 33 49 B8 97 E7 DA D0 C7 99 [00:15:32]Write to MH i2c: 01 00 00 99 9C 35 [00:15:32]Write i2c OK [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: 01 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: 01 07 00 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: 01 07 00 99 9C 00 00 00 00 00 CA 0C 12 [00:15:32]RasterBufferAndPrint [00:15:32]line [00:15:32]line [00:15:32]line [00:15:32]line [00:15:32]line [00:15:32]written 0, free lines is 3280 [00:15:32]MH_Cut [00:15:32]Write to MH i2c: D1 01 00 A0 9C 01 0E [00:15:32]Write i2c OK [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: D1 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: D1 01 00 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: D1 01 00 A0 9C 00 0D [00:15:32]Write to MH i2c: 01 00 00 A1 9C 3D [00:15:32]Write i2c OK [00:15:32]MH_I2C_Read... [00:15:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6E 91 47 00 B4 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 31 37 39 35 10 04 04 00 1D 24 01 00 F4 03 04 00 B0 8A 1A 67 B6 04 01 00 00 AD 6C E2 8E B2 33 2A 50 [00:15:32]CommunicateWithHost err = 0 [00:15:32]CheckOFDResponse [00:15:32]1017 (14) - 77093643461234 [00:15:32]1041 (16) - 0000000000871795 [00:15:32]1040 (4) - 74781 [00:15:32]1012 (4) - 24.10.2024 17:58 [00:15:32]1206 (1) - 0 [00:15:32]OFD Sender: Remove packet 74781 [00:15:32]ProducePacketName [00:15:32]name=ofd_packets/00074781 [00:15:32]NVStorageDeleteData [00:15:32]OFD Sender: No OFD packet to send [00:15:32]*** Cut start [00:15:32]*** Partial cut [00:15:32]*** CUTSNS_PIN = 1 [00:15:33]*** CUTSNS_PIN = 0 [00:15:33]*** Brake cut motor [00:15:33]Read from MH i2c: 01 [00:15:33]MH_I2C_Read... [00:15:33]*** Stop cut motor [00:15:33]*** Cut end [00:15:33]Read from MH i2c: 01 07 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: 01 07 00 A1 9C 00 00 00 00 00 FF 0F 52 [00:15:33]process_action close_receipt done [00:15:33]requested_data is exist [00:15:33]produce_requested_data [00:15:33]requested_item fm.sn is exist - process it [00:15:33]wFMCommunicate request_size=4 [00:15:33]MH_SAM_APDU [00:15:33]CAPDU: 80 11 00 00 [00:15:33]Write to MH i2c: E2 08 00 A2 9C 80 11 00 00 00 00 00 00 B8 [00:15:33]Write i2c OK [00:15:33]MH_I2C_Read... [00:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:33]Read from MH i2c: E2 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 17 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 17 00 A2 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 10 [00:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:15:33]wFMCommunicate OK [00:15:33]requested_item fd.num is exist - process it [00:15:33]SAM_PROTO_GetFieldsCounters [00:15:33]wFMCommunicate request_size=4 [00:15:33]MH_SAM_APDU [00:15:33]CAPDU: 80 13 00 00 [00:15:33]Write to MH i2c: E2 08 00 A3 9C 80 13 00 00 00 00 00 00 BB [00:15:33]Write i2c OK [00:15:33]MH_I2C_Read... [00:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:33]Read from MH i2c: E2 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 62 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 62 00 A3 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1D 24 01 00 0E 04 04 00 FE 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 C6 [00:15:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1D 24 01 00 0E 04 04 00 FE 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 [00:15:33]wFMCommunicate OK [00:15:33]SAM_PROTO_GetFieldsCounters done [00:15:33]requested_item shift.num is exist - process it [00:15:33]requested_item shift.opened is exist - process it [00:15:33]req_shift_opened [00:15:33]FM_GetShiftState [00:15:33]SAM_PROTO_GetShiftState [00:15:33]wFMCommunicate request_size=4 [00:15:33]MH_SAM_APDU [00:15:33]CAPDU: 80 13 01 00 [00:15:33]Write to MH i2c: E2 08 00 A4 9C 80 13 01 00 00 00 00 00 BD [00:15:33]Write i2c OK [00:15:33]MH_I2C_Read... [00:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:33]Read from MH i2c: E2 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 0E 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 0E 00 A4 9C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 E7 [00:15:33]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:15:33]wFMCommunicate OK [00:15:33]SAM_PROTO_GetShiftState done [00:15:33]FM_GetShiftState done [00:15:33]req_shift_opened done [00:15:33]requested_item shift.open_date is exist - process it [00:15:33]req_shift_open_date [00:15:33]req_shift_open_date done [00:15:33]produce_requested_data done [00:15:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74781,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:15:33]process_action_free close_receipt [00:15:33]json_value_free [00:15:33]json_value_free done [00:15:33]process_json_proto returns [00:15:33]Send response to host [00:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74781,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:15:33]free response buf [00:15:33]execute_script done [00:15:33]execute_script returns [00:15:33]free content buf [00:15:33]Sock 9.Close socket [00:15:33]Sock 9.Thread stoped [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:07]int [00:16:07]Write to MH i2c: 01 00 00 A5 9C 41 [00:16:07]*** FLAG_PRN_KEY set [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 A5 9C 00 08 00 00 00 FF 0F 5E [00:16:07]state=0 [00:16:07]Key pressed [00:16:07]Feed [00:16:07]Write to MH i2c: D8 00 00 A6 9C 19 [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: D8 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: D8 01 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: D8 01 00 A6 9C 00 1A [00:16:07]int [00:16:07]Write to MH i2c: 01 00 00 A7 9C 43 [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 A7 9C 00 48 00 00 00 3C 00 CE [00:16:07]state=2 [00:16:07]Key pressed [00:16:08]int [00:16:08]Write to MH i2c: 01 00 00 A8 9C 44 [00:16:08]*** FLAG_PRN_KEY reset [00:16:08]Write i2c OK [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 A8 9C 00 00 00 00 00 F6 0F 50 [00:16:08]state=2 [00:16:08]Stop feed [00:16:08]int [00:16:08]Write to MH i2c: 01 00 00 A9 9C 45 [00:16:08]*** FLAG_PRN_KEY set [00:16:08]Write i2c OK [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 A9 9C 00 08 00 00 00 FF 0F 62 [00:16:08]state=0 [00:16:08]Key pressed [00:16:08]Feed [00:16:08]Write to MH i2c: D8 00 00 AA 9C 1D [00:16:08]Write i2c OK [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: D8 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: D8 01 00 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: D8 01 00 AA 9C 00 1E [00:16:08]int [00:16:08]Write to MH i2c: 01 00 00 AB 9C 47 [00:16:08]Write i2c OK [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 AB 9C 00 48 00 00 00 3C 00 D2 [00:16:08]state=2 [00:16:08]Key pressed [00:16:08]int [00:16:08]Write to MH i2c: 01 00 00 AC 9C 48 [00:16:08]*** FLAG_PRN_KEY reset [00:16:08]Write i2c OK [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: 01 07 00 AC 9C 00 00 00 00 00 F5 0F 53 [00:16:08]state=2 [00:16:08]Stop feed [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:38]accept exits with 8 [00:16:38]New connection [00:16:38]New thread 3066805604 created [00:16:38]Thread 3066662244 joined [00:16:38]Waiting for new connection... [00:16:38] Sock 8.Parse request [00:16:38]Sock 8.Check first char [00:16:38]Sock 8.First char is OK [00:16:38]request: POST /json_proto HTTP/1.0 [00:16:38]Method: POST [00:16:38]URL: /json_proto [00:16:38]Method is POST - this is cgi request [00:16:38]url: /json_proto [00:16:38]query_string will be loaded in cgi processing [00:16:38]execute_cgi json_proto POST (null) [00:16:38]execute_cgi path=json_proto method=POST [00:16:38]POST find Content-Length [00:16:38]Host: 172.17.39.131:8080 [00:16:38]Content-Length: 799 [00:16:38]Content-Type: application/json [00:16:38] [00:16:38]POST finish read [00:16:38]Found Content-Length = 799 [00:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 411.320, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:38]execute_script... [00:16: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)190744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 411.320, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:38]POST & json_proto [00:16:38]process_json_proto [00:16:38]json parsed OK: [00:16:38]protocol is kg_v1.0 [00:16:38]action value=close_receipt [00:16:38]process_action close_receipt [00:16:38]cmd_close_receipt [00:16:38]MH_GetDate [00:16:38]Write to MH i2c: F0 00 00 AD 9C 38 [00:16:38]Write i2c OK [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: F0 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: F0 09 00 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: F0 09 00 AD 9C 00 73 E3 1A 67 86 57 24 65 7E [00:16:38]GetLastDocTimeStamp 1729815343 [00:16:38]current date 1729815411 [00:16:38]FM_GetShiftState [00:16:38]SAM_PROTO_GetShiftState [00:16:38]wFMCommunicate request_size=4 [00:16:38]MH_SAM_APDU [00:16:38]CAPDU: 80 13 01 00 [00:16:38]Write to MH i2c: E2 08 00 AE 9C 80 13 01 00 00 00 00 00 C7 [00:16:38]Write i2c OK [00:16:38]MH_I2C_Read... [00:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:38]Read from MH i2c: E2 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 0E 00 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 0E 00 AE 9C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 F1 [00:16:38]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:16:38]wFMCommunicate OK [00:16:38]SAM_PROTO_GetShiftState done [00:16:38]FM_GetShiftState done [00:16:38]opened in 1729729801 [00:16:38]opened+sec_in_day 1729816201 [00:16:38]quantity*price = 0 [00:16:38]sum+1 = 1 [00:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 226 25.10.2024 00:16 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74782 ФПД: 197633660200727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001652&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74782&fm=197633660200727&tin=02508201610067®Number=0000000000091691&sum=0 [00:16:39]StoreToDocumentArchive [00:16:39]shift 510 fd 74782 [00:16:39]save to /storage/0510/doc_00074782 [00:16:39]save last doc name /storage/0510/doc_00074782 to /storage/kkm_last_doc_name [00:16:39]save OK [00:16:39]Clear old archive folders... [00:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:16:39]tlvbuf is 0087C8C0 [00:16:39]SAM_PROTO_ClearQueue [00:16:39]wFMCommunicate request_size=4 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 09 00 00 [00:16:39]Write to MH i2c: E2 08 00 BB 9C 80 09 00 00 00 00 00 00 C9 [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 BB 9C 00 90 00 CB [00:16:39]RAPDU: 90 00 [00:16:39]wFMCommunicate OK [00:16:39]SAM_PROTO_ClearQueue done [00:16:39]KKMCreateOFDPacket [00:16:39]OFDProtocolAddRootSTLVToBuf [00:16:39]FM_MakeSignedData [00:16:39]FM_MakeSignedData [00:16:39]SAM_PROTO_SignData [00:16:39]wFMCommunicate request_size=4 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 0D 01 02 [00:16:39]Write to MH i2c: E2 08 00 BC 9C 80 0D 01 02 00 00 00 00 D1 [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 BC 9C 00 90 00 CC [00:16:39]RAPDU: 90 00 [00:16:39]wFMCommunicate OK [00:16:39]wFMCommunicate request_size=255 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 46 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 74 E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 24 01 [00:16:39]Write to MH i2c: E2 02 01 BD 9C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 46 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 74 E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 24 01 00 00 6C [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 BD 9C 00 90 00 CD [00:16:39]RAPDU: 90 00 [00:16:39]wFMCommunicate OK [00:16:39]wFMCommunicate request_size=16 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B3 BF 2C 1C A7 17 [00:16:39]Write to MH i2c: E2 13 00 BE 9C 80 0D 02 02 0B 00 00 35 04 06 00 B3 BF 2C 1C A7 17 00 00 A1 [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 03 00 BE 9C 00 90 00 CE [00:16:39]RAPDU: 90 00 [00:16:39]wFMCommunicate OK [00:16:39]wFMCommunicate request_size=4 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 0D 03 02 [00:16:39]Write to MH i2c: E2 08 00 BF 9C 80 0D 03 02 00 00 00 00 D6 [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 0B 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 0B 00 BF 9C 00 AC 9E F8 FD 19 12 E7 A7 90 00 CF [00:16:39]RAPDU: AC 9E F8 FD 19 12 E7 A7 90 00 [00:16:39]wFMCommunicate OK [00:16:39]SAM_PROTO_SignData done [00:16:39]FM_MakeSignedData done [00:16:39]CreateOFDProtocolMessage [00:16:39]wFMCommunicate request_size=4 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 11 00 00 [00:16:39]Write to MH i2c: E2 08 00 C0 9C 80 11 00 00 00 00 00 00 D6 [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:40]Read from MH i2c: E2 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: E2 17 00 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: E2 17 00 C0 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2E [00:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:16:40]wFMCommunicate OK [00:16:40]CreateOFDProtocolMessage done [00:16:40]OFDSenderStorePacket 74782 [00:16:40]StoreOFDPacket docnum=74782 [00:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 82 43 0D 01 BE 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 46 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 74 E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 24 01 00 35 04 06 00 B3 BF 2C 1C A7 17 AC 9E F8 FD 19 12 E7 A7 [00:16:40]CheckFolder [00:16:40]dirname=/storage/ofd_packets [00:16:40]CheckFolder done [00:16:40]ProducePacketName [00:16:40]name=ofd_packets/00074782 [00:16:40]NVStorageSaveData ofd_packets/00074782 [00:16:40]File name is /storage/ofd_packets/00074782 [00:16:40]Write 307 bytes [00:16:40]NVStorageSaveData done [00:16:40]OFDSenderStorePacket done [00:16:40]KKMCreateOFDPacket done [00:16:40]NVStorageSaveData kkm_last_timestamp [00:16:40]File name is /storage/kkm_last_timestamp [00:16:40]Write 4 bytes [00:16:40]NVStorageSaveData done [00:16:40]ExternCall_PrintAddStr [00:16:40]wPrintStart [00:16:40]Write to MH i2c: 01 00 00 C1 9C 5D [00:16:40]Write i2c OK [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: 01 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: 01 07 00 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: 01 07 00 C1 9C 00 00 00 00 00 FF 0F 72 [00:16:40]RasterBufferAndPrint [00:16:40]line Счет N : (1)190744 [00:16:40]line ИНН: 02508201610067 [00:16:40]line Контрольно-Кассовый Чек [00:16:40]line ПРОДАЖА [00:16:40]line ТРК (МРК, ГНК) : 42 [00:16:40]line Товар: 2710194240 [00:16:40]line D-ENERGY ДТ-К-2 [00:16:40]line 411.320 * 0.00 [00:16:40]line = 0.00 [00:16:40]line НДС 12% НСП 1% [00:16:40]line > о реализуемом товаре [00:16:40]line ИТОГО: 0.00 [00:16:40]line НСП 1% : 0.00 [00:16:40]line НДС 12% : 0.00 [00:16:40]line Наличными: 0.00 [00:16:40]line Безнал.: 0.00 [00:16:40]line Место: АЗС № 142 "Партнер Нефть" [00:16:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:16:40]line СНО: Общий режим [00:16:40]line Чек 226 25.10.2024 00:16 [00:16:40]line Смена: 510 ФФД: 1.0 [00:16:40]line ЗНМ: 0300000089 [00:16:40]line РНМ: 0000000000091691 [00:16:40]line Версия ККМ: 001 [00:16:40]line Талоны: Топливная Карта [00:16:40]line 82575 [00:16:40]line ФМ: 0000000000871795 [00:16:40]line ФД: 74782 [00:16:40]line ФПД: 197633660200727 [00:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001652&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74782&fm=197633660200727&tin=02508201610067®Number=0000000000091691&sum=0 [00:16:40]OFD Sender: Processing packet 74782 [packets to send 13, broken 12] [00:16:40]ProducePacketName [00:16:40]name=ofd_packets/00074782 [00:16:40]OFD Sender: To server: pG, [00:16:40]CommunicateWithHost lk.salyk.kg:30040 [00:16:40]ConnectInit lk.salyk.kg [00:16:40]written 0, free lines is 4095 [00:16:40]Connected sock=10 [00:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 82 43 0D 01 BE 7E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 46 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 74 E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 24 01 00 35 04 06 00 B3 BF 2C 1C A7 17 AC 9E F8 FD 19 12 E7 A7 [00:16:40]Write to MH i2c: 01 00 00 EB 9C 87 [00:16:40]Write i2c OK [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: 01 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: 01 07 00 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: 01 07 00 EB 9C 00 00 00 00 00 D6 0C 70 [00:16:40]RasterBufferAndPrint [00:16:40]line [00:16:40]line [00:16:40]line [00:16:40]line [00:16:40]line [00:16:40]written 0, free lines is 3293 [00:16:40]MH_Cut [00:16:40]Write to MH i2c: D1 01 00 F2 9C 01 60 [00:16:40]Write i2c OK [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: D1 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: D1 01 00 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: D1 01 00 F2 9C 00 5F [00:16:40]Write to MH i2c: 01 00 00 F3 9C 8F [00:16:40]Write i2c OK [00:16:40]MH_I2C_Read... [00:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9B EA 47 00 02 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 24 01 00 F4 03 04 00 F4 8A 1A 67 B6 04 01 00 00 79 06 B4 06 CF 4D 48 50 [00:16:40]CommunicateWithHost err = 0 [00:16:40]CheckOFDResponse [00:16:40]1017 (14) - 77093643461234 [00:16:40]1041 (16) - 0000000000871795 [00:16:40]1040 (4) - 74782 [00:16:40]1012 (4) - 24.10.2024 17:59 [00:16:40]1206 (1) - 0 [00:16:40]OFD Sender: Remove packet 74782 [00:16:40]ProducePacketName [00:16:40]name=ofd_packets/00074782 [00:16:40]NVStorageDeleteData [00:16:41]OFD Sender: No OFD packet to send [00:16:41]*** Cut start [00:16:41]*** Partial cut [00:16:41]*** CUTSNS_PIN = 1 [00:16:41]*** CUTSNS_PIN = 0 [00:16:41]*** Brake cut motor [00:16:42]Read from MH i2c: 01 [00:16:42]MH_I2C_Read... [00:16:42]*** Stop cut motor [00:16:42]*** Cut end [00:16:42]Read from MH i2c: 01 07 00 [00:16:42]MH_I2C_Read... [00:16:42]Read from MH i2c: 01 07 00 F3 9C 00 00 00 00 00 FF 0F A4 [00:16:42]process_action close_receipt done [00:16:42]requested_data is exist [00:16:42]produce_requested_data [00:16:42]requested_item fm.sn is exist - process it [00:16:42]wFMCommunicate request_size=4 [00:16:42]MH_SAM_APDU [00:16:42]CAPDU: 80 11 00 00 [00:16:42]Write to MH i2c: E2 08 00 F4 9C 80 11 00 00 00 00 00 00 0A [00:16:42]Write i2c OK [00:16:42]MH_I2C_Read... [00:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:42]Read from MH i2c: E2 [00:16:42]MH_I2C_Read... [00:16:42]Read from MH i2c: E2 17 00 [00:16:42]MH_I2C_Read... [00:16:42]Read from MH i2c: E2 17 00 F4 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 62 [00:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:16:42]wFMCommunicate OK [00:16:42]requested_item fd.num is exist - process it [00:16:42]SAM_PROTO_GetFieldsCounters [00:16:42]wFMCommunicate request_size=4 [00:16:42]MH_SAM_APDU [00:16:42]CAPDU: 80 13 00 00 [00:16:42]Write to MH i2c: E2 08 00 F5 9C 80 13 00 00 00 00 00 00 0D [00:16:42]Write i2c OK [00:16:42]MH_I2C_Read... [00:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:42]Read from MH i2c: E2 [00:16:42]MH_I2C_Read... [00:16:42]Read from MH i2c: E2 62 00 [00:16:42]MH_I2C_Read... [00:16:42]Read from MH i2c: E2 62 00 F5 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1E 24 01 00 0E 04 04 00 FE 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 1C [00:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1E 24 01 00 0E 04 04 00 FE 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 [00:16:42]wFMCommunicate OK [00:16:42]SAM_PROTO_GetFieldsCounters done [00:16:42]requested_item shift.num is exist - process it [00:16:42]requested_item shift.opened is exist - process it [00:16:42]req_shift_opened [00:16:42]FM_GetShiftState [00:16:42]SAM_PROTO_GetShiftState [00:16:42]wFMCommunicate request_size=4 [00:16:42]MH_SAM_APDU [00:16:42]CAPDU: 80 13 01 00 [00:16:42]Write to MH i2c: E2 08 00 F6 9C 80 13 01 00 00 00 00 00 0F [00:16:42]Write i2c OK [00:16:42]MH_I2C_Read... [00:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:42]Read from MH i2c: E2 [00:16:42]MH_I2C_Read... [00:16:42]Read from MH i2c: E2 0E 00 [00:16:42]MH_I2C_Read... [00:16:42]Read from MH i2c: E2 0E 00 F6 9C 00 09 00 01 09 95 19 67 00 00 00 00 90 00 39 [00:16:42]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:16:42]wFMCommunicate OK [00:16:42]SAM_PROTO_GetShiftState done [00:16:42]FM_GetShiftState done [00:16:42]req_shift_opened done [00:16:42]requested_item shift.open_date is exist - process it [00:16:42]req_shift_open_date [00:16:42]req_shift_open_date done [00:16:42]produce_requested_data done [00:16:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74782,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:16:42]process_action_free close_receipt [00:16:42]json_value_free [00:16:42]json_value_free done [00:16:42]process_json_proto returns [00:16:42]Send response to host [00:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74782,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:16:42]free response buf [00:16:42]execute_script done [00:16:42]execute_script returns [00:16:42]free content buf [00:16:42]Sock 8.Close socket [00:16:42]Sock 8.Thread stoped [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 F7 9C 93 [00:16:43]*** FLAG_PRN_KEY set [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 F7 9C 00 08 00 00 00 FF 0F B0 [00:16:43]state=0 [00:16:43]Key pressed [00:16:43]Feed [00:16:43]Write to MH i2c: D8 00 00 F8 9C 6B [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 01 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 01 00 F8 9C 00 6C [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 F9 9C 95 [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 F9 9C 00 48 00 00 00 3C 00 20 [00:16:43]state=2 [00:16:43]Key pressed [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 FA 9C 96 [00:16:43]*** FLAG_PRN_KEY reset [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 FA 9C 00 00 00 00 00 F7 0F A3 [00:16:43]state=2 [00:16:43]Stop feed [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 FB 9C 97 [00:16:43]*** FLAG_PRN_KEY set [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 FB 9C 00 08 00 00 00 FF 0F B4 [00:16:43]state=0 [00:16:43]Key pressed [00:16:43]Feed [00:16:43]Write to MH i2c: D8 00 00 FC 9C 6F [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 01 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 01 00 FC 9C 00 70 [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 FD 9C 99 [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 FD 9C 00 48 00 00 00 3C 00 24 [00:16:43]state=2 [00:16:43]Key pressed [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 FE 9C 9A [00:16:43]*** FLAG_PRN_KEY reset [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 FE 9C 00 00 00 00 00 F8 0F A8 [00:16:43]state=2 [00:16:43]Stop feed [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 FF 9C 9B [00:16:43]*** FLAG_PRN_KEY set [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 FF 9C 00 08 00 00 00 FF 0F B8 [00:16:43]state=0 [00:16:43]Key pressed [00:16:43]Feed [00:16:43]Write to MH i2c: D8 00 00 00 9D 74 [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 01 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: D8 01 00 00 9D 00 75 [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 01 9D 9E [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 01 9D 00 48 00 00 00 3C 00 29 [00:16:43]state=2 [00:16:43]Key pressed [00:16:43]int [00:16:43]Write to MH i2c: 01 00 00 02 9D 9F [00:16:43]*** FLAG_PRN_KEY reset [00:16:43]Write i2c OK [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 [00:16:43]MH_I2C_Read... [00:16:43]Read from MH i2c: 01 07 00 02 9D 00 00 00 00 00 F8 0F AD [00:16:43]state=2 [00:16:43]Stop feed [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:18]accept exits with 9 [00:17:18]New connection [00:17:18]New thread 3066662244 created [00:17:18]Thread 3066805604 joined [00:17:18]Waiting for new connection... [00:17:18] Sock 9.Parse request [00:17:18]Sock 9.Check first char [00:17:18]Sock 9.First char is OK [00:17:18]request: POST /json_proto HTTP/1.0 [00:17:18]Method: POST [00:17:18]URL: /json_proto [00:17:18]Method is POST - this is cgi request [00:17:18]url: /json_proto [00:17:18]query_string will be loaded in cgi processing [00:17:18]execute_cgi json_proto POST (null) [00:17:18]execute_cgi path=json_proto method=POST [00:17:18]POST find Content-Length [00:17:18]Host: 172.17.39.131:8080 [00:17:18]Content-Length: 677 [00:17:18]Content-Type: application/json [00:17:18] [00:17:18]POST finish read [00:17:18]Found Content-Length = 677 [00:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:18]execute_script... [00:17: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)190753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:18]POST & json_proto [00:17:18]process_json_proto [00:17:18]json parsed OK: [00:17:18]protocol is kg_v1.0 [00:17:18]action value=close_receipt [00:17:18]process_action close_receipt [00:17:18]cmd_close_receipt [00:17:18]MH_GetDate [00:17:18]Write to MH i2c: F0 00 00 03 9D 8F [00:17:18]Write i2c OK [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: F0 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: F0 09 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: F0 09 00 03 9D 00 9C E3 1A 67 86 57 24 65 FE [00:17:18]GetLastDocTimeStamp 1729815412 [00:17:18]current date 1729815452 [00:17:18]FM_GetShiftState [00:17:18]SAM_PROTO_GetShiftState [00:17:18]wFMCommunicate request_size=4 [00:17:18]MH_SAM_APDU [00:17:18]CAPDU: 80 13 01 00 [00:17:18]Write to MH i2c: E2 08 00 04 9D 80 13 01 00 00 00 00 00 1E [00:17:18]Write i2c OK [00:17:18]MH_I2C_Read... [00:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:18]Read from MH i2c: E2 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 0E 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 0E 00 04 9D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 48 [00:17:18]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:17:18]wFMCommunicate OK [00:17:18]SAM_PROTO_GetShiftState done [00:17:18]FM_GetShiftState done [00:17:18]opened in 1729729801 [00:17:18]opened+sec_in_day 1729816201 [00:17:18]quantity*price = 20003 [00:17:18]sum+1 = 20004 [00:17:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 227 25.10.2024 00:17 Смена: 510 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74783 ФПД: 217997460705593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001732&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74783&fm=217997460705593&tin=02508201610067®Number=0000000000091691&sum=20000 [00:17:20]StoreToDocumentArchive [00:17:20]shift 510 fd 74783 [00:17:20]save to /storage/0510/doc_00074783 [00:17:20]save last doc name /storage/0510/doc_00074783 to /storage/kkm_last_doc_name [00:17:20]save OK [00:17:20]Clear old archive folders... [00:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:20]tlvbuf is 008FDD70 [00:17:20]SAM_PROTO_ClearQueue [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 09 00 00 [00:17:20]Write to MH i2c: E2 08 00 11 9D 80 09 00 00 00 00 00 00 20 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 11 9D 00 90 00 22 [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]SAM_PROTO_ClearQueue done [00:17:20]KKMCreateOFDPacket [00:17:20]OFDProtocolAddRootSTLVToBuf [00:17:20]FM_MakeSignedData [00:17:20]FM_MakeSignedData [00:17:20]SAM_PROTO_SignData [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 0D 01 02 [00:17:20]Write to MH i2c: E2 08 00 12 9D 80 0D 01 02 00 00 00 00 28 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 12 9D 00 90 00 23 [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]wFMCommunicate request_size=255 [00:17:20]MH_SAM_APDU [00:17: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 24 01 00 35 04 06 00 C6 [00:17:20]Write to MH i2c: E2 02 01 13 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 24 01 00 35 04 06 00 C6 00 00 6B [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 13 9D 00 90 00 24 [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]wFMCommunicate request_size=10 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 0D 02 02 05 44 7D 35 11 39 [00:17:20]Write to MH i2c: E2 0D 00 14 9D 80 0D 02 02 05 00 44 7D 35 11 39 00 00 75 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 14 9D 00 90 00 25 [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 0D 03 02 [00:17:20]Write to MH i2c: E2 08 00 15 9D 80 0D 03 02 00 00 00 00 2D [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 0B 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 0B 00 15 9D 00 4B 83 3B 89 85 55 B5 FF 90 00 4E [00:17:20]RAPDU: 4B 83 3B 89 85 55 B5 FF 90 00 [00:17:20]wFMCommunicate OK [00:17:20]SAM_PROTO_SignData done [00:17:20]FM_MakeSignedData done [00:17:20]CreateOFDProtocolMessage [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 11 00 00 [00:17:20]Write to MH i2c: E2 08 00 16 9D 80 11 00 00 00 00 00 00 2D [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 17 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 17 00 16 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 85 [00:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:17:20]wFMCommunicate OK [00:17:20]CreateOFDProtocolMessage done [00:17:20]OFDSenderStorePacket 74783 [00:17:20]StoreOFDPacket docnum=74783 [00:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 66 F3 07 01 CD 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 24 01 00 35 04 06 00 C6 44 7D 35 11 39 4B 83 3B 89 85 55 B5 FF [00:17:20]CheckFolder [00:17:20]dirname=/storage/ofd_packets [00:17:20]CheckFolder done [00:17:20]ProducePacketName [00:17:20]name=ofd_packets/00074783 [00:17:20]NVStorageSaveData ofd_packets/00074783 [00:17:20]File name is /storage/ofd_packets/00074783 [00:17:20]Write 301 bytes [00:17:20]NVStorageSaveData done [00:17:20]OFDSenderStorePacket done [00:17:20]KKMCreateOFDPacket done [00:17:20]NVStorageSaveData kkm_last_timestamp [00:17:20]File name is /storage/kkm_last_timestamp [00:17:20]Write 4 bytes [00:17:20]NVStorageSaveData done [00:17:20]ExternCall_PrintAddStr [00:17:20]wPrintStart [00:17:20]Write to MH i2c: 01 00 00 17 9D B4 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: 01 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: 01 07 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: 01 07 00 17 9D 00 00 00 00 00 FF 0F C9 [00:17:20]RasterBufferAndPrint [00:17:20]line Счет N : (1)190753 [00:17:20]line ИНН: 02508201610067 [00:17:20]line Контрольно-Кассовый Чек [00:17:20]line ПРОДАЖА [00:17:20]line ТРК (МРК, ГНК) : 21 [00:17:20]line Товар: 2710124130 [00:17:20]line Аи-92-К-5 [00:17:20]line 2.990 * 66.90 [00:17:20]line = 200.03 [00:17:20]line НДС 12% НСП 1% [00:17:20]line > о реализуемом товаре [00:17:20]line ОКРУГЛЕНИЕ: -0.03 [00:17:20]line ИТОГО: 200.00 [00:17:20]line Внесено: 200.00 [00:17:20]line СДАЧА: 0.00 [00:17:20]line НСП 1% : 1.77 [00:17:20]line НДС 12% : 21.24 [00:17:20]line Наличными: 200.00 [00:17:20]line Безнал.: 0.00 [00:17:20]line Место: АЗС № 142 "Партнер Нефть" [00:17:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:17:20]line СНО: Общий режим [00:17:20]line Чек 227 25.10.2024 00:17 [00:17:20]line Смена: 510 ФФД: 1.0 [00:17:20]line ЗНМ: 0300000089 [00:17:20]line РНМ: 0000000000091691 [00:17:20]line Версия ККМ: 001 [00:17:20]line ФМ: 0000000000871795 [00:17:20]line ФД: 74783 [00:17:20]line ФПД: 217997460705593 [00:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001732&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74783&fm=217997460705593&tin=02508201610067®Number=0000000000091691&sum=20000 [00:17:20]written 0, free lines is 4095 [00:17:20]OFD Sender: Processing packet 74783 [packets to send 13, broken 12] [00:17:20]ProducePacketName [00:17:20]name=ofd_packets/00074783 [00:17:20]OFD Sender: To server: pG, [00:17:20]CommunicateWithHost lk.salyk.kg:30040 [00:17:20]ConnectInit lk.salyk.kg [00:17:21]Connected sock=10 [00: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 31 37 39 35 0F 01 00 00 66 F3 07 01 CD 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C E3 1A 67 0E 04 04 00 FE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 24 01 00 35 04 06 00 C6 44 7D 35 11 39 4B 83 3B 89 85 55 B5 FF [00:17:21]Write to MH i2c: 01 00 00 42 9D DF [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: 01 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: 01 07 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: 01 07 00 42 9D 00 00 00 00 00 BB 0C AD [00:17:21]RasterBufferAndPrint [00:17:21]line [00:17:21]line [00:17:21]line [00:17:21]line [00:17:21]line [00:17:21]written 0, free lines is 3270 [00:17:21]MH_Cut [00:17:21]Write to MH i2c: D1 01 00 49 9D 01 B8 [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: D1 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: D1 01 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: D1 01 00 49 9D 00 B7 [00:17:21]Write to MH i2c: 01 00 00 4A 9D E7 [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9F 27 47 00 75 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 31 37 39 35 10 04 04 00 1F 24 01 00 F4 03 04 00 1D 8B 1A 67 B6 04 01 00 00 A0 AF 1B 72 69 70 49 44 [00:17:21]CommunicateWithHost err = 0 [00:17:21]CheckOFDResponse [00:17:21]1017 (14) - 77093643461234 [00:17:21]1041 (16) - 0000000000871795 [00:17:21]1040 (4) - 74783 [00:17:21]1012 (4) - 24.10.2024 17:59 [00:17:21]1206 (1) - 0 [00:17:21]OFD Sender: Remove packet 74783 [00:17:21]ProducePacketName [00:17:21]name=ofd_packets/00074783 [00:17:21]NVStorageDeleteData [00:17:21]OFD Sender: No OFD packet to send [00:17:22]*** Cut start [00:17:22]*** Partial cut [00:17:22]*** CUTSNS_PIN = 1 [00:17:22]*** CUTSNS_PIN = 0 [00:17:22]*** Brake cut motor [00:17:22]Read from MH i2c: 01 [00:17:22]MH_I2C_Read... [00:17:22]*** Stop cut motor [00:17:22]*** Cut end [00:17:22]Read from MH i2c: 01 07 00 [00:17:22]MH_I2C_Read... [00:17:22]Read from MH i2c: 01 07 00 4A 9D 00 00 00 00 00 FF 0F FC [00:17:22]process_action close_receipt done [00:17:22]requested_data is exist [00:17:22]produce_requested_data [00:17:22]requested_item fm.sn is exist - process it [00:17:22]wFMCommunicate request_size=4 [00:17:22]MH_SAM_APDU [00:17:22]CAPDU: 80 11 00 00 [00:17:22]Write to MH i2c: E2 08 00 4B 9D 80 11 00 00 00 00 00 00 62 [00:17:22]Write i2c OK [00:17:22]MH_I2C_Read... [00:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:22]Read from MH i2c: E2 [00:17:22]MH_I2C_Read... [00:17:22]Read from MH i2c: E2 17 00 [00:17:22]MH_I2C_Read... [00:17:22]Read from MH i2c: E2 17 00 4B 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BA [00:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:17:22]wFMCommunicate OK [00:17:22]requested_item fd.num is exist - process it [00:17:22]SAM_PROTO_GetFieldsCounters [00:17:22]wFMCommunicate request_size=4 [00:17:22]MH_SAM_APDU [00:17:22]CAPDU: 80 13 00 00 [00:17:22]Write to MH i2c: E2 08 00 4C 9D 80 13 00 00 00 00 00 00 65 [00:17:22]Write i2c OK [00:17:22]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 62 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 62 00 4C 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [00:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_GetFieldsCounters done [00:17:23]requested_item shift.num is exist - process it [00:17:23]requested_item shift.opened is exist - process it [00:17:23]req_shift_opened [00:17:23]FM_GetShiftState [00:17:23]SAM_PROTO_GetShiftState [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 13 01 00 [00:17:23]Write to MH i2c: E2 08 00 4D 9D 80 13 01 00 00 00 00 00 67 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 0E 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 0E 00 4D 9D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 91 [00:17:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_GetShiftState done [00:17:23]FM_GetShiftState done [00:17:23]req_shift_opened done [00:17:23]requested_item shift.open_date is exist - process it [00:17:23]req_shift_open_date [00:17:23]req_shift_open_date done [00:17:23]produce_requested_data done [00:17:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:17:23]process_action_free close_receipt [00:17:23]json_value_free [00:17:23]json_value_free done [00:17:23]process_json_proto returns [00:17:23]Send response to host [00:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:17:23]free response buf [00:17:23]execute_script done [00:17:23]execute_script returns [00:17:23]free content buf [00:17:23]Sock 9.Close socket [00:17:23]Sock 9.Thread stoped [00:17:26]OFD Sender: No OFD packet to send [00:17:27]int [00:17:27]Write to MH i2c: 01 00 00 4E 9D EB [00:17:27]*** FLAG_PRN_KEY set [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 4E 9D 00 08 00 00 00 FF 0F 08 [00:17:27]state=0 [00:17:27]Key pressed [00:17:27]Feed [00:17:27]Write to MH i2c: D8 00 00 4F 9D C3 [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: D8 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: D8 01 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: D8 01 00 4F 9D 00 C4 [00:17:27]int [00:17:27]Write to MH i2c: 01 00 00 50 9D ED [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 50 9D 00 48 00 00 00 3C 00 78 [00:17:27]state=2 [00:17:27]Key pressed [00:17:27]int [00:17:27]Write to MH i2c: 01 00 00 51 9D EE [00:17:27]*** FLAG_PRN_KEY reset [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 51 9D 00 00 00 00 00 F8 0F FC [00:17:27]state=2 [00:17:27]Stop feed [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:47]accept exits with 8 [00:17:47]New connection [00:17:47]New thread 3066805604 created [00:17:47]Thread 3066662244 joined [00:17:47]Waiting for new connection... [00:17:47] Sock 8.Parse request [00:17:47]Sock 8.Check first char [00:17:47]Sock 8.First char is OK [00:17:47]request: POST /json_proto HTTP/1.0 [00:17:47]Method: POST [00:17:47]URL: /json_proto [00:17:47]Method is POST - this is cgi request [00:17:47]url: /json_proto [00:17:47]query_string will be loaded in cgi processing [00:17:47]execute_cgi json_proto POST (null) [00:17:47]execute_cgi path=json_proto method=POST [00:17:47]POST find Content-Length [00:17:47]Host: 172.17.39.131:8080 [00:17:47]Content-Length: 215 [00:17:47]Content-Type: application/json [00:17:47] [00:17:47]POST finish read [00:17:47]Found Content-Length = 215 [00:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:47]execute_script... [00:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:47]POST & json_proto [00:17:47]process_json_proto [00:17:47]json parsed OK: [00:17:47]protocol is kg_v1.0 [00:17:47]action value=get_value [00:17:47]process_action get_value [00:17:47]cmd_get_value [00:17:47]process_action get_value done [00:17:47]requested_data is exist [00:17:47]produce_requested_data [00:17:47]requested_item kkm.sn is exist - process it [00:17:47]requested_item kkm.ver is exist - process it [00:17:47]requested_item fm.sn is exist - process it [00:17:47]wFMCommunicate request_size=4 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 11 00 00 [00:17:47]Write to MH i2c: E2 08 00 52 9D 80 11 00 00 00 00 00 00 69 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 17 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 17 00 52 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C1 [00:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:17:47]wFMCommunicate OK [00:17:47]requested_item fd.num is exist - process it [00:17:47]SAM_PROTO_GetFieldsCounters [00:17:47]wFMCommunicate request_size=4 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 13 00 00 [00:17:47]Write to MH i2c: E2 08 00 53 9D 80 13 00 00 00 00 00 00 6C [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 62 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 62 00 53 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [00:17:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:47]wFMCommunicate OK [00:17:47]SAM_PROTO_GetFieldsCounters done [00:17:47]requested_item shift.num is exist - process it [00:17:47]requested_item shift.opened is exist - process it [00:17:47]req_shift_opened [00:17:47]FM_GetShiftState [00:17:47]SAM_PROTO_GetShiftState [00:17:47]wFMCommunicate request_size=4 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 13 01 00 [00:17:47]Write to MH i2c: E2 08 00 54 9D 80 13 01 00 00 00 00 00 6E [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:47]Read from MH i2c: E2 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 0E 00 [00:17:47]MH_I2C_Read... [00:17:47]Read from MH i2c: E2 0E 00 54 9D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 98 [00:17:47]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:17:47]wFMCommunicate OK [00:17:47]SAM_PROTO_GetShiftState done [00:17:47]FM_GetShiftState done [00:17:47]req_shift_opened done [00:17:47]requested_item shift.open_date is exist - process it [00:17:47]req_shift_open_date [00:17:47]req_shift_open_date done [00:17:47]produce_requested_data done [00:17:47]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:17:47]process_action_free get_value [00:17:47]json_value_free [00:17:47]json_value_free done [00:17:47]process_json_proto returns [00:17:47]Send response to host [00:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:17:47]free response buf [00:17:47]execute_script done [00:17:47]execute_script returns [00:17:47]free content buf [00:17:47]Sock 8.Close socket [00:17:47]Sock 8.Thread stoped [00:17:47]accept exits with 10 [00:17:47]New connection [00:17:47]New thread 3066662244 created [00:17:47]Thread 3066805604 joined [00:17:47]Waiting for new connection... [00:17:47] Sock 10.Parse request [00:17:47]Sock 10.Check first char [00:17:47]Sock 10.First char is OK [00:17:47]request: POST /json_proto HTTP/1.0 [00:17:47]Method: POST [00:17:47]URL: /json_proto [00:17:47]Method is POST - this is cgi request [00:17:47]url: /json_proto [00:17:47]query_string will be loaded in cgi processing [00:17:47]execute_cgi json_proto POST (null) [00:17:47]execute_cgi path=json_proto method=POST [00:17:47]POST find Content-Length [00:17:47]Host: 172.17.39.131:8080 [00:17:47]Content-Length: 331 [00:17:47]Content-Type: application/json [00:17:47] [00:17:47]POST finish read [00:17:47]Found Content-Length = 331 [00:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:17:47]execute_script... [00:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:17:47]POST & json_proto [00:17:47]process_json_proto [00:17:47]json parsed OK: [00:17:47]protocol is kg_v1.0 [00:17:47]action value=get_value [00:17:47]process_action get_value [00:17:47]cmd_get_value [00:17:47]process_action get_value done [00:17:47]requested_data is exist [00:17:47]produce_requested_data [00:17:47]requested_item fm.sale.total is exist - process it [00:17:47]SAM_PROTO_GetFMData [00:17:47]wFMCommunicate request_size=4 [00:17:47]MH_SAM_APDU [00:17:47]CAPDU: 80 13 03 00 [00:17:47]Write to MH i2c: E2 08 00 55 9D 80 13 03 00 00 00 00 00 71 [00:17:47]Write i2c OK [00:17:47]MH_I2C_Read... [00:17:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:48]Read from MH i2c: E2 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 FD 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 FD 00 55 9D 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 BA [00:17:48]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:17:48]wFMCommunicate OK [00:17:48]wFMCommunicate request_size=4 [00:17:48]MH_SAM_APDU [00:17:48]CAPDU: 80 17 00 00 [00:17:48]Write to MH i2c: E2 08 00 56 9D 80 17 00 00 00 00 00 00 73 [00:17:48]Write i2c OK [00:17:48]MH_I2C_Read... [00:17:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:48]Read from MH i2c: E2 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 FD 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 FD 00 56 9D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 1B [00:17:48]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:17:48]wFMCommunicate OK [00:17:48]wFMCommunicate request_size=4 [00:17:48]MH_SAM_APDU [00:17:48]CAPDU: 80 17 00 00 [00:17:48]Write to MH i2c: E2 08 00 57 9D 80 17 00 00 00 00 00 00 74 [00:17:48]Write i2c OK [00:17:48]MH_I2C_Read... [00:17:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:48]Read from MH i2c: E2 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 FD 00 [00:17:48]MH_I2C_Read... [00:17:48]Read from MH i2c: E2 FD 00 57 9D 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 14 [00:17:48]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:17:48]wFMCommunicate OK [00:17:48]wFMCommunicate request_size=4 [00:17:48]MH_SAM_APDU [00:17:48]CAPDU: 80 17 00 00 [00:17:48]Write to MH i2c: E2 08 00 58 9D 80 17 00 00 00 00 00 00 75 [00:17:48]Write i2c OK [00:17:48]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 FD 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 FD 00 58 9D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 FA [00:17:49]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:17:49]wFMCommunicate OK [00:17:49]wFMCommunicate request_size=4 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 17 00 00 [00:17:49]Write to MH i2c: E2 08 00 59 9D 80 17 00 00 00 00 00 00 76 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 DE 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 DE 00 59 9D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 55 [00:17:49]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:49]wFMCommunicate OK [00:17:49]SAM_PROTO_GetFMData done [00:17:49]requested_item fm.sale_refund.total is exist - process it [00:17:49]requested_item fm.buy.total is exist - process it [00:17:49]requested_item shift.sale.total is exist - process it [00:17:49]SAM_PROTO_GetShiftData [00:17:49]wFMCommunicate request_size=4 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 13 02 00 [00:17:49]Write to MH i2c: E2 08 00 5A 9D 80 13 02 00 00 00 00 00 75 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:49]Read from MH i2c: E2 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 FD 00 [00:17:49]MH_I2C_Read... [00:17:49]Read from MH i2c: E2 FD 00 5A 9D 00 B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 79 [00:17:49]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:17:49]wFMCommunicate OK [00:17:49]wFMCommunicate request_size=4 [00:17:49]MH_SAM_APDU [00:17:49]CAPDU: 80 17 00 00 [00:17:49]Write to MH i2c: E2 08 00 5B 9D 80 17 00 00 00 00 00 00 78 [00:17:49]Write i2c OK [00:17:49]MH_I2C_Read... [00:17:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:50]Read from MH i2c: E2 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: E2 FD 00 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: E2 FD 00 5B 9D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 92 [00:17:50]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:17:50]wFMCommunicate OK [00:17:50]wFMCommunicate request_size=4 [00:17:50]MH_SAM_APDU [00:17:50]CAPDU: 80 17 00 00 [00:17:50]Write to MH i2c: E2 08 00 5C 9D 80 17 00 00 00 00 00 00 79 [00:17:50]Write i2c OK [00:17:50]MH_I2C_Read... [00:17:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:50]Read from MH i2c: E2 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: E2 FD 00 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: E2 FD 00 5C 9D 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 36 [00:17:50]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:17:50]wFMCommunicate OK [00:17:50]wFMCommunicate request_size=4 [00:17:50]MH_SAM_APDU [00:17:50]CAPDU: 80 17 00 00 [00:17:50]Write to MH i2c: E2 08 00 5D 9D 80 17 00 00 00 00 00 00 7A [00:17:50]Write i2c OK [00:17:50]MH_I2C_Read... [00:17:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:50]Read from MH i2c: E2 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: E2 FD 00 [00:17:50]MH_I2C_Read... [00:17:50]Read from MH i2c: E2 FD 00 5D 9D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 ED [00:17:50]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:17:50]wFMCommunicate OK [00:17:50]wFMCommunicate request_size=4 [00:17:50]MH_SAM_APDU [00:17:50]CAPDU: 80 17 00 00 [00:17:50]Write to MH i2c: E2 08 00 5E 9D 80 17 00 00 00 00 00 00 7B [00:17:50]Write i2c OK [00:17:50]MH_I2C_Read... [00:17:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:17:51]Read from MH i2c: E2 [00:17:51]MH_I2C_Read... [00:17:51]Read from MH i2c: E2 CD 00 [00:17:51]MH_I2C_Read... [00:17:51]Read from MH i2c: E2 CD 00 5E 9D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [00:17:51]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:51]wFMCommunicate OK [00:17:51]SAM_PROTO_GetShiftData done [00:17:51]requested_item shift.sale.total_cash is exist - process it [00:17:51]requested_item shift.sale_refund.total is exist - process it [00:17:51]requested_item shift.sale_refund.total_cash is exist - process it [00:17:51]requested_item shift.buy.total is exist - process it [00:17:51]requested_item shift.buy.total_cash is exist - process it [00:17:51]produce_requested_data done [00:17:51]produce_requested_data return {"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:17:51]process_action_free get_value [00:17:51]json_value_free [00:17:51]json_value_free done [00:17:51]process_json_proto returns [00:17:51]Send response to host [00:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:17:51]free response buf [00:17:51]execute_script done [00:17:51]execute_script returns [00:17:51]free content buf [00:17:51]Sock 10.Close socket [00:17:51]Sock 10.Thread stoped [00:17:51]accept exits with 8 [00:17:51]New connection [00:17:51]New thread 3066805604 created [00:17:51]Thread 3066662244 joined [00:17:51]Waiting for new connection... [00:17:51] Sock 8.Parse request [00:17:51]Sock 8.Check first char [00:17:51]Sock 8.First char is OK [00:17:51]request: POST /json_proto HTTP/1.0 [00:17:51]Method: POST [00:17:51]URL: /json_proto [00:17:51]Method is POST - this is cgi request [00:17:51]url: /json_proto [00:17:51]query_string will be loaded in cgi processing [00:17:51]execute_cgi json_proto POST (null) [00:17:51]execute_cgi path=json_proto method=POST [00:17:51]POST find Content-Length [00:17:51]Host: 172.17.39.131:8080 [00:17:51]Content-Length: 331 [00:17:51]Content-Type: application/json [00:17:51] [00:17:51]POST finish read [00:17:51]Found Content-Length = 331 [00:17: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" ] } } [00:17:51]execute_script... [00:17: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" ] } } [00:17:51]POST & json_proto [00:17:51]process_json_proto [00:17:51]json parsed OK: [00:17:51]protocol is kg_v1.0 [00:17:51]action value=get_value [00:17:51]process_action get_value [00:17:51]cmd_get_value [00:17:51]process_action get_value done [00:17:51]requested_data is exist [00:17:51]produce_requested_data [00:17:51]requested_item fm.sale.total is exist - process it [00:17:51]SAM_PROTO_GetFMData [00:17:51]wFMCommunicate request_size=4 [00:17:51]MH_SAM_APDU [00:17:51]CAPDU: 80 13 03 00 [00:17:51]Write to MH i2c: E2 08 00 5F 9D 80 13 03 00 00 00 00 00 7B [00:17:51]Write i2c OK [00:17:51]MH_I2C_Read... [00:17:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:51]Read from MH i2c: E2 [00:17:51]MH_I2C_Read... [00:17:51]Read from MH i2c: E2 FD 00 [00:17:51]MH_I2C_Read... [00:17:51]Read from MH i2c: E2 FD 00 5F 9D 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 C4 [00:17:51]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:17:51]wFMCommunicate OK [00:17:51]wFMCommunicate request_size=4 [00:17:51]MH_SAM_APDU [00:17:51]CAPDU: 80 17 00 00 [00:17:51]Write to MH i2c: E2 08 00 60 9D 80 17 00 00 00 00 00 00 7D [00:17:51]Write i2c OK [00:17:51]MH_I2C_Read... [00:17:52]OFD Sender: No OFD packet to send [00:17:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:52]Read from MH i2c: E2 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 FD 00 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 FD 00 60 9D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 25 [00:17:52]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:17:52]wFMCommunicate OK [00:17:52]wFMCommunicate request_size=4 [00:17:52]MH_SAM_APDU [00:17:52]CAPDU: 80 17 00 00 [00:17:52]Write to MH i2c: E2 08 00 61 9D 80 17 00 00 00 00 00 00 7E [00:17:52]Write i2c OK [00:17:52]MH_I2C_Read... [00:17:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:52]Read from MH i2c: E2 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 FD 00 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 FD 00 61 9D 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 1E [00:17:52]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:17:52]wFMCommunicate OK [00:17:52]wFMCommunicate request_size=4 [00:17:52]MH_SAM_APDU [00:17:52]CAPDU: 80 17 00 00 [00:17:52]Write to MH i2c: E2 08 00 62 9D 80 17 00 00 00 00 00 00 7F [00:17:52]Write i2c OK [00:17:52]MH_I2C_Read... [00:17:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:52]Read from MH i2c: E2 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 FD 00 [00:17:52]MH_I2C_Read... [00:17:52]Read from MH i2c: E2 FD 00 62 9D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 04 [00:17:52]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:17:53]wFMCommunicate OK [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 17 00 00 [00:17:53]Write to MH i2c: E2 08 00 63 9D 80 17 00 00 00 00 00 00 80 [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 DE 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 DE 00 63 9D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [00:17:53]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:53]wFMCommunicate OK [00:17:53]SAM_PROTO_GetFMData done [00:17:53]requested_item fm.sale_refund.total is exist - process it [00:17:53]requested_item fm.buy.total is exist - process it [00:17:53]requested_item shift.sale.total is exist - process it [00:17:53]SAM_PROTO_GetShiftData [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 13 02 00 [00:17:53]Write to MH i2c: E2 08 00 64 9D 80 13 02 00 00 00 00 00 7F [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 FD 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 FD 00 64 9D 00 B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 83 [00:17:53]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:17:54]wFMCommunicate OK [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 17 00 00 [00:17:54]Write to MH i2c: E2 08 00 65 9D 80 17 00 00 00 00 00 00 82 [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:54]Read from MH i2c: E2 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 65 9D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 9C [00:17:54]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:17:54]wFMCommunicate OK [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 17 00 00 [00:17:54]Write to MH i2c: E2 08 00 66 9D 80 17 00 00 00 00 00 00 83 [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:54]Read from MH i2c: E2 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 66 9D 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 40 [00:17:54]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:17:54]wFMCommunicate OK [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 17 00 00 [00:17:54]Write to MH i2c: E2 08 00 67 9D 80 17 00 00 00 00 00 00 84 [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 67 9D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F7 [00:17:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:17:55]wFMCommunicate OK [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 17 00 00 [00:17:55]Write to MH i2c: E2 08 00 68 9D 80 17 00 00 00 00 00 00 85 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 CD 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 CD 00 68 9D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 69 [00:17:55]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:55]wFMCommunicate OK [00:17:55]SAM_PROTO_GetShiftData done [00:17:55]requested_item shift.sale.total_cash is exist - process it [00:17:55]requested_item shift.sale_refund.total is exist - process it [00:17:55]requested_item shift.sale_refund.total_cash is exist - process it [00:17:55]requested_item shift.buy.total is exist - process it [00:17:55]requested_item shift.buy.total_cash is exist - process it [00:17:55]produce_requested_data done [00:17:55]produce_requested_data return {"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:17:55]process_action_free get_value [00:17:55]json_value_free [00:17:55]json_value_free done [00:17:55]process_json_proto returns [00:17:55]Send response to host [00:17:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:17:55]free response buf [00:17:55]execute_script done [00:17:55]execute_script returns [00:17:55]free content buf [00:17:55]Sock 8.Close socket [00:17:55]Sock 8.Thread stoped [00:17:55]accept exits with 9 [00:17:55]New connection [00:17:55]New thread 3066662244 created [00:17:55]Thread 3066805604 joined [00:17:55]Waiting for new connection... [00:17:55] Sock 9.Parse request [00:17:55]Sock 9.Check first char [00:17:55]Sock 9.First char is OK [00:17:55]request: POST /json_proto HTTP/1.0 [00:17:55]Method: POST [00:17:55]URL: /json_proto [00:17:55]Method is POST - this is cgi request [00:17:55]url: /json_proto [00:17:55]query_string will be loaded in cgi processing [00:17:55]execute_cgi json_proto POST (null) [00:17:55]execute_cgi path=json_proto method=POST [00:17:55]POST find Content-Length [00:17:55]Host: 172.17.39.131:8080 [00:17:55]Content-Length: 281 [00:17:55]Content-Type: application/json [00:17:55] [00:17:55]POST finish read [00:17:55]Found Content-Length = 281 [00:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:55]execute_script... [00:17:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:55]POST & json_proto [00:17:55]process_json_proto [00:17:55]json parsed OK: [00:17:55]protocol is kg_v1.0 [00:17:55]action value=x_report [00:17:55]process_action x_report [00:17:55]cmd_x_report [00:17:55]MH_GetDate [00:17:55]Write to MH i2c: F0 00 00 69 9D F5 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: F0 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: F0 09 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: F0 09 00 69 9D 00 C1 E3 1A 67 86 57 24 65 89 [00:17:55]GetLastDocTimeStamp 1729815452 [00:17:55]current date 1729815489 [00:17:55]FM_GetShiftState [00:17:55]SAM_PROTO_GetShiftState [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 13 01 00 [00:17:55]Write to MH i2c: E2 08 00 6A 9D 80 13 01 00 00 00 00 00 84 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 0E 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 0E 00 6A 9D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 AE [00:17:55]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:17:55]wFMCommunicate OK [00:17:55]SAM_PROTO_GetShiftState done [00:17:55]FM_GetShiftState done [00:17:55]KKMCreateXReportDocument [00:17:55]Load OK [00:17:55]Malloc new data [00:17:55]MH_GetDate [00:17:55]Write to MH i2c: F0 00 00 6B 9D F7 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: F0 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: F0 09 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: F0 09 00 6B 9D 00 C1 E3 1A 67 86 57 24 65 8B [00:17:55]Malloc new data [00:17:55]Malloc new data [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 11 00 00 [00:17:55]Write to MH i2c: E2 08 00 6C 9D 80 11 00 00 00 00 00 00 83 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 17 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 17 00 6C 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DB [00:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:17:56]wFMCommunicate OK [00:17:56]SAM_PROTO_GetFieldsCounters [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 13 00 00 [00:17:56]Write to MH i2c: E2 08 00 6D 9D 80 13 00 00 00 00 00 00 86 [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 62 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 62 00 6D 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [00:17:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:56]wFMCommunicate OK [00:17:56]SAM_PROTO_GetFieldsCounters done [00:17:56]Malloc new data [00:17:56]Malloc new data [00:17:56]Malloc new data [00:17:56]KKMCreateXReportDocument OK [00:17:56]KKMSetXReportData OK [00:17:56]KKMPrepareXReportFMData [00:17:56]SAM_PROTO_GetShiftData [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 13 02 00 [00:17:56]Write to MH i2c: E2 08 00 6E 9D 80 13 02 00 00 00 00 00 89 [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 6E 9D 00 B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 8D [00:17:56]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:17:56]wFMCommunicate OK [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 17 00 00 [00:17:57]Write to MH i2c: E2 08 00 6F 9D 80 17 00 00 00 00 00 00 8C [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]OFD Sender: No OFD packet to send [00:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 FD 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 FD 00 6F 9D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 A6 [00:17:57]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 17 00 00 [00:17:57]Write to MH i2c: E2 08 00 70 9D 80 17 00 00 00 00 00 00 8D [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 FD 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 FD 00 70 9D 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 4A [00:17:57]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=4 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 17 00 00 [00:17:58]Write to MH i2c: E2 08 00 71 9D 80 17 00 00 00 00 00 00 8E [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 71 9D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 01 [00:17:58]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=4 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 17 00 00 [00:17:58]Write to MH i2c: E2 08 00 72 9D 80 17 00 00 00 00 00 00 8F [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 CD 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 CD 00 72 9D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 73 [00:17:58]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:58]wFMCommunicate OK [00:17:58]SAM_PROTO_GetShiftData done [00:17:58]1194 (1196) - счетчики итогов смены [00:17:58] 1134 (4) - 227 - количество чеков со всеми признаками расчетов [00:17:58] 1129 (157) - счетчики операций «приход» [00:17:58] 1135 (4) - 227 - количество чеков по признаку расчетов [00:17:58] 1201 (4) - 306262.37 - общая итоговая сумма в чеках [00:17:58] 1136 (3) - 150638.00 - итоговая сумма в чеках наличными [00:17:58] 1138 (3) - 155624.37 - итоговая сумма в чеках безналичными [00:17:58] 1024 (123) - суммы налогов [00:17:58] 1006 (9) - суммы НДС [00:17:59] 1010 (1) - 0% - код ставки НДС [00:17:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:59] 1006 (12) - суммы НДС [00:17:59] 1010 (1) - 12% - код ставки НДС [00:17:59] 1011 (3) - 32529.40 - сумма НДС по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (12) - суммы НСП [00:17:59] 1014 (1) - 1% - код ставки НСП [00:17:59] 1015 (3) - 2710.77 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 2% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 3% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 5% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 1,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1130 (141) - счетчики операций «возврат прихода» [00:17:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:17:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:17:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:17:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:17:59] 1024 (117) - суммы налогов [00:17:59] 1006 (9) - суммы НДС [00:17:59] 1010 (1) - 0% - код ставки НДС [00:17:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:59] 1006 (9) - суммы НДС [00:17:59] 1010 (1) - 12% - код ставки НДС [00:17:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 1% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 2% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 3% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 5% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 1,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1131 (141) - счетчики операций «расход» [00:17:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:17:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:17:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:17:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:17:59] 1024 (117) - суммы налогов [00:17:59] 1006 (9) - суммы НДС [00:17:59] 1010 (1) - 0% - код ставки НДС [00:17:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:59] 1006 (9) - суммы НДС [00:17:59] 1010 (1) - 12% - код ставки НДС [00:17:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 1% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 2% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 3% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 5% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 1,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1132 (141) - счетчики операций «возврат расхода» [00:17:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:17:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:17:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:17:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:17:59] 1024 (117) - суммы налогов [00:17:59] 1006 (9) - суммы НДС [00:17:59] 1010 (1) - 0% - код ставки НДС [00:17:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:59] 1006 (9) - суммы НДС [00:17:59] 1010 (1) - 12% - код ставки НДС [00:17:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 1% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 2% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 3% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 5% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 0,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1007 (9) - суммы НСП [00:17:59] 1014 (1) - 1,50% - код ставки НСП [00:17:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:59] 1133 (588) - - счетчики коррекции - не используются [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1194 (04AA) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1134 (046E) [00:17:59]Malloc new data [00:17:59]Processing tag 1129 (0469) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1135 (046F) [00:17:59]Malloc new data [00:17:59]Processing tag 1201 (04B1) [00:17:59]Malloc new data [00:17:59]Processing tag 1136 (0470) [00:17:59]Malloc new data [00:17:59]Processing tag 1138 (0472) [00:17:59]Malloc new data [00:17:59]Processing tag 1024 (0400) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]SetTLVBufToDocument err=0 [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1130 (046A) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1135 (046F) [00:17:59]Malloc new data [00:17:59]Processing tag 1201 (04B1) [00:17:59]Malloc new data [00:17:59]Processing tag 1136 (0470) [00:17:59]Malloc new data [00:17:59]Processing tag 1138 (0472) [00:17:59]Malloc new data [00:17:59]Processing tag 1024 (0400) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]SetTLVBufToDocument err=0 [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1131 (046B) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1135 (046F) [00:17:59]Malloc new data [00:17:59]Processing tag 1201 (04B1) [00:17:59]Malloc new data [00:17:59]Processing tag 1136 (0470) [00:17:59]Malloc new data [00:17:59]Processing tag 1138 (0472) [00:17:59]Malloc new data [00:17:59]Processing tag 1024 (0400) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]SetTLVBufToDocument err=0 [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1132 (046C) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1135 (046F) [00:17:59]Malloc new data [00:17:59]Processing tag 1201 (04B1) [00:17:59]Malloc new data [00:17:59]Processing tag 1136 (0470) [00:17:59]Malloc new data [00:17:59]Processing tag 1138 (0472) [00:17:59]Malloc new data [00:17:59]Processing tag 1024 (0400) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1006 (03EE) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1010 (03F2) [00:17:59]Malloc new data [00:17:59]Processing tag 1011 (03F3) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:17:59]SetTLVBufToDocument [00:17:59]Processing tag 1014 (03F6) [00:17:59]Malloc new data [00:17:59]Processing tag 1015 (03F7) [00:17:59]Malloc new data [00:17:59]SetTLVBufToDocument err=0 [00:17:59]Processing tag 1007 (03EF) [00:17:59]Load OK [00:18:00]SetTLVBufToDocument [00:18:00]Processing tag 1014 (03F6) [00:18:00]Malloc new data [00:18:00]Processing tag 1015 (03F7) [00:18:00]Malloc new data [00:18:00]SetTLVBufToDocument err=0 [00:18:00]Processing tag 1007 (03EF) [00:18:00]Load OK [00:18:00]SetTLVBufToDocument [00:18:00]Processing tag 1014 (03F6) [00:18:00]Malloc new data [00:18:00]Processing tag 1015 (03F7) [00:18:00]Malloc new data [00:18:00]SetTLVBufToDocument err=0 [00:18:00]Processing tag 1007 (03EF) [00:18:00]Load OK [00:18:00]SetTLVBufToDocument [00:18:00]Processing tag 1014 (03F6) [00:18:00]Malloc new data [00:18:00]Processing tag 1015 (03F7) [00:18:00]Malloc new data [00:18:00]SetTLVBufToDocument err=0 [00:18:00]Processing tag 1007 (03EF) [00:18:00]Load OK [00:18:00]SetTLVBufToDocument [00:18:00]Processing tag 1014 (03F6) [00:18:00]Malloc new data [00:18:00]Processing tag 1015 (03F7) [00:18:00]Malloc new data [00:18:00]SetTLVBufToDocument err=0 [00:18:00]Processing tag 1007 (03EF) [00:18:00]Load OK [00:18:00]SetTLVBufToDocument [00:18:00]Processing tag 1014 (03F6) [00:18:00]Malloc new data [00:18:00]Processing tag 1015 (03F7) [00:18:00]Malloc new data [00:18:00]SetTLVBufToDocument err=0 [00:18:00]Processing tag 1007 (03EF) [00:18:00]Load OK [00:18:00]SetTLVBufToDocument [00:18:00]Processing tag 1014 (03F6) [00:18:00]Malloc new data [00:18:00]Processing tag 1015 (03F7) [00:18:00]Malloc new data [00:18:00]SetTLVBufToDocument err=0 [00:18:00]SetTLVBufToDocument err=0 [00:18:00]SetTLVBufToDocument err=0 [00:18:00]Processing tag 1133 (046D) [00:18:00]Malloc new data [00:18:00]SetTLVBufToDocument err=0 [00:18:00]SetTLVBufToDocument err=0 [00:18:00]Malloc new data [00:18:00]SAM_PROTO_GetFMData [00:18:00]wFMCommunicate request_size=4 [00:18:00]MH_SAM_APDU [00:18:00]CAPDU: 80 13 03 00 [00:18:00]Write to MH i2c: E2 08 00 73 9D 80 13 03 00 00 00 00 00 8F [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:00]Read from MH i2c: E2 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 FD 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 FD 00 73 9D 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 D8 [00:18:00]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:18:00]wFMCommunicate OK [00:18:00]wFMCommunicate request_size=4 [00:18:00]MH_SAM_APDU [00:18:00]CAPDU: 80 17 00 00 [00:18:00]Write to MH i2c: E2 08 00 74 9D 80 17 00 00 00 00 00 00 91 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 FD 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 FD 00 74 9D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 39 [00:18:01]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=4 [00:18:01]MH_SAM_APDU [00:18:01]CAPDU: 80 17 00 00 [00:18:01]Write to MH i2c: E2 08 00 75 9D 80 17 00 00 00 00 00 00 92 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 FD 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 FD 00 75 9D 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 32 [00:18:01]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:18:02]wFMCommunicate OK [00:18:02]wFMCommunicate request_size=4 [00:18:02]MH_SAM_APDU [00:18:02]CAPDU: 80 17 00 00 [00:18:02]Write to MH i2c: E2 08 00 76 9D 80 17 00 00 00 00 00 00 93 [00:18:02]Write i2c OK [00:18:02]MH_I2C_Read... [00:18:02]OFD Sender: No OFD packet to send [00:18:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:02]Read from MH i2c: E2 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 FD 00 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 FD 00 76 9D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 18 [00:18:02]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:18:02]wFMCommunicate OK [00:18:02]wFMCommunicate request_size=4 [00:18:02]MH_SAM_APDU [00:18:02]CAPDU: 80 17 00 00 [00:18:02]Write to MH i2c: E2 08 00 77 9D 80 17 00 00 00 00 00 00 94 [00:18:02]Write i2c OK [00:18:02]MH_I2C_Read... [00:18:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:18:02]Read from MH i2c: E2 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 DE 00 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 DE 00 77 9D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 73 [00:18:03]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:03]wFMCommunicate OK [00:18:03]SAM_PROTO_GetFMData done [00:18:03]FM_GetFMData:85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:04]oper:6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:04]total:E5 DE D4 A6 01 [00:18:04]Malloc new data [00:18:04]oper:6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:04]total:AC FC 51 [00:18:04]Malloc new data [00:18:04]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:04]total: [00:18:04]Malloc new data [00:18:04]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:04]total: [00:18:04]Malloc new data [00:18:04]KKMPrepareXReportFMData err=0 [00:18:04]Х отчет ИНН: 02508201610067 Кассир: Токторалиева Н. 25.10.2024 00:18 Смена: 266 РНМ: 0000000000091691 ЗНМ: 0300000089 СНО: Общий режим Всего чеков: 227 ИТОГИ ПРИХОД Чеков: 227 Общий итог: 306262.37 Итого наличными: 150638.00 Итого безнал.: 155624.37 НДС 0% : 0.00 НДС 12% : 32529.40 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2710.77 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 150638.00 НС Приход: 70939358.45 НС Возвр.Прихода: 53731.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871795 [00:18:04]StoreToDocumentArchive [00:18:04]MH_GetDate [00:18:04]Write to MH i2c: F0 00 00 78 9D 04 [00:18:04]Write i2c OK [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: F0 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: F0 09 00 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: F0 09 00 78 9D 00 CA E3 1A 67 86 57 24 65 A1 [00:18:04]shift 266 fd 1729815498 [00:18:04]Create dir for shift 0266 [00:18:04]save to /storage/0266/doc_1729815498 [00:18:04]save last doc name /storage/0266/doc_1729815498 to /storage/kkm_last_doc_name [00:18:04]save OK [00:18:04]Clear old archive folders... [00:18:04]NVStorageSaveData kkm_last_timestamp [00:18:04]File name is /storage/kkm_last_timestamp [00:18:04]Write 4 bytes [00:18:04]NVStorageSaveData done [00:18:04]ExternCall_PrintAddStr [00:18:04]wPrintStart [00:18:04]Write to MH i2c: 01 00 00 79 9D 16 [00:18:04]Write i2c OK [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: 01 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: 01 07 00 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: 01 07 00 79 9D 00 00 00 00 00 FF 0F 2B [00:18:04]RasterBufferAndPrint [00:18:04]line Х отчет [00:18:04]line ИНН: 02508201610067 [00:18:04]line Кассир: Токторалиева Н. [00:18:04]line 25.10.2024 00:18 [00:18:04]line Смена: 266 [00:18:04]line РНМ: 0000000000091691 [00:18:04]line ЗНМ: 0300000089 [00:18:04]line СНО: Общий режим [00:18:04]line Всего чеков: 227 [00:18:04]line ИТОГИ ПРИХОД [00:18:04]line Чеков: 227 [00:18:04]line Общий итог: 306262.37 [00:18:04]line Итого наличными: 150638.00 [00:18:04]line Итого безнал.: 155624.37 [00:18:04]line НДС 0% : 0.00 [00:18:04]line НДС 12% : 32529.40 [00:18:04]line НСП 0% : 0.00 [00:18:04]line НСП 1,50% : 0.00 [00:18:04]line НСП 0,50% : 0.00 [00:18:04]line НСП 5% : 0.00 [00:18:04]line НСП 3% : 0.00 [00:18:04]line НСП 2% : 0.00 [00:18:04]line НСП 1% : 2710.77 [00:18:04]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:18:04]line Чеков: 0 [00:18:04]line Общий итог: 0.00 [00:18:04]line Итого наличными: 0.00 [00:18:04]line Итого безнал.: 0.00 [00:18:04]line НДС 0% : 0.00 [00:18:04]line НДС 12% : 0.00 [00:18:04]line НСП 0% : 0.00 [00:18:04]line НСП 1,50% : 0.00 [00:18:04]line НСП 0,50% : 0.00 [00:18:04]line НСП 5% : 0.00 [00:18:04]line НСП 3% : 0.00 [00:18:04]line НСП 2% : 0.00 [00:18:04]line НСП 1% : 0.00 [00:18:04]line ИТОГИ РАСХОД [00:18:04]line Чеков: 0 [00:18:04]line Общий итог: 0.00 [00:18:04]line Итого наличными: 0.00 [00:18:04]line Итого безнал.: 0.00 [00:18:04]line НДС 0% : 0.00 [00:18:04]line НДС 12% : 0.00 [00:18:04]line НСП 0% : 0.00 [00:18:04]line НСП 1,50% : 0.00 [00:18:04]line НСП 0,50% : 0.00 [00:18:04]line НСП 5% : 0.00 [00:18:04]line НСП 3% : 0.00 [00:18:04]line НСП 2% : 0.00 [00:18:04]line НСП 1% : 0.00 [00:18:04]line ИТОГИ ВОЗВРАТ РАСХОДА [00:18:04]line Чеков: 0 [00:18:04]line Общий итог: 0.00 [00:18:04]line Итого наличными: 0.00 [00:18:04]line Итого безнал.: 0.00 [00:18:04]line НДС 0% : 0.00 [00:18:04]line НДС 12% : 0.00 [00:18:04]line НСП 0% : 0.00 [00:18:04]line НСП 1,50% : 0.00 [00:18:04]line НСП 0,50% : 0.00 [00:18:04]line НСП 5% : 0.00 [00:18:04]line НСП 3% : 0.00 [00:18:04]line НСП 2% : 0.00 [00:18:04]line НСП 1% : 0.00 [00:18:04]line Сумма внесений: 0.00 [00:18:04]line Сумма выплат: 0.00 [00:18:04]line Нал. в кассе: 150638.00 [00:18:04]line НС Приход: 70939358.45 [00:18:04]line НС Возвр.Прихода: 53731.00 [00:18:04]line НС Расход: 0.00 [00:18:04]line НС Возвр.Расхода: 0.00 [00:18:04]line ФМ: 0000000000871795 [00:18:04]written 0, free lines is 4095 [00:18:05]Write to MH i2c: 01 00 00 C4 9D 61 [00:18:05]Write i2c OK [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: 01 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: 01 07 00 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: 01 07 00 C4 9D 00 00 00 00 00 88 0A FA [00:18:05]RasterBufferAndPrint [00:18:05]line [00:18:05]line [00:18:05]line [00:18:05]line [00:18:05]line [00:18:05]written 0, free lines is 2730 [00:18:05]MH_Cut [00:18:05]Write to MH i2c: D1 01 00 CB 9D 01 3A [00:18:05]Write i2c OK [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: D1 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: D1 01 00 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: D1 01 00 CB 9D 00 39 [00:18:05]Write to MH i2c: 01 00 00 CC 9D 69 [00:18:05]Write i2c OK [00:18:05]MH_I2C_Read... [00:18:06]*** Cut start [00:18:06]*** Partial cut [00:18:06]*** CUTSNS_PIN = 1 [00:18:06]*** CUTSNS_PIN = 0 [00:18:06]*** Brake cut motor [00:18:07]Read from MH i2c: 01 [00:18:07]MH_I2C_Read... [00:18:07]*** Stop cut motor [00:18:07]*** Cut end [00:18:07]Read from MH i2c: 01 07 00 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: 01 07 00 CC 9D 00 00 00 00 00 FF 0F 7E [00:18:07]process_action x_report done [00:18:07]requested_data is exist [00:18:07]produce_requested_data [00:18:07]requested_item fd.num is exist - process it [00:18:07]SAM_PROTO_GetFieldsCounters [00:18:07]wFMCommunicate request_size=4 [00:18:07]MH_SAM_APDU [00:18:07]CAPDU: 80 13 00 00 [00:18:07]Write to MH i2c: E2 08 00 CD 9D 80 13 00 00 00 00 00 00 E6 [00:18:07]Write i2c OK [00:18:07]MH_I2C_Read... [00:18:07]OFD Sender: No OFD packet to send [00:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:07]Read from MH i2c: E2 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 62 00 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 62 00 CD 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [00:18:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:07]wFMCommunicate OK [00:18:07]SAM_PROTO_GetFieldsCounters done [00:18:07]requested_item shift.num is exist - process it [00:18:07]requested_item shift.opened is exist - process it [00:18:07]req_shift_opened [00:18:07]FM_GetShiftState [00:18:07]SAM_PROTO_GetShiftState [00:18:07]wFMCommunicate request_size=4 [00:18:07]MH_SAM_APDU [00:18:07]CAPDU: 80 13 01 00 [00:18:07]Write to MH i2c: E2 08 00 CE 9D 80 13 01 00 00 00 00 00 E8 [00:18:07]Write i2c OK [00:18:07]MH_I2C_Read... [00:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:07]Read from MH i2c: E2 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 0E 00 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 0E 00 CE 9D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 12 [00:18:07]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:18:07]wFMCommunicate OK [00:18:07]SAM_PROTO_GetShiftState done [00:18:07]FM_GetShiftState done [00:18:07]req_shift_opened done [00:18:07]requested_item shift.open_date is exist - process it [00:18:07]req_shift_open_date [00:18:07]req_shift_open_date done [00:18:07]produce_requested_data done [00:18:07]produce_requested_data return {"fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:18:07]process_action_free x_report [00:18:07]json_value_free [00:18:07]json_value_free done [00:18:07]process_json_proto returns [00:18:07]Send response to host [00:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:18:07]free response buf [00:18:07]execute_script done [00:18:07]execute_script returns [00:18:07]free content buf [00:18:07]Sock 9.Close socket [00:18:07]Sock 9.Thread stoped [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:22]accept exits with 8 [00:18:22]New connection [00:18:22]New thread 3066805604 created [00:18:22]Thread 3066662244 joined [00:18:22]Waiting for new connection... [00:18:22] Sock 8.Parse request [00:18:22]Sock 8.Check first char [00:18:22]Sock 8.First char is OK [00:18:22]request: POST /json_proto HTTP/1.0 [00:18:22]Method: POST [00:18:22]URL: /json_proto [00:18:22]Method is POST - this is cgi request [00:18:22]url: /json_proto [00:18:22]query_string will be loaded in cgi processing [00:18:22]execute_cgi json_proto POST (null) [00:18:22]execute_cgi path=json_proto method=POST [00:18:22]POST find Content-Length [00:18:22]Host: 172.17.39.131:8080 [00:18:22]Content-Length: 215 [00:18:22]Content-Type: application/json [00:18:22] [00:18:22]POST finish read [00:18:22]Found Content-Length = 215 [00:18: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" ] } } [00:18:22]execute_script... [00:18: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" ] } } [00:18:22]POST & json_proto [00:18:22]process_json_proto [00:18:22]json parsed OK: [00:18:22]protocol is kg_v1.0 [00:18:22]action value=get_value [00:18:22]process_action get_value [00:18:22]cmd_get_value [00:18:22]process_action get_value done [00:18:22]requested_data is exist [00:18:22]produce_requested_data [00:18:22]requested_item kkm.sn is exist - process it [00:18:22]requested_item kkm.ver is exist - process it [00:18:22]requested_item fm.sn is exist - process it [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 11 00 00 [00:18:22]Write to MH i2c: E2 08 00 CF 9D 80 11 00 00 00 00 00 00 E6 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 17 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 17 00 CF 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3E [00:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:18:22]wFMCommunicate OK [00:18:22]requested_item fd.num is exist - process it [00:18:22]SAM_PROTO_GetFieldsCounters [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 13 00 00 [00:18:22]Write to MH i2c: E2 08 00 D0 9D 80 13 00 00 00 00 00 00 E9 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:22]Read from MH i2c: E2 62 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 62 00 D0 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [00:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:23]wFMCommunicate OK [00:18:23]SAM_PROTO_GetFieldsCounters done [00:18:23]requested_item shift.num is exist - process it [00:18:23]requested_item shift.opened is exist - process it [00:18:23]req_shift_opened [00:18:23]FM_GetShiftState [00:18:23]SAM_PROTO_GetShiftState [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 13 01 00 [00:18:23]Write to MH i2c: E2 08 00 D1 9D 80 13 01 00 00 00 00 00 EB [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 0E 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 0E 00 D1 9D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 15 [00:18:23]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:18:23]wFMCommunicate OK [00:18:23]SAM_PROTO_GetShiftState done [00:18:23]FM_GetShiftState done [00:18:23]req_shift_opened done [00:18:23]requested_item shift.open_date is exist - process it [00:18:23]req_shift_open_date [00:18:23]req_shift_open_date done [00:18:23]produce_requested_data done [00:18:23]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801} [00:18:23]process_action_free get_value [00:18:23]json_value_free [00:18:23]json_value_free done [00:18:23]process_json_proto returns [00:18:23]Send response to host [00:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":74783,"shift.num":510,"shift.opened":1,"shift.open_date":1729729801}}} [00:18:23]free response buf [00:18:23]execute_script done [00:18:23]execute_script returns [00:18:23]free content buf [00:18:23]Sock 8.Close socket [00:18:23]Sock 8.Thread stoped [00:18:23]accept exits with 9 [00:18:23]New connection [00:18:23]New thread 3066662244 created [00:18:23]Thread 3066805604 joined [00:18:23]Waiting for new connection... [00:18:23] Sock 9.Parse request [00:18:23]Sock 9.Check first char [00:18:23]Sock 9.First char is OK [00:18:23]request: POST /json_proto HTTP/1.0 [00:18:23]Method: POST [00:18:23]URL: /json_proto [00:18:23]Method is POST - this is cgi request [00:18:23]url: /json_proto [00:18:23]query_string will be loaded in cgi processing [00:18:23]execute_cgi json_proto POST (null) [00:18:23]execute_cgi path=json_proto method=POST [00:18:23]POST find Content-Length [00:18:23]Host: 172.17.39.131:8080 [00:18:23]Content-Length: 331 [00:18:23]Content-Type: application/json [00:18:23] [00:18:23]POST finish read [00:18:23]Found Content-Length = 331 [00:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:23]execute_script... [00:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:23]POST & json_proto [00:18:23]process_json_proto [00:18:23]json parsed OK: [00:18:23]protocol is kg_v1.0 [00:18:23]action value=get_value [00:18:23]process_action get_value [00:18:23]cmd_get_value [00:18:23]process_action get_value done [00:18:23]requested_data is exist [00:18:23]produce_requested_data [00:18:23]requested_item fm.sale.total is exist - process it [00:18:23]SAM_PROTO_GetFMData [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 13 03 00 [00:18:23]Write to MH i2c: E2 08 00 D2 9D 80 13 03 00 00 00 00 00 EE [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 D2 9D 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 *** FLAG_PRN_KEY set [00:18:23]01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 37 [00:18:23]RAPDU: int [00:18:23]C1 Write to MH i2c: 04 01 85 00 04 00 BD D3 04 9D 6E 70 04 [00:18:23]04 00 23 20 01 00 69 04 A3 Write i2c OK [00:18:23]00 MH_I2C_Read... [00:18:23]6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 Read from MH i2c: 05 01 00 [00:18:23]B0 MH_I2C_Read... [00:18:23]3D Read from MH i2c: 0A 01 61 07 01 00 72 [00:18:23]04 MH_I2C_Read... [00:18:23]04 00 35 A1 Read from MH i2c: CA 01 45 07 00 00 04 D3 7D 9D 00 00 EE 08 03 00 09 00 00 00 F2 FF 03 0F 01 8D 00 [00:18:23]00 state=0 [00:18:23]F3 Key pressed [00:18:23]03 Feed [00:18:23]00 Write to MH i2c: 00 D8 EE 00 03 00 0D D4 00 9D F2 48 03 [00:18:23]01 00 01 F3 03 04 00 4A 75 EA 2C EF 03 09 00 F6 03 01 00 Write i2c OK [00:18:23]00 MH_I2C_Read... [00:18:23]F7 Read from MH i2c: 03 D8 00 [00:18:23]00 MH_I2C_Read... [00:18:23]EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE Read from MH i2c: 03 D8 EF 01 03 00 09 [00:18:23]00 MH_I2C_Read... [00:18:23]F6 Read from MH i2c: 03 D8 01 01 00 00 02 D4 F7 9D *** FLAG_PRN_KEY reset [00:18:23]00 03 49 00 [00:18:23]00 int line is 0 - check status [00:18:23]EF Write to MH i2c: 03 01 09 00 00 00 F6 03 D5 01 9D 00 72 03 [00:18:23]F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:18:23]03 MH_I2C_Read... [00:18:23]01 00 04 Read from MH i2c: F7 01 03 [00:18:23]00 MH_I2C_Read... [00:18:23]00 EF 03 09 00 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 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 *** FLAG_PRN_KEY set [00:18:24]F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FF B4 08 EF 03 09 00 F6 03 90 00 [00:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Read from MH i2c: 01 07 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 D5 9D 00 00 00 00 00 F9 0F 81 [00:18:24]state=2 [00:18:24]Stop feed [00:18:24]int line is 0 - check status [00:18:24]Write to MH i2c: 01 00 00 D6 9D 73 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 D6 9D 00 08 00 00 00 FF 0F 90 [00:18:24]state=0 [00:18:24]Key pressed [00:18:24]Feed [00:18:24]Write to MH i2c: D8 00 00 D7 9D 4B [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: D8 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: D8 01 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: D8 01 00 D7 9D 00 4C [00:18:24]int line is 0 - check status [00:18:24]Write to MH i2c: 01 00 00 D8 9D 75 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 D8 9D 00 48 00 00 00 3C 00 00 [00:18:24]state=2 [00:18:24]Key pressed [00:18:24]*** FLAG_PRN_KEY reset [00:18:24]int line is 0 - check status [00:18:24]Write to MH i2c: 01 00 00 D9 9D 76 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 D9 9D 00 00 00 00 00 F8 0F 84 [00:18:24]state=2 [00:18:24]Stop feed [00:18:24]Write to MH i2c: E2 08 00 DA 9D 80 17 00 00 00 00 00 00 F7 [00:18:24]int [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 DA 9D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 9F [00:18:24]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 Write to MH i2c: 01 00 01 01 00 F7 00 03 DB 02 9D 00 78 C0 [00:18:24]B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 Write i2c OK [00:18:24]EF MH_I2C_Read... [00:18:24]03 Read from MH i2c: 09 01 00 [00:18:24]F6 MH_I2C_Read... [00:18:24]03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 00 07 05 00 F7 [00:18:24]03 MH_I2C_Read... [00:18:24]00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 06 01 F7 07 03 00 00 DB 00 9D 6B 00 04 00 8D 00 00 00 6F 00 04 FF 04 0F 00 8D 00 [00:18:24]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 state=0 [00:18:24]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 DC 9D 80 17 00 00 00 00 00 00 F9 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 DC 9D 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 99 [00:18:25]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 DD 9D 80 17 00 00 00 00 00 00 FA [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 DD 9D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 7F [00:18:25]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 DE 9D 80 17 00 00 00 00 00 00 FB [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 DE 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 DE 00 DE 9D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [00:18:26]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:26]wFMCommunicate OK [00:18:26]SAM_PROTO_GetFMData done [00:18:26]requested_item fm.sale_refund.total is exist - process it [00:18:26]requested_item fm.buy.total is exist - process it [00:18:26]requested_item shift.sale.total is exist - process it [00:18:26]SAM_PROTO_GetShiftData [00:18:26]wFMCommunicate request_size=4 [00:18:26]MH_SAM_APDU [00:18:26]CAPDU: 80 13 02 00 [00:18:26]Write to MH i2c: E2 08 00 DF 9D 80 13 02 00 00 00 00 00 FA [00:18:26]Write i2c OK [00:18:26]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 DF 9D 00 B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 FE [00:18:27]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:18:27]wFMCommunicate OK [00:18:27]wFMCommunicate request_size=4 [00:18:27]MH_SAM_APDU [00:18:27]CAPDU: 80 17 00 00 [00:18:27]Write to MH i2c: E2 08 00 E0 9D 80 17 00 00 00 00 00 00 FD [00:18:27]Write i2c OK [00:18:27]MH_I2C_Read... [00:18:27]OFD Sender: No OFD packet to send [00:18:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:27]Read from MH i2c: E2 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 E0 9D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 17 [00:18: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:18:27]wFMCommunicate OK [00:18:27]wFMCommunicate request_size=4 [00:18:27]MH_SAM_APDU [00:18:27]CAPDU: 80 17 00 00 [00:18:27]Write to MH i2c: E2 08 00 E1 9D 80 17 00 00 00 00 00 00 FE [00:18:27]Write i2c OK [00:18:27]MH_I2C_Read... [00:18:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:27]Read from MH i2c: E2 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 E1 9D 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 BB [00:18:28]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:18:28]wFMCommunicate OK [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 17 00 00 [00:18:28]Write to MH i2c: E2 08 00 E2 9D 80 17 00 00 00 00 00 00 FF [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 E2 9D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 72 [00:18:28]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:18:28]wFMCommunicate OK [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 17 00 00 [00:18:28]Write to MH i2c: E2 08 00 E3 9D 80 17 00 00 00 00 00 00 00 [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 CD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 CD 00 E3 9D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [00:18:29]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:29]wFMCommunicate OK [00:18:29]SAM_PROTO_GetShiftData done [00:18:29]requested_item shift.sale.total_cash is exist - process it [00:18:29]requested_item shift.sale_refund.total is exist - process it [00:18:29]requested_item shift.sale_refund.total_cash is exist - process it [00:18:29]requested_item shift.buy.total is exist - process it [00:18:29]requested_item shift.buy.total_cash is exist - process it [00:18:29]produce_requested_data done [00:18:29]produce_requested_data return {"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:18:29]process_action_free get_value [00:18:29]json_value_free [00:18:29]json_value_free done [00:18:29]process_json_proto returns [00:18:29]Send response to host [00:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:18:29]free response buf [00:18:29]execute_script done [00:18:29]execute_script returns [00:18:29]free content buf [00:18:29]Sock 9.Close socket [00:18:29]Sock 9.Thread stoped [00:18:29]accept exits with 8 [00:18:29]New connection [00:18:29]New thread 3066805604 created [00:18:29]Thread 3066662244 joined [00:18:29]Waiting for new connection... [00:18:29] Sock 8.Parse request [00:18:29]Sock 8.Check first char [00:18:29]Sock 8.First char is OK [00:18:29]request: POST /json_proto HTTP/1.0 [00:18:29]Method: POST [00:18:29]URL: /json_proto [00:18:29]Method is POST - this is cgi request [00:18:29]url: /json_proto [00:18:29]query_string will be loaded in cgi processing [00:18:29]execute_cgi json_proto POST (null) [00:18:29]execute_cgi path=json_proto method=POST [00:18:29]POST find Content-Length [00:18:29]Host: 172.17.39.131:8080 [00:18:29]Content-Length: 331 [00:18:29]Content-Type: application/json [00:18:29] [00:18:29]POST finish read [00:18:29]Found Content-Length = 331 [00:18: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" ] } } [00:18:29]execute_script... [00:18: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" ] } } [00:18:29]POST & json_proto [00:18:29]process_json_proto [00:18:29]json parsed OK: [00:18:29]protocol is kg_v1.0 [00:18:29]action value=get_value [00:18:29]process_action get_value [00:18:29]cmd_get_value [00:18:29]process_action get_value done [00:18:29]requested_data is exist [00:18:29]produce_requested_data [00:18:29]requested_item fm.sale.total is exist - process it [00:18:29]SAM_PROTO_GetFMData [00:18:29]wFMCommunicate request_size=4 [00:18:29]MH_SAM_APDU [00:18:29]CAPDU: 80 13 03 00 [00:18:29]Write to MH i2c: E2 08 00 E4 9D 80 13 03 00 00 00 00 00 00 [00:18:29]Write i2c OK [00:18:29]MH_I2C_Read... [00:18:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 E4 9D 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 49 [00:18:30]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:18:30]wFMCommunicate OK [00:18:30]wFMCommunicate request_size=4 [00:18:30]MH_SAM_APDU [00:18:30]CAPDU: 80 17 00 00 [00:18:30]Write to MH i2c: E2 08 00 E5 9D 80 17 00 00 00 00 00 00 02 [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:30]Read from MH i2c: E2 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 FD 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 FD 00 E5 9D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 AA [00:18:30]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:30]wFMCommunicate OK [00:18:30]wFMCommunicate request_size=4 [00:18:30]MH_SAM_APDU [00:18:30]CAPDU: 80 17 00 00 [00:18:30]Write to MH i2c: E2 08 00 E6 9D 80 17 00 00 00 00 00 00 03 [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 E6 9D 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 A3 [00:18:31]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:18:31]wFMCommunicate OK [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 17 00 00 [00:18:31]Write to MH i2c: E2 08 00 E7 9D 80 17 00 00 00 00 00 00 04 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 E7 9D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 89 [00:18:31]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:18:32]wFMCommunicate OK [00:18:32]wFMCommunicate request_size=4 [00:18:32]MH_SAM_APDU [00:18:32]CAPDU: 80 17 00 00 [00:18:32]Write to MH i2c: E2 08 00 E8 9D 80 17 00 00 00 00 00 00 05 [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:18:32]Read from MH i2c: E2 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: E2 DE 00 [00:18:32]MH_I2C_Read... [00:18:32]OFD Sender: No OFD packet to send [00:18:32]Read from MH i2c: E2 DE 00 E8 9D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [00:18:32]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:32]wFMCommunicate OK [00:18:32]SAM_PROTO_GetFMData done [00:18:32]requested_item fm.sale_refund.total is exist - process it [00:18:32]requested_item fm.buy.total is exist - process it [00:18:32]requested_item shift.sale.total is exist - process it [00:18:32]SAM_PROTO_GetShiftData [00:18:32]wFMCommunicate request_size=4 [00:18:32]MH_SAM_APDU [00:18:32]CAPDU: 80 13 02 00 [00:18:32]Write to MH i2c: E2 08 00 E9 9D 80 13 02 00 00 00 00 00 04 [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:33]Read from MH i2c: E2 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 FD 00 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 FD 00 E9 9D 00 B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 08 [00:18:33]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:18:33]wFMCommunicate OK [00:18:33]wFMCommunicate request_size=4 [00:18:33]MH_SAM_APDU [00:18:33]CAPDU: 80 17 00 00 [00:18:33]Write to MH i2c: E2 08 00 EA 9D 80 17 00 00 00 00 00 00 07 [00:18:33]Write i2c OK [00:18:33]MH_I2C_Read... [00:18:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:33]Read from MH i2c: E2 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 FD 00 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 FD 00 EA 9D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 21 [00:18: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:18:34]wFMCommunicate OK [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 17 00 00 [00:18:34]Write to MH i2c: E2 08 00 EB 9D 80 17 00 00 00 00 00 00 08 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 FD 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 FD 00 EB 9D 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 C5 [00:18:34]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:18:34]wFMCommunicate OK [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 17 00 00 [00:18:34]Write to MH i2c: E2 08 00 EC 9D 80 17 00 00 00 00 00 00 09 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 EC 9D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 7C [00:18:35]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:18:35]wFMCommunicate OK [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 17 00 00 [00:18:35]Write to MH i2c: E2 08 00 ED 9D 80 17 00 00 00 00 00 00 0A [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 CD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 CD 00 ED 9D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EE [00:18:35]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:35]wFMCommunicate OK [00:18:35]SAM_PROTO_GetShiftData done [00:18:35]requested_item shift.sale.total_cash is exist - process it [00:18:35]requested_item shift.sale_refund.total is exist - process it [00:18:35]requested_item shift.sale_refund.total_cash is exist - process it [00:18:35]requested_item shift.buy.total is exist - process it [00:18:35]requested_item shift.buy.total_cash is exist - process it [00:18:35]produce_requested_data done [00:18:35]produce_requested_data return {"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:18:35]process_action_free get_value [00:18:35]json_value_free [00:18:35]json_value_free done [00:18:36]process_json_proto returns [00:18:36]Send response to host [00:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:18:36]free response buf [00:18:36]execute_script done [00:18:36]execute_script returns [00:18:36]free content buf [00:18:36]Sock 8.Close socket [00:18:36]Sock 8.Thread stoped [00:18:36]accept exits with 9 [00:18:36]New connection [00:18:36]New thread 3066662244 created [00:18:36]Thread 3066805604 joined [00:18:36]Waiting for new connection... [00:18:36] Sock 9.Parse request [00:18:36]Sock 9.Check first char [00:18:36]Sock 9.First char is OK [00:18:36]request: POST /json_proto HTTP/1.0 [00:18:36]Method: POST [00:18:36]URL: /json_proto [00:18:36]Method is POST - this is cgi request [00:18:36]url: /json_proto [00:18:36]query_string will be loaded in cgi processing [00:18:36]execute_cgi json_proto POST (null) [00:18:36]execute_cgi path=json_proto method=POST [00:18:36]POST find Content-Length [00:18:36]Host: 172.17.39.131:8080 [00:18:36]Content-Length: 284 [00:18:36]Content-Type: application/json [00:18:36] [00:18:36]POST finish read [00:18:36]Found Content-Length = 284 [00:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:36]execute_script... [00:18:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:36]POST & json_proto [00:18:36]process_json_proto [00:18:36]json parsed OK: [00:18:36]protocol is kg_v1.0 [00:18:36]action value=close_shift [00:18:36]process_action close_shift [00:18:36]cmd_close_shift [00:18:36]MH_GetDate [00:18:36]Write to MH i2c: F0 00 00 EE 9D 7A [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: F0 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: F0 09 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: F0 09 00 EE 9D 00 E9 E3 1A 67 86 57 24 65 36 [00:18:36]GetLastDocTimeStamp 1729815489 [00:18:36]current date 1729815529 [00:18:36]FM_GetShiftState [00:18:36]SAM_PROTO_GetShiftState [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 13 01 00 [00:18:36]Write to MH i2c: E2 08 00 EF 9D 80 13 01 00 00 00 00 00 09 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 0E 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 0E 00 EF 9D 00 09 00 01 09 95 19 67 00 00 00 00 90 00 33 [00:18:36]RAPDU: 09 00 01 09 95 19 67 00 00 00 00 90 00 [00:18:36]wFMCommunicate OK [00:18:36]SAM_PROTO_GetShiftState done [00:18:36]FM_GetShiftState done [00:18:36]KKMCreateCloseShiftDocument [00:18:36]Load OK [00:18:36]Malloc new data [00:18:36]MH_GetDate [00:18:36]Write to MH i2c: F0 00 00 F0 9D 7C [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: F0 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: F0 09 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: F0 09 00 F0 9D 00 E9 E3 1A 67 86 57 24 65 38 [00:18:36]Malloc new data [00:18:36]Malloc new data [00:18:36]Malloc new data [00:18:36]Malloc new data [00:18:36]KKMCreateCloseShiftDocument OK [00:18:36]KKMSetCloseShiftData OK [00:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=79 [00:18:36]tlvbuf is 00BE8D20 [00:18:36]KKMLoadAndSignCloseShiftData [00:18:36]SAM_PROTO_ProcessDocument [00:18:36]wFMCommunicate request_size=9 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 15 01 00 04 05 00 4F 00 [00:18:36]Write to MH i2c: E2 0C 00 F1 9D 80 15 01 00 04 00 05 00 4F 00 00 00 69 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 F1 9D 00 90 00 02 [00:18:36]RAPDU: 90 00 [00:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=23 [00:18:36]MH_SAM_APDU [00:18:36]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:18:36]Write to MH i2c: E2 1A 00 F2 9D 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 04 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 F2 9D 00 90 00 03 [00:18:36]RAPDU: 90 00 [00:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=38 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:18:36]Write to MH i2c: E2 29 00 F3 9D 80 15 02 00 21 00 FD 03 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 20 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 F3 9D 00 90 00 04 [00:18:36]RAPDU: 90 00 [00:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=13 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 15 02 00 08 F4 03 04 00 E9 E3 1A 67 [00:18:36]Write to MH i2c: E2 10 00 F4 9D 80 15 02 00 08 00 F4 03 04 00 E9 E3 1A 67 00 00 69 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 F4 9D 00 90 00 05 [00:18:36]RAPDU: 90 00 [00:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=25 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 [00:18:36]Write to MH i2c: E2 1C 00 F5 9D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 00 00 75 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 03 00 F5 9D 00 90 00 06 [00:18:36]RAPDU: 90 00 [00:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 15 03 00 [00:18:36]Write to MH i2c: E2 08 00 F6 9D 80 15 03 00 00 00 00 00 14 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:37]OFD Sender: No OFD packet to send [00:18:37]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:18:37]Read from MH i2c: E2 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 F6 9D 00 F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 24 01 00 0E 04 04 00 FE 01 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 C0 [00:18:37]RAPDU: F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 24 01 00 0E 04 04 00 FE 01 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:37]wFMCommunicate OK [00:18:37]SAM_PROTO_ProcessDocument answer len = 1267 [00:18:37]SAM_PROTO_ProcessDocument remain to read = 1019 [00:18:37]wFMCommunicate request_size=4 [00:18:37]MH_SAM_APDU [00:18:37]CAPDU: 80 17 00 00 [00:18:37]Write to MH i2c: E2 08 00 F7 9D 80 17 00 00 00 00 00 00 14 [00:18:37]Write i2c OK [00:18:37]MH_I2C_Read... [00:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:38]Read from MH i2c: E2 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 F7 9D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 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 64 [00:18:38]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 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 [00:18:38]wFMCommunicate OK [00:18:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:18:38]SAM_PROTO_ProcessDocument remain to read = 769 [00:18:38]wFMCommunicate request_size=4 [00:18:38]MH_SAM_APDU [00:18:38]CAPDU: 80 17 00 00 [00:18:38]Write to MH i2c: E2 08 00 F8 9D 80 17 00 00 00 00 00 00 15 [00:18:38]Write i2c OK [00:18:38]MH_I2C_Read... [00:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:38]Read from MH i2c: E2 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 F8 9D 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 77 [00:18:39]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:18:39]wFMCommunicate OK [00:18:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:18:39]SAM_PROTO_ProcessDocument remain to read = 519 [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 17 00 00 [00:18:39]Write to MH i2c: E2 08 00 F9 9D 80 17 00 00 00 00 00 00 16 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 F9 9D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 90 00 A7 [00:18:39]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 90 00 [00:18:39]wFMCommunicate OK [00:18:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:18:39]SAM_PROTO_ProcessDocument remain to read = 269 [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 17 00 00 [00:18:39]Write to MH i2c: E2 08 00 FA 9D 80 17 00 00 00 00 00 00 17 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 FA 9D 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 90 00 D8 [00:18:40]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 90 00 [00:18:40]wFMCommunicate OK [00:18:40]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:18:40]SAM_PROTO_ProcessDocument remain to read = 19 [00:18:40]wFMCommunicate request_size=4 [00:18:40]MH_SAM_APDU [00:18:40]CAPDU: 80 17 00 00 [00:18:40]Write to MH i2c: E2 08 00 FB 9D 80 17 00 00 00 00 00 00 18 [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 16 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 16 00 FB 9D 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 7D 15 9F 10 B7 BB 90 00 0B [00:18:40]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 7D 15 9F 10 B7 BB 90 00 [00:18:40]wFMCommunicate OK [00:18:40]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:18:40]SAM_PROTO_ProcessDocument done [00:18:40]1209 (1) - 1.0 - номер версии ФФД [00:18:40]1041 (16) - 0000000000871795 - номер ФМ [00:18:40]1040 (4) - 74784 - номер ФД [00:18:40]1038 (4) - 510 - номер смены [00:18:40]1118 (4) - 227 - количество кассовых чеков за смену [00:18:40]1111 (4) - 229 - общее количество ФД за смену [00:18:40]1194 (1196) - счетчики итогов смены [00:18:40] 1134 (4) - 227 - количество чеков со всеми признаками расчетов [00:18:40] 1129 (157) - счетчики операций «приход» [00:18:40] 1135 (4) - 227 - количество чеков по признаку расчетов [00:18:40] 1201 (4) - 306262.37 - общая итоговая сумма в чеках [00:18:40] 1136 (3) - 150638.00 - итоговая сумма в чеках наличными [00:18:40] 1138 (3) - 155624.37 - итоговая сумма в чеках безналичными [00:18:40] 1024 (123) - суммы налогов [00:18:40] 1006 (9) - суммы НДС [00:18:40] 1010 (1) - 0% - код ставки НДС [00:18:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:40] 1006 (12) - суммы НДС [00:18:40] 1010 (1) - 12% - код ставки НДС [00:18:40] 1011 (3) - 32529.40 - сумма НДС по ставке [00:18:40] 1007 (9) - суммы НСП [00:18:40] 1014 (1) - 0% - код ставки НСП [00:18:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:40] 1007 (12) - суммы НСП [00:18:40] 1014 (1) - 1% - код ставки НСП [00:18:40] 1015 (3) - 2710.77 - сумма НСП по ставке [00:18:40] 1007 (9) - суммы НСП [00:18:40] 1014 (1) - 2% - код ставки НСП [00:18:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:40] 1007 (9) - суммы НСП [00:18:40] 1014 (1) - 3% - код ставки НСП [00:18:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:40] 1007 (9) - суммы НСП [00:18:40] 1014 (1) - 5% - код ставки НСП [00:18:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:40] 1007 (9) - суммы НСП [00:18:40] 1014 (1) - 0,50% - код ставки НСП [00:18:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:40] 1007 (9) - суммы НСП [00:18:40] 1014 (1) - 1,50% - код ставки НСП [00:18:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:40] 1130 (141) - счетчики операций «возврат прихода» [00:18:40] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:40] 1024 (117) - суммы налогов [00:18:40] 1006 (9) - суммы НДС [00:18:40] 1010 (1) - 0% - код ставки НДС [00:18:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:40] 1006 (9) - суммы НДС [00:18:40] 1010 (1) - 12% - код ставки НДС [00:18:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:40] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 0% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 1% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 2% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 3% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 5% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 0,50% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 1,50% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1131 (141) - счетчики операций «расход» [00:18:41] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:41] 1024 (117) - суммы налогов [00:18:41] 1006 (9) - суммы НДС [00:18:41] 1010 (1) - 0% - код ставки НДС [00:18:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:41] 1006 (9) - суммы НДС [00:18:41] 1010 (1) - 12% - код ставки НДС [00:18:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 0% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 1% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 2% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 3% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 5% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 0,50% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 1,50% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1132 (141) - счетчики операций «возврат расхода» [00:18:41] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:41] 1024 (117) - суммы налогов [00:18:41] 1006 (9) - суммы НДС [00:18:41] 1010 (1) - 0% - код ставки НДС [00:18:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:41] 1006 (9) - суммы НДС [00:18:41] 1010 (1) - 12% - код ставки НДС [00:18:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 0% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 1% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 2% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 3% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 5% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 0,50% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1007 (9) - суммы НСП [00:18:41] 1014 (1) - 1,50% - код ставки НСП [00:18:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:41] 1133 (588) - - счетчики коррекции - не используются [00:18:41]1077 (6) - 137531816458171 - ФПД [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1209 (04B9) [00:18:41]Malloc new data [00:18:41]Processing tag 1041 (0411) [00:18:41]Processing tag 1040 (0410) [00:18:41]Malloc new data [00:18:41]Processing tag 1038 (040E) [00:18:41]Malloc new data [00:18:41]Processing tag 1118 (045E) [00:18:41]Malloc new data [00:18:41]Processing tag 1111 (0457) [00:18:41]Malloc new data [00:18:41]Processing tag 1194 (04AA) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1134 (046E) [00:18:41]Malloc new data [00:18:41]Processing tag 1129 (0469) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1135 (046F) [00:18:41]Malloc new data [00:18:41]Processing tag 1201 (04B1) [00:18:41]Malloc new data [00:18:41]Processing tag 1136 (0470) [00:18:41]Malloc new data [00:18:41]Processing tag 1138 (0472) [00:18:41]Malloc new data [00:18:41]Processing tag 1024 (0400) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1130 (046A) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1135 (046F) [00:18:41]Malloc new data [00:18:41]Processing tag 1201 (04B1) [00:18:41]Malloc new data [00:18:41]Processing tag 1136 (0470) [00:18:41]Malloc new data [00:18:41]Processing tag 1138 (0472) [00:18:41]Malloc new data [00:18:41]Processing tag 1024 (0400) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1131 (046B) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1135 (046F) [00:18:41]Malloc new data [00:18:41]Processing tag 1201 (04B1) [00:18:41]Malloc new data [00:18:41]Processing tag 1136 (0470) [00:18:41]Malloc new data [00:18:41]Processing tag 1138 (0472) [00:18:41]Malloc new data [00:18:41]Processing tag 1024 (0400) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1132 (046C) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1135 (046F) [00:18:41]Malloc new data [00:18:41]Processing tag 1201 (04B1) [00:18:41]Malloc new data [00:18:41]Processing tag 1136 (0470) [00:18:41]Malloc new data [00:18:41]Processing tag 1138 (0472) [00:18:41]Malloc new data [00:18:41]Processing tag 1024 (0400) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1006 (03EE) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1010 (03F2) [00:18:41]Malloc new data [00:18:41]Processing tag 1011 (03F3) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1007 (03EF) [00:18:41]Load OK [00:18:41]SetTLVBufToDocument [00:18:41]Processing tag 1014 (03F6) [00:18:41]Malloc new data [00:18:41]Processing tag 1015 (03F7) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1133 (046D) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Processing tag 1077 (0435) [00:18:41]Malloc new data [00:18:41]SetTLVBufToDocument err=0 [00:18:41]Malloc new data [00:18:41]SAM_PROTO_GetFMData [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 13 03 00 [00:18:41]Write to MH i2c: E2 08 00 FC 9D 80 13 03 00 00 00 00 00 18 [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 FC 9D 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 OFD Sender: No OFD packet to send [00:18:42]00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 61 [00:18:42]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:18:42]wFMCommunicate OK [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 17 00 00 [00:18:42]Write to MH i2c: E2 08 00 FD 9D 80 17 00 00 00 00 00 00 1A [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 FD 9D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 C2 [00:18:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 17 00 00 [00:18:43]Write to MH i2c: E2 08 00 FE 9D 80 17 00 00 00 00 00 00 1B [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 FE 9D 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 BB [00:18:44]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:18:44]wFMCommunicate OK [00:18:44]wFMCommunicate request_size=4 [00:18:44]MH_SAM_APDU [00:18:44]CAPDU: 80 17 00 00 [00:18:44]Write to MH i2c: E2 08 00 FF 9D 80 17 00 00 00 00 00 00 1C [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:44]Read from MH i2c: E2 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: E2 FD 00 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: E2 FD 00 FF 9D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 A1 [00:18:44]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:18:45]wFMCommunicate OK [00:18:45]wFMCommunicate request_size=4 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 17 00 00 [00:18:45]Write to MH i2c: E2 08 00 00 9E 80 17 00 00 00 00 00 00 1E [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 DE 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 DE 00 00 9E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FD [00:18:45]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:45]wFMCommunicate OK [00:18:45]SAM_PROTO_GetFMData done [00:18:45]Malloc new data [00:18:45]Malloc new data [00:18:45]Malloc new data [00:18:45]Malloc new data [00:18:45]KKMLoadAndSignCloseShiftData err=0 [00:18:45]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токторалиева Н. 25.10.2024 00:18 Смена: 510 РНМ: 0000000000091691 ЗНМ: 0300000089 СНО: Общий режим Чеков за смену: 227 ФД за смену: 229 Всего чеков: 227 ИТОГИ ПРИХОД Чеков: 227 Общий итог: 306262.37 Итого наличными: 150638.00 Итого безнал.: 155624.37 НДС 0% : 0.00 НДС 12% : 32529.40 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2710.77 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 150638.00 НС Приход: 70939358.45 НС Возвр.Прихода: 53731.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 74784 ФМ: 0000000000871795 ФПД: 137531816458171 [00:18:45]StoreToDocumentArchive [00:18:45]shift 510 fd 74784 [00:18:45]save to /storage/0510/doc_00074784 [00:18:45]save last doc name /storage/0510/doc_00074784 to /storage/kkm_last_doc_name [00:18:45]save OK [00:18:45]Clear old archive folders... [00:18:45]Remove dir /storage/0266 [00:18:45]opendir ok [00:18:45]file . [00:18:45]file .. [00:18:45]file doc_1729815498 [00:18:45]remove file /storage/0266/doc_1729815498 [00:18:45]remove dir /storage/0266 [00:18:45]NVStorageSaveData kkm_registers [00:18:45]File name is /storage/kkm_registers [00:18:45]Write 24 bytes [00:18:45]NVStorageSaveData done [00:18:45]NVStorageSaveData kkm_registers [00:18:45]File name is /storage/kkm_registers [00:18:45]Write 24 bytes [00:18:45]NVStorageSaveData done [00:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:18:45]tlvbuf is 00B967C0 [00:18:45]SAM_PROTO_ClearQueue [00:18:45]wFMCommunicate request_size=4 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 09 00 00 [00:18:45]Write to MH i2c: E2 08 00 01 9E 80 09 00 00 00 00 00 00 11 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 01 9E 00 90 00 13 [00:18:45]RAPDU: 90 00 [00:18:45]wFMCommunicate OK [00:18:45]SAM_PROTO_ClearQueue done [00:18:45]KKMCreateOFDPacket [00:18:45]OFDProtocolAddRootSTLVToBuf [00:18:45]FM_MakeSignedData [00:18:45]FM_MakeSignedData [00:18:45]SAM_PROTO_SignData [00:18:45]wFMCommunicate request_size=4 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 0D 01 02 [00:18:45]Write to MH i2c: E2 08 00 02 9E 80 0D 01 02 00 00 00 00 19 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 02 9E 00 90 00 14 [00:18:45]RAPDU: 90 00 [00:18:45]wFMCommunicate OK [00:18:46]wFMCommunicate request_size=255 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 0D 02 02 FA 05 00 6D 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 E9 E3 1A 67 0E 04 04 00 FE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 AA 04 D7 04 6E 04 04 00 E3 00 00 00 69 04 A4 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 [00:18:46]Write to MH i2c: E2 02 01 03 9E 80 0D 02 02 FA 00 05 00 6D 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 E9 E3 1A 67 0E 04 04 00 FE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 AA 04 D7 04 6E 04 04 00 E3 00 00 00 69 04 A4 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 00 00 80 [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:46]Read from MH i2c: E2 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 03 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 03 00 03 9E 00 90 00 15 [00:18:46]RAPDU: 90 00 [00:18:46]wFMCommunicate OK [00:18:46]wFMCommunicate request_size=255 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 0D 02 02 FA 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 E5 22 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 [00:18:47]Write to MH i2c: E2 02 01 04 9E 80 0D 02 02 FA 00 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 E5 22 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 00 00 A1 [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:47]Read from MH i2c: E2 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 03 00 [00:18:47]MH_I2C_Read... [00:18:47]OFD Sender: No OFD packet to send [00:18:47]Read from MH i2c: E2 03 00 04 9E 00 90 00 16 [00:18:47]RAPDU: 90 00 [00:18:47]wFMCommunicate OK [00:18:47]wFMCommunicate request_size=255 [00:18:47]MH_SAM_APDU [00:18:47]CAPDU: 80 0D 02 02 FA 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 [00:18:47]Write to MH i2c: E2 02 01 05 9E 80 0D 02 02 FA 00 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 00 00 D5 [00:18:48]Write i2c OK [00:18:48]MH_I2C_Read... [00:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:48]Read from MH i2c: E2 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 03 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 03 00 05 9E 00 90 00 17 [00:18:48]RAPDU: 90 00 [00:18:48]wFMCommunicate OK [00:18:48]wFMCommunicate request_size=255 [00:18:48]MH_SAM_APDU [00:18:48]CAPDU: 80 0D 02 02 FA 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 [00:18:48]Write to MH i2c: E2 02 01 06 9E 80 0D 02 02 FA 00 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 00 00 F5 [00:18:49]Write i2c OK [00:18:49]MH_I2C_Read... [00:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:49]Read from MH i2c: E2 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: E2 03 00 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: E2 03 00 06 9E 00 90 00 18 [00:18:49]RAPDU: 90 00 [00:18:49]wFMCommunicate OK [00:18:49]wFMCommunicate request_size=255 [00:18:49]MH_SAM_APDU [00:18:49]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 [00:18:49]Write to MH i2c: E2 02 01 07 9E 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 AF [00:18:49]Write i2c OK [00:18:49]MH_I2C_Read... [00:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:50]Read from MH i2c: E2 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 03 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 03 00 07 9E 00 90 00 19 [00:18:50]RAPDU: 90 00 [00:18:50]wFMCommunicate OK [00:18:50]wFMCommunicate request_size=148 [00:18:50]MH_SAM_APDU [00:18:50]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 7D 15 9F 10 B7 BB [00:18:50]Write to MH i2c: E2 97 00 08 9E 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 7D 15 9F 10 B7 BB 00 00 5C [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:50]Read from MH i2c: E2 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 03 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 03 00 08 9E 00 90 00 1A [00:18:50]RAPDU: 90 00 [00:18:50]wFMCommunicate OK [00:18:50]wFMCommunicate request_size=4 [00:18:50]MH_SAM_APDU [00:18:50]CAPDU: 80 0D 03 02 [00:18:50]Write to MH i2c: E2 08 00 09 9E 80 0D 03 02 00 00 00 00 22 [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:50]Read from MH i2c: E2 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 0B 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 0B 00 09 9E 00 8E 89 1F E6 7A 62 27 AD 90 00 EF [00:18:50]RAPDU: 8E 89 1F E6 7A 62 27 AD 90 00 [00:18:50]wFMCommunicate OK [00:18:50]SAM_PROTO_SignData done [00:18:50]FM_MakeSignedData done [00:18:50]CreateOFDProtocolMessage [00:18:50]wFMCommunicate request_size=4 [00:18:50]MH_SAM_APDU [00:18:50]CAPDU: 80 11 00 00 [00:18:50]Write to MH i2c: E2 08 00 0A 9E 80 11 00 00 00 00 00 00 22 [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:50]Read from MH i2c: E2 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 17 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 17 00 0A 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7A [00:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:18:50]wFMCommunicate OK [00:18:50]CreateOFDProtocolMessage done [00:18:50]OFDSenderStorePacket 74784 [00:18:50]StoreOFDPacket docnum=74784 [00:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 81 05 00 00 10 12 79 05 63 81 5A 05 01 00 05 00 6D 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 E9 E3 1A 67 0E 04 04 00 FE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 AA 04 D7 04 6E 04 04 00 E3 00 00 00 69 04 A4 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 20 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 7D 15 9F 10 B7 BB 8E 89 1F E6 7A 62 27 AD [00:18:51]CheckFolder [00:18:51]dirname=/storage/ofd_packets [00:18:51]CheckFolder done [00:18:51]ProducePacketName [00:18:51]name=ofd_packets/00074784 [00:18:51]NVStorageSaveData ofd_packets/00074784 [00:18:51]File name is /storage/ofd_packets/00074784 [00:18:51]Write 1439 bytes [00:18:51]NVStorageSaveData done [00:18:51]OFDSenderStorePacket done [00:18:51]KKMCreateOFDPacket done [00:18:51]NVStorageSaveData kkm_last_timestamp [00:18:51]File name is /storage/kkm_last_timestamp [00:18:51]Write 4 bytes [00:18:51]NVStorageSaveData done [00:18:51]ExternCall_PrintAddStr [00:18:51]wPrintStart [00:18:51]Write to MH i2c: 01 00 00 0B 9E A9 [00:18:51]Write i2c OK [00:18:51]MH_I2C_Read... [00:18:51]Read from MH i2c: 01 [00:18:51]MH_I2C_Read... [00:18:51]Read from MH i2c: 01 07 00 [00:18:51]MH_I2C_Read... [00:18:51]Read from MH i2c: 01 07 00 0B 9E 00 00 00 00 00 FF 0F BE [00:18:51]RasterBufferAndPrint [00:18:51]line Отчет о закрытии смены [00:18:51]line ФФД: 1.0 [00:18:51]line ИНН: 02508201610067 [00:18:51]line Кассир: Токторалиева Н. [00:18:51]line 25.10.2024 00:18 [00:18:51]line Смена: 510 [00:18:51]line РНМ: 0000000000091691 [00:18:51]line ЗНМ: 0300000089 [00:18:51]line СНО: Общий режим [00:18:51]line Чеков за смену: 227 [00:18:51]line ФД за смену: 229 [00:18:51]line Всего чеков: 227 [00:18:51]line ИТОГИ ПРИХОД [00:18:51]line Чеков: 227 [00:18:51]line Общий итог: 306262.37 [00:18:51]line Итого наличными: 150638.00 [00:18:51]line Итого безнал.: 155624.37 [00:18:51]line НДС 0% : 0.00 [00:18:51]line НДС 12% : 32529.40 [00:18:51]line НСП 0% : 0.00 [00:18:51]line НСП 1,50% : 0.00 [00:18:51]line НСП 0,50% : 0.00 [00:18:51]line НСП 5% : 0.00 [00:18:51]line НСП 3% : 0.00 [00:18:51]line НСП 2% : 0.00 [00:18:51]line НСП 1% : 2710.77 [00:18:51]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:18:51]line Чеков: 0 [00:18:51]line Общий итог: 0.00 [00:18:51]line Итого наличными: 0.00 [00:18:51]line Итого безнал.: 0.00 [00:18:51]line НДС 0% : 0.00 [00:18:51]line НДС 12% : 0.00 [00:18:51]line НСП 0% : 0.00 [00:18:51]line НСП 1,50% : 0.00 [00:18:51]line НСП 0,50% : 0.00 [00:18:51]line НСП 5% : 0.00 [00:18:51]line НСП 3% : 0.00 [00:18:51]line НСП 2% : 0.00 [00:18:51]line НСП 1% : 0.00 [00:18:51]line ИТОГИ РАСХОД [00:18:51]line Чеков: 0 [00:18:51]line Общий итог: 0.00 [00:18:51]line Итого наличными: 0.00 [00:18:51]line Итого безнал.: 0.00 [00:18:51]line НДС 0% : 0.00 [00:18:51]line НДС 12% : 0.00 [00:18:51]line НСП 0% : 0.00 [00:18:51]line НСП 1,50% : 0.00 [00:18:51]line НСП 0,50% : 0.00 [00:18:51]line НСП 5% : 0.00 [00:18:51]line НСП 3% : 0.00 [00:18:51]line НСП 2% : 0.00 [00:18:51]OFD Sender: Processing packet 74784 [packets to send 13, broken 12] [00:18:51]line НСП 1% : 0.00 [00:18:51]ProducePacketName [00:18:51]name=ofd_packets/00074784 [00:18:51]line ИТОГИ ВОЗВРАТ РАСХОДА [00:18:51]OFD Sender: To server: pG, [00:18:51]line Чеков: 0 [00:18:51]CommunicateWithHost lk.salyk.kg:30040 [00:18:51]line Общий итог: 0.00 [00:18:51]line Итого наличными: 0.00 [00:18:51]line Итого безнал.: 0.00 [00:18:51]line НДС 0% : 0.00 [00:18:51]line НДС 12% : 0.00 [00:18:51]line НСП 0% : 0.00 [00:18:51]line НСП 1,50% : 0.00 [00:18:51]line НСП 0,50% : 0.00 [00:18:51]line НСП 5% : 0.00 [00:18:51]ConnectInit lk.salyk.kg [00:18:51]line НСП 3% : 0.00 [00:18:51]line НСП 2% : 0.00 [00:18:51]line НСП 1% : 0.00 [00:18:51]line Сумма внесений: 0.00 [00:18:51]line Сумма выплат: 0.00 [00:18:51]line Нал. в кассе: 150638.00 [00:18:51]line НС Приход: 70939358.45 [00:18:51]line НС Возвр.Прихода: 53731.00 [00:18:51]line НС Расход: 0.00 [00:18:51]line НС Возвр.Расхода: 0.00 [00:18:51]line ФД: 74784 [00:18:51]line ФМ: 0000000000871795 [00:18:51]line ФПД: 137531816458171 [00:18:51]written 0, free lines is 4095 [00:18:51]Connected sock=10 [00:18:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 81 05 00 00 10 12 79 05 63 81 5A 05 01 00 05 00 6D 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 E9 E3 1A 67 0E 04 04 00 FE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 AA 04 D7 04 6E 04 04 00 E3 00 00 00 69 04 A4 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 Write to MH i2c: 00 01 6F 00 04 00 04 5B 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 9E F3 F9 03 [00:18:52]01 Write i2c OK [00:18:52]00 MH_I2C_Read... [00:18:52]00 EE 03 0A 00 F2 03 01 00 Read from MH i2c: 01 01 F3 [00:18:52]03 MH_I2C_Read... [00:18:52]01 00 00 EF 03 0A 00 F6 03 01 00 Read from MH i2c: 00 01 F7 07 03 00 01 [00:18:52]00 MH_I2C_Read... [00:18:52]00 EF 03 0A 00 F6 03 01 Read from MH i2c: 00 01 06 07 F7 00 03 5B 01 9E 00 00 00 00 EF 00 03 00 0A 00 00 70 F6 0B 03 7B 01 00 05 F7 03 01 00 00 EF 03 0A [00:18:52]00 RasterBufferAndPrint [00:18:52]F6 line [00:18:52]03 line [00:18:52]01 line [00:18:52]00 line [00:18:52]04 line [00:18:52]F7 03 written 0, free lines is 3136 [00:18:52]01 00 00 EF 03 0A 00 F6 03 01 00 03 MH_Cut [00:18:52]F7 Write to MH i2c: 03 D1 01 01 00 00 EF 03 0A 00 F6 03 01 00 00 02 62 F7 9E 03 01 01 D2 00 00 EF 03 0A 00 F6 03 01 00 [00:18:52]01 Write i2c OK [00:18:52]F7 MH_I2C_Read... [00:18:52]03 Read from MH i2c: 01 D1 00 [00:18:52]00 MH_I2C_Read... [00:18:52]6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 Read from MH i2c: 8D D1 00 01 6F 00 04 [00:18:52]04 00 00 00 00 00 B1 04 00 00 MH_I2C_Read... [00:18:52]70 Read from MH i2c: 04 D1 00 01 00 00 72 62 04 9E 00 00 00 D1 00 04 75 00 EE 03 09 00 F2 03 01 [00:18:52]00 Write to MH i2c: 00 01 F3 00 03 00 00 63 00 9E EE 01 03 [00:18:52]09 00 F2 03 01 00 01 F3 03 00 00 Write i2c OK [00:18:52]MH_I2C_Read... [00:18:52]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 *** Cut start [00:18:53]02 F7 03 00 *** Partial cut [00:18:53]00 EF 03 09 *** CUTSNS_PIN = 1 [00:18:53]00 F6 03 01 *** CUTSNS_PIN = 0 [00:18:53]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 7D 15 9F 10 B7 BB 8E 89 1F E6 7A 62 27 AD [00:18:53]*** Brake cut motor [00:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 18 5A 47 00 A6 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 *** Stop cut motor [00:18:54]30 *** Cut end [00:18:54]30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 24 01 00 F4 03 04 00 79 8B 1A 67 B6 04 01 00 00 64 Read from MH i2c: B8 01 8A [00:18:54]E4 MH_I2C_Read... [00:18:54]13 34 F7 CB [00:18:54]CommunicateWithHost err = 0 [00:18:54]CheckOFDResponse [00:18:54]1017 (14) - 77093643461234 [00:18:54]1041 (16) - 0000000000871795 [00:18:54]1040 (4) - 74784 [00:18:54]1012 (4) - 24.10.2024 18:01 [00:18:54]1206 (1) - 0 [00:18:54]OFD Sender: Remove packet 74784 [00:18:54]ProducePacketName [00:18:54]name=ofd_packets/00074784 [00:18:54]NVStorageDeleteData [00:18:54]Read from MH i2c: 01 07 00 [00:18:54]MH_I2C_Read... [00:18:54]Read from MH i2c: 01 07 00 63 9E 00 00 00 00 00 FF 0F 16 [00:18:54]process_action close_shift done [00:18:54]requested_data is exist [00:18:54]produce_requested_data [00:18:54]requested_item fd.num is exist - process it [00:18:54]SAM_PROTO_GetFieldsCounters [00:18:54]wFMCommunicate request_size=4 [00:18:54]MH_SAM_APDU [00:18:54]CAPDU: 80 13 00 00 [00:18:54]Write to MH i2c: E2 08 00 64 9E 80 13 00 00 00 00 00 00 7E [00:18:54]Write i2c OK [00:18:54]MH_I2C_Read... [00:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:54]Read from MH i2c: E2 [00:18:54]MH_I2C_Read... [00:18:54]Read from MH i2c: E2 62 00 [00:18:54]MH_I2C_Read... [00:18:54]Read from MH i2c: E2 62 00 64 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 20 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [00:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 20 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:54]wFMCommunicate OK [00:18:54]SAM_PROTO_GetFieldsCounters done [00:18:54]requested_item shift.num is exist - process it [00:18:54]requested_item shift.opened is exist - process it [00:18:54]req_shift_opened [00:18:54]FM_GetShiftState [00:18:54]SAM_PROTO_GetShiftState [00:18:54]wFMCommunicate request_size=4 [00:18:54]MH_SAM_APDU [00:18:54]CAPDU: 80 13 01 00 [00:18:54]Write to MH i2c: E2 08 00 65 9E 80 13 01 00 00 00 00 00 80 [00:18:54]Write i2c OK [00:18:54]MH_I2C_Read... [00:18:54]OFD Sender: No OFD packet to send [00:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:54]Read from MH i2c: E2 [00:18:54]MH_I2C_Read... [00:18:54]Read from MH i2c: E2 0E 00 [00:18:54]MH_I2C_Read... [00:18:54]Read from MH i2c: E2 0E 00 65 9E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8B [00:18:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:54]wFMCommunicate OK [00:18:54]SAM_PROTO_GetShiftState done [00:18:54]FM_GetShiftState done [00:18:54]req_shift_opened done [00:18:54]requested_item shift.open_date is exist - process it [00:18:54]req_shift_open_date [00:18:54]FM_GetShiftState [00:18:54]SAM_PROTO_GetShiftState [00:18:54]wFMCommunicate request_size=4 [00:18:54]MH_SAM_APDU [00:18:54]CAPDU: 80 13 01 00 [00:18:54]Write to MH i2c: E2 08 00 66 9E 80 13 01 00 00 00 00 00 81 [00:18:54]Write i2c OK [00:18:54]MH_I2C_Read... [00:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:54]Read from MH i2c: E2 [00:18:54]MH_I2C_Read... [00:18:54]Read from MH i2c: E2 0E 00 [00:18:54]MH_I2C_Read... [00:18:54]Read from MH i2c: E2 0E 00 66 9E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8C [00:18:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:54]wFMCommunicate OK [00:18:54]SAM_PROTO_GetShiftState done [00:18:54]FM_GetShiftState done [00:18:54]req_shift_open_date done [00:18:54]produce_requested_data done [00:18:54]produce_requested_data return {"fd.num":74784,"shift.num":510,"shift.opened":0,"shift.open_date":0} [00:18:54]process_action_free close_shift [00:18:54]json_value_free [00:18:54]json_value_free done [00:18:54]process_json_proto returns [00:18:54]Send response to host [00:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":74784,"shift.num":510,"shift.opened":0,"shift.open_date":0}}} [00:18:54]free response buf [00:18:54]execute_script done [00:18:54]execute_script returns [00:18:54]free content buf [00:18:54]Sock 9.Close socket [00:18:54]Sock 9.Thread stoped [00:18:56]int [00:18:56]Write to MH i2c: 01 00 00 67 9E 05 [00:18:56]*** FLAG_PRN_KEY set [00:18:56]Write i2c OK [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 67 9E 00 08 00 00 00 FF 0F 22 [00:18:56]state=0 [00:18:56]Key pressed [00:18:56]Feed [00:18:56]Write to MH i2c: D8 00 00 68 9E DD [00:18:56]Write i2c OK [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: D8 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: D8 01 00 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: D8 01 00 68 9E 00 DE [00:18:56]int line is 0 - check status [00:18:56]Write to MH i2c: 01 00 00 69 9E 07 [00:18:56]Write i2c OK [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 69 9E 00 48 00 00 00 3C 00 92 [00:18:56]state=2 [00:18:56]Key pressed [00:18:56]int [00:18:56]Write to MH i2c: 01 00 00 6A 9E 08 [00:18:56]Write i2c OK [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 6A 9E 00 48 00 00 00 3C 00 93 [00:18:56]state=2 [00:18:56]Key pressed [00:18:56]int line is 0 - check status [00:18:56]Write to MH i2c: 01 00 00 6B 9E 09 [00:18:56]*** FLAG_PRN_KEY reset [00:18:56]Write i2c OK [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 6B 9E 00 00 00 00 00 FF 0F 1E [00:18:56]state=2 [00:18:56]Stop feed [00:18:56]int [00:18:56]Write to MH i2c: 01 00 00 6C 9E 0A [00:18:56]Write i2c OK [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 [00:18:56]MH_I2C_Read... [00:18:56]Read from MH i2c: 01 07 00 6C 9E 00 00 00 00 00 FF 0F 1F [00:18:56]state=0 [00:18:56]int line is 0 - check status [00:18:56]Write to MH i2c: 01 00 00 6D 9E 0B [00:18:56]*** FLAG_PRN_KEY set [00:18:56]Write i2c OK [00:18:56]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 6D 9E 00 08 00 00 00 FF 0F 28 [00:18:57]state=0 [00:18:57]Key pressed [00:18:57]Feed [00:18:57]Write to MH i2c: D8 00 00 6E 9E E3 [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: D8 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: D8 01 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: D8 01 00 6E 9E 00 E4 [00:18:57]int line is 0 - check status [00:18:57]Write to MH i2c: 01 00 00 6F 9E 0D [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 6F 9E 00 48 00 00 00 3C 00 98 [00:18:57]state=2 [00:18:57]Key pressed [00:18:57]int [00:18:57]Write to MH i2c: 01 00 00 70 9E 0E [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 70 9E 00 48 00 00 00 3C 00 99 [00:18:57]state=2 [00:18:57]Key pressed [00:18:57]int line is 0 - check status [00:18:57]Write to MH i2c: 01 00 00 71 9E 0F [00:18:57]*** FLAG_PRN_KEY reset [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 71 9E 00 00 00 00 00 FF 0F 24 [00:18:57]state=2 [00:18:57]Stop feed [00:18:57]int [00:18:57]Write to MH i2c: 01 00 00 72 9E 10 [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 72 9E 00 00 00 00 00 FF 0F 25 [00:18:57]state=0 [00:18:57]int line is 0 - check status [00:18:57]Write to MH i2c: 01 00 00 73 9E 11 [00:18:57]*** FLAG_PRN_KEY set [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 73 9E 00 08 00 00 00 FF 0F 2E [00:18:57]state=0 [00:18:57]Key pressed [00:18:57]Feed [00:18:57]Write to MH i2c: D8 00 00 74 9E E9 [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: D8 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: D8 01 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: D8 01 00 74 9E 00 EA [00:18:57]int line is 0 - check status [00:18:57]Write to MH i2c: 01 00 00 75 9E 13 [00:18:57]*** FLAG_PRN_KEY reset [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 75 9E 00 00 00 00 00 FF 0F 28 [00:18:57]state=2 [00:18:57]Stop feed [00:18:57]int [00:18:57]Write to MH i2c: 01 00 00 76 9E 14 [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: 01 07 00 76 9E 00 00 00 00 00 FF 0F 29 [00:18:57]state=0 [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:15]accept exits with 8 [00:22:15]New connection [00:22:15]New thread 3066805604 created [00:22:15]Thread 3066662244 joined [00:22:15]Waiting for new connection... [00:22:15] Sock 8.Parse request [00:22:15]Sock 8.Check first char [00:22:15]Sock 8.First char is OK [00:22:15]request: POST /json_proto HTTP/1.0 [00:22:15]Method: POST [00:22:15]URL: /json_proto [00:22:15]Method is POST - this is cgi request [00:22:15]url: /json_proto [00:22:15]query_string will be loaded in cgi processing [00:22:15]execute_cgi json_proto POST (null) [00:22:15]execute_cgi path=json_proto method=POST [00:22:15]POST find Content-Length [00:22:15]Host: 172.17.39.131:8080 [00:22:15]Content-Length: 215 [00:22:15]Content-Type: application/json [00:22:15] [00:22:15]POST finish read [00:22:15]Found Content-Length = 215 [00:22:15]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:22:15]execute_script... [00:22:15]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:22:15]POST & json_proto [00:22:15]process_json_proto [00:22:15]json parsed OK: [00:22:15]protocol is kg_v1.0 [00:22:15]action value=get_value [00:22:15]process_action get_value [00:22:15]cmd_get_value [00:22:15]process_action get_value done [00:22:15]requested_data is exist [00:22:15]produce_requested_data [00:22:15]requested_item kkm.sn is exist - process it [00:22:15]requested_item kkm.ver is exist - process it [00:22:15]requested_item fm.sn is exist - process it [00:22:15]wFMCommunicate request_size=4 [00:22:15]MH_SAM_APDU [00:22:15]CAPDU: 80 11 00 00 [00:22:15]Write to MH i2c: E2 08 00 77 9E 80 11 00 00 00 00 00 00 8F [00:22:15]Write i2c OK [00:22:15]MH_I2C_Read... [00:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:15]Read from MH i2c: E2 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 17 00 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 17 00 77 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E7 [00:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:22:15]wFMCommunicate OK [00:22:15]requested_item fd.num is exist - process it [00:22:15]SAM_PROTO_GetFieldsCounters [00:22:15]wFMCommunicate request_size=4 [00:22:15]MH_SAM_APDU [00:22:15]CAPDU: 80 13 00 00 [00:22:15]Write to MH i2c: E2 08 00 78 9E 80 13 00 00 00 00 00 00 92 [00:22:15]Write i2c OK [00:22:15]MH_I2C_Read... [00:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:15]Read from MH i2c: E2 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 62 00 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 62 00 78 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 20 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [00:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 20 24 01 00 0E 04 04 00 FE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:15]wFMCommunicate OK [00:22:15]SAM_PROTO_GetFieldsCounters done [00:22:15]requested_item shift.num is exist - process it [00:22:15]requested_item shift.opened is exist - process it [00:22:15]req_shift_opened [00:22:15]FM_GetShiftState [00:22:15]SAM_PROTO_GetShiftState [00:22:15]wFMCommunicate request_size=4 [00:22:15]MH_SAM_APDU [00:22:15]CAPDU: 80 13 01 00 [00:22:15]Write to MH i2c: E2 08 00 79 9E 80 13 01 00 00 00 00 00 94 [00:22:15]Write i2c OK [00:22:15]MH_I2C_Read... [00:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:15]Read from MH i2c: E2 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 0E 00 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 0E 00 79 9E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [00:22:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:22:15]wFMCommunicate OK [00:22:15]SAM_PROTO_GetShiftState done [00:22:15]FM_GetShiftState done [00:22:15]req_shift_opened done [00:22:15]requested_item shift.open_date is exist - process it [00:22:15]req_shift_open_date [00:22:15]FM_GetShiftState [00:22:15]SAM_PROTO_GetShiftState [00:22:15]wFMCommunicate request_size=4 [00:22:15]MH_SAM_APDU [00:22:15]CAPDU: 80 13 01 00 [00:22:15]Write to MH i2c: E2 08 00 7A 9E 80 13 01 00 00 00 00 00 95 [00:22:15]Write i2c OK [00:22:15]MH_I2C_Read... [00:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:15]Read from MH i2c: E2 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 0E 00 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 0E 00 7A 9E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A0 [00:22:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:22:15]wFMCommunicate OK [00:22:15]SAM_PROTO_GetShiftState done [00:22:15]FM_GetShiftState done [00:22:15]req_shift_open_date done [00:22:15]produce_requested_data done [00:22:15]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":74784,"shift.num":510,"shift.opened":0,"shift.open_date":0} [00:22:15]process_action_free get_value [00:22:15]json_value_free [00:22:15]json_value_free done [00:22:15]process_json_proto returns [00:22:15]Send response to host [00:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":74784,"shift.num":510,"shift.opened":0,"shift.open_date":0}}} [00:22:15]free response buf [00:22:15]execute_script done [00:22:15]execute_script returns [00:22:15]free content buf [00:22:15]Sock 8.Close socket [00:22:15]Sock 8.Thread stoped [00:22:15]accept exits with 9 [00:22:15]New connection [00:22:15]New thread 3066662244 created [00:22:15]Thread 3066805604 joined [00:22:15]Waiting for new connection... [00:22:15] Sock 9.Parse request [00:22:15]Sock 9.Check first char [00:22:15]Sock 9.First char is OK [00:22:15]request: POST /json_proto HTTP/1.0 [00:22:15]Method: POST [00:22:15]URL: /json_proto [00:22:15]Method is POST - this is cgi request [00:22:15]url: /json_proto [00:22:15]query_string will be loaded in cgi processing [00:22:15]execute_cgi json_proto POST (null) [00:22:15]execute_cgi path=json_proto method=POST [00:22:15]POST find Content-Length [00:22:15]Host: 172.17.39.131:8080 [00:22:15]Content-Length: 331 [00:22:15]Content-Type: application/json [00:22:15] [00:22:15]POST finish read [00:22:15]Found Content-Length = 331 [00:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:15]execute_script... [00:22:16]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:22:16]POST & json_proto [00:22:16]process_json_proto [00:22:16]json parsed OK: [00:22:16]protocol is kg_v1.0 [00:22:16]action value=get_value [00:22:16]process_action get_value [00:22:16]cmd_get_value [00:22:16]process_action get_value done [00:22:16]requested_data is exist [00:22:16]produce_requested_data [00:22:16]requested_item fm.sale.total is exist - process it [00:22:16]SAM_PROTO_GetFMData [00:22:16]wFMCommunicate request_size=4 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 13 03 00 [00:22:16]Write to MH i2c: E2 08 00 7B 9E 80 13 03 00 00 00 00 00 98 [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:16]Read from MH i2c: E2 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 FD 00 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 FD 00 7B 9E 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 E1 [00:22:16]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:22:16]wFMCommunicate OK [00:22:16]wFMCommunicate request_size=4 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 17 00 00 [00:22:16]Write to MH i2c: E2 08 00 7C 9E 80 17 00 00 00 00 00 00 9A [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:16]Read from MH i2c: E2 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 FD 00 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 FD 00 7C 9E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 42 [00:22:16]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:22:16]wFMCommunicate OK [00:22:16]wFMCommunicate request_size=4 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 17 00 00 [00:22:16]Write to MH i2c: E2 08 00 7D 9E 80 17 00 00 00 00 00 00 9B [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:16]Read from MH i2c: E2 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 FD 00 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 FD 00 7D 9E 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 3B [00:22:17]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:22:17]wFMCommunicate OK [00:22:17]wFMCommunicate request_size=4 [00:22:17]MH_SAM_APDU [00:22:17]CAPDU: 80 17 00 00 [00:22:17]Write to MH i2c: E2 08 00 7E 9E 80 17 00 00 00 00 00 00 9C [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:17]Read from MH i2c: E2 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 FD 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 FD 00 7E 9E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 21 [00:22:17]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:22:17]wFMCommunicate OK [00:22:17]wFMCommunicate request_size=4 [00:22:17]MH_SAM_APDU [00:22:17]CAPDU: 80 17 00 00 [00:22:17]Write to MH i2c: E2 08 00 7F 9E 80 17 00 00 00 00 00 00 9D [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:22:17]Read from MH i2c: E2 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 DE 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 DE 00 7F 9E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7C [00:22:17]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:22:17]wFMCommunicate OK [00:22:17]SAM_PROTO_GetFMData done [00:22:17]requested_item fm.sale_refund.total is exist - process it [00:22:17]requested_item fm.buy.total is exist - process it [00:22:17]requested_item shift.sale.total is exist - process it [00:22:17]SAM_PROTO_GetShiftData [00:22:17]wFMCommunicate request_size=4 [00:22:17]MH_SAM_APDU [00:22:17]CAPDU: 80 13 02 00 [00:22:17]Write to MH i2c: E2 08 00 80 9E 80 13 02 00 00 00 00 00 9C [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:17]Read from MH i2c: E2 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 FD 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 FD 00 80 9E 00 B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 A0 [00:22:17]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 E3 00 00 00 69 04 9D 00 6F 04 04 00 E3 00 00 00 B1 04 04 00 BD 51 D3 01 70 04 03 00 F8 DA E5 72 04 03 00 C5 76 ED 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 CC A2 31 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 E5 22 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:22:17]wFMCommunicate OK [00:22:17]wFMCommunicate request_size=4 [00:22:17]MH_SAM_APDU [00:22:17]CAPDU: 80 17 00 00 [00:22:17]Write to MH i2c: E2 08 00 81 9E 80 17 00 00 00 00 00 00 9F [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:18]Read from MH i2c: E2 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 FD 00 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 FD 00 81 9E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 B9 [00:22:18]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:22:18]wFMCommunicate OK [00:22:18]wFMCommunicate request_size=4 [00:22:18]MH_SAM_APDU [00:22:18]CAPDU: 80 17 00 00 [00:22:18]Write to MH i2c: E2 08 00 82 9E 80 17 00 00 00 00 00 00 A0 [00:22:18]Write i2c OK [00:22:18]MH_I2C_Read... [00:22:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:18]Read from MH i2c: E2 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 FD 00 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 FD 00 82 9E 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 5D [00:22:18]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:22:18]wFMCommunicate OK [00:22:18]wFMCommunicate request_size=4 [00:22:18]MH_SAM_APDU [00:22:18]CAPDU: 80 17 00 00 [00:22:18]Write to MH i2c: E2 08 00 83 9E 80 17 00 00 00 00 00 00 A1 [00:22:18]Write i2c OK [00:22:18]MH_I2C_Read... [00:22:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:18]Read from MH i2c: E2 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 FD 00 [00:22:18]MH_I2C_Read... [00:22:18]Read from MH i2c: E2 FD 00 83 9E 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 14 [00:22:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:22:18]wFMCommunicate OK [00:22:18]wFMCommunicate request_size=4 [00:22:18]MH_SAM_APDU [00:22:18]CAPDU: 80 17 00 00 [00:22:18]Write to MH i2c: E2 08 00 84 9E 80 17 00 00 00 00 00 00 A2 [00:22:18]Write i2c OK [00:22:18]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 CD 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 CD 00 84 9E 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 86 [00:22:19]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:22:19]wFMCommunicate OK [00:22:19]SAM_PROTO_GetShiftData done [00:22:19]requested_item shift.sale.total_cash is exist - process it [00:22:19]requested_item shift.sale_refund.total is exist - process it [00:22:19]requested_item shift.sale_refund.total_cash is exist - process it [00:22:19]requested_item shift.buy.total is exist - process it [00:22:19]requested_item shift.buy.total_cash is exist - process it [00:22:19]produce_requested_data done [00:22:19]produce_requested_data return {"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.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:22:19]process_action_free get_value [00:22:19]json_value_free [00:22:19]json_value_free done [00:22:19]process_json_proto returns [00:22:19]Send response to host [00:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":306262.37,"shift.sale.total_cash":150638.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:22:19]free response buf [00:22:19]execute_script done [00:22:19]execute_script returns [00:22:19]free content buf [00:22:19]Sock 9.Close socket [00:22:19]Sock 9.Thread stoped [00:22:19]accept exits with 8 [00:22:19]New connection [00:22:19]New thread 3066805604 created [00:22:19]Thread 3066662244 joined [00:22:19]Waiting for new connection... [00:22:19] Sock 8.Parse request [00:22:19]Sock 8.Check first char [00:22:19]Sock 8.First char is OK [00:22:19]request: POST /json_proto HTTP/1.0 [00:22:19]Method: POST [00:22:19]URL: /json_proto [00:22:19]Method is POST - this is cgi request [00:22:19]url: /json_proto [00:22:19]query_string will be loaded in cgi processing [00:22:19]execute_cgi json_proto POST (null) [00:22:19]execute_cgi path=json_proto method=POST [00:22:19]POST find Content-Length [00:22:19]Host: 172.17.39.131:8080 [00:22:19]Content-Length: 277 [00:22:19]Content-Type: application/json [00:22:19] [00:22:19]POST finish read [00:22:19]Found Content-Length = 277 [00:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u043E\u043B\u043E\u0442\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:19]execute_script... [00:22:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u043E\u043B\u043E\u0442\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:19]POST & json_proto [00:22:19]process_json_proto [00:22:19]json parsed OK: [00:22:19]protocol is kg_v1.0 [00:22:19]action value=open_shift [00:22:19]process_action open_shift [00:22:19]cmd_open_shift [00:22:19]MH_GetDate [00:22:19]Write to MH i2c: F0 00 00 85 9E 12 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 09 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 09 00 85 9E 00 C8 E4 1A 67 86 57 24 65 AE [00:22:19]GetLastDocTimeStamp 1729815529 [00:22:19]current date 1729815752 [00:22:19]FM_GetShiftState [00:22:19]SAM_PROTO_GetShiftState [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 13 01 00 [00:22:19]Write to MH i2c: E2 08 00 86 9E 80 13 01 00 00 00 00 00 A1 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0E 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0E 00 86 9E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AC [00:22:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:22:19]wFMCommunicate OK [00:22:19]SAM_PROTO_GetShiftState done [00:22:19]FM_GetShiftState done [00:22:19]KKMCreateOpenShiftDocument [00:22:19]Load OK [00:22:19]Malloc new data [00:22:19]MH_GetDate [00:22:19]Write to MH i2c: F0 00 00 87 9E 14 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 09 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 09 00 87 9E 00 C8 E4 1A 67 86 57 24 65 B0 [00:22:19]Malloc new data [00:22:19]KKMCreateOpenShiftDocument OK [00:22:19]KKMSetOpenShiftData OK [00:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:22:19]tlvbuf is 008A0FD0 [00:22:19]KKMLoadAndSignOpenShiftData [00:22:19]SAM_PROTO_ProcessDocument [00:22:19]wFMCommunicate request_size=9 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:22:19]Write to MH i2c: E2 0C 00 88 9E 80 15 01 00 04 00 02 00 CB 00 00 00 7A [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 88 9E 00 90 00 9A [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=23 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:22:19]Write to MH i2c: E2 1A 00 89 9E 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 9C [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 89 9E 00 90 00 9B [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=36 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 91 D0 BE D0 BB D0 BE D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [00:22:19]Write to MH i2c: E2 27 00 8A 9E 80 15 02 00 1F 00 FD 03 1B 00 D0 91 D0 BE D0 BB D0 BE D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 4A [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 8A 9E 00 90 00 9C [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=85 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 02 00 50 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 [00:22:19]Write to MH i2c: E2 58 00 8B 9E 80 15 02 00 50 00 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 00 00 AF [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 8B 9E 00 90 00 9D [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=51 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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:22:19]Write to MH i2c: E2 36 00 8C 9E 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 53 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 8C 9E 00 90 00 9E [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=13 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 02 00 08 F4 03 04 00 C8 E4 1A 67 [00:22:19]Write to MH i2c: E2 10 00 8D 9E 80 15 02 00 08 00 F4 03 04 00 C8 E4 1A 67 00 00 E3 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 8D 9E 00 90 00 9F [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=25 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 [00:22:19]Write to MH i2c: E2 1C 00 8E 9E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 00 00 0F [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 03 00 8E 9E 00 90 00 A0 [00:22:19]RAPDU: 90 00 [00:22:19]wFMCommunicate OK [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 15 03 00 [00:22:19]Write to MH i2c: E2 08 00 8F 9E 80 15 03 00 00 00 00 00 AE [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:20]OFD Sender: No OFD packet to send [00:22:20]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:22:20]Read from MH i2c: E2 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 38 00 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 38 00 8F 9E 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 21 24 01 00 0E 04 04 00 FF 01 00 00 35 04 06 00 26 D6 6B 79 13 61 90 00 19 [00:22:20]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 21 24 01 00 0E 04 04 00 FF 01 00 00 35 04 06 00 26 D6 6B 79 13 61 90 00 [00:22:20]wFMCommunicate OK [00:22:20]SAM_PROTO_ProcessDocument answer len = 51 [00:22:20]SAM_PROTO_ProcessDocument done [00:22:20]SetTLVBufToDocument [00:22:20]Processing tag 1209 (04B9) [00:22:20]Malloc new data [00:22:20]Processing tag 1041 (0411) [00:22:20]Processing tag 1040 (0410) [00:22:20]Malloc new data [00:22:20]Processing tag 1038 (040E) [00:22:20]Malloc new data [00:22:20]Processing tag 1077 (0435) [00:22:20]Malloc new data [00:22:20]SetTLVBufToDocument err=0 [00:22:20]KKMLoadAndSignOpenShiftData store KKM data [00:22:20]KKMLoadAndSignOpenShiftData err=0 [00:22:20]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Болотбекова А. Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 Место: АЗС № 142 "Партнер Нефть" 25.10.2024 00:22 Смена: 511 РНМ: 0000000000091691 ЗНМ: 0300000089 ФД: 74785 ФМ: 0000000000871795 ФПД: 42702367953761 [00:22:20]StoreToDocumentArchive [00:22:20]shift 511 fd 74785 [00:22:20]Create dir for shift 0511 [00:22:20]save to /storage/0511/doc_00074785 [00:22:20]save last doc name /storage/0511/doc_00074785 to /storage/kkm_last_doc_name [00:22:20]save OK [00:22:20]Clear old archive folders... [00:22:20]Remove dir /storage/0510 [00:22:20]opendir ok [00:22:20]file . [00:22:20]file .. [00:22:20]file doc_00074556 [00:22:20]remove file /storage/0510/doc_00074556 [00:22:20]file doc_00074557 [00:22:20]remove file /storage/0510/doc_00074557 [00:22:20]file doc_00074558 [00:22:20]remove file /storage/0510/doc_00074558 [00:22:20]file doc_00074559 [00:22:20]remove file /storage/0510/doc_00074559 [00:22:20]file doc_00074560 [00:22:20]remove file /storage/0510/doc_00074560 [00:22:20]file doc_00074561 [00:22:20]remove file /storage/0510/doc_00074561 [00:22:20]file doc_00074562 [00:22:20]remove file /storage/0510/doc_00074562 [00:22:20]file doc_00074563 [00:22:20]remove file /storage/0510/doc_00074563 [00:22:20]file doc_00074564 [00:22:20]remove file /storage/0510/doc_00074564 [00:22:20]file doc_00074565 [00:22:20]remove file /storage/0510/doc_00074565 [00:22:20]file doc_00074566 [00:22:20]remove file /storage/0510/doc_00074566 [00:22:20]file doc_00074567 [00:22:20]remove file /storage/0510/doc_00074567 [00:22:20]file doc_00074568 [00:22:20]remove file /storage/0510/doc_00074568 [00:22:20]file doc_00074569 [00:22:20]remove file /storage/0510/doc_00074569 [00:22:20]file doc_00074570 [00:22:20]remove file /storage/0510/doc_00074570 [00:22:20]file doc_00074571 [00:22:20]remove file /storage/0510/doc_00074571 [00:22:20]file doc_00074572 [00:22:20]remove file /storage/0510/doc_00074572 [00:22:20]file doc_00074573 [00:22:20]remove file /storage/0510/doc_00074573 [00:22:20]file doc_00074574 [00:22:20]remove file /storage/0510/doc_00074574 [00:22:20]file doc_00074575 [00:22:20]remove file /storage/0510/doc_00074575 [00:22:20]file doc_00074576 [00:22:20]remove file /storage/0510/doc_00074576 [00:22:20]file doc_00074577 [00:22:20]remove file /storage/0510/doc_00074577 [00:22:20]file doc_00074578 [00:22:20]remove file /storage/0510/doc_00074578 [00:22:20]file doc_00074579 [00:22:20]remove file /storage/0510/doc_00074579 [00:22:20]file doc_00074580 [00:22:20]remove file /storage/0510/doc_00074580 [00:22:20]file doc_00074581 [00:22:20]remove file /storage/0510/doc_00074581 [00:22:20]file doc_00074582 [00:22:20]remove file /storage/0510/doc_00074582 [00:22:20]file doc_00074583 [00:22:20]remove file /storage/0510/doc_00074583 [00:22:20]file doc_00074584 [00:22:20]remove file /storage/0510/doc_00074584 [00:22:20]file doc_00074585 [00:22:20]remove file /storage/0510/doc_00074585 [00:22:20]file doc_00074586 [00:22:20]remove file /storage/0510/doc_00074586 [00:22:20]file doc_00074587 [00:22:20]remove file /storage/0510/doc_00074587 [00:22:20]file doc_00074588 [00:22:20]remove file /storage/0510/doc_00074588 [00:22:20]file doc_00074589 [00:22:20]remove file /storage/0510/doc_00074589 [00:22:20]file doc_00074590 [00:22:20]remove file /storage/0510/doc_00074590 [00:22:20]file doc_00074591 [00:22:20]remove file /storage/0510/doc_00074591 [00:22:20]file doc_00074592 [00:22:20]remove file /storage/0510/doc_00074592 [00:22:20]file doc_00074593 [00:22:20]remove file /storage/0510/doc_00074593 [00:22:20]file doc_00074594 [00:22:20]remove file /storage/0510/doc_00074594 [00:22:20]file doc_00074595 [00:22:20]remove file /storage/0510/doc_00074595 [00:22:20]file doc_00074596 [00:22:20]remove file /storage/0510/doc_00074596 [00:22:20]file doc_00074597 [00:22:20]remove file /storage/0510/doc_00074597 [00:22:20]file doc_00074598 [00:22:20]remove file /storage/0510/doc_00074598 [00:22:20]file doc_00074599 [00:22:20]remove file /storage/0510/doc_00074599 [00:22:20]file doc_00074600 [00:22:20]remove file /storage/0510/doc_00074600 [00:22:20]file doc_00074601 [00:22:20]remove file /storage/0510/doc_00074601 [00:22:20]file doc_00074602 [00:22:20]remove file /storage/0510/doc_00074602 [00:22:20]file doc_00074603 [00:22:20]remove file /storage/0510/doc_00074603 [00:22:20]file doc_00074604 [00:22:20]remove file /storage/0510/doc_00074604 [00:22:20]file doc_00074605 [00:22:20]remove file /storage/0510/doc_00074605 [00:22:20]file doc_00074606 [00:22:20]remove file /storage/0510/doc_00074606 [00:22:20]file doc_00074607 [00:22:20]remove file /storage/0510/doc_00074607 [00:22:20]file doc_00074608 [00:22:20]remove file /storage/0510/doc_00074608 [00:22:20]file doc_00074609 [00:22:20]remove file /storage/0510/doc_00074609 [00:22:20]file doc_00074610 [00:22:20]remove file /storage/0510/doc_00074610 [00:22:20]file doc_00074611 [00:22:20]remove file /storage/0510/doc_00074611 [00:22:20]file doc_00074612 [00:22:20]remove file /storage/0510/doc_00074612 [00:22:20]file doc_00074613 [00:22:20]remove file /storage/0510/doc_00074613 [00:22:20]file doc_00074614 [00:22:20]remove file /storage/0510/doc_00074614 [00:22:20]file doc_00074615 [00:22:20]remove file /storage/0510/doc_00074615 [00:22:20]file doc_00074616 [00:22:20]remove file /storage/0510/doc_00074616 [00:22:20]file doc_00074617 [00:22:20]remove file /storage/0510/doc_00074617 [00:22:20]file doc_00074618 [00:22:20]remove file /storage/0510/doc_00074618 [00:22:20]file doc_00074619 [00:22:20]remove file /storage/0510/doc_00074619 [00:22:20]file doc_00074620 [00:22:20]remove file /storage/0510/doc_00074620 [00:22:20]file doc_00074621 [00:22:20]remove file /storage/0510/doc_00074621 [00:22:20]file doc_00074622 [00:22:20]remove file /storage/0510/doc_00074622 [00:22:20]file doc_00074623 [00:22:20]remove file /storage/0510/doc_00074623 [00:22:20]file doc_00074624 [00:22:20]remove file /storage/0510/doc_00074624 [00:22:20]file doc_00074625 [00:22:20]remove file /storage/0510/doc_00074625 [00:22:20]file doc_00074626 [00:22:20]remove file /storage/0510/doc_00074626 [00:22:20]file doc_00074627 [00:22:20]remove file /storage/0510/doc_00074627 [00:22:20]file doc_00074628 [00:22:20]remove file /storage/0510/doc_00074628 [00:22:20]file doc_00074629 [00:22:20]remove file /storage/0510/doc_00074629 [00:22:20]file doc_00074630 [00:22:20]remove file /storage/0510/doc_00074630 [00:22:20]file doc_00074631 [00:22:20]remove file /storage/0510/doc_00074631 [00:22:20]file doc_00074632 [00:22:20]remove file /storage/0510/doc_00074632 [00:22:20]file doc_00074633 [00:22:20]remove file /storage/0510/doc_00074633 [00:22:20]file doc_00074634 [00:22:20]remove file /storage/0510/doc_00074634 [00:22:20]file doc_00074635 [00:22:20]remove file /storage/0510/doc_00074635 [00:22:20]file doc_00074636 [00:22:20]remove file /storage/0510/doc_00074636 [00:22:20]file doc_00074637 [00:22:20]remove file /storage/0510/doc_00074637 [00:22:20]file doc_00074638 [00:22:20]remove file /storage/0510/doc_00074638 [00:22:20]file doc_00074639 [00:22:20]remove file /storage/0510/doc_00074639 [00:22:20]file doc_00074640 [00:22:20]remove file /storage/0510/doc_00074640 [00:22:20]file doc_00074641 [00:22:20]remove file /storage/0510/doc_00074641 [00:22:20]file doc_00074642 [00:22:20]remove file /storage/0510/doc_00074642 [00:22:20]file doc_00074643 [00:22:20]remove file /storage/0510/doc_00074643 [00:22:20]file doc_00074644 [00:22:20]remove file /storage/0510/doc_00074644 [00:22:20]file doc_00074645 [00:22:20]remove file /storage/0510/doc_00074645 [00:22:20]file doc_00074646 [00:22:20]remove file /storage/0510/doc_00074646 [00:22:20]file doc_00074647 [00:22:20]remove file /storage/0510/doc_00074647 [00:22:20]file doc_00074648 [00:22:20]remove file /storage/0510/doc_00074648 [00:22:20]file doc_00074649 [00:22:20]remove file /storage/0510/doc_00074649 [00:22:20]file doc_00074650 [00:22:20]remove file /storage/0510/doc_00074650 [00:22:20]file doc_00074651 [00:22:20]remove file /storage/0510/doc_00074651 [00:22:20]file doc_00074652 [00:22:20]remove file /storage/0510/doc_00074652 [00:22:20]file doc_00074653 [00:22:20]remove file /storage/0510/doc_00074653 [00:22:20]file doc_00074654 [00:22:20]remove file /storage/0510/doc_00074654 [00:22:20]file doc_00074655 [00:22:20]remove file /storage/0510/doc_00074655 [00:22:20]file doc_00074656 [00:22:20]remove file /storage/0510/doc_00074656 [00:22:20]file doc_00074657 [00:22:20]remove file /storage/0510/doc_00074657 [00:22:20]file doc_00074658 [00:22:20]remove file /storage/0510/doc_00074658 [00:22:20]file doc_00074659 [00:22:20]remove file /storage/0510/doc_00074659 [00:22:20]file doc_00074660 [00:22:20]remove file /storage/0510/doc_00074660 [00:22:20]file doc_00074661 [00:22:20]remove file /storage/0510/doc_00074661 [00:22:20]file doc_00074662 [00:22:20]remove file /storage/0510/doc_00074662 [00:22:20]file doc_00074663 [00:22:20]remove file /storage/0510/doc_00074663 [00:22:20]file doc_00074664 [00:22:20]remove file /storage/0510/doc_00074664 [00:22:20]file doc_00074665 [00:22:20]remove file /storage/0510/doc_00074665 [00:22:20]file doc_00074666 [00:22:20]remove file /storage/0510/doc_00074666 [00:22:20]file doc_00074667 [00:22:20]remove file /storage/0510/doc_00074667 [00:22:20]file doc_00074668 [00:22:20]remove file /storage/0510/doc_00074668 [00:22:20]file doc_00074669 [00:22:20]remove file /storage/0510/doc_00074669 [00:22:20]file doc_00074670 [00:22:20]remove file /storage/0510/doc_00074670 [00:22:20]file doc_00074671 [00:22:20]remove file /storage/0510/doc_00074671 [00:22:20]file doc_00074672 [00:22:20]remove file /storage/0510/doc_00074672 [00:22:20]file doc_00074673 [00:22:20]remove file /storage/0510/doc_00074673 [00:22:20]file doc_00074674 [00:22:20]remove file /storage/0510/doc_00074674 [00:22:20]file doc_00074675 [00:22:20]remove file /storage/0510/doc_00074675 [00:22:20]file doc_00074676 [00:22:20]remove file /storage/0510/doc_00074676 [00:22:20]file doc_00074677 [00:22:20]remove file /storage/0510/doc_00074677 [00:22:20]file doc_00074678 [00:22:20]remove file /storage/0510/doc_00074678 [00:22:20]file doc_00074679 [00:22:20]remove file /storage/0510/doc_00074679 [00:22:20]file doc_00074680 [00:22:20]remove file /storage/0510/doc_00074680 [00:22:20]file doc_00074681 [00:22:20]remove file /storage/0510/doc_00074681 [00:22:20]file doc_00074682 [00:22:20]remove file /storage/0510/doc_00074682 [00:22:20]file doc_00074683 [00:22:20]remove file /storage/0510/doc_00074683 [00:22:20]file doc_00074684 [00:22:20]remove file /storage/0510/doc_00074684 [00:22:20]file doc_00074685 [00:22:20]remove file /storage/0510/doc_00074685 [00:22:20]file doc_00074686 [00:22:20]remove file /storage/0510/doc_00074686 [00:22:20]file doc_00074687 [00:22:20]remove file /storage/0510/doc_00074687 [00:22:20]file doc_00074688 [00:22:20]remove file /storage/0510/doc_00074688 [00:22:20]file doc_00074689 [00:22:20]remove file /storage/0510/doc_00074689 [00:22:20]file doc_00074690 [00:22:20]remove file /storage/0510/doc_00074690 [00:22:20]file doc_00074691 [00:22:20]remove file /storage/0510/doc_00074691 [00:22:20]file doc_00074692 [00:22:20]remove file /storage/0510/doc_00074692 [00:22:20]file doc_00074693 [00:22:20]remove file /storage/0510/doc_00074693 [00:22:20]file doc_00074694 [00:22:20]remove file /storage/0510/doc_00074694 [00:22:20]file doc_00074695 [00:22:20]remove file /storage/0510/doc_00074695 [00:22:20]file doc_00074696 [00:22:20]remove file /storage/0510/doc_00074696 [00:22:20]file doc_00074697 [00:22:20]remove file /storage/0510/doc_00074697 [00:22:20]file doc_00074698 [00:22:20]remove file /storage/0510/doc_00074698 [00:22:20]file doc_00074699 [00:22:20]remove file /storage/0510/doc_00074699 [00:22:20]file doc_00074700 [00:22:20]remove file /storage/0510/doc_00074700 [00:22:20]file doc_00074701 [00:22:20]remove file /storage/0510/doc_00074701 [00:22:20]file doc_00074702 [00:22:20]remove file /storage/0510/doc_00074702 [00:22:20]file doc_00074703 [00:22:20]remove file /storage/0510/doc_00074703 [00:22:20]file doc_00074704 [00:22:20]remove file /storage/0510/doc_00074704 [00:22:20]file doc_00074705 [00:22:20]remove file /storage/0510/doc_00074705 [00:22:20]file doc_00074706 [00:22:20]remove file /storage/0510/doc_00074706 [00:22:20]file doc_00074707 [00:22:20]remove file /storage/0510/doc_00074707 [00:22:20]file doc_00074708 [00:22:20]remove file /storage/0510/doc_00074708 [00:22:21]file doc_00074709 [00:22:21]remove file /storage/0510/doc_00074709 [00:22:21]file doc_00074710 [00:22:21]remove file /storage/0510/doc_00074710 [00:22:21]file doc_00074711 [00:22:21]remove file /storage/0510/doc_00074711 [00:22:21]file doc_00074712 [00:22:21]remove file /storage/0510/doc_00074712 [00:22:21]file doc_00074713 [00:22:21]remove file /storage/0510/doc_00074713 [00:22:21]file doc_00074714 [00:22:21]remove file /storage/0510/doc_00074714 [00:22:21]file doc_00074715 [00:22:21]remove file /storage/0510/doc_00074715 [00:22:21]file doc_00074716 [00:22:21]remove file /storage/0510/doc_00074716 [00:22:21]file doc_00074717 [00:22:21]remove file /storage/0510/doc_00074717 [00:22:21]file doc_00074718 [00:22:21]remove file /storage/0510/doc_00074718 [00:22:21]file doc_00074719 [00:22:21]remove file /storage/0510/doc_00074719 [00:22:21]file doc_00074720 [00:22:21]remove file /storage/0510/doc_00074720 [00:22:21]file doc_00074721 [00:22:21]remove file /storage/0510/doc_00074721 [00:22:21]file doc_00074722 [00:22:21]remove file /storage/0510/doc_00074722 [00:22:21]file doc_00074723 [00:22:21]remove file /storage/0510/doc_00074723 [00:22:21]file doc_00074724 [00:22:21]remove file /storage/0510/doc_00074724 [00:22:21]file doc_00074725 [00:22:21]remove file /storage/0510/doc_00074725 [00:22:21]file doc_00074726 [00:22:21]remove file /storage/0510/doc_00074726 [00:22:21]file doc_00074727 [00:22:21]remove file /storage/0510/doc_00074727 [00:22:21]file doc_00074728 [00:22:21]remove file /storage/0510/doc_00074728 [00:22:21]file doc_00074729 [00:22:21]remove file /storage/0510/doc_00074729 [00:22:21]file doc_00074730 [00:22:21]remove file /storage/0510/doc_00074730 [00:22:21]file doc_00074731 [00:22:21]remove file /storage/0510/doc_00074731 [00:22:21]file doc_00074732 [00:22:21]remove file /storage/0510/doc_00074732 [00:22:21]file doc_00074733 [00:22:21]remove file /storage/0510/doc_00074733 [00:22:21]file doc_00074734 [00:22:21]remove file /storage/0510/doc_00074734 [00:22:21]file doc_00074735 [00:22:21]remove file /storage/0510/doc_00074735 [00:22:21]file doc_00074736 [00:22:21]remove file /storage/0510/doc_00074736 [00:22:21]file doc_00074737 [00:22:21]remove file /storage/0510/doc_00074737 [00:22:21]file doc_00074738 [00:22:21]remove file /storage/0510/doc_00074738 [00:22:21]file doc_00074739 [00:22:21]remove file /storage/0510/doc_00074739 [00:22:21]file doc_00074740 [00:22:21]remove file /storage/0510/doc_00074740 [00:22:21]file doc_00074741 [00:22:21]remove file /storage/0510/doc_00074741 [00:22:21]file doc_00074742 [00:22:21]remove file /storage/0510/doc_00074742 [00:22:21]file doc_00074743 [00:22:21]remove file /storage/0510/doc_00074743 [00:22:21]file doc_00074744 [00:22:21]remove file /storage/0510/doc_00074744 [00:22:21]file doc_00074745 [00:22:21]remove file /storage/0510/doc_00074745 [00:22:21]file doc_00074746 [00:22:21]remove file /storage/0510/doc_00074746 [00:22:21]file doc_00074747 [00:22:21]remove file /storage/0510/doc_00074747 [00:22:21]file doc_00074748 [00:22:21]remove file /storage/0510/doc_00074748 [00:22:21]file doc_00074749 [00:22:21]remove file /storage/0510/doc_00074749 [00:22:21]file doc_00074750 [00:22:21]remove file /storage/0510/doc_00074750 [00:22:21]file doc_00074751 [00:22:21]remove file /storage/0510/doc_00074751 [00:22:21]file doc_00074752 [00:22:21]remove file /storage/0510/doc_00074752 [00:22:21]file doc_00074753 [00:22:21]remove file /storage/0510/doc_00074753 [00:22:21]file doc_00074754 [00:22:21]remove file /storage/0510/doc_00074754 [00:22:21]file doc_00074755 [00:22:21]remove file /storage/0510/doc_00074755 [00:22:21]file doc_00074756 [00:22:21]remove file /storage/0510/doc_00074756 [00:22:21]file doc_00074757 [00:22:21]remove file /storage/0510/doc_00074757 [00:22:21]file doc_00074758 [00:22:21]remove file /storage/0510/doc_00074758 [00:22:21]file doc_00074759 [00:22:21]remove file /storage/0510/doc_00074759 [00:22:21]file doc_00074760 [00:22:21]remove file /storage/0510/doc_00074760 [00:22:21]file doc_00074761 [00:22:21]remove file /storage/0510/doc_00074761 [00:22:21]file doc_00074762 [00:22:21]remove file /storage/0510/doc_00074762 [00:22:21]file doc_00074763 [00:22:21]remove file /storage/0510/doc_00074763 [00:22:21]file doc_00074764 [00:22:21]remove file /storage/0510/doc_00074764 [00:22:21]file doc_00074765 [00:22:21]remove file /storage/0510/doc_00074765 [00:22:21]file doc_00074766 [00:22:21]remove file /storage/0510/doc_00074766 [00:22:21]file doc_00074767 [00:22:21]remove file /storage/0510/doc_00074767 [00:22:21]file doc_00074768 [00:22:21]remove file /storage/0510/doc_00074768 [00:22:21]file doc_00074769 [00:22:21]remove file /storage/0510/doc_00074769 [00:22:21]file doc_00074770 [00:22:21]remove file /storage/0510/doc_00074770 [00:22:21]file doc_00074771 [00:22:21]remove file /storage/0510/doc_00074771 [00:22:21]file doc_00074772 [00:22:21]remove file /storage/0510/doc_00074772 [00:22:21]file doc_00074773 [00:22:21]remove file /storage/0510/doc_00074773 [00:22:21]file doc_00074774 [00:22:21]remove file /storage/0510/doc_00074774 [00:22:21]file doc_00074775 [00:22:21]remove file /storage/0510/doc_00074775 [00:22:21]file doc_00074776 [00:22:21]remove file /storage/0510/doc_00074776 [00:22:21]file doc_00074777 [00:22:21]remove file /storage/0510/doc_00074777 [00:22:21]file doc_00074778 [00:22:21]remove file /storage/0510/doc_00074778 [00:22:21]file doc_00074779 [00:22:21]remove file /storage/0510/doc_00074779 [00:22:21]file doc_00074780 [00:22:21]remove file /storage/0510/doc_00074780 [00:22:21]file doc_00074781 [00:22:21]remove file /storage/0510/doc_00074781 [00:22:21]file doc_00074782 [00:22:21]remove file /storage/0510/doc_00074782 [00:22:21]file doc_00074783 [00:22:21]remove file /storage/0510/doc_00074783 [00:22:21]file doc_00074784 [00:22:21]remove file /storage/0510/doc_00074784 [00:22:21]remove dir /storage/0510 [00:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:22:21]tlvbuf is 009297A0 [00:22:21]SAM_PROTO_ClearQueue [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 09 00 00 [00:22:21]Write to MH i2c: E2 08 00 90 9E 80 09 00 00 00 00 00 00 A0 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 90 9E 00 90 00 A2 [00:22:21]RAPDU: 90 00 [00:22:21]wFMCommunicate OK [00:22:21]SAM_PROTO_ClearQueue done [00:22:21]KKMCreateOFDPacket [00:22:21]OFDProtocolAddRootSTLVToBuf [00:22:21]FM_MakeSignedData [00:22:21]FM_MakeSignedData [00:22:21]SAM_PROTO_SignData [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 0D 01 02 [00:22:21]Write to MH i2c: E2 08 00 91 9E 80 0D 01 02 00 00 00 00 A8 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 91 9E 00 90 00 A3 [00:22:21]RAPDU: 90 00 [00:22:21]wFMCommunicate OK [00:22:21]wFMCommunicate request_size=255 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 0D 02 02 FA 02 00 FE 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 1B 00 D0 91 D0 BE D0 BB D0 BE D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 C8 E4 1A 67 0E 04 04 00 FF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 [00:22:21]Write to MH i2c: E2 02 01 92 9E 80 0D 02 02 FA 00 02 00 FE 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 1B 00 D0 91 D0 BE D0 BB D0 BE D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 C8 E4 1A 67 0E 04 04 00 FF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 00 00 A0 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 92 9E 00 90 00 A4 [00:22:22]RAPDU: 90 00 [00:22:22]wFMCommunicate OK [00:22:22]wFMCommunicate request_size=13 [00:22:22]MH_SAM_APDU [00:22:22]CAPDU: 80 0D 02 02 08 06 00 26 D6 6B 79 13 61 [00:22:22]Write to MH i2c: E2 10 00 93 9E 80 0D 02 02 08 00 06 00 26 D6 6B 79 13 61 00 00 15 [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 93 9E 00 90 00 A5 [00:22:22]RAPDU: 90 00 [00:22:22]wFMCommunicate OK [00:22:22]wFMCommunicate request_size=4 [00:22:22]MH_SAM_APDU [00:22:22]CAPDU: 80 0D 03 02 [00:22:22]Write to MH i2c: E2 08 00 94 9E 80 0D 03 02 00 00 00 00 AD [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 0B 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 0B 00 94 9E 00 57 2D F1 13 5B 2D AF C6 90 00 33 [00:22:22]RAPDU: 57 2D F1 13 5B 2D AF C6 90 00 [00:22:22]wFMCommunicate OK [00:22:22]SAM_PROTO_SignData done [00:22:22]FM_MakeSignedData done [00:22:22]CreateOFDProtocolMessage [00:22:22]wFMCommunicate request_size=4 [00:22:22]MH_SAM_APDU [00:22:22]CAPDU: 80 11 00 00 [00:22:22]Write to MH i2c: E2 08 00 95 9E 80 11 00 00 00 00 00 00 AD [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 17 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 17 00 95 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 05 [00:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:22:22]wFMCommunicate OK [00:22:22]CreateOFDProtocolMessage done [00:22:22]OFDSenderStorePacket 74785 [00:22:22]StoreOFDPacket docnum=74785 [00:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 12 01 00 00 07 7C 0A 01 93 60 5A 02 01 00 02 00 FE 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 1B 00 D0 91 D0 BE D0 BB D0 BE D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 C8 E4 1A 67 0E 04 04 00 FF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 26 D6 6B 79 13 61 57 2D F1 13 5B 2D AF C6 [00:22:22]CheckFolder [00:22:22]dirname=/storage/ofd_packets [00:22:22]CheckFolder done [00:22:22]ProducePacketName [00:22:22]name=ofd_packets/00074785 [00:22:22]NVStorageSaveData ofd_packets/00074785 [00:22:22]File name is /storage/ofd_packets/00074785 [00:22:22]Write 304 bytes [00:22:22]NVStorageSaveData done [00:22:22]OFDSenderStorePacket done [00:22:22]KKMCreateOFDPacket done [00:22:22]NVStorageSaveData kkm_last_timestamp [00:22:22]File name is /storage/kkm_last_timestamp [00:22:22]Write 4 bytes [00:22:22]NVStorageSaveData done [00:22:22]ExternCall_PrintAddStr [00:22:22]wPrintStart [00:22:22]Write to MH i2c: 01 00 00 96 9E 34 [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 07 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 07 00 96 9E 00 00 00 00 00 FF 0F 49 [00:22:22]RasterBufferAndPrint [00:22:22]line Отчет об открытии смены [00:22:22]line ФФД: 1.0 [00:22:22]line ИНН: 02508201610067 [00:22:22]line Кассир: Болотбекова А. [00:22:22]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:22:22]line Место: АЗС № 142 "Партнер Нефть" [00:22:22]line 25.10.2024 00:22 [00:22:22]line Смена: 511 [00:22:22]line РНМ: 0000000000091691 [00:22:22]line ЗНМ: 0300000089 [00:22:22]line ФД: 74785 [00:22:22]line ФМ: 0000000000871795 [00:22:22]line ФПД: 42702367953761 [00:22:22]written 0, free lines is 4095 [00:22:22]OFD Sender: Processing packet 74785 [packets to send 13, broken 12] [00:22:22]ProducePacketName [00:22:22]name=ofd_packets/00074785 [00:22:22]OFD Sender: To server: pG, [00:22:22]CommunicateWithHost lk.salyk.kg:30040 [00:22:22]ConnectInit lk.salyk.kg [00:22:22]Write to MH i2c: 01 00 00 A8 9E 46 [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 07 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 07 00 A8 9E 00 00 00 00 00 54 0E AF [00:22:22]RasterBufferAndPrint [00:22:22]line [00:22:22]line [00:22:22]line [00:22:22]line [00:22:22]line [00:22:22]written 0, free lines is 3676 [00:22:22]MH_Cut [00:22:22]Write to MH i2c: D1 01 00 AF 9E 01 1F [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: D1 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: D1 01 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: D1 01 00 AF 9E 00 1E [00:22:22]Write to MH i2c: 01 00 00 B0 9E 4E [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]Connected sock=11 [00:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 12 01 00 00 07 7C 0A 01 93 60 5A 02 01 00 02 00 FE 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 1B 00 D0 91 D0 BE D0 BB D0 BE D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 C8 E4 1A 67 0E 04 04 00 FF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 26 D6 6B 79 13 61 57 2D F1 13 5B 2D AF C6 [00:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 3E CD 47 00 9D 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 31 37 39 35 10 04 04 00 21 24 01 00 F4 03 04 00 4A 8C 1A 67 B6 04 01 00 00 DB 29 43 78 B0 DC 84 85 [00:22:22]CommunicateWithHost err = 0 [00:22:22]CheckOFDResponse [00:22:22]1017 (14) - 77093643461234 [00:22:22]1041 (16) - 0000000000871795 [00:22:22]1040 (4) - 74785 [00:22:22]1012 (4) - 24.10.2024 18:04 [00:22:22]1206 (1) - 0 [00:22:22]OFD Sender: Remove packet 74785 [00:22:22]ProducePacketName [00:22:22]name=ofd_packets/00074785 [00:22:22]NVStorageDeleteData [00:22:23]*** Cut start [00:22:23]*** Partial cut [00:22:23]*** CUTSNS_PIN = 1 [00:22:23]*** CUTSNS_PIN = 0 [00:22:23]*** Brake cut motor [00:22:23]OFD Sender: No OFD packet to send [00:22:23]Read from MH i2c: 01 [00:22:23]MH_I2C_Read... [00:22:23]*** Stop cut motor [00:22:23]*** Cut end [00:22:23]Read from MH i2c: 01 07 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: 01 07 00 B0 9E 00 00 00 00 00 FF 0F 63 [00:22:23]process_action open_shift done [00:22:23]requested_data is exist [00:22:23]produce_requested_data [00:22:23]requested_item fd.num is exist - process it [00:22:23]SAM_PROTO_GetFieldsCounters [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 13 00 00 [00:22:23]Write to MH i2c: E2 08 00 B1 9E 80 13 00 00 00 00 00 00 CB [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 62 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 62 00 B1 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 24 01 00 0E 04 04 00 FF 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 38 [00:22:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 24 01 00 0E 04 04 00 FF 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:22:23]wFMCommunicate OK [00:22:23]SAM_PROTO_GetFieldsCounters done [00:22:23]requested_item shift.num is exist - process it [00:22:23]requested_item shift.opened is exist - process it [00:22:23]req_shift_opened [00:22:23]FM_GetShiftState [00:22:23]SAM_PROTO_GetShiftState [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 13 01 00 [00:22:23]Write to MH i2c: E2 08 00 B2 9E 80 13 01 00 00 00 00 00 CD [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 0E 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 0E 00 B2 9E 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 06 [00:22:23]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:22:23]wFMCommunicate OK [00:22:23]SAM_PROTO_GetShiftState done [00:22:23]FM_GetShiftState done [00:22:23]req_shift_opened done [00:22:23]requested_item shift.open_date is exist - process it [00:22:23]req_shift_open_date [00:22:23]req_shift_open_date done [00:22:23]produce_requested_data done [00:22:23]produce_requested_data return {"fd.num":74785,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [00:22:23]process_action_free open_shift [00:22:23]json_value_free [00:22:23]json_value_free done [00:22:23]process_json_proto returns [00:22:23]Send response to host [00:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":74785,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [00:22:23]free response buf [00:22:23]execute_script done [00:22:23]execute_script returns [00:22:23]free content buf [00:22:23]Sock 8.Close socket [00:22:23]Sock 8.Thread stoped [00:22:23]accept exits with 9 [00:22:23]New connection [00:22:23]New thread 3066662244 created [00:22:23]Thread 3066805604 joined [00:22:23]Waiting for new connection... [00:22:23] Sock 9.Parse request [00:22:23]Sock 9.Check first char [00:22:23]Sock 9.First char is OK [00:22:23]request: POST /json_proto HTTP/1.0 [00:22:23]Method: POST [00:22:23]URL: /json_proto [00:22:23]Method is POST - this is cgi request [00:22:23]url: /json_proto [00:22:23]query_string will be loaded in cgi processing [00:22:23]execute_cgi json_proto POST (null) [00:22:23]execute_cgi path=json_proto method=POST [00:22:23]POST find Content-Length [00:22:23]Host: 172.17.39.131:8080 [00:22:23]Content-Length: 331 [00:22:23]Content-Type: application/json [00:22:23] [00:22:23]POST finish read [00:22:23]Found Content-Length = 331 [00:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:23]execute_script... [00:22:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:23]POST & json_proto [00:22:23]process_json_proto [00:22:23]json parsed OK: [00:22:23]protocol is kg_v1.0 [00:22:23]action value=get_value [00:22:23]process_action get_value [00:22:23]cmd_get_value [00:22:23]process_action get_value done [00:22:23]requested_data is exist [00:22:23]produce_requested_data [00:22:23]requested_item fm.sale.total is exist - process it [00:22:23]SAM_PROTO_GetFMData [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 13 03 00 [00:22:23]Write to MH i2c: E2 08 00 B3 9E 80 13 03 00 00 00 00 00 D0 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:24]Read from MH i2c: E2 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 FD 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 FD 00 B3 9E 00 C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 19 [00:22:24]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 23 20 01 00 69 04 A3 00 6F 04 04 00 16 20 01 00 B1 04 05 00 E5 DE D4 A6 01 70 04 05 00 B0 3D 0A 61 01 72 04 04 00 35 A1 CA 45 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 4A 75 EA 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 20 BE 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 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:22:24]wFMCommunicate OK [00:22:24]wFMCommunicate request_size=4 [00:22:24]MH_SAM_APDU [00:22:24]CAPDU: 80 17 00 00 [00:22:24]Write to MH i2c: E2 08 00 B4 9E 80 17 00 00 00 00 00 00 D2 [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:24]Read from MH i2c: E2 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 FD 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 FD 00 B4 9E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 7A [00:22:24]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:22:24]wFMCommunicate OK [00:22:24]wFMCommunicate request_size=4 [00:22:24]MH_SAM_APDU [00:22:24]CAPDU: 80 17 00 00 [00:22:24]Write to MH i2c: E2 08 00 B5 9E 80 17 00 00 00 00 00 00 D3 [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:25]Read from MH i2c: E2 [00:22:25]MH_I2C_Read... [00:22:25]Read from MH i2c: E2 FD 00 [00:22:25]MH_I2C_Read... [00:22:25]Read from MH i2c: E2 FD 00 B5 9E 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 73 [00:22:25]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:22:25]wFMCommunicate OK [00:22:25]wFMCommunicate request_size=4 [00:22:25]MH_SAM_APDU [00:22:25]CAPDU: 80 17 00 00 [00:22:25]Write to MH i2c: E2 08 00 B6 9E 80 17 00 00 00 00 00 00 D4 [00:22:25]Write i2c OK [00:22:25]MH_I2C_Read... [00:22:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:25]Read from MH i2c: E2 [00:22:25]MH_I2C_Read... [00:22:25]Read from MH i2c: E2 FD 00 [00:22:25]MH_I2C_Read... [00:22:25]Read from MH i2c: E2 FD 00 B6 9E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 59 [00:22:25]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:22:25]wFMCommunicate OK [00:22:25]wFMCommunicate request_size=4 [00:22:25]MH_SAM_APDU [00:22:25]CAPDU: 80 17 00 00 [00:22:25]Write to MH i2c: E2 08 00 B7 9E 80 17 00 00 00 00 00 00 D5 [00:22:25]Write i2c OK [00:22:25]MH_I2C_Read... [00:22:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:22:26]Read from MH i2c: E2 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 DE 00 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 DE 00 B7 9E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B4 [00:22:26]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:22:26]wFMCommunicate OK [00:22:26]SAM_PROTO_GetFMData done [00:22:26]requested_item fm.sale_refund.total is exist - process it [00:22:26]requested_item fm.buy.total is exist - process it [00:22:26]requested_item shift.sale.total is exist - process it [00:22:26]SAM_PROTO_GetShiftData [00:22:26]wFMCommunicate request_size=4 [00:22:26]MH_SAM_APDU [00:22:26]CAPDU: 80 13 02 00 [00:22:26]Write to MH i2c: E2 08 00 B8 9E 80 13 02 00 00 00 00 00 D4 [00:22:26]Write i2c OK [00:22:26]MH_I2C_Read... [00:22:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:26]Read from MH i2c: E2 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 FD 00 [00:22:26]MH_I2C_Read... [00:22:26]Read from MH i2c: E2 FD 00 B8 9E 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 47 [00:22:26]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:22:26]wFMCommunicate OK [00:22:26]wFMCommunicate request_size=4 [00:22:26]MH_SAM_APDU [00:22:26]CAPDU: 80 17 00 00 [00:22:26]Write to MH i2c: E2 08 00 B9 9E 80 17 00 00 00 00 00 00 D7 [00:22:26]Write i2c OK [00:22:26]MH_I2C_Read... [00:22:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:27]Read from MH i2c: E2 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: E2 FD 00 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: E2 FD 00 B9 9E 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 DF [00:22:27]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:22:27]wFMCommunicate OK [00:22:27]wFMCommunicate request_size=4 [00:22:27]MH_SAM_APDU [00:22:27]CAPDU: 80 17 00 00 [00:22:27]Write to MH i2c: E2 08 00 BA 9E 80 17 00 00 00 00 00 00 D8 [00:22:27]Write i2c OK [00:22:27]MH_I2C_Read... [00:22:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:27]Read from MH i2c: E2 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: E2 FD 00 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: E2 FD 00 BA 9E 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 AA [00:22:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:22:27]wFMCommunicate OK [00:22:27]wFMCommunicate request_size=4 [00:22:27]MH_SAM_APDU [00:22:27]CAPDU: 80 17 00 00 [00:22:27]Write to MH i2c: E2 08 00 BB 9E 80 17 00 00 00 00 00 00 D9 [00:22:27]Write i2c OK [00:22:27]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 FD 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 FD 00 BB 9E 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 4B [00:22:28]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:22:28]wFMCommunicate OK [00:22:28]wFMCommunicate request_size=4 [00:22:28]MH_SAM_APDU [00:22:28]CAPDU: 80 17 00 00 [00:22:28]Write to MH i2c: E2 08 00 BC 9E 80 17 00 00 00 00 00 00 DA [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 BD 00 [00:22:28]MH_I2C_Read... [00:22:28]OFD Sender: No OFD packet to send [00:22:28]Read from MH i2c: E2 BD 00 BC 9E 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 C0 [00:22:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:28]wFMCommunicate OK [00:22:28]SAM_PROTO_GetShiftData done [00:22:28]requested_item shift.sale.total_cash is exist - process it [00:22:28]requested_item shift.sale_refund.total is exist - process it [00:22:28]requested_item shift.sale_refund.total_cash is exist - process it [00:22:28]requested_item shift.buy.total is exist - process it [00:22:28]requested_item shift.buy.total_cash is exist - process it [00:22:28]produce_requested_data done [00:22:28]produce_requested_data return {"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.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:22:28]process_action_free get_value [00:22:28]json_value_free [00:22:28]json_value_free done [00:22:28]process_json_proto returns [00:22:28]Send response to host [00:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70939358.45,"fm.sale_refund.total":53731.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:22:28]free response buf [00:22:28]execute_script done [00:22:28]execute_script returns [00:22:28]free content buf [00:22:28]Sock 9.Close socket [00:22:28]Sock 9.Thread stoped [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:52]int [00:22:52]Write to MH i2c: 01 00 00 BD 9E 5B [00:22:52]*** FLAG_PRN_KEY set [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 BD 9E 00 08 00 00 00 FF 0F 78 [00:22:52]state=0 [00:22:52]Key pressed [00:22:52]Feed [00:22:52]Write to MH i2c: D8 00 00 BE 9E 33 [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: D8 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: D8 01 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: D8 01 00 BE 9E 00 34 [00:22:52]int [00:22:52]Write to MH i2c: 01 00 00 BF 9E 5D [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 BF 9E 00 48 00 00 00 3C 00 E8 [00:22:52]state=2 [00:22:52]Key pressed [00:22:52]int [00:22:52]Write to MH i2c: 01 00 00 C0 9E 5E [00:22:52]*** FLAG_PRN_KEY reset [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 C0 9E 00 00 00 00 00 FC 0F 70 [00:22:52]state=2 [00:22:52]Stop feed [00:22:52]int [00:22:52]Write to MH i2c: 01 00 00 C1 9E 5F [00:22:52]*** FLAG_PRN_KEY set [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: 01 07 00 C1 9E 00 08 00 00 00 FF 0F 7C [00:22:52]state=0 [00:22:52]Key pressed [00:22:52]Feed [00:22:52]Write to MH i2c: D8 00 00 C2 9E 37 [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: D8 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: D8 01 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: D8 01 00 C2 9E 00 38 [00:22:53]int [00:22:53]Write to MH i2c: 01 00 00 C3 9E 61 [00:22:53]Write i2c OK [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: 01 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: 01 07 00 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: 01 07 00 C3 9E 00 48 00 00 00 3C 00 EC [00:22:53]state=2 [00:22:53]Key pressed [00:22:53]int [00:22:53]Write to MH i2c: 01 00 00 C4 9E 62 [00:22:53]*** FLAG_PRN_KEY reset [00:22:53]Write i2c OK [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: 01 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: 01 07 00 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: 01 07 00 C4 9E 00 00 00 00 00 F8 0F 70 [00:22:53]state=2 [00:22:53]Stop feed [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:11]accept exits with 8 [00:29:11]New connection [00:29:11]New thread 3066805604 created [00:29:11]Thread 3066662244 joined [00:29:11]Waiting for new connection... [00:29:11] Sock 8.Parse request [00:29:11]Sock 8.Check first char [00:29:11]Sock 8.First char is OK [00:29:11]request: POST /json_proto HTTP/1.0 [00:29:11]Method: POST [00:29:11]URL: /json_proto [00:29:11]Method is POST - this is cgi request [00:29:11]url: /json_proto [00:29:11]query_string will be loaded in cgi processing [00:29:11]execute_cgi json_proto POST (null) [00:29:11]execute_cgi path=json_proto method=POST [00:29:11]POST find Content-Length [00:29:11]Host: 172.17.39.131:8080 [00:29:11]Content-Length: 798 [00:29:11]Content-Type: application/json [00:29:11] [00:29:11]POST finish read [00:29:11]Found Content-Length = 798 [00:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 88.680, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:11]execute_script... [00:29:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 88.680, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:11]POST & json_proto [00:29:11]process_json_proto [00:29:11]json parsed OK: [00:29:11]protocol is kg_v1.0 [00:29:11]action value=close_receipt [00:29:11]process_action close_receipt [00:29:11]cmd_close_receipt [00:29:11]MH_GetDate [00:29:11]Write to MH i2c: F0 00 00 C5 9E 52 [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: F0 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: F0 09 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: F0 09 00 C5 9E 00 64 E6 1A 67 86 57 24 65 8C [00:29:11]GetLastDocTimeStamp 1729815752 [00:29:11]current date 1729816164 [00:29:11]FM_GetShiftState [00:29:11]SAM_PROTO_GetShiftState [00:29:11]wFMCommunicate request_size=4 [00:29:11]MH_SAM_APDU [00:29:11]CAPDU: 80 13 01 00 [00:29:11]Write to MH i2c: E2 08 00 C6 9E 80 13 01 00 00 00 00 00 E1 [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 0E 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 0E 00 C6 9E 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 1A [00:29:11]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:29:11]wFMCommunicate OK [00:29:11]SAM_PROTO_GetShiftState done [00:29:11]FM_GetShiftState done [00:29:11]opened in 1729815752 [00:29:11]opened+sec_in_day 1729902152 [00:29:11]quantity*price = 0 [00:29:11]sum+1 = 1 [00:29:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 1 25.10.2024 00:29 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 82575 ФМ: 0000000000871795 ФД: 74786 ФПД: 115013150657930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002924&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74786&fm=115013150657930&tin=02508201610067®Number=0000000000091691&sum=0 [00:29:12]StoreToDocumentArchive [00:29:12]shift 511 fd 74786 [00:29:12]save to /storage/0511/doc_00074786 [00:29:12]save last doc name /storage/0511/doc_00074786 to /storage/kkm_last_doc_name [00:29:12]save OK [00:29:12]Clear old archive folders... [00:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:29:12]tlvbuf is 00893DB0 [00:29:12]SAM_PROTO_ClearQueue [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 09 00 00 [00:29:12]Write to MH i2c: E2 08 00 D3 9E 80 09 00 00 00 00 00 00 E3 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 D3 9E 00 90 00 E5 [00:29:12]RAPDU: 90 00 [00:29:12]wFMCommunicate OK [00:29:12]SAM_PROTO_ClearQueue done [00:29:12]KKMCreateOFDPacket [00:29:12]OFDProtocolAddRootSTLVToBuf [00:29:12]FM_MakeSignedData [00:29:12]FM_MakeSignedData [00:29:12]SAM_PROTO_SignData [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 0D 01 02 [00:29:12]Write to MH i2c: E2 08 00 D4 9E 80 0D 01 02 00 00 00 00 EB [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 D4 9E 00 90 00 E6 [00:29:12]RAPDU: 90 00 [00:29:12]wFMCommunicate OK [00:29:12]wFMCommunicate request_size=255 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 68 5A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 64 E6 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 24 01 [00:29:12]Write to MH i2c: E2 02 01 D5 9E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 68 5A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 64 E6 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 24 01 00 00 5C [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 D5 9E 00 90 00 E7 [00:29:12]RAPDU: 90 00 [00:29:12]wFMCommunicate OK [00:29:12]wFMCommunicate request_size=16 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 68 9A 95 FD 4D 8A [00:29:12]Write to MH i2c: E2 13 00 D6 9E 80 0D 02 02 0B 00 00 35 04 06 00 68 9A 95 FD 4D 8A 00 00 AE [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 03 00 D6 9E 00 90 00 E8 [00:29:12]RAPDU: 90 00 [00:29:12]wFMCommunicate OK [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 0D 03 02 [00:29:12]Write to MH i2c: E2 08 00 D7 9E 80 0D 03 02 00 00 00 00 F0 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 0B 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 0B 00 D7 9E 00 7F B9 99 A4 80 33 A2 2F 90 00 EA [00:29:12]RAPDU: 7F B9 99 A4 80 33 A2 2F 90 00 [00:29:12]wFMCommunicate OK [00:29:12]SAM_PROTO_SignData done [00:29:12]FM_MakeSignedData done [00:29:12]CreateOFDProtocolMessage [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 11 00 00 [00:29:12]Write to MH i2c: E2 08 00 D8 9E 80 11 00 00 00 00 00 00 F0 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 17 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 17 00 D8 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 48 [00:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:29:12]wFMCommunicate OK [00:29:12]CreateOFDProtocolMessage done [00:29:12]OFDSenderStorePacket 74786 [00:29:12]StoreOFDPacket docnum=74786 [00:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 53 F4 0D 01 0F 49 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 68 5A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 64 E6 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 24 01 00 35 04 06 00 68 9A 95 FD 4D 8A 7F B9 99 A4 80 33 A2 2F [00:29:12]CheckFolder [00:29:12]dirname=/storage/ofd_packets [00:29:12]CheckFolder done [00:29:12]ProducePacketName [00:29:12]name=ofd_packets/00074786 [00:29:12]NVStorageSaveData ofd_packets/00074786 [00:29:12]File name is /storage/ofd_packets/00074786 [00:29:12]Write 307 bytes [00:29:12]NVStorageSaveData done [00:29:12]OFDSenderStorePacket done [00:29:12]KKMCreateOFDPacket done [00:29:12]NVStorageSaveData kkm_last_timestamp [00:29:12]File name is /storage/kkm_last_timestamp [00:29:12]Write 4 bytes [00:29:12]NVStorageSaveData done [00:29:12]ExternCall_PrintAddStr [00:29:12]wPrintStart [00:29:12]Write to MH i2c: 01 00 00 D9 9E 77 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: 01 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: 01 07 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: 01 07 00 D9 9E 00 00 00 00 00 FF 0F 8C [00:29:12]RasterBufferAndPrint [00:29:12]line Счет N : (1)190754 [00:29:12]line ИНН: 02508201610067 [00:29:12]line Контрольно-Кассовый Чек [00:29:12]line ПРОДАЖА [00:29:12]line ТРК (МРК, ГНК) : 32 [00:29:12]line Товар: 2710194240 [00:29:12]line D-ENERGY ДТ-К-2 [00:29:12]line 88.680 * 0.00 [00:29:12]line = 0.00 [00:29:12]line НДС 12% НСП 1% [00:29:12]line > о реализуемом товаре [00:29:12]line ИТОГО: 0.00 [00:29:12]line НСП 1% : 0.00 [00:29:12]line НДС 12% : 0.00 [00:29:12]line Наличными: 0.00 [00:29:12]line Безнал.: 0.00 [00:29:12]line Место: АЗС № 142 "Партнер Нефть" [00:29:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:29:12]line СНО: Общий режим [00:29:12]line Чек 1 25.10.2024 00:29 [00:29:12]line Смена: 511 ФФД: 1.0 [00:29:12]line ЗНМ: 0300000089 [00:29:12]line РНМ: 0000000000091691 [00:29:12]line Версия ККМ: 001 [00:29:12]line Талоны: Топливная Карта [00:29:12]line 82575 [00:29:12]line ФМ: 0000000000871795 [00:29:12]line ФД: 74786 [00:29:12]line ФПД: 115013150657930 [00:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002924&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74786&fm=115013150657930&tin=02508201610067®Number=0000000000091691&sum=0 [00:29:13]OFD Sender: Processing packet 74786 [packets to send 13, broken 12] [00:29:13]ProducePacketName [00:29:13]name=ofd_packets/00074786 [00:29:13]OFD Sender: To server: pG, [00:29:13]CommunicateWithHost lk.salyk.kg:30040 [00:29:13]ConnectInit lk.salyk.kg [00:29:13]written 0, free lines is 4095 [00:29:13]Connected sock=10 [00:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 53 F4 0D 01 0F 49 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 68 5A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 64 E6 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 24 01 00 35 04 06 00 68 9A 95 FD 4D 8A 7F B9 99 A4 80 33 A2 2F [00:29:13]Write to MH i2c: 01 00 00 03 9F A2 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: 01 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: 01 07 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: 01 07 00 03 9F 00 00 00 00 00 BA 0C 6F [00:29:13]RasterBufferAndPrint [00:29:13]line [00:29:13]line [00:29:13]line [00:29:13]line [00:29:13]line [00:29:13]written 0, free lines is 3266 [00:29:13]MH_Cut [00:29:13]Write to MH i2c: D1 01 00 0A 9F 01 7B [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: D1 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: D1 01 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: D1 01 00 0A 9F 00 7A [00:29:13]Write to MH i2c: 01 00 00 0B 9F AA [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E3 5E 47 00 13 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 31 37 39 35 10 04 04 00 22 24 01 00 F4 03 04 00 E5 8D 1A 67 B6 04 01 00 00 8E 4E BE F2 21 C3 B1 9A [00:29:13]CommunicateWithHost err = 0 [00:29:13]CheckOFDResponse [00:29:13]1017 (14) - 77093643461234 [00:29:13]1041 (16) - 0000000000871795 [00:29:13]1040 (4) - 74786 [00:29:13]1012 (4) - 24.10.2024 18:11 [00:29:13]1206 (1) - 0 [00:29:13]OFD Sender: Remove packet 74786 [00:29:13]ProducePacketName [00:29:13]name=ofd_packets/00074786 [00:29:13]NVStorageDeleteData [00:29:14]OFD Sender: No OFD packet to send [00:29:14]*** Cut start [00:29:14]*** Partial cut [00:29:14]*** CUTSNS_PIN = 1 [00:29:14]*** CUTSNS_PIN = 0 [00:29:14]*** Brake cut motor [00:29:15]Read from MH i2c: 01 [00:29:15]MH_I2C_Read... [00:29:15]*** Stop cut motor [00:29:15]*** Cut end [00:29:15]Read from MH i2c: 01 07 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: 01 07 00 0B 9F 00 00 00 00 00 FF 0F BF [00:29:15]process_action close_receipt done [00:29:15]requested_data is exist [00:29:15]produce_requested_data [00:29:15]requested_item fm.sn is exist - process it [00:29:15]wFMCommunicate request_size=4 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 11 00 00 [00:29:15]Write to MH i2c: E2 08 00 0C 9F 80 11 00 00 00 00 00 00 25 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 17 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 17 00 0C 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7D [00:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:29:15]wFMCommunicate OK [00:29:15]requested_item fd.num is exist - process it [00:29:15]SAM_PROTO_GetFieldsCounters [00:29:15]wFMCommunicate request_size=4 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 13 00 00 [00:29:15]Write to MH i2c: E2 08 00 0D 9F 80 13 00 00 00 00 00 00 28 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 62 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 62 00 0D 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 22 24 01 00 0E 04 04 00 FF 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 99 [00:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 22 24 01 00 0E 04 04 00 FF 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:29:15]wFMCommunicate OK [00:29:15]SAM_PROTO_GetFieldsCounters done [00:29:15]requested_item shift.num is exist - process it [00:29:15]requested_item shift.opened is exist - process it [00:29:15]req_shift_opened [00:29:15]FM_GetShiftState [00:29:15]SAM_PROTO_GetShiftState [00:29:15]wFMCommunicate request_size=4 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 13 01 00 [00:29:15]Write to MH i2c: E2 08 00 0E 9F 80 13 01 00 00 00 00 00 2A [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 0E 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 0E 00 0E 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 63 [00:29:15]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:29:15]wFMCommunicate OK [00:29:15]SAM_PROTO_GetShiftState done [00:29:15]FM_GetShiftState done [00:29:15]req_shift_opened done [00:29:15]requested_item shift.open_date is exist - process it [00:29:15]req_shift_open_date [00:29:15]req_shift_open_date done [00:29:15]produce_requested_data done [00:29:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74786,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [00:29:15]process_action_free close_receipt [00:29:15]json_value_free [00:29:15]json_value_free done [00:29:15]process_json_proto returns [00:29:15]Send response to host [00:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74786,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [00:29:15]free response buf [00:29:15]execute_script done [00:29:15]execute_script returns [00:29:15]free content buf [00:29:15]Sock 8.Close socket [00:29:15]Sock 8.Thread stoped [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:34]int [00:29:34]Write to MH i2c: 01 00 00 0F 9F AE [00:29:34]*** FLAG_PRN_KEY set [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 0F 9F 00 08 00 00 00 FF 0F CB [00:29:34]state=0 [00:29:34]Key pressed [00:29:34]Feed [00:29:34]Write to MH i2c: D8 00 00 10 9F 86 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: D8 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: D8 01 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: D8 01 00 10 9F 00 87 [00:29:34]int [00:29:34]Write to MH i2c: 01 00 00 11 9F B0 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 11 9F 00 48 00 00 00 3C 00 3B [00:29:34]state=2 [00:29:34]Key pressed [00:29:34]int [00:29:34]Write to MH i2c: 01 00 00 12 9F B1 [00:29:34]*** FLAG_PRN_KEY reset [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 12 9F 00 00 00 00 00 F5 0F BC [00:29:34]state=2 [00:29:34]Stop feed [00:29:34]int [00:29:34]Write to MH i2c: 01 00 00 13 9F B2 [00:29:34]*** FLAG_PRN_KEY set [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 13 9F 00 08 00 00 00 FF 0F CF [00:29:34]state=0 [00:29:34]Key pressed [00:29:34]Feed [00:29:34]Write to MH i2c: D8 00 00 14 9F 8A [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: D8 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: D8 01 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: D8 01 00 14 9F 00 8B [00:29:34]int [00:29:34]Write to MH i2c: 01 00 00 15 9F B4 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 15 9F 00 48 00 00 00 3C 00 3F [00:29:34]state=2 [00:29:34]Key pressed [00:29:34]int [00:29:34]Write to MH i2c: 01 00 00 16 9F B5 [00:29:34]*** FLAG_PRN_KEY reset [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: 01 07 00 16 9F 00 00 00 00 00 F5 0F C0 [00:29:34]state=2 [00:29:34]Stop feed [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:28]accept exits with 9 [00:36:28]New connection [00:36:28]New thread 3066662244 created [00:36:28]Thread 3066805604 joined [00:36:28]Waiting for new connection... [00:36:28] Sock 9.Parse request [00:36:28]Sock 9.Check first char [00:36:28]Sock 9.First char is OK [00:36:28]request: POST /json_proto HTTP/1.0 [00:36:28]Method: POST [00:36:28]URL: /json_proto [00:36:28]Method is POST - this is cgi request [00:36:28]url: /json_proto [00:36:28]query_string will be loaded in cgi processing [00:36:28]execute_cgi json_proto POST (null) [00:36:28]execute_cgi path=json_proto method=POST [00:36:28]POST find Content-Length [00:36:28]Host: 172.17.39.131:8080 [00:36:28]Content-Length: 677 [00:36:28]Content-Type: application/json [00:36:28] [00:36:28]POST finish read [00:36:28]Found Content-Length = 677 [00:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:28]execute_script... [00:36: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)190756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:28]POST & json_proto [00:36:28]process_json_proto [00:36:28]json parsed OK: [00:36:28]protocol is kg_v1.0 [00:36:28]action value=close_receipt [00:36:28]process_action close_receipt [00:36:28]cmd_close_receipt [00:36:28]MH_GetDate [00:36:28]Write to MH i2c: F0 00 00 17 9F A5 [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: F0 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: F0 09 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: F0 09 00 17 9F 00 1A E8 1A 67 86 57 24 65 97 [00:36:28]GetLastDocTimeStamp 1729816164 [00:36:28]current date 1729816602 [00:36:28]FM_GetShiftState [00:36:28]SAM_PROTO_GetShiftState [00:36:28]wFMCommunicate request_size=4 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 13 01 00 [00:36:28]Write to MH i2c: E2 08 00 18 9F 80 13 01 00 00 00 00 00 34 [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:28]Read from MH i2c: E2 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 0E 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 0E 00 18 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 6D [00:36:28]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:36:28]wFMCommunicate OK [00:36:28]SAM_PROTO_GetShiftState done [00:36:28]FM_GetShiftState done [00:36:28]opened in 1729815752 [00:36:28]opened+sec_in_day 1729902152 [00:36:28]quantity*price = 30038 [00:36:28]sum+1 = 30039 [00:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 2 25.10.2024 00:36 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74787 ФПД: 27514637299220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003642&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74787&fm=27514637299220&tin=02508201610067®Number=0000000000091691&sum=30000 [00:36:29]StoreToDocumentArchive [00:36:29]shift 511 fd 74787 [00:36:29]save to /storage/0511/doc_00074787 [00:36:29]save last doc name /storage/0511/doc_00074787 to /storage/kkm_last_doc_name [00:36:29]save OK [00:36:29]Clear old archive folders... [00:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:29]tlvbuf is 008A0F30 [00:36:29]SAM_PROTO_ClearQueue [00:36:29]wFMCommunicate request_size=4 [00:36:29]MH_SAM_APDU [00:36:29]CAPDU: 80 09 00 00 [00:36:29]Write to MH i2c: E2 08 00 25 9F 80 09 00 00 00 00 00 00 36 [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:29]Read from MH i2c: E2 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 25 9F 00 90 00 38 [00:36:29]RAPDU: 90 00 [00:36:29]wFMCommunicate OK [00:36:29]SAM_PROTO_ClearQueue done [00:36:29]KKMCreateOFDPacket [00:36:29]OFDProtocolAddRootSTLVToBuf [00:36:29]FM_MakeSignedData [00:36:29]FM_MakeSignedData [00:36:29]SAM_PROTO_SignData [00:36:29]wFMCommunicate request_size=4 [00:36:29]MH_SAM_APDU [00:36:29]CAPDU: 80 0D 01 02 [00:36:29]Write to MH i2c: E2 08 00 26 9F 80 0D 01 02 00 00 00 00 3E [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:29]OFD Sender: No OFD packet to send [00:36:29]Read from MH i2c: E2 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 26 9F 00 90 00 39 [00:36:29]RAPDU: 90 00 [00:36:29]wFMCommunicate OK [00:36:29]wFMCommunicate request_size=255 [00:36:29]MH_SAM_APDU [00:36: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1A E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 24 01 00 35 04 06 00 19 [00:36:29]Write to MH i2c: E2 02 01 27 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1A E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 24 01 00 35 04 06 00 19 00 00 AD [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:29]Read from MH i2c: E2 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 27 9F 00 90 00 3A [00:36:29]RAPDU: 90 00 [00:36:29]wFMCommunicate OK [00:36:29]wFMCommunicate request_size=10 [00:36:29]MH_SAM_APDU [00:36:29]CAPDU: 80 0D 02 02 05 06 40 2E AE 14 [00:36:29]Write to MH i2c: E2 0D 00 28 9F 80 0D 02 02 05 00 06 40 2E AE 14 00 00 81 [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:29]Read from MH i2c: E2 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 03 00 28 9F 00 90 00 3B [00:36:29]RAPDU: 90 00 [00:36:29]wFMCommunicate OK [00:36:29]wFMCommunicate request_size=4 [00:36:29]MH_SAM_APDU [00:36:29]CAPDU: 80 0D 03 02 [00:36:29]Write to MH i2c: E2 08 00 29 9F 80 0D 03 02 00 00 00 00 43 [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:30]Read from MH i2c: E2 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 0B 00 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 0B 00 29 9F 00 4C D4 4D C9 59 3F 34 1F 90 00 65 [00:36:30]RAPDU: 4C D4 4D C9 59 3F 34 1F 90 00 [00:36:30]wFMCommunicate OK [00:36:30]SAM_PROTO_SignData done [00:36:30]FM_MakeSignedData done [00:36:30]CreateOFDProtocolMessage [00:36:30]wFMCommunicate request_size=4 [00:36:30]MH_SAM_APDU [00:36:30]CAPDU: 80 11 00 00 [00:36:30]Write to MH i2c: E2 08 00 2A 9F 80 11 00 00 00 00 00 00 43 [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:30]Read from MH i2c: E2 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 17 00 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: E2 17 00 2A 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9B [00:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:36:30]wFMCommunicate OK [00:36:30]CreateOFDProtocolMessage done [00:36:30]OFDSenderStorePacket 74787 [00:36:30]StoreOFDPacket docnum=74787 [00:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 28 F6 07 01 8D 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1A E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 24 01 00 35 04 06 00 19 06 40 2E AE 14 4C D4 4D C9 59 3F 34 1F [00:36:30]CheckFolder [00:36:30]dirname=/storage/ofd_packets [00:36:30]CheckFolder done [00:36:30]ProducePacketName [00:36:30]name=ofd_packets/00074787 [00:36:30]NVStorageSaveData ofd_packets/00074787 [00:36:30]File name is /storage/ofd_packets/00074787 [00:36:30]Write 301 bytes [00:36:30]NVStorageSaveData done [00:36:30]OFDSenderStorePacket done [00:36:30]KKMCreateOFDPacket done [00:36:30]NVStorageSaveData kkm_last_timestamp [00:36:30]File name is /storage/kkm_last_timestamp [00:36:30]Write 4 bytes [00:36:30]NVStorageSaveData done [00:36:30]ExternCall_PrintAddStr [00:36:30]wPrintStart [00:36:30]Write to MH i2c: 01 00 00 2B 9F CA [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: 01 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: 01 07 00 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: 01 07 00 2B 9F 00 00 00 00 00 FF 0F DF [00:36:30]RasterBufferAndPrint [00:36:30]line Счет N : (1)190756 [00:36:30]line ИНН: 02508201610067 [00:36:30]line Контрольно-Кассовый Чек [00:36:30]line ПРОДАЖА [00:36:30]line ТРК (МРК, ГНК) : 21 [00:36:30]line Товар: 2710124130 [00:36:30]line Аи-92-К-5 [00:36:30]line 4.490 * 66.90 [00:36:30]line = 300.38 [00:36:30]line НДС 12% НСП 1% [00:36:30]line > о реализуемом товаре [00:36:30]line ОКРУГЛЕНИЕ: -0.38 [00:36:30]line ИТОГО: 300.00 [00:36:30]line Внесено: 300.00 [00:36:30]line СДАЧА: 0.00 [00:36:30]line НСП 1% : 2.66 [00:36:30]line НДС 12% : 31.90 [00:36:30]line Наличными: 300.00 [00:36:30]line Безнал.: 0.00 [00:36:30]line Место: АЗС № 142 "Партнер Нефть" [00:36:30]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:36:30]line СНО: Общий режим [00:36:30]line Чек 2 25.10.2024 00:36 [00:36:30]line Смена: 511 ФФД: 1.0 [00:36:30]line ЗНМ: 0300000089 [00:36:30]line РНМ: 0000000000091691 [00:36:30]line Версия ККМ: 001 [00:36:30]line ФМ: 0000000000871795 [00:36:30]line ФД: 74787 [00:36:30]line ФПД: 27514637299220 [00:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003642&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74787&fm=27514637299220&tin=02508201610067®Number=0000000000091691&sum=30000 [00:36:30]written 0, free lines is 4095 [00:36:30]OFD Sender: Processing packet 74787 [packets to send 13, broken 12] [00:36:30]ProducePacketName [00:36:30]name=ofd_packets/00074787 [00:36:30]OFD Sender: To server: pG, [00:36:30]CommunicateWithHost lk.salyk.kg:30040 [00:36:30]ConnectInit lk.salyk.kg [00:36:30]Connected sock=11 [00:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 28 F6 07 01 8D 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1A E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 24 01 00 35 04 06 00 19 06 40 2E AE 14 4C D4 4D C9 59 3F 34 1F [00:36:30]Write to MH i2c: 01 00 00 56 9F F5 [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: 01 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: 01 07 00 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: 01 07 00 56 9F 00 00 00 00 00 A5 0C AD [00:36:30]RasterBufferAndPrint [00:36:30]line [00:36:30]line [00:36:30]line [00:36:30]line [00:36:30]line [00:36:30]written 0, free lines is 3242 [00:36:30]MH_Cut [00:36:30]Write to MH i2c: D1 01 00 5D 9F 01 CE [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: D1 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: D1 01 00 [00:36:30]MH_I2C_Read... [00:36:30]Read from MH i2c: D1 01 00 5D 9F 00 CD [00:36:30]Write to MH i2c: 01 00 00 5E 9F FD [00:36:30]Write i2c OK [00:36:30]MH_I2C_Read... [00:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 EC C2 47 00 1A 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 31 37 39 35 10 04 04 00 23 24 01 00 F4 03 04 00 9A 8F 1A 67 B6 04 01 00 00 F3 85 8B 08 E3 AB A5 08 [00:36:30]CommunicateWithHost err = 0 [00:36:30]CheckOFDResponse [00:36:30]1017 (14) - 77093643461234 [00:36:30]1041 (16) - 0000000000871795 [00:36:30]1040 (4) - 74787 [00:36:30]1012 (4) - 24.10.2024 18:19 [00:36:30]1206 (1) - 0 [00:36:30]OFD Sender: Remove packet 74787 [00:36:30]ProducePacketName [00:36:30]name=ofd_packets/00074787 [00:36:30]NVStorageDeleteData [00:36:31]OFD Sender: No OFD packet to send [00:36:31]*** Cut start [00:36:31]*** Partial cut [00:36:31]*** CUTSNS_PIN = 1 [00:36:31]*** CUTSNS_PIN = 0 [00:36:31]*** Brake cut motor [00:36:32]Read from MH i2c: 01 [00:36:32]MH_I2C_Read... [00:36:32]*** Stop cut motor [00:36:32]*** Cut end [00:36:32]Read from MH i2c: 01 07 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: 01 07 00 5E 9F 00 00 00 00 00 FF 0F 12 [00:36:32]process_action close_receipt done [00:36:32]requested_data is exist [00:36:32]produce_requested_data [00:36:32]requested_item fm.sn is exist - process it [00:36:32]wFMCommunicate request_size=4 [00:36:32]MH_SAM_APDU [00:36:32]CAPDU: 80 11 00 00 [00:36:32]Write to MH i2c: E2 08 00 5F 9F 80 11 00 00 00 00 00 00 78 [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:32]Read from MH i2c: E2 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 17 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 17 00 5F 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D0 [00:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:36:32]wFMCommunicate OK [00:36:32]requested_item fd.num is exist - process it [00:36:32]SAM_PROTO_GetFieldsCounters [00:36:32]wFMCommunicate request_size=4 [00:36:32]MH_SAM_APDU [00:36:32]CAPDU: 80 13 00 00 [00:36:32]Write to MH i2c: E2 08 00 60 9F 80 13 00 00 00 00 00 00 7B [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:32]Read from MH i2c: E2 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 62 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 62 00 60 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 23 24 01 00 0E 04 04 00 FF 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 F0 [00:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 23 24 01 00 0E 04 04 00 FF 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:36:32]wFMCommunicate OK [00:36:32]SAM_PROTO_GetFieldsCounters done [00:36:32]requested_item shift.num is exist - process it [00:36:32]requested_item shift.opened is exist - process it [00:36:32]req_shift_opened [00:36:32]FM_GetShiftState [00:36:32]SAM_PROTO_GetShiftState [00:36:32]wFMCommunicate request_size=4 [00:36:32]MH_SAM_APDU [00:36:32]CAPDU: 80 13 01 00 [00:36:32]Write to MH i2c: E2 08 00 61 9F 80 13 01 00 00 00 00 00 7D [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:32]Read from MH i2c: E2 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 0E 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 0E 00 61 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 B6 [00:36:32]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:36:32]wFMCommunicate OK [00:36:32]SAM_PROTO_GetShiftState done [00:36:32]FM_GetShiftState done [00:36:32]req_shift_opened done [00:36:32]requested_item shift.open_date is exist - process it [00:36:32]req_shift_open_date [00:36:32]req_shift_open_date done [00:36:32]produce_requested_data done [00:36:32]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74787,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [00:36:32]process_action_free close_receipt [00:36:32]json_value_free [00:36:32]json_value_free done [00:36:32]process_json_proto returns [00:36:32]Send response to host [00:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74787,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [00:36:32]free response buf [00:36:32]execute_script done [00:36:32]execute_script returns [00:36:32]free content buf [00:36:32]Sock 9.Close socket [00:36:32]Sock 9.Thread stoped [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:08]recv_with_timeout no data received [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:17]accept exits with 8 [00:37:17]New connection [00:37:17]New thread 3066805604 created [00:37:17]Thread 3066662244 joined [00:37:17]Waiting for new connection... [00:37:17] Sock 8.Parse request [00:37:17]Sock 8.Check first char [00:37:17]Sock 8.First char is OK [00:37:17]request: POST /json_proto HTTP/1.0 [00:37:17]Method: POST [00:37:17]URL: /json_proto [00:37:17]Method is POST - this is cgi request [00:37:17]url: /json_proto [00:37:17]query_string will be loaded in cgi processing [00:37:17]execute_cgi json_proto POST (null) [00:37:17]execute_cgi path=json_proto method=POST [00:37:17]POST find Content-Length [00:37:17]Host: 172.17.39.131:8080 [00:37:17]Content-Length: 775 [00:37:17]Content-Type: application/json [00:37:17] [00:37:17]POST finish read [00:37:17]Found Content-Length = 775 [00:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:17]execute_script... [00:37: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)190755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:17]POST & json_proto [00:37:17]process_json_proto [00:37:17]json parsed OK: [00:37:17]protocol is kg_v1.0 [00:37:17]action value=close_receipt [00:37:17]process_action close_receipt [00:37:17]cmd_close_receipt [00:37:17]MH_GetDate [00:37:17]Write to MH i2c: F0 00 00 62 9F F0 [00:37:17]Write i2c OK [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: F0 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: F0 09 00 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: F0 09 00 62 9F 00 4B E8 1A 67 86 57 24 65 13 [00:37:17]GetLastDocTimeStamp 1729816602 [00:37:17]current date 1729816651 [00:37:17]FM_GetShiftState [00:37:17]SAM_PROTO_GetShiftState [00:37:17]wFMCommunicate request_size=4 [00:37:17]MH_SAM_APDU [00:37:17]CAPDU: 80 13 01 00 [00:37:17]Write to MH i2c: E2 08 00 63 9F 80 13 01 00 00 00 00 00 7F [00:37:17]Write i2c OK [00:37:17]MH_I2C_Read... [00:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:17]Read from MH i2c: E2 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: E2 0E 00 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: E2 0E 00 63 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 B8 [00:37:17]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:37:17]wFMCommunicate OK [00:37:17]SAM_PROTO_GetShiftState done [00:37:17]FM_GetShiftState done [00:37:17]opened in 1729815752 [00:37:17]opened+sec_in_day 1729902152 [00:37:17]quantity*price = 200025 [00:37:17]sum+1 = 200026 [00:37:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 3 25.10.2024 00:37 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 74788 ФПД: 199264131243146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003731&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74788&fm=199264131243146&tin=02508201610067®Number=0000000000091691&sum=200025 [00:37:18]StoreToDocumentArchive [00:37:18]shift 511 fd 74788 [00:37:18]save to /storage/0511/doc_00074788 [00:37:18]save last doc name /storage/0511/doc_00074788 to /storage/kkm_last_doc_name [00:37:18]save OK [00:37:18]Clear old archive folders... [00:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:37:18]tlvbuf is 00AF1200 [00:37:18]SAM_PROTO_ClearQueue [00:37:18]wFMCommunicate request_size=4 [00:37:18]MH_SAM_APDU [00:37:18]CAPDU: 80 09 00 00 [00:37:18]Write to MH i2c: E2 08 00 70 9F 80 09 00 00 00 00 00 00 81 [00:37:18]Write i2c OK [00:37:18]MH_I2C_Read... [00:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:18]Read from MH i2c: E2 [00:37:18]MH_I2C_Read... [00:37:18]Read from MH i2c: E2 03 00 [00:37:18]MH_I2C_Read... [00:37:18]Read from MH i2c: E2 03 00 70 9F 00 90 00 83 [00:37:18]RAPDU: 90 00 [00:37:18]wFMCommunicate OK [00:37:18]SAM_PROTO_ClearQueue done [00:37:18]KKMCreateOFDPacket [00:37:18]OFDProtocolAddRootSTLVToBuf [00:37:18]FM_MakeSignedData [00:37:18]FM_MakeSignedData [00:37:18]SAM_PROTO_SignData [00:37:18]wFMCommunicate request_size=4 [00:37:18]MH_SAM_APDU [00:37:18]CAPDU: 80 0D 01 02 [00:37:18]Write to MH i2c: E2 08 00 71 9F 80 0D 01 02 00 00 00 00 89 [00:37:18]Write i2c OK [00:37:18]MH_I2C_Read... [00:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:18]Read from MH i2c: E2 [00:37:18]MH_I2C_Read... [00:37:18]Read from MH i2c: E2 03 00 [00:37:18]MH_I2C_Read... [00:37:18]Read from MH i2c: E2 03 00 71 9F 00 90 00 84 [00:37:18]RAPDU: 90 00 [00:37:18]wFMCommunicate OK [00:37:18]wFMCommunicate request_size=255 [00:37:18]MH_SAM_APDU [00:37:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4B E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 24 01 [00:37:18]Write to MH i2c: E2 02 01 72 9F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4B E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 24 01 00 00 7C [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 72 9F 00 90 00 85 [00:37:19]RAPDU: 90 00 [00:37:19]wFMCommunicate OK [00:37:19]wFMCommunicate request_size=16 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B5 3A CB C2 5C 8A [00:37:19]Write to MH i2c: E2 13 00 73 9F 80 0D 02 02 0B 00 00 35 04 06 00 B5 3A CB C2 5C 8A 00 00 43 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 73 9F 00 90 00 86 [00:37:19]RAPDU: 90 00 [00:37:19]wFMCommunicate OK [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 0D 03 02 [00:37:19]Write to MH i2c: E2 08 00 74 9F 80 0D 03 02 00 00 00 00 8E [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0B 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0B 00 74 9F 00 76 73 D0 58 87 B5 28 4D 90 00 51 [00:37:19]RAPDU: 76 73 D0 58 87 B5 28 4D 90 00 [00:37:19]wFMCommunicate OK [00:37:19]SAM_PROTO_SignData done [00:37:19]FM_MakeSignedData done [00:37:19]CreateOFDProtocolMessage [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 11 00 00 [00:37:19]Write to MH i2c: E2 08 00 75 9F 80 11 00 00 00 00 00 00 8E [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 17 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 17 00 75 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E6 [00:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:37:19]wFMCommunicate OK [00:37:19]CreateOFDProtocolMessage done [00:37:19]OFDSenderStorePacket 74788 [00:37:19]StoreOFDPacket docnum=74788 [00:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 FF 7C 0D 01 E0 A3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4B E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 24 01 00 35 04 06 00 B5 3A CB C2 5C 8A 76 73 D0 58 87 B5 28 4D [00:37:19]CheckFolder [00:37:19]dirname=/storage/ofd_packets [00:37:19]CheckFolder done [00:37:19]ProducePacketName [00:37:19]name=ofd_packets/00074788 [00:37:19]NVStorageSaveData ofd_packets/00074788 [00:37:19]File name is /storage/ofd_packets/00074788 [00:37:19]Write 307 bytes [00:37:19]NVStorageSaveData done [00:37:19]OFDSenderStorePacket done [00:37:19]KKMCreateOFDPacket done [00:37:19]NVStorageSaveData kkm_last_timestamp [00:37:19]File name is /storage/kkm_last_timestamp [00:37:19]Write 4 bytes [00:37:19]NVStorageSaveData done [00:37:19]ExternCall_PrintAddStr [00:37:19]wPrintStart [00:37:19]Write to MH i2c: 01 00 00 76 9F 15 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: 01 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: 01 07 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: 01 07 00 76 9F 00 00 00 00 00 FF 0F 2A [00:37:19]RasterBufferAndPrint [00:37:19]line Счет N : (1)190755 [00:37:19]line ИНН: 02508201610067 [00:37:19]line Контрольно-Кассовый Чек [00:37:19]line ПРОДАЖА [00:37:19]line ТРК (МРК, ГНК) : 32 [00:37:19]line Товар: 2710194240 [00:37:19]line D-ENERGY ДТ-К-2 [00:37:19]line 25.910 * 77.20 [00:37:19]line = 2000.25 [00:37:19]line НДС 12% НСП 1% [00:37:19]line > о реализуемом товаре [00:37:19]line ИТОГО: 2000.25 [00:37:19]line НСП 1% : 17.70 [00:37:19]line НДС 12% : 212.42 [00:37:19]line Наличными: 0.00 [00:37:19]line Безнал.: 2000.25 [00:37:19]line Место: АЗС № 142 "Партнер Нефть" [00:37:19]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:37:19]line СНО: Общий режим [00:37:19]line Чек 3 25.10.2024 00:37 [00:37:19]line Смена: 511 ФФД: 1.0 [00:37:19]line ЗНМ: 0300000089 [00:37:19]line РНМ: 0000000000091691 [00:37:19]line Версия ККМ: 001 [00:37:19]line Платежная система: Mbank [00:37:19]line ФМ: 0000000000871795 [00:37:19]line ФД: 74788 [00:37:19]line ФПД: 199264131243146 [00:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003731&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74788&fm=199264131243146&tin=02508201610067®Number=0000000000091691&sum=200025 [00:37:19]OFD Sender: Processing packet 74788 [packets to send 13, broken 12] [00:37:19]ProducePacketName [00:37:19]name=ofd_packets/00074788 [00:37:19]OFD Sender: To server: pG, [00:37:19]CommunicateWithHost lk.salyk.kg:30040 [00:37:19]ConnectInit lk.salyk.kg [00:37:19]written 0, free lines is 4095 [00:37:19]Connected sock=10 [00:37:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 FF 7C 0D 01 E0 A3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4B E8 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 24 01 00 35 04 06 00 B5 3A CB C2 5C 8A 76 73 D0 58 87 B5 28 4D [00:37:20]Write to MH i2c: 01 00 00 9F 9F 3E [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: 01 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: 01 07 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: 01 07 00 9F 9F 00 00 00 00 00 DB 0C 2C [00:37:20]RasterBufferAndPrint [00:37:20]line [00:37:20]line [00:37:20]line [00:37:20]line [00:37:20]line [00:37:20]written 0, free lines is 3297 [00:37:20]MH_Cut [00:37:20]Write to MH i2c: D1 01 00 A6 9F 01 17 [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: D1 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: D1 01 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: D1 01 00 A6 9F 00 16 [00:37:20]Write to MH i2c: 01 00 00 A7 9F 46 [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A2 98 47 00 59 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 31 37 39 35 10 04 04 00 24 24 01 00 F4 03 04 00 CC 8F 1A 67 B6 04 01 00 00 90 B2 1B 94 3C 2E ED 84 [00:37:20]CommunicateWithHost err = 0 [00:37:20]CheckOFDResponse [00:37:20]1017 (14) - 77093643461234 [00:37:20]1041 (16) - 0000000000871795 [00:37:20]1040 (4) - 74788 [00:37:20]1012 (4) - 24.10.2024 18:19 [00:37:20]1206 (1) - 0 [00:37:20]OFD Sender: Remove packet 74788 [00:37:20]ProducePacketName [00:37:20]name=ofd_packets/00074788 [00:37:20]NVStorageDeleteData [00:37:20]OFD Sender: No OFD packet to send [00:37:21]*** Cut start [00:37:21]*** Partial cut [00:37:21]*** CUTSNS_PIN = 1 [00:37:21]*** CUTSNS_PIN = 0 [00:37:21]*** Brake cut motor [00:37:21]Read from MH i2c: 01 [00:37:21]MH_I2C_Read... [00:37:21]*** Stop cut motor [00:37:21]*** Cut end [00:37:21]Read from MH i2c: 01 07 00 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: 01 07 00 A7 9F 00 00 00 00 00 FF 0F 5B [00:37:21]process_action close_receipt done [00:37:21]requested_data is exist [00:37:21]produce_requested_data [00:37:21]requested_item fm.sn is exist - process it [00:37:21]wFMCommunicate request_size=4 [00:37:21]MH_SAM_APDU [00:37:21]CAPDU: 80 11 00 00 [00:37:21]Write to MH i2c: E2 08 00 A8 9F 80 11 00 00 00 00 00 00 C1 [00:37:21]Write i2c OK [00:37:21]MH_I2C_Read... [00:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:21]Read from MH i2c: E2 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 17 00 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 17 00 A8 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 19 [00:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:37:21]wFMCommunicate OK [00:37:21]requested_item fd.num is exist - process it [00:37:21]SAM_PROTO_GetFieldsCounters [00:37:21]wFMCommunicate request_size=4 [00:37:21]MH_SAM_APDU [00:37:21]CAPDU: 80 13 00 00 [00:37:21]Write to MH i2c: E2 08 00 A9 9F 80 13 00 00 00 00 00 00 C4 [00:37:21]Write i2c OK [00:37:21]MH_I2C_Read... [00:37:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:21]Read from MH i2c: E2 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 62 00 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 62 00 A9 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 24 24 01 00 0E 04 04 00 FF 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 3D [00:37:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 24 24 01 00 0E 04 04 00 FF 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:37:21]wFMCommunicate OK [00:37:21]SAM_PROTO_GetFieldsCounters done [00:37:21]requested_item shift.num is exist - process it [00:37:21]requested_item shift.opened is exist - process it [00:37:21]req_shift_opened [00:37:21]FM_GetShiftState [00:37:21]SAM_PROTO_GetShiftState [00:37:21]wFMCommunicate request_size=4 [00:37:21]MH_SAM_APDU [00:37:21]CAPDU: 80 13 01 00 [00:37:21]Write to MH i2c: E2 08 00 AA 9F 80 13 01 00 00 00 00 00 C6 [00:37:21]Write i2c OK [00:37:21]MH_I2C_Read... [00:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:21]Read from MH i2c: E2 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 0E 00 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 0E 00 AA 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 FF [00:37:21]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:37:21]wFMCommunicate OK [00:37:21]SAM_PROTO_GetShiftState done [00:37:21]FM_GetShiftState done [00:37:21]req_shift_opened done [00:37:21]requested_item shift.open_date is exist - process it [00:37:21]req_shift_open_date [00:37:21]req_shift_open_date done [00:37:21]produce_requested_data done [00:37:21]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74788,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [00:37:21]process_action_free close_receipt [00:37:21]json_value_free [00:37:21]json_value_free done [00:37:21]process_json_proto returns [00:37:21]Send response to host [00:37:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74788,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [00:37:21]free response buf [00:37:21]execute_script done [00:37:21]execute_script returns [00:37:21]free content buf [00:37:21]Sock 8.Close socket [00:37:21]Sock 8.Thread stoped [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:42]int [00:48:42]Write to MH i2c: 01 00 00 AB 9F 4A [00:48:42]*** FLAG_PRN_KEY set [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 AB 9F 00 08 00 00 00 FF 0F 67 [00:48:42]state=0 [00:48:42]Key pressed [00:48:42]Feed [00:48:42]Write to MH i2c: D8 00 00 AC 9F 22 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: D8 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: D8 01 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: D8 01 00 AC 9F 00 23 [00:48:42]int [00:48:42]Write to MH i2c: 01 00 00 AD 9F 4C [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 AD 9F 00 48 00 00 00 3C 00 D7 [00:48:42]state=2 [00:48:42]Key pressed [00:48:42]int [00:48:42]Write to MH i2c: 01 00 00 AE 9F 4D [00:48:42]*** FLAG_PRN_KEY reset [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 AE 9F 00 00 00 00 00 F5 0F 58 [00:48:42]state=2 [00:48:42]Stop feed [00:48:42]int [00:48:42]Write to MH i2c: 01 00 00 AF 9F 4E [00:48:42]*** FLAG_PRN_KEY set [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 AF 9F 00 08 00 00 00 FF 0F 6B [00:48:42]state=0 [00:48:42]Key pressed [00:48:42]Feed [00:48:42]Write to MH i2c: D8 00 00 B0 9F 26 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: D8 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: D8 01 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: D8 01 00 B0 9F 00 27 [00:48:42]int [00:48:42]Write to MH i2c: 01 00 00 B1 9F 50 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 B1 9F 00 48 00 00 00 3C 00 DB [00:48:42]state=2 [00:48:42]Key pressed [00:48:42]int [00:48:42]Write to MH i2c: 01 00 00 B2 9F 51 [00:48:42]*** FLAG_PRN_KEY reset [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 B2 9F 00 00 00 00 00 F5 0F 5C [00:48:42]state=2 [00:48:42]Stop feed [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51: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:25]accept exits with 9 [00:53:25]New connection [00:53:25]New thread 3066662244 created [00:53:25]Thread 3066805604 joined [00:53:25]Waiting for new connection... [00:53:25] Sock 9.Parse request [00:53:25]Sock 9.Check first char [00:53:25]Sock 9.First char is OK [00:53:25]request: POST /json_proto HTTP/1.0 [00:53:25]Method: POST [00:53:25]URL: /json_proto [00:53:25]Method is POST - this is cgi request [00:53:25]url: /json_proto [00:53:25]query_string will be loaded in cgi processing [00:53:25]execute_cgi json_proto POST (null) [00:53:25]execute_cgi path=json_proto method=POST [00:53:25]POST find Content-Length [00:53:25]Host: 172.17.39.131:8080 [00:53:25]Content-Length: 685 [00:53:25]Content-Type: application/json [00:53:25] [00:53:25]POST finish read [00:53:25]Found Content-Length = 685 [00:53:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 32.200, "sum" : 1252.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1252.00, "payments": [ { "type": 0, "sum" : 1252.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:25]execute_script... [00:53: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)190757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 32.200, "sum" : 1252.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1252.00, "payments": [ { "type": 0, "sum" : 1252.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:25]POST & json_proto [00:53:25]process_json_proto [00:53:25]json parsed OK: [00:53:25]protocol is kg_v1.0 [00:53:25]action value=close_receipt [00:53:25]process_action close_receipt [00:53:25]cmd_close_receipt [00:53:25]MH_GetDate [00:53:25]Write to MH i2c: F0 00 00 B3 9F 41 [00:53:25]Write i2c OK [00:53:25]MH_I2C_Read... [00:53:25]Read from MH i2c: F0 [00:53:25]MH_I2C_Read... [00:53:25]Read from MH i2c: F0 09 00 [00:53:25]MH_I2C_Read... [00:53:25]Read from MH i2c: F0 09 00 B3 9F 00 13 EC 1A 67 86 57 24 65 30 [00:53:25]GetLastDocTimeStamp 1729816651 [00:53:25]current date 1729817619 [00:53:25]FM_GetShiftState [00:53:25]SAM_PROTO_GetShiftState [00:53:25]wFMCommunicate request_size=4 [00:53:25]MH_SAM_APDU [00:53:25]CAPDU: 80 13 01 00 [00:53:25]Write to MH i2c: E2 08 00 B4 9F 80 13 01 00 00 00 00 00 D0 [00:53:25]Write i2c OK [00:53:25]MH_I2C_Read... [00:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:25]Read from MH i2c: E2 [00:53:25]MH_I2C_Read... [00:53:25]Read from MH i2c: E2 0E 00 [00:53:25]MH_I2C_Read... [00:53:25]Read from MH i2c: E2 0E 00 B4 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 09 [00:53:25]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:53:25]wFMCommunicate OK [00:53:25]SAM_PROTO_GetShiftState done [00:53:25]FM_GetShiftState done [00:53:25]opened in 1729815752 [00:53:25]opened+sec_in_day 1729902152 [00:53:25]quantity*price = 125258 [00:53:25]sum+1 = 125259 [00:53:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1252.00 Внесено: 2000.00 СДАЧА: 748.00 НСП 1% : 11.08 НДС 12% : 133.02 Наличными: 1252.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 4 25.10.2024 00:53 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74789 ФПД: 107037873559910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005339&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74789&fm=107037873559910&tin=02508201610067®Number=0000000000091691&sum=125200 [00:53:27]StoreToDocumentArchive [00:53:27]shift 511 fd 74789 [00:53:27]save to /storage/0511/doc_00074789 [00:53:27]save last doc name /storage/0511/doc_00074789 to /storage/kkm_last_doc_name [00:53:27]save OK [00:53:27]Clear old archive folders... [00:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:53:27]tlvbuf is 007EB880 [00:53:27]SAM_PROTO_ClearQueue [00:53:27]wFMCommunicate request_size=4 [00:53:27]MH_SAM_APDU [00:53:27]CAPDU: 80 09 00 00 [00:53:27]Write to MH i2c: E2 08 00 C1 9F 80 09 00 00 00 00 00 00 D2 [00:53:27]Write i2c OK [00:53:27]MH_I2C_Read... [00:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:53:27]Read from MH i2c: E2 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 C1 9F 00 90 00 D4 [00:53:27]RAPDU: 90 00 [00:53:27]wFMCommunicate OK [00:53:27]SAM_PROTO_ClearQueue done [00:53:27]KKMCreateOFDPacket [00:53:27]OFDProtocolAddRootSTLVToBuf [00:53:27]FM_MakeSignedData [00:53:27]FM_MakeSignedData [00:53:27]SAM_PROTO_SignData [00:53:27]wFMCommunicate request_size=4 [00:53:27]MH_SAM_APDU [00:53:27]CAPDU: 80 0D 01 02 [00:53:27]Write to MH i2c: E2 08 00 C2 9F 80 0D 01 02 00 00 00 00 DA [00:53:27]Write i2c OK [00:53:27]MH_I2C_Read... [00:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:53:27]Read from MH i2c: E2 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 C2 9F 00 90 00 D5 [00:53:27]RAPDU: 90 00 [00:53:27]wFMCommunicate OK [00:53:27]wFMCommunicate request_size=255 [00:53:27]MH_SAM_APDU [00:53:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 7D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4A E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 33 00 00 00 00 07 04 06 00 10 E9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 13 EC 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 24 01 00 35 04 06 00 61 59 [00:53:27]Write to MH i2c: E2 02 01 C3 9F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 7D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4A E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 33 00 00 00 00 07 04 06 00 10 E9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 13 EC 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 24 01 00 35 04 06 00 61 59 00 00 46 [00:53:27]Write i2c OK [00:53:27]MH_I2C_Read... [00:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:27]Read from MH i2c: E2 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 C3 9F 00 90 00 D6 [00:53:27]RAPDU: 90 00 [00:53:27]wFMCommunicate OK [00:53:27]wFMCommunicate request_size=9 [00:53:27]MH_SAM_APDU [00:53:27]CAPDU: 80 0D 02 02 04 B2 6E 59 66 [00:53:27]Write to MH i2c: E2 0C 00 C4 9F 80 0D 02 02 04 00 B2 6E 59 66 00 00 C4 [00:53:27]Write i2c OK [00:53:27]MH_I2C_Read... [00:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:27]Read from MH i2c: E2 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 03 00 C4 9F 00 90 00 D7 [00:53:27]RAPDU: 90 00 [00:53:27]wFMCommunicate OK [00:53:27]wFMCommunicate request_size=4 [00:53:27]MH_SAM_APDU [00:53:27]CAPDU: 80 0D 03 02 [00:53:27]Write to MH i2c: E2 08 00 C5 9F 80 0D 03 02 00 00 00 00 DF [00:53:27]Write i2c OK [00:53:27]MH_I2C_Read... [00:53:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:53:27]Read from MH i2c: E2 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 0B 00 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 0B 00 C5 9F 00 37 CE 7E 1B 2D CF F2 36 90 00 A2 [00:53:27]RAPDU: 37 CE 7E 1B 2D CF F2 36 90 00 [00:53:27]wFMCommunicate OK [00:53:27]SAM_PROTO_SignData done [00:53:27]FM_MakeSignedData done [00:53:27]CreateOFDProtocolMessage [00:53:27]wFMCommunicate request_size=4 [00:53:27]MH_SAM_APDU [00:53:27]CAPDU: 80 11 00 00 [00:53:27]Write to MH i2c: E2 08 00 C6 9F 80 11 00 00 00 00 00 00 DF [00:53:27]Write i2c OK [00:53:27]MH_I2C_Read... [00:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:27]Read from MH i2c: E2 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 17 00 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: E2 17 00 C6 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 37 [00:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:53:27]wFMCommunicate OK [00:53:27]CreateOFDProtocolMessage done [00:53:27]OFDSenderStorePacket 74789 [00:53:27]StoreOFDPacket docnum=74789 [00:53:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 79 F5 06 01 4E 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 7D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4A E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 33 00 00 00 00 07 04 06 00 10 E9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 13 EC 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 24 01 00 35 04 06 00 61 59 B2 6E 59 66 37 CE 7E 1B 2D CF F2 36 [00:53:27]CheckFolder [00:53:27]dirname=/storage/ofd_packets [00:53:27]CheckFolder done [00:53:27]ProducePacketName [00:53:27]name=ofd_packets/00074789 [00:53:27]NVStorageSaveData ofd_packets/00074789 [00:53:27]File name is /storage/ofd_packets/00074789 [00:53:27]Write 300 bytes [00:53:27]NVStorageSaveData done [00:53:27]OFDSenderStorePacket done [00:53:27]KKMCreateOFDPacket done [00:53:27]NVStorageSaveData kkm_last_timestamp [00:53:27]File name is /storage/kkm_last_timestamp [00:53:27]Write 4 bytes [00:53:27]NVStorageSaveData done [00:53:27]ExternCall_PrintAddStr [00:53:27]wPrintStart [00:53:27]Write to MH i2c: 01 00 00 C7 9F 66 [00:53:27]Write i2c OK [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: 01 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: 01 07 00 [00:53:27]MH_I2C_Read... [00:53:27]Read from MH i2c: 01 07 00 C7 9F 00 00 00 00 00 FF 0F 7B [00:53:27]RasterBufferAndPrint [00:53:27]line Счет N : (1)190757 [00:53:27]line ИНН: 02508201610067 [00:53:27]line Контрольно-Кассовый Чек [00:53:27]line ПРОДАЖА [00:53:27]line ТРК (МРК, ГНК) : 51 [00:53:27]line Товар: 2711190000 [00:53:27]line ГАЗ-К-3 [00:53:27]line 32.200 * 38.90 [00:53:27]line = 1252.58 [00:53:27]line НДС 12% НСП 1% [00:53:27]line > о реализуемом товаре [00:53:27]line ОКРУГЛЕНИЕ: -0.58 [00:53:27]line ИТОГО: 1252.00 [00:53:27]line Внесено: 2000.00 [00:53:27]line СДАЧА: 748.00 [00:53:27]line НСП 1% : 11.08 [00:53:27]line НДС 12% : 133.02 [00:53:27]line Наличными: 1252.00 [00:53:27]line Безнал.: 0.00 [00:53:27]line Место: АЗС № 142 "Партнер Нефть" [00:53:27]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:53:27]line СНО: Общий режим [00:53:27]line Чек 4 25.10.2024 00:53 [00:53:27]line Смена: 511 ФФД: 1.0 [00:53:27]line ЗНМ: 0300000089 [00:53:27]line РНМ: 0000000000091691 [00:53:27]line Версия ККМ: 001 [00:53:27]line ФМ: 0000000000871795 [00:53:27]line ФД: 74789 [00:53:27]line ФПД: 107037873559910 [00:53:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005339&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74789&fm=107037873559910&tin=02508201610067®Number=0000000000091691&sum=125200 [00:53:27]written 0, free lines is 4095 [00:53:27]OFD Sender: Processing packet 74789 [packets to send 13, broken 12] [00:53:27]ProducePacketName [00:53:27]name=ofd_packets/00074789 [00:53:27]OFD Sender: To server: pG, [00:53:27]CommunicateWithHost lk.salyk.kg:30040 [00:53:27]ConnectInit lk.salyk.kg [00:53:28]Connected sock=10 [00:53:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 79 F5 06 01 4E 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 7D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4A E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 33 00 00 00 00 07 04 06 00 10 E9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 13 EC 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 24 01 00 35 04 06 00 61 59 B2 6E 59 66 37 CE 7E 1B 2D CF F2 36 [00:53:28]Write to MH i2c: 01 00 00 F2 9F 91 [00:53:28]Write i2c OK [00:53:28]MH_I2C_Read... [00:53:28]Read from MH i2c: 01 [00:53:28]MH_I2C_Read... [00:53:28]Read from MH i2c: 01 07 00 [00:53:28]MH_I2C_Read... [00:53:28]Read from MH i2c: 01 07 00 F2 9F 00 00 00 00 00 AA 0C 4E [00:53:28]RasterBufferAndPrint [00:53:28]line [00:53:28]line [00:53:28]line [00:53:28]line [00:53:28]line [00:53:28]written 0, free lines is 3248 [00:53:28]MH_Cut [00:53:28]Write to MH i2c: D1 01 00 F9 9F 01 6A [00:53:28]Write i2c OK [00:53:28]MH_I2C_Read... [00:53:28]Read from MH i2c: D1 [00:53:28]MH_I2C_Read... [00:53:28]Read from MH i2c: D1 01 00 [00:53:28]MH_I2C_Read... [00:53:28]Read from MH i2c: D1 01 00 F9 9F 00 69 [00:53:28]Write to MH i2c: 01 00 00 FA 9F 99 [00:53:28]Write i2c OK [00:53:28]MH_I2C_Read... [00:53:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D3 54 47 00 DB C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 24 01 00 F4 03 04 00 94 93 1A 67 B6 04 01 00 00 A8 A4 1E 53 A8 6A D8 AE [00:53:28]CommunicateWithHost err = 0 [00:53:28]CheckOFDResponse [00:53:28]1017 (14) - 77093643461234 [00:53:28]1041 (16) - 0000000000871795 [00:53:28]1040 (4) - 74789 [00:53:28]1012 (4) - 24.10.2024 18:36 [00:53:28]1206 (1) - 0 [00:53:28]OFD Sender: Remove packet 74789 [00:53:28]ProducePacketName [00:53:28]name=ofd_packets/00074789 [00:53:28]NVStorageDeleteData [00:53:28]OFD Sender: No OFD packet to send [00:53:29]*** Cut start [00:53:29]*** Partial cut [00:53:29]*** CUTSNS_PIN = 1 [00:53:29]*** CUTSNS_PIN = 0 [00:53:29]*** Brake cut motor [00:53:29]Read from MH i2c: 01 [00:53:29]MH_I2C_Read... [00:53:29]*** Stop cut motor [00:53:29]*** Cut end [00:53:29]Read from MH i2c: 01 07 00 [00:53:29]MH_I2C_Read... [00:53:29]Read from MH i2c: 01 07 00 FA 9F 00 00 00 00 00 FF 0F AE [00:53:29]process_action close_receipt done [00:53:29]requested_data is exist [00:53:29]produce_requested_data [00:53:29]requested_item fm.sn is exist - process it [00:53:29]wFMCommunicate request_size=4 [00:53:29]MH_SAM_APDU [00:53:29]CAPDU: 80 11 00 00 [00:53:29]Write to MH i2c: E2 08 00 FB 9F 80 11 00 00 00 00 00 00 14 [00:53:29]Write i2c OK [00:53:29]MH_I2C_Read... [00:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:29]Read from MH i2c: E2 [00:53:29]MH_I2C_Read... [00:53:29]Read from MH i2c: E2 17 00 [00:53:29]MH_I2C_Read... [00:53:29]Read from MH i2c: E2 17 00 FB 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6C [00:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:53:29]wFMCommunicate OK [00:53:29]requested_item fd.num is exist - process it [00:53:29]SAM_PROTO_GetFieldsCounters [00:53:29]wFMCommunicate request_size=4 [00:53:29]MH_SAM_APDU [00:53:29]CAPDU: 80 13 00 00 [00:53:29]Write to MH i2c: E2 08 00 FC 9F 80 13 00 00 00 00 00 00 17 [00:53:29]Write i2c OK [00:53:29]MH_I2C_Read... [00:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:53:30]Read from MH i2c: E2 [00:53:30]MH_I2C_Read... [00:53:30]Read from MH i2c: E2 62 00 [00:53:30]MH_I2C_Read... [00:53:30]Read from MH i2c: E2 62 00 FC 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 25 24 01 00 0E 04 04 00 FF 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 94 [00:53:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 25 24 01 00 0E 04 04 00 FF 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 [00:53:30]wFMCommunicate OK [00:53:30]SAM_PROTO_GetFieldsCounters done [00:53:30]requested_item shift.num is exist - process it [00:53:30]requested_item shift.opened is exist - process it [00:53:30]req_shift_opened [00:53:30]FM_GetShiftState [00:53:30]SAM_PROTO_GetShiftState [00:53:30]wFMCommunicate request_size=4 [00:53:30]MH_SAM_APDU [00:53:30]CAPDU: 80 13 01 00 [00:53:30]Write to MH i2c: E2 08 00 FD 9F 80 13 01 00 00 00 00 00 19 [00:53:30]Write i2c OK [00:53:30]MH_I2C_Read... [00:53:30]Read from MH i2c: E2 [00:53:30]MH_I2C_Read... [00:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:30]Read from MH i2c: E2 0E 00 [00:53:30]MH_I2C_Read... [00:53:30]Read from MH i2c: E2 0E 00 FD 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 52 [00:53:30]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:53:30]wFMCommunicate OK [00:53:30]SAM_PROTO_GetShiftState done [00:53:30]FM_GetShiftState done [00:53:30]req_shift_opened done [00:53:30]requested_item shift.open_date is exist - process it [00:53:30]req_shift_open_date [00:53:30]req_shift_open_date done [00:53:30]produce_requested_data done [00:53:30]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74789,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [00:53:30]process_action_free close_receipt [00:53:30]json_value_free [00:53:30]json_value_free done [00:53:30]process_json_proto returns [00:53:30]Send response to host [00:53:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74789,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [00:53:30]free response buf [00:53:30]execute_script done [00:53:30]execute_script returns [00:53:30]free content buf [00:53:30]Sock 9.Close socket [00:53:30]Sock 9.Thread stoped [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:48]accept exits with 8 [00:58:48]New connection [00:58:48]New thread 3066805604 created [00:58:48]Thread 3066662244 joined [00:58:48]Waiting for new connection... [00:58:48] Sock 8.Parse request [00:58:48]Sock 8.Check first char [00:58:48]Sock 8.First char is OK [00:58:48]request: POST /json_proto HTTP/1.0 [00:58:48]Method: POST [00:58:48]URL: /json_proto [00:58:48]Method is POST - this is cgi request [00:58:48]url: /json_proto [00:58:48]query_string will be loaded in cgi processing [00:58:48]execute_cgi json_proto POST (null) [00:58:48]execute_cgi path=json_proto method=POST [00:58:48]POST find Content-Length [00:58:48]Host: 172.17.39.131:8080 [00:58:48]Content-Length: 751 [00:58:48]Content-Type: application/json [00:58:48] [00:58:48]POST finish read [00:58:48]Found Content-Length = 751 [00:58:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:48]execute_script... [00:58: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)190759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:48]POST & json_proto [00:58:48]process_json_proto [00:58:48]json parsed OK: [00:58:48]protocol is kg_v1.0 [00:58:48]action value=close_receipt [00:58:48]process_action close_receipt [00:58:48]cmd_close_receipt [00:58:48]MH_GetDate [00:58:48]Write to MH i2c: F0 00 00 FE 9F 8C [00:58:48]Write i2c OK [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: F0 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: F0 09 00 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: F0 09 00 FE 9F 00 56 ED 1A 67 86 57 24 65 BF [00:58:48]GetLastDocTimeStamp 1729817619 [00:58:48]current date 1729817942 [00:58:48]FM_GetShiftState [00:58:48]SAM_PROTO_GetShiftState [00:58:48]wFMCommunicate request_size=4 [00:58:48]MH_SAM_APDU [00:58:48]CAPDU: 80 13 01 00 [00:58:48]Write to MH i2c: E2 08 00 FF 9F 80 13 01 00 00 00 00 00 1B [00:58:48]Write i2c OK [00:58:48]MH_I2C_Read... [00:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:48]Read from MH i2c: E2 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: E2 0E 00 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: E2 0E 00 FF 9F 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 54 [00:58:48]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:58:48]wFMCommunicate OK [00:58:48]SAM_PROTO_GetShiftState done [00:58:48]FM_GetShiftState done [00:58:48]opened in 1729815752 [00:58:48]opened+sec_in_day 1729902152 [00:58:48]quantity*price = 0 [00:58:48]sum+1 = 1 [00:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 5 25.10.2024 00:59 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145330 ФМ: 0000000000871795 ФД: 74790 ФПД: 228461524968042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005902&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74790&fm=228461524968042&tin=02508201610067®Number=0000000000091691&sum=0 [00:58:49]StoreToDocumentArchive [00:58:49]shift 511 fd 74790 [00:58:49]save to /storage/0511/doc_00074790 [00:58:49]save last doc name /storage/0511/doc_00074790 to /storage/kkm_last_doc_name [00:58:49]save OK [00:58:49]Clear old archive folders... [00:58:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:58:49]tlvbuf is 008512A0 [00:58:49]SAM_PROTO_ClearQueue [00:58:49]wFMCommunicate request_size=4 [00:58:49]MH_SAM_APDU [00:58:49]CAPDU: 80 09 00 00 [00:58:49]Write to MH i2c: E2 08 00 0C A0 80 09 00 00 00 00 00 00 1E [00:58:49]Write i2c OK [00:58:49]MH_I2C_Read... [00:58:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:49]Read from MH i2c: E2 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 0C A0 00 90 00 20 [00:58:49]RAPDU: 90 00 [00:58:49]wFMCommunicate OK [00:58:49]SAM_PROTO_ClearQueue done [00:58:49]KKMCreateOFDPacket [00:58:49]OFDProtocolAddRootSTLVToBuf [00:58:49]FM_MakeSignedData [00:58:49]FM_MakeSignedData [00:58:49]SAM_PROTO_SignData [00:58:49]wFMCommunicate request_size=4 [00:58:49]MH_SAM_APDU [00:58:49]CAPDU: 80 0D 01 02 [00:58:49]Write to MH i2c: E2 08 00 0D A0 80 0D 01 02 00 00 00 00 26 [00:58:49]Write i2c OK [00:58:49]MH_I2C_Read... [00:58:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:49]Read from MH i2c: E2 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 0D A0 00 90 00 21 [00:58:49]RAPDU: 90 00 [00:58:49]wFMCommunicate OK [00:58:49]wFMCommunicate request_size=255 [00:58:49]MH_SAM_APDU [00:58: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 56 ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 24 01 00 35 04 06 00 CF C8 D8 0A [00:58:49]Write to MH i2c: E2 02 01 0E 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 56 ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 24 01 00 35 04 06 00 CF C8 D8 0A 00 00 28 [00:58:49]Write i2c OK [00:58:49]MH_I2C_Read... [00:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:50]Read from MH i2c: E2 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 03 00 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 03 00 0E A0 00 90 00 22 [00:58:50]RAPDU: 90 00 [00:58:50]wFMCommunicate OK [00:58:50]wFMCommunicate request_size=7 [00:58:50]MH_SAM_APDU [00:58:50]CAPDU: 80 0D 02 02 02 62 6A [00:58:50]Write to MH i2c: E2 0A 00 0F A0 80 0D 02 02 02 00 62 6A 00 00 F9 [00:58:50]Write i2c OK [00:58:50]MH_I2C_Read... [00:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:50]Read from MH i2c: E2 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 03 00 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 03 00 0F A0 00 90 00 23 [00:58:50]RAPDU: 90 00 [00:58:50]wFMCommunicate OK [00:58:50]wFMCommunicate request_size=4 [00:58:50]MH_SAM_APDU [00:58:50]CAPDU: 80 0D 03 02 [00:58:50]Write to MH i2c: E2 08 00 10 A0 80 0D 03 02 00 00 00 00 2B [00:58:50]Write i2c OK [00:58:50]MH_I2C_Read... [00:58:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:50]Read from MH i2c: E2 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 0B 00 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 0B 00 10 A0 00 8E E4 1E 84 DC 42 4A 1F 90 00 C7 [00:58:50]RAPDU: 8E E4 1E 84 DC 42 4A 1F 90 00 [00:58:50]wFMCommunicate OK [00:58:50]SAM_PROTO_SignData done [00:58:50]FM_MakeSignedData done [00:58:50]CreateOFDProtocolMessage [00:58:50]wFMCommunicate request_size=4 [00:58:50]MH_SAM_APDU [00:58:50]CAPDU: 80 11 00 00 [00:58:50]Write to MH i2c: E2 08 00 11 A0 80 11 00 00 00 00 00 00 2B [00:58:50]Write i2c OK [00:58:50]MH_I2C_Read... [00:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:50]Read from MH i2c: E2 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 17 00 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: E2 17 00 11 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [00:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:58:50]wFMCommunicate OK [00:58:50]CreateOFDProtocolMessage done [00:58:50]OFDSenderStorePacket 74790 [00:58:50]StoreOFDPacket docnum=74790 [00:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 92 BC 04 01 89 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 56 ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 24 01 00 35 04 06 00 CF C8 D8 0A 62 6A 8E E4 1E 84 DC 42 4A 1F [00:58:50]CheckFolder [00:58:50]dirname=/storage/ofd_packets [00:58:50]CheckFolder done [00:58:50]ProducePacketName [00:58:50]name=ofd_packets/00074790 [00:58:50]NVStorageSaveData ofd_packets/00074790 [00:58:50]File name is /storage/ofd_packets/00074790 [00:58:50]Write 298 bytes [00:58:50]NVStorageSaveData done [00:58:50]OFDSenderStorePacket done [00:58:50]KKMCreateOFDPacket done [00:58:50]NVStorageSaveData kkm_last_timestamp [00:58:50]File name is /storage/kkm_last_timestamp [00:58:50]Write 4 bytes [00:58:50]NVStorageSaveData done [00:58:50]ExternCall_PrintAddStr [00:58:50]wPrintStart [00:58:50]Write to MH i2c: 01 00 00 12 A0 B2 [00:58:50]Write i2c OK [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: 01 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: 01 07 00 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: 01 07 00 12 A0 00 00 00 00 00 FF 0F C7 [00:58:50]RasterBufferAndPrint [00:58:50]line Счет N : (1)190759 [00:58:50]line ИНН: 02508201610067 [00:58:50]line Контрольно-Кассовый Чек [00:58:50]line ПРОДАЖА [00:58:50]line ТРК (МРК, ГНК) : 31 [00:58:50]line Товар: 2710194210 [00:58:50]line ДТ-К-4 [00:58:50]line 50.000 * 0.00 [00:58:50]line = 0.00 [00:58:50]line НДС 12% НСП 1% [00:58:50]line > о реализуемом товаре [00:58:50]line ИТОГО: 0.00 [00:58:50]line НСП 1% : 0.00 [00:58:50]line НДС 12% : 0.00 [00:58:50]line Наличными: 0.00 [00:58:50]line Безнал.: 0.00 [00:58:50]line Место: АЗС № 142 "Партнер Нефть" [00:58:50]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:58:50]line СНО: Общий режим [00:58:50]line Чек 5 25.10.2024 00:59 [00:58:50]line Смена: 511 ФФД: 1.0 [00:58:50]line ЗНМ: 0300000089 [00:58:50]line РНМ: 0000000000091691 [00:58:50]line Версия ККМ: 001 [00:58:50]line Талоны: ТК ГПНА Online [00:58:50]line 30145330 [00:58:50]line ФМ: 0000000000871795 [00:58:50]line ФД: 74790 [00:58:50]line ФПД: 228461524968042 [00:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005902&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74790&fm=228461524968042&tin=02508201610067®Number=0000000000091691&sum=0 [00:58:50]OFD Sender: Processing packet 74790 [packets to send 13, broken 12] [00:58:50]ProducePacketName [00:58:50]name=ofd_packets/00074790 [00:58:50]OFD Sender: To server: pG, [00:58:50]CommunicateWithHost lk.salyk.kg:30040 [00:58:50]ConnectInit lk.salyk.kg [00:58:50]written 0, free lines is 4095 [00:58:50]Connected sock=10 [00:58:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 92 BC 04 01 89 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 56 ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 24 01 00 35 04 06 00 CF C8 D8 0A 62 6A 8E E4 1E 84 DC 42 4A 1F [00:58:51]Write to MH i2c: 01 00 00 3C A0 DC [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: 01 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: 01 07 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: 01 07 00 3C A0 00 00 00 00 00 B6 0C A5 [00:58:51]RasterBufferAndPrint [00:58:51]line [00:58:51]line [00:58:51]line [00:58:51]line [00:58:51]line [00:58:51]written 0, free lines is 3258 [00:58:51]MH_Cut [00:58:51]Write to MH i2c: D1 01 00 43 A0 01 B5 [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: D1 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: D1 01 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: D1 01 00 43 A0 00 B4 [00:58:51]Write to MH i2c: 01 00 00 44 A0 E4 [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 89 E9 47 00 C6 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 24 01 00 F4 03 04 00 D7 94 1A 67 B6 04 01 00 00 CD A1 81 84 53 F0 97 33 [00:58:51]CommunicateWithHost err = 0 [00:58:51]CheckOFDResponse [00:58:51]1017 (14) - 77093643461234 [00:58:51]1041 (16) - 0000000000871795 [00:58:51]1040 (4) - 74790 [00:58:51]1012 (4) - 24.10.2024 18:41 [00:58:51]1206 (1) - 0 [00:58:51]OFD Sender: Remove packet 74790 [00:58:51]ProducePacketName [00:58:51]name=ofd_packets/00074790 [00:58:51]NVStorageDeleteData [00:58:51]OFD Sender: No OFD packet to send [00:58:51]*** Cut start [00:58:51]*** Partial cut [00:58:51]*** CUTSNS_PIN = 1 [00:58:51]*** CUTSNS_PIN = 0 [00:58:52]*** Brake cut motor [00:58:52]Read from MH i2c: 01 [00:58:52]MH_I2C_Read... [00:58:52]*** Stop cut motor [00:58:52]*** Cut end [00:58:52]Read from MH i2c: 01 07 00 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: 01 07 00 44 A0 00 00 00 00 00 FF 0F F9 [00:58:52]process_action close_receipt done [00:58:52]requested_data is exist [00:58:52]produce_requested_data [00:58:52]requested_item fm.sn is exist - process it [00:58:52]wFMCommunicate request_size=4 [00:58:52]MH_SAM_APDU [00:58:52]CAPDU: 80 11 00 00 [00:58:52]Write to MH i2c: E2 08 00 45 A0 80 11 00 00 00 00 00 00 5F [00:58:52]Write i2c OK [00:58:52]MH_I2C_Read... [00:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:52]Read from MH i2c: E2 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 17 00 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 17 00 45 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B7 [00:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:58:52]wFMCommunicate OK [00:58:52]requested_item fd.num is exist - process it [00:58:52]SAM_PROTO_GetFieldsCounters [00:58:52]wFMCommunicate request_size=4 [00:58:52]MH_SAM_APDU [00:58:52]CAPDU: 80 13 00 00 [00:58:52]Write to MH i2c: E2 08 00 46 A0 80 13 00 00 00 00 00 00 62 [00:58:52]Write i2c OK [00:58:52]MH_I2C_Read... [00:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:52]Read from MH i2c: E2 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 62 00 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 62 00 46 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 26 24 01 00 0E 04 04 00 FF 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 E3 [00:58:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 26 24 01 00 0E 04 04 00 FF 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 [00:58:52]wFMCommunicate OK [00:58:52]SAM_PROTO_GetFieldsCounters done [00:58:52]requested_item shift.num is exist - process it [00:58:52]requested_item shift.opened is exist - process it [00:58:52]req_shift_opened [00:58:52]FM_GetShiftState [00:58:52]SAM_PROTO_GetShiftState [00:58:52]wFMCommunicate request_size=4 [00:58:52]MH_SAM_APDU [00:58:52]CAPDU: 80 13 01 00 [00:58:52]Write to MH i2c: E2 08 00 47 A0 80 13 01 00 00 00 00 00 64 [00:58:52]Write i2c OK [00:58:52]MH_I2C_Read... [00:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:52]Read from MH i2c: E2 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 0E 00 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 0E 00 47 A0 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 9D [00:58:52]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:58:52]wFMCommunicate OK [00:58:52]SAM_PROTO_GetShiftState done [00:58:52]FM_GetShiftState done [00:58:52]req_shift_opened done [00:58:52]requested_item shift.open_date is exist - process it [00:58:52]req_shift_open_date [00:58:52]req_shift_open_date done [00:58:52]produce_requested_data done [00:58:52]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74790,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [00:58:52]process_action_free close_receipt [00:58:52]json_value_free [00:58:52]json_value_free done [00:58:52]process_json_proto returns [00:58:52]Send response to host [00:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74790,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [00:58:52]free response buf [00:58:52]execute_script done [00:58:52]execute_script returns [00:58:52]free content buf [00:58:52]Sock 8.Close socket [00:58:52]Sock 8.Thread stoped [00:58:53]accept exits with 9 [00:58:53]New connection [00:58:53]New thread 3066662244 created [00:58:53]Thread 3066805604 joined [00:58:53]Waiting for new connection... [00:58:53] Sock 9.Parse request [00:58:53]Sock 9.Check first char [00:58:53]Sock 9.First char is OK [00:58:53]request: POST /json_proto HTTP/1.0 [00:58:53]Method: POST [00:58:53]URL: /json_proto [00:58:53]Method is POST - this is cgi request [00:58:53]url: /json_proto [00:58:53]query_string will be loaded in cgi processing [00:58:53]execute_cgi json_proto POST (null) [00:58:53]execute_cgi path=json_proto method=POST [00:58:53]POST find Content-Length [00:58:53]Host: 172.17.39.131:8080 [00:58:53]Content-Length: 685 [00:58:53]Content-Type: application/json [00:58:53] [00:58:53]POST finish read [00:58:53]Found Content-Length = 685 [00:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 44.400, "sum" : 1727.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1727.00, "payments": [ { "type": 0, "sum" : 1727.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:53]execute_script... [00:58: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)190758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 44.400, "sum" : 1727.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1727.00, "payments": [ { "type": 0, "sum" : 1727.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:53]POST & json_proto [00:58:53]process_json_proto [00:58:53]json parsed OK: [00:58:53]protocol is kg_v1.0 [00:58:53]action value=close_receipt [00:58:53]process_action close_receipt [00:58:53]cmd_close_receipt [00:58:53]MH_GetDate [00:58:53]Write to MH i2c: F0 00 00 48 A0 D7 [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: F0 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: F0 09 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: F0 09 00 48 A0 00 5B ED 1A 67 86 57 24 65 0F [00:58:53]GetLastDocTimeStamp 1729817942 [00:58:53]current date 1729817947 [00:58:53]FM_GetShiftState [00:58:53]SAM_PROTO_GetShiftState [00:58:53]wFMCommunicate request_size=4 [00:58:53]MH_SAM_APDU [00:58:53]CAPDU: 80 13 01 00 [00:58:53]Write to MH i2c: E2 08 00 49 A0 80 13 01 00 00 00 00 00 66 [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:53]Read from MH i2c: E2 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 0E 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 0E 00 49 A0 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 9F [00:58:53]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:58:53]wFMCommunicate OK [00:58:53]SAM_PROTO_GetShiftState done [00:58:53]FM_GetShiftState done [00:58:53]opened in 1729815752 [00:58:53]opened+sec_in_day 1729902152 [00:58:53]quantity*price = 172716 [00:58:53]sum+1 = 172717 [00:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1727.00 Внесено: 2500.00 СДАЧА: 773.00 НСП 1% : 15.28 НДС 12% : 183.41 Наличными: 1727.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 6 25.10.2024 00:59 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74791 ФПД: 194381303205242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005907&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74791&fm=194381303205242&tin=02508201610067®Number=0000000000091691&sum=172700 [00:58:54]StoreToDocumentArchive [00:58:54]shift 511 fd 74791 [00:58:54]save to /storage/0511/doc_00074791 [00:58:54]save last doc name /storage/0511/doc_00074791 to /storage/kkm_last_doc_name [00:58:54]save OK [00:58:54]Clear old archive folders... [00:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:58:54]tlvbuf is 00A31D40 [00:58:54]SAM_PROTO_ClearQueue [00:58:54]wFMCommunicate request_size=4 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 09 00 00 [00:58:54]Write to MH i2c: E2 08 00 56 A0 80 09 00 00 00 00 00 00 68 [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:54]Read from MH i2c: E2 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 56 A0 00 90 00 6A [00:58:54]RAPDU: 90 00 [00:58:54]wFMCommunicate OK [00:58:54]SAM_PROTO_ClearQueue done [00:58:54]KKMCreateOFDPacket [00:58:54]OFDProtocolAddRootSTLVToBuf [00:58:54]FM_MakeSignedData [00:58:54]FM_MakeSignedData [00:58:54]SAM_PROTO_SignData [00:58:54]wFMCommunicate request_size=4 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 0D 01 02 [00:58:54]Write to MH i2c: E2 08 00 57 A0 80 0D 01 02 00 00 00 00 70 [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:54]Read from MH i2c: E2 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 03 00 57 A0 00 90 00 6B [00:58:54]RAPDU: 90 00 [00:58:54]wFMCommunicate OK [00:58:54]wFMCommunicate request_size=255 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 70 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 47 00 00 00 00 07 04 06 00 9C A2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5B ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 24 01 00 35 04 06 00 B0 C9 [00:58:54]Write to MH i2c: E2 02 01 58 A0 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 70 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 47 00 00 00 00 07 04 06 00 9C A2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5B ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 24 01 00 35 04 06 00 B0 C9 00 00 D0 [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 58 A0 00 90 00 6C [00:58:55]RAPDU: 90 00 [00:58:55]wFMCommunicate OK [00:58:55]wFMCommunicate request_size=9 [00:58:55]MH_SAM_APDU [00:58:55]CAPDU: 80 0D 02 02 04 EC 87 4D 7A [00:58:55]Write to MH i2c: E2 0C 00 59 A0 80 0D 02 02 04 00 EC 87 4D 7A 00 00 B5 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 03 00 59 A0 00 90 00 6D [00:58:55]RAPDU: 90 00 [00:58:55]wFMCommunicate OK [00:58:55]wFMCommunicate request_size=4 [00:58:55]MH_SAM_APDU [00:58:55]CAPDU: 80 0D 03 02 [00:58:55]Write to MH i2c: E2 08 00 5A A0 80 0D 03 02 00 00 00 00 75 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 0B 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 0B 00 5A A0 00 C2 89 0D F6 5B FC C2 3F 90 00 1C [00:58:55]RAPDU: C2 89 0D F6 5B FC C2 3F 90 00 [00:58:55]wFMCommunicate OK [00:58:55]SAM_PROTO_SignData done [00:58:55]FM_MakeSignedData done [00:58:55]CreateOFDProtocolMessage [00:58:55]wFMCommunicate request_size=4 [00:58:55]MH_SAM_APDU [00:58:55]CAPDU: 80 11 00 00 [00:58:55]Write to MH i2c: E2 08 00 5B A0 80 11 00 00 00 00 00 00 75 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:55]Read from MH i2c: E2 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 17 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: E2 17 00 5B A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CD [00:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:58:55]wFMCommunicate OK [00:58:55]CreateOFDProtocolMessage done [00:58:55]OFDSenderStorePacket 74791 [00:58:55]StoreOFDPacket docnum=74791 [00:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 D1 E3 06 01 AF 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 70 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 47 00 00 00 00 07 04 06 00 9C A2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5B ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 24 01 00 35 04 06 00 B0 C9 EC 87 4D 7A C2 89 0D F6 5B FC C2 3F [00:58:55]CheckFolder [00:58:55]dirname=/storage/ofd_packets [00:58:55]CheckFolder done [00:58:55]ProducePacketName [00:58:55]name=ofd_packets/00074791 [00:58:55]NVStorageSaveData ofd_packets/00074791 [00:58:55]File name is /storage/ofd_packets/00074791 [00:58:55]Write 300 bytes [00:58:55]NVStorageSaveData done [00:58:55]OFDSenderStorePacket done [00:58:55]KKMCreateOFDPacket done [00:58:55]NVStorageSaveData kkm_last_timestamp [00:58:55]File name is /storage/kkm_last_timestamp [00:58:55]Write 4 bytes [00:58:55]NVStorageSaveData done [00:58:55]ExternCall_PrintAddStr [00:58:55]wPrintStart [00:58:55]Write to MH i2c: 01 00 00 5C A0 FC [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 5C A0 00 00 00 00 00 FF 0F 11 [00:58:55]RasterBufferAndPrint [00:58:55]line Счет N : (1)190758 [00:58:55]line ИНН: 02508201610067 [00:58:55]line Контрольно-Кассовый Чек [00:58:55]line ПРОДАЖА [00:58:55]line ТРК (МРК, ГНК) : 51 [00:58:55]line Товар: 2711190000 [00:58:55]line ГАЗ-К-3 [00:58:55]line 44.400 * 38.90 [00:58:55]line = 1727.16 [00:58:55]line НДС 12% НСП 1% [00:58:55]line > о реализуемом товаре [00:58:55]line ОКРУГЛЕНИЕ: -0.16 [00:58:55]line ИТОГО: 1727.00 [00:58:55]line Внесено: 2500.00 [00:58:55]line СДАЧА: 773.00 [00:58:55]line НСП 1% : 15.28 [00:58:55]line НДС 12% : 183.41 [00:58:55]line Наличными: 1727.00 [00:58:55]line Безнал.: 0.00 [00:58:55]line Место: АЗС № 142 "Партнер Нефть" [00:58:55]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:58:55]line СНО: Общий режим [00:58:55]line Чек 6 25.10.2024 00:59 [00:58:55]line Смена: 511 ФФД: 1.0 [00:58:55]line ЗНМ: 0300000089 [00:58:55]line РНМ: 0000000000091691 [00:58:55]line Версия ККМ: 001 [00:58:55]line ФМ: 0000000000871795 [00:58:55]line ФД: 74791 [00:58:55]line ФПД: 194381303205242 [00:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005907&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74791&fm=194381303205242&tin=02508201610067®Number=0000000000091691&sum=172700 [00:58:55]OFD Sender: Processing packet 74791 [packets to send 13, broken 12] [00:58:55]ProducePacketName [00:58:55]name=ofd_packets/00074791 [00:58:55]OFD Sender: To server: pG, [00:58:55]CommunicateWithHost lk.salyk.kg:30040 [00:58:55]ConnectInit lk.salyk.kg [00:58:55]written 0, free lines is 4095 [00:58:56]Write to MH i2c: 01 00 00 87 A0 27 [00:58:56]Write i2c OK [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: 01 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: 01 07 00 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: 01 07 00 87 A0 00 00 00 00 00 A4 0C DE [00:58:56]RasterBufferAndPrint [00:58:56]line [00:58:56]line [00:58:56]line [00:58:56]line [00:58:56]line [00:58:56]written 0, free lines is 3243 [00:58:56]MH_Cut [00:58:56]Write to MH i2c: D1 01 00 8E A0 01 00 [00:58:56]Write i2c OK [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: D1 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: D1 01 00 [00:58:56]MH_I2C_Read... [00:58:56]Read from MH i2c: D1 01 00 8E A0 00 FF [00:58:56]Write to MH i2c: 01 00 00 8F A0 2F [00:58:56]Write i2c OK [00:58:56]MH_I2C_Read... [00:58:56]*** Cut start [00:58:56]*** Partial cut [00:58:56]*** CUTSNS_PIN = 1 [00:58:57]*** CUTSNS_PIN = 0 [00:58:57]*** Brake cut motor [00:58:57]Read from MH i2c: 01 [00:58:57]MH_I2C_Read... [00:58:57]*** Stop cut motor [00:58:57]*** Cut end [00:58:57]Read from MH i2c: 01 07 00 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: 01 07 00 8F A0 00 00 00 00 00 FF 0F 44 [00:58:57]process_action close_receipt done [00:58:57]requested_data is exist [00:58:57]produce_requested_data [00:58:57]requested_item fm.sn is exist - process it [00:58:57]wFMCommunicate request_size=4 [00:58:57]MH_SAM_APDU [00:58:57]CAPDU: 80 11 00 00 [00:58:57]Write to MH i2c: E2 08 00 90 A0 80 11 00 00 00 00 00 00 AA [00:58:57]Write i2c OK [00:58:57]MH_I2C_Read... [00:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:57]Read from MH i2c: E2 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 17 00 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 17 00 90 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [00:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:58:57]wFMCommunicate OK [00:58:57]requested_item fd.num is exist - process it [00:58:57]SAM_PROTO_GetFieldsCounters [00:58:57]wFMCommunicate request_size=4 [00:58:57]MH_SAM_APDU [00:58:57]CAPDU: 80 13 00 00 [00:58:57]Write to MH i2c: E2 08 00 91 A0 80 13 00 00 00 00 00 00 AD [00:58:57]Write i2c OK [00:58:57]MH_I2C_Read... [00:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:57]Read from MH i2c: E2 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 62 00 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 62 00 91 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 27 24 01 00 0E 04 04 00 FF 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 32 [00:58:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 27 24 01 00 0E 04 04 00 FF 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 [00:58:57]wFMCommunicate OK [00:58:57]SAM_PROTO_GetFieldsCounters done [00:58:57]requested_item shift.num is exist - process it [00:58:57]requested_item shift.opened is exist - process it [00:58:57]req_shift_opened [00:58:57]FM_GetShiftState [00:58:57]SAM_PROTO_GetShiftState [00:58:57]wFMCommunicate request_size=4 [00:58:57]MH_SAM_APDU [00:58:57]CAPDU: 80 13 01 00 [00:58:57]Write to MH i2c: E2 08 00 92 A0 80 13 01 00 00 00 00 00 AF [00:58:57]Write i2c OK [00:58:57]MH_I2C_Read... [00:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:57]Read from MH i2c: E2 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 0E 00 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 0E 00 92 A0 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 E8 [00:58:57]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [00:58:57]wFMCommunicate OK [00:58:57]SAM_PROTO_GetShiftState done [00:58:57]FM_GetShiftState done [00:58:57]req_shift_opened done [00:58:57]requested_item shift.open_date is exist - process it [00:58:57]req_shift_open_date [00:58:57]req_shift_open_date done [00:58:57]produce_requested_data done [00:58:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74791,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [00:58:57]process_action_free close_receipt [00:58:57]json_value_free [00:58:57]json_value_free done [00:58:57]process_json_proto returns [00:58:57]Send response to host [00:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74791,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [00:58:57]free response buf [00:58:57]execute_script done [00:58:57]execute_script returns [00:58:57]free content buf [00:58:57]Sock 9.Close socket [00:58:57]Sock 9.Thread stoped [00:59:00]Connected sock=10 [00:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 D1 E3 06 01 AF 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 70 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 47 00 00 00 00 07 04 06 00 9C A2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5B ED 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 24 01 00 35 04 06 00 B0 C9 EC 87 4D 7A C2 89 0D F6 5B FC C2 3F [00:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 38 45 47 00 E7 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 24 01 00 F4 03 04 00 E1 94 1A 67 B6 04 01 00 00 FF 1E 9E EE 32 09 1F E2 [00:59:00]CommunicateWithHost err = 0 [00:59:00]CheckOFDResponse [00:59:00]1017 (14) - 77093643461234 [00:59:00]1041 (16) - 0000000000871795 [00:59:00]1040 (4) - 74791 [00:59:00]1012 (4) - 24.10.2024 18:41 [00:59:00]1206 (1) - 0 [00:59:00]OFD Sender: Remove packet 74791 [00:59:00]ProducePacketName [00:59:00]name=ofd_packets/00074791 [00:59:00]NVStorageDeleteData [00:59:01]OFD Sender: No OFD packet to send [00:59:04]int [00:59:04]Write to MH i2c: 01 00 00 93 A0 33 [00:59:04]*** FLAG_PRN_KEY set [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 93 A0 00 08 00 00 00 FF 0F 50 [00:59:04]state=0 [00:59:04]Key pressed [00:59:04]Feed [00:59:04]Write to MH i2c: D8 00 00 94 A0 0B [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D8 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D8 01 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D8 01 00 94 A0 00 0C [00:59:04]int [00:59:04]Write to MH i2c: 01 00 00 95 A0 35 [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 95 A0 00 48 00 00 00 3C 00 C0 [00:59:04]state=2 [00:59:04]Key pressed [00:59:04]int [00:59:04]Write to MH i2c: 01 00 00 96 A0 36 [00:59:04]*** FLAG_PRN_KEY reset [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 96 A0 00 00 00 00 00 FF 0F 4B [00:59:04]state=2 [00:59:04]Stop feed [00:59:04]int [00:59:04]Write to MH i2c: 01 00 00 97 A0 37 [00:59:04]*** FLAG_PRN_KEY set [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 97 A0 00 08 00 00 00 FF 0F 54 [00:59:04]state=0 [00:59:04]Key pressed [00:59:04]Feed [00:59:04]Write to MH i2c: D8 00 00 98 A0 0F [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D8 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D8 01 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D8 01 00 98 A0 00 10 [00:59:04]int [00:59:04]Write to MH i2c: 01 00 00 99 A0 39 [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 99 A0 00 48 00 00 00 3C 00 C4 [00:59:04]state=2 [00:59:04]Key pressed [00:59:05]int [00:59:05]Write to MH i2c: 01 00 00 9A A0 3A [00:59:05]*** FLAG_PRN_KEY reset [00:59:05]Write i2c OK [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: 01 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: 01 07 00 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: 01 07 00 9A A0 00 00 00 00 00 FA 0F 4A [00:59:05]state=2 [00:59:05]Stop feed [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:47]accept exits with 8 [01:04:47]New connection [01:04:47]New thread 3066805604 created [01:04:47]Thread 3066662244 joined [01:04:47]Waiting for new connection... [01:04:47] Sock 8.Parse request [01:04:47]Sock 8.Check first char [01:04:47]Sock 8.First char is OK [01:04:47]request: POST /json_proto HTTP/1.0 [01:04:47]Method: POST [01:04:47]URL: /json_proto [01:04:47]Method is POST - this is cgi request [01:04:47]url: /json_proto [01:04:47]query_string will be loaded in cgi processing [01:04:47]execute_cgi json_proto POST (null) [01:04:47]execute_cgi path=json_proto method=POST [01:04:47]POST find Content-Length [01:04:47]Host: 172.17.39.131:8080 [01:04:47]Content-Length: 685 [01:04:47]Content-Type: application/json [01:04:47] [01:04:47]POST finish read [01:04:47]Found Content-Length = 685 [01:04:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [01:04:47]execute_script... [01:04:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [01:04:47]POST & json_proto [01:04:47]process_json_proto [01:04:47]json parsed OK: [01:04:47]protocol is kg_v1.0 [01:04:47]action value=close_receipt [01:04:47]process_action close_receipt [01:04:47]cmd_close_receipt [01:04:47]MH_GetDate [01:04:47]Write to MH i2c: F0 00 00 9B A0 2A [01:04:47]Write i2c OK [01:04:47]MH_I2C_Read... [01:04:47]Read from MH i2c: F0 [01:04:47]MH_I2C_Read... [01:04:47]Read from MH i2c: F0 09 00 [01:04:47]MH_I2C_Read... [01:04:47]Read from MH i2c: F0 09 00 9B A0 00 BD EE 1A 67 86 57 24 65 C5 [01:04:47]GetLastDocTimeStamp 1729817947 [01:04:47]current date 1729818301 [01:04:47]FM_GetShiftState [01:04:47]SAM_PROTO_GetShiftState [01:04:47]wFMCommunicate request_size=4 [01:04:47]MH_SAM_APDU [01:04:47]CAPDU: 80 13 01 00 [01:04:47]Write to MH i2c: E2 08 00 9C A0 80 13 01 00 00 00 00 00 B9 [01:04:47]Write i2c OK [01:04:47]MH_I2C_Read... [01:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:47]Read from MH i2c: E2 [01:04:47]MH_I2C_Read... [01:04:47]Read from MH i2c: E2 0E 00 [01:04:47]MH_I2C_Read... [01:04:47]Read from MH i2c: E2 0E 00 9C A0 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 F2 [01:04:47]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [01:04:47]wFMCommunicate OK [01:04:47]SAM_PROTO_GetShiftState done [01:04:47]FM_GetShiftState done [01:04:47]opened in 1729815752 [01:04:47]opened+sec_in_day 1729902152 [01:04:47]quantity*price = 100011 [01:04:47]sum+1 = 100013 [01:04:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 7 25.10.2024 01:05 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74792 ФПД: 116327471810218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010501&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74792&fm=116327471810218&tin=02508201610067®Number=0000000000091691&sum=100000 [01:04:48]StoreToDocumentArchive [01:04:48]shift 511 fd 74792 [01:04:48]save to /storage/0511/doc_00074792 [01:04:48]save last doc name /storage/0511/doc_00074792 to /storage/kkm_last_doc_name [01:04:48]save OK [01:04:48]Clear old archive folders... [01:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:04:48]tlvbuf is 00AF0DD0 [01:04:48]SAM_PROTO_ClearQueue [01:04:48]wFMCommunicate request_size=4 [01:04:48]MH_SAM_APDU [01:04:48]CAPDU: 80 09 00 00 [01:04:48]Write to MH i2c: E2 08 00 A9 A0 80 09 00 00 00 00 00 00 BB [01:04:48]Write i2c OK [01:04:48]MH_I2C_Read... [01:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:04:48]Read from MH i2c: E2 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: E2 03 00 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: E2 03 00 A9 A0 00 90 00 BD [01:04:48]RAPDU: 90 00 [01:04:48]wFMCommunicate OK [01:04:48]SAM_PROTO_ClearQueue done [01:04:48]KKMCreateOFDPacket [01:04:48]OFDProtocolAddRootSTLVToBuf [01:04:48]FM_MakeSignedData [01:04:48]FM_MakeSignedData [01:04:48]SAM_PROTO_SignData [01:04:48]wFMCommunicate request_size=4 [01:04:48]MH_SAM_APDU [01:04:48]CAPDU: 80 0D 01 02 [01:04:48]Write to MH i2c: E2 08 00 AA A0 80 0D 01 02 00 00 00 00 C3 [01:04:48]Write i2c OK [01:04:48]MH_I2C_Read... [01:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:04:48]Read from MH i2c: E2 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: E2 03 00 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: E2 03 00 AA A0 00 90 00 BE [01:04:48]RAPDU: 90 00 [01:04:48]wFMCommunicate OK [01:04:48]wFMCommunicate request_size=255 [01:04:48]MH_SAM_APDU [01:04:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD EE 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 24 01 00 35 04 06 00 69 CC [01:04:48]Write to MH i2c: E2 02 01 AB A0 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD EE 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 24 01 00 35 04 06 00 69 CC 00 00 DF [01:04:48]Write i2c OK [01:04:48]MH_I2C_Read... [01:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:49]Read from MH i2c: E2 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 03 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 03 00 AB A0 00 90 00 BF [01:04:49]RAPDU: 90 00 [01:04:49]wFMCommunicate OK [01:04:49]wFMCommunicate request_size=9 [01:04:49]MH_SAM_APDU [01:04:49]CAPDU: 80 0D 02 02 04 99 A2 86 AA [01:04:49]Write to MH i2c: E2 0C 00 AC A0 80 0D 02 02 04 00 99 A2 86 AA 00 00 39 [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:49]Read from MH i2c: E2 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 03 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 03 00 AC A0 00 90 00 C0 [01:04:49]RAPDU: 90 00 [01:04:49]wFMCommunicate OK [01:04:49]wFMCommunicate request_size=4 [01:04:49]MH_SAM_APDU [01:04:49]CAPDU: 80 0D 03 02 [01:04:49]Write to MH i2c: E2 08 00 AD A0 80 0D 03 02 00 00 00 00 C8 [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:04:49]Read from MH i2c: E2 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 0B 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 0B 00 AD A0 00 1F 34 99 E9 DB FB A7 5B 90 00 76 [01:04:49]RAPDU: 1F 34 99 E9 DB FB A7 5B 90 00 [01:04:49]wFMCommunicate OK [01:04:49]SAM_PROTO_SignData done [01:04:49]FM_MakeSignedData done [01:04:49]CreateOFDProtocolMessage [01:04:49]wFMCommunicate request_size=4 [01:04:49]MH_SAM_APDU [01:04:49]CAPDU: 80 11 00 00 [01:04:49]Write to MH i2c: E2 08 00 AE A0 80 11 00 00 00 00 00 00 C8 [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:49]Read from MH i2c: E2 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 17 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 17 00 AE A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 20 [01:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:04:49]wFMCommunicate OK [01:04:49]CreateOFDProtocolMessage done [01:04:49]OFDSenderStorePacket 74792 [01:04:49]StoreOFDPacket docnum=74792 [01:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 53 B0 06 01 22 5D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD EE 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 24 01 00 35 04 06 00 69 CC 99 A2 86 AA 1F 34 99 E9 DB FB A7 5B [01:04:49]CheckFolder [01:04:49]dirname=/storage/ofd_packets [01:04:49]CheckFolder done [01:04:49]ProducePacketName [01:04:49]name=ofd_packets/00074792 [01:04:49]NVStorageSaveData ofd_packets/00074792 [01:04:49]File name is /storage/ofd_packets/00074792 [01:04:49]Write 300 bytes [01:04:49]NVStorageSaveData done [01:04:49]OFDSenderStorePacket done [01:04:49]KKMCreateOFDPacket done [01:04:49]NVStorageSaveData kkm_last_timestamp [01:04:49]File name is /storage/kkm_last_timestamp [01:04:49]Write 4 bytes [01:04:49]NVStorageSaveData done [01:04:49]ExternCall_PrintAddStr [01:04:49]wPrintStart [01:04:49]Write to MH i2c: 01 00 00 AF A0 4F [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: 01 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: 01 07 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: 01 07 00 AF A0 00 00 00 00 00 FF 0F 64 [01:04:49]RasterBufferAndPrint [01:04:49]line Счет N : (1)190760 [01:04:49]line ИНН: 02508201610067 [01:04:49]line Контрольно-Кассовый Чек [01:04:49]line ПРОДАЖА [01:04:49]line ТРК (МРК, ГНК) : 51 [01:04:49]line Товар: 2711190000 [01:04:49]line ГАЗ-К-3 [01:04:49]line 25.710 * 38.90 [01:04:49]line = 1000.12 [01:04:49]line НДС 12% НСП 1% [01:04:49]line > о реализуемом товаре [01:04:49]line ОКРУГЛЕНИЕ: -0.12 [01:04:49]line ИТОГО: 1000.00 [01:04:49]line Внесено: 1000.00 [01:04:49]line СДАЧА: 0.00 [01:04:49]line НСП 1% : 8.85 [01:04:49]line НДС 12% : 106.21 [01:04:49]line Наличными: 1000.00 [01:04:49]line Безнал.: 0.00 [01:04:49]line Место: АЗС № 142 "Партнер Нефть" [01:04:49]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:04:49]line СНО: Общий режим [01:04:49]line Чек 7 25.10.2024 01:05 [01:04:49]line Смена: 511 ФФД: 1.0 [01:04:49]line ЗНМ: 0300000089 [01:04:49]line РНМ: 0000000000091691 [01:04:49]line Версия ККМ: 001 [01:04:49]line ФМ: 0000000000871795 [01:04:49]line ФД: 74792 [01:04:49]line ФПД: 116327471810218 [01:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010501&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74792&fm=116327471810218&tin=02508201610067®Number=0000000000091691&sum=100000 [01:04:49]written 0, free lines is 4095 [01:04:49]OFD Sender: Processing packet 74792 [packets to send 13, broken 12] [01:04:49]ProducePacketName [01:04:49]name=ofd_packets/00074792 [01:04:49]OFD Sender: To server: pG, [01:04:49]CommunicateWithHost lk.salyk.kg:30040 [01:04:49]ConnectInit lk.salyk.kg [01:04:49]Connected sock=11 [01:04:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 53 B0 06 01 22 5D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD EE 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 24 01 00 35 04 06 00 69 CC 99 A2 86 AA 1F 34 99 E9 DB FB A7 5B [01:04:49]Write to MH i2c: 01 00 00 DA A0 7A [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: 01 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: 01 07 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: 01 07 00 DA A0 00 00 00 00 00 A5 0C 32 [01:04:49]RasterBufferAndPrint [01:04:49]line [01:04:49]line [01:04:49]line [01:04:49]line [01:04:49]line [01:04:49]written 0, free lines is 3242 [01:04:49]MH_Cut [01:04:49]Write to MH i2c: D1 01 00 E1 A0 01 53 [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: D1 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: D1 01 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: D1 01 00 E1 A0 00 52 [01:04:49]Write to MH i2c: 01 00 00 E2 A0 82 [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 37 68 47 00 94 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 31 37 39 35 10 04 04 00 28 24 01 00 F4 03 04 00 3E 96 1A 67 B6 04 01 00 00 31 A5 41 B6 52 56 78 09 [01:04:49]CommunicateWithHost err = 0 [01:04:49]CheckOFDResponse [01:04:49]1017 (14) - 77093643461234 [01:04:49]1041 (16) - 0000000000871795 [01:04:49]1040 (4) - 74792 [01:04:49]1012 (4) - 24.10.2024 18:47 [01:04:49]1206 (1) - 0 [01:04:49]OFD Sender: Remove packet 74792 [01:04:49]ProducePacketName [01:04:49]name=ofd_packets/00074792 [01:04:49]NVStorageDeleteData [01:04:50]OFD Sender: No OFD packet to send [01:04:50]*** Cut start [01:04:50]*** Partial cut [01:04:50]*** CUTSNS_PIN = 1 [01:04:50]*** CUTSNS_PIN = 0 [01:04:51]*** Brake cut motor [01:04:51]Read from MH i2c: 01 [01:04:51]MH_I2C_Read... [01:04:51]*** Stop cut motor [01:04:51]*** Cut end [01:04:51]Read from MH i2c: 01 07 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: 01 07 00 E2 A0 00 00 00 00 00 FF 0F 97 [01:04:51]process_action close_receipt done [01:04:51]requested_data is exist [01:04:51]produce_requested_data [01:04:51]requested_item fm.sn is exist - process it [01:04:51]wFMCommunicate request_size=4 [01:04:51]MH_SAM_APDU [01:04:51]CAPDU: 80 11 00 00 [01:04:51]Write to MH i2c: E2 08 00 E3 A0 80 11 00 00 00 00 00 00 FD [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:51]Read from MH i2c: E2 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 17 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 17 00 E3 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 55 [01:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:04:51]wFMCommunicate OK [01:04:51]requested_item fd.num is exist - process it [01:04:51]SAM_PROTO_GetFieldsCounters [01:04:51]wFMCommunicate request_size=4 [01:04:51]MH_SAM_APDU [01:04:51]CAPDU: 80 13 00 00 [01:04:51]Write to MH i2c: E2 08 00 E4 A0 80 13 00 00 00 00 00 00 00 [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:04:51]Read from MH i2c: E2 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 62 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 62 00 E4 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 28 24 01 00 0E 04 04 00 FF 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 89 [01:04:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 28 24 01 00 0E 04 04 00 FF 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:04:51]wFMCommunicate OK [01:04:51]SAM_PROTO_GetFieldsCounters done [01:04:51]requested_item shift.num is exist - process it [01:04:51]requested_item shift.opened is exist - process it [01:04:51]req_shift_opened [01:04:51]FM_GetShiftState [01:04:51]SAM_PROTO_GetShiftState [01:04:51]wFMCommunicate request_size=4 [01:04:51]MH_SAM_APDU [01:04:51]CAPDU: 80 13 01 00 [01:04:51]Write to MH i2c: E2 08 00 E5 A0 80 13 01 00 00 00 00 00 02 [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:51]Read from MH i2c: E2 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 0E 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 0E 00 E5 A0 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 3B [01:04:51]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [01:04:51]wFMCommunicate OK [01:04:51]SAM_PROTO_GetShiftState done [01:04:51]FM_GetShiftState done [01:04:51]req_shift_opened done [01:04:51]requested_item shift.open_date is exist - process it [01:04:51]req_shift_open_date [01:04:51]req_shift_open_date done [01:04:51]produce_requested_data done [01:04:51]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74792,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [01:04:51]process_action_free close_receipt [01:04:51]json_value_free [01:04:51]json_value_free done [01:04:51]process_json_proto returns [01:04:51]Send response to host [01:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74792,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [01:04:51]free response buf [01:04:51]execute_script done [01:04:51]execute_script returns [01:04:51]free content buf [01:04:51]Sock 8.Close socket [01:04:51]Sock 8.Thread stoped [01:04:55]OFD Sender: No OFD packet to send [01:04:58]ConnectInit Can't connect to host [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:31]accept exits with 10 [01:26:31]New connection [01:26:31]New thread 3066662244 created [01:26:31]Thread 3066805604 joined [01:26:31]Waiting for new connection... [01:26:31] Sock 10.Parse request [01:26:31]Sock 10.Check first char [01:26:31]Sock 10.First char is OK [01:26:31]request: POST /json_proto HTTP/1.0 [01:26:31]Method: POST [01:26:31]URL: /json_proto [01:26:31]Method is POST - this is cgi request [01:26:31]url: /json_proto [01:26:31]query_string will be loaded in cgi processing [01:26:31]execute_cgi json_proto POST (null) [01:26:31]execute_cgi path=json_proto method=POST [01:26:31]POST find Content-Length [01:26:31]Host: 172.17.39.131:8080 [01:26:31]Content-Length: 682 [01:26:31]Content-Type: application/json [01:26:31] [01:26:31]POST finish read [01:26:31]Found Content-Length = 682 [01:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:31]execute_script... [01:26: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)190761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:31]POST & json_proto [01:26:31]process_json_proto [01:26:31]json parsed OK: [01:26:31]protocol is kg_v1.0 [01:26:31]action value=close_receipt [01:26:31]process_action close_receipt [01:26:31]cmd_close_receipt [01:26:31]MH_GetDate [01:26:31]Write to MH i2c: F0 00 00 E6 A0 75 [01:26:31]Write i2c OK [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: F0 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: F0 09 00 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: F0 09 00 E6 A0 00 D5 F3 1A 67 86 57 24 65 2D [01:26:31]GetLastDocTimeStamp 1729818301 [01:26:31]current date 1729819605 [01:26:31]FM_GetShiftState [01:26:31]SAM_PROTO_GetShiftState [01:26:31]wFMCommunicate request_size=4 [01:26:31]MH_SAM_APDU [01:26:31]CAPDU: 80 13 01 00 [01:26:31]Write to MH i2c: E2 08 00 E7 A0 80 13 01 00 00 00 00 00 04 [01:26:31]Write i2c OK [01:26:31]MH_I2C_Read... [01:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:31]Read from MH i2c: E2 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 0E 00 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 0E 00 E7 A0 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 3D [01:26:31]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [01:26:31]wFMCommunicate OK [01:26:31]SAM_PROTO_GetShiftState done [01:26:31]FM_GetShiftState done [01:26:31]opened in 1729815752 [01:26:31]opened+sec_in_day 1729902152 [01:26:31]quantity*price = 200031 [01:26:31]sum+1 = 200032 [01:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 8 25.10.2024 01:26 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74793 ФПД: 261392025027183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012645&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74793&fm=261392025027183&tin=02508201610067®Number=0000000000091691&sum=200000 [01:26:33]StoreToDocumentArchive [01:26:33]shift 511 fd 74793 [01:26:33]save to /storage/0511/doc_00074793 [01:26:33]save last doc name /storage/0511/doc_00074793 to /storage/kkm_last_doc_name [01:26:33]save OK [01:26:33]Clear old archive folders... [01:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:26:33]tlvbuf is 00AF14A0 [01:26:33]SAM_PROTO_ClearQueue [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 09 00 00 [01:26:33]Write to MH i2c: E2 08 00 F4 A0 80 09 00 00 00 00 00 00 06 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 F4 A0 00 90 00 08 [01:26:33]RAPDU: 90 00 [01:26:33]wFMCommunicate OK [01:26:33]SAM_PROTO_ClearQueue done [01:26:33]KKMCreateOFDPacket [01:26:33]OFDProtocolAddRootSTLVToBuf [01:26:33]FM_MakeSignedData [01:26:33]FM_MakeSignedData [01:26:33]SAM_PROTO_SignData [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 0D 01 02 [01:26:33]Write to MH i2c: E2 08 00 F5 A0 80 0D 01 02 00 00 00 00 0E [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 F5 A0 00 90 00 09 [01:26:33]RAPDU: 90 00 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=255 [01:26:33]MH_SAM_APDU [01:26: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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D5 F3 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 24 01 00 35 04 06 00 ED [01:26:33]Write to MH i2c: E2 02 01 F6 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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D5 F3 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 24 01 00 35 04 06 00 ED 00 00 71 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 F6 A0 00 90 00 0A [01:26:33]RAPDU: 90 00 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=10 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 0D 02 02 05 BC 12 CC 82 6F [01:26:33]Write to MH i2c: E2 0D 00 F7 A0 80 0D 02 02 05 00 BC 12 CC 82 6F 00 00 A6 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 03 00 F7 A0 00 90 00 0B [01:26:33]RAPDU: 90 00 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 0D 03 02 [01:26:33]Write to MH i2c: E2 08 00 F8 A0 80 0D 03 02 00 00 00 00 13 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 0B 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 0B 00 F8 A0 00 98 2E 2C 4E 7C 6E 88 94 90 00 5A [01:26:33]RAPDU: 98 2E 2C 4E 7C 6E 88 94 90 00 [01:26:33]wFMCommunicate OK [01:26:33]SAM_PROTO_SignData done [01:26:33]FM_MakeSignedData done [01:26:33]CreateOFDProtocolMessage [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 11 00 00 [01:26:33]Write to MH i2c: E2 08 00 F9 A0 80 11 00 00 00 00 00 00 13 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 17 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 17 00 F9 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6B [01:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:26:33]wFMCommunicate OK [01:26:33]CreateOFDProtocolMessage done [01:26:33]OFDSenderStorePacket 74793 [01:26:33]StoreOFDPacket docnum=74793 [01:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 70 4A 07 01 55 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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D5 F3 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 24 01 00 35 04 06 00 ED BC 12 CC 82 6F 98 2E 2C 4E 7C 6E 88 94 [01:26:33]CheckFolder [01:26:33]dirname=/storage/ofd_packets [01:26:33]CheckFolder done [01:26:33]ProducePacketName [01:26:33]name=ofd_packets/00074793 [01:26:33]NVStorageSaveData ofd_packets/00074793 [01:26:33]File name is /storage/ofd_packets/00074793 [01:26:33]Write 301 bytes [01:26:33]NVStorageSaveData done [01:26:33]OFDSenderStorePacket done [01:26:33]KKMCreateOFDPacket done [01:26:33]NVStorageSaveData kkm_last_timestamp [01:26:33]File name is /storage/kkm_last_timestamp [01:26:33]Write 4 bytes [01:26:33]NVStorageSaveData done [01:26:33]ExternCall_PrintAddStr [01:26:33]wPrintStart [01:26:33]Write to MH i2c: 01 00 00 FA A0 9A [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: 01 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: 01 07 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: 01 07 00 FA A0 00 00 00 00 00 FF 0F AF [01:26:33]RasterBufferAndPrint [01:26:33]line Счет N : (1)190761 [01:26:33]line ИНН: 02508201610067 [01:26:33]line Контрольно-Кассовый Чек [01:26:33]line ПРОДАЖА [01:26:33]line ТРК (МРК, ГНК) : 21 [01:26:33]line Товар: 2710124130 [01:26:33]line Аи-92-К-5 [01:26:33]line 29.900 * 66.90 [01:26:33]line = 2000.31 [01:26:33]line НДС 12% НСП 1% [01:26:33]line > о реализуемом товаре [01:26:33]line ОКРУГЛЕНИЕ: -0.31 [01:26:33]line ИТОГО: 2000.00 [01:26:33]line Внесено: 2000.00 [01:26:33]line СДАЧА: 0.00 [01:26:33]line НСП 1% : 17.70 [01:26:33]line НДС 12% : 212.42 [01:26:33]line Наличными: 2000.00 [01:26:33]line Безнал.: 0.00 [01:26:33]line Место: АЗС № 142 "Партнер Нефть" [01:26:33]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:26:33]line СНО: Общий режим [01:26:33]line Чек 8 25.10.2024 01:26 [01:26:33]line Смена: 511 ФФД: 1.0 [01:26:33]line ЗНМ: 0300000089 [01:26:33]line РНМ: 0000000000091691 [01:26:33]line Версия ККМ: 001 [01:26:33]line ФМ: 0000000000871795 [01:26:33]line ФД: 74793 [01:26:33]line ФПД: 261392025027183 [01:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012645&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74793&fm=261392025027183&tin=02508201610067®Number=0000000000091691&sum=200000 [01:26:33]written 0, free lines is 4095 [01:26:33]OFD Sender: Processing packet 74793 [packets to send 13, broken 12] [01:26:33]ProducePacketName [01:26:33]name=ofd_packets/00074793 [01:26:33]OFD Sender: To server: pG, [01:26:33]CommunicateWithHost lk.salyk.kg:30040 [01:26:33]ConnectInit lk.salyk.kg [01:26:34]Connected sock=9 [01:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 70 4A 07 01 55 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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D5 F3 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 24 01 00 35 04 06 00 ED BC 12 CC 82 6F 98 2E 2C 4E 7C 6E 88 94 [01:26:34]Write to MH i2c: 01 00 00 25 A1 C6 [01:26:34]Write i2c OK [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: 01 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: 01 07 00 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: 01 07 00 25 A1 00 00 00 00 00 B2 0C 8B [01:26:34]RasterBufferAndPrint [01:26:34]line [01:26:34]line [01:26:34]line [01:26:34]line [01:26:34]line [01:26:34]written 0, free lines is 3257 [01:26:34]MH_Cut [01:26:34]Write to MH i2c: D1 01 00 2C A1 01 9F [01:26:34]Write i2c OK [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: D1 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: D1 01 00 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: D1 01 00 2C A1 00 9E [01:26:34]Write to MH i2c: 01 00 00 2D A1 CE [01:26:34]Write i2c OK [01:26:34]MH_I2C_Read... [01:26:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1B 4D 47 00 9D 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 24 01 00 F4 03 04 00 56 9B 1A 67 B6 04 01 00 00 B6 58 5E B4 20 AB AC 65 [01:26:34]CommunicateWithHost err = 0 [01:26:34]CheckOFDResponse [01:26:34]1017 (14) - 77093643461234 [01:26:34]1041 (16) - 0000000000871795 [01:26:34]1040 (4) - 74793 [01:26:34]1012 (4) - 24.10.2024 19:09 [01:26:34]1206 (1) - 0 [01:26:34]OFD Sender: Remove packet 74793 [01:26:34]ProducePacketName [01:26:34]name=ofd_packets/00074793 [01:26:34]NVStorageDeleteData [01:26:34]OFD Sender: No OFD packet to send [01:26:35]*** Cut start [01:26:35]*** Partial cut [01:26:35]*** CUTSNS_PIN = 1 [01:26:35]*** CUTSNS_PIN = 0 [01:26:35]*** Brake cut motor [01:26:35]Read from MH i2c: 01 [01:26:35]MH_I2C_Read... [01:26:35]*** Stop cut motor [01:26:35]*** Cut end [01:26:35]Read from MH i2c: 01 07 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: 01 07 00 2D A1 00 00 00 00 00 FF 0F E3 [01:26:35]process_action close_receipt done [01:26:35]requested_data is exist [01:26:35]produce_requested_data [01:26:35]requested_item fm.sn is exist - process it [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 11 00 00 [01:26:35]Write to MH i2c: E2 08 00 2E A1 80 11 00 00 00 00 00 00 49 [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:35]Read from MH i2c: E2 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 17 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 17 00 2E A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A1 [01:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:26:35]wFMCommunicate OK [01:26:35]requested_item fd.num is exist - process it [01:26:35]SAM_PROTO_GetFieldsCounters [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 13 00 00 [01:26:35]Write to MH i2c: E2 08 00 2F A1 80 13 00 00 00 00 00 00 4C [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:36]Read from MH i2c: E2 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 62 00 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 62 00 2F 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 29 24 01 00 0E 04 04 00 FF 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 D9 [01:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 29 24 01 00 0E 04 04 00 FF 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:36]wFMCommunicate OK [01:26:36]SAM_PROTO_GetFieldsCounters done [01:26:36]requested_item shift.num is exist - process it [01:26:36]requested_item shift.opened is exist - process it [01:26:36]req_shift_opened [01:26:36]FM_GetShiftState [01:26:36]SAM_PROTO_GetShiftState [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 13 01 00 [01:26:36]Write to MH i2c: E2 08 00 30 A1 80 13 01 00 00 00 00 00 4E [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:36]Read from MH i2c: E2 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 0E 00 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 0E 00 30 A1 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 87 [01:26:36]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [01:26:36]wFMCommunicate OK [01:26:36]SAM_PROTO_GetShiftState done [01:26:36]FM_GetShiftState done [01:26:36]req_shift_opened done [01:26:36]requested_item shift.open_date is exist - process it [01:26:36]req_shift_open_date [01:26:36]req_shift_open_date done [01:26:36]produce_requested_data done [01:26:36]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74793,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [01:26:36]process_action_free close_receipt [01:26:36]json_value_free [01:26:36]json_value_free done [01:26:36]process_json_proto returns [01:26:36]Send response to host [01:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74793,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [01:26:36]free response buf [01:26:36]execute_script done [01:26:36]execute_script returns [01:26:36]free content buf [01:26:36]Sock 10.Close socket [01:26:36]Sock 10.Thread stoped [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28: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:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 21 17 07 01 E9 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 ED F7 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 24 01 00 35 04 06 00 FA A4 24 F8 E3 AE DF E8 88 04 3A A2 8D 67 [01:44:01]CheckFolder [01:44:01]dirname=/storage/ofd_packets [01:44:01]CheckFolder done [01:44:01]ProducePacketName [01:44:01]name=ofd_packets/00074794 [01:44:01]NVStorageSaveData ofd_packets/00074794 [01:44:01]File name is /storage/ofd_packets/00074794 [01:44:01]Write 301 bytes [01:44:01]NVStorageSaveData done [01:44:01]OFDSenderStorePacket done [01:44:01]KKMCreateOFDPacket done [01:44:01]NVStorageSaveData kkm_last_timestamp [01:44:01]File name is /storage/kkm_last_timestamp [01:44:01]Write 4 bytes [01:44:01]NVStorageSaveData done [01:44:01]ExternCall_PrintAddStr [01:44:01]wPrintStart [01:44:01]Write to MH i2c: 01 00 00 45 A1 E6 [01:44:01]Write i2c OK [01:44:01]MH_I2C_Read... [01:44:01]Read from MH i2c: 01 [01:44:01]MH_I2C_Read... [01:44:01]Read from MH i2c: 01 07 00 [01:44:01]MH_I2C_Read... [01:44:01]Read from MH i2c: 01 07 00 45 A1 00 00 00 00 00 FF 0F FB [01:44:01]RasterBufferAndPrint [01:44:01]line Счет N : (1)190762 [01:44:01]line ИНН: 02508201610067 [01:44:01]line Контрольно-Кассовый Чек [01:44:01]line ПРОДАЖА [01:44:01]line ТРК (МРК, ГНК) : 21 [01:44:01]line Товар: 2710124130 [01:44:01]line Аи-92-К-5 [01:44:01]line 7.480 * 66.90 [01:44:01]line = 500.41 [01:44:01]line НДС 12% НСП 1% [01:44:01]line > о реализуемом товаре [01:44:01]line ОКРУГЛЕНИЕ: -0.41 [01:44:01]line ИТОГО: 500.00 [01:44:01]line Внесено: 500.00 [01:44:01]line СДАЧА: 0.00 [01:44:01]line НСП 1% : 4.43 [01:44:01]line НДС 12% : 53.14 [01:44:01]line Наличными: 500.00 [01:44:01]line Безнал.: 0.00 [01:44:01]line Место: АЗС № 142 "Партнер Нефть" [01:44:01]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:44:01]line СНО: Общий режим [01:44:01]line Чек 9 25.10.2024 01:44 [01:44:01]line Смена: 511 ФФД: 1.0 [01:44:01]line ЗНМ: 0300000089 [01:44:01]line РНМ: 0000000000091691 [01:44:01]line Версия ККМ: 001 [01:44:01]line ФМ: 0000000000871795 [01:44:01]line ФД: 74794 [01:44:01]line ФПД: 275582901871534 [01:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T014413&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74794&fm=275582901871534&tin=02508201610067®Number=0000000000091691&sum=50000 [01:44:01]OFD Sender: Processing packet 74794 [packets to send 13, broken 12] [01:44:01]ProducePacketName [01:44:01]name=ofd_packets/00074794 [01:44:01]OFD Sender: To server: pG, [01:44:01]CommunicateWithHost lk.salyk.kg:30040 [01:44:01]ConnectInit lk.salyk.kg [01:44:01]written 0, free lines is 4095 [01:44:01]Connected sock=11 [01:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 21 17 07 01 E9 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 ED F7 1A 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 24 01 00 35 04 06 00 FA A4 24 F8 E3 AE DF E8 88 04 3A A2 8D 67 [01:44:02]Write to MH i2c: 01 00 00 70 A1 11 [01:44:02]Write i2c OK [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: 01 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: 01 07 00 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: 01 07 00 70 A1 00 00 00 00 00 99 0C BD [01:44:02]RasterBufferAndPrint [01:44:02]line [01:44:02]line [01:44:02]line [01:44:02]line [01:44:02]line [01:44:02]written 0, free lines is 3232 [01:44:02]MH_Cut [01:44:02]Write to MH i2c: D1 01 00 77 A1 01 EA [01:44:02]Write i2c OK [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: D1 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: D1 01 00 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: D1 01 00 77 A1 00 E9 [01:44:02]Write to MH i2c: 01 00 00 78 A1 19 [01:44:02]Write i2c OK [01:44:02]MH_I2C_Read... [01:44:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E8 00 47 00 C4 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 24 01 00 F4 03 04 00 6E 9F 1A 67 B6 04 01 00 00 FC AA 1E 2F 3D 32 0D 56 [01:44:02]CommunicateWithHost err = 0 [01:44:02]CheckOFDResponse [01:44:02]1017 (14) - 77093643461234 [01:44:02]1041 (16) - 0000000000871795 [01:44:02]1040 (4) - 74794 [01:44:02]1012 (4) - 24.10.2024 19:26 [01:44:02]1206 (1) - 0 [01:44:02]OFD Sender: Remove packet 74794 [01:44:02]ProducePacketName [01:44:02]name=ofd_packets/00074794 [01:44:02]NVStorageDeleteData [01:44:02]OFD Sender: No OFD packet to send [01:44:03]*** Cut start [01:44:03]*** Partial cut [01:44:03]*** CUTSNS_PIN = 1 [01:44:03]*** CUTSNS_PIN = 0 [01:44:03]*** Brake cut motor [01:44:03]Read from MH i2c: 01 [01:44:03]MH_I2C_Read... [01:44:03]*** Stop cut motor [01:44:03]*** Cut end [01:44:03]Read from MH i2c: 01 07 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: 01 07 00 78 A1 00 00 00 00 00 FF 0F 2E [01:44:03]process_action close_receipt done [01:44:03]requested_data is exist [01:44:03]produce_requested_data [01:44:03]requested_item fm.sn is exist - process it [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 11 00 00 [01:44:03]Write to MH i2c: E2 08 00 79 A1 80 11 00 00 00 00 00 00 94 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 17 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 17 00 79 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EC [01:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:44:03]wFMCommunicate OK [01:44:03]requested_item fd.num is exist - process it [01:44:03]SAM_PROTO_GetFieldsCounters [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 13 00 00 [01:44:03]Write to MH i2c: E2 08 00 7A A1 80 13 00 00 00 00 00 00 97 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 62 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 62 00 7A 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2A 24 01 00 0E 04 04 00 FF 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 28 [01:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2A 24 01 00 0E 04 04 00 FF 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:44:03]wFMCommunicate OK [01:44:03]SAM_PROTO_GetFieldsCounters done [01:44:03]requested_item shift.num is exist - process it [01:44:03]requested_item shift.opened is exist - process it [01:44:03]req_shift_opened [01:44:03]FM_GetShiftState [01:44:03]SAM_PROTO_GetShiftState [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 13 01 00 [01:44:03]Write to MH i2c: E2 08 00 7B A1 80 13 01 00 00 00 00 00 99 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 0E 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 0E 00 7B A1 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 D2 [01:44:03]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [01:44:03]wFMCommunicate OK [01:44:03]SAM_PROTO_GetShiftState done [01:44:03]FM_GetShiftState done [01:44:03]req_shift_opened done [01:44:03]requested_item shift.open_date is exist - process it [01:44:03]req_shift_open_date [01:44:03]req_shift_open_date done [01:44:03]produce_requested_data done [01:44:03]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74794,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [01:44:03]process_action_free close_receipt [01:44:03]json_value_free [01:44:03]json_value_free done [01:44:03]process_json_proto returns [01:44:03]Send response to host [01:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74794,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [01:44:03]free response buf [01:44:03]execute_script done [01:44:03]execute_script returns [01:44:03]free content buf [01:44:03]Sock 8.Close socket [01:44:03]Sock 8.Thread stoped [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]ConnectInit Can't connect to host [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:35]ConnectInit Can't connect to host [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:16]accept exits with 10 [02:19:16]New connection [02:19:16]New thread 3066662244 created [02:19:16]Thread 3066805604 joined [02:19:16]Waiting for new connection... [02:19:16] Sock 10.Parse request [02:19:16]Sock 10.Check first char [02:19:16]Sock 10.First char is OK [02:19:16]request: POST /json_proto HTTP/1.0 [02:19:16]Method: POST [02:19:16]URL: /json_proto [02:19:16]Method is POST - this is cgi request [02:19:16]url: /json_proto [02:19:16]query_string will be loaded in cgi processing [02:19:16]execute_cgi json_proto POST (null) [02:19:16]execute_cgi path=json_proto method=POST [02:19:16]POST find Content-Length [02:19:16]Host: 172.17.39.131:8080 [02:19:16]Content-Length: 680 [02:19:16]Content-Type: application/json [02:19:16] [02:19:16]POST finish read [02:19:16]Found Content-Length = 680 [02:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 9.000, "sum" : 350.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:16]execute_script... [02:19: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)190763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 9.000, "sum" : 350.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:16]POST & json_proto [02:19:16]process_json_proto [02:19:16]json parsed OK: [02:19:16]protocol is kg_v1.0 [02:19:16]action value=close_receipt [02:19:16]process_action close_receipt [02:19:16]cmd_close_receipt [02:19:16]MH_GetDate [02:19:16]Write to MH i2c: F0 00 00 7C A1 0C [02:19:16]Write i2c OK [02:19:16]MH_I2C_Read... [02:19:16]Read from MH i2c: F0 [02:19:16]MH_I2C_Read... [02:19:16]Read from MH i2c: F0 09 00 [02:19:16]MH_I2C_Read... [02:19:16]Read from MH i2c: F0 09 00 7C A1 00 32 00 1B 67 86 57 24 65 2F [02:19:16]GetLastDocTimeStamp 1729820653 [02:19:16]current date 1729822770 [02:19:16]FM_GetShiftState [02:19:16]SAM_PROTO_GetShiftState [02:19:16]wFMCommunicate request_size=4 [02:19:16]MH_SAM_APDU [02:19:16]CAPDU: 80 13 01 00 [02:19:16]Write to MH i2c: E2 08 00 7D A1 80 13 01 00 00 00 00 00 9B [02:19:16]Write i2c OK [02:19:16]MH_I2C_Read... [02:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:16]Read from MH i2c: E2 [02:19:16]MH_I2C_Read... [02:19:16]Read from MH i2c: E2 0E 00 [02:19:16]MH_I2C_Read... [02:19:16]Read from MH i2c: E2 0E 00 7D A1 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 D4 [02:19:16]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [02:19:16]wFMCommunicate OK [02:19:16]SAM_PROTO_GetShiftState done [02:19:16]FM_GetShiftState done [02:19:16]opened in 1729815752 [02:19:16]opened+sec_in_day 1729902152 [02:19:16]quantity*price = 35010 [02:19:16]sum+1 = 35011 [02:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.18 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 10 25.10.2024 02:19 Смена: 511 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 74795 ФПД: 118618320928729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T021930&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74795&fm=118618320928729&tin=02508201610067®Number=0000000000091691&sum=35000 [02:19:17]StoreToDocumentArchive [02:19:17]shift 511 fd 74795 [02:19:17]save to /storage/0511/doc_00074795 [02:19:17]save last doc name /storage/0511/doc_00074795 to /storage/kkm_last_doc_name [02:19:17]save OK [02:19:17]Clear old archive folders... [02:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:19:17]tlvbuf is 00893EB0 [02:19:17]SAM_PROTO_ClearQueue [02:19:17]wFMCommunicate request_size=4 [02:19:17]MH_SAM_APDU [02:19:17]CAPDU: 80 09 00 00 [02:19:17]Write to MH i2c: E2 08 00 8A A1 80 09 00 00 00 00 00 00 9D [02:19:17]Write i2c OK [02:19:17]MH_I2C_Read... [02:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:17]Read from MH i2c: E2 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 8A A1 00 90 00 9F [02:19:17]RAPDU: 90 00 [02:19:17]wFMCommunicate OK [02:19:17]SAM_PROTO_ClearQueue done [02:19:17]KKMCreateOFDPacket [02:19:17]OFDProtocolAddRootSTLVToBuf [02:19:17]FM_MakeSignedData [02:19:17]FM_MakeSignedData [02:19:17]SAM_PROTO_SignData [02:19:17]wFMCommunicate request_size=4 [02:19:17]MH_SAM_APDU [02:19:17]CAPDU: 80 0D 01 02 [02:19:17]Write to MH i2c: E2 08 00 8B A1 80 0D 01 02 00 00 00 00 A5 [02:19:17]Write i2c OK [02:19:17]MH_I2C_Read... [02:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:17]Read from MH i2c: E2 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 8B A1 00 90 00 A0 [02:19:17]RAPDU: 90 00 [02:19:17]wFMCommunicate OK [02:19:17]wFMCommunicate request_size=255 [02:19:17]MH_SAM_APDU [02:19:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 32 00 1B 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 24 01 00 35 04 06 00 6B E1 [02:19:17]Write to MH i2c: E2 02 01 8C A1 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 32 00 1B 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 24 01 00 35 04 06 00 6B E1 00 00 D5 [02:19:17]Write i2c OK [02:19:17]MH_I2C_Read... [02:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:17]Read from MH i2c: E2 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 8C A1 00 90 00 A1 [02:19:17]RAPDU: 90 00 [02:19:17]wFMCommunicate OK [02:19:17]wFMCommunicate request_size=9 [02:19:17]MH_SAM_APDU [02:19:17]CAPDU: 80 0D 02 02 04 FA E1 FF D9 [02:19:17]Write to MH i2c: E2 0C 00 8D A1 80 0D 02 02 04 00 FA E1 FF D9 00 00 63 [02:19:17]Write i2c OK [02:19:17]MH_I2C_Read... [02:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:17]Read from MH i2c: E2 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 03 00 8D A1 00 90 00 A2 [02:19:17]RAPDU: 90 00 [02:19:17]wFMCommunicate OK [02:19:17]wFMCommunicate request_size=4 [02:19:17]MH_SAM_APDU [02:19:17]CAPDU: 80 0D 03 02 [02:19:17]Write to MH i2c: E2 08 00 8E A1 80 0D 03 02 00 00 00 00 AA [02:19:17]Write i2c OK [02:19:17]MH_I2C_Read... [02:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:17]Read from MH i2c: E2 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 0B 00 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 0B 00 8E A1 00 C9 7B C5 34 A1 C0 65 4D 90 00 FB [02:19:17]RAPDU: C9 7B C5 34 A1 C0 65 4D 90 00 [02:19:17]wFMCommunicate OK [02:19:17]SAM_PROTO_SignData done [02:19:17]FM_MakeSignedData done [02:19:17]CreateOFDProtocolMessage [02:19:17]wFMCommunicate request_size=4 [02:19:17]MH_SAM_APDU [02:19:17]CAPDU: 80 11 00 00 [02:19:17]Write to MH i2c: E2 08 00 8F A1 80 11 00 00 00 00 00 00 AA [02:19:17]Write i2c OK [02:19:17]MH_I2C_Read... [02:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:17]Read from MH i2c: E2 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 17 00 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: E2 17 00 8F A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 02 [02:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:19:17]wFMCommunicate OK [02:19:17]CreateOFDProtocolMessage done [02:19:17]OFDSenderStorePacket 74795 [02:19:17]StoreOFDPacket docnum=74795 [02:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 ED 6D 06 01 D1 AB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 32 00 1B 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 24 01 00 35 04 06 00 6B E1 FA E1 FF D9 C9 7B C5 34 A1 C0 65 4D [02:19:17]CheckFolder [02:19:17]dirname=/storage/ofd_packets [02:19:17]CheckFolder done [02:19:17]ProducePacketName [02:19:17]name=ofd_packets/00074795 [02:19:17]NVStorageSaveData ofd_packets/00074795 [02:19:17]File name is /storage/ofd_packets/00074795 [02:19:17]Write 300 bytes [02:19:17]NVStorageSaveData done [02:19:17]OFDSenderStorePacket done [02:19:17]KKMCreateOFDPacket done [02:19:17]NVStorageSaveData kkm_last_timestamp [02:19:17]File name is /storage/kkm_last_timestamp [02:19:17]Write 4 bytes [02:19:17]NVStorageSaveData done [02:19:17]ExternCall_PrintAddStr [02:19:17]wPrintStart [02:19:17]Write to MH i2c: 01 00 00 90 A1 31 [02:19:17]Write i2c OK [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: 01 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: 01 07 00 [02:19:17]MH_I2C_Read... [02:19:17]Read from MH i2c: 01 07 00 90 A1 00 00 00 00 00 FF 0F 46 [02:19:17]RasterBufferAndPrint [02:19:17]line Счет N : (1)190763 [02:19:17]line ИНН: 02508201610067 [02:19:17]line Контрольно-Кассовый Чек [02:19:17]line ПРОДАЖА [02:19:17]line ТРК (МРК, ГНК) : 51 [02:19:17]line Товар: 2711190000 [02:19:17]line ГАЗ-К-3 [02:19:17]line 9.000 * 38.90 [02:19:17]line = 350.10 [02:19:17]line НДС 12% НСП 1% [02:19:17]line > о реализуемом товаре [02:19:17]line ОКРУГЛЕНИЕ: -0.10 [02:19:17]line ИТОГО: 350.00 [02:19:17]line Внесено: 350.00 [02:19:17]line СДАЧА: 0.00 [02:19:17]line НСП 1% : 3.10 [02:19:17]line НДС 12% : 37.18 [02:19:17]line Наличными: 350.00 [02:19:17]line Безнал.: 0.00 [02:19:17]line Место: АЗС № 142 "Партнер Нефть" [02:19:17]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [02:19:17]line СНО: Общий режим [02:19:17]line Чек 10 25.10.2024 02:19 [02:19:17]line Смена: 511 ФФД: 1.0 [02:19:17]line ЗНМ: 0300000089 [02:19:17]line РНМ: 0000000000091691 [02:19:17]line Версия ККМ: 001 [02:19:17]line ФМ: 0000000000871795 [02:19:17]line ФД: 74795 [02:19:17]line ФПД: 118618320928729 [02:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T021930&type=1&operation_type=1&fn_number=0000000000871795&fd_number=74795&fm=118618320928729&tin=02508201610067®Number=0000000000091691&sum=35000 [02:19:18]written 0, free lines is 4095 [02:19:18]OFD Sender: Processing packet 74795 [packets to send 13, broken 12] [02:19:18]ProducePacketName [02:19:18]name=ofd_packets/00074795 [02:19:18]OFD Sender: To server: pG, [02:19:18]CommunicateWithHost lk.salyk.kg:30040 [02:19:18]ConnectInit lk.salyk.kg [02:19:18]Connected sock=9 [02:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 ED 6D 06 01 D1 AB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 32 00 1B 67 0E 04 04 00 FF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 24 01 00 35 04 06 00 6B E1 FA E1 FF D9 C9 7B C5 34 A1 C0 65 4D [02:19:18]Write to MH i2c: 01 00 00 BB A1 5C [02:19:18]Write i2c OK [02:19:18]MH_I2C_Read... [02:19:18]Read from MH i2c: 01 [02:19:18]MH_I2C_Read... [02:19:18]Read from MH i2c: 01 07 00 [02:19:18]MH_I2C_Read... [02:19:18]Read from MH i2c: 01 07 00 BB A1 00 00 00 00 00 A0 0C 0F [02:19:18]RasterBufferAndPrint [02:19:18]line [02:19:18]line [02:19:18]line [02:19:18]line [02:19:18]line [02:19:18]written 0, free lines is 3238 [02:19:18]MH_Cut [02:19:18]Write to MH i2c: D1 01 00 C2 A1 01 35 [02:19:18]Write i2c OK [02:19:18]MH_I2C_Read... [02:19:18]Read from MH i2c: D1 [02:19:18]MH_I2C_Read... [02:19:18]Read from MH i2c: D1 01 00 [02:19:18]MH_I2C_Read... [02:19:18]Read from MH i2c: D1 01 00 C2 A1 00 34 [02:19:18]Write to MH i2c: 01 00 00 C3 A1 64 [02:19:18]Write i2c OK [02:19:18]MH_I2C_Read... [02:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 35 9F 47 00 51 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 24 01 00 F4 03 04 00 B2 A7 1A 67 B6 04 01 00 00 A8 C4 AF 4C 73 D8 20 2B [02:19:18]CommunicateWithHost err = 0 [02:19:18]CheckOFDResponse [02:19:18]1017 (14) - 77093643461234 [02:19:18]1041 (16) - 0000000000871795 [02:19:18]1040 (4) - 74795 [02:19:18]1012 (4) - 24.10.2024 20:01 [02:19:18]1206 (1) - 0 [02:19:18]OFD Sender: Remove packet 74795 [02:19:18]ProducePacketName [02:19:18]name=ofd_packets/00074795 [02:19:18]NVStorageDeleteData [02:19:19]OFD Sender: No OFD packet to send [02:19:19]*** Cut start [02:19:19]*** Partial cut [02:19:19]*** CUTSNS_PIN = 1 [02:19:19]*** CUTSNS_PIN = 0 [02:19:19]*** Brake cut motor [02:19:20]Read from MH i2c: 01 [02:19:20]MH_I2C_Read... [02:19:20]*** Stop cut motor [02:19:20]*** Cut end [02:19:20]Read from MH i2c: 01 07 00 [02:19:20]MH_I2C_Read... [02:19:20]Read from MH i2c: 01 07 00 C3 A1 00 00 00 00 00 FF 0F 79 [02:19:20]process_action close_receipt done [02:19:20]requested_data is exist [02:19:20]produce_requested_data [02:19:20]requested_item fm.sn is exist - process it [02:19:20]wFMCommunicate request_size=4 [02:19:20]MH_SAM_APDU [02:19:20]CAPDU: 80 11 00 00 [02:19:20]Write to MH i2c: E2 08 00 C4 A1 80 11 00 00 00 00 00 00 DF [02:19:20]Write i2c OK [02:19:20]MH_I2C_Read... [02:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:20]Read from MH i2c: E2 [02:19:20]MH_I2C_Read... [02:19:20]Read from MH i2c: E2 17 00 [02:19:20]MH_I2C_Read... [02:19:20]Read from MH i2c: E2 17 00 C4 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 37 [02:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:19:20]wFMCommunicate OK [02:19:20]requested_item fd.num is exist - process it [02:19:20]SAM_PROTO_GetFieldsCounters [02:19:20]wFMCommunicate request_size=4 [02:19:20]MH_SAM_APDU [02:19:20]CAPDU: 80 13 00 00 [02:19:20]Write to MH i2c: E2 08 00 C5 A1 80 13 00 00 00 00 00 00 E2 [02:19:20]Write i2c OK [02:19:20]MH_I2C_Read... [02:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:20]Read from MH i2c: E2 [02:19:20]MH_I2C_Read... [02:19:20]Read from MH i2c: E2 62 00 [02:19:20]MH_I2C_Read... [02:19:20]Read from MH i2c: E2 62 00 C5 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 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2B 24 01 00 0E 04 04 00 FF 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 77 [02:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2B 24 01 00 0E 04 04 00 FF 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:19:20]wFMCommunicate OK [02:19:20]SAM_PROTO_GetFieldsCounters done [02:19:20]requested_item shift.num is exist - process it [02:19:20]requested_item shift.opened is exist - process it [02:19:20]req_shift_opened [02:19:20]FM_GetShiftState [02:19:20]SAM_PROTO_GetShiftState [02:19:20]wFMCommunicate request_size=4 [02:19:20]MH_SAM_APDU [02:19:20]CAPDU: 80 13 01 00 [02:19:20]Write to MH i2c: E2 08 00 C6 A1 80 13 01 00 00 00 00 00 E4 [02:19:20]Write i2c OK [02:19:20]MH_I2C_Read... [02:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:20]Read from MH i2c: E2 [02:19:20]MH_I2C_Read... [02:19:20]Read from MH i2c: E2 0E 00 [02:19:20]MH_I2C_Read... [02:19:20]Read from MH i2c: E2 0E 00 C6 A1 00 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 1D [02:19:20]RAPDU: 09 00 01 C8 E4 1A 67 00 00 00 00 90 00 [02:19:20]wFMCommunicate OK [02:19:20]SAM_PROTO_GetShiftState done [02:19:20]FM_GetShiftState done [02:19:20]req_shift_opened done [02:19:20]requested_item shift.open_date is exist - process it [02:19:20]req_shift_open_date [02:19:20]req_shift_open_date done [02:19:20]produce_requested_data done [02:19:20]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":74795,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752} [02:19:20]process_action_free close_receipt [02:19:20]json_value_free [02:19:20]json_value_free done [02:19:20]process_json_proto returns [02:19:20]Send response to host [02:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":74795,"shift.num":511,"shift.opened":1,"shift.open_date":1729815752}}} [02:19:20]free response buf [02:19:20]execute_script done [02:19:20]execute_script returns [02:19:20]free content buf [02:19:20]Sock 10.Close socket [02:19:20]Sock 10.Thread stoped [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]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:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [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 [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:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send