[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:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:40]ConnectInit Can't connect to host [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:01]accept exits with 8 [03:04:01]New connection [03:04:01]New thread 3067301220 created [03:04:01]Thread 3067157860 joined [03:04:01]Waiting for new connection... [03:04:01] Sock 8.Parse request [03:04:01]Sock 8.Check first char [03:04:01]Sock 8.First char is OK [03:04:01]request: POST /json_proto HTTP/1.0 [03:04:01]Method: POST [03:04:01]URL: /json_proto [03:04:01]Method is POST - this is cgi request [03:04:01]url: /json_proto [03:04:01]query_string will be loaded in cgi processing [03:04:01]execute_cgi json_proto POST (null) [03:04:01]execute_cgi path=json_proto method=POST [03:04:01]POST find Content-Length [03:04:01]Host: 172.17.96.67:8080 [03:04:01]Content-Length: 677 [03:04:01]Content-Type: application/json [03:04:01] [03:04:01]POST finish read [03:04:01]Found Content-Length = 677 [03:04:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [03:04:01]execute_script... [03:04: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)245739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [03:04:01]POST & json_proto [03:04:01]process_json_proto [03:04:01]json parsed OK: [03:04:01]protocol is kg_v1.0 [03:04:01]action value=close_receipt [03:04:01]process_action close_receipt [03:04:01]cmd_close_receipt [03:04:01]MH_GetDate [03:04:01]Write to MH i2c: F0 00 00 1D 0E 1A [03:04:01]Write i2c OK [03:04:01]MH_I2C_Read... [03:04:01]Read from MH i2c: F0 [03:04:01]MH_I2C_Read... [03:04:01]Read from MH i2c: F0 09 00 [03:04:01]MH_I2C_Read... [03:04:01]Read from MH i2c: F0 09 00 1D 0E 00 24 A2 21 67 47 6C 1F 67 AA [03:04:01]GetLastDocTimeStamp 1730252715 [03:04:01]current date 1730257444 [03:04:01]FM_GetShiftState [03:04:01]SAM_PROTO_GetShiftState [03:04:01]wFMCommunicate request_size=4 [03:04:01]MH_SAM_APDU [03:04:01]CAPDU: 80 13 01 00 [03:04:01]Write to MH i2c: E2 08 00 1E 0E 80 13 01 00 00 00 00 00 A9 [03:04:01]Write i2c OK [03:04:01]MH_I2C_Read... [03:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:02]Read from MH i2c: E2 [03:04:02]MH_I2C_Read... [03:04:02]Read from MH i2c: E2 0E 00 [03:04:02]MH_I2C_Read... [03:04:02]Read from MH i2c: E2 0E 00 1E 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 81 [03:04:02]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [03:04:02]wFMCommunicate OK [03:04:02]SAM_PROTO_GetShiftState done [03:04:02]FM_GetShiftState done [03:04:02]opened in 1730246605 [03:04:02]opened+sec_in_day 1730333005 [03:04:02]quantity*price = 60009 [03:04:02]sum+1 = 60010 [03:04:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 8 30.10.2024 03:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117948 ФПД: 25030731862649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T030404&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117948&fm=25030731862649&tin=02508201610067®Number=0000000000091782&sum=60000 [03:04:03]StoreToDocumentArchive [03:04:03]shift 545 fd 117948 [03:04:03]save to /storage/0545/doc_00117948 [03:04:03]save last doc name /storage/0545/doc_00117948 to /storage/kkm_last_doc_name [03:04:03]save OK [03:04:03]Clear old archive folders... [03:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:04:03]tlvbuf is 0014AEB0 [03:04:03]SAM_PROTO_ClearQueue [03:04:03]wFMCommunicate request_size=4 [03:04:03]MH_SAM_APDU [03:04:03]CAPDU: 80 09 00 00 [03:04:03]Write to MH i2c: E2 08 00 2B 0E 80 09 00 00 00 00 00 00 AB [03:04:03]Write i2c OK [03:04:03]MH_I2C_Read... [03:04:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:04:03]Read from MH i2c: E2 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [03:04:03]RAPDU: 90 00 [03:04:03]wFMCommunicate OK [03:04:03]SAM_PROTO_ClearQueue done [03:04:03]KKMCreateOFDPacket [03:04:03]OFDProtocolAddRootSTLVToBuf [03:04:03]FM_MakeSignedData [03:04:03]FM_MakeSignedData [03:04:03]SAM_PROTO_SignData [03:04:03]wFMCommunicate request_size=4 [03:04:03]MH_SAM_APDU [03:04:03]CAPDU: 80 0D 01 02 [03:04:03]Write to MH i2c: E2 08 00 2C 0E 80 0D 01 02 00 00 00 00 B3 [03:04:03]Write i2c OK [03:04:03]MH_I2C_Read... [03:04:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:04:03]Read from MH i2c: E2 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [03:04:03]RAPDU: 90 00 [03:04:03]wFMCommunicate OK [03:04:03]wFMCommunicate request_size=255 [03:04:03]MH_SAM_APDU [03:04: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 32 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 08 00 00 00 F4 03 04 00 24 A2 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CC 01 00 35 04 06 00 16 [03:04:03]Write to MH i2c: E2 02 01 2D 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 24 A2 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CC 01 00 35 04 06 00 16 00 00 3A [03:04:03]Write i2c OK [03:04:03]MH_I2C_Read... [03:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:03]Read from MH i2c: E2 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [03:04:03]RAPDU: 90 00 [03:04:03]wFMCommunicate OK [03:04:03]wFMCommunicate request_size=10 [03:04:03]MH_SAM_APDU [03:04:03]CAPDU: 80 0D 02 02 05 C3 EB E1 92 79 [03:04:03]Write to MH i2c: E2 0D 00 2E 0E 80 0D 02 02 05 00 C3 EB E1 92 79 00 00 5A [03:04:03]Write i2c OK [03:04:03]MH_I2C_Read... [03:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:03]Read from MH i2c: E2 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [03:04:03]RAPDU: 90 00 [03:04:03]wFMCommunicate OK [03:04:03]wFMCommunicate request_size=4 [03:04:03]MH_SAM_APDU [03:04:03]CAPDU: 80 0D 03 02 [03:04:03]Write to MH i2c: E2 08 00 2F 0E 80 0D 03 02 00 00 00 00 B8 [03:04:03]Write i2c OK [03:04:03]MH_I2C_Read... [03:04:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:04:03]Read from MH i2c: E2 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 0B 00 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 0B 00 2F 0E 00 6E 3E EC 79 C7 49 0A CB 90 00 AF [03:04:03]RAPDU: 6E 3E EC 79 C7 49 0A CB 90 00 [03:04:03]wFMCommunicate OK [03:04:03]SAM_PROTO_SignData done [03:04:03]FM_MakeSignedData done [03:04:03]CreateOFDProtocolMessage [03:04:03]wFMCommunicate request_size=4 [03:04:03]MH_SAM_APDU [03:04:03]CAPDU: 80 11 00 00 [03:04:03]Write to MH i2c: E2 08 00 30 0E 80 11 00 00 00 00 00 00 B8 [03:04:03]Write i2c OK [03:04:03]MH_I2C_Read... [03:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:03]Read from MH i2c: E2 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 17 00 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: E2 17 00 30 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0F [03:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [03:04:03]wFMCommunicate OK [03:04:03]CreateOFDProtocolMessage done [03:04:03]OFDSenderStorePacket 117948 [03:04:03]StoreOFDPacket docnum=117948 [03:04:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6E 1D 07 01 7F 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 32 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 08 00 00 00 F4 03 04 00 24 A2 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CC 01 00 35 04 06 00 16 C3 EB E1 92 79 6E 3E EC 79 C7 49 0A CB [03:04:03]CheckFolder [03:04:03]dirname=/storage/ofd_packets [03:04:03]CheckFolder done [03:04:03]ProducePacketName [03:04:03]name=ofd_packets/00117948 [03:04:03]NVStorageSaveData ofd_packets/00117948 [03:04:03]File name is /storage/ofd_packets/00117948 [03:04:03]Write 301 bytes [03:04:03]NVStorageSaveData done [03:04:03]OFDSenderStorePacket done [03:04:03]KKMCreateOFDPacket done [03:04:03]NVStorageSaveData kkm_last_timestamp [03:04:03]File name is /storage/kkm_last_timestamp [03:04:03]Write 4 bytes [03:04:03]NVStorageSaveData done [03:04:03]ExternCall_PrintAddStr [03:04:03]wPrintStart [03:04:03]Write to MH i2c: 01 00 00 31 0E 3F [03:04:03]Write i2c OK [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: 01 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: 01 07 00 [03:04:03]MH_I2C_Read... [03:04:03]Read from MH i2c: 01 07 00 31 0E 00 00 00 00 00 FF 0F 54 [03:04:03]RasterBufferAndPrint [03:04:03]line Счет N : (1)245739 [03:04:03]line ИНН: 02508201610067 [03:04:03]line Контрольно-Кассовый Чек [03:04:03]line ПРОДАЖА [03:04:03]line ТРК (МРК, ГНК) : 11 [03:04:03]line Товар: 2710124130 [03:04:03]line Аи-92-К-2 [03:04:03]line 8.970 * 66.90 [03:04:03]line = 600.09 [03:04:03]line НДС 12% НСП 1% [03:04:03]line > о реализуемом товаре [03:04:03]line ОКРУГЛЕНИЕ: -0.09 [03:04:03]line ИТОГО: 600.00 [03:04:03]line Внесено: 600.00 [03:04:03]line СДАЧА: 0.00 [03:04:03]line НСП 1% : 5.31 [03:04:03]line НДС 12% : 63.73 [03:04:03]line Наличными: 600.00 [03:04:03]line Безнал.: 0.00 [03:04:03]line Место: АЗС № 173 "Партнер Нефть" [03:04:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [03:04:03]line СНО: Общий режим [03:04:03]line Чек 8 30.10.2024 03:04 [03:04:03]line Смена: 545 ФФД: 1.0 [03:04:03]line ЗНМ: 0300000115 [03:04:03]line РНМ: 0000000000091782 [03:04:03]line Версия ККМ: 001 [03:04:03]line ФМ: 0000000000871767 [03:04:03]line ФД: 117948 [03:04:03]line ФПД: 25030731862649 [03:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T030404&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117948&fm=25030731862649&tin=02508201610067®Number=0000000000091782&sum=60000 [03:04:04]OFD Sender: Processing packet 117948 [packets to send 77, broken 76] [03:04:04]ProducePacketName [03:04:04]name=ofd_packets/00117948 [03:04:04]OFD Sender: To server: pG, [03:04:04]CommunicateWithHost lk.salyk.kg:30040 [03:04:04]ConnectInit lk.salyk.kg [03:04:04]written 0, free lines is 4095 [03:04:04]Connected sock=10 [03:04: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 36 37 0F 01 00 00 6E 1D 07 01 7F 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 32 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 08 00 00 00 F4 03 04 00 24 A2 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CC 01 00 35 04 06 00 16 C3 EB E1 92 79 6E 3E EC 79 C7 49 0A CB [03:04: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 36 37 4F 00 00 00 3F FD 47 00 19 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CC 01 00 F4 03 04 00 DD 4D 21 67 B6 04 01 00 00 92 72 79 A6 96 09 CD A0 [03:04:04]CommunicateWithHost err = 0 [03:04:04]CheckOFDResponse [03:04:04]1017 (14) - 77093643461234 [03:04:04]1041 (16) - 0000000000871767 [03:04:04]1040 (4) - 117948 [03:04:04]1012 (4) - 29.10.2024 21:04 [03:04:04]1206 (1) - 0 [03:04:04]OFD Sender: Remove packet 117948 [03:04:04]ProducePacketName [03:04:04]name=ofd_packets/00117948 [03:04:04]NVStorageDeleteData [03:04:04]Write to MH i2c: 01 00 00 5B 0E 69 [03:04:04]Write i2c OK [03:04:04]MH_I2C_Read... [03:04:04]Read from MH i2c: 01 [03:04:04]MH_I2C_Read... [03:04:04]Read from MH i2c: 01 07 00 [03:04:04]MH_I2C_Read... [03:04:04]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 BA 0C 36 [03:04:04]RasterBufferAndPrint [03:04:04]line [03:04:04]line [03:04:04]line [03:04:04]line [03:04:04]line [03:04:04]written 0, free lines is 3266 [03:04:04]MH_Cut [03:04:04]Write to MH i2c: D1 01 00 62 0E 01 42 [03:04:04]Write i2c OK [03:04:04]MH_I2C_Read... [03:04:04]Read from MH i2c: D1 [03:04:04]MH_I2C_Read... [03:04:04]Read from MH i2c: D1 01 00 [03:04:04]MH_I2C_Read... [03:04:04]Read from MH i2c: D1 01 00 62 0E 00 41 [03:04:04]Write to MH i2c: 01 00 00 63 0E 71 [03:04:04]Write i2c OK [03:04:04]MH_I2C_Read... [03:04:04]OFD Sender: No OFD packet to send [03:04:05]*** Cut start [03:04:05]*** Purtial cut [03:04:05]*** Stage 1: CUTSNS_PIN = 1 [03:04:05]Read from MH i2c: 01 [03:04:05]MH_I2C_Read... [03:04:05]*** Stop cut motor [03:04:05]*** Cut end [03:04:05]Read from MH i2c: 01 07 00 [03:04:05]MH_I2C_Read... [03:04:05]Read from MH i2c: 01 07 00 63 0E 00 00 00 00 00 FF 0F 86 [03:04:05]process_action close_receipt done [03:04:05]requested_data is exist [03:04:05]produce_requested_data [03:04:05]requested_item fm.sn is exist - process it [03:04:05]wFMCommunicate request_size=4 [03:04:05]MH_SAM_APDU [03:04:05]CAPDU: 80 11 00 00 [03:04:05]Write to MH i2c: E2 08 00 64 0E 80 11 00 00 00 00 00 00 EC [03:04:05]Write i2c OK [03:04:05]MH_I2C_Read... [03:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:05]Read from MH i2c: E2 [03:04:05]MH_I2C_Read... [03:04:05]Read from MH i2c: E2 17 00 [03:04:05]MH_I2C_Read... [03:04:05]Read from MH i2c: E2 17 00 64 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 43 [03:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [03:04:05]wFMCommunicate OK [03:04:05]requested_item fd.num is exist - process it [03:04:05]SAM_PROTO_GetFieldsCounters [03:04:05]wFMCommunicate request_size=4 [03:04:05]MH_SAM_APDU [03:04:05]CAPDU: 80 13 00 00 [03:04:05]Write to MH i2c: E2 08 00 65 0E 80 13 00 00 00 00 00 00 EF [03:04:05]Write i2c OK [03:04:05]MH_I2C_Read... [03:04:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:04:05]Read from MH i2c: E2 [03:04:05]MH_I2C_Read... [03:04:05]Read from MH i2c: E2 62 00 [03:04:05]MH_I2C_Read... [03:04:05]Read from MH i2c: E2 62 00 65 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [03:04: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:04:05]wFMCommunicate OK [03:04:05]SAM_PROTO_GetFieldsCounters done [03:04:05]requested_item shift.num is exist - process it [03:04:05]requested_item shift.opened is exist - process it [03:04:05]req_shift_opened [03:04:05]FM_GetShiftState [03:04:05]SAM_PROTO_GetShiftState [03:04:05]wFMCommunicate request_size=4 [03:04:05]MH_SAM_APDU [03:04:05]CAPDU: 80 13 01 00 [03:04:05]Write to MH i2c: E2 08 00 66 0E 80 13 01 00 00 00 00 00 F1 [03:04:05]Write i2c OK [03:04:05]MH_I2C_Read... [03:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:05]Read from MH i2c: E2 [03:04:05]MH_I2C_Read... [03:04:05]Read from MH i2c: E2 0E 00 [03:04:05]MH_I2C_Read... [03:04:05]Read from MH i2c: E2 0E 00 66 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C9 [03:04:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [03:04:05]wFMCommunicate OK [03:04:05]SAM_PROTO_GetShiftState done [03:04:05]FM_GetShiftState done [03:04:05]req_shift_opened done [03:04:05]requested_item shift.open_date is exist - process it [03:04:05]req_shift_open_date [03:04:05]req_shift_open_date done [03:04:05]produce_requested_data done [03:04:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117948,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [03:04:05]process_action_free close_receipt [03:04:05]json_value_free [03:04:05]json_value_free done [03:04:05]process_json_proto returns [03:04:05]Send response to host [03:04:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117948,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [03:04:05]free response buf [03:04:05]execute_script done [03:04:05]execute_script returns [03:04:05]free content buf [03:04:05]Sock 8.Close socket [03:04:05]Sock 8.Thread stoped [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:15]ConnectInit Can't connect to host [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:25]accept exits with 9 [05:18:25]New connection [05:18:25]New thread 3067157860 created [05:18:25]Thread 3067301220 joined [05:18:25]Waiting for new connection... [05:18:25] Sock 9.Parse request [05:18:25]Sock 9.Check first char [05:18:25]Sock 9.First char is OK [05:18:25]request: POST /json_proto HTTP/1.0 [05:18:25]Method: POST [05:18:25]URL: /json_proto [05:18:25]Method is POST - this is cgi request [05:18:25]url: /json_proto [05:18:25]query_string will be loaded in cgi processing [05:18:25]execute_cgi json_proto POST (null) [05:18:25]execute_cgi path=json_proto method=POST [05:18:25]POST find Content-Length [05:18:25]Host: 172.17.96.67:8080 [05:18:25]Content-Length: 677 [05:18:25]Content-Type: application/json [05:18:25] [05:18:25]POST finish read [05:18:25]Found Content-Length = 677 [05:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:18:25]execute_script... [05:18:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:18:25]POST & json_proto [05:18:25]process_json_proto [05:18:25]json parsed OK: [05:18:25]protocol is kg_v1.0 [05:18:25]action value=close_receipt [05:18:25]process_action close_receipt [05:18:25]cmd_close_receipt [05:18:25]MH_GetDate [05:18:25]Write to MH i2c: F0 00 00 67 0E 64 [05:18:25]Write i2c OK [05:18:25]MH_I2C_Read... [05:18:25]Read from MH i2c: F0 [05:18:25]MH_I2C_Read... [05:18:25]Read from MH i2c: F0 09 00 [05:18:25]MH_I2C_Read... [05:18:25]Read from MH i2c: F0 09 00 67 0E 00 A4 C1 21 67 47 6C 1F 67 93 [05:18:25]GetLastDocTimeStamp 1730257444 [05:18:25]current date 1730265508 [05:18:25]FM_GetShiftState [05:18:25]SAM_PROTO_GetShiftState [05:18:25]wFMCommunicate request_size=4 [05:18:25]MH_SAM_APDU [05:18:25]CAPDU: 80 13 01 00 [05:18:25]Write to MH i2c: E2 08 00 68 0E 80 13 01 00 00 00 00 00 F3 [05:18:25]Write i2c OK [05:18:25]MH_I2C_Read... [05:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:25]Read from MH i2c: E2 [05:18:25]MH_I2C_Read... [05:18:25]Read from MH i2c: E2 0E 00 [05:18:25]MH_I2C_Read... [05:18:25]Read from MH i2c: E2 0E 00 68 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CB [05:18:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [05:18:25]wFMCommunicate OK [05:18:25]SAM_PROTO_GetShiftState done [05:18:25]FM_GetShiftState done [05:18:25]opened in 1730246605 [05:18:25]opened+sec_in_day 1730333005 [05:18:25]quantity*price = 60009 [05:18:25]sum+1 = 60010 [05:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 9 30.10.2024 05:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117949 ФПД: 126209277980285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T051828&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117949&fm=126209277980285&tin=02508201610067®Number=0000000000091782&sum=60000 [05:18:26]StoreToDocumentArchive [05:18:26]shift 545 fd 117949 [05:18:26]save to /storage/0545/doc_00117949 [05:18:26]save last doc name /storage/0545/doc_00117949 to /storage/kkm_last_doc_name [05:18:26]save OK [05:18:26]Clear old archive folders... [05:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:18:26]tlvbuf is 00124E80 [05:18:26]SAM_PROTO_ClearQueue [05:18:26]wFMCommunicate request_size=4 [05:18:26]MH_SAM_APDU [05:18:26]CAPDU: 80 09 00 00 [05:18:26]Write to MH i2c: E2 08 00 75 0E 80 09 00 00 00 00 00 00 F5 [05:18:26]Write i2c OK [05:18:26]MH_I2C_Read... [05:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:18:26]Read from MH i2c: E2 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: E2 03 00 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [05:18:26]RAPDU: 90 00 [05:18:26]wFMCommunicate OK [05:18:26]SAM_PROTO_ClearQueue done [05:18:26]KKMCreateOFDPacket [05:18:26]OFDProtocolAddRootSTLVToBuf [05:18:26]FM_MakeSignedData [05:18:26]FM_MakeSignedData [05:18:26]SAM_PROTO_SignData [05:18:26]wFMCommunicate request_size=4 [05:18:26]MH_SAM_APDU [05:18:26]CAPDU: 80 0D 01 02 [05:18:26]Write to MH i2c: E2 08 00 76 0E 80 0D 01 02 00 00 00 00 FD [05:18:26]Write i2c OK [05:18:26]MH_I2C_Read... [05:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:18:26]Read from MH i2c: E2 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: E2 03 00 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [05:18:26]RAPDU: 90 00 [05:18:26]wFMCommunicate OK [05:18:26]wFMCommunicate request_size=255 [05:18:26]MH_SAM_APDU [05:18: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 32 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 09 00 00 00 F4 03 04 00 A4 C1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CC 01 00 35 04 06 00 72 [05:18:26]Write to MH i2c: E2 02 01 77 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 A4 C1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CC 01 00 35 04 06 00 72 00 00 81 [05:18:26]Write i2c OK [05:18:26]MH_I2C_Read... [05:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:27]Read from MH i2c: E2 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [05:18:27]RAPDU: 90 00 [05:18:27]wFMCommunicate OK [05:18:27]wFMCommunicate request_size=10 [05:18:27]MH_SAM_APDU [05:18:27]CAPDU: 80 0D 02 02 05 C9 63 2E 6E 7D [05:18:27]Write to MH i2c: E2 0D 00 78 0E 80 0D 02 02 05 00 C9 63 2E 6E 7D 00 00 4F [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:27]Read from MH i2c: E2 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 78 0E 00 90 00 FA [05:18:27]RAPDU: 90 00 [05:18:27]wFMCommunicate OK [05:18:27]wFMCommunicate request_size=4 [05:18:27]MH_SAM_APDU [05:18:27]CAPDU: 80 0D 03 02 [05:18:27]Write to MH i2c: E2 08 00 79 0E 80 0D 03 02 00 00 00 00 02 [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:18:27]Read from MH i2c: E2 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 0B 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 0B 00 79 0E 00 43 C6 60 48 82 40 D5 D4 90 00 1F [05:18:27]RAPDU: 43 C6 60 48 82 40 D5 D4 90 00 [05:18:27]wFMCommunicate OK [05:18:27]SAM_PROTO_SignData done [05:18:27]FM_MakeSignedData done [05:18:27]CreateOFDProtocolMessage [05:18:27]wFMCommunicate request_size=4 [05:18:27]MH_SAM_APDU [05:18:27]CAPDU: 80 11 00 00 [05:18:27]Write to MH i2c: E2 08 00 7A 0E 80 11 00 00 00 00 00 00 02 [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:27]Read from MH i2c: E2 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 17 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 17 00 7A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 59 [05:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [05:18:27]wFMCommunicate OK [05:18:27]CreateOFDProtocolMessage done [05:18:27]OFDSenderStorePacket 117949 [05:18:27]StoreOFDPacket docnum=117949 [05:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2F 69 07 01 2C 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 32 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 09 00 00 00 F4 03 04 00 A4 C1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CC 01 00 35 04 06 00 72 C9 63 2E 6E 7D 43 C6 60 48 82 40 D5 D4 [05:18:27]CheckFolder [05:18:27]dirname=/storage/ofd_packets [05:18:27]CheckFolder done [05:18:27]ProducePacketName [05:18:27]name=ofd_packets/00117949 [05:18:27]NVStorageSaveData ofd_packets/00117949 [05:18:27]File name is /storage/ofd_packets/00117949 [05:18:27]Write 301 bytes [05:18:27]NVStorageSaveData done [05:18:27]OFDSenderStorePacket done [05:18:27]KKMCreateOFDPacket done [05:18:27]NVStorageSaveData kkm_last_timestamp [05:18:27]File name is /storage/kkm_last_timestamp [05:18:27]Write 4 bytes [05:18:27]NVStorageSaveData done [05:18:27]ExternCall_PrintAddStr [05:18:27]wPrintStart [05:18:27]Write to MH i2c: 01 00 00 7B 0E 89 [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: 01 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: 01 07 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: 01 07 00 7B 0E 00 00 00 00 00 FF 0F 9E [05:18:27]RasterBufferAndPrint [05:18:27]line Счет N : (1)245740 [05:18:27]line ИНН: 02508201610067 [05:18:27]line Контрольно-Кассовый Чек [05:18:27]line ПРОДАЖА [05:18:27]line ТРК (МРК, ГНК) : 21 [05:18:27]line Товар: 2710124130 [05:18:27]line Аи-92-К-2 [05:18:27]line 8.970 * 66.90 [05:18:27]line = 600.09 [05:18:27]line НДС 12% НСП 1% [05:18:27]line > о реализуемом товаре [05:18:27]line ОКРУГЛЕНИЕ: -0.09 [05:18:27]line ИТОГО: 600.00 [05:18:27]line Внесено: 600.00 [05:18:27]line СДАЧА: 0.00 [05:18:27]line НСП 1% : 5.31 [05:18:27]line НДС 12% : 63.73 [05:18:27]line Наличными: 600.00 [05:18:27]line Безнал.: 0.00 [05:18:27]line Место: АЗС № 173 "Партнер Нефть" [05:18:27]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [05:18:27]line СНО: Общий режим [05:18:27]line Чек 9 30.10.2024 05:18 [05:18:27]line Смена: 545 ФФД: 1.0 [05:18:27]line ЗНМ: 0300000115 [05:18:27]line РНМ: 0000000000091782 [05:18:27]line Версия ККМ: 001 [05:18:27]line ФМ: 0000000000871767 [05:18:27]line ФД: 117949 [05:18:27]line ФПД: 126209277980285 [05:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T051828&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117949&fm=126209277980285&tin=02508201610067®Number=0000000000091782&sum=60000 [05:18:27]OFD Sender: Processing packet 117949 [packets to send 77, broken 76] [05:18:27]ProducePacketName [05:18:27]name=ofd_packets/00117949 [05:18:27]OFD Sender: To server: pG, [05:18:27]CommunicateWithHost lk.salyk.kg:30040 [05:18:27]ConnectInit lk.salyk.kg [05:18:27]written 0, free lines is 4095 [05:18:27]Connected sock=10 [05:18: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 36 37 0F 01 00 00 2F 69 07 01 2C 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 32 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 09 00 00 00 F4 03 04 00 A4 C1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CC 01 00 35 04 06 00 72 C9 63 2E 6E 7D 43 C6 60 48 82 40 D5 D4 [05:18: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 36 37 4F 00 00 00 23 5C 47 00 21 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 36 37 10 04 04 00 BD CC 01 00 F4 03 04 00 5D 6D 21 67 B6 04 01 00 00 CF 35 F2 B5 A4 DF 0B 78 [05:18:27]CommunicateWithHost err = 0 [05:18:27]CheckOFDResponse [05:18:27]1017 (14) - 77093643461234 [05:18:27]1041 (16) - 0000000000871767 [05:18:27]1040 (4) - 117949 [05:18:27]1012 (4) - 29.10.2024 23:18 [05:18:27]1206 (1) - 0 [05:18:27]OFD Sender: Remove packet 117949 [05:18:27]ProducePacketName [05:18:27]name=ofd_packets/00117949 [05:18:27]NVStorageDeleteData [05:18:27]Write to MH i2c: 01 00 00 A5 0E B3 [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: 01 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: 01 07 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: 01 07 00 A5 0E 00 00 00 00 00 BA 0C 80 [05:18:27]RasterBufferAndPrint [05:18:27]line [05:18:27]line [05:18:27]line [05:18:27]line [05:18:27]line [05:18:27]written 0, free lines is 3266 [05:18:27]MH_Cut [05:18:27]Write to MH i2c: D1 01 00 AC 0E 01 8C [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: D1 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: D1 01 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: D1 01 00 AC 0E 00 8B [05:18:27]Write to MH i2c: 01 00 00 AD 0E BB [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:28]OFD Sender: No OFD packet to send [05:18:28]*** Cut start [05:18:28]*** Purtial cut [05:18:28]*** Stage 1: CUTSNS_PIN = 1 [05:18:29]Read from MH i2c: 01 [05:18:29]MH_I2C_Read... [05:18:29]*** Stop cut motor [05:18:29]*** Cut end [05:18:29]Read from MH i2c: 01 07 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: 01 07 00 AD 0E 00 00 00 00 00 FF 0F D0 [05:18:29]process_action close_receipt done [05:18:29]requested_data is exist [05:18:29]produce_requested_data [05:18:29]requested_item fm.sn is exist - process it [05:18:29]wFMCommunicate request_size=4 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 11 00 00 [05:18:29]Write to MH i2c: E2 08 00 AE 0E 80 11 00 00 00 00 00 00 36 [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 [05:18:29]MH_I2C_Read... [05:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:29]Read from MH i2c: E2 17 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 17 00 AE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8D [05:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [05:18:29]wFMCommunicate OK [05:18:29]requested_item fd.num is exist - process it [05:18:29]SAM_PROTO_GetFieldsCounters [05:18:29]wFMCommunicate request_size=4 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 13 00 00 [05:18:29]Write to MH i2c: E2 08 00 AF 0E 80 13 00 00 00 00 00 00 39 [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:18:29]Read from MH i2c: E2 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 62 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 62 00 AF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [05:18:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:18:29]wFMCommunicate OK [05:18:29]SAM_PROTO_GetFieldsCounters done [05:18:29]requested_item shift.num is exist - process it [05:18:29]requested_item shift.opened is exist - process it [05:18:29]req_shift_opened [05:18:29]FM_GetShiftState [05:18:29]SAM_PROTO_GetShiftState [05:18:29]wFMCommunicate request_size=4 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 13 01 00 [05:18:29]Write to MH i2c: E2 08 00 B0 0E 80 13 01 00 00 00 00 00 3B [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:29]Read from MH i2c: E2 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 0E 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 0E 00 B0 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 13 [05:18:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [05:18:29]wFMCommunicate OK [05:18:29]SAM_PROTO_GetShiftState done [05:18:29]FM_GetShiftState done [05:18:29]req_shift_opened done [05:18:29]requested_item shift.open_date is exist - process it [05:18:29]req_shift_open_date [05:18:29]req_shift_open_date done [05:18:29]produce_requested_data done [05:18:29]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117949,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [05:18:29]process_action_free close_receipt [05:18:29]json_value_free [05:18:29]json_value_free done [05:18:29]process_json_proto returns [05:18:29]Send response to host [05:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117949,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [05:18:29]free response buf [05:18:29]execute_script done [05:18:29]execute_script returns [05:18:29]free content buf [05:18:29]Sock 9.Close socket [05:18:29]Sock 9.Thread stoped [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:03]ConnectInit Can't connect to host [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:03]ConnectInit Can't connect to host [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:07]accept exits with 8 [05:57:07]New connection [05:57:07]New thread 3067301220 created [05:57:07]Thread 3067157860 joined [05:57:07]Waiting for new connection... [05:57:07] Sock 8.Parse request [05:57:07]Sock 8.Check first char [05:57:07]Sock 8.First char is OK [05:57:07]request: POST /json_proto HTTP/1.0 [05:57:07]Method: POST [05:57:07]URL: /json_proto [05:57:07]Method is POST - this is cgi request [05:57:07]url: /json_proto [05:57:07]query_string will be loaded in cgi processing [05:57:07]execute_cgi json_proto POST (null) [05:57:07]execute_cgi path=json_proto method=POST [05:57:07]POST find Content-Length [05:57:07]Host: 172.17.96.67:8080 [05:57:07]Content-Length: 677 [05:57:07]Content-Type: application/json [05:57:07] [05:57:07]POST finish read [05:57:07]Found Content-Length = 677 [05:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:57:07]execute_script... [05:57: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)245741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:57:07]POST & json_proto [05:57:07]process_json_proto [05:57:07]json parsed OK: [05:57:07]protocol is kg_v1.0 [05:57:07]action value=close_receipt [05:57:07]process_action close_receipt [05:57:07]cmd_close_receipt [05:57:07]MH_GetDate [05:57:07]Write to MH i2c: F0 00 00 B1 0E AE [05:57:07]Write i2c OK [05:57:07]MH_I2C_Read... [05:57:07]Read from MH i2c: F0 [05:57:07]MH_I2C_Read... [05:57:07]Read from MH i2c: F0 09 00 [05:57:07]MH_I2C_Read... [05:57:07]Read from MH i2c: F0 09 00 B1 0E 00 B7 CA 21 67 47 6C 1F 67 F9 [05:57:07]GetLastDocTimeStamp 1730265508 [05:57:07]current date 1730267831 [05:57:07]FM_GetShiftState [05:57:07]SAM_PROTO_GetShiftState [05:57:07]wFMCommunicate request_size=4 [05:57:07]MH_SAM_APDU [05:57:07]CAPDU: 80 13 01 00 [05:57:07]Write to MH i2c: E2 08 00 B2 0E 80 13 01 00 00 00 00 00 3D [05:57:07]Write i2c OK [05:57:07]MH_I2C_Read... [05:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:07]Read from MH i2c: E2 [05:57:07]MH_I2C_Read... [05:57:07]Read from MH i2c: E2 0E 00 [05:57:07]MH_I2C_Read... [05:57:07]Read from MH i2c: E2 0E 00 B2 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 15 [05:57:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [05:57:07]wFMCommunicate OK [05:57:07]SAM_PROTO_GetShiftState done [05:57:07]FM_GetShiftState done [05:57:07]opened in 1730246605 [05:57:07]opened+sec_in_day 1730333005 [05:57:07]quantity*price = 50041 [05:57:07]sum+1 = 50042 [05:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 10 30.10.2024 05:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117950 ФПД: 113157136349512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055711&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117950&fm=113157136349512&tin=02508201610067®Number=0000000000091782&sum=50000 [05:57:08]StoreToDocumentArchive [05:57:08]shift 545 fd 117950 [05:57:08]save to /storage/0545/doc_00117950 [05:57:08]save last doc name /storage/0545/doc_00117950 to /storage/kkm_last_doc_name [05:57:08]save OK [05:57:08]Clear old archive folders... [05:57:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:57:08]tlvbuf is 001521A0 [05:57:08]SAM_PROTO_ClearQueue [05:57:08]wFMCommunicate request_size=4 [05:57:08]MH_SAM_APDU [05:57:08]CAPDU: 80 09 00 00 [05:57:08]Write to MH i2c: E2 08 00 BF 0E 80 09 00 00 00 00 00 00 3F [05:57:08]Write i2c OK [05:57:08]MH_I2C_Read... [05:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:57:09]Read from MH i2c: E2 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [05:57:09]RAPDU: 90 00 [05:57:09]wFMCommunicate OK [05:57:09]SAM_PROTO_ClearQueue done [05:57:09]KKMCreateOFDPacket [05:57:09]OFDProtocolAddRootSTLVToBuf [05:57:09]FM_MakeSignedData [05:57:09]FM_MakeSignedData [05:57:09]SAM_PROTO_SignData [05:57:09]wFMCommunicate request_size=4 [05:57:09]MH_SAM_APDU [05:57:09]CAPDU: 80 0D 01 02 [05:57:09]Write to MH i2c: E2 08 00 C0 0E 80 0D 01 02 00 00 00 00 47 [05:57:09]Write i2c OK [05:57:09]MH_I2C_Read... [05:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:57:09]Read from MH i2c: E2 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [05:57:09]RAPDU: 90 00 [05:57:09]wFMCommunicate OK [05:57:09]wFMCommunicate request_size=255 [05:57:09]MH_SAM_APDU [05:57: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 32 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 0A 00 00 00 F4 03 04 00 B7 CA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CC 01 00 35 04 06 00 66 [05:57:09]Write to MH i2c: E2 02 01 C1 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 B7 CA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CC 01 00 35 04 06 00 66 00 00 00 [05:57:09]Write i2c OK [05:57:09]MH_I2C_Read... [05:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:09]Read from MH i2c: E2 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [05:57:09]RAPDU: 90 00 [05:57:09]wFMCommunicate OK [05:57:09]wFMCommunicate request_size=10 [05:57:09]MH_SAM_APDU [05:57:09]CAPDU: 80 0D 02 02 05 EA 72 EA 79 48 [05:57:09]Write to MH i2c: E2 0D 00 C2 0E 80 0D 02 02 05 00 EA 72 EA 79 48 00 00 5B [05:57:09]Write i2c OK [05:57:09]MH_I2C_Read... [05:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:09]Read from MH i2c: E2 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [05:57:09]RAPDU: 90 00 [05:57:09]wFMCommunicate OK [05:57:09]wFMCommunicate request_size=4 [05:57:09]MH_SAM_APDU [05:57:09]CAPDU: 80 0D 03 02 [05:57:09]Write to MH i2c: E2 08 00 C3 0E 80 0D 03 02 00 00 00 00 4C [05:57:09]Write i2c OK [05:57:09]MH_I2C_Read... [05:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:57:09]Read from MH i2c: E2 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 0B 00 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 0B 00 C3 0E 00 71 10 38 30 69 A6 CC E4 90 00 F5 [05:57:09]RAPDU: 71 10 38 30 69 A6 CC E4 90 00 [05:57:09]wFMCommunicate OK [05:57:09]SAM_PROTO_SignData done [05:57:09]FM_MakeSignedData done [05:57:09]CreateOFDProtocolMessage [05:57:09]wFMCommunicate request_size=4 [05:57:09]MH_SAM_APDU [05:57:09]CAPDU: 80 11 00 00 [05:57:09]Write to MH i2c: E2 08 00 C4 0E 80 11 00 00 00 00 00 00 4C [05:57:09]Write i2c OK [05:57:09]MH_I2C_Read... [05:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:09]Read from MH i2c: E2 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 17 00 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: E2 17 00 C4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A3 [05:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [05:57:09]wFMCommunicate OK [05:57:09]CreateOFDProtocolMessage done [05:57:09]OFDSenderStorePacket 117950 [05:57:09]StoreOFDPacket docnum=117950 [05:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AD A3 07 01 38 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 32 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 0A 00 00 00 F4 03 04 00 B7 CA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CC 01 00 35 04 06 00 66 EA 72 EA 79 48 71 10 38 30 69 A6 CC E4 [05:57:09]CheckFolder [05:57:09]dirname=/storage/ofd_packets [05:57:09]CheckFolder done [05:57:09]ProducePacketName [05:57:09]name=ofd_packets/00117950 [05:57:09]NVStorageSaveData ofd_packets/00117950 [05:57:09]File name is /storage/ofd_packets/00117950 [05:57:09]Write 301 bytes [05:57:09]NVStorageSaveData done [05:57:09]OFDSenderStorePacket done [05:57:09]KKMCreateOFDPacket done [05:57:09]NVStorageSaveData kkm_last_timestamp [05:57:09]File name is /storage/kkm_last_timestamp [05:57:09]Write 4 bytes [05:57:09]NVStorageSaveData done [05:57:09]OFD Sender: Processing packet 117950 [packets to send 77, broken 76] [05:57:09]ProducePacketName [05:57:09]name=ofd_packets/00117950 [05:57:09]OFD Sender: To server: pG, [05:57:09]CommunicateWithHost lk.salyk.kg:30040 [05:57:09]ConnectInit lk.salyk.kg [05:57:09]ExternCall_PrintAddStr [05:57:09]wPrintStart [05:57:09]Write to MH i2c: 01 00 00 C5 0E D3 [05:57:09]Write i2c OK [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: 01 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: 01 07 00 [05:57:09]MH_I2C_Read... [05:57:09]Read from MH i2c: 01 07 00 C5 0E 00 00 00 00 00 FF 0F E8 [05:57:09]RasterBufferAndPrint [05:57:09]line Счет N : (1)245741 [05:57:09]line ИНН: 02508201610067 [05:57:09]line Контрольно-Кассовый Чек [05:57:09]line ПРОДАЖА [05:57:09]line ТРК (МРК, ГНК) : 21 [05:57:09]line Товар: 2710124130 [05:57:09]line Аи-92-К-2 [05:57:09]line 7.480 * 66.90 [05:57:09]line = 500.41 [05:57:09]line НДС 12% НСП 1% [05:57:09]line > о реализуемом товаре [05:57:09]line ОКРУГЛЕНИЕ: -0.41 [05:57:09]line ИТОГО: 500.00 [05:57:09]line Внесено: 500.00 [05:57:09]line СДАЧА: 0.00 [05:57:09]line НСП 1% : 4.43 [05:57:09]line НДС 12% : 53.14 [05:57:09]line Наличными: 500.00 [05:57:09]line Безнал.: 0.00 [05:57:09]line Место: АЗС № 173 "Партнер Нефть" [05:57:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [05:57:09]line СНО: Общий режим [05:57:09]line Чек 10 30.10.2024 05:57 [05:57:09]line Смена: 545 ФФД: 1.0 [05:57:09]line ЗНМ: 0300000115 [05:57:09]line РНМ: 0000000000091782 [05:57:09]line Версия ККМ: 001 [05:57:09]line ФМ: 0000000000871767 [05:57:09]line ФД: 117950 [05:57:09]line ФПД: 113157136349512 [05:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055711&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117950&fm=113157136349512&tin=02508201610067®Number=0000000000091782&sum=50000 [05:57:09]Connected sock=12 [05:57:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AD A3 07 01 38 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 32 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 0A 00 00 00 F4 03 04 00 B7 CA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CC 01 00 35 04 06 00 66 EA 72 EA 79 48 71 10 38 30 69 A6 CC E4 [05:57:09]written 0, free lines is 4095 [05:57: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 36 37 4F 00 00 00 17 25 47 00 4D 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CC 01 00 F4 03 04 00 6F 76 21 67 B6 04 01 00 00 82 B4 E1 92 02 4F 84 31 [05:57:10]CommunicateWithHost err = 0 [05:57:10]CheckOFDResponse [05:57:10]1017 (14) - 77093643461234 [05:57:10]1041 (16) - 0000000000871767 [05:57:10]1040 (4) - 117950 [05:57:10]1012 (4) - 29.10.2024 23:57 [05:57:10]1206 (1) - 0 [05:57:10]OFD Sender: Remove packet 117950 [05:57:10]ProducePacketName [05:57:10]name=ofd_packets/00117950 [05:57:10]NVStorageDeleteData [05:57:10]Write to MH i2c: 01 00 00 EF 0E FD [05:57:10]Write i2c OK [05:57:10]MH_I2C_Read... [05:57:10]Read from MH i2c: 01 [05:57:10]MH_I2C_Read... [05:57:10]Read from MH i2c: 01 07 00 [05:57:10]MH_I2C_Read... [05:57:10]Read from MH i2c: 01 07 00 EF 0E 00 00 00 00 00 C0 0C D0 [05:57:10]RasterBufferAndPrint [05:57:10]line [05:57:10]line [05:57:10]line [05:57:10]line [05:57:10]line [05:57:10]written 0, free lines is 3269 [05:57:10]MH_Cut [05:57:10]Write to MH i2c: D1 01 00 F6 0E 01 D6 [05:57:10]Write i2c OK [05:57:10]MH_I2C_Read... [05:57:10]Read from MH i2c: D1 [05:57:10]MH_I2C_Read... [05:57:10]Read from MH i2c: D1 01 00 [05:57:10]MH_I2C_Read... [05:57:10]Read from MH i2c: D1 01 00 F6 0E 00 D5 [05:57:10]Write to MH i2c: 01 00 00 F7 0E 05 [05:57:10]Write i2c OK [05:57:10]MH_I2C_Read... [05:57:10]OFD Sender: No OFD packet to send [05:57:11]*** Cut start [05:57:11]*** Purtial cut [05:57:11]*** Stage 1: CUTSNS_PIN = 1 [05:57:11]Read from MH i2c: 01 [05:57:11]MH_I2C_Read... [05:57:11]*** Stop cut motor [05:57:11]*** Cut end [05:57:11]Read from MH i2c: 01 07 00 [05:57:11]MH_I2C_Read... [05:57:11]Read from MH i2c: 01 07 00 F7 0E 00 00 00 00 00 FF 0F 1A [05:57:11]process_action close_receipt done [05:57:11]requested_data is exist [05:57:11]produce_requested_data [05:57:11]requested_item fm.sn is exist - process it [05:57:11]wFMCommunicate request_size=4 [05:57:11]MH_SAM_APDU [05:57:11]CAPDU: 80 11 00 00 [05:57:11]Write to MH i2c: E2 08 00 F8 0E 80 11 00 00 00 00 00 00 80 [05:57:11]Write i2c OK [05:57:11]MH_I2C_Read... [05:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:11]Read from MH i2c: E2 [05:57:11]MH_I2C_Read... [05:57:11]Read from MH i2c: E2 17 00 [05:57:11]MH_I2C_Read... [05:57:11]Read from MH i2c: E2 17 00 F8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D7 [05:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [05:57:11]wFMCommunicate OK [05:57:11]requested_item fd.num is exist - process it [05:57:11]SAM_PROTO_GetFieldsCounters [05:57:11]wFMCommunicate request_size=4 [05:57:11]MH_SAM_APDU [05:57:11]CAPDU: 80 13 00 00 [05:57:11]Write to MH i2c: E2 08 00 F9 0E 80 13 00 00 00 00 00 00 83 [05:57:11]Write i2c OK [05:57:11]MH_I2C_Read... [05:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:57:11]Read from MH i2c: E2 [05:57:11]MH_I2C_Read... [05:57:11]Read from MH i2c: E2 62 00 [05:57:11]MH_I2C_Read... [05:57:11]Read from MH i2c: E2 62 00 F9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [05:57:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:57:11]wFMCommunicate OK [05:57:11]SAM_PROTO_GetFieldsCounters done [05:57:11]requested_item shift.num is exist - process it [05:57:11]requested_item shift.opened is exist - process it [05:57:11]req_shift_opened [05:57:11]FM_GetShiftState [05:57:11]SAM_PROTO_GetShiftState [05:57:11]wFMCommunicate request_size=4 [05:57:11]MH_SAM_APDU [05:57:11]CAPDU: 80 13 01 00 [05:57:11]Write to MH i2c: E2 08 00 FA 0E 80 13 01 00 00 00 00 00 85 [05:57:11]Write i2c OK [05:57:11]MH_I2C_Read... [05:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:11]Read from MH i2c: E2 [05:57:11]MH_I2C_Read... [05:57:11]Read from MH i2c: E2 0E 00 [05:57:11]MH_I2C_Read... [05:57:11]Read from MH i2c: E2 0E 00 FA 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5D [05:57:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [05:57:11]wFMCommunicate OK [05:57:11]SAM_PROTO_GetShiftState done [05:57:11]FM_GetShiftState done [05:57:11]req_shift_opened done [05:57:11]requested_item shift.open_date is exist - process it [05:57:11]req_shift_open_date [05:57:11]req_shift_open_date done [05:57:11]produce_requested_data done [05:57:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117950,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [05:57:11]process_action_free close_receipt [05:57:11]json_value_free [05:57:11]json_value_free done [05:57:11]process_json_proto returns [05:57:11]Send response to host [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:38]ConnectInit Can't connect to host [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:10]accept exits with 10 [06:42:10]New connection [06:42:10]New thread 3067157860 created [06:42:10]Thread 3067301220 joined [06:42:10]Waiting for new connection... [06:42:10] Sock 10.Parse request [06:42:10]Sock 10.Check first char [06:42:10]Sock 10.First char is OK [06:42:10]request: POST /json_proto HTTP/1.0 [06:42:10]Method: POST [06:42:10]URL: /json_proto [06:42:10]Method is POST - this is cgi request [06:42:10]url: /json_proto [06:42:10]query_string will be loaded in cgi processing [06:42:10]execute_cgi json_proto POST (null) [06:42:10]execute_cgi path=json_proto method=POST [06:42:10]POST find Content-Length [06:42:10]Host: 172.17.96.67:8080 [06:42:10]Content-Length: 674 [06:42:10]Content-Type: application/json [06:42:10] [06:42:10]POST finish read [06:42:10]Found Content-Length = 674 [06:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [06:42:10]execute_script... [06:42: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)245742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [06:42:10]POST & json_proto [06:42:10]process_json_proto [06:42:10]json parsed OK: [06:42:10]protocol is kg_v1.0 [06:42:10]action value=close_receipt [06:42:10]process_action close_receipt [06:42:10]cmd_close_receipt [06:42:10]MH_GetDate [06:42:10]Write to MH i2c: F0 00 00 FB 0E F8 [06:42:10]Write i2c OK [06:42:10]MH_I2C_Read... [06:42:10]Read from MH i2c: F0 [06:42:10]MH_I2C_Read... [06:42:10]Read from MH i2c: F0 09 00 [06:42:10]MH_I2C_Read... [06:42:10]Read from MH i2c: F0 09 00 FB 0E 00 45 D5 21 67 47 6C 1F 67 DC [06:42:10]GetLastDocTimeStamp 1730267831 [06:42:10]current date 1730270533 [06:42:10]FM_GetShiftState [06:42:10]SAM_PROTO_GetShiftState [06:42:10]wFMCommunicate request_size=4 [06:42:10]MH_SAM_APDU [06:42:10]CAPDU: 80 13 01 00 [06:42:10]Write to MH i2c: E2 08 00 FC 0E 80 13 01 00 00 00 00 00 87 [06:42:10]Write i2c OK [06:42:10]MH_I2C_Read... [06:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:10]Read from MH i2c: E2 [06:42:10]MH_I2C_Read... [06:42:10]Read from MH i2c: E2 0E 00 [06:42:10]MH_I2C_Read... [06:42:10]Read from MH i2c: E2 0E 00 FC 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5F [06:42:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [06:42:10]wFMCommunicate OK [06:42:10]SAM_PROTO_GetShiftState done [06:42:10]FM_GetShiftState done [06:42:10]opened in 1730246605 [06:42:10]opened+sec_in_day 1730333005 [06:42:10]quantity*price = 50063 [06:42:10]sum+1 = 50064 [06:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 11 30.10.2024 06:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117951 ФПД: 87092788529475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064213&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117951&fm=87092788529475&tin=02508201610067®Number=0000000000091782&sum=50000 [06:42:11]StoreToDocumentArchive [06:42:11]shift 545 fd 117951 [06:42:11]save to /storage/0545/doc_00117951 [06:42:11]save last doc name /storage/0545/doc_00117951 to /storage/kkm_last_doc_name [06:42:11]save OK [06:42:11]Clear old archive folders... [06:42:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:42:11]tlvbuf is 00129910 [06:42:11]SAM_PROTO_ClearQueue [06:42:11]wFMCommunicate request_size=4 [06:42:11]MH_SAM_APDU [06:42:11]CAPDU: 80 09 00 00 [06:42:11]Write to MH i2c: E2 08 00 09 0F 80 09 00 00 00 00 00 00 8A [06:42:11]Write i2c OK [06:42:11]MH_I2C_Read... [06:42:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:11]Read from MH i2c: E2 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [06:42:11]RAPDU: 90 00 [06:42:11]wFMCommunicate OK [06:42:11]SAM_PROTO_ClearQueue done [06:42:11]KKMCreateOFDPacket [06:42:11]OFDProtocolAddRootSTLVToBuf [06:42:11]FM_MakeSignedData [06:42:11]FM_MakeSignedData [06:42:11]SAM_PROTO_SignData [06:42:11]wFMCommunicate request_size=4 [06:42:11]MH_SAM_APDU [06:42:11]CAPDU: 80 0D 01 02 [06:42:11]Write to MH i2c: E2 08 00 0A 0F 80 0D 01 02 00 00 00 00 92 [06:42:11]Write i2c OK [06:42:11]MH_I2C_Read... [06:42:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:11]Read from MH i2c: E2 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [06:42:11]RAPDU: 90 00 [06:42:11]wFMCommunicate OK [06:42:11]wFMCommunicate request_size=255 [06:42:11]MH_SAM_APDU [06:42:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 45 D5 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CC 01 00 35 04 06 00 4F 35 DE B9 [06:42:11]Write to MH i2c: E2 02 01 0B 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 45 D5 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CC 01 00 35 04 06 00 4F 35 DE B9 00 00 19 [06:42:11]Write i2c OK [06:42:11]MH_I2C_Read... [06:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:11]Read from MH i2c: E2 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [06:42:11]RAPDU: 90 00 [06:42:11]wFMCommunicate OK [06:42:11]wFMCommunicate request_size=7 [06:42:11]MH_SAM_APDU [06:42:11]CAPDU: 80 0D 02 02 02 09 43 [06:42:11]Write to MH i2c: E2 0A 00 0C 0F 80 0D 02 02 02 00 09 43 00 00 E5 [06:42:11]Write i2c OK [06:42:11]MH_I2C_Read... [06:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:11]Read from MH i2c: E2 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [06:42:11]RAPDU: 90 00 [06:42:11]wFMCommunicate OK [06:42:11]wFMCommunicate request_size=4 [06:42:11]MH_SAM_APDU [06:42:11]CAPDU: 80 0D 03 02 [06:42:11]Write to MH i2c: E2 08 00 0D 0F 80 0D 03 02 00 00 00 00 97 [06:42:11]Write i2c OK [06:42:11]MH_I2C_Read... [06:42:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:11]Read from MH i2c: E2 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 0B 00 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 0B 00 0D 0F 00 1D 1B 5E 18 1E E7 78 14 90 00 D7 [06:42:11]RAPDU: 1D 1B 5E 18 1E E7 78 14 90 00 [06:42:11]wFMCommunicate OK [06:42:11]SAM_PROTO_SignData done [06:42:11]FM_MakeSignedData done [06:42:11]CreateOFDProtocolMessage [06:42:11]wFMCommunicate request_size=4 [06:42:11]MH_SAM_APDU [06:42:11]CAPDU: 80 11 00 00 [06:42:11]Write to MH i2c: E2 08 00 0E 0F 80 11 00 00 00 00 00 00 97 [06:42:11]Write i2c OK [06:42:11]MH_I2C_Read... [06:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:11]Read from MH i2c: E2 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 17 00 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: E2 17 00 0E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EE [06:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [06:42:11]wFMCommunicate OK [06:42:11]CreateOFDProtocolMessage done [06:42:11]OFDSenderStorePacket 117951 [06:42:11]StoreOFDPacket docnum=117951 [06:42:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 5A E9 04 01 71 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 45 D5 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CC 01 00 35 04 06 00 4F 35 DE B9 09 43 1D 1B 5E 18 1E E7 78 14 [06:42:11]CheckFolder [06:42:11]dirname=/storage/ofd_packets [06:42:11]CheckFolder done [06:42:11]ProducePacketName [06:42:11]name=ofd_packets/00117951 [06:42:11]NVStorageSaveData ofd_packets/00117951 [06:42:11]File name is /storage/ofd_packets/00117951 [06:42:11]Write 298 bytes [06:42:11]NVStorageSaveData done [06:42:11]OFDSenderStorePacket done [06:42:11]KKMCreateOFDPacket done [06:42:11]NVStorageSaveData kkm_last_timestamp [06:42:11]File name is /storage/kkm_last_timestamp [06:42:11]Write 4 bytes [06:42:11]NVStorageSaveData done [06:42:11]ExternCall_PrintAddStr [06:42:11]wPrintStart [06:42:11]Write to MH i2c: 01 00 00 0F 0F 1E [06:42:11]Write i2c OK [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: 01 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: 01 07 00 [06:42:11]MH_I2C_Read... [06:42:11]Read from MH i2c: 01 07 00 0F 0F 00 00 00 00 00 FF 0F 33 [06:42:11]RasterBufferAndPrint [06:42:11]line Счет N : (1)245742 [06:42:11]line ИНН: 02508201610067 [06:42:11]line Контрольно-Кассовый Чек [06:42:11]line ПРОДАЖА [06:42:11]line ТРК (МРК, ГНК) : 23 [06:42:11]line Товар: 2710194210 [06:42:11]line ДТ-К-2 [06:42:11]line 6.570 * 76.20 [06:42:11]line = 500.63 [06:42:11]line НДС 12% НСП 1% [06:42:11]line > о реализуемом товаре [06:42:11]line ОКРУГЛЕНИЕ: -0.63 [06:42:11]line ИТОГО: 500.00 [06:42:11]line Внесено: 500.00 [06:42:11]line СДАЧА: 0.00 [06:42:11]line НСП 1% : 4.43 [06:42:11]line НДС 12% : 53.16 [06:42:11]line Наличными: 500.00 [06:42:11]line Безнал.: 0.00 [06:42:11]line Место: АЗС № 173 "Партнер Нефть" [06:42:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [06:42:11]line СНО: Общий режим [06:42:11]line Чек 11 30.10.2024 06:42 [06:42:11]line Смена: 545 ФФД: 1.0 [06:42:11]line ЗНМ: 0300000115 [06:42:11]line РНМ: 0000000000091782 [06:42:11]line Версия ККМ: 001 [06:42:11]line ФМ: 0000000000871767 [06:42:11]line ФД: 117951 [06:42:11]line ФПД: 87092788529475 [06:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064213&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117951&fm=87092788529475&tin=02508201610067®Number=0000000000091782&sum=50000 [06:42:11]OFD Sender: Processing packet 117951 [packets to send 77, broken 76] [06:42:11]ProducePacketName [06:42:11]name=ofd_packets/00117951 [06:42:11]OFD Sender: To server: pG, [06:42:11]CommunicateWithHost lk.salyk.kg:30040 [06:42:11]ConnectInit lk.salyk.kg [06:42:11]written 0, free lines is 4095 [06:42:12]Connected sock=9 [06:42: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 36 37 0C 01 00 00 5A E9 04 01 71 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 45 D5 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CC 01 00 35 04 06 00 4F 35 DE B9 09 43 1D 1B 5E 18 1E E7 78 14 [06:42: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 36 37 4F 00 00 00 DA 93 47 00 43 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 36 37 10 04 04 00 BF CC 01 00 F4 03 04 00 FD 80 21 67 B6 04 01 00 00 CA 64 9B D6 59 87 8E 51 [06:42:12]CommunicateWithHost err = 0 [06:42:12]CheckOFDResponse [06:42:12]1017 (14) - 77093643461234 [06:42:12]1041 (16) - 0000000000871767 [06:42:12]1040 (4) - 117951 [06:42:12]1012 (4) - 30.10.2024 00:42 [06:42:12]1206 (1) - 0 [06:42:12]OFD Sender: Remove packet 117951 [06:42:12]ProducePacketName [06:42:12]name=ofd_packets/00117951 [06:42:12]NVStorageDeleteData [06:42:12]Write to MH i2c: 01 00 00 39 0F 48 [06:42:12]Write i2c OK [06:42:12]MH_I2C_Read... [06:42:12]Read from MH i2c: 01 [06:42:12]MH_I2C_Read... [06:42:12]Read from MH i2c: 01 07 00 [06:42:12]MH_I2C_Read... [06:42:12]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 B7 0C 12 [06:42:12]RasterBufferAndPrint [06:42:12]line [06:42:12]line [06:42:12]line [06:42:12]line [06:42:12]line [06:42:12]written 0, free lines is 3259 [06:42:12]MH_Cut [06:42:12]Write to MH i2c: D1 01 00 40 0F 01 21 [06:42:12]Write i2c OK [06:42:12]MH_I2C_Read... [06:42:12]Read from MH i2c: D1 [06:42:12]MH_I2C_Read... [06:42:12]Read from MH i2c: D1 01 00 [06:42:12]MH_I2C_Read... [06:42:12]Read from MH i2c: D1 01 00 40 0F 00 20 [06:42:12]Write to MH i2c: 01 00 00 41 0F 50 [06:42:12]Write i2c OK [06:42:12]MH_I2C_Read... [06:42:12]OFD Sender: No OFD packet to send [06:42:13]*** Cut start [06:42:13]*** Purtial cut [06:42:13]*** Stage 1: CUTSNS_PIN = 1 [06:42:13]Read from MH i2c: 01 [06:42:13]MH_I2C_Read... [06:42:13]*** Stop cut motor [06:42:13]Read from MH i2c: 01 07 00 [06:42:13]MH_I2C_Read... [06:42:13]*** Cut end [06:42:13]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 FF 0F 65 [06:42:13]process_action close_receipt done [06:42:13]requested_data is exist [06:42:13]produce_requested_data [06:42:13]requested_item fm.sn is exist - process it [06:42:13]wFMCommunicate request_size=4 [06:42:13]MH_SAM_APDU [06:42:13]CAPDU: 80 11 00 00 [06:42:13]Write to MH i2c: E2 08 00 42 0F 80 11 00 00 00 00 00 00 CB [06:42:13]Write i2c OK [06:42:13]MH_I2C_Read... [06:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:13]Read from MH i2c: E2 [06:42:13]MH_I2C_Read... [06:42:13]Read from MH i2c: E2 17 00 [06:42:13]MH_I2C_Read... [06:42:13]Read from MH i2c: E2 17 00 42 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 22 [06:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [06:42:13]wFMCommunicate OK [06:42:13]requested_item fd.num is exist - process it [06:42:13]SAM_PROTO_GetFieldsCounters [06:42:13]wFMCommunicate request_size=4 [06:42:13]MH_SAM_APDU [06:42:13]CAPDU: 80 13 00 00 [06:42:13]Write to MH i2c: E2 08 00 43 0F 80 13 00 00 00 00 00 00 CE [06:42:13]Write i2c OK [06:42:13]MH_I2C_Read... [06:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:13]Read from MH i2c: E2 [06:42:13]MH_I2C_Read... [06:42:13]Read from MH i2c: E2 62 00 [06:42:13]MH_I2C_Read... [06:42:13]Read from MH i2c: E2 62 00 43 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [06: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:42:13]wFMCommunicate OK [06:42:13]SAM_PROTO_GetFieldsCounters done [06:42:13]requested_item shift.num is exist - process it [06:42:13]requested_item shift.opened is exist - process it [06:42:13]req_shift_opened [06:42:13]FM_GetShiftState [06:42:13]SAM_PROTO_GetShiftState [06:42:13]wFMCommunicate request_size=4 [06:42:13]MH_SAM_APDU [06:42:13]CAPDU: 80 13 01 00 [06:42:13]Write to MH i2c: E2 08 00 44 0F 80 13 01 00 00 00 00 00 D0 [06:42:13]Write i2c OK [06:42:13]MH_I2C_Read... [06:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:13]Read from MH i2c: E2 [06:42:13]MH_I2C_Read... [06:42:13]Read from MH i2c: E2 0E 00 [06:42:13]MH_I2C_Read... [06:42:13]Read from MH i2c: E2 0E 00 44 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A8 [06:42:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [06:42:13]wFMCommunicate OK [06:42:13]SAM_PROTO_GetShiftState done [06:42:13]FM_GetShiftState done [06:42:13]req_shift_opened done [06:42:13]requested_item shift.open_date is exist - process it [06:42:13]req_shift_open_date [06:42:13]req_shift_open_date done [06:42:13]produce_requested_data done [06:42:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117951,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [06:42:13]process_action_free close_receipt [06:42:13]json_value_free [06:42:13]json_value_free done [06:42:13]process_json_proto returns [06:42:13]Send response to host [06:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117951,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [06:42:13]free response buf [06:42:13]execute_script done [06:42:13]execute_script returns [06:42:13]free content buf [06:42:13]Sock 10.Close socket [06:42:13]Sock 10.Thread stoped [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:28]accept exits with 8 [07:32:28]New connection [07:32:28]New thread 3067301220 created [07:32:28]Thread 3067157860 joined [07:32:28]Waiting for new connection... [07:32:28] Sock 8.Parse request [07:32:28]Sock 8.Check first char [07:32:28]Sock 8.First char is OK [07:32:28]request: POST /json_proto HTTP/1.0 [07:32:28]Method: POST [07:32:28]URL: /json_proto [07:32:28]Method is POST - this is cgi request [07:32:28]url: /json_proto [07:32:28]query_string will be loaded in cgi processing [07:32:28]execute_cgi json_proto POST (null) [07:32:28]execute_cgi path=json_proto method=POST [07:32:28]POST find Content-Length [07:32:28]Host: 172.17.96.67:8080 [07:32:28]Content-Length: 677 [07:32:28]Content-Type: application/json [07:32:28] [07:32:28]POST finish read [07:32:28]Found Content-Length = 677 [07:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:32:28]execute_script... [07:32: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)245743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:32:28]POST & json_proto [07:32:28]process_json_proto [07:32:28]json parsed OK: [07:32:28]protocol is kg_v1.0 [07:32:28]action value=close_receipt [07:32:28]process_action close_receipt [07:32:28]cmd_close_receipt [07:32:28]MH_GetDate [07:32:28]Write to MH i2c: F0 00 00 45 0F 43 [07:32:28]Write i2c OK [07:32:28]MH_I2C_Read... [07:32:28]Read from MH i2c: F0 [07:32:28]MH_I2C_Read... [07:32:28]Read from MH i2c: F0 09 00 [07:32:28]MH_I2C_Read... [07:32:28]Read from MH i2c: F0 09 00 45 0F 00 0F E1 21 67 47 6C 1F 67 FD [07:32:28]GetLastDocTimeStamp 1730270533 [07:32:28]current date 1730273551 [07:32:28]FM_GetShiftState [07:32:28]SAM_PROTO_GetShiftState [07:32:28]wFMCommunicate request_size=4 [07:32:28]MH_SAM_APDU [07:32:28]CAPDU: 80 13 01 00 [07:32:28]Write to MH i2c: E2 08 00 46 0F 80 13 01 00 00 00 00 00 D2 [07:32:28]Write i2c OK [07:32:28]MH_I2C_Read... [07:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:28]Read from MH i2c: E2 [07:32:28]MH_I2C_Read... [07:32:28]Read from MH i2c: E2 0E 00 [07:32:28]MH_I2C_Read... [07:32:28]Read from MH i2c: E2 0E 00 46 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AA [07:32:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [07:32:28]wFMCommunicate OK [07:32:28]SAM_PROTO_GetShiftState done [07:32:28]FM_GetShiftState done [07:32:28]opened in 1730246605 [07:32:28]opened+sec_in_day 1730333005 [07:32:28]quantity*price = 20003 [07:32:28]sum+1 = 20004 [07:32:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 12 30.10.2024 07:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117952 ФПД: 278698793627326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T073231&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117952&fm=278698793627326&tin=02508201610067®Number=0000000000091782&sum=20000 [07:32:29]StoreToDocumentArchive [07:32:29]shift 545 fd 117952 [07:32:29]save to /storage/0545/doc_00117952 [07:32:29]save last doc name /storage/0545/doc_00117952 to /storage/kkm_last_doc_name [07:32:29]save OK [07:32:29]Clear old archive folders... [07:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:29]tlvbuf is 003F16C0 [07:32:29]SAM_PROTO_ClearQueue [07:32:29]wFMCommunicate request_size=4 [07:32:29]MH_SAM_APDU [07:32:29]CAPDU: 80 09 00 00 [07:32:29]Write to MH i2c: E2 08 00 53 0F 80 09 00 00 00 00 00 00 D4 [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:29]Read from MH i2c: E2 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [07:32:29]RAPDU: 90 00 [07:32:29]wFMCommunicate OK [07:32:29]SAM_PROTO_ClearQueue done [07:32:29]KKMCreateOFDPacket [07:32:29]OFDProtocolAddRootSTLVToBuf [07:32:29]FM_MakeSignedData [07:32:29]FM_MakeSignedData [07:32:29]SAM_PROTO_SignData [07:32:29]wFMCommunicate request_size=4 [07:32:29]MH_SAM_APDU [07:32:29]CAPDU: 80 0D 01 02 [07:32:29]Write to MH i2c: E2 08 00 54 0F 80 0D 01 02 00 00 00 00 DC [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:29]Read from MH i2c: E2 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [07:32:29]RAPDU: 90 00 [07:32:29]wFMCommunicate OK [07:32:29]wFMCommunicate request_size=255 [07:32:29]MH_SAM_APDU [07:32: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 32 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 0C 00 00 00 F4 03 04 00 0F E1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CC 01 00 35 04 06 00 FD [07:32:29]Write to MH i2c: E2 02 01 55 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 0F E1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CC 01 00 35 04 06 00 FD 00 00 61 [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:29]Read from MH i2c: E2 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [07:32:29]RAPDU: 90 00 [07:32:29]wFMCommunicate OK [07:32:29]wFMCommunicate request_size=10 [07:32:29]MH_SAM_APDU [07:32:29]CAPDU: 80 0D 02 02 05 79 9E 97 EE BE [07:32:29]Write to MH i2c: E2 0D 00 56 0F 80 0D 02 02 05 00 79 9E 97 EE BE 00 00 43 [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:29]Read from MH i2c: E2 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [07:32:29]RAPDU: 90 00 [07:32:29]wFMCommunicate OK [07:32:29]wFMCommunicate request_size=4 [07:32:29]MH_SAM_APDU [07:32:29]CAPDU: 80 0D 03 02 [07:32:29]Write to MH i2c: E2 08 00 57 0F 80 0D 03 02 00 00 00 00 E1 [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:29]Read from MH i2c: E2 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 0B 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 0B 00 57 0F 00 C6 81 1C 47 B1 02 7D 2E 90 00 EA [07:32:29]RAPDU: C6 81 1C 47 B1 02 7D 2E 90 00 [07:32:29]wFMCommunicate OK [07:32:29]SAM_PROTO_SignData done [07:32:29]FM_MakeSignedData done [07:32:29]CreateOFDProtocolMessage [07:32:29]wFMCommunicate request_size=4 [07:32:29]MH_SAM_APDU [07:32:29]CAPDU: 80 11 00 00 [07:32:29]Write to MH i2c: E2 08 00 58 0F 80 11 00 00 00 00 00 00 E1 [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:29]Read from MH i2c: E2 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 17 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: E2 17 00 58 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 38 [07:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:32:29]wFMCommunicate OK [07:32:29]CreateOFDProtocolMessage done [07:32:29]OFDSenderStorePacket 117952 [07:32:29]StoreOFDPacket docnum=117952 [07:32:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 88 9D 07 01 77 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 00 00 00 F4 03 04 00 0F E1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CC 01 00 35 04 06 00 FD 79 9E 97 EE BE C6 81 1C 47 B1 02 7D 2E [07:32:29]CheckFolder [07:32:29]dirname=/storage/ofd_packets [07:32:29]CheckFolder done [07:32:29]ProducePacketName [07:32:29]name=ofd_packets/00117952 [07:32:29]NVStorageSaveData ofd_packets/00117952 [07:32:29]File name is /storage/ofd_packets/00117952 [07:32:29]Write 301 bytes [07:32:29]NVStorageSaveData done [07:32:29]OFDSenderStorePacket done [07:32:29]KKMCreateOFDPacket done [07:32:29]NVStorageSaveData kkm_last_timestamp [07:32:29]File name is /storage/kkm_last_timestamp [07:32:29]Write 4 bytes [07:32:29]NVStorageSaveData done [07:32:29]ExternCall_PrintAddStr [07:32:29]wPrintStart [07:32:29]Write to MH i2c: 01 00 00 59 0F 68 [07:32:29]Write i2c OK [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: 01 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: 01 07 00 [07:32:29]MH_I2C_Read... [07:32:29]Read from MH i2c: 01 07 00 59 0F 00 00 00 00 00 FF 0F 7D [07:32:29]RasterBufferAndPrint [07:32:29]line Счет N : (1)245743 [07:32:29]line ИНН: 02508201610067 [07:32:29]line Контрольно-Кассовый Чек [07:32:29]line ПРОДАЖА [07:32:29]line ТРК (МРК, ГНК) : 21 [07:32:29]line Товар: 2710124130 [07:32:29]line Аи-92-К-2 [07:32:29]line 2.990 * 66.90 [07:32:29]line = 200.03 [07:32:29]line НДС 12% НСП 1% [07:32:29]line > о реализуемом товаре [07:32:29]line ОКРУГЛЕНИЕ: -0.03 [07:32:29]line ИТОГО: 200.00 [07:32:29]line Внесено: 200.00 [07:32:29]line СДАЧА: 0.00 [07:32:29]line НСП 1% : 1.77 [07:32:29]line НДС 12% : 21.24 [07:32:29]line Наличными: 200.00 [07:32:29]line Безнал.: 0.00 [07:32:29]line Место: АЗС № 173 "Партнер Нефть" [07:32:29]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [07:32:29]line СНО: Общий режим [07:32:29]line Чек 12 30.10.2024 07:32 [07:32:29]line Смена: 545 ФФД: 1.0 [07:32:29]line ЗНМ: 0300000115 [07:32:29]line РНМ: 0000000000091782 [07:32:29]line Версия ККМ: 001 [07:32:29]line ФМ: 0000000000871767 [07:32:29]line ФД: 117952 [07:32:29]line ФПД: 278698793627326 [07:32:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T073231&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117952&fm=278698793627326&tin=02508201610067®Number=0000000000091782&sum=20000 [07:32:30]written 0, free lines is 4095 [07:32:30]OFD Sender: Processing packet 117952 [packets to send 77, broken 76] [07:32:30]ProducePacketName [07:32:30]name=ofd_packets/00117952 [07:32:30]OFD Sender: To server: pG, [07:32:30]CommunicateWithHost lk.salyk.kg:30040 [07:32:30]ConnectInit lk.salyk.kg [07:32:30]Connected sock=10 [07:32: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 36 37 0F 01 00 00 88 9D 07 01 77 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 00 00 00 F4 03 04 00 0F E1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CC 01 00 35 04 06 00 FD 79 9E 97 EE BE C6 81 1C 47 B1 02 7D 2E [07:32: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 36 37 4F 00 00 00 64 66 47 00 E4 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 36 37 10 04 04 00 C0 CC 01 00 F4 03 04 00 C8 8C 21 67 B6 04 01 00 00 B7 E4 EA CC 44 6A 74 48 [07:32:30]CommunicateWithHost err = 0 [07:32:30]CheckOFDResponse [07:32:30]1017 (14) - 77093643461234 [07:32:30]1041 (16) - 0000000000871767 [07:32:30]1040 (4) - 117952 [07:32:30]1012 (4) - 30.10.2024 01:32 [07:32:30]1206 (1) - 0 [07:32:30]OFD Sender: Remove packet 117952 [07:32:30]ProducePacketName [07:32:30]name=ofd_packets/00117952 [07:32:30]NVStorageDeleteData [07:32:30]Write to MH i2c: 01 00 00 83 0F 92 [07:32:30]Write i2c OK [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: 01 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: 01 07 00 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: 01 07 00 83 0F 00 00 00 00 00 C0 0C 65 [07:32:30]RasterBufferAndPrint [07:32:30]line [07:32:30]line [07:32:30]line [07:32:30]line [07:32:30]line [07:32:30]written 0, free lines is 3271 [07:32:30]MH_Cut [07:32:30]Write to MH i2c: D1 01 00 8A 0F 01 6B [07:32:30]Write i2c OK [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: D1 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: D1 01 00 [07:32:30]MH_I2C_Read... [07:32:30]Read from MH i2c: D1 01 00 8A 0F 00 6A [07:32:30]Write to MH i2c: 01 00 00 8B 0F 9A [07:32:30]Write i2c OK [07:32:30]MH_I2C_Read... [07:32:31]OFD Sender: No OFD packet to send [07:32:31]*** Cut start [07:32:31]*** Purtial cut [07:32:31]*** Stage 1: CUTSNS_PIN = 1 [07:32:31]Read from MH i2c: 01 [07:32:31]MH_I2C_Read... [07:32:31]*** Stop cut motor [07:32:31]*** Cut end [07:32:31]Read from MH i2c: 01 07 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 FF 0F AF [07:32:31]process_action close_receipt done [07:32:31]requested_data is exist [07:32:31]produce_requested_data [07:32:31]requested_item fm.sn is exist - process it [07:32:31]wFMCommunicate request_size=4 [07:32:31]MH_SAM_APDU [07:32:31]CAPDU: 80 11 00 00 [07:32:31]Write to MH i2c: E2 08 00 8C 0F 80 11 00 00 00 00 00 00 15 [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:31]Read from MH i2c: E2 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 17 00 [07:32:31]MH_I2C_Read... [07:32:31]Read from MH i2c: E2 17 00 8C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6C [07:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [07:32:31]wFMCommunicate OK [07:32:31]requested_item fd.num is exist - process it [07:32:31]SAM_PROTO_GetFieldsCounters [07:32:31]wFMCommunicate request_size=4 [07:32:31]MH_SAM_APDU [07:32:31]CAPDU: 80 13 00 00 [07:32:31]Write to MH i2c: E2 08 00 8D 0F 80 13 00 00 00 00 00 00 18 [07:32:31]Write i2c OK [07:32:31]MH_I2C_Read... [07:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:32]Read from MH i2c: E2 [07:32:32]MH_I2C_Read... [07:32:32]Read from MH i2c: E2 62 00 [07:32:32]MH_I2C_Read... [07:32:32]Read from MH i2c: E2 62 00 8D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C0 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07:32: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C0 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:32]wFMCommunicate OK [07:32:32]SAM_PROTO_GetFieldsCounters done [07:32:32]requested_item shift.num is exist - process it [07:32:32]requested_item shift.opened is exist - process it [07:32:32]req_shift_opened [07:32:32]FM_GetShiftState [07:32:32]SAM_PROTO_GetShiftState [07:32:32]wFMCommunicate request_size=4 [07:32:32]MH_SAM_APDU [07:32:32]CAPDU: 80 13 01 00 [07:32:32]Write to MH i2c: E2 08 00 8E 0F 80 13 01 00 00 00 00 00 1A [07:32:32]Write i2c OK [07:32:32]MH_I2C_Read... [07:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:32]Read from MH i2c: E2 [07:32:32]MH_I2C_Read... [07:32:32]Read from MH i2c: E2 0E 00 [07:32:32]MH_I2C_Read... [07:32:32]Read from MH i2c: E2 0E 00 8E 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F2 [07:32:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [07:32:32]wFMCommunicate OK [07:32:32]SAM_PROTO_GetShiftState done [07:32:32]FM_GetShiftState done [07:32:32]req_shift_opened done [07:32:32]requested_item shift.open_date is exist - process it [07:32:32]req_shift_open_date [07:32:32]req_shift_open_date done [07:32:32]produce_requested_data done [07:32:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117952,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [07:32:32]process_action_free close_receipt [07:32:32]json_value_free [07:32:32]json_value_free done [07:32:32]process_json_proto returns [07:32:32]Send response to host [07:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117952,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [07:32:32]free response buf [07:32:32]execute_script done [07:32:32]execute_script returns [07:32:32]free content buf [07:32:32]Sock 8.Close socket [07:32:32]Sock 8.Thread stoped [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:30]ConnectInit Can't connect to host [08:01:32]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:53]ConnectInit Can't connect to host [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:17]accept exits with 9 [08:18:17]New connection [08:18:17]New thread 3067157860 created [08:18:17]Thread 3067301220 joined [08:18:17]Waiting for new connection... [08:18:17] Sock 9.Parse request [08:18:17]Sock 9.Check first char [08:18:17]Sock 9.First char is OK [08:18:17]request: POST /json_proto HTTP/1.0 [08:18:17]Method: POST [08:18:17]URL: /json_proto [08:18:17]Method is POST - this is cgi request [08:18:17]url: /json_proto [08:18:17]query_string will be loaded in cgi processing [08:18:17]execute_cgi json_proto POST (null) [08:18:17]execute_cgi path=json_proto method=POST [08:18:17]POST find Content-Length [08:18:17]Host: 172.17.96.67:8080 [08:18:17]Content-Length: 766 [08:18:17]Content-Type: application/json [08:18:17] [08:18:17]POST finish read [08:18:17]Found Content-Length = 766 [08:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:17]execute_script... [08:18:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:17]POST & json_proto [08:18:17]process_json_proto [08:18:17]json parsed OK: [08:18:17]protocol is kg_v1.0 [08:18:17]action value=close_receipt [08:18:17]process_action close_receipt [08:18:17]cmd_close_receipt [08:18:17]MH_GetDate [08:18:17]Write to MH i2c: F0 00 00 8F 0F 8D [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: F0 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: F0 09 00 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: F0 09 00 8F 0F 00 CC EB 21 67 47 6C 1F 67 0E [08:18:17]GetLastDocTimeStamp 1730273551 [08:18:17]current date 1730276300 [08:18:17]FM_GetShiftState [08:18:17]SAM_PROTO_GetShiftState [08:18:17]wFMCommunicate request_size=4 [08:18:17]MH_SAM_APDU [08:18:17]CAPDU: 80 13 01 00 [08:18:17]Write to MH i2c: E2 08 00 90 0F 80 13 01 00 00 00 00 00 1C [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:17]Read from MH i2c: E2 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 0E 00 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 0E 00 90 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F4 [08:18:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:18:17]wFMCommunicate OK [08:18:17]SAM_PROTO_GetShiftState done [08:18:17]FM_GetShiftState done [08:18:17]opened in 1730246605 [08:18:17]opened+sec_in_day 1730333005 [08:18:17]quantity*price = 35055 [08:18:17]sum+1 = 35057 [08:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 13 30.10.2024 08:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117953 ФПД: 248826800310190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117953&fm=248826800310190&tin=02508201610067®Number=0000000000091782&sum=35056 [08:18:18]StoreToDocumentArchive [08:18:18]shift 545 fd 117953 [08:18:18]save to /storage/0545/doc_00117953 [08:18:18]save last doc name /storage/0545/doc_00117953 to /storage/kkm_last_doc_name [08:18:18]save OK [08:18:18]Clear old archive folders... [08:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:18]tlvbuf is 003F4A20 [08:18:18]SAM_PROTO_ClearQueue [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 09 00 00 [08:18:18]Write to MH i2c: E2 08 00 9D 0F 80 09 00 00 00 00 00 00 1E [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]SAM_PROTO_ClearQueue done [08:18:18]KKMCreateOFDPacket [08:18:18]OFDProtocolAddRootSTLVToBuf [08:18:18]FM_MakeSignedData [08:18:18]FM_MakeSignedData [08:18:18]SAM_PROTO_SignData [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 01 02 [08:18:18]Write to MH i2c: E2 08 00 9E 0F 80 0D 01 02 00 00 00 00 26 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=255 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CC EB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CC 01 00 35 04 06 00 E2 [08:18:18]Write to MH i2c: E2 02 01 9F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CC EB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CC 01 00 35 04 06 00 E2 00 00 12 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=10 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 02 02 05 4E 81 0B 07 AE [08:18:18]Write to MH i2c: E2 0D 00 A0 0F 80 0D 02 02 05 00 4E 81 0B 07 AE 00 00 C2 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 A0 0F 00 90 00 23 [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 03 02 [08:18:18]Write to MH i2c: E2 08 00 A1 0F 80 0D 03 02 00 00 00 00 2B [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 0B 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 0B 00 A1 0F 00 3D 34 F6 24 47 FD 8A 16 90 00 9B [08:18:18]RAPDU: 3D 34 F6 24 47 FD 8A 16 90 00 [08:18:18]wFMCommunicate OK [08:18:18]SAM_PROTO_SignData done [08:18:18]FM_MakeSignedData done [08:18:18]CreateOFDProtocolMessage [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 11 00 00 [08:18:18]Write to MH i2c: E2 08 00 A2 0F 80 11 00 00 00 00 00 00 2B [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 A2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 82 [08:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:18:18]wFMCommunicate OK [08:18:18]CreateOFDProtocolMessage done [08:18:18]OFDSenderStorePacket 117953 [08:18:18]StoreOFDPacket docnum=117953 [08:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A9 02 07 01 FC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CC EB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CC 01 00 35 04 06 00 E2 4E 81 0B 07 AE 3D 34 F6 24 47 FD 8A 16 [08:18:18]CheckFolder [08:18:18]dirname=/storage/ofd_packets [08:18:18]CheckFolder done [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00117953 [08:18:18]NVStorageSaveData ofd_packets/00117953 [08:18:18]File name is /storage/ofd_packets/00117953 [08:18:18]Write 301 bytes [08:18:18]NVStorageSaveData done [08:18:18]OFDSenderStorePacket done [08:18:18]KKMCreateOFDPacket done [08:18:18]NVStorageSaveData kkm_last_timestamp [08:18:18]File name is /storage/kkm_last_timestamp [08:18:18]Write 4 bytes [08:18:18]NVStorageSaveData done [08:18:18]ExternCall_PrintAddStr [08:18:18]wPrintStart [08:18:18]Write to MH i2c: 01 00 00 A3 0F B2 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 FF 0F C7 [08:18:18]RasterBufferAndPrint [08:18:18]line Счет N : (1)245744 [08:18:18]line ИНН: 02508201610067 [08:18:18]line Контрольно-Кассовый Чек [08:18:18]line ПРОДАЖА [08:18:18]line ТРК (МРК, ГНК) : 11 [08:18:18]line Товар: 2710124130 [08:18:18]line Аи-92-К-2 [08:18:18]line 5.240 * 66.90 [08:18:18]line = 350.56 [08:18:18]line НДС 12% НСП 1% [08:18:18]line > о реализуемом товаре [08:18:18]line ИТОГО: 350.56 [08:18:18]line НСП 1% : 3.10 [08:18:18]line НДС 12% : 37.23 [08:18:18]line Наличными: 0.00 [08:18:18]line Безнал.: 350.56 [08:18:18]line Место: АЗС № 173 "Партнер Нефть" [08:18:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:18:18]line СНО: Общий режим [08:18:18]line Чек 13 30.10.2024 08:18 [08:18:18]line Смена: 545 ФФД: 1.0 [08:18:18]line ЗНМ: 0300000115 [08:18:18]line РНМ: 0000000000091782 [08:18:18]line Версия ККМ: 001 [08:18:18]line Платежная система: Mbank [08:18:18]line ФМ: 0000000000871767 [08:18:18]line ФД: 117953 [08:18:18]line ФПД: 248826800310190 [08:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117953&fm=248826800310190&tin=02508201610067®Number=0000000000091782&sum=35056 [08:18:18]written 0, free lines is 4095 [08:18:18]OFD Sender: Processing packet 117953 [packets to send 77, broken 76] [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00117953 [08:18:18]OFD Sender: To server: pG, [08:18:18]CommunicateWithHost lk.salyk.kg:30040 [08:18:18]ConnectInit lk.salyk.kg [08:18:18]Connected sock=10 [08:18: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 36 37 0F 01 00 00 A9 02 07 01 FC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CC EB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CC 01 00 35 04 06 00 E2 4E 81 0B 07 AE 3D 34 F6 24 47 FD 8A 16 [08:18:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 21 BF 47 00 EA 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CC 01 00 F4 03 04 00 84 97 21 67 B6 04 01 00 00 F6 7D 33 D5 DA EE D8 7E [08:18:19]CommunicateWithHost err = 0 [08:18:19]CheckOFDResponse [08:18:19]1017 (14) - 77093643461234 [08:18:19]1041 (16) - 0000000000871767 [08:18:19]1040 (4) - 117953 [08:18:19]1012 (4) - 30.10.2024 02:18 [08:18:19]1206 (1) - 0 [08:18:19]OFD Sender: Remove packet 117953 [08:18:19]ProducePacketName [08:18:19]name=ofd_packets/00117953 [08:18:19]NVStorageDeleteData [08:18:19]Write to MH i2c: 01 00 00 CB 0F DA [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 07 00 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 07 00 CB 0F 00 00 00 00 00 F0 0C DD [08:18:19]RasterBufferAndPrint [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]written 0, free lines is 3318 [08:18:19]MH_Cut [08:18:19]Write to MH i2c: D1 01 00 D2 0F 01 B3 [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 01 00 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 01 00 D2 0F 00 B2 [08:18:19]Write to MH i2c: 01 00 00 D3 0F E2 [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]OFD Sender: No OFD packet to send [08:18:19]*** Cut start [08:18:19]*** Purtial cut [08:18:19]*** Stage 1: CUTSNS_PIN = 1 [08:18:20]Read from MH i2c: 01 [08:18:20]MH_I2C_Read... [08:18:20]*** Stop cut motor [08:18:20]*** Cut end [08:18:20]Read from MH i2c: 01 07 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: 01 07 00 D3 0F 00 00 00 00 00 FF 0F F7 [08:18:20]process_action close_receipt done [08:18:20]requested_data is exist [08:18:20]produce_requested_data [08:18:20]requested_item fm.sn is exist - process it [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 11 00 00 [08:18:20]Write to MH i2c: E2 08 00 D4 0F 80 11 00 00 00 00 00 00 5D [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 D4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B4 [08:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:18:20]wFMCommunicate OK [08:18:20]requested_item fd.num is exist - process it [08:18:20]SAM_PROTO_GetFieldsCounters [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 13 00 00 [08:18:20]Write to MH i2c: E2 08 00 D5 0F 80 13 00 00 00 00 00 00 60 [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 D5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [08:18: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:20]wFMCommunicate OK [08:18:20]SAM_PROTO_GetFieldsCounters done [08:18:20]requested_item shift.num is exist - process it [08:18:20]requested_item shift.opened is exist - process it [08:18:20]req_shift_opened [08:18:20]FM_GetShiftState [08:18:20]SAM_PROTO_GetShiftState [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 13 01 00 [08:18:20]Write to MH i2c: E2 08 00 D6 0F 80 13 01 00 00 00 00 00 62 [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 0E 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 0E 00 D6 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3A [08:18:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:18:20]wFMCommunicate OK [08:18:20]SAM_PROTO_GetShiftState done [08:18:20]FM_GetShiftState done [08:18:20]req_shift_opened done [08:18:20]requested_item shift.open_date is exist - process it [08:18:20]req_shift_open_date [08:18:20]req_shift_open_date done [08:18:20]produce_requested_data done [08:18:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117953,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [08:18:20]process_action_free close_receipt [08:18:20]json_value_free [08:18:20]json_value_free done [08:18:20]process_json_proto returns [08:18:20]Send response to host [08:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117953,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [08:18:20]free response buf [08:18:20]execute_script done [08:18:20]execute_script returns [08:18:20]free content buf [08:18:20]Sock 9.Close socket [08:18:20]Sock 9.Thread stoped [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:05]accept exits with 8 [08:26:05]New connection [08:26:05]New thread 3067301220 created [08:26:05]Thread 3067157860 joined [08:26:05]Waiting for new connection... [08:26:05] Sock 8.Parse request [08:26:05]Sock 8.Check first char [08:26:05]Sock 8.First char is OK [08:26:05]request: POST /json_proto HTTP/1.0 [08:26:05]Method: POST [08:26:05]URL: /json_proto [08:26:05]Method is POST - this is cgi request [08:26:05]url: /json_proto [08:26:05]query_string will be loaded in cgi processing [08:26:05]execute_cgi json_proto POST (null) [08:26:05]execute_cgi path=json_proto method=POST [08:26:05]POST find Content-Length [08:26:05]Host: 172.17.96.67:8080 [08:26:05]Content-Length: 677 [08:26:05]Content-Type: application/json [08:26:05] [08:26:05]POST finish read [08:26:05]Found Content-Length = 677 [08:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:26:05]execute_script... [08:26: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)245745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:26:05]POST & json_proto [08:26:05]process_json_proto [08:26:05]json parsed OK: [08:26:05]protocol is kg_v1.0 [08:26:05]action value=close_receipt [08:26:05]process_action close_receipt [08:26:05]cmd_close_receipt [08:26:05]MH_GetDate [08:26:05]Write to MH i2c: F0 00 00 D7 0F D5 [08:26:05]Write i2c OK [08:26:05]MH_I2C_Read... [08:26:05]Read from MH i2c: F0 [08:26:05]MH_I2C_Read... [08:26:05]Read from MH i2c: F0 09 00 [08:26:05]MH_I2C_Read... [08:26:05]Read from MH i2c: F0 09 00 D7 0F 00 A1 ED 21 67 47 6C 1F 67 2D [08:26:05]GetLastDocTimeStamp 1730276300 [08:26:05]current date 1730276769 [08:26:05]FM_GetShiftState [08:26:05]SAM_PROTO_GetShiftState [08:26:05]wFMCommunicate request_size=4 [08:26:05]MH_SAM_APDU [08:26:05]CAPDU: 80 13 01 00 [08:26:05]Write to MH i2c: E2 08 00 D8 0F 80 13 01 00 00 00 00 00 64 [08:26:05]Write i2c OK [08:26:05]MH_I2C_Read... [08:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:05]Read from MH i2c: E2 [08:26:05]MH_I2C_Read... [08:26:05]Read from MH i2c: E2 0E 00 [08:26:05]MH_I2C_Read... [08:26:05]Read from MH i2c: E2 0E 00 D8 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3C [08:26:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:26:05]wFMCommunicate OK [08:26:05]SAM_PROTO_GetShiftState done [08:26:05]FM_GetShiftState done [08:26:05]opened in 1730246605 [08:26:05]opened+sec_in_day 1730333005 [08:26:05]quantity*price = 30038 [08:26:05]sum+1 = 30039 [08:26: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 14 30.10.2024 08:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117954 ФПД: 160536280538264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082609&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117954&fm=160536280538264&tin=02508201610067®Number=0000000000091782&sum=30000 [08:26:06]StoreToDocumentArchive [08:26:06]shift 545 fd 117954 [08:26:06]save to /storage/0545/doc_00117954 [08:26:06]save last doc name /storage/0545/doc_00117954 to /storage/kkm_last_doc_name [08:26:06]save OK [08:26:06]Clear old archive folders... [08:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:06]tlvbuf is 001485F0 [08:26:06]SAM_PROTO_ClearQueue [08:26:06]wFMCommunicate request_size=4 [08:26:06]MH_SAM_APDU [08:26:06]CAPDU: 80 09 00 00 [08:26:06]Write to MH i2c: E2 08 00 E5 0F 80 09 00 00 00 00 00 00 66 [08:26:06]Write i2c OK [08:26:06]MH_I2C_Read... [08:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:06]Read from MH i2c: E2 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 03 00 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [08:26:06]RAPDU: 90 00 [08:26:06]wFMCommunicate OK [08:26:06]SAM_PROTO_ClearQueue done [08:26:06]KKMCreateOFDPacket [08:26:06]OFDProtocolAddRootSTLVToBuf [08:26:06]FM_MakeSignedData [08:26:06]FM_MakeSignedData [08:26:06]SAM_PROTO_SignData [08:26:06]wFMCommunicate request_size=4 [08:26:06]MH_SAM_APDU [08:26:06]CAPDU: 80 0D 01 02 [08:26:06]Write to MH i2c: E2 08 00 E6 0F 80 0D 01 02 00 00 00 00 6E [08:26:06]Write i2c OK [08:26:06]MH_I2C_Read... [08:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:06]Read from MH i2c: E2 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 03 00 [08:26:06]MH_I2C_Read... [08:26:06]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [08:26:06]RAPDU: 90 00 [08:26:06]wFMCommunicate OK [08:26:06]wFMCommunicate request_size=255 [08:26:06]MH_SAM_APDU [08:26: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 32 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 0E 00 00 00 F4 03 04 00 A1 ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CC 01 00 35 04 06 00 92 [08:26:06]Write to MH i2c: E2 02 01 E7 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0E 00 00 00 F4 03 04 00 A1 ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CC 01 00 35 04 06 00 92 00 00 5C [08:26:06]Write i2c OK [08:26:06]MH_I2C_Read... [08:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:07]Read from MH i2c: E2 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 03 00 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [08:26:07]RAPDU: 90 00 [08:26:07]wFMCommunicate OK [08:26:07]wFMCommunicate request_size=10 [08:26:07]MH_SAM_APDU [08:26:07]CAPDU: 80 0D 02 02 05 01 C3 F9 9C 98 [08:26:07]Write to MH i2c: E2 0D 00 E8 0F 80 0D 02 02 05 00 01 C3 F9 9C 98 00 00 6C [08:26:07]Write i2c OK [08:26:07]MH_I2C_Read... [08:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:07]Read from MH i2c: E2 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 03 00 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [08:26:07]RAPDU: 90 00 [08:26:07]wFMCommunicate OK [08:26:07]wFMCommunicate request_size=4 [08:26:07]MH_SAM_APDU [08:26:07]CAPDU: 80 0D 03 02 [08:26:07]Write to MH i2c: E2 08 00 E9 0F 80 0D 03 02 00 00 00 00 73 [08:26:07]Write i2c OK [08:26:07]MH_I2C_Read... [08:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:07]Read from MH i2c: E2 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 0B 00 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 0B 00 E9 0F 00 B7 D7 0E 7E 2E 27 85 4C 90 00 B4 [08:26:07]RAPDU: B7 D7 0E 7E 2E 27 85 4C 90 00 [08:26:07]wFMCommunicate OK [08:26:07]SAM_PROTO_SignData done [08:26:07]FM_MakeSignedData done [08:26:07]CreateOFDProtocolMessage [08:26:07]wFMCommunicate request_size=4 [08:26:07]MH_SAM_APDU [08:26:07]CAPDU: 80 11 00 00 [08:26:07]Write to MH i2c: E2 08 00 EA 0F 80 11 00 00 00 00 00 00 73 [08:26:07]Write i2c OK [08:26:07]MH_I2C_Read... [08:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:07]Read from MH i2c: E2 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 17 00 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: E2 17 00 EA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CA [08:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:26:07]wFMCommunicate OK [08:26:07]CreateOFDProtocolMessage done [08:26:07]OFDSenderStorePacket 117954 [08:26:07]StoreOFDPacket docnum=117954 [08:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5B 1D 07 01 BA FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0E 00 00 00 F4 03 04 00 A1 ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CC 01 00 35 04 06 00 92 01 C3 F9 9C 98 B7 D7 0E 7E 2E 27 85 4C [08:26:07]CheckFolder [08:26:07]dirname=/storage/ofd_packets [08:26:07]CheckFolder done [08:26:07]ProducePacketName [08:26:07]name=ofd_packets/00117954 [08:26:07]NVStorageSaveData ofd_packets/00117954 [08:26:07]File name is /storage/ofd_packets/00117954 [08:26:07]Write 301 bytes [08:26:07]NVStorageSaveData done [08:26:07]OFDSenderStorePacket done [08:26:07]KKMCreateOFDPacket done [08:26:07]NVStorageSaveData kkm_last_timestamp [08:26:07]File name is /storage/kkm_last_timestamp [08:26:07]Write 4 bytes [08:26:07]NVStorageSaveData done [08:26:07]ExternCall_PrintAddStr [08:26:07]wPrintStart [08:26:07]Write to MH i2c: 01 00 00 EB 0F FA [08:26:07]Write i2c OK [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: 01 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: 01 07 00 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: 01 07 00 EB 0F 00 00 00 00 00 FF 0F 0F [08:26:07]RasterBufferAndPrint [08:26:07]line Счет N : (1)245745 [08:26:07]line ИНН: 02508201610067 [08:26:07]line Контрольно-Кассовый Чек [08:26:07]line ПРОДАЖА [08:26:07]line ТРК (МРК, ГНК) : 11 [08:26:07]line Товар: 2710124130 [08:26:07]line Аи-92-К-2 [08:26:07]line 4.490 * 66.90 [08:26:07]line = 300.38 [08:26:07]line НДС 12% НСП 1% [08:26:07]line > о реализуемом товаре [08:26:07]line ОКРУГЛЕНИЕ: -0.38 [08:26:07]line ИТОГО: 300.00 [08:26:07]line Внесено: 300.00 [08:26:07]line СДАЧА: 0.00 [08:26:07]line НСП 1% : 2.66 [08:26:07]line НДС 12% : 31.90 [08:26:07]line Наличными: 300.00 [08:26:07]line Безнал.: 0.00 [08:26:07]line Место: АЗС № 173 "Партнер Нефть" [08:26:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:26:07]line СНО: Общий режим [08:26:07]line Чек 14 30.10.2024 08:26 [08:26:07]line Смена: 545 ФФД: 1.0 [08:26:07]line ЗНМ: 0300000115 [08:26:07]line РНМ: 0000000000091782 [08:26:07]line Версия ККМ: 001 [08:26:07]line ФМ: 0000000000871767 [08:26:07]line ФД: 117954 [08:26:07]line ФПД: 160536280538264 [08:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082609&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117954&fm=160536280538264&tin=02508201610067®Number=0000000000091782&sum=30000 [08:26:07]OFD Sender: Processing packet 117954 [packets to send 77, broken 76] [08:26:07]ProducePacketName [08:26:07]name=ofd_packets/00117954 [08:26:07]OFD Sender: To server: pG, [08:26:07]CommunicateWithHost lk.salyk.kg:30040 [08:26:07]ConnectInit lk.salyk.kg [08:26:07]written 0, free lines is 4095 [08:26:07]Connected sock=10 [08:26: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 36 37 0F 01 00 00 5B 1D 07 01 BA FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0E 00 00 00 F4 03 04 00 A1 ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CC 01 00 35 04 06 00 92 01 C3 F9 9C 98 B7 D7 0E 7E 2E 27 85 4C [08:26: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 36 37 4F 00 00 00 5C 16 47 00 7B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CC 01 00 F4 03 04 00 59 99 21 67 B6 04 01 00 00 5C BB 4B 46 10 EF DF 17 [08:26:07]CommunicateWithHost err = 0 [08:26:07]CheckOFDResponse [08:26:07]1017 (14) - 77093643461234 [08:26:07]1041 (16) - 0000000000871767 [08:26:07]1040 (4) - 117954 [08:26:07]1012 (4) - 30.10.2024 02:26 [08:26:07]1206 (1) - 0 [08:26:07]OFD Sender: Remove packet 117954 [08:26:07]ProducePacketName [08:26:07]name=ofd_packets/00117954 [08:26:07]NVStorageDeleteData [08:26:07]Write to MH i2c: 01 00 00 15 10 25 [08:26:07]Write i2c OK [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: 01 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: 01 07 00 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 C8 0C 00 [08:26:07]RasterBufferAndPrint [08:26:07]line [08:26:07]line [08:26:07]line [08:26:07]line [08:26:07]line [08:26:07]written 0, free lines is 3278 [08:26:07]MH_Cut [08:26:07]Write to MH i2c: D1 01 00 1C 10 01 FE [08:26:07]Write i2c OK [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: D1 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: D1 01 00 [08:26:07]MH_I2C_Read... [08:26:07]Read from MH i2c: D1 01 00 1C 10 00 FD [08:26:07]Write to MH i2c: 01 00 00 1D 10 2D [08:26:07]Write i2c OK [08:26:07]MH_I2C_Read... [08:26:08]OFD Sender: No OFD packet to send [08:26:08]*** Cut start [08:26:08]*** Purtial cut [08:26:08]*** Stage 1: CUTSNS_PIN = 1 [08:26:09]Read from MH i2c: 01 [08:26:09]MH_I2C_Read... [08:26:09]*** Stop cut motor [08:26:09]*** Cut end [08:26:09]Read from MH i2c: 01 07 00 [08:26:09]MH_I2C_Read... [08:26:09]Read from MH i2c: 01 07 00 1D 10 00 00 00 00 00 FF 0F 42 [08:26:09]process_action close_receipt done [08:26:09]requested_data is exist [08:26:09]produce_requested_data [08:26:09]requested_item fm.sn is exist - process it [08:26:09]wFMCommunicate request_size=4 [08:26:09]MH_SAM_APDU [08:26:09]CAPDU: 80 11 00 00 [08:26:09]Write to MH i2c: E2 08 00 1E 10 80 11 00 00 00 00 00 00 A8 [08:26:09]Write i2c OK [08:26:09]MH_I2C_Read... [08:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:09]Read from MH i2c: E2 [08:26:09]MH_I2C_Read... [08:26:09]Read from MH i2c: E2 17 00 [08:26:09]MH_I2C_Read... [08:26:09]Read from MH i2c: E2 17 00 1E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FF [08:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:26:09]wFMCommunicate OK [08:26:09]requested_item fd.num is exist - process it [08:26:09]SAM_PROTO_GetFieldsCounters [08:26:09]wFMCommunicate request_size=4 [08:26:09]MH_SAM_APDU [08:26:09]CAPDU: 80 13 00 00 [08:26:09]Write to MH i2c: E2 08 00 1F 10 80 13 00 00 00 00 00 00 AB [08:26:09]Write i2c OK [08:26:09]MH_I2C_Read... [08:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:09]Read from MH i2c: E2 [08:26:09]MH_I2C_Read... [08:26:09]Read from MH i2c: E2 62 00 [08:26:09]MH_I2C_Read... [08:26:09]Read from MH i2c: E2 62 00 1F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [08:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:09]wFMCommunicate OK [08:26:09]SAM_PROTO_GetFieldsCounters done [08:26:09]requested_item shift.num is exist - process it [08:26:09]requested_item shift.opened is exist - process it [08:26:09]req_shift_opened [08:26:09]FM_GetShiftState [08:26:09]SAM_PROTO_GetShiftState [08:26:09]wFMCommunicate request_size=4 [08:26:09]MH_SAM_APDU [08:26:09]CAPDU: 80 13 01 00 [08:26:09]Write to MH i2c: E2 08 00 20 10 80 13 01 00 00 00 00 00 AD [08:26:09]Write i2c OK [08:26:09]MH_I2C_Read... [08:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:09]Read from MH i2c: E2 [08:26:09]MH_I2C_Read... [08:26:09]Read from MH i2c: E2 0E 00 [08:26:09]MH_I2C_Read... [08:26:09]Read from MH i2c: E2 0E 00 20 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 85 [08:26:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:26:09]wFMCommunicate OK [08:26:09]SAM_PROTO_GetShiftState done [08:26:09]FM_GetShiftState done [08:26:09]req_shift_opened done [08:26:09]requested_item shift.open_date is exist - process it [08:26:09]req_shift_open_date [08:26:09]req_shift_open_date done [08:26:09]produce_requested_data done [08:26:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117954,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [08:26:09]process_action_free close_receipt [08:26:09]json_value_free [08:26:09]json_value_free done [08:26:09]process_json_proto returns [08:26:09]Send response to host [08:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117954,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [08:26:09]free response buf [08:26:09]execute_script done [08:26:09]execute_script returns [08:26:09]free content buf [08:26:09]Sock 8.Close socket [08:26:09]Sock 8.Thread stoped [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:30]accept exits with 9 [08:26:30]New connection [08:26:30]New thread 3067157860 created [08:26:30]Thread 3067301220 joined [08:26:30]Waiting for new connection... [08:26:30] Sock 9.Parse request [08:26:30]Sock 9.Check first char [08:26:30]Sock 9.First char is OK [08:26:30]request: POST /json_proto HTTP/1.0 [08:26:30]Method: POST [08:26:30]URL: /json_proto [08:26:30]Method is POST - this is cgi request [08:26:30]url: /json_proto [08:26:30]query_string will be loaded in cgi processing [08:26:30]execute_cgi json_proto POST (null) [08:26:30]execute_cgi path=json_proto method=POST [08:26:30]POST find Content-Length [08:26:30]Host: 172.17.96.67:8080 [08:26:30]Content-Length: 677 [08:26:30]Content-Type: application/json [08:26:30] [08:26:30]POST finish read [08:26:30]Found Content-Length = 677 [08:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:26:30]execute_script... [08:26:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:26:30]POST & json_proto [08:26:30]process_json_proto [08:26:30]json parsed OK: [08:26:30]protocol is kg_v1.0 [08:26:30]action value=close_receipt [08:26:30]process_action close_receipt [08:26:30]cmd_close_receipt [08:26:30]MH_GetDate [08:26:30]Write to MH i2c: F0 00 00 21 10 20 [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 09 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 09 00 21 10 00 B9 ED 21 67 47 6C 1F 67 90 [08:26:30]GetLastDocTimeStamp 1730276769 [08:26:30]current date 1730276793 [08:26:30]FM_GetShiftState [08:26:30]SAM_PROTO_GetShiftState [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 13 01 00 [08:26:30]Write to MH i2c: E2 08 00 22 10 80 13 01 00 00 00 00 00 AF [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 22 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 87 [08:26:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:26:30]wFMCommunicate OK [08:26:30]SAM_PROTO_GetShiftState done [08:26:30]FM_GetShiftState done [08:26:30]opened in 1730246605 [08:26:30]opened+sec_in_day 1730333005 [08:26:30]quantity*price = 20003 [08:26:30]sum+1 = 20004 [08:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 15 30.10.2024 08:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117955 ФПД: 9315959337099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117955&fm=9315959337099&tin=02508201610067®Number=0000000000091782&sum=20000 [08:26:31]StoreToDocumentArchive [08:26:31]shift 545 fd 117955 [08:26:31]save to /storage/0545/doc_00117955 [08:26:31]save last doc name /storage/0545/doc_00117955 to /storage/kkm_last_doc_name [08:26:31]save OK [08:26:31]Clear old archive folders... [08:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:31]tlvbuf is 001484C0 [08:26:31]SAM_PROTO_ClearQueue [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 09 00 00 [08:26:31]Write to MH i2c: E2 08 00 2F 10 80 09 00 00 00 00 00 00 B1 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]SAM_PROTO_ClearQueue done [08:26:31]KKMCreateOFDPacket [08:26:31]OFDProtocolAddRootSTLVToBuf [08:26:31]FM_MakeSignedData [08:26:31]FM_MakeSignedData [08:26:31]SAM_PROTO_SignData [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 01 02 [08:26:31]Write to MH i2c: E2 08 00 30 10 80 0D 01 02 00 00 00 00 B9 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]wFMCommunicate request_size=255 [08:26:31]MH_SAM_APDU [08:26: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 32 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 0F 00 00 00 F4 03 04 00 BA ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CC 01 00 35 04 06 00 08 [08:26:31]Write to MH i2c: E2 02 01 31 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0F 00 00 00 F4 03 04 00 BA ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CC 01 00 35 04 06 00 08 00 00 06 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]wFMCommunicate request_size=10 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 02 02 05 79 0A 72 70 8B [08:26:31]Write to MH i2c: E2 0D 00 32 10 80 0D 02 02 05 00 79 0A 72 70 8B 00 00 B6 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 03 02 [08:26:31]Write to MH i2c: E2 08 00 33 10 80 0D 03 02 00 00 00 00 BE [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 0B 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 0B 00 33 10 00 56 3F E0 20 B6 15 84 F1 90 00 94 [08:26:31]RAPDU: 56 3F E0 20 B6 15 84 F1 90 00 [08:26:31]wFMCommunicate OK [08:26:31]SAM_PROTO_SignData done [08:26:31]FM_MakeSignedData done [08:26:31]CreateOFDProtocolMessage [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 11 00 00 [08:26:31]Write to MH i2c: E2 08 00 34 10 80 11 00 00 00 00 00 00 BE [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 17 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 17 00 34 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 15 [08:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:26:31]wFMCommunicate OK [08:26:31]CreateOFDProtocolMessage done [08:26:31]OFDSenderStorePacket 117955 [08:26:31]StoreOFDPacket docnum=117955 [08:26:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 67 99 07 01 76 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 BA ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CC 01 00 35 04 06 00 08 79 0A 72 70 8B 56 3F E0 20 B6 15 84 F1 [08:26:31]CheckFolder [08:26:31]dirname=/storage/ofd_packets [08:26:31]CheckFolder done [08:26:31]ProducePacketName [08:26:31]name=ofd_packets/00117955 [08:26:31]NVStorageSaveData ofd_packets/00117955 [08:26:31]File name is /storage/ofd_packets/00117955 [08:26:31]Write 301 bytes [08:26:31]NVStorageSaveData done [08:26:31]OFDSenderStorePacket done [08:26:31]KKMCreateOFDPacket done [08:26:31]NVStorageSaveData kkm_last_timestamp [08:26:31]File name is /storage/kkm_last_timestamp [08:26:31]Write 4 bytes [08:26:31]NVStorageSaveData done [08:26:31]ExternCall_PrintAddStr [08:26:31]wPrintStart [08:26:31]Write to MH i2c: 01 00 00 35 10 45 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: 01 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: 01 07 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: 01 07 00 35 10 00 00 00 00 00 FF 0F 5A [08:26:31]RasterBufferAndPrint [08:26:31]line Счет N : (1)245746 [08:26:31]line ИНН: 02508201610067 [08:26:31]line Контрольно-Кассовый Чек [08:26:31]line ПРОДАЖА [08:26:31]line ТРК (МРК, ГНК) : 21 [08:26:31]line Товар: 2710124130 [08:26:31]line Аи-92-К-2 [08:26:31]line 2.990 * 66.90 [08:26:31]line = 200.03 [08:26:31]line НДС 12% НСП 1% [08:26:31]line > о реализуемом товаре [08:26:31]line ОКРУГЛЕНИЕ: -0.03 [08:26:31]line ИТОГО: 200.00 [08:26:31]line Внесено: 200.00 [08:26:31]line СДАЧА: 0.00 [08:26:31]line НСП 1% : 1.77 [08:26:31]line НДС 12% : 21.24 [08:26:31]line Наличными: 200.00 [08:26:31]line Безнал.: 0.00 [08:26:31]line Место: АЗС № 173 "Партнер Нефть" [08:26:31]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:26:31]line СНО: Общий режим [08:26:31]line Чек 15 30.10.2024 08:26 [08:26:31]line Смена: 545 ФФД: 1.0 [08:26:31]line ЗНМ: 0300000115 [08:26:31]line РНМ: 0000000000091782 [08:26:31]line Версия ККМ: 001 [08:26:31]line ФМ: 0000000000871767 [08:26:31]line ФД: 117955 [08:26:31]line ФПД: 9315959337099 [08:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117955&fm=9315959337099&tin=02508201610067®Number=0000000000091782&sum=20000 [08:26:32]OFD Sender: Processing packet 117955 [packets to send 77, broken 76] [08:26:32]ProducePacketName [08:26:32]name=ofd_packets/00117955 [08:26:32]OFD Sender: To server: pG, [08:26:32]CommunicateWithHost lk.salyk.kg:30040 [08:26:32]ConnectInit lk.salyk.kg [08:26:32]written 0, free lines is 4095 [08:26:32]Connected sock=11 [08:26: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 36 37 0F 01 00 00 67 99 07 01 76 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 BA ED 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CC 01 00 35 04 06 00 08 79 0A 72 70 8B 56 3F E0 20 B6 15 84 F1 [08:26: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 36 37 4F 00 00 00 35 AD 47 00 32 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CC 01 00 F4 03 04 00 72 99 21 67 B6 04 01 00 00 FF 83 D1 AA 25 61 E7 C5 [08:26:32]CommunicateWithHost err = 0 [08:26:32]CheckOFDResponse [08:26:32]1017 (14) - 77093643461234 [08:26:32]1041 (16) - 0000000000871767 [08:26:32]1040 (4) - 117955 [08:26:32]1012 (4) - 30.10.2024 02:26 [08:26:32]1206 (1) - 0 [08:26:32]OFD Sender: Remove packet 117955 [08:26:32]ProducePacketName [08:26:32]name=ofd_packets/00117955 [08:26:32]NVStorageDeleteData [08:26:32]Write to MH i2c: 01 00 00 5F 10 6F [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 07 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 BE 0C 40 [08:26:32]RasterBufferAndPrint [08:26:32]line [08:26:32]line [08:26:32]line [08:26:32]line [08:26:32]line [08:26:32]written 0, free lines is 3269 [08:26:32]MH_Cut [08:26:32]Write to MH i2c: D1 01 00 66 10 01 48 [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: D1 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: D1 01 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: D1 01 00 66 10 00 47 [08:26:32]Write to MH i2c: 01 00 00 67 10 77 [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:33]OFD Sender: No OFD packet to send [08:26:33]*** Cut start [08:26:33]*** Purtial cut [08:26:33]*** Stage 1: CUTSNS_PIN = 1 [08:26:33]Read from MH i2c: 01 [08:26:33]MH_I2C_Read... [08:26:33]*** Stop cut motor [08:26:33]*** Cut end [08:26:33]Read from MH i2c: 01 07 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: 01 07 00 67 10 00 00 00 00 00 FF 0F 8C [08:26:33]process_action close_receipt done [08:26:33]requested_data is exist [08:26:33]produce_requested_data [08:26:33]requested_item fm.sn is exist - process it [08:26:33]wFMCommunicate request_size=4 [08:26:33]MH_SAM_APDU [08:26:33]CAPDU: 80 11 00 00 [08:26:33]Write to MH i2c: E2 08 00 68 10 80 11 00 00 00 00 00 00 F2 [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:33]Read from MH i2c: E2 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 17 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 17 00 68 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 49 [08:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:26:33]wFMCommunicate OK [08:26:33]requested_item fd.num is exist - process it [08:26:33]SAM_PROTO_GetFieldsCounters [08:26:33]wFMCommunicate request_size=4 [08:26:33]MH_SAM_APDU [08:26:33]CAPDU: 80 13 00 00 [08:26:33]Write to MH i2c: E2 08 00 69 10 80 13 00 00 00 00 00 00 F5 [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:34]Read from MH i2c: E2 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 62 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 62 00 69 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [08:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:34]wFMCommunicate OK [08:26:34]SAM_PROTO_GetFieldsCounters done [08:26:34]requested_item shift.num is exist - process it [08:26:34]requested_item shift.opened is exist - process it [08:26:34]req_shift_opened [08:26:34]FM_GetShiftState [08:26:34]SAM_PROTO_GetShiftState [08:26:34]wFMCommunicate request_size=4 [08:26:34]MH_SAM_APDU [08:26:34]CAPDU: 80 13 01 00 [08:26:34]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:34]Read from MH i2c: E2 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 0E 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CF [08:26:34]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:26:34]wFMCommunicate OK [08:26:34]SAM_PROTO_GetShiftState done [08:26:34]FM_GetShiftState done [08:26:34]req_shift_opened done [08:26:34]requested_item shift.open_date is exist - process it [08:26:34]req_shift_open_date [08:26:34]req_shift_open_date done [08:26:34]produce_requested_data done [08:26:34]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117955,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [08:26:34]process_action_free close_receipt [08:26:34]json_value_free [08:26:34]json_value_free done [08:26:34]process_json_proto returns [08:26:34]Send response to host [08:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117955,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [08:26:34]free response buf [08:26:34]execute_script done [08:26:34]execute_script returns [08:26:34]free content buf [08:26:34]Sock 9.Close socket [08:26:34]Sock 9.Thread stoped [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:52]accept exits with 8 [08:28:52]New connection [08:28:52]New thread 3067301220 created [08:28:52]Thread 3067157860 joined [08:28:52]Waiting for new connection... [08:28:52] Sock 8.Parse request [08:28:52]Sock 8.Check first char [08:28:52]Sock 8.First char is OK [08:28:52]request: POST /json_proto HTTP/1.0 [08:28:52]Method: POST [08:28:52]URL: /json_proto [08:28:52]Method is POST - this is cgi request [08:28:52]url: /json_proto [08:28:52]query_string will be loaded in cgi processing [08:28:52]execute_cgi json_proto POST (null) [08:28:52]execute_cgi path=json_proto method=POST [08:28:52]POST find Content-Length [08:28:52]Host: 172.17.96.67:8080 [08:28:52]Content-Length: 677 [08:28:52]Content-Type: application/json [08:28:52] [08:28:52]POST finish read [08:28:52]Found Content-Length = 677 [08:28:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:28:52]execute_script... [08:28: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)245747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:28:52]POST & json_proto [08:28:52]process_json_proto [08:28:52]json parsed OK: [08:28:52]protocol is kg_v1.0 [08:28:52]action value=close_receipt [08:28:52]process_action close_receipt [08:28:52]cmd_close_receipt [08:28:52]MH_GetDate [08:28:52]Write to MH i2c: F0 00 00 6B 10 6A [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: F0 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: F0 09 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: F0 09 00 6B 10 00 48 EE 21 67 47 6C 1F 67 6A [08:28:52]GetLastDocTimeStamp 1730276794 [08:28:52]current date 1730276936 [08:28:52]FM_GetShiftState [08:28:52]SAM_PROTO_GetShiftState [08:28:52]wFMCommunicate request_size=4 [08:28:52]MH_SAM_APDU [08:28:52]CAPDU: 80 13 01 00 [08:28:52]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D1 [08:28:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:28:52]wFMCommunicate OK [08:28:52]SAM_PROTO_GetShiftState done [08:28:52]FM_GetShiftState done [08:28:52]opened in 1730246605 [08:28:52]opened+sec_in_day 1730333005 [08:28:52]quantity*price = 25020 [08:28:52]sum+1 = 25022 [08:28:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 16 30.10.2024 08:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117956 ФПД: 268808370682078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082856&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117956&fm=268808370682078&tin=02508201610067®Number=0000000000091782&sum=25000 [08:28:53]StoreToDocumentArchive [08:28:53]shift 545 fd 117956 [08:28:53]save to /storage/0545/doc_00117956 [08:28:53]save last doc name /storage/0545/doc_00117956 to /storage/kkm_last_doc_name [08:28:53]save OK [08:28:53]Clear old archive folders... [08:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:53]tlvbuf is B6EFDA20 [08:28:53]SAM_PROTO_ClearQueue [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 09 00 00 [08:28:53]Write to MH i2c: E2 08 00 79 10 80 09 00 00 00 00 00 00 FB [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [08:28:53]RAPDU: 90 00 [08:28:53]wFMCommunicate OK [08:28:53]SAM_PROTO_ClearQueue done [08:28:53]KKMCreateOFDPacket [08:28:53]OFDProtocolAddRootSTLVToBuf [08:28:53]FM_MakeSignedData [08:28:53]FM_MakeSignedData [08:28:53]SAM_PROTO_SignData [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 0D 01 02 [08:28:53]Write to MH i2c: E2 08 00 7A 10 80 0D 01 02 00 00 00 00 03 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [08:28:53]RAPDU: 90 00 [08:28:53]wFMCommunicate OK [08:28:53]wFMCommunicate request_size=255 [08:28:53]MH_SAM_APDU [08:28: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 32 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 10 00 00 00 F4 03 04 00 48 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CC 01 00 35 04 06 00 F4 [08:28:53]Write to MH i2c: E2 02 01 7B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 10 00 00 00 F4 03 04 00 48 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CC 01 00 35 04 06 00 F4 00 00 E4 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [08:28:53]RAPDU: 90 00 [08:28:53]wFMCommunicate OK [08:28:53]wFMCommunicate request_size=10 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 0D 02 02 05 7A D3 72 78 DE [08:28:53]Write to MH i2c: E2 0D 00 7C 10 80 0D 02 02 05 00 7A D3 72 78 DE 00 00 25 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [08:28:53]RAPDU: 90 00 [08:28:53]wFMCommunicate OK [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 0D 03 02 [08:28:53]Write to MH i2c: E2 08 00 7D 10 80 0D 03 02 00 00 00 00 08 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:54]Read from MH i2c: E2 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 0B 00 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 0B 00 7D 10 00 A0 2F FC 03 41 DB 41 ED 90 00 21 [08:28:54]RAPDU: A0 2F FC 03 41 DB 41 ED 90 00 [08:28:54]wFMCommunicate OK [08:28:54]SAM_PROTO_SignData done [08:28:54]FM_MakeSignedData done [08:28:54]CreateOFDProtocolMessage [08:28:54]wFMCommunicate request_size=4 [08:28:54]MH_SAM_APDU [08:28:54]CAPDU: 80 11 00 00 [08:28:54]Write to MH i2c: E2 08 00 7E 10 80 11 00 00 00 00 00 00 08 [08:28:54]Write i2c OK [08:28:54]MH_I2C_Read... [08:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:54]Read from MH i2c: E2 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 17 00 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 17 00 7E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5F [08:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:28:54]wFMCommunicate OK [08:28:54]CreateOFDProtocolMessage done [08:28:54]OFDSenderStorePacket 117956 [08:28:54]StoreOFDPacket docnum=117956 [08:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E1 57 07 01 79 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 10 00 00 00 F4 03 04 00 48 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CC 01 00 35 04 06 00 F4 7A D3 72 78 DE A0 2F FC 03 41 DB 41 ED [08:28:54]CheckFolder [08:28:54]dirname=/storage/ofd_packets [08:28:54]CheckFolder done [08:28:54]ProducePacketName [08:28:54]name=ofd_packets/00117956 [08:28:54]NVStorageSaveData ofd_packets/00117956 [08:28:54]File name is /storage/ofd_packets/00117956 [08:28:54]Write 301 bytes [08:28:54]NVStorageSaveData done [08:28:54]OFDSenderStorePacket done [08:28:54]KKMCreateOFDPacket done [08:28:54]NVStorageSaveData kkm_last_timestamp [08:28:54]File name is /storage/kkm_last_timestamp [08:28:54]Write 4 bytes [08:28:54]NVStorageSaveData done [08:28:54]ExternCall_PrintAddStr [08:28:54]wPrintStart [08:28:54]Write to MH i2c: 01 00 00 7F 10 8F [08:28:54]OFD Sender: Processing packet 117956 [packets to send 77, broken 76] [08:28:54]ProducePacketName [08:28:54]name=ofd_packets/00117956 [08:28:54]OFD Sender: To server: pG, [08:28:54]CommunicateWithHost lk.salyk.kg:30040 [08:28:54]ConnectInit lk.salyk.kg [08:28:54]Write i2c OK [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: 01 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: 01 07 00 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [08:28:54]RasterBufferAndPrint [08:28:54]line Счет N : (1)245747 [08:28:54]line ИНН: 02508201610067 [08:28:54]line Контрольно-Кассовый Чек [08:28:54]line ПРОДАЖА [08:28:54]line ТРК (МРК, ГНК) : 21 [08:28:54]line Товар: 2710124130 [08:28:54]line Аи-92-К-2 [08:28:54]line 3.740 * 66.90 [08:28:54]line = 250.21 [08:28:54]line НДС 12% НСП 1% [08:28:54]line > о реализуемом товаре [08:28:54]line ОКРУГЛЕНИЕ: -0.21 [08:28:54]line ИТОГО: 250.00 [08:28:54]line Внесено: 250.00 [08:28:54]line СДАЧА: 0.00 [08:28:54]line НСП 1% : 2.21 [08:28:54]line НДС 12% : 26.57 [08:28:54]line Наличными: 250.00 [08:28:54]line Безнал.: 0.00 [08:28:54]line Место: АЗС № 173 "Партнер Нефть" [08:28:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:28:54]line СНО: Общий режим [08:28:54]line Чек 16 30.10.2024 08:28 [08:28:54]line Смена: 545 ФФД: 1.0 [08:28:54]line ЗНМ: 0300000115 [08:28:54]line РНМ: 0000000000091782 [08:28:54]line Версия ККМ: 001 [08:28:54]line ФМ: 0000000000871767 [08:28:54]line ФД: 117956 [08:28:54]line ФПД: 268808370682078 [08:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082856&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117956&fm=268808370682078&tin=02508201610067®Number=0000000000091782&sum=25000 [08:28:54]Connected sock=10 [08:28: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 36 37 0F 01 00 00 E1 57 07 01 79 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 10 00 00 00 F4 03 04 00 48 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CC 01 00 35 04 06 00 F4 7A D3 72 78 DE A0 2F FC 03 41 DB 41 ED [08:28:54]written 0, free lines is 4095 [08:28: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 36 37 4F 00 00 00 A6 37 47 00 BF 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 36 37 10 04 04 00 C4 CC 01 00 F4 03 04 00 00 9A 21 67 B6 04 01 00 00 04 45 9B 0F CE 71 35 CB [08:28:54]CommunicateWithHost err = 0 [08:28:54]CheckOFDResponse [08:28:54]1017 (14) - 77093643461234 [08:28:54]1041 (16) - 0000000000871767 [08:28:54]1040 (4) - 117956 [08:28:54]1012 (4) - 30.10.2024 02:29 [08:28:54]1206 (1) - 0 [08:28:54]OFD Sender: Remove packet 117956 [08:28:54]ProducePacketName [08:28:54]name=ofd_packets/00117956 [08:28:54]NVStorageDeleteData [08:28:54]Write to MH i2c: 01 00 00 A9 10 B9 [08:28:54]Write i2c OK [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: 01 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: 01 07 00 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 C1 0C 8D [08:28:54]RasterBufferAndPrint [08:28:54]line [08:28:54]line [08:28:54]line [08:28:54]line [08:28:54]line [08:28:54]written 0, free lines is 3273 [08:28:54]MH_Cut [08:28:54]Write to MH i2c: D1 01 00 B0 10 01 92 [08:28:54]Write i2c OK [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: D1 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: D1 01 00 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: D1 01 00 B0 10 00 91 [08:28:54]Write to MH i2c: 01 00 00 B1 10 C1 [08:28:54]Write i2c OK [08:28:54]MH_I2C_Read... [08:28:55]OFD Sender: No OFD packet to send [08:28:55]*** Cut start [08:28:55]*** Purtial cut [08:28:55]*** Stage 1: CUTSNS_PIN = 1 [08:28:56]Read from MH i2c: 01 [08:28:56]MH_I2C_Read... [08:28:56]*** Stop cut motor [08:28:56]*** Cut end [08:28:56]Read from MH i2c: 01 07 00 [08:28:56]MH_I2C_Read... [08:28:56]Read from MH i2c: 01 07 00 B1 10 00 00 00 00 00 FF 0F D6 [08:28:56]process_action close_receipt done [08:28:56]requested_data is exist [08:28:56]produce_requested_data [08:28:56]requested_item fm.sn is exist - process it [08:28:56]wFMCommunicate request_size=4 [08:28:56]MH_SAM_APDU [08:28:56]CAPDU: 80 11 00 00 [08:28:56]Write to MH i2c: E2 08 00 B2 10 80 11 00 00 00 00 00 00 3C [08:28:56]Write i2c OK [08:28:56]MH_I2C_Read... [08:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:56]Read from MH i2c: E2 [08:28:56]MH_I2C_Read... [08:28:56]Read from MH i2c: E2 17 00 [08:28:56]MH_I2C_Read... [08:28:56]Read from MH i2c: E2 17 00 B2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 93 [08:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:28:56]wFMCommunicate OK [08:28:56]requested_item fd.num is exist - process it [08:28:56]SAM_PROTO_GetFieldsCounters [08:28:56]wFMCommunicate request_size=4 [08:28:56]MH_SAM_APDU [08:28:56]CAPDU: 80 13 00 00 [08:28:56]Write to MH i2c: E2 08 00 B3 10 80 13 00 00 00 00 00 00 3F [08:28:56]Write i2c OK [08:28:56]MH_I2C_Read... [08:28:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:56]Read from MH i2c: E2 [08:28:56]MH_I2C_Read... [08:28:56]Read from MH i2c: E2 62 00 [08:28:56]MH_I2C_Read... [08:28:56]Read from MH i2c: E2 62 00 B3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [08:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:56]wFMCommunicate OK [08:28:56]SAM_PROTO_GetFieldsCounters done [08:28:56]requested_item shift.num is exist - process it [08:28:56]requested_item shift.opened is exist - process it [08:28:56]req_shift_opened [08:28:56]FM_GetShiftState [08:28:56]SAM_PROTO_GetShiftState [08:28:56]wFMCommunicate request_size=4 [08:28:56]MH_SAM_APDU [08:28:56]CAPDU: 80 13 01 00 [08:28:56]Write to MH i2c: E2 08 00 B4 10 80 13 01 00 00 00 00 00 41 [08:28:56]Write i2c OK [08:28:56]MH_I2C_Read... [08:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:56]Read from MH i2c: E2 [08:28:56]MH_I2C_Read... [08:28:56]Read from MH i2c: E2 0E 00 [08:28:56]MH_I2C_Read... [08:28:56]Read from MH i2c: E2 0E 00 B4 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 19 [08:28:56]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:28:56]wFMCommunicate OK [08:28:56]SAM_PROTO_GetShiftState done [08:28:56]FM_GetShiftState done [08:28:56]req_shift_opened done [08:28:56]requested_item shift.open_date is exist - process it [08:28:56]req_shift_open_date [08:28:56]req_shift_open_date done [08:28:56]produce_requested_data done [08:28:56]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117956,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [08:28:56]process_action_free close_receipt [08:28:56]json_value_free [08:28:56]json_value_free done [08:28:56]process_json_proto returns [08:28:56]Send response to host [08:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117956,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [08:28:56]free response buf [08:28:56]execute_script done [08:28:56]execute_script returns [08:28:56]free content buf [08:28:56]Sock 8.Close socket [08:28:56]Sock 8.Thread stoped [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:32]accept exits with 9 [08:31:32]New connection [08:31:32]New thread 3067157860 created [08:31:32]Thread 3067301220 joined [08:31:32]Waiting for new connection... [08:31:32] Sock 9.Parse request [08:31:32]Sock 9.Check first char [08:31:32]Sock 9.First char is OK [08:31:32]request: POST /json_proto HTTP/1.0 [08:31:32]Method: POST [08:31:32]URL: /json_proto [08:31:32]Method is POST - this is cgi request [08:31:32]url: /json_proto [08:31:32]query_string will be loaded in cgi processing [08:31:32]execute_cgi json_proto POST (null) [08:31:32]execute_cgi path=json_proto method=POST [08:31:32]POST find Content-Length [08:31:32]Host: 172.17.96.67:8080 [08:31:32]Content-Length: 677 [08:31:32]Content-Type: application/json [08:31:32] [08:31:32]POST finish read [08:31:32]Found Content-Length = 677 [08:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:31:32]execute_script... [08:31: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)245748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:31:32]POST & json_proto [08:31:32]process_json_proto [08:31:32]json parsed OK: [08:31:32]protocol is kg_v1.0 [08:31:32]action value=close_receipt [08:31:32]process_action close_receipt [08:31:32]cmd_close_receipt [08:31:32]MH_GetDate [08:31:32]Write to MH i2c: F0 00 00 B5 10 B4 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 09 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 09 00 B5 10 00 E8 EE 21 67 47 6C 1F 67 54 [08:31:32]GetLastDocTimeStamp 1730276936 [08:31:32]current date 1730277096 [08:31:32]FM_GetShiftState [08:31:32]SAM_PROTO_GetShiftState [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 13 01 00 [08:31:32]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1B [08:31:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:31:32]wFMCommunicate OK [08:31:32]SAM_PROTO_GetShiftState done [08:31:32]FM_GetShiftState done [08:31:32]opened in 1730246605 [08:31:32]opened+sec_in_day 1730333005 [08:31:32]quantity*price = 20003 [08:31:32]sum+1 = 20004 [08:31:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 17 30.10.2024 08:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117957 ФПД: 58372018128725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083136&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117957&fm=58372018128725&tin=02508201610067®Number=0000000000091782&sum=20000 [08:31:33]StoreToDocumentArchive [08:31:33]shift 545 fd 117957 [08:31:33]save to /storage/0545/doc_00117957 [08:31:33]save last doc name /storage/0545/doc_00117957 to /storage/kkm_last_doc_name [08:31:33]save OK [08:31:33]Clear old archive folders... [08:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:33]tlvbuf is 0013F930 [08:31:33]SAM_PROTO_ClearQueue [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 09 00 00 [08:31:33]Write to MH i2c: E2 08 00 C3 10 80 09 00 00 00 00 00 00 45 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_ClearQueue done [08:31:33]KKMCreateOFDPacket [08:31:33]OFDProtocolAddRootSTLVToBuf [08:31:33]FM_MakeSignedData [08:31:33]FM_MakeSignedData [08:31:33]SAM_PROTO_SignData [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 01 02 [08:31:33]Write to MH i2c: E2 08 00 C4 10 80 0D 01 02 00 00 00 00 4D [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=255 [08:31:33]MH_SAM_APDU [08:31: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 32 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 11 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CC 01 00 35 04 06 00 35 [08:31:33]Write to MH i2c: E2 02 01 C5 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CC 01 00 35 04 06 00 35 00 00 FA [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=10 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 02 02 05 16 CB 67 C7 55 [08:31:33]Write to MH i2c: E2 0D 00 C6 10 80 0D 02 02 05 00 16 CB 67 C7 55 00 00 BE [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [08:31:34]RAPDU: 90 00 [08:31:34]wFMCommunicate OK [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 0D 03 02 [08:31:34]Write to MH i2c: E2 08 00 C7 10 80 0D 03 02 00 00 00 00 52 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0B 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0B 00 C7 10 00 47 68 83 51 D0 A1 5F 0E 90 00 B4 [08:31:34]RAPDU: 47 68 83 51 D0 A1 5F 0E 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_SignData done [08:31:34]FM_MakeSignedData done [08:31:34]CreateOFDProtocolMessage [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 11 00 00 [08:31:34]Write to MH i2c: E2 08 00 C8 10 80 11 00 00 00 00 00 00 52 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 C8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A9 [08:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:31:34]wFMCommunicate OK [08:31:34]CreateOFDProtocolMessage done [08:31:34]OFDSenderStorePacket 117957 [08:31:34]StoreOFDPacket docnum=117957 [08:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8B AB 07 01 45 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 32 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 11 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CC 01 00 35 04 06 00 35 16 CB 67 C7 55 47 68 83 51 D0 A1 5F 0E [08:31:34]CheckFolder [08:31:34]dirname=/storage/ofd_packets [08:31:34]CheckFolder done [08:31:34]ProducePacketName [08:31:34]name=ofd_packets/00117957 [08:31:34]NVStorageSaveData ofd_packets/00117957 [08:31:34]File name is /storage/ofd_packets/00117957 [08:31:34]Write 301 bytes [08:31:34]NVStorageSaveData done [08:31:34]OFDSenderStorePacket done [08:31:34]KKMCreateOFDPacket done [08:31:34]NVStorageSaveData kkm_last_timestamp [08:31:34]File name is /storage/kkm_last_timestamp [08:31:34]Write 4 bytes [08:31:34]NVStorageSaveData done [08:31:34]ExternCall_PrintAddStr [08:31:34]wPrintStart [08:31:34]Write to MH i2c: 01 00 00 C9 10 D9 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [08:31:34]RasterBufferAndPrint [08:31:34]line Счет N : (1)245748 [08:31:34]line ИНН: 02508201610067 [08:31:34]line Контрольно-Кассовый Чек [08:31:34]line ПРОДАЖА [08:31:34]line ТРК (МРК, ГНК) : 11 [08:31:34]line Товар: 2710124130 [08:31:34]line Аи-92-К-2 [08:31:34]line 2.990 * 66.90 [08:31:34]line = 200.03 [08:31:34]line НДС 12% НСП 1% [08:31:34]line > о реализуемом товаре [08:31:34]line ОКРУГЛЕНИЕ: -0.03 [08:31:34]line ИТОГО: 200.00 [08:31:34]line Внесено: 200.00 [08:31:34]line СДАЧА: 0.00 [08:31:34]line НСП 1% : 1.77 [08:31:34]line НДС 12% : 21.24 [08:31:34]line Наличными: 200.00 [08:31:34]line Безнал.: 0.00 [08:31:34]line Место: АЗС № 173 "Партнер Нефть" [08:31:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:31:34]line СНО: Общий режим [08:31:34]line Чек 17 30.10.2024 08:31 [08:31:34]line Смена: 545 ФФД: 1.0 [08:31:34]line ЗНМ: 0300000115 [08:31:34]line РНМ: 0000000000091782 [08:31:34]line Версия ККМ: 001 [08:31:34]line ФМ: 0000000000871767 [08:31:34]line ФД: 117957 [08:31:34]line ФПД: 58372018128725 [08:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083136&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117957&fm=58372018128725&tin=02508201610067®Number=0000000000091782&sum=20000 [08:31:34]written 0, free lines is 4095 [08:31:34]OFD Sender: Processing packet 117957 [packets to send 77, broken 76] [08:31:34]ProducePacketName [08:31:34]name=ofd_packets/00117957 [08:31:34]OFD Sender: To server: pG, [08:31:34]CommunicateWithHost lk.salyk.kg:30040 [08:31:34]ConnectInit lk.salyk.kg [08:31:34]Connected sock=10 [08:31: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 36 37 0F 01 00 00 8B AB 07 01 45 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 32 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 11 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CC 01 00 35 04 06 00 35 16 CB 67 C7 55 47 68 83 51 D0 A1 5F 0E [08:31:34]Write to MH i2c: 01 00 00 F3 10 03 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 F3 10 00 00 00 00 00 B9 0C CF [08:31:34]RasterBufferAndPrint [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]written 0, free lines is 3262 [08:31:34]MH_Cut [08:31:34]Write to MH i2c: D1 01 00 FA 10 01 DC [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 01 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 01 00 FA 10 00 DB [08:31:34]Write to MH i2c: 01 00 00 FB 10 0B [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31: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 36 37 4F 00 00 00 70 6F 47 00 B8 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CC 01 00 F4 03 04 00 A0 9A 21 67 B6 04 01 00 00 DD FC EF 78 A2 C7 02 19 [08:31:34]CommunicateWithHost err = 0 [08:31:34]CheckOFDResponse [08:31:34]1017 (14) - 77093643461234 [08:31:34]1041 (16) - 0000000000871767 [08:31:34]1040 (4) - 117957 [08:31:34]1012 (4) - 30.10.2024 02:32 [08:31:34]1206 (1) - 0 [08:31:34]OFD Sender: Remove packet 117957 [08:31:34]ProducePacketName [08:31:34]name=ofd_packets/00117957 [08:31:34]NVStorageDeleteData [08:31:35]OFD Sender: No OFD packet to send [08:31:35]*** Cut start [08:31:35]*** Purtial cut [08:31:35]*** Stage 1: CUTSNS_PIN = 1 [08:31:35]Read from MH i2c: 01 [08:31:35]MH_I2C_Read... [08:31:35]*** Stop cut motor [08:31:35]*** Cut end [08:31:35]Read from MH i2c: 01 07 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [08:31:35]process_action close_receipt done [08:31:35]requested_data is exist [08:31:35]produce_requested_data [08:31:35]requested_item fm.sn is exist - process it [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 11 00 00 [08:31:35]Write to MH i2c: E2 08 00 FC 10 80 11 00 00 00 00 00 00 86 [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 17 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 17 00 FC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DD [08:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:31:35]wFMCommunicate OK [08:31:35]requested_item fd.num is exist - process it [08:31:35]SAM_PROTO_GetFieldsCounters [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 13 00 00 [08:31:35]Write to MH i2c: E2 08 00 FD 10 80 13 00 00 00 00 00 00 89 [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 62 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 62 00 FD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [08:31: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:35]wFMCommunicate OK [08:31:35]SAM_PROTO_GetFieldsCounters done [08:31:35]requested_item shift.num is exist - process it [08:31:35]requested_item shift.opened is exist - process it [08:31:35]req_shift_opened [08:31:35]FM_GetShiftState [08:31:35]SAM_PROTO_GetShiftState [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 13 01 00 [08:31:35]Write to MH i2c: E2 08 00 FE 10 80 13 01 00 00 00 00 00 8B [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 0E 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 0E 00 FE 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 63 [08:31:35]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:31:35]wFMCommunicate OK [08:31:35]SAM_PROTO_GetShiftState done [08:31:35]FM_GetShiftState done [08:31:35]req_shift_opened done [08:31:35]requested_item shift.open_date is exist - process it [08:31:35]req_shift_open_date [08:31:35]req_shift_open_date done [08:31:35]produce_requested_data done [08:31:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117957,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [08:31:35]process_action_free close_receipt [08:31:35]json_value_free [08:31:35]json_value_free done [08:31:35]process_json_proto returns [08:31:35]Send response to host [08:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117957,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [08:31:35]free response buf [08:31:35]execute_script done [08:31:35]execute_script returns [08:31:35]free content buf [08:31:35]Sock 9.Close socket [08:31:35]Sock 9.Thread stoped [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:21]accept exits with 8 [08:41:21]New connection [08:41:21]New thread 3067301220 created [08:41:21]Thread 3067157860 joined [08:41:21]Waiting for new connection... [08:41:21] Sock 8.Parse request [08:41:21]Sock 8.Check first char [08:41:21]Sock 8.First char is OK [08:41:21]request: POST /json_proto HTTP/1.0 [08:41:21]Method: POST [08:41:21]URL: /json_proto [08:41:21]Method is POST - this is cgi request [08:41:21]url: /json_proto [08:41:21]query_string will be loaded in cgi processing [08:41:21]execute_cgi json_proto POST (null) [08:41:21]execute_cgi path=json_proto method=POST [08:41:21]POST find Content-Length [08:41:21]Host: 172.17.96.67:8080 [08:41:21]Content-Length: 677 [08:41:21]Content-Type: application/json [08:41:21] [08:41:21]POST finish read [08:41:21]Found Content-Length = 677 [08:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:21]execute_script... [08:41: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)245749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:21]POST & json_proto [08:41:21]process_json_proto [08:41:21]json parsed OK: [08:41:21]protocol is kg_v1.0 [08:41:21]action value=close_receipt [08:41:21]process_action close_receipt [08:41:21]cmd_close_receipt [08:41:21]MH_GetDate [08:41:21]Write to MH i2c: F0 00 00 FF 10 FE [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: F0 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: F0 09 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: F0 09 00 FF 10 00 35 F1 21 67 47 6C 1F 67 EE [08:41:21]GetLastDocTimeStamp 1730277096 [08:41:21]current date 1730277685 [08:41:21]FM_GetShiftState [08:41:21]SAM_PROTO_GetShiftState [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 13 01 00 [08:41:21]Write to MH i2c: E2 08 00 00 11 80 13 01 00 00 00 00 00 8E [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0E 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0E 00 00 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 66 [08:41:21]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:41:21]wFMCommunicate OK [08:41:21]SAM_PROTO_GetShiftState done [08:41:21]FM_GetShiftState done [08:41:21]opened in 1730246605 [08:41:21]opened+sec_in_day 1730333005 [08:41:21]quantity*price = 26024 [08:41:21]sum+1 = 26025 [08:41:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 18 30.10.2024 08:41 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117958 ФПД: 269274342759655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084125&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117958&fm=269274342759655&tin=02508201610067®Number=0000000000091782&sum=26000 [08:41:22]StoreToDocumentArchive [08:41:22]shift 545 fd 117958 [08:41:22]save to /storage/0545/doc_00117958 [08:41:22]save last doc name /storage/0545/doc_00117958 to /storage/kkm_last_doc_name [08:41:22]save OK [08:41:22]Clear old archive folders... [08:41:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:22]tlvbuf is 001251A0 [08:41:22]SAM_PROTO_ClearQueue [08:41:22]wFMCommunicate request_size=4 [08:41:22]MH_SAM_APDU [08:41:22]CAPDU: 80 09 00 00 [08:41:22]Write to MH i2c: E2 08 00 0D 11 80 09 00 00 00 00 00 00 90 [08:41:22]Write i2c OK [08:41:22]MH_I2C_Read... [08:41:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [08:41:23]RAPDU: 90 00 [08:41:23]wFMCommunicate OK [08:41:23]SAM_PROTO_ClearQueue done [08:41:23]KKMCreateOFDPacket [08:41:23]OFDProtocolAddRootSTLVToBuf [08:41:23]FM_MakeSignedData [08:41:23]FM_MakeSignedData [08:41:23]SAM_PROTO_SignData [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 0D 01 02 [08:41:23]Write to MH i2c: E2 08 00 0E 11 80 0D 01 02 00 00 00 00 98 [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [08:41:23]RAPDU: 90 00 [08:41:23]wFMCommunicate OK [08:41:23]wFMCommunicate request_size=255 [08:41:23]MH_SAM_APDU [08:41: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 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CC 01 00 35 04 06 00 F4 [08:41:23]Write to MH i2c: E2 02 01 0F 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CC 01 00 35 04 06 00 F4 00 00 3F [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [08:41:23]RAPDU: 90 00 [08:41:23]wFMCommunicate OK [08:41:23]wFMCommunicate request_size=10 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 0D 02 02 05 E7 51 8C 1C E7 [08:41:23]Write to MH i2c: E2 0D 00 10 11 80 0D 02 02 05 00 E7 51 8C 1C E7 00 00 6C [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [08:41:23]RAPDU: 90 00 [08:41:23]wFMCommunicate OK [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 0D 03 02 [08:41:23]Write to MH i2c: E2 08 00 11 11 80 0D 03 02 00 00 00 00 9D [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 0B 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 0B 00 11 11 00 32 53 1F 5D 0A 9B 6A 03 90 00 B1 [08:41:23]RAPDU: 32 53 1F 5D 0A 9B 6A 03 90 00 [08:41:23]wFMCommunicate OK [08:41:23]SAM_PROTO_SignData done [08:41:23]FM_MakeSignedData done [08:41:23]CreateOFDProtocolMessage [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 11 00 00 [08:41:23]Write to MH i2c: E2 08 00 12 11 80 11 00 00 00 00 00 00 9D [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 17 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 17 00 12 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F4 [08:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:41:23]wFMCommunicate OK [08:41:23]CreateOFDProtocolMessage done [08:41:23]OFDSenderStorePacket 117958 [08:41:23]StoreOFDPacket docnum=117958 [08:41:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 00 E5 07 01 DF 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 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CC 01 00 35 04 06 00 F4 E7 51 8C 1C E7 32 53 1F 5D 0A 9B 6A 03 [08:41:23]CheckFolder [08:41:23]dirname=/storage/ofd_packets [08:41:23]CheckFolder done [08:41:23]ProducePacketName [08:41:23]name=ofd_packets/00117958 [08:41:23]NVStorageSaveData ofd_packets/00117958 [08:41:23]File name is /storage/ofd_packets/00117958 [08:41:23]Write 301 bytes [08:41:23]NVStorageSaveData done [08:41:23]OFDSenderStorePacket done [08:41:23]KKMCreateOFDPacket done [08:41:23]NVStorageSaveData kkm_last_timestamp [08:41:23]File name is /storage/kkm_last_timestamp [08:41:23]Write 4 bytes [08:41:23]NVStorageSaveData done [08:41:23]ExternCall_PrintAddStr [08:41:23]wPrintStart [08:41:23]Write to MH i2c: 01 00 00 13 11 24 [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: 01 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: 01 07 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: 01 07 00 13 11 00 00 00 00 00 FF 0F 39 [08:41:23]RasterBufferAndPrint [08:41:23]line Счет N : (1)245749 [08:41:23]line ИНН: 02508201610067 [08:41:23]line Контрольно-Кассовый Чек [08:41:23]line ПРОДАЖА [08:41:23]line ТРК (МРК, ГНК) : 21 [08:41:23]line Товар: 2710124130 [08:41:23]line Аи-92-К-2 [08:41:23]line 3.890 * 66.90 [08:41:23]line = 260.24 [08:41:23]line НДС 12% НСП 1% [08:41:23]line > о реализуемом товаре [08:41:23]line ОКРУГЛЕНИЕ: -0.24 [08:41:23]line ИТОГО: 260.00 [08:41:23]line Внесено: 260.00 [08:41:23]line СДАЧА: 0.00 [08:41:23]line НСП 1% : 2.30 [08:41:23]line НДС 12% : 27.64 [08:41:23]line Наличными: 260.00 [08:41:23]line Безнал.: 0.00 [08:41:23]line Место: АЗС № 173 "Партнер Нефть" [08:41:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:41:23]line СНО: Общий режим [08:41:23]line Чек 18 30.10.2024 08:41 [08:41:23]line Смена: 545 ФФД: 1.0 [08:41:23]line ЗНМ: 0300000115 [08:41:23]line РНМ: 0000000000091782 [08:41:23]line Версия ККМ: 001 [08:41:23]line ФМ: 0000000000871767 [08:41:23]line ФД: 117958 [08:41:23]line ФПД: 269274342759655 [08:41:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084125&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117958&fm=269274342759655&tin=02508201610067®Number=0000000000091782&sum=26000 [08:41:23]OFD Sender: Processing packet 117958 [packets to send 77, broken 76] [08:41:23]ProducePacketName [08:41:23]name=ofd_packets/00117958 [08:41:23]OFD Sender: To server: pG, [08:41:23]CommunicateWithHost lk.salyk.kg:30040 [08:41:23]ConnectInit lk.salyk.kg [08:41:23]written 0, free lines is 4095 [08:41:23]Connected sock=10 [08:41:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 00 E5 07 01 DF 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 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CC 01 00 35 04 06 00 F4 E7 51 8C 1C E7 32 53 1F 5D 0A 9B 6A 03 [08:41: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 36 37 4F 00 00 00 61 48 47 00 BA 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 36 37 10 04 04 00 C6 CC 01 00 F4 03 04 00 ED 9C 21 67 B6 04 01 00 00 92 0B 84 95 2F B9 B8 77 [08:41:24]CommunicateWithHost err = 0 [08:41:24]CheckOFDResponse [08:41:24]1017 (14) - 77093643461234 [08:41:24]1041 (16) - 0000000000871767 [08:41:24]1040 (4) - 117958 [08:41:24]1012 (4) - 30.10.2024 02:41 [08:41:24]1206 (1) - 0 [08:41:24]OFD Sender: Remove packet 117958 [08:41:24]ProducePacketName [08:41:24]name=ofd_packets/00117958 [08:41:24]NVStorageDeleteData [08:41:24]Write to MH i2c: 01 00 00 3D 11 4E [08:41:24]Write i2c OK [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: 01 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: 01 07 00 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: 01 07 00 3D 11 00 00 00 00 00 B7 0C 18 [08:41:24]RasterBufferAndPrint [08:41:24]line [08:41:24]line [08:41:24]line [08:41:24]line [08:41:24]line [08:41:24]written 0, free lines is 3262 [08:41:24]MH_Cut [08:41:24]Write to MH i2c: D1 01 00 44 11 01 27 [08:41:24]Write i2c OK [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: D1 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: D1 01 00 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: D1 01 00 44 11 00 26 [08:41:24]Write to MH i2c: 01 00 00 45 11 56 [08:41:24]Write i2c OK [08:41:24]MH_I2C_Read... [08:41:24]OFD Sender: No OFD packet to send [08:41:25]*** Cut start [08:41:25]*** Purtial cut [08:41:25]*** Stage 1: CUTSNS_PIN = 1 [08:41:25]Read from MH i2c: 01 [08:41:25]MH_I2C_Read... [08:41:25]*** Stop cut motor [08:41:25]*** Cut end [08:41:25]Read from MH i2c: 01 07 00 [08:41:25]MH_I2C_Read... [08:41:25]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 FF 0F 6B [08:41:25]process_action close_receipt done [08:41:25]requested_data is exist [08:41:25]produce_requested_data [08:41:25]requested_item fm.sn is exist - process it [08:41:25]wFMCommunicate request_size=4 [08:41:25]MH_SAM_APDU [08:41:25]CAPDU: 80 11 00 00 [08:41:25]Write to MH i2c: E2 08 00 46 11 80 11 00 00 00 00 00 00 D1 [08:41:25]Write i2c OK [08:41:25]MH_I2C_Read... [08:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:25]Read from MH i2c: E2 [08:41:25]MH_I2C_Read... [08:41:25]Read from MH i2c: E2 17 00 [08:41:25]MH_I2C_Read... [08:41:25]Read from MH i2c: E2 17 00 46 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 28 [08:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:41:25]wFMCommunicate OK [08:41:25]requested_item fd.num is exist - process it [08:41:25]SAM_PROTO_GetFieldsCounters [08:41:25]wFMCommunicate request_size=4 [08:41:25]MH_SAM_APDU [08:41:25]CAPDU: 80 13 00 00 [08:41:25]Write to MH i2c: E2 08 00 47 11 80 13 00 00 00 00 00 00 D4 [08:41:25]Write i2c OK [08:41:25]MH_I2C_Read... [08:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:25]Read from MH i2c: E2 [08:41:25]MH_I2C_Read... [08:41:25]Read from MH i2c: E2 62 00 [08:41:25]MH_I2C_Read... [08:41:25]Read from MH i2c: E2 62 00 47 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [08:41: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:25]wFMCommunicate OK [08:41:25]SAM_PROTO_GetFieldsCounters done [08:41:25]requested_item shift.num is exist - process it [08:41:25]requested_item shift.opened is exist - process it [08:41:25]req_shift_opened [08:41:25]FM_GetShiftState [08:41:25]SAM_PROTO_GetShiftState [08:41:25]wFMCommunicate request_size=4 [08:41:25]MH_SAM_APDU [08:41:25]CAPDU: 80 13 01 00 [08:41:25]Write to MH i2c: E2 08 00 48 11 80 13 01 00 00 00 00 00 D6 [08:41:25]Write i2c OK [08:41:25]MH_I2C_Read... [08:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:25]Read from MH i2c: E2 [08:41:25]MH_I2C_Read... [08:41:25]Read from MH i2c: E2 0E 00 [08:41:25]MH_I2C_Read... [08:41:25]Read from MH i2c: E2 0E 00 48 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AE [08:41:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:41:25]wFMCommunicate OK [08:41:25]SAM_PROTO_GetShiftState done [08:41:25]FM_GetShiftState done [08:41:25]req_shift_opened done [08:41:25]requested_item shift.open_date is exist - process it [08:41:25]req_shift_open_date [08:41:25]req_shift_open_date done [08:41:25]produce_requested_data done [08:41:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117958,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [08:41:25]process_action_free close_receipt [08:41:25]json_value_free [08:41:25]json_value_free done [08:41:25]process_json_proto returns [08:41:25]Send response to host [08:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117958,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [08:41:25]free response buf [08:41:25]execute_script done [08:41:25]execute_script returns [08:41:25]free content buf [08:41:25]Sock 8.Close socket [08:41:25]Sock 8.Thread stoped [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:28]accept exits with 9 [08:42:28]New connection [08:42:28]New thread 3067157860 created [08:42:28]Thread 3067301220 joined [08:42:28]Waiting for new connection... [08:42:28] Sock 9.Parse request [08:42:28]Sock 9.Check first char [08:42:28]Sock 9.First char is OK [08:42:28]request: POST /json_proto HTTP/1.0 [08:42:28]Method: POST [08:42:28]URL: /json_proto [08:42:28]Method is POST - this is cgi request [08:42:28]url: /json_proto [08:42:28]query_string will be loaded in cgi processing [08:42:28]execute_cgi json_proto POST (null) [08:42:28]execute_cgi path=json_proto method=POST [08:42:28]POST find Content-Length [08:42:28]Host: 172.17.96.67:8080 [08:42:28]Content-Length: 677 [08:42:28]Content-Type: application/json [08:42:28] [08:42:28]POST finish read [08:42:28]Found Content-Length = 677 [08:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:42:28]execute_script... [08:42: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)245750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:42:28]POST & json_proto [08:42:28]process_json_proto [08:42:28]json parsed OK: [08:42:28]protocol is kg_v1.0 [08:42:28]action value=close_receipt [08:42:28]process_action close_receipt [08:42:28]cmd_close_receipt [08:42:28]MH_GetDate [08:42:28]Write to MH i2c: F0 00 00 49 11 49 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: F0 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: F0 09 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: F0 09 00 49 11 00 78 F1 21 67 47 6C 1F 67 7C [08:42:28]GetLastDocTimeStamp 1730277685 [08:42:28]current date 1730277752 [08:42:28]FM_GetShiftState [08:42:28]SAM_PROTO_GetShiftState [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 13 01 00 [08:42:28]Write to MH i2c: E2 08 00 4A 11 80 13 01 00 00 00 00 00 D8 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 0E 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 0E 00 4A 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B0 [08:42:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:42:28]wFMCommunicate OK [08:42:28]SAM_PROTO_GetShiftState done [08:42:28]FM_GetShiftState done [08:42:28]opened in 1730246605 [08:42:28]opened+sec_in_day 1730333005 [08:42:28]quantity*price = 30038 [08:42:28]sum+1 = 30039 [08:42: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 19 30.10.2024 08:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117959 ФПД: 43886552005860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084232&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117959&fm=43886552005860&tin=02508201610067®Number=0000000000091782&sum=30000 [08:42:29]StoreToDocumentArchive [08:42:29]shift 545 fd 117959 [08:42:29]save to /storage/0545/doc_00117959 [08:42:29]save last doc name /storage/0545/doc_00117959 to /storage/kkm_last_doc_name [08:42:29]save OK [08:42:29]Clear old archive folders... [08:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:29]tlvbuf is 001244E0 [08:42:29]SAM_PROTO_ClearQueue [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 09 00 00 [08:42:29]Write to MH i2c: E2 08 00 57 11 80 09 00 00 00 00 00 00 DA [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [08:42:29]RAPDU: 90 00 [08:42:29]wFMCommunicate OK [08:42:29]SAM_PROTO_ClearQueue done [08:42:29]KKMCreateOFDPacket [08:42:29]OFDProtocolAddRootSTLVToBuf [08:42:29]FM_MakeSignedData [08:42:29]FM_MakeSignedData [08:42:29]SAM_PROTO_SignData [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 0D 01 02 [08:42:29]Write to MH i2c: E2 08 00 58 11 80 0D 01 02 00 00 00 00 E2 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 03 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [08:42:30]RAPDU: 90 00 [08:42:30]wFMCommunicate OK [08:42:30]wFMCommunicate request_size=255 [08:42:30]MH_SAM_APDU [08:42: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 32 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 13 00 00 00 F4 03 04 00 78 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CC 01 00 35 04 06 00 27 [08:42:30]Write to MH i2c: E2 02 01 59 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 78 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CC 01 00 35 04 06 00 27 00 00 4A [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 03 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [08:42:30]RAPDU: 90 00 [08:42:30]wFMCommunicate OK [08:42:30]wFMCommunicate request_size=10 [08:42:30]MH_SAM_APDU [08:42:30]CAPDU: 80 0D 02 02 05 EA 22 57 BC E4 [08:42:30]Write to MH i2c: E2 0D 00 5A 11 80 0D 02 02 05 00 EA 22 57 BC E4 00 00 F2 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 03 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [08:42:30]RAPDU: 90 00 [08:42:30]wFMCommunicate OK [08:42:30]wFMCommunicate request_size=4 [08:42:30]MH_SAM_APDU [08:42:30]CAPDU: 80 0D 03 02 [08:42:30]Write to MH i2c: E2 08 00 5B 11 80 0D 03 02 00 00 00 00 E7 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 0B 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 0B 00 5B 11 00 D6 84 12 F2 9E 8F D4 D8 90 00 1F [08:42:30]RAPDU: D6 84 12 F2 9E 8F D4 D8 90 00 [08:42:30]wFMCommunicate OK [08:42:30]SAM_PROTO_SignData done [08:42:30]FM_MakeSignedData done [08:42:30]CreateOFDProtocolMessage [08:42:30]wFMCommunicate request_size=4 [08:42:30]MH_SAM_APDU [08:42:30]CAPDU: 80 11 00 00 [08:42:30]Write to MH i2c: E2 08 00 5C 11 80 11 00 00 00 00 00 00 E7 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 17 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 17 00 5C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3E [08:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:42:30]wFMCommunicate OK [08:42:30]CreateOFDProtocolMessage done [08:42:30]OFDSenderStorePacket 117959 [08:42:30]StoreOFDPacket docnum=117959 [08:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7A 48 07 01 6C 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 13 00 00 00 F4 03 04 00 78 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CC 01 00 35 04 06 00 27 EA 22 57 BC E4 D6 84 12 F2 9E 8F D4 D8 [08:42:30]CheckFolder [08:42:30]dirname=/storage/ofd_packets [08:42:30]CheckFolder done [08:42:30]ProducePacketName [08:42:30]name=ofd_packets/00117959 [08:42:30]NVStorageSaveData ofd_packets/00117959 [08:42:30]File name is /storage/ofd_packets/00117959 [08:42:30]Write 301 bytes [08:42:30]NVStorageSaveData done [08:42:30]OFDSenderStorePacket done [08:42:30]KKMCreateOFDPacket done [08:42:30]NVStorageSaveData kkm_last_timestamp [08:42:30]File name is /storage/kkm_last_timestamp [08:42:30]Write 4 bytes [08:42:30]NVStorageSaveData done [08:42:30]ExternCall_PrintAddStr [08:42:30]wPrintStart [08:42:30]Write to MH i2c: 01 00 00 5D 11 6E [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 5D 11 00 00 00 00 00 FF 0F 83 [08:42:30]RasterBufferAndPrint [08:42:30]line Счет N : (1)245750 [08:42:30]line ИНН: 02508201610067 [08:42:30]line Контрольно-Кассовый Чек [08:42:30]line ПРОДАЖА [08:42:30]line ТРК (МРК, ГНК) : 11 [08:42:30]line Товар: 2710124130 [08:42:30]line Аи-92-К-2 [08:42:30]line 4.490 * 66.90 [08:42:30]line = 300.38 [08:42:30]line НДС 12% НСП 1% [08:42:30]line > о реализуемом товаре [08:42:30]line ОКРУГЛЕНИЕ: -0.38 [08:42:30]line ИТОГО: 300.00 [08:42:30]line Внесено: 300.00 [08:42:30]line СДАЧА: 0.00 [08:42:30]line НСП 1% : 2.66 [08:42:30]line НДС 12% : 31.90 [08:42:30]line Наличными: 300.00 [08:42:30]line Безнал.: 0.00 [08:42:30]line Место: АЗС № 173 "Партнер Нефть" [08:42:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [08:42:30]line СНО: Общий режим [08:42:30]line Чек 19 30.10.2024 08:42 [08:42:30]line Смена: 545 ФФД: 1.0 [08:42:30]line ЗНМ: 0300000115 [08:42:30]line РНМ: 0000000000091782 [08:42:30]line Версия ККМ: 001 [08:42:30]line ФМ: 0000000000871767 [08:42:30]line ФД: 117959 [08:42:30]line ФПД: 43886552005860 [08:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084232&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117959&fm=43886552005860&tin=02508201610067®Number=0000000000091782&sum=30000 [08:42:30]written 0, free lines is 4095 [08:42:30]OFD Sender: Processing packet 117959 [packets to send 77, broken 76] [08:42:30]ProducePacketName [08:42:30]name=ofd_packets/00117959 [08:42:30]OFD Sender: To server: pG, [08:42:30]CommunicateWithHost lk.salyk.kg:30040 [08:42:30]ConnectInit lk.salyk.kg [08:42:30]Connected sock=10 [08:42: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 36 37 0F 01 00 00 7A 48 07 01 6C 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 13 00 00 00 F4 03 04 00 78 F1 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CC 01 00 35 04 06 00 27 EA 22 57 BC E4 D6 84 12 F2 9E 8F D4 D8 [08:42: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 36 37 4F 00 00 00 1F A9 47 00 2E F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CC 01 00 F4 03 04 00 30 9D 21 67 B6 04 01 00 00 0C 09 24 1A 56 4C A2 7A [08:42:30]CommunicateWithHost err = 0 [08:42:30]CheckOFDResponse [08:42:30]1017 (14) - 77093643461234 [08:42:30]1041 (16) - 0000000000871767 [08:42:30]1040 (4) - 117959 [08:42:30]1012 (4) - 30.10.2024 02:42 [08:42:30]1206 (1) - 0 [08:42:30]OFD Sender: Remove packet 117959 [08:42:30]ProducePacketName [08:42:30]name=ofd_packets/00117959 [08:42:30]NVStorageDeleteData [08:42:30]Write to MH i2c: 01 00 00 87 11 98 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 B9 0C 64 [08:42:30]RasterBufferAndPrint [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]written 0, free lines is 3264 [08:42:30]MH_Cut [08:42:30]Write to MH i2c: D1 01 00 8E 11 01 71 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: D1 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: D1 01 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: D1 01 00 8E 11 00 70 [08:42:30]Write to MH i2c: 01 00 00 8F 11 A0 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:31]OFD Sender: No OFD packet to send [08:42:31]*** Cut start [08:42:31]*** Purtial cut [08:42:31]*** Stage 1: CUTSNS_PIN = 1 [08:42:32]Read from MH i2c: 01 [08:42:32]MH_I2C_Read... [08:42:32]*** Stop cut motor [08:42:32]*** Cut end [08:42:32]Read from MH i2c: 01 07 00 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [08:42:32]process_action close_receipt done [08:42:32]requested_data is exist [08:42:32]produce_requested_data [08:42:32]requested_item fm.sn is exist - process it [08:42:32]wFMCommunicate request_size=4 [08:42:32]MH_SAM_APDU [08:42:32]CAPDU: 80 11 00 00 [08:42:32]Write to MH i2c: E2 08 00 90 11 80 11 00 00 00 00 00 00 1B [08:42:32]Write i2c OK [08:42:32]MH_I2C_Read... [08:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:32]Read from MH i2c: E2 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: E2 17 00 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: E2 17 00 90 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 72 [08:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [08:42:32]wFMCommunicate OK [08:42:32]requested_item fd.num is exist - process it [08:42:32]SAM_PROTO_GetFieldsCounters [08:42:32]wFMCommunicate request_size=4 [08:42:32]MH_SAM_APDU [08:42:32]CAPDU: 80 13 00 00 [08:42:32]Write to MH i2c: E2 08 00 91 11 80 13 00 00 00 00 00 00 1E [08:42:32]Write i2c OK [08:42:32]MH_I2C_Read... [08:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:32]Read from MH i2c: E2 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: E2 62 00 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: E2 62 00 91 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [08:42: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:32]wFMCommunicate OK [08:42:32]SAM_PROTO_GetFieldsCounters done [08:42:32]requested_item shift.num is exist - process it [08:42:32]requested_item shift.opened is exist - process it [08:42:32]req_shift_opened [08:42:32]FM_GetShiftState [08:42:32]SAM_PROTO_GetShiftState [08:42:32]wFMCommunicate request_size=4 [08:42:32]MH_SAM_APDU [08:42:32]CAPDU: 80 13 01 00 [08:42:32]Write to MH i2c: E2 08 00 92 11 80 13 01 00 00 00 00 00 20 [08:42:32]Write i2c OK [08:42:32]MH_I2C_Read... [08:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:32]Read from MH i2c: E2 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: E2 0E 00 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: E2 0E 00 92 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F8 [08:42:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [08:42:32]wFMCommunicate OK [08:42:32]SAM_PROTO_GetShiftState done [08:42:32]FM_GetShiftState done [08:42:32]req_shift_opened done [08:42:32]requested_item shift.open_date is exist - process it [08:42:32]req_shift_open_date [08:42:32]req_shift_open_date done [08:42:32]produce_requested_data done [08:42:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117959,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [08:42:32]process_action_free close_receipt [08:42:32]json_value_free [08:42:32]json_value_free done [08:42:32]process_json_proto returns [08:42:32]Send response to host [08:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117959,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [08:42:32]free response buf [08:42:32]execute_script done [08:42:32]execute_script returns [08:42:32]free content buf [08:42:32]Sock 9.Close socket [08:42:32]Sock 9.Thread stoped [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [09:00:58]ConnectInit Can't connect to host [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]accept exits with 9 [09:01:25]New connection [09:01:25]New thread 3067477348 created [09:01:25]Waiting for new connection... [09:01:25] Sock 9.Parse request [09:01:25]Sock 9.Check first char [09:01:25]Sock 9.First char is OK [09:01:25]request: POST /json_proto HTTP/1.0 [09:01:25]Method: POST [09:01:25]URL: /json_proto [09:01:25]Method is POST - this is cgi request [09:01:25]url: /json_proto [09:01:25]query_string will be loaded in cgi processing [09:01:25]execute_cgi json_proto POST (null) [09:01:25]execute_cgi path=json_proto method=POST [09:01:25]POST find Content-Length [09:01:25]Host: 172.17.96.67:8080 [09:01:25]Content-Length: 215 [09:01:25]Content-Type: application/json [09:01:25] [09:01:25]POST finish read [09:01:25]Found Content-Length = 215 [09:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]execute_script... [09:01:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]POST & json_proto [09:01:25]process_json_proto [09:01:25]json parsed OK: [09:01:25]protocol is kg_v1.0 [09:01:25]action value=get_value [09:01:25]process_action get_value [09:01:25]cmd_get_value [09:01:25]process_action get_value done [09:01:25]requested_data is exist [09:01:25]produce_requested_data [09:01:25]requested_item kkm.sn is exist - process it [09:01:25]requested_item kkm.ver is exist - process it [09:01:25]requested_item fm.sn is exist - process it [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 11 00 00 [09:01:25]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:25]Read from MH i2c: E2 17 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E1 [09:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:01:25]wFMCommunicate OK [09:01:25]requested_item fd.num is exist - process it [09:01:25]SAM_PROTO_GetFieldsCounters [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 00 00 [09:01:25]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 62 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [09:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_GetFieldsCounters done [09:01:25]requested_item shift.num is exist - process it [09:01:25]requested_item shift.opened is exist - process it [09:01:25]req_shift_opened [09:01:25]FM_GetShiftState [09:01:25]SAM_PROTO_GetShiftState [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 01 00 [09:01:25]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 67 [09:01:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_GetShiftState done [09:01:25]FM_GetShiftState done [09:01:25]req_shift_opened done [09:01:25]requested_item shift.open_date is exist - process it [09:01:25]req_shift_open_date [09:01:25]req_shift_open_date done [09:01:25]produce_requested_data done [09:01:25]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117959,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:01:25]process_action_free get_value [09:01:25]json_value_free [09:01:25]json_value_free done [09:01:25]process_json_proto returns [09:01:25]Send response to host [09:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117959,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:01:25]free response buf [09:01:25]execute_script done [09:01:25]execute_script returns [09:01:25]free content buf [09:01:25]Sock 9.Close socket [09:01:25]Sock 9.Thread stoped [09:01:25]accept exits with 7 [09:01:25]New connection [09:01:25]New thread 3067333988 created [09:01:25]Thread 3067477348 joined [09:01:25]Waiting for new connection... [09:01:25] Sock 7.Parse request [09:01:25]Sock 7.Check first char [09:01:25]Sock 7.First char is OK [09:01:25]request: POST /json_proto HTTP/1.0 [09:01:25]Method: POST [09:01:25]URL: /json_proto [09:01:25]Method is POST - this is cgi request [09:01:25]url: /json_proto [09:01:25]query_string will be loaded in cgi processing [09:01:25]execute_cgi json_proto POST (null) [09:01:25]execute_cgi path=json_proto method=POST [09:01:25]POST find Content-Length [09:01:25]Host: 172.17.96.67:8080 [09:01:25]Content-Length: 331 [09:01:25]Content-Type: application/json [09:01:25] [09:01:25]POST finish read [09:01:25]Found Content-Length = 331 [09:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:01:25]execute_script... [09:01:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:01:25]POST & json_proto [09:01:25]process_json_proto [09:01:25]json parsed OK: [09:01:25]protocol is kg_v1.0 [09:01:25]action value=get_value [09:01:25]process_action get_value [09:01:25]cmd_get_value [09:01:25]process_action get_value done [09:01:25]requested_data is exist [09:01:25]produce_requested_data [09:01:25]requested_item fm.sale.total is exist - process it [09:01:25]SAM_PROTO_GetFMData [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 03 00 [09:01:25]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:01:25]OFD Sender: No OFD packet to send [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 13 00 00 BA 04 85 04 B6 04 6E 04 04 00 85 C8 01 00 69 04 A3 00 6F 04 04 00 84 C8 01 00 B1 04 05 00 8F 35 39 A9 01 70 04 05 00 F4 A5 B9 87 01 72 04 04 00 9B 8F 7F 21 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 69 C5 2D 2D 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 C8 BB C3 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 03 [09:01:26]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 85 C8 01 00 69 04 A3 00 6F 04 04 00 84 C8 01 00 B1 04 05 00 8F 35 39 A9 01 70 04 05 00 F4 A5 B9 87 01 72 04 04 00 9B 8F 7F 21 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 69 C5 2D 2D 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 C8 BB C3 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 17 00 00 [09:01:26]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 14 00 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 3D [09:01:26]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 17 00 00 [09:01:26]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 15 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C1 [09:01:26]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 17 00 00 [09:01:26]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 0E [09:01:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 17 00 00 [09:01:26]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 D7 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 D7 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7A [09:01:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetFMData done [09:01:27]requested_item fm.sale_refund.total is exist - process it [09:01:27]requested_item fm.buy.total is exist - process it [09:01:27]requested_item shift.sale.total is exist - process it [09:01:27]SAM_PROTO_GetShiftData [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 02 00 [09:01:27]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 13 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 28 14 0B 70 04 03 00 38 8B 0A 72 04 02 00 F0 88 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 5D 2D 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 C9 [09:01:27]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 13 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 28 14 0B 70 04 03 00 38 8B 0A 72 04 02 00 F0 88 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 5D 2D 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 17 00 00 [09:01:27]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 AB [09:01:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 17 00 00 [09:01:27]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [09:01:28]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [09:01:28]wFMCommunicate OK [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 17 00 00 [09:01:28]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [09:01:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [09:01:28]wFMCommunicate OK [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 17 00 00 [09:01:28]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 CA 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 CA 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [09:01:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:01:28]wFMCommunicate OK [09:01:28]SAM_PROTO_GetShiftData done [09:01:28]requested_item shift.sale.total_cash is exist - process it [09:01:28]requested_item shift.sale_refund.total is exist - process it [09:01:28]requested_item shift.sale_refund.total_cash is exist - process it [09:01:28]requested_item shift.buy.total is exist - process it [09:01:28]requested_item shift.buy.total_cash is exist - process it [09:01:28]produce_requested_data done [09:01:28]produce_requested_data return {"fm.sale.total":71340660.63,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":7260.56,"shift.sale.total_cash":6910.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:01:28]process_action_free get_value [09:01:28]json_value_free [09:01:28]json_value_free done [09:01:28]process_json_proto returns [09:01:28]Send response to host [09:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71340660.63,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":7260.56,"shift.sale.total_cash":6910.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:01:28]free response buf [09:01:28]execute_script done [09:01:28]execute_script returns [09:01:28]free content buf [09:01:28]Sock 7.Close socket [09:01:28]Sock 7.Thread stoped [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:02:00]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 11 00 00 [09:02:00]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DB [09:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:02:00]wFMCommunicate OK [09:02:00]Detected FM SN is 0000000000871767 [09:02:00]Stored FM SN is 0000000000871767 [09:02:00]wFMCommunicate request_size=9 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 16 00 00 04 5E 2D 01 00 [09:02:00]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 5E 2D 01 00 00 00 1E [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]FM PIN OK [09:02:00]wFMCommunicate request_size=8 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 14 04 00 03 02 00 01 [09:02:00]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]wFMCommunicate request_size=13 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:02:00]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 11 00 00 [09:02:00]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DF [09:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:02:00]wFMCommunicate OK [09:02:00]DocumentArchiveInit [09:02:00]Start Httpd... [09:02:00]Httpd thread 3067714916 created [09:02:00]Write to MH i2c: 01 00 00 0F 00 0F [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 07 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:02:00]MH Int Process started [09:02:00]Allocated Socket 7 [09:02:00]Bind OK [09:02:00]Listen OK [09:02:00]httpd running on port 8080 [09:02:00]Waiting for new connection... [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:09]accept exits with 8 [09:02:09]New connection [09:02:09]New thread 3067428196 created [09:02:09]Waiting for new connection... [09:02:09] Sock 8.Parse request [09:02:09]Sock 8.Check first char [09:02:09]Sock 8.First char is OK [09:02:09]request: POST /json_proto HTTP/1.0 [09:02:09]Method: POST [09:02:09]URL: /json_proto [09:02:09]Method is POST - this is cgi request [09:02:09]url: /json_proto [09:02:09]query_string will be loaded in cgi processing [09:02:09]execute_cgi json_proto POST (null) [09:02:09]execute_cgi path=json_proto method=POST [09:02:09]POST find Content-Length [09:02:09]Host: 172.17.96.67:8080 [09:02:09]Content-Length: 215 [09:02:09]Content-Type: application/json [09:02:09] [09:02:09]POST finish read [09:02:09]Found Content-Length = 215 [09:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:09]execute_script... [09:02:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:09]POST & json_proto [09:02:09]process_json_proto [09:02:09]json parsed OK: [09:02:09]protocol is kg_v1.0 [09:02:09]action value=get_value [09:02:09]process_action get_value [09:02:09]cmd_get_value [09:02:09]process_action get_value done [09:02:09]requested_data is exist [09:02:09]produce_requested_data [09:02:09]requested_item kkm.sn is exist - process it [09:02:09]requested_item kkm.ver is exist - process it [09:02:09]requested_item fm.sn is exist - process it [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 11 00 00 [09:02:09]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 17 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E1 [09:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:02:09]wFMCommunicate OK [09:02:09]requested_item fd.num is exist - process it [09:02:09]SAM_PROTO_GetFieldsCounters [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 13 00 00 [09:02:09]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:09]Read from MH i2c: E2 62 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [09:02: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_GetFieldsCounters done [09:02:09]requested_item shift.num is exist - process it [09:02:09]requested_item shift.opened is exist - process it [09:02:09]req_shift_opened [09:02:09]FM_GetShiftState [09:02:09]SAM_PROTO_GetShiftState [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 13 01 00 [09:02:09]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 67 [09:02:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_GetShiftState done [09:02:09]FM_GetShiftState done [09:02:09]req_shift_opened done [09:02:09]requested_item shift.open_date is exist - process it [09:02:09]req_shift_open_date [09:02:09]req_shift_open_date done [09:02:09]produce_requested_data done [09:02:09]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117959,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:02:09]process_action_free get_value [09:02:09]json_value_free [09:02:09]json_value_free done [09:02:09]process_json_proto returns [09:02:09]Send response to host [09:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":117959,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:02:09]free response buf [09:02:09]execute_script done [09:02:09]execute_script returns [09:02:09]free content buf [09:02:09]Sock 8.Close socket [09:02:09]Sock 8.Thread stoped [09:02:09]accept exits with 10 [09:02:09]New connection [09:02:09]New thread 3067284836 created [09:02:09]Thread 3067428196 joined [09:02:09]Waiting for new connection... [09:02:09] Sock 10.Parse request [09:02:09]Sock 10.Check first char [09:02:09]Sock 10.First char is OK [09:02:09]request: POST /json_proto HTTP/1.0 [09:02:09]Method: POST [09:02:09]URL: /json_proto [09:02:09]Method is POST - this is cgi request [09:02:09]url: /json_proto [09:02:09]query_string will be loaded in cgi processing [09:02:09]execute_cgi json_proto POST (null) [09:02:09]execute_cgi path=json_proto method=POST [09:02:09]POST find Content-Length [09:02:09]Host: 172.17.96.67:8080 [09:02:09]Content-Length: 331 [09:02:09]Content-Type: application/json [09:02:09] [09:02:09]POST finish read [09:02:09]Found Content-Length = 331 [09:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:02:09]execute_script... [09:02:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:02:09]POST & json_proto [09:02:09]process_json_proto [09:02:09]json parsed OK: [09:02:09]protocol is kg_v1.0 [09:02:09]action value=get_value [09:02:09]process_action get_value [09:02:09]cmd_get_value [09:02:09]process_action get_value done [09:02:09]requested_data is exist [09:02:09]produce_requested_data [09:02:10]requested_item fm.sale.total is exist - process it [09:02:10]SAM_PROTO_GetFMData [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 13 03 00 [09:02:10]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]OFD Sender: No OFD packet to send [09:02:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 FD 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 FD 00 13 00 00 BA 04 85 04 B6 04 6E 04 04 00 85 C8 01 00 69 04 A3 00 6F 04 04 00 84 C8 01 00 B1 04 05 00 8F 35 39 A9 01 70 04 05 00 F4 A5 B9 87 01 72 04 04 00 9B 8F 7F 21 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 69 C5 2D 2D 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 C8 BB C3 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 03 [09:02:10]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 85 C8 01 00 69 04 A3 00 6F 04 04 00 84 C8 01 00 B1 04 05 00 8F 35 39 A9 01 70 04 05 00 F4 A5 B9 87 01 72 04 04 00 9B 8F 7F 21 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 69 C5 2D 2D 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 C8 BB C3 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:02:10]wFMCommunicate OK [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 17 00 00 [09:02:10]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 FD 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 FD 00 14 00 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 3D [09:02:11]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 17 00 00 [09:02:11]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 FD 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 FD 00 15 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C1 [09:02:11]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 17 00 00 [09:02:11]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 FD 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 0E [09:02:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [09:02:11]wFMCommunicate OK [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 17 00 00 [09:02:11]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 D7 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 D7 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7A [09:02:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_GetFMData done [09:02:11]requested_item fm.sale_refund.total is exist - process it [09:02:11]requested_item fm.buy.total is exist - process it [09:02:11]requested_item shift.sale.total is exist - process it [09:02:11]SAM_PROTO_GetShiftData [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 13 02 00 [09:02:11]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 FD 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 13 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 28 14 0B 70 04 03 00 38 8B 0A 72 04 02 00 F0 88 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 5D 2D 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 C9 [09:02:12]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 13 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 28 14 0B 70 04 03 00 38 8B 0A 72 04 02 00 F0 88 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 5D 2D 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 17 00 00 [09:02:12]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 FD 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 AB [09:02:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 17 00 00 [09:02:12]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 FD 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [09:02:12]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 17 00 00 [09:02:12]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 FD 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [09:02:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [09:02:13]wFMCommunicate OK [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 17 00 00 [09:02:13]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 CA 00 [09:02:13]MH_I2C_Read... E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=10 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [09:04:25]Write to MH i2c: E2 0D 00 21 00 80 15 02 00 05 00 1E 04 01 00 01 00 00 CF [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=15 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 0A FC 03 06 00 20 4E 00 00 00 00 [09:04:25]Write to MH i2c: E2 12 00 22 00 80 15 02 00 0A 00 FC 03 06 00 20 4E 00 00 00 00 00 00 29 [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 22 00 00 90 00 96 [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=47 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 2A 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 [09:04:25]Write to MH i2c: E2 32 00 23 00 80 15 02 00 2A 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 00 00 FF [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 23 00 00 90 00 97 [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=15 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 0A 07 04 06 00 20 4E 00 00 00 00 [09:04:25]Write to MH i2c: E2 12 00 24 00 80 15 02 00 0A 00 07 04 06 00 20 4E 00 00 00 00 00 00 37 [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 24 00 00 90 00 98 [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=15 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [09:04:25]Write to MH i2c: E2 12 00 25 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 FC [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 25 00 00 90 00 99 [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=11 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [09:04:25]Write to MH i2c: E2 0E 00 26 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 D8 [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]OFD Sender: No OFD packet to send [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 26 00 00 90 00 9A [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=13 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 08 F4 03 04 00 99 F6 21 67 [09:04:25]Write to MH i2c: E2 10 00 27 00 80 15 02 00 08 00 F4 03 04 00 99 F6 21 67 00 00 C9 [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 27 00 00 90 00 9B [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=25 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 [09:04:25]Write to MH i2c: E2 1C 00 28 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 00 00 0C [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:04:25]Read from MH i2c: E2 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [09:04:25]RAPDU: 90 00 [09:04:25]wFMCommunicate OK [09:04:25]wFMCommunicate request_size=4 [09:04:25]MH_SAM_APDU [09:04:25]CAPDU: 80 15 03 00 [09:04:25]Write to MH i2c: E2 08 00 29 00 80 15 03 00 00 00 00 00 AA [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 40 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 40 00 29 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 14 00 00 00 35 04 06 00 B4 59 F1 15 34 42 90 00 F9 [09:04:26]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 14 00 00 00 35 04 06 00 B4 59 F1 15 34 42 90 00 [09:04:26]wFMCommunicate OK [09:04:26]SAM_PROTO_ProcessDocument answer len = 59 [09:04:26]SAM_PROTO_ProcessDocument done [09:04:26]SetTLVBufToDocument [09:04:26]Processing tag 1209 (04B9) [09:04:26]Malloc new data [09:04:26]Processing tag 1041 (0411) [09:04:26]Processing tag 1040 (0410) [09:04:26]Malloc new data [09:04:26]Processing tag 1038 (040E) [09:04:26]Malloc new data [09:04:26]Processing tag 1042 (0412) [09:04:26]Malloc new data [09:04:26]Processing tag 1077 (0435) [09:04:26]Malloc new data [09:04:26]SetTLVBufToDocument err=0 [09:04:26]KKMLoadAndSignReceiptData store KKM data [09:04:26]KKMLoadAndSignReceiptData err=0 [09:04:26]wFMCommunicate request_size=4 [09:04:26]MH_SAM_APDU [09:04:26]CAPDU: 80 11 00 00 [09:04:26]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 17 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FB [09:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:04:26]wFMCommunicate OK [09:04:26]Счет N : (1)245752 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-2 2.990 * 66.90 = 200.03 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 20 30.10.2024 09:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117960 ФПД: 198298389787714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117960&fm=198298389787714&tin=02508201610067®Number=0000000000091782&sum=20000 [09:04:26]StoreToDocumentArchive [09:04:26]shift 545 fd 117960 [09:04:26]save to /storage/0545/doc_00117960 [09:04:26]save last doc name /storage/0545/doc_00117960 to /storage/kkm_last_doc_name [09:04:26]save OK [09:04:26]Clear old archive folders... [09:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:26]tlvbuf is 0140ABA0 [09:04:26]SAM_PROTO_ClearQueue [09:04:26]wFMCommunicate request_size=4 [09:04:26]MH_SAM_APDU [09:04:26]CAPDU: 80 09 00 00 [09:04:26]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:04:26]RAPDU: 90 00 [09:04:26]wFMCommunicate OK [09:04:26]SAM_PROTO_ClearQueue done [09:04:26]KKMCreateOFDPacket [09:04:26]OFDProtocolAddRootSTLVToBuf [09:04:26]FM_MakeSignedData [09:04:26]FM_MakeSignedData [09:04:26]SAM_PROTO_SignData [09:04:26]wFMCommunicate request_size=4 [09:04:26]MH_SAM_APDU [09:04:26]CAPDU: 80 0D 01 02 [09:04:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:04:26]RAPDU: 90 00 [09:04:26]wFMCommunicate OK [09:04:26]wFMCommunicate request_size=255 [09:04:26]MH_SAM_APDU [09:04: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 32 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 14 00 00 00 F4 03 04 00 99 F6 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CC 01 00 35 04 06 00 B4 [09:04:26]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 99 F6 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CC 01 00 35 04 06 00 B4 00 00 90 [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:04:26]RAPDU: 90 00 [09:04:26]wFMCommunicate OK [09:04:26]wFMCommunicate request_size=10 [09:04:26]MH_SAM_APDU [09:04:26]CAPDU: 80 0D 02 02 05 59 F1 15 34 42 [09:04:26]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 59 F1 15 34 42 00 00 87 [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:04:26]RAPDU: 90 00 [09:04:26]wFMCommunicate OK [09:04:26]wFMCommunicate request_size=4 [09:04:26]MH_SAM_APDU [09:04:26]CAPDU: 80 0D 03 02 [09:04:26]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 0B 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 0B 00 2F 00 00 DB 53 73 EC FE 7E 24 9F 90 00 77 [09:04:26]RAPDU: DB 53 73 EC FE 7E 24 9F 90 00 [09:04:26]wFMCommunicate OK [09:04:26]SAM_PROTO_SignData done [09:04:26]FM_MakeSignedData done [09:04:26]CreateOFDProtocolMessage [09:04:26]wFMCommunicate request_size=4 [09:04:26]MH_SAM_APDU [09:04:26]CAPDU: 80 11 00 00 [09:04:26]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 17 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 01 [09:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:04:26]wFMCommunicate OK [09:04:26]CreateOFDProtocolMessage done [09:04:26]OFDSenderStorePacket 117960 [09:04:26]StoreOFDPacket docnum=117960 [09:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A2 DD 07 01 E6 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 99 F6 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CC 01 00 35 04 06 00 B4 59 F1 15 34 42 DB 53 73 EC FE 7E 24 9F [09:04:26]CheckFolder [09:04:26]dirname=/storage/ofd_packets [09:04:26]CheckFolder done [09:04:26]ProducePacketName [09:04:26]name=ofd_packets/00117960 [09:04:26]NVStorageSaveData ofd_packets/00117960 [09:04:26]File name is /storage/ofd_packets/00117960 [09:04:26]Write 301 bytes [09:04:26]NVStorageSaveData done [09:04:26]OFDSenderStorePacket done [09:04:26]KKMCreateOFDPacket done [09:04:26]NVStorageSaveData kkm_last_timestamp [09:04:26]File name is /storage/kkm_last_timestamp [09:04:26]Write 4 bytes [09:04:26]NVStorageSaveData done [09:04:26]ExternCall_PrintAddStr [09:04:26]wPrintStart [09:04:26]Write to MH i2c: 01 00 00 31 00 31 [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: 01 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: 01 07 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:04:26]RasterBufferAndPrint [09:04:26]line Счет N : (1)245752 [09:04:26]line ИНН: 02508201610067 [09:04:26]line Контрольно-Кассовый Чек [09:04:26]line ПРОДАЖА [09:04:26]line ТРК (МРК, ГНК) : 21 [09:04:26]line Товар: 2710124130 [09:04:26]line Аи-92-К-2 [09:04:26]line 2.990 * 66.90 [09:04:26]line = 200.03 [09:04:26]line НДС 12% НСП 1% [09:04:26]line > о реализуемом товаре [09:04:26]line ОКРУГЛЕНИЕ: -0.03 [09:04:26]line ИТОГО: 200.00 [09:04:26]line Внесено: 200.00 [09:04:26]line СДАЧА: 0.00 [09:04:26]line НСП 1% : 1.77 [09:04:26]line НДС 12% : 21.24 [09:04:26]line Наличными: 200.00 [09:04:26]line Безнал.: 0.00 [09:04:26]line Место: АЗС № 173 "Партнер Нефть" [09:04:26]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:04:26]line СНО: Общий режим [09:04:26]line Чек 20 30.10.2024 09:04 [09:04:26]line Смена: 545 ФФД: 1.0 [09:04:26]line ЗНМ: 0300000115 [09:04:26]line РНМ: 0000000000091782 [09:04:26]line Версия ККМ: 001 [09:04:26]line ФМ: 0000000000871767 [09:04:26]line ФД: 117960 [09:04:26]line ФПД: 198298389787714 [09:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117960&fm=198298389787714&tin=02508201610067®Number=0000000000091782&sum=20000 [09:04:26]written 0, free lines is 4095 [09:04:27]OFD Sender: Processing packet 117960 [packets to send 77, broken 76] [09:04:27]ProducePacketName [09:04:27]name=ofd_packets/00117960 [09:04:27]OFD Sender: To server: pG, [09:04:27]CommunicateWithHost lk.salyk.kg:30040 [09:04:27]ConnectInit lk.salyk.kg [09:04:27]Connected sock=10 [09:04: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 36 37 0F 01 00 00 A2 DD 07 01 E6 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 99 F6 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CC 01 00 35 04 06 00 B4 59 F1 15 34 42 DB 53 73 EC FE 7E 24 9F [09:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 85 60 47 00 9E 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 36 37 10 04 04 00 C8 CC 01 00 F4 03 04 00 51 A2 21 67 B6 04 01 00 00 D4 6D D3 90 24 BD A5 82 [09:04:27]CommunicateWithHost err = 0 [09:04:27]CheckOFDResponse [09:04:27]1017 (14) - 77093643461234 [09:04:27]1041 (16) - 0000000000871767 [09:04:27]1040 (4) - 117960 [09:04:27]1012 (4) - 30.10.2024 03:04 [09:04:27]1206 (1) - 0 [09:04:27]OFD Sender: Remove packet 117960 [09:04:27]ProducePacketName [09:04:27]name=ofd_packets/00117960 [09:04:27]NVStorageDeleteData [09:04:27]Write to MH i2c: 01 00 00 5B 00 5B [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: 01 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: 01 07 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 C6 0C 34 [09:04:27]RasterBufferAndPrint [09:04:27]line [09:04:27]line [09:04:27]line [09:04:27]line [09:04:27]line [09:04:27]written 0, free lines is 3289 [09:04:27]MH_Cut [09:04:27]Write to MH i2c: D1 01 00 62 00 01 34 [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: D1 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: D1 01 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: D1 01 00 62 00 00 33 [09:04:27]Write to MH i2c: 01 00 00 63 00 63 [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]OFD Sender: No OFD packet to send [09:04:28]*** Cut start [09:04:28]*** Purtial cut [09:04:28]*** Stage 1: CUTSNS_PIN = 1 [09:04:28]Read from MH i2c: 01 [09:04:28]MH_I2C_Read... [09:04:28]*** Stop cut motor [09:04:28]*** Cut end [09:04:28]Read from MH i2c: 01 07 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [09:04:28]process_action close_receipt done [09:04:28]requested_data is exist [09:04:28]produce_requested_data [09:04:28]requested_item fm.sn is exist - process it [09:04:28]wFMCommunicate request_size=4 [09:04:28]MH_SAM_APDU [09:04:28]CAPDU: 80 11 00 00 [09:04:28]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:28]Read from MH i2c: E2 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 17 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 35 [09:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:04:28]wFMCommunicate OK [09:04:28]requested_item fd.num is exist - process it [09:04:28]SAM_PROTO_GetFieldsCounters [09:04:28]wFMCommunicate request_size=4 [09:04:28]MH_SAM_APDU [09:04:28]CAPDU: 80 13 00 00 [09:04:28]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:28]Read from MH i2c: E2 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 62 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [09:04: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:28]wFMCommunicate OK [09:04:28]SAM_PROTO_GetFieldsCounters done [09:04:28]requested_item shift.num is exist - process it [09:04:28]requested_item shift.opened is exist - process it [09:04:28]req_shift_opened [09:04:28]FM_GetShiftState [09:04:28]SAM_PROTO_GetShiftState [09:04:28]wFMCommunicate request_size=4 [09:04:28]MH_SAM_APDU [09:04:28]CAPDU: 80 13 01 00 [09:04:28]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:28]Read from MH i2c: E2 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 0E 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BB [09:04:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:04:28]wFMCommunicate OK [09:04:28]SAM_PROTO_GetShiftState done [09:04:28]FM_GetShiftState done [09:04:28]req_shift_opened done [09:04:28]requested_item shift.open_date is exist - process it [09:04:28]req_shift_open_date [09:04:28]req_shift_open_date done [09:04:28]produce_requested_data done [09:04:28]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117960,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:04:28]process_action_free close_receipt [09:04:28]json_value_free [09:04:28]json_value_free done [09:04:28]process_json_proto returns [09:04:28]Send response to host [09:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117960,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:04:28]free response buf [09:04:28]execute_script done [09:04:28]execute_script returns [09:04:28]free content buf [09:04:28]Sock 8.Close socket [09:04:28]Sock 8.Thread stoped [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:43]recv_with_timeout no data received [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:07]accept exits with 9 [09:06:07]New connection [09:06:07]New thread 3067284836 created [09:06:07]Thread 3067428196 joined [09:06:07]Waiting for new connection... [09:06:07] Sock 9.Parse request [09:06:07]Sock 9.Check first char [09:06:07]Sock 9.First char is OK [09:06:07]request: POST /json_proto HTTP/1.0 [09:06:07]Method: POST [09:06:07]URL: /json_proto [09:06:07]Method is POST - this is cgi request [09:06:07]url: /json_proto [09:06:07]query_string will be loaded in cgi processing [09:06:07]execute_cgi json_proto POST (null) [09:06:07]execute_cgi path=json_proto method=POST [09:06:07]POST find Content-Length [09:06:07]Host: 172.17.96.67:8080 [09:06:07]Content-Length: 677 [09:06:07]Content-Type: application/json [09:06:07] [09:06:07]POST finish read [09:06:07]Found Content-Length = 677 [09:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:07]execute_script... [09:06: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)245753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:07]POST & json_proto [09:06:07]process_json_proto [09:06:07]json parsed OK: [09:06:07]protocol is kg_v1.0 [09:06:07]action value=close_receipt [09:06:07]process_action close_receipt [09:06:07]cmd_close_receipt [09:06:07]MH_GetDate [09:06:07]Write to MH i2c: F0 00 00 67 00 56 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: F0 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: F0 09 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: F0 09 00 67 00 00 00 F7 21 67 47 6C 1F 67 17 [09:06:07]GetLastDocTimeStamp 1730279065 [09:06:07]current date 1730279168 [09:06:07]FM_GetShiftState [09:06:07]SAM_PROTO_GetShiftState [09:06:07]wFMCommunicate request_size=4 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 13 01 00 [09:06:07]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:07]Read from MH i2c: E2 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 0E 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BD [09:06:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:06:07]wFMCommunicate OK [09:06:07]SAM_PROTO_GetShiftState done [09:06:07]FM_GetShiftState done [09:06:07]opened in 1730246605 [09:06:07]opened+sec_in_day 1730333005 [09:06:07]quantity*price = 50041 [09:06:07]sum+1 = 50042 [09:06:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 21 30.10.2024 09:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117961 ФПД: 175132990755044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090608&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117961&fm=175132990755044&tin=02508201610067®Number=0000000000091782&sum=50000 [09:06:09]StoreToDocumentArchive [09:06:09]shift 545 fd 117961 [09:06:09]save to /storage/0545/doc_00117961 [09:06:09]save last doc name /storage/0545/doc_00117961 to /storage/kkm_last_doc_name [09:06:09]save OK [09:06:09]Clear old archive folders... [09:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:09]tlvbuf is 013BE710 [09:06:09]SAM_PROTO_ClearQueue [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 09 00 00 [09:06:09]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]SAM_PROTO_ClearQueue done [09:06:09]KKMCreateOFDPacket [09:06:09]OFDProtocolAddRootSTLVToBuf [09:06:09]FM_MakeSignedData [09:06:09]FM_MakeSignedData [09:06:09]SAM_PROTO_SignData [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 01 02 [09:06:09]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=255 [09:06:09]MH_SAM_APDU [09:06: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 32 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 15 00 00 00 F4 03 04 00 00 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CC 01 00 35 04 06 00 9F [09:06:09]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 15 00 00 00 F4 03 04 00 00 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CC 01 00 35 04 06 00 9F 00 00 6D [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=10 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 02 02 05 48 53 B3 D0 E4 [09:06:09]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 48 53 B3 D0 E4 00 00 FE [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 03 02 [09:06:09]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0B 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0B 00 79 00 00 37 49 1D 70 09 99 D9 39 90 00 B6 [09:06:09]RAPDU: 37 49 1D 70 09 99 D9 39 90 00 [09:06:09]wFMCommunicate OK [09:06:09]SAM_PROTO_SignData done [09:06:09]FM_MakeSignedData done [09:06:09]CreateOFDProtocolMessage [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 11 00 00 [09:06:09]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4B [09:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:06:09]wFMCommunicate OK [09:06:09]CreateOFDProtocolMessage done [09:06:09]OFDSenderStorePacket 117961 [09:06:09]StoreOFDPacket docnum=117961 [09:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B1 94 07 01 BD 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 32 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 15 00 00 00 F4 03 04 00 00 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CC 01 00 35 04 06 00 9F 48 53 B3 D0 E4 37 49 1D 70 09 99 D9 39 [09:06:09]CheckFolder [09:06:09]dirname=/storage/ofd_packets [09:06:09]CheckFolder done [09:06:09]ProducePacketName [09:06:09]name=ofd_packets/00117961 [09:06:09]NVStorageSaveData ofd_packets/00117961 [09:06:09]File name is /storage/ofd_packets/00117961 [09:06:09]Write 301 bytes [09:06:09]NVStorageSaveData done [09:06:09]OFDSenderStorePacket done [09:06:09]KKMCreateOFDPacket done [09:06:09]NVStorageSaveData kkm_last_timestamp [09:06:09]File name is /storage/kkm_last_timestamp [09:06:09]Write 4 bytes [09:06:09]NVStorageSaveData done [09:06:09]ExternCall_PrintAddStr [09:06:09]wPrintStart [09:06:09]Write to MH i2c: 01 00 00 7B 00 7B [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [09:06:09]RasterBufferAndPrint [09:06:09]line Счет N : (1)245753 [09:06:09]line ИНН: 02508201610067 [09:06:09]line Контрольно-Кассовый Чек [09:06:09]line ПРОДАЖА [09:06:09]line ТРК (МРК, ГНК) : 21 [09:06:09]line Товар: 2710124130 [09:06:09]line Аи-92-К-2 [09:06:09]line 7.480 * 66.90 [09:06:09]line = 500.41 [09:06:09]line НДС 12% НСП 1% [09:06:09]line > о реализуемом товаре [09:06:09]line ОКРУГЛЕНИЕ: -0.41 [09:06:09]line ИТОГО: 500.00 [09:06:09]line Внесено: 500.00 [09:06:09]line СДАЧА: 0.00 [09:06:09]line НСП 1% : 4.43 [09:06:09]line НДС 12% : 53.14 [09:06:09]line Наличными: 500.00 [09:06:09]line Безнал.: 0.00 [09:06:09]line Место: АЗС № 173 "Партнер Нефть" [09:06:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:06:09]line СНО: Общий режим [09:06:09]line Чек 21 30.10.2024 09:06 [09:06:09]line Смена: 545 ФФД: 1.0 [09:06:09]line ЗНМ: 0300000115 [09:06:09]line РНМ: 0000000000091782 [09:06:09]line Версия ККМ: 001 [09:06:09]line ФМ: 0000000000871767 [09:06:09]line ФД: 117961 [09:06:09]line ФПД: 175132990755044 [09:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090608&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117961&fm=175132990755044&tin=02508201610067®Number=0000000000091782&sum=50000 [09:06:09]written 0, free lines is 4095 [09:06:09]OFD Sender: Processing packet 117961 [packets to send 77, broken 76] [09:06:09]ProducePacketName [09:06:09]name=ofd_packets/00117961 [09:06:09]OFD Sender: To server: pG, [09:06:09]CommunicateWithHost lk.salyk.kg:30040 [09:06:09]ConnectInit lk.salyk.kg [09:06:09]Connected sock=11 [09:06:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B1 94 07 01 BD 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 32 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 15 00 00 00 F4 03 04 00 00 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C9 CC 01 00 35 04 06 00 9F 48 53 B3 D0 E4 37 49 1D 70 09 99 D9 39 [09:06: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 36 37 4F 00 00 00 2D 4F 47 00 A7 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 36 37 10 04 04 00 C9 CC 01 00 F4 03 04 00 B8 A2 21 67 B6 04 01 00 00 70 60 30 DD 27 28 FE 4B [09:06:10]CommunicateWithHost err = 0 [09:06:10]CheckOFDResponse [09:06:10]1017 (14) - 77093643461234 [09:06:10]1041 (16) - 0000000000871767 [09:06:10]1040 (4) - 117961 [09:06:10]1012 (4) - 30.10.2024 03:06 [09:06:10]1206 (1) - 0 [09:06:10]OFD Sender: Remove packet 117961 [09:06:10]ProducePacketName [09:06:10]name=ofd_packets/00117961 [09:06:10]NVStorageDeleteData [09:06:10]Write to MH i2c: 01 00 00 A5 00 A5 [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 07 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 A6 0C 5E [09:06:10]RasterBufferAndPrint [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]written 0, free lines is 3249 [09:06:10]MH_Cut [09:06:10]Write to MH i2c: D1 01 00 AC 00 01 7E [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 01 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 01 00 AC 00 00 7D [09:06:10]Write to MH i2c: 01 00 00 AD 00 AD [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]OFD Sender: No OFD packet to send [09:06:10]*** Cut start [09:06:10]*** Purtial cut [09:06:10]*** Stage 1: CUTSNS_PIN = 1 [09:06:11]Read from MH i2c: 01 [09:06:11]MH_I2C_Read... [09:06:11]*** Stop cut motor [09:06:11]*** Cut end [09:06:11]Read from MH i2c: 01 07 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [09:06:11]process_action close_receipt done [09:06:11]requested_data is exist [09:06:11]produce_requested_data [09:06:11]requested_item fm.sn is exist - process it [09:06:11]wFMCommunicate request_size=4 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 11 00 00 [09:06:11]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 17 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7F [09:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:06:11]wFMCommunicate OK [09:06:11]requested_item fd.num is exist - process it [09:06:11]SAM_PROTO_GetFieldsCounters [09:06:11]wFMCommunicate request_size=4 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 13 00 00 [09:06:11]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 62 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [09:06:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:11]wFMCommunicate OK [09:06:11]SAM_PROTO_GetFieldsCounters done [09:06:11]requested_item shift.num is exist - process it [09:06:11]requested_item shift.opened is exist - process it [09:06:11]req_shift_opened [09:06:11]FM_GetShiftState [09:06:11]SAM_PROTO_GetShiftState [09:06:11]wFMCommunicate request_size=4 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 13 01 00 [09:06:11]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 0E 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 05 [09:06:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:06:11]wFMCommunicate OK [09:06:11]SAM_PROTO_GetShiftState done [09:06:11]FM_GetShiftState done [09:06:11]req_shift_opened done [09:06:11]requested_item shift.open_date is exist - process it [09:06:11]req_shift_open_date [09:06:11]req_shift_open_date done [09:06:11]produce_requested_data done [09:06:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117961,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:06:11]process_action_free close_receipt [09:06:11]json_value_free [09:06:11]json_value_free done [09:06:11]process_json_proto returns [09:06:11]Send response to host [09:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117961,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:06:11]free response buf [09:06:11]execute_script done [09:06:11]execute_script returns [09:06:11]free content buf [09:06:11]Sock 9.Close socket [09:06:11]Sock 9.Thread stoped [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:36]accept exits with 10 [09:07:36]New connection [09:07:36]New thread 3067428196 created [09:07:36]Thread 3067284836 joined [09:07:36]Waiting for new connection... [09:07:36] Sock 10.Parse request [09:07:36]Sock 10.Check first char [09:07:36]Sock 10.First char is OK [09:07:36]request: POST /json_proto HTTP/1.0 [09:07:36]Method: POST [09:07:36]URL: /json_proto [09:07:36]Method is POST - this is cgi request [09:07:36]url: /json_proto [09:07:36]query_string will be loaded in cgi processing [09:07:36]execute_cgi json_proto POST (null) [09:07:36]execute_cgi path=json_proto method=POST [09:07:36]POST find Content-Length [09:07:36]Host: 172.17.96.67:8080 [09:07:36]Content-Length: 677 [09:07:36]Content-Type: application/json [09:07:36] [09:07:36]POST finish read [09:07:36]Found Content-Length = 677 [09:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:36]execute_script... [09:07: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)245754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:36]POST & json_proto [09:07:36]process_json_proto [09:07:36]json parsed OK: [09:07:36]protocol is kg_v1.0 [09:07:36]action value=close_receipt [09:07:36]process_action close_receipt [09:07:36]cmd_close_receipt [09:07:36]MH_GetDate [09:07:36]Write to MH i2c: F0 00 00 B1 00 A0 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: F0 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: F0 09 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: F0 09 00 B1 00 00 59 F7 21 67 47 6C 1F 67 BA [09:07:36]GetLastDocTimeStamp 1730279168 [09:07:36]current date 1730279257 [09:07:36]FM_GetShiftState [09:07:36]SAM_PROTO_GetShiftState [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 13 01 00 [09:07:36]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 0E 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 07 [09:07:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:07:36]wFMCommunicate OK [09:07:36]SAM_PROTO_GetShiftState done [09:07:36]FM_GetShiftState done [09:07:36]opened in 1730246605 [09:07:36]opened+sec_in_day 1730333005 [09:07:36]quantity*price = 50041 [09:07:36]sum+1 = 50042 [09:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 22 30.10.2024 09:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117962 ФПД: 235333504886335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090737&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117962&fm=235333504886335&tin=02508201610067®Number=0000000000091782&sum=50000 [09:07:37]StoreToDocumentArchive [09:07:37]shift 545 fd 117962 [09:07:37]save to /storage/0545/doc_00117962 [09:07:37]save last doc name /storage/0545/doc_00117962 to /storage/kkm_last_doc_name [09:07:37]save OK [09:07:37]Clear old archive folders... [09:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:37]tlvbuf is 01421840 [09:07:37]SAM_PROTO_ClearQueue [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 09 00 00 [09:07:37]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:07:37]RAPDU: 90 00 [09:07:37]wFMCommunicate OK [09:07:37]SAM_PROTO_ClearQueue done [09:07:37]KKMCreateOFDPacket [09:07:37]OFDProtocolAddRootSTLVToBuf [09:07:37]FM_MakeSignedData [09:07:37]FM_MakeSignedData [09:07:37]SAM_PROTO_SignData [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 0D 01 02 [09:07:37]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:07:37]RAPDU: 90 00 [09:07:37]wFMCommunicate OK [09:07:37]wFMCommunicate request_size=255 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 59 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CC 01 00 35 04 06 00 D6 [09:07:37]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 59 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CC 01 00 35 04 06 00 D6 00 00 49 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 03 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:07:38]RAPDU: 90 00 [09:07:38]wFMCommunicate OK [09:07:38]wFMCommunicate request_size=10 [09:07:38]MH_SAM_APDU [09:07:38]CAPDU: 80 0D 02 02 05 08 D9 F6 66 3F [09:07:38]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 08 D9 F6 66 3F 00 00 C2 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 03 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:07:38]RAPDU: 90 00 [09:07:38]wFMCommunicate OK [09:07:38]wFMCommunicate request_size=4 [09:07:38]MH_SAM_APDU [09:07:38]CAPDU: 80 0D 03 02 [09:07:38]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0B 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0B 00 C3 00 00 F2 90 E9 A7 C0 3D CB 02 90 00 1B [09:07:38]RAPDU: F2 90 E9 A7 C0 3D CB 02 90 00 [09:07:38]wFMCommunicate OK [09:07:38]SAM_PROTO_SignData done [09:07:38]FM_MakeSignedData done [09:07:38]CreateOFDProtocolMessage [09:07:38]wFMCommunicate request_size=4 [09:07:38]MH_SAM_APDU [09:07:38]CAPDU: 80 11 00 00 [09:07:38]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 17 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 95 [09:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:07:38]wFMCommunicate OK [09:07:38]CreateOFDProtocolMessage done [09:07:38]OFDSenderStorePacket 117962 [09:07:38]StoreOFDPacket docnum=117962 [09:07:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6D 05 07 01 2C ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 59 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CC 01 00 35 04 06 00 D6 08 D9 F6 66 3F F2 90 E9 A7 C0 3D CB 02 [09:07:38]CheckFolder [09:07:38]dirname=/storage/ofd_packets [09:07:38]CheckFolder done [09:07:38]ProducePacketName [09:07:38]name=ofd_packets/00117962 [09:07:38]NVStorageSaveData ofd_packets/00117962 [09:07:38]File name is /storage/ofd_packets/00117962 [09:07:38]Write 301 bytes [09:07:38]NVStorageSaveData done [09:07:38]OFDSenderStorePacket done [09:07:38]KKMCreateOFDPacket done [09:07:38]NVStorageSaveData kkm_last_timestamp [09:07:38]File name is /storage/kkm_last_timestamp [09:07:38]Write 4 bytes [09:07:38]NVStorageSaveData done [09:07:38]ExternCall_PrintAddStr [09:07:38]wPrintStart [09:07:38]Write to MH i2c: 01 00 00 C5 00 C5 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: 01 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: 01 07 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [09:07:38]RasterBufferAndPrint [09:07:38]line Счет N : (1)245754 [09:07:38]line ИНН: 02508201610067 [09:07:38]line Контрольно-Кассовый Чек [09:07:38]line ПРОДАЖА [09:07:38]line ТРК (МРК, ГНК) : 21 [09:07:38]line Товар: 2710124130 [09:07:38]line Аи-92-К-2 [09:07:38]line 7.480 * 66.90 [09:07:38]line = 500.41 [09:07:38]line НДС 12% НСП 1% [09:07:38]line > о реализуемом товаре [09:07:38]line ОКРУГЛЕНИЕ: -0.41 [09:07:38]line ИТОГО: 500.00 [09:07:38]line Внесено: 500.00 [09:07:38]line СДАЧА: 0.00 [09:07:38]line НСП 1% : 4.43 [09:07:38]line НДС 12% : 53.14 [09:07:38]line Наличными: 500.00 [09:07:38]line Безнал.: 0.00 [09:07:38]line Место: АЗС № 173 "Партнер Нефть" [09:07:38]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:07:38]line СНО: Общий режим [09:07:38]line Чек 22 30.10.2024 09:07 [09:07:38]line Смена: 545 ФФД: 1.0 [09:07:38]line ЗНМ: 0300000115 [09:07:38]line РНМ: 0000000000091782 [09:07:38]line Версия ККМ: 001 [09:07:38]line ФМ: 0000000000871767 [09:07:38]line ФД: 117962 [09:07:38]line ФПД: 235333504886335 [09:07:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090737&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117962&fm=235333504886335&tin=02508201610067®Number=0000000000091782&sum=50000 [09:07:38]written 0, free lines is 4095 [09:07:38]OFD Sender: Processing packet 117962 [packets to send 77, broken 76] [09:07:38]ProducePacketName [09:07:38]name=ofd_packets/00117962 [09:07:38]OFD Sender: To server: pG, [09:07:38]CommunicateWithHost lk.salyk.kg:30040 [09:07:38]ConnectInit lk.salyk.kg [09:07:38]Connected sock=11 [09:07:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6D 05 07 01 2C ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 59 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CA CC 01 00 35 04 06 00 D6 08 D9 F6 66 3F F2 90 E9 A7 C0 3D CB 02 [09:07: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 36 37 4F 00 00 00 F4 09 47 00 0D 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 36 37 10 04 04 00 CA CC 01 00 F4 03 04 00 11 A3 21 67 B6 04 01 00 00 4E 8C 84 C5 7B CC 31 A2 [09:07:39]CommunicateWithHost err = 0 [09:07:39]CheckOFDResponse [09:07:39]1017 (14) - 77093643461234 [09:07:39]1041 (16) - 0000000000871767 [09:07:39]1040 (4) - 117962 [09:07:39]1012 (4) - 30.10.2024 03:08 [09:07:39]1206 (1) - 0 [09:07:39]OFD Sender: Remove packet 117962 [09:07:39]ProducePacketName [09:07:39]name=ofd_packets/00117962 [09:07:39]NVStorageDeleteData [09:07:39]Write to MH i2c: 01 00 00 EF 00 EF [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: 01 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: 01 07 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 09 0D 0C [09:07:39]RasterBufferAndPrint [09:07:39]line [09:07:39]line [09:07:39]line [09:07:39]line [09:07:39]line [09:07:39]written 0, free lines is 3361 [09:07:39]MH_Cut [09:07:39]Write to MH i2c: D1 01 00 F6 00 01 C8 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: D1 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: D1 01 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: D1 01 00 F6 00 00 C7 [09:07:39]Write to MH i2c: 01 00 00 F7 00 F7 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]OFD Sender: No OFD packet to send [09:07:39]*** Cut start [09:07:39]*** Purtial cut [09:07:39]*** Stage 1: CUTSNS_PIN = 1 [09:07:40]Read from MH i2c: 01 [09:07:40]MH_I2C_Read... [09:07:40]*** Stop cut motor [09:07:40]*** Cut end [09:07:40]Read from MH i2c: 01 07 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [09:07:40]process_action close_receipt done [09:07:40]requested_data is exist [09:07:40]produce_requested_data [09:07:40]requested_item fm.sn is exist - process it [09:07:40]wFMCommunicate request_size=4 [09:07:40]MH_SAM_APDU [09:07:40]CAPDU: 80 11 00 00 [09:07:40]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:40]Read from MH i2c: E2 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 17 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C9 [09:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:07:40]wFMCommunicate OK [09:07:40]requested_item fd.num is exist - process it [09:07:40]SAM_PROTO_GetFieldsCounters [09:07:40]wFMCommunicate request_size=4 [09:07:40]MH_SAM_APDU [09:07:40]CAPDU: 80 13 00 00 [09:07:40]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:40]Read from MH i2c: E2 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 62 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [09:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:40]wFMCommunicate OK [09:07:40]SAM_PROTO_GetFieldsCounters done [09:07:40]requested_item shift.num is exist - process it [09:07:40]requested_item shift.opened is exist - process it [09:07:40]req_shift_opened [09:07:40]FM_GetShiftState [09:07:40]SAM_PROTO_GetShiftState [09:07:40]wFMCommunicate request_size=4 [09:07:40]MH_SAM_APDU [09:07:40]CAPDU: 80 13 01 00 [09:07:40]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:40]Read from MH i2c: E2 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 0E 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4F [09:07:40]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:07:40]wFMCommunicate OK [09:07:40]SAM_PROTO_GetShiftState done [09:07:40]FM_GetShiftState done [09:07:40]req_shift_opened done [09:07:40]requested_item shift.open_date is exist - process it [09:07:40]req_shift_open_date [09:07:40]req_shift_open_date done [09:07:40]produce_requested_data done [09:07:40]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117962,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:07:40]process_action_free close_receipt [09:07:40]json_value_free [09:07:40]json_value_free done [09:07:40]process_json_proto returns [09:07:40]Send response to host [09:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117962,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:07:40]free response buf [09:07:40]execute_script done [09:07:40]execute_script returns [09:07:40]free content buf [09:07:40]Sock 10.Close socket [09:07:40]Sock 10.Thread stoped [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:02]ConnectInit Can't connect to host [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]accept exits with 9 [09:09:09]New connection [09:09:09]New thread 3067284836 created [09:09:09]Thread 3067428196 joined [09:09:09]Waiting for new connection... [09:09:09] Sock 9.Parse request [09:09:09]Sock 9.Check first char [09:09:09]Sock 9.First char is OK [09:09:09]request: POST /json_proto HTTP/1.0 [09:09:09]Method: POST [09:09:09]URL: /json_proto [09:09:09]Method is POST - this is cgi request [09:09:09]url: /json_proto [09:09:09]query_string will be loaded in cgi processing [09:09:09]execute_cgi json_proto POST (null) [09:09:09]execute_cgi path=json_proto method=POST [09:09:09]POST find Content-Length [09:09:09]Host: 172.17.96.67:8080 [09:09:09]Content-Length: 677 [09:09:09]Content-Type: application/json [09:09:09] [09:09:09]POST finish read [09:09:09]Found Content-Length = 677 [09:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:09]execute_script... [09:09: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)245755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:09]POST & json_proto [09:09:09]process_json_proto [09:09:09]json parsed OK: [09:09:09]protocol is kg_v1.0 [09:09:09]action value=close_receipt [09:09:09]process_action close_receipt [09:09:09]cmd_close_receipt [09:09:09]MH_GetDate [09:09:09]Write to MH i2c: F0 00 00 FB 00 EA [09:09:09]Write i2c OK [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: F0 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: F0 09 00 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: F0 09 00 FB 00 00 B6 F7 21 67 47 6C 1F 67 61 [09:09:09]GetLastDocTimeStamp 1730279257 [09:09:09]current date 1730279350 [09:09:09]FM_GetShiftState [09:09:09]SAM_PROTO_GetShiftState [09:09:09]wFMCommunicate request_size=4 [09:09:09]MH_SAM_APDU [09:09:09]CAPDU: 80 13 01 00 [09:09:09]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [09:09:09]Write i2c OK [09:09:09]MH_I2C_Read... [09:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:09]Read from MH i2c: E2 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: E2 0E 00 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 51 [09:09:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:09:09]wFMCommunicate OK [09:09:09]SAM_PROTO_GetShiftState done [09:09:09]FM_GetShiftState done [09:09:09]opened in 1730246605 [09:09:09]opened+sec_in_day 1730333005 [09:09:09]quantity*price = 50041 [09:09:09]sum+1 = 50042 [09:09: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 23 30.10.2024 09:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117963 ФПД: 165884250569529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090910&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117963&fm=165884250569529&tin=02508201610067®Number=0000000000091782&sum=50000 [09:09:10]StoreToDocumentArchive [09:09:10]shift 545 fd 117963 [09:09:10]save to /storage/0545/doc_00117963 [09:09:10]save last doc name /storage/0545/doc_00117963 to /storage/kkm_last_doc_name [09:09:10]save OK [09:09:10]Clear old archive folders... [09:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:10]tlvbuf is 013C5840 [09:09:10]SAM_PROTO_ClearQueue [09:09:10]wFMCommunicate request_size=4 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 09 00 00 [09:09:10]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:09:10]RAPDU: 90 00 [09:09:10]wFMCommunicate OK [09:09:10]SAM_PROTO_ClearQueue done [09:09:10]KKMCreateOFDPacket [09:09:10]OFDProtocolAddRootSTLVToBuf [09:09:10]FM_MakeSignedData [09:09:10]FM_MakeSignedData [09:09:10]SAM_PROTO_SignData [09:09:10]wFMCommunicate request_size=4 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 0D 01 02 [09:09:10]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [09:09:10]RAPDU: 90 00 [09:09:10]wFMCommunicate OK [09:09:10]wFMCommunicate request_size=255 [09:09:10]MH_SAM_APDU [09:09: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 32 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 17 00 00 00 F4 03 04 00 B6 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CC 01 00 35 04 06 00 96 [09:09:10]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 00 00 00 F4 03 04 00 B6 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CC 01 00 35 04 06 00 96 00 00 B3 [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 03 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [09:09:11]RAPDU: 90 00 [09:09:11]wFMCommunicate OK [09:09:11]wFMCommunicate request_size=10 [09:09:11]MH_SAM_APDU [09:09:11]CAPDU: 80 0D 02 02 05 DE EF D4 3B 39 [09:09:11]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 DE EF D4 3B 39 00 00 A6 [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 03 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [09:09:11]RAPDU: 90 00 [09:09:11]wFMCommunicate OK [09:09:11]wFMCommunicate request_size=4 [09:09:11]MH_SAM_APDU [09:09:11]CAPDU: 80 0D 03 02 [09:09:11]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 0B 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 0B 00 0D 01 00 E9 1C D8 9C 18 33 5B F9 90 00 A2 [09:09:11]RAPDU: E9 1C D8 9C 18 33 5B F9 90 00 [09:09:11]wFMCommunicate OK [09:09:11]SAM_PROTO_SignData done [09:09:11]FM_MakeSignedData done [09:09:11]CreateOFDProtocolMessage [09:09:11]wFMCommunicate request_size=4 [09:09:11]MH_SAM_APDU [09:09:11]CAPDU: 80 11 00 00 [09:09:11]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 17 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E0 [09:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:09:11]wFMCommunicate OK [09:09:11]CreateOFDProtocolMessage done [09:09:11]OFDSenderStorePacket 117963 [09:09:11]StoreOFDPacket docnum=117963 [09:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C3 BA 07 01 86 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 00 00 00 F4 03 04 00 B6 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CC 01 00 35 04 06 00 96 DE EF D4 3B 39 E9 1C D8 9C 18 33 5B F9 [09:09:11]CheckFolder [09:09:11]dirname=/storage/ofd_packets [09:09:11]CheckFolder done [09:09:11]ProducePacketName [09:09:11]name=ofd_packets/00117963 [09:09:11]NVStorageSaveData ofd_packets/00117963 [09:09:11]File name is /storage/ofd_packets/00117963 [09:09:11]Write 301 bytes [09:09:11]NVStorageSaveData done [09:09:11]OFDSenderStorePacket done [09:09:11]KKMCreateOFDPacket done [09:09:11]NVStorageSaveData kkm_last_timestamp [09:09:11]File name is /storage/kkm_last_timestamp [09:09:11]Write 4 bytes [09:09:11]NVStorageSaveData done [09:09:11]ExternCall_PrintAddStr [09:09:11]wPrintStart [09:09:11]Write to MH i2c: 01 00 00 0F 01 10 [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 07 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [09:09:11]RasterBufferAndPrint [09:09:11]line Счет N : (1)245755 [09:09:11]line ИНН: 02508201610067 [09:09:11]line Контрольно-Кассовый Чек [09:09:11]line ПРОДАЖА [09:09:11]line ТРК (МРК, ГНК) : 21 [09:09:11]line Товар: 2710124130 [09:09:11]line Аи-92-К-2 [09:09:11]line 7.480 * 66.90 [09:09:11]line = 500.41 [09:09:11]line НДС 12% НСП 1% [09:09:11]line > о реализуемом товаре [09:09:11]line ОКРУГЛЕНИЕ: -0.41 [09:09:11]line ИТОГО: 500.00 [09:09:11]line Внесено: 500.00 [09:09:11]line СДАЧА: 0.00 [09:09:11]line НСП 1% : 4.43 [09:09:11]line НДС 12% : 53.14 [09:09:11]line Наличными: 500.00 [09:09:11]line Безнал.: 0.00 [09:09:11]line Место: АЗС № 173 "Партнер Нефть" [09:09:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:09:11]line СНО: Общий режим [09:09:11]line Чек 23 30.10.2024 09:09 [09:09:11]line Смена: 545 ФФД: 1.0 [09:09:11]line ЗНМ: 0300000115 [09:09:11]line РНМ: 0000000000091782 [09:09:11]line Версия ККМ: 001 [09:09:11]line ФМ: 0000000000871767 [09:09:11]line ФД: 117963 [09:09:11]line ФПД: 165884250569529 [09:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090910&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117963&fm=165884250569529&tin=02508201610067®Number=0000000000091782&sum=50000 [09:09:11]OFD Sender: Processing packet 117963 [packets to send 77, broken 76] [09:09:11]ProducePacketName [09:09:11]name=ofd_packets/00117963 [09:09:11]OFD Sender: To server: pG, [09:09:11]CommunicateWithHost lk.salyk.kg:30040 [09:09:11]ConnectInit lk.salyk.kg [09:09:11]written 0, free lines is 4095 [09:09:11]Connected sock=11 [09:09: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 36 37 0F 01 00 00 C3 BA 07 01 86 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 00 00 00 F4 03 04 00 B6 F7 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CB CC 01 00 35 04 06 00 96 DE EF D4 3B 39 E9 1C D8 9C 18 33 5B F9 [09:09: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 36 37 4F 00 00 00 48 C2 47 00 BD 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 36 37 10 04 04 00 CB CC 01 00 F4 03 04 00 6E A3 21 67 B6 04 01 00 00 F5 78 47 C4 91 9C 08 F5 [09:09:12]CommunicateWithHost err = 0 [09:09:12]CheckOFDResponse [09:09:12]1017 (14) - 77093643461234 [09:09:12]1041 (16) - 0000000000871767 [09:09:12]1040 (4) - 117963 [09:09:12]1012 (4) - 30.10.2024 03:09 [09:09:12]1206 (1) - 0 [09:09:12]OFD Sender: Remove packet 117963 [09:09:12]ProducePacketName [09:09:12]name=ofd_packets/00117963 [09:09:12]NVStorageDeleteData [09:09:12]Write to MH i2c: 01 00 00 39 01 3A [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 AB 0C F8 [09:09:12]RasterBufferAndPrint [09:09:12]line [09:09:12]line [09:09:12]line [09:09:12]line [09:09:12]line [09:09:12]written 0, free lines is 3247 [09:09:12]MH_Cut [09:09:12]Write to MH i2c: D1 01 00 40 01 01 13 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: D1 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: D1 01 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: D1 01 00 40 01 00 12 [09:09:12]Write to MH i2c: 01 00 00 41 01 42 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]OFD Sender: No OFD packet to send [09:09:12]*** Cut start [09:09:12]*** Purtial cut [09:09:12]*** Stage 1: CUTSNS_PIN = 1 [09:09:13]Read from MH i2c: 01 [09:09:13]MH_I2C_Read... [09:09:13]*** Stop cut motor [09:09:13]*** Cut end [09:09:13]Read from MH i2c: 01 07 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [09:09:13]process_action close_receipt done [09:09:13]requested_data is exist [09:09:13]produce_requested_data [09:09:13]requested_item fm.sn is exist - process it [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 11 00 00 [09:09:13]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 14 [09:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:09:13]wFMCommunicate OK [09:09:13]requested_item fd.num is exist - process it [09:09:13]SAM_PROTO_GetFieldsCounters [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 13 00 00 [09:09:13]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 62 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [09:09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_GetFieldsCounters done [09:09:13]requested_item shift.num is exist - process it [09:09:13]requested_item shift.opened is exist - process it [09:09:13]req_shift_opened [09:09:13]FM_GetShiftState [09:09:13]SAM_PROTO_GetShiftState [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 13 01 00 [09:09:13]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0E 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9A [09:09:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_GetShiftState done [09:09:13]FM_GetShiftState done [09:09:13]req_shift_opened done [09:09:13]requested_item shift.open_date is exist - process it [09:09:13]req_shift_open_date [09:09:13]req_shift_open_date done [09:09:13]produce_requested_data done [09:09:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117963,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:09:13]process_action_free close_receipt [09:09:13]json_value_free [09:09:13]json_value_free done [09:09:13]process_json_proto returns [09:09:13]Send response to host [09:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117963,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:09:13]free response buf [09:09:13]execute_script done [09:09:13]execute_script returns [09:09:13]free content buf [09:09:13]Sock 9.Close socket [09:09:13]Sock 9.Thread stoped [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [00:00:08]/dev/ttyS4 opened [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 3A [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005724FF (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 166869+1730112583=1730279452 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0xff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 3B [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30515 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 1C F8 21 67 47 6C 1F 67 D4 [09:10:52]Current date/time: 30.10.2024 09:10 [09:10:52]FM_Init [09:10:52]wFMConnect [09:10:52]MH_SAM_On [09:10:52]Write to MH i2c: E0 00 00 08 00 E7 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_init finished! [09:10:52]*** atr: [09:10:52]*** 0F 3B D5 18 FF 81 91 FE [09:10:52]*** 1F C3 80 73 C8 21 10 0A [09:10:52]*** 00 00 00 00 00 00 00 00 [09:10:52]*** 00 00 00 00 00 00 00 00 [09:10:52]*** 00 00 00 00 00 00 00 00 [09:10:52]*** 00 00 00 00 00 00 00 00 [09:10:52]*** 00 00 00 00 00 00 00 00 [09:10:52]*** 00 00 00 00 00 00 00 00 [09:10:52]Read from MH i2c: E0 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E0 10 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:10:52]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:10:52]wFMCommunicate request_size=10 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:10:52]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:10:52]RAPDU: 90 00 [09:10:52]wFMCommunicate OK [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 11 00 00 [09:10:52]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DB [09:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:10:52]wFMCommunicate OK [09:10:52]Detected FM SN is 0000000000871767 [09:10:52]Stored FM SN is 0000000000871767 [09:10:52]wFMCommunicate request_size=9 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 16 00 00 04 5E 2D 01 00 [09:10:52]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 5E 2D 01 00 00 00 1E [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:10:52]RAPDU: 90 00 [09:10:52]wFMCommunicate OK [09:10:52]FM PIN OK [09:10:52]wFMCommunicate request_size=8 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 14 04 00 03 02 00 01 [09:10:52]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:10:52]RAPDU: 90 00 [09:10:52]wFMCommunicate OK [09:10:52]wFMCommunicate request_size=13 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:10:52]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:10:52]RAPDU: 90 00 [09:10:52]wFMCommunicate OK [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 11 00 00 [09:10:52]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DF [09:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:10:52]wFMCommunicate OK [09:10:52]DocumentArchiveInit [09:10:52]Start Httpd... [09:10:52]Httpd thread 3067694436 created [09:10:52]Write to MH i2c: 01 00 00 0F 00 0F [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: 01 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: 01 07 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:10:52]MH Int Process started [09:10:52]Allocated Socket 8 [09:10:52]Bind OK [09:10:52]Listen OK [09:10:52]httpd running on port 8080 [09:10:52]Waiting for new connection... [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:31]accept exits with 9 [09:11:31]New connection [09:11:31]New thread 3067407716 created [09:11:31]Waiting for new connection... [09:11:31] Sock 9.Parse request [09:11:31]Sock 9.Check first char [09:11:31]Sock 9.First char is OK [09:11:31]request: POST /json_proto HTTP/1.0 [09:11:31]Method: POST [09:11:31]URL: /json_proto [09:11:31]Method is POST - this is cgi request [09:11:31]url: /json_proto [09:11:31]query_string will be loaded in cgi processing [09:11:31]execute_cgi json_proto POST (null) [09:11:31]execute_cgi path=json_proto method=POST [09:11:31]POST find Content-Length [09:11:31]Host: 172.17.96.67:8080 [09:11:31]Content-Length: 682 [09:11:31]Content-Type: application/json [09:11:31] [09:11:31]POST finish read [09:11:31]Found Content-Length = 682 [09:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:11:31]execute_script... [09:11: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)245756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:11:31]POST & json_proto [09:11:31]process_json_proto [09:11:31]json parsed OK: [09:11:31]protocol is kg_v1.0 [09:11:31]action value=close_receipt [09:11:31]process_action close_receipt [09:11:31]cmd_close_receipt [09:11:31]MH_GetDate [09:11:31]Write to MH i2c: F0 00 00 10 00 FF [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: F0 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: F0 09 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: F0 09 00 10 00 00 43 F8 21 67 47 6C 1F 67 04 [09:11:31]GetLastDocTimeStamp 1730279350 [09:11:31]current date 1730279491 [09:11:31]FM_GetShiftState [09:11:31]SAM_PROTO_GetShiftState [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 13 01 00 [09:11:31]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 0E 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 66 [09:11:31]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:11:31]wFMCommunicate OK [09:11:31]SAM_PROTO_GetShiftState done [09:11:31]FM_GetShiftState done [09:11:31]opened in 1730246605 [09:11:31]opened+sec_in_day 1730333005 [09:11:31]quantity*price = 100015 [09:11:31]sum+1 = 100017 [09:11: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 24 30.10.2024 09:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117964 ФПД: 2590394869982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091131&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117964&fm=2590394869982&tin=02508201610067®Number=0000000000091782&sum=100000 [09:11:32]StoreToDocumentArchive [09:11:32]shift 545 fd 117964 [09:11:32]save to /storage/0545/doc_00117964 [09:11:32]save last doc name /storage/0545/doc_00117964 to /storage/kkm_last_doc_name [09:11:32]save OK [09:11:32]Clear old archive folders... [09:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:32]tlvbuf is 004AEBA0 [09:11:32]SAM_PROTO_ClearQueue [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 09 00 00 [09:11:32]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_ClearQueue done [09:11:32]KKMCreateOFDPacket [09:11:32]OFDProtocolAddRootSTLVToBuf [09:11:32]FM_MakeSignedData [09:11:32]FM_MakeSignedData [09:11:32]SAM_PROTO_SignData [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 0D 01 02 [09:11:32]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]wFMCommunicate request_size=255 [09:11:32]MH_SAM_APDU [09:11: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 32 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 18 00 00 00 F4 03 04 00 43 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CC 01 00 35 04 06 00 02 [09:11:32]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 18 00 00 00 F4 03 04 00 43 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CC 01 00 35 04 06 00 02 00 00 BD [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]wFMCommunicate request_size=10 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 0D 02 02 05 5B 1F 90 E8 DE [09:11:32]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 5B 1F 90 E8 DE 00 00 75 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]OFD Sender: No OFD packet to send [09:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 0D 03 02 [09:11:32]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0B 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0B 00 22 00 00 D3 36 24 24 C0 FE 73 85 90 00 A5 [09:11:32]RAPDU: D3 36 24 24 C0 FE 73 85 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_SignData done [09:11:32]FM_MakeSignedData done [09:11:32]CreateOFDProtocolMessage [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 11 00 00 [09:11:32]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F4 [09:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:11:32]wFMCommunicate OK [09:11:32]CreateOFDProtocolMessage done [09:11:32]OFDSenderStorePacket 117964 [09:11:32]StoreOFDPacket docnum=117964 [09:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9D F9 07 01 AB D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 43 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CC 01 00 35 04 06 00 02 5B 1F 90 E8 DE D3 36 24 24 C0 FE 73 85 [09:11:32]CheckFolder [09:11:32]dirname=/storage/ofd_packets [09:11:32]CheckFolder done [09:11:32]ProducePacketName [09:11:32]name=ofd_packets/00117964 [09:11:32]NVStorageSaveData ofd_packets/00117964 [09:11:32]File name is /storage/ofd_packets/00117964 [09:11:32]Write 301 bytes [09:11:32]NVStorageSaveData done [09:11:32]OFDSenderStorePacket done [09:11:32]KKMCreateOFDPacket done [09:11:32]NVStorageSaveData kkm_last_timestamp [09:11:32]File name is /storage/kkm_last_timestamp [09:11:32]Write 4 bytes [09:11:32]NVStorageSaveData done [09:11:32]ExternCall_PrintAddStr [09:11:32]wPrintStart [09:11:32]Write to MH i2c: 01 00 00 24 00 24 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [09:11:32]RasterBufferAndPrint [09:11:32]line Счет N : (1)245756 [09:11:32]line ИНН: 02508201610067 [09:11:32]line Контрольно-Кассовый Чек [09:11:32]line ПРОДАЖА [09:11:32]line ТРК (МРК, ГНК) : 21 [09:11:32]line Товар: 2710124130 [09:11:32]line Аи-92-К-2 [09:11:32]line 14.950 * 66.90 [09:11:32]line = 1000.16 [09:11:32]line НДС 12% НСП 1% [09:11:32]line > о реализуемом товаре [09:11:32]line ОКРУГЛЕНИЕ: -0.16 [09:11:32]line ИТОГО: 1000.00 [09:11:32]line Внесено: 1000.00 [09:11:32]line СДАЧА: 0.00 [09:11:32]line НСП 1% : 8.85 [09:11:32]line НДС 12% : 106.21 [09:11:32]line Наличными: 1000.00 [09:11:32]line Безнал.: 0.00 [09:11:32]line Место: АЗС № 173 "Партнер Нефть" [09:11:32]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:11:32]line СНО: Общий режим [09:11:32]line Чек 24 30.10.2024 09:11 [09:11:32]line Смена: 545 ФФД: 1.0 [09:11:32]line ЗНМ: 0300000115 [09:11:32]line РНМ: 0000000000091782 [09:11:32]line Версия ККМ: 001 [09:11:32]line ФМ: 0000000000871767 [09:11:32]line ФД: 117964 [09:11:32]line ФПД: 2590394869982 [09:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091131&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117964&fm=2590394869982&tin=02508201610067®Number=0000000000091782&sum=100000 [09:11:32]written 0, free lines is 4095 [09:11:32]OFD Sender: Processing packet 117964 [packets to send 77, broken 76] [09:11:32]ProducePacketName [09:11:32]name=ofd_packets/00117964 [09:11:32]OFD Sender: To server: pG, [09:11:32]CommunicateWithHost lk.salyk.kg:30040 [09:11:32]ConnectInit lk.salyk.kg [09:11:32]Connected sock=10 [09:11: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 36 37 0F 01 00 00 9D F9 07 01 AB D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 43 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CC CC 01 00 35 04 06 00 02 5B 1F 90 E8 DE D3 36 24 24 C0 FE 73 85 [09:11:33]Write to MH i2c: 01 00 00 4E 00 4E [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 AB 0C 0C [09:11:33]RasterBufferAndPrint [09:11:33]line [09:11:33]line [09:11:33]line [09:11:33]line [09:11:33]line [09:11: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 36 37 4F 00 00 00 49 7D 47 00 7D 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 36 37 10 04 04 00 CC CC 01 00 F4 03 04 00 FB A3 21 67 B6 04 01 00 00 84 D9 0F D5 C1 65 0E CE [09:11:33]CommunicateWithHost err = 0 [09:11:33]CheckOFDResponse [09:11:33]1017 (14) - 77093643461234 [09:11:33]1041 (16) - 0000000000871767 [09:11:33]1040 (4) - 117964 [09:11:33]1012 (4) - 30.10.2024 03:11 [09:11:33]1206 (1) - 0 [09:11:33]OFD Sender: Remove packet 117964 [09:11:33]ProducePacketName [09:11:33]name=ofd_packets/00117964 [09:11:33]NVStorageDeleteData [09:11:33]written 0, free lines is 3257 [09:11:33]MH_Cut [09:11:33]Write to MH i2c: D1 01 00 55 00 01 27 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D1 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D1 01 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D1 01 00 55 00 00 26 [09:11:33]Write to MH i2c: 01 00 00 56 00 56 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]OFD Sender: No OFD packet to send [09:11:34]*** Cut start [09:11:34]*** Purtial cut [09:11:34]*** Stage 1: CUTSNS_PIN = 1 [09:11:34]Read from MH i2c: 01 [09:11:34]MH_I2C_Read... [09:11:34]*** Stop cut motor [09:11:34]*** Cut end [09:11:34]Read from MH i2c: 01 07 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [09:11:34]process_action close_receipt done [09:11:34]requested_data is exist [09:11:34]produce_requested_data [09:11:34]requested_item fm.sn is exist - process it [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 11 00 00 [09:11:34]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 17 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 28 [09:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:11:34]wFMCommunicate OK [09:11:34]requested_item fd.num is exist - process it [09:11:34]SAM_PROTO_GetFieldsCounters [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 13 00 00 [09:11:34]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 62 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [09:11: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_GetFieldsCounters done [09:11:34]requested_item shift.num is exist - process it [09:11:34]requested_item shift.opened is exist - process it [09:11:34]req_shift_opened [09:11:34]FM_GetShiftState [09:11:34]SAM_PROTO_GetShiftState [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 13 01 00 [09:11:34]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0E 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AE [09:11:34]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_GetShiftState done [09:11:34]FM_GetShiftState done [09:11:34]req_shift_opened done [09:11:34]requested_item shift.open_date is exist - process it [09:11:34]req_shift_open_date [09:11:34]req_shift_open_date done [09:11:34]produce_requested_data done [09:11:34]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117964,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:11:34]process_action_free close_receipt [09:11:34]json_value_free [09:11:34]json_value_free done [09:11:34]process_json_proto returns [09:11:34]Send response to host [09:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117964,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:11:34]free response buf [09:11:34]execute_script done [09:11:34]execute_script returns [09:11:34]free content buf [09:11:34]Sock 9.Close socket [09:11:34]Sock 9.Thread stoped [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:39]accept exits with 7 [09:12:39]New connection [09:12:39]New thread 3067264356 created [09:12:39]Thread 3067407716 joined [09:12:39]Waiting for new connection... [09:12:39] Sock 7.Parse request [09:12:39]Sock 7.Check first char [09:12:39]Sock 7.First char is OK [09:12:39]request: POST /json_proto HTTP/1.0 [09:12:39]Method: POST [09:12:39]URL: /json_proto [09:12:39]Method is POST - this is cgi request [09:12:39]url: /json_proto [09:12:39]query_string will be loaded in cgi processing [09:12:39]execute_cgi json_proto POST (null) [09:12:39]execute_cgi path=json_proto method=POST [09:12:39]POST find Content-Length [09:12:39]Host: 172.17.96.67:8080 [09:12:39]Content-Length: 677 [09:12:39]Content-Type: application/json [09:12:39] [09:12:39]POST finish read [09:12:39]Found Content-Length = 677 [09:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:39]execute_script... [09:12: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)245757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:39]POST & json_proto [09:12:39]process_json_proto [09:12:39]json parsed OK: [09:12:39]protocol is kg_v1.0 [09:12:39]action value=close_receipt [09:12:39]process_action close_receipt [09:12:39]cmd_close_receipt [09:12:39]MH_GetDate [09:12:39]Write to MH i2c: F0 00 00 5A 00 49 [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: F0 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: F0 09 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: F0 09 00 5A 00 00 88 F8 21 67 47 6C 1F 67 93 [09:12:39]GetLastDocTimeStamp 1730279491 [09:12:39]current date 1730279560 [09:12:39]FM_GetShiftState [09:12:39]SAM_PROTO_GetShiftState [09:12:39]wFMCommunicate request_size=4 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 13 01 00 [09:12:39]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 0E 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B0 [09:12:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:12:39]wFMCommunicate OK [09:12:39]SAM_PROTO_GetShiftState done [09:12:39]FM_GetShiftState done [09:12:39]opened in 1730246605 [09:12:39]opened+sec_in_day 1730333005 [09:12:39]quantity*price = 20003 [09:12:39]sum+1 = 20004 [09:12:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 25 30.10.2024 09:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117965 ФПД: 18878928222927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091240&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117965&fm=18878928222927&tin=02508201610067®Number=0000000000091782&sum=20000 [09:12:40]StoreToDocumentArchive [09:12:40]shift 545 fd 117965 [09:12:40]save to /storage/0545/doc_00117965 [09:12:40]save last doc name /storage/0545/doc_00117965 to /storage/kkm_last_doc_name [09:12:40]save OK [09:12:40]Clear old archive folders... [09:12:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:40]tlvbuf is 00497B40 [09:12:40]SAM_PROTO_ClearQueue [09:12:40]wFMCommunicate request_size=4 [09:12:40]MH_SAM_APDU [09:12:40]CAPDU: 80 09 00 00 [09:12:40]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 03 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [09:12:40]RAPDU: 90 00 [09:12:40]wFMCommunicate OK [09:12:40]SAM_PROTO_ClearQueue done [09:12:40]KKMCreateOFDPacket [09:12:40]OFDProtocolAddRootSTLVToBuf [09:12:40]FM_MakeSignedData [09:12:40]FM_MakeSignedData [09:12:40]SAM_PROTO_SignData [09:12:40]wFMCommunicate request_size=4 [09:12:40]MH_SAM_APDU [09:12:40]CAPDU: 80 0D 01 02 [09:12:40]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 03 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [09:12:40]RAPDU: 90 00 [09:12:40]wFMCommunicate OK [09:12:40]wFMCommunicate request_size=255 [09:12:40]MH_SAM_APDU [09:12: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 32 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 19 00 00 00 F4 03 04 00 88 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CC 01 00 35 04 06 00 11 [09:12:40]Write to MH i2c: E2 02 01 6A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 00 00 00 F4 03 04 00 88 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CC 01 00 35 04 06 00 11 00 00 25 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [09:12:41]RAPDU: 90 00 [09:12:41]wFMCommunicate OK [09:12:41]wFMCommunicate request_size=10 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 0D 02 02 05 2B 97 CF 7A CF [09:12:41]Write to MH i2c: E2 0D 00 6B 00 80 0D 02 02 05 00 2B 97 CF 7A CF 00 00 C9 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [09:12:41]RAPDU: 90 00 [09:12:41]wFMCommunicate OK [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 0D 03 02 [09:12:41]Write to MH i2c: E2 08 00 6C 00 80 0D 03 02 00 00 00 00 E7 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 0B 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 0B 00 6C 00 00 5A 49 79 66 55 75 F8 B0 90 00 DC [09:12:41]RAPDU: 5A 49 79 66 55 75 F8 B0 90 00 [09:12:41]wFMCommunicate OK [09:12:41]SAM_PROTO_SignData done [09:12:41]FM_MakeSignedData done [09:12:41]CreateOFDProtocolMessage [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 11 00 00 [09:12:41]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 17 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3E [09:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:12:41]wFMCommunicate OK [09:12:41]CreateOFDProtocolMessage done [09:12:41]OFDSenderStorePacket 117965 [09:12:41]StoreOFDPacket docnum=117965 [09:12:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DE C8 07 01 7F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 00 00 00 F4 03 04 00 88 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CC 01 00 35 04 06 00 11 2B 97 CF 7A CF 5A 49 79 66 55 75 F8 B0 [09:12:41]CheckFolder [09:12:41]dirname=/storage/ofd_packets [09:12:41]CheckFolder done [09:12:41]ProducePacketName [09:12:41]name=ofd_packets/00117965 [09:12:41]NVStorageSaveData ofd_packets/00117965 [09:12:41]File name is /storage/ofd_packets/00117965 [09:12:41]Write 301 bytes [09:12:41]NVStorageSaveData done [09:12:41]OFDSenderStorePacket done [09:12:41]KKMCreateOFDPacket done [09:12:41]NVStorageSaveData kkm_last_timestamp [09:12:41]File name is /storage/kkm_last_timestamp [09:12:41]Write 4 bytes [09:12:41]NVStorageSaveData done [09:12:41]ExternCall_PrintAddStr [09:12:41]wPrintStart [09:12:41]Write to MH i2c: 01 00 00 6E 00 6E [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: 01 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: 01 07 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [09:12:41]RasterBufferAndPrint [09:12:41]line Счет N : (1)245757 [09:12:41]line ИНН: 02508201610067 [09:12:41]line Контрольно-Кассовый Чек [09:12:41]line ПРОДАЖА [09:12:41]line ТРК (МРК, ГНК) : 21 [09:12:41]line Товар: 2710124130 [09:12:41]line Аи-92-К-2 [09:12:41]line 2.990 * 66.90 [09:12:41]line = 200.03 [09:12:41]line НДС 12% НСП 1% [09:12:41]line > о реализуемом товаре [09:12:41]line ОКРУГЛЕНИЕ: -0.03 [09:12:41]line ИТОГО: 200.00 [09:12:41]line Внесено: 200.00 [09:12:41]line СДАЧА: 0.00 [09:12:41]line НСП 1% : 1.77 [09:12:41]line НДС 12% : 21.24 [09:12:41]line Наличными: 200.00 [09:12:41]line Безнал.: 0.00 [09:12:41]line Место: АЗС № 173 "Партнер Нефть" [09:12:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:12:41]line СНО: Общий режим [09:12:41]line Чек 25 30.10.2024 09:12 [09:12:41]line Смена: 545 ФФД: 1.0 [09:12:41]line ЗНМ: 0300000115 [09:12:41]line РНМ: 0000000000091782 [09:12:41]line Версия ККМ: 001 [09:12:41]line ФМ: 0000000000871767 [09:12:41]line ФД: 117965 [09:12:41]line ФПД: 18878928222927 [09:12:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091240&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117965&fm=18878928222927&tin=02508201610067®Number=0000000000091782&sum=20000 [09:12:41]written 0, free lines is 4095 [09:12:41]OFD Sender: Processing packet 117965 [packets to send 77, broken 76] [09:12:41]ProducePacketName [09:12:41]name=ofd_packets/00117965 [09:12:41]OFD Sender: To server: pG, [09:12:41]CommunicateWithHost lk.salyk.kg:30040 [09:12:41]ConnectInit lk.salyk.kg [09:12:41]Connected sock=10 [09:12:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DE C8 07 01 7F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 00 00 00 F4 03 04 00 88 F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CC 01 00 35 04 06 00 11 2B 97 CF 7A CF 5A 49 79 66 55 75 F8 B0 [09:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 AC 43 47 00 93 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CD CC 01 00 F4 03 04 00 40 A4 21 67 B6 04 01 00 00 A3 68 29 51 A6 AE 7D B8 [09:12:41]CommunicateWithHost err = 0 [09:12:41]CheckOFDResponse [09:12:41]1017 (14) - 77093643461234 [09:12:41]1041 (16) - 0000000000871767 [09:12:41]1040 (4) - 117965 [09:12:41]1012 (4) - 30.10.2024 03:13 [09:12:41]1206 (1) - 0 [09:12:41]OFD Sender: Remove packet 117965 [09:12:41]ProducePacketName [09:12:41]name=ofd_packets/00117965 [09:12:41]NVStorageDeleteData [09:12:41]Write to MH i2c: 01 00 00 98 00 98 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: 01 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: 01 07 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 AA 0C 55 [09:12:41]RasterBufferAndPrint [09:12:41]line [09:12:41]line [09:12:41]line [09:12:41]line [09:12:41]line [09:12:41]written 0, free lines is 3247 [09:12:41]MH_Cut [09:12:41]Write to MH i2c: D1 01 00 9F 00 01 71 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: D1 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: D1 01 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: D1 01 00 9F 00 00 70 [09:12:41]Write to MH i2c: 01 00 00 A0 00 A0 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:42]OFD Sender: No OFD packet to send [09:12:42]*** Cut start [09:12:42]*** Purtial cut [09:12:42]*** Stage 1: CUTSNS_PIN = 1 [09:12:42]Read from MH i2c: 01 [09:12:42]MH_I2C_Read... [09:12:42]*** Stop cut motor [09:12:42]*** Cut end [09:12:42]Read from MH i2c: 01 07 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 FF 0F B5 [09:12:42]process_action close_receipt done [09:12:42]requested_data is exist [09:12:42]produce_requested_data [09:12:42]requested_item fm.sn is exist - process it [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 11 00 00 [09:12:42]Write to MH i2c: E2 08 00 A1 00 80 11 00 00 00 00 00 00 1B [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 17 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 17 00 A1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 72 [09:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:12:42]wFMCommunicate OK [09:12:42]requested_item fd.num is exist - process it [09:12:42]SAM_PROTO_GetFieldsCounters [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 13 00 00 [09:12:42]Write to MH i2c: E2 08 00 A2 00 80 13 00 00 00 00 00 00 1E [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:43]Read from MH i2c: E2 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 62 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 62 00 A2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [09:12: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:43]wFMCommunicate OK [09:12:43]SAM_PROTO_GetFieldsCounters done [09:12:43]requested_item shift.num is exist - process it [09:12:43]requested_item shift.opened is exist - process it [09:12:43]req_shift_opened [09:12:43]FM_GetShiftState [09:12:43]SAM_PROTO_GetShiftState [09:12:43]wFMCommunicate request_size=4 [09:12:43]MH_SAM_APDU [09:12:43]CAPDU: 80 13 01 00 [09:12:43]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:43]Read from MH i2c: E2 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 0E 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F8 [09:12:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:12:43]wFMCommunicate OK [09:12:43]SAM_PROTO_GetShiftState done [09:12:43]FM_GetShiftState done [09:12:43]req_shift_opened done [09:12:43]requested_item shift.open_date is exist - process it [09:12:43]req_shift_open_date [09:12:43]req_shift_open_date done [09:12:43]produce_requested_data done [09:12:43]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117965,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:12:43]process_action_free close_receipt [09:12:43]json_value_free [09:12:43]json_value_free done [09:12:43]process_json_proto returns [09:12:43]Send response to host [09:12:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117965,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:12:43]free response buf [09:12:43]execute_script done [09:12:43]execute_script returns [09:12:43]free content buf [09:12:43]Sock 7.Close socket [09:12:43]Sock 7.Thread stoped [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:06]accept exits with 9 [09:14:06]New connection [09:14:06]New thread 3067407716 created [09:14:06]Thread 3067264356 joined [09:14:06]Waiting for new connection... [09:14:06] Sock 9.Parse request [09:14:06]Sock 9.Check first char [09:14:06]Sock 9.First char is OK [09:14:06]request: POST /json_proto HTTP/1.0 [09:14:06]Method: POST [09:14:06]URL: /json_proto [09:14:06]Method is POST - this is cgi request [09:14:06]url: /json_proto [09:14:06]query_string will be loaded in cgi processing [09:14:06]execute_cgi json_proto POST (null) [09:14:06]execute_cgi path=json_proto method=POST [09:14:06]POST find Content-Length [09:14:06]Host: 172.17.96.67:8080 [09:14:06]Content-Length: 682 [09:14:06]Content-Type: application/json [09:14:06] [09:14:06]POST finish read [09:14:06]Found Content-Length = 682 [09:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:14:06]execute_script... [09:14: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)245758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:14:06]POST & json_proto [09:14:06]process_json_proto [09:14:06]json parsed OK: [09:14:06]protocol is kg_v1.0 [09:14:06]action value=close_receipt [09:14:06]process_action close_receipt [09:14:06]cmd_close_receipt [09:14:06]MH_GetDate [09:14:06]Write to MH i2c: F0 00 00 A4 00 93 [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: F0 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: F0 09 00 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: F0 09 00 A4 00 00 DE F8 21 67 47 6C 1F 67 33 [09:14:06]GetLastDocTimeStamp 1730279560 [09:14:06]current date 1730279646 [09:14:06]FM_GetShiftState [09:14:06]SAM_PROTO_GetShiftState [09:14:06]wFMCommunicate request_size=4 [09:14:06]MH_SAM_APDU [09:14:06]CAPDU: 80 13 01 00 [09:14:06]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:06]Read from MH i2c: E2 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: E2 0E 00 [09:14:06]MH_I2C_Read... [09:14:06]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FA [09:14:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:14:06]wFMCommunicate OK [09:14:06]SAM_PROTO_GetShiftState done [09:14:06]FM_GetShiftState done [09:14:06]opened in 1730246605 [09:14:06]opened+sec_in_day 1730333005 [09:14:06]quantity*price = 100015 [09:14:06]sum+1 = 100017 [09:14:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 26 30.10.2024 09:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117966 ФПД: 24398780719570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091407&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117966&fm=24398780719570&tin=02508201610067®Number=0000000000091782&sum=100000 [09:14:07]StoreToDocumentArchive [09:14:07]shift 545 fd 117966 [09:14:07]save to /storage/0545/doc_00117966 [09:14:07]save last doc name /storage/0545/doc_00117966 to /storage/kkm_last_doc_name [09:14:07]save OK [09:14:07]Clear old archive folders... [09:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:07]tlvbuf is 0049C120 [09:14:07]SAM_PROTO_ClearQueue [09:14:07]wFMCommunicate request_size=4 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 09 00 00 [09:14:07]Write to MH i2c: E2 08 00 B2 00 80 09 00 00 00 00 00 00 24 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]SAM_PROTO_ClearQueue done [09:14:07]KKMCreateOFDPacket [09:14:07]OFDProtocolAddRootSTLVToBuf [09:14:07]FM_MakeSignedData [09:14:07]FM_MakeSignedData [09:14:07]SAM_PROTO_SignData [09:14:07]wFMCommunicate request_size=4 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 0D 01 02 [09:14:07]Write to MH i2c: E2 08 00 B3 00 80 0D 01 02 00 00 00 00 2C [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]wFMCommunicate request_size=255 [09:14:07]MH_SAM_APDU [09:14: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 32 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 1A 00 00 00 F4 03 04 00 DF F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CC 01 00 35 04 06 00 16 [09:14:07]Write to MH i2c: E2 02 01 B4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1A 00 00 00 F4 03 04 00 DF F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CC 01 00 35 04 06 00 16 00 00 05 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]wFMCommunicate request_size=10 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 0D 02 02 05 30 C8 A8 61 D2 [09:14:07]Write to MH i2c: E2 0D 00 B5 00 80 0D 02 02 05 00 30 C8 A8 61 D2 00 00 0C [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]wFMCommunicate request_size=4 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 0D 03 02 [09:14:07]Write to MH i2c: E2 08 00 B6 00 80 0D 03 02 00 00 00 00 31 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 0B 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 0B 00 B6 00 00 B7 A2 68 4E 9F 09 9C 51 90 00 D6 [09:14:07]RAPDU: B7 A2 68 4E 9F 09 9C 51 90 00 [09:14:07]wFMCommunicate OK [09:14:07]SAM_PROTO_SignData done [09:14:07]FM_MakeSignedData done [09:14:07]CreateOFDProtocolMessage [09:14:07]wFMCommunicate request_size=4 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 11 00 00 [09:14:07]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 17 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 88 [09:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:14:07]wFMCommunicate OK [09:14:07]CreateOFDProtocolMessage done [09:14:07]OFDSenderStorePacket 117966 [09:14:07]StoreOFDPacket docnum=117966 [09:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 11 4A 07 01 67 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 DF F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CC 01 00 35 04 06 00 16 30 C8 A8 61 D2 B7 A2 68 4E 9F 09 9C 51 [09:14:07]CheckFolder [09:14:07]dirname=/storage/ofd_packets [09:14:07]CheckFolder done [09:14:07]ProducePacketName [09:14:07]name=ofd_packets/00117966 [09:14:07]NVStorageSaveData ofd_packets/00117966 [09:14:07]File name is /storage/ofd_packets/00117966 [09:14:07]Write 301 bytes [09:14:07]NVStorageSaveData done [09:14:07]OFDSenderStorePacket done [09:14:07]KKMCreateOFDPacket done [09:14:07]NVStorageSaveData kkm_last_timestamp [09:14:07]File name is /storage/kkm_last_timestamp [09:14:07]Write 4 bytes [09:14:07]NVStorageSaveData done [09:14:07]ExternCall_PrintAddStr [09:14:07]wPrintStart [09:14:07]Write to MH i2c: 01 00 00 B8 00 B8 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 07 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 FF 0F CD [09:14:07]RasterBufferAndPrint [09:14:07]line Счет N : (1)245758 [09:14:07]line ИНН: 02508201610067 [09:14:07]line Контрольно-Кассовый Чек [09:14:07]line ПРОДАЖА [09:14:07]line ТРК (МРК, ГНК) : 21 [09:14:07]line Товар: 2710124130 [09:14:07]line Аи-92-К-2 [09:14:07]line 14.950 * 66.90 [09:14:07]line = 1000.16 [09:14:07]line НДС 12% НСП 1% [09:14:07]line > о реализуемом товаре [09:14:07]line ОКРУГЛЕНИЕ: -0.16 [09:14:07]line ИТОГО: 1000.00 [09:14:07]line Внесено: 1000.00 [09:14:07]line СДАЧА: 0.00 [09:14:07]line НСП 1% : 8.85 [09:14:07]line НДС 12% : 106.21 [09:14:07]line Наличными: 1000.00 [09:14:07]line Безнал.: 0.00 [09:14:07]line Место: АЗС № 173 "Партнер Нефть" [09:14:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:14:07]line СНО: Общий режим [09:14:07]line Чек 26 30.10.2024 09:14 [09:14:07]line Смена: 545 ФФД: 1.0 [09:14:07]line ЗНМ: 0300000115 [09:14:07]line РНМ: 0000000000091782 [09:14:07]line Версия ККМ: 001 [09:14:07]line ФМ: 0000000000871767 [09:14:07]line ФД: 117966 [09:14:07]line ФПД: 24398780719570 [09:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091407&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117966&fm=24398780719570&tin=02508201610067®Number=0000000000091782&sum=100000 [09:14:08]written 0, free lines is 4095 [09:14:08]OFD Sender: Processing packet 117966 [packets to send 77, broken 76] [09:14:08]ProducePacketName [09:14:08]name=ofd_packets/00117966 [09:14:08]OFD Sender: To server: pG, [09:14:08]CommunicateWithHost lk.salyk.kg:30040 [09:14:08]ConnectInit lk.salyk.kg [09:14:08]Connected sock=10 [09:14: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 36 37 0F 01 00 00 11 4A 07 01 67 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 DF F8 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CC 01 00 35 04 06 00 16 30 C8 A8 61 D2 B7 A2 68 4E 9F 09 9C 51 [09:14: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 36 37 4F 00 00 00 3D 5A 47 00 2E 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 CE CC 01 00 F4 03 04 00 97 A4 21 67 B6 04 01 00 00 14 17 D6 09 5E 1F 4F 82 [09:14:08]CommunicateWithHost err = 0 [09:14:08]CheckOFDResponse [09:14:08]1017 (14) - 77093643461234 [09:14:08]1041 (16) - 0000000000871767 [09:14:08]1040 (4) - 117966 [09:14:08]1012 (4) - 30.10.2024 03:14 [09:14:08]1206 (1) - 0 [09:14:08]OFD Sender: Remove packet 117966 [09:14:08]ProducePacketName [09:14:08]name=ofd_packets/00117966 [09:14:08]NVStorageDeleteData [09:14:08]Write to MH i2c: 01 00 00 E2 00 E2 [09:14:08]Write i2c OK [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: 01 [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: 01 07 00 [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 AD 0C A2 [09:14:08]RasterBufferAndPrint [09:14:08]line [09:14:08]line [09:14:08]line [09:14:08]line [09:14:08]line [09:14:08]written 0, free lines is 3248 [09:14:08]MH_Cut [09:14:08]Write to MH i2c: D1 01 00 E9 00 01 BB [09:14:08]Write i2c OK [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: D1 [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: D1 01 00 [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: D1 01 00 E9 00 00 BA [09:14:08]Write to MH i2c: 01 00 00 EA 00 EA [09:14:08]Write i2c OK [09:14:08]MH_I2C_Read... [09:14:09]OFD Sender: No OFD packet to send [09:14:09]*** Cut start [09:14:09]*** Purtial cut [09:14:09]*** Stage 1: CUTSNS_PIN = 1 [09:14:09]Read from MH i2c: 01 [09:14:09]MH_I2C_Read... [09:14:09]*** Stop cut motor [09:14:09]*** Cut end [09:14:09]Read from MH i2c: 01 07 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: 01 07 00 EA 00 00 00 00 00 00 FF 0F FF [09:14:09]process_action close_receipt done [09:14:09]requested_data is exist [09:14:09]produce_requested_data [09:14:09]requested_item fm.sn is exist - process it [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 11 00 00 [09:14:09]Write to MH i2c: E2 08 00 EB 00 80 11 00 00 00 00 00 00 65 [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 17 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 17 00 EB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BC [09:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:14:09]wFMCommunicate OK [09:14:09]requested_item fd.num is exist - process it [09:14:09]SAM_PROTO_GetFieldsCounters [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 13 00 00 [09:14:09]Write to MH i2c: E2 08 00 EC 00 80 13 00 00 00 00 00 00 68 [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 62 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 62 00 EC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [09:14: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 CE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:10]wFMCommunicate OK [09:14:10]SAM_PROTO_GetFieldsCounters done [09:14:10]requested_item shift.num is exist - process it [09:14:10]requested_item shift.opened is exist - process it [09:14:10]req_shift_opened [09:14:10]FM_GetShiftState [09:14:10]SAM_PROTO_GetShiftState [09:14:10]wFMCommunicate request_size=4 [09:14:10]MH_SAM_APDU [09:14:10]CAPDU: 80 13 01 00 [09:14:10]Write to MH i2c: E2 08 00 ED 00 80 13 01 00 00 00 00 00 6A [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 0E 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 0E 00 ED 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 42 [09:14:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:14:10]wFMCommunicate OK [09:14:10]SAM_PROTO_GetShiftState done [09:14:10]FM_GetShiftState done [09:14:10]req_shift_opened done [09:14:10]requested_item shift.open_date is exist - process it [09:14:10]req_shift_open_date [09:14:10]req_shift_open_date done [09:14:10]produce_requested_data done [09:14:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117966,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:14:10]process_action_free close_receipt [09:14:10]json_value_free [09:14:10]json_value_free done [09:14:10]process_json_proto returns [09:14:10]Send response to host [09:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117966,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:14:10]free response buf [09:14:10]execute_script done [09:14:10]execute_script returns [09:14:10]free content buf [09:14:10]Sock 9.Close socket [09:14:10]Sock 9.Thread stoped [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:25]accept exits with 7 [09:15:25]New connection [09:15:25]New thread 3067264356 created [09:15:25]Thread 3067407716 joined [09:15:25]Waiting for new connection... [09:15:25] Sock 7.Parse request [09:15:25]Sock 7.Check first char [09:15:25]Sock 7.First char is OK [09:15:25]request: POST /json_proto HTTP/1.0 [09:15:25]Method: POST [09:15:25]URL: /json_proto [09:15:25]Method is POST - this is cgi request [09:15:25]url: /json_proto [09:15:25]query_string will be loaded in cgi processing [09:15:25]execute_cgi json_proto POST (null) [09:15:25]execute_cgi path=json_proto method=POST [09:15:25]POST find Content-Length [09:15:25]Host: 172.17.96.67:8080 [09:15:25]Content-Length: 677 [09:15:25]Content-Type: application/json [09:15:25] [09:15:25]POST finish read [09:15:25]Found Content-Length = 677 [09:15:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:25]execute_script... [09:15:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:25]POST & json_proto [09:15:25]process_json_proto [09:15:25]json parsed OK: [09:15:25]protocol is kg_v1.0 [09:15:25]action value=close_receipt [09:15:25]process_action close_receipt [09:15:25]cmd_close_receipt [09:15:25]MH_GetDate [09:15:25]Write to MH i2c: F0 00 00 EE 00 DD [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: F0 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: F0 09 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: F0 09 00 EE 00 00 2E F9 21 67 47 6C 1F 67 CE [09:15:25]GetLastDocTimeStamp 1730279647 [09:15:25]current date 1730279726 [09:15:25]FM_GetShiftState [09:15:25]SAM_PROTO_GetShiftState [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 13 01 00 [09:15:25]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0E 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 44 [09:15:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:15:25]wFMCommunicate OK [09:15:25]SAM_PROTO_GetShiftState done [09:15:25]FM_GetShiftState done [09:15:25]opened in 1730246605 [09:15:25]opened+sec_in_day 1730333005 [09:15:25]quantity*price = 50041 [09:15:25]sum+1 = 50042 [09:15:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 30 30.10.2024 09:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117970 ФПД: 269842510129083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092021&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117970&fm=269842510129083&tin=02508201610067®Number=0000000000091782&sum=20000 [09:20:22]StoreToDocumentArchive [09:20:22]shift 545 fd 117970 [09:20:22]save to /storage/0545/doc_00117970 [09:20:22]save last doc name /storage/0545/doc_00117970 to /storage/kkm_last_doc_name [09:20:22]save OK [09:20:22]Clear old archive folders... [09:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:22]tlvbuf is 0065C1D0 [09:20:22]SAM_PROTO_ClearQueue [09:20:22]wFMCommunicate request_size=4 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 09 00 00 [09:20:22]Write to MH i2c: E2 08 00 CC 00 80 09 00 00 00 00 00 00 3E [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [09:20:22]RAPDU: 90 00 [09:20:22]wFMCommunicate OK [09:20:22]SAM_PROTO_ClearQueue done [09:20:22]KKMCreateOFDPacket [09:20:22]OFDProtocolAddRootSTLVToBuf [09:20:22]FM_MakeSignedData [09:20:22]FM_MakeSignedData [09:20:22]SAM_PROTO_SignData [09:20:22]wFMCommunicate request_size=4 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 0D 01 02 [09:20:22]Write to MH i2c: E2 08 00 CD 00 80 0D 01 02 00 00 00 00 46 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [09:20:22]RAPDU: 90 00 [09:20:22]wFMCommunicate OK [09:20:22]wFMCommunicate request_size=255 [09:20:22]MH_SAM_APDU [09:20: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 32 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 1E 00 00 00 F4 03 04 00 55 FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CC 01 00 35 04 06 00 F5 [09:20:22]Write to MH i2c: E2 02 01 CE 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1E 00 00 00 F4 03 04 00 55 FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CC 01 00 35 04 06 00 F5 00 00 46 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [09:20:22]RAPDU: 90 00 [09:20:22]wFMCommunicate OK [09:20:22]wFMCommunicate request_size=10 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 0D 02 02 05 6B 9A F6 27 BB [09:20:22]Write to MH i2c: E2 0D 00 CF 00 80 0D 02 02 05 00 6B 9A F6 27 BB 00 00 30 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [09:20:22]RAPDU: 90 00 [09:20:22]wFMCommunicate OK [09:20:22]wFMCommunicate request_size=4 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 0D 03 02 [09:20:22]Write to MH i2c: E2 08 00 D0 00 80 0D 03 02 00 00 00 00 4B [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 0B 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 0B 00 D0 00 00 F0 FE 3B 26 48 C4 A8 22 90 00 71 [09:20:22]RAPDU: F0 FE 3B 26 48 C4 A8 22 90 00 [09:20:22]wFMCommunicate OK [09:20:22]SAM_PROTO_SignData done [09:20:22]FM_MakeSignedData done [09:20:22]CreateOFDProtocolMessage [09:20:22]wFMCommunicate request_size=4 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 11 00 00 [09:20:22]Write to MH i2c: E2 08 00 D1 00 80 11 00 00 00 00 00 00 4B [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 17 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 17 00 D1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A2 [09:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:20:22]wFMCommunicate OK [09:20:22]CreateOFDProtocolMessage done [09:20:22]OFDSenderStorePacket 117970 [09:20:22]StoreOFDPacket docnum=117970 [09:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6C 98 07 01 4A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1E 00 00 00 F4 03 04 00 55 FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CC 01 00 35 04 06 00 F5 6B 9A F6 27 BB F0 FE 3B 26 48 C4 A8 22 [09:20:22]CheckFolder [09:20:22]dirname=/storage/ofd_packets [09:20:22]CheckFolder done [09:20:22]ProducePacketName [09:20:22]name=ofd_packets/00117970 [09:20:22]NVStorageSaveData ofd_packets/00117970 [09:20:22]File name is /storage/ofd_packets/00117970 [09:20:22]Write 301 bytes [09:20:22]NVStorageSaveData done [09:20:22]OFDSenderStorePacket done [09:20:22]KKMCreateOFDPacket done [09:20:22]NVStorageSaveData kkm_last_timestamp [09:20:22]File name is /storage/kkm_last_timestamp [09:20:22]Write 4 bytes [09:20:22]NVStorageSaveData done [09:20:22]ExternCall_PrintAddStr [09:20:22]wPrintStart [09:20:22]Write to MH i2c: 01 00 00 D2 00 D2 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 07 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 07 00 D2 00 00 00 00 00 00 FF 0F E7 [09:20:22]RasterBufferAndPrint [09:20:22]line Счет N : (1)245762 [09:20:22]line ИНН: 02508201610067 [09:20:22]line Контрольно-Кассовый Чек [09:20:22]line ПРОДАЖА [09:20:22]line ТРК (МРК, ГНК) : 21 [09:20:22]line Товар: 2710124130 [09:20:22]line Аи-92-К-2 [09:20:22]line 2.990 * 66.90 [09:20:22]line = 200.03 [09:20:22]line НДС 12% НСП 1% [09:20:22]line > о реализуемом товаре [09:20:22]line ОКРУГЛЕНИЕ: -0.03 [09:20:22]line ИТОГО: 200.00 [09:20:22]line Внесено: 200.00 [09:20:22]line СДАЧА: 0.00 [09:20:22]line НСП 1% : 1.77 [09:20:22]line НДС 12% : 21.24 [09:20:22]line Наличными: 200.00 [09:20:22]line Безнал.: 0.00 [09:20:22]line Место: АЗС № 173 "Партнер Нефть" [09:20:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:20:22]line СНО: Общий режим [09:20:22]line Чек 30 30.10.2024 09:20 [09:20:22]line Смена: 545 ФФД: 1.0 [09:20:22]line ЗНМ: 0300000115 [09:20:22]line РНМ: 0000000000091782 [09:20:22]line Версия ККМ: 001 [09:20:22]line ФМ: 0000000000871767 [09:20:22]line ФД: 117970 [09:20:22]line ФПД: 269842510129083 [09:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092021&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117970&fm=269842510129083&tin=02508201610067®Number=0000000000091782&sum=20000 [09:20:22]OFD Sender: Processing packet 117970 [packets to send 77, broken 76] [09:20:22]ProducePacketName [09:20:22]name=ofd_packets/00117970 [09:20:22]OFD Sender: To server: pG, [09:20:22]CommunicateWithHost lk.salyk.kg:30040 [09:20:22]ConnectInit lk.salyk.kg [09:20:22]written 0, free lines is 4095 [09:20:23]Connected sock=10 [09:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6C 98 07 01 4A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1E 00 00 00 F4 03 04 00 55 FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CC 01 00 35 04 06 00 F5 6B 9A F6 27 BB F0 FE 3B 26 48 C4 A8 22 [09:20: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 36 37 4F 00 00 00 5B 7E 47 00 DC DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D2 CC 01 00 F4 03 04 00 0D A6 21 67 B6 04 01 00 00 64 6D 61 C2 70 3C DE C6 [09:20:23]CommunicateWithHost err = 0 [09:20:23]CheckOFDResponse [09:20:23]1017 (14) - 77093643461234 [09:20:23]1041 (16) - 0000000000871767 [09:20:23]1040 (4) - 117970 [09:20:23]1012 (4) - 30.10.2024 03:20 [09:20:23]1206 (1) - 0 [09:20:23]OFD Sender: Remove packet 117970 [09:20:23]ProducePacketName [09:20:23]name=ofd_packets/00117970 [09:20:23]NVStorageDeleteData [09:20:23]Write to MH i2c: 01 00 00 FC 00 FC [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 07 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 AB 0C BA [09:20:23]RasterBufferAndPrint [09:20:23]line [09:20:23]line [09:20:23]line [09:20:23]line [09:20:23]line [09:20:23]written 0, free lines is 3247 [09:20:23]MH_Cut [09:20:23]Write to MH i2c: D1 01 00 03 01 01 D6 [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: D1 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: D1 01 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: D1 01 00 03 01 00 D5 [09:20:23]Write to MH i2c: 01 00 00 04 01 05 [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]OFD Sender: No OFD packet to send [09:20:24]*** Cut start [09:20:24]*** Purtial cut [09:20:24]*** Stage 1: CUTSNS_PIN = 1 [09:20:24]Read from MH i2c: 01 [09:20:24]MH_I2C_Read... [09:20:24]*** Stop cut motor [09:20:24]*** Cut end [09:20:24]Read from MH i2c: 01 07 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [09:20:24]process_action close_receipt done [09:20:24]requested_data is exist [09:20:24]produce_requested_data [09:20:24]requested_item fm.sn is exist - process it [09:20:24]wFMCommunicate request_size=4 [09:20:24]MH_SAM_APDU [09:20:24]CAPDU: 80 11 00 00 [09:20:24]Write to MH i2c: E2 08 00 05 01 80 11 00 00 00 00 00 00 80 [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:24]Read from MH i2c: E2 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 17 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 17 00 05 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D7 [09:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:20:24]wFMCommunicate OK [09:20:24]requested_item fd.num is exist - process it [09:20:24]SAM_PROTO_GetFieldsCounters [09:20:24]wFMCommunicate request_size=4 [09:20:24]MH_SAM_APDU [09:20:24]CAPDU: 80 13 00 00 [09:20:24]Write to MH i2c: E2 08 00 06 01 80 13 00 00 00 00 00 00 83 [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:24]Read from MH i2c: E2 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 62 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 62 00 06 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [09:20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:24]wFMCommunicate OK [09:20:24]SAM_PROTO_GetFieldsCounters done [09:20:24]requested_item shift.num is exist - process it [09:20:24]requested_item shift.opened is exist - process it [09:20:24]req_shift_opened [09:20:24]FM_GetShiftState [09:20:24]SAM_PROTO_GetShiftState [09:20:24]wFMCommunicate request_size=4 [09:20:24]MH_SAM_APDU [09:20:24]CAPDU: 80 13 01 00 [09:20:24]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:24]Read from MH i2c: E2 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 0E 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5D [09:20:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:20:24]wFMCommunicate OK [09:20:24]SAM_PROTO_GetShiftState done [09:20:24]FM_GetShiftState done [09:20:24]req_shift_opened done [09:20:24]requested_item shift.open_date is exist - process it [09:20:24]req_shift_open_date [09:20:24]req_shift_open_date done [09:20:24]produce_requested_data done [09:20:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117970,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:20:24]process_action_free close_receipt [09:20:24]json_value_free [09:20:24]json_value_free done [09:20:24]process_json_proto returns [09:20:24]Send response to host [09:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117970,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:20:24]free response buf [09:20:24]execute_script done [09:20:24]execute_script returns [09:20:24]free content buf [09:20:24]Sock 9.Close socket [09:20:24]Sock 9.Thread stoped [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:22]accept exits with 7 [09:22:22]New connection [09:22:22]New thread 3067415908 created [09:22:22]Thread 3067559268 joined [09:22:22]Waiting for new connection... [09:22:22] Sock 7.Parse request [09:22:22]Sock 7.Check first char [09:22:22]Sock 7.First char is OK [09:22:22]request: POST /json_proto HTTP/1.0 [09:22:22]Method: POST [09:22:22]URL: /json_proto [09:22:22]Method is POST - this is cgi request [09:22:22]url: /json_proto [09:22:22]query_string will be loaded in cgi processing [09:22:22]execute_cgi json_proto POST (null) [09:22:22]execute_cgi path=json_proto method=POST [09:22:22]POST find Content-Length [09:22:22]Host: 172.17.96.67:8080 [09:22:22]Content-Length: 677 [09:22:22]Content-Type: application/json [09:22:22] [09:22:22]POST finish read [09:22:22]Found Content-Length = 677 [09:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:22]execute_script... [09:22: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)245763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:22]POST & json_proto [09:22:22]process_json_proto [09:22:22]json parsed OK: [09:22:22]protocol is kg_v1.0 [09:22:22]action value=close_receipt [09:22:22]process_action close_receipt [09:22:22]cmd_close_receipt [09:22:22]MH_GetDate [09:22:22]Write to MH i2c: F0 00 00 08 01 F8 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: F0 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: F0 09 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: F0 09 00 08 01 00 CE FA 21 67 47 6C 1F 67 8A [09:22:22]GetLastDocTimeStamp 1730280021 [09:22:22]current date 1730280142 [09:22:22]FM_GetShiftState [09:22:22]SAM_PROTO_GetShiftState [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 13 01 00 [09:22:22]Write to MH i2c: E2 08 00 09 01 80 13 01 00 00 00 00 00 87 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0E 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0E 00 09 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5F [09:22:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:22:22]wFMCommunicate OK [09:22:22]SAM_PROTO_GetShiftState done [09:22:22]FM_GetShiftState done [09:22:22]opened in 1730246605 [09:22:22]opened+sec_in_day 1730333005 [09:22:22]quantity*price = 20003 [09:22:22]sum+1 = 20004 [09:22:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 31 30.10.2024 09:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117971 ФПД: 122871210174883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092222&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117971&fm=122871210174883&tin=02508201610067®Number=0000000000091782&sum=20000 [09:22:23]StoreToDocumentArchive [09:22:23]shift 545 fd 117971 [09:22:23]save to /storage/0545/doc_00117971 [09:22:23]save last doc name /storage/0545/doc_00117971 to /storage/kkm_last_doc_name [09:22:23]save OK [09:22:23]Clear old archive folders... [09:22:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:23]tlvbuf is 00669E40 [09:22:23]SAM_PROTO_ClearQueue [09:22:23]wFMCommunicate request_size=4 [09:22:23]MH_SAM_APDU [09:22:23]CAPDU: 80 09 00 00 [09:22:23]Write to MH i2c: E2 08 00 16 01 80 09 00 00 00 00 00 00 89 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:23]Read from MH i2c: E2 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [09:22:23]RAPDU: 90 00 [09:22:23]wFMCommunicate OK [09:22:23]SAM_PROTO_ClearQueue done [09:22:23]KKMCreateOFDPacket [09:22:23]OFDProtocolAddRootSTLVToBuf [09:22:23]FM_MakeSignedData [09:22:23]FM_MakeSignedData [09:22:23]SAM_PROTO_SignData [09:22:23]wFMCommunicate request_size=4 [09:22:23]MH_SAM_APDU [09:22:23]CAPDU: 80 0D 01 02 [09:22:23]Write to MH i2c: E2 08 00 17 01 80 0D 01 02 00 00 00 00 91 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]OFD Sender: No OFD packet to send [09:22:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:23]Read from MH i2c: E2 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [09:22:23]RAPDU: 90 00 [09:22:23]wFMCommunicate OK [09:22:23]wFMCommunicate request_size=255 [09:22:23]MH_SAM_APDU [09:22: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 32 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 1F 00 00 00 F4 03 04 00 CE FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CC 01 00 35 04 06 00 6F [09:22:23]Write to MH i2c: E2 02 01 18 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 00 00 00 F4 03 04 00 CE FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CC 01 00 35 04 06 00 6F 00 00 86 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [09:22:24]RAPDU: 90 00 [09:22:24]wFMCommunicate OK [09:22:24]wFMCommunicate request_size=10 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 0D 02 02 05 C0 2E D5 E9 A3 [09:22:24]Write to MH i2c: E2 0D 00 19 01 80 0D 02 02 05 00 C0 2E D5 E9 A3 00 00 ED [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [09:22:24]RAPDU: 90 00 [09:22:24]wFMCommunicate OK [09:22:24]wFMCommunicate request_size=4 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 0D 03 02 [09:22:24]Write to MH i2c: E2 08 00 1A 01 80 0D 03 02 00 00 00 00 96 [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 0B 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 0B 00 1A 01 00 7C A2 69 E7 89 9B 5B F6 90 00 7A [09:22:24]RAPDU: 7C A2 69 E7 89 9B 5B F6 90 00 [09:22:24]wFMCommunicate OK [09:22:24]SAM_PROTO_SignData done [09:22:24]FM_MakeSignedData done [09:22:24]CreateOFDProtocolMessage [09:22:24]wFMCommunicate request_size=4 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 11 00 00 [09:22:24]Write to MH i2c: E2 08 00 1B 01 80 11 00 00 00 00 00 00 96 [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 17 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 17 00 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 ED [09:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:22:24]wFMCommunicate OK [09:22:24]CreateOFDProtocolMessage done [09:22:24]OFDSenderStorePacket 117971 [09:22:24]StoreOFDPacket docnum=117971 [09:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 63 A2 07 01 55 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 32 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 1F 00 00 00 F4 03 04 00 CE FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CC 01 00 35 04 06 00 6F C0 2E D5 E9 A3 7C A2 69 E7 89 9B 5B F6 [09:22:24]CheckFolder [09:22:24]dirname=/storage/ofd_packets [09:22:24]CheckFolder done [09:22:24]ProducePacketName [09:22:24]name=ofd_packets/00117971 [09:22:24]NVStorageSaveData ofd_packets/00117971 [09:22:24]File name is /storage/ofd_packets/00117971 [09:22:24]Write 301 bytes [09:22:24]NVStorageSaveData done [09:22:24]OFDSenderStorePacket done [09:22:24]KKMCreateOFDPacket done [09:22:24]NVStorageSaveData kkm_last_timestamp [09:22:24]File name is /storage/kkm_last_timestamp [09:22:24]Write 4 bytes [09:22:24]NVStorageSaveData done [09:22:24]ExternCall_PrintAddStr [09:22:24]wPrintStart [09:22:24]Write to MH i2c: 01 00 00 1C 01 1D [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: 01 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: 01 07 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: 01 07 00 1C 01 00 00 00 00 00 FF 0F 32 [09:22:24]RasterBufferAndPrint [09:22:24]line Счет N : (1)245763 [09:22:24]line ИНН: 02508201610067 [09:22:24]line Контрольно-Кассовый Чек [09:22:24]line ПРОДАЖА [09:22:24]line ТРК (МРК, ГНК) : 11 [09:22:24]line Товар: 2710124130 [09:22:24]line Аи-92-К-2 [09:22:24]line 2.990 * 66.90 [09:22:24]line = 200.03 [09:22:24]line НДС 12% НСП 1% [09:22:24]line > о реализуемом товаре [09:22:24]line ОКРУГЛЕНИЕ: -0.03 [09:22:24]line ИТОГО: 200.00 [09:22:24]line Внесено: 200.00 [09:22:24]line СДАЧА: 0.00 [09:22:24]line НСП 1% : 1.77 [09:22:24]line НДС 12% : 21.24 [09:22:24]line Наличными: 200.00 [09:22:24]line Безнал.: 0.00 [09:22:24]line Место: АЗС № 173 "Партнер Нефть" [09:22:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:22:24]line СНО: Общий режим [09:22:24]line Чек 31 30.10.2024 09:22 [09:22:24]line Смена: 545 ФФД: 1.0 [09:22:24]line ЗНМ: 0300000115 [09:22:24]line РНМ: 0000000000091782 [09:22:24]line Версия ККМ: 001 [09:22:24]line ФМ: 0000000000871767 [09:22:24]line ФД: 117971 [09:22:24]line ФПД: 122871210174883 [09:22:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092222&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117971&fm=122871210174883&tin=02508201610067®Number=0000000000091782&sum=20000 [09:22:24]OFD Sender: Processing packet 117971 [packets to send 77, broken 76] [09:22:24]ProducePacketName [09:22:24]name=ofd_packets/00117971 [09:22:24]OFD Sender: To server: pG, [09:22:24]CommunicateWithHost lk.salyk.kg:30040 [09:22:24]ConnectInit lk.salyk.kg [09:22:24]written 0, free lines is 4095 [09:22:24]Connected sock=10 [09:22:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 63 A2 07 01 55 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 32 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 1F 00 00 00 F4 03 04 00 CE FA 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D3 CC 01 00 35 04 06 00 6F C0 2E D5 E9 A3 7C A2 69 E7 89 9B 5B F6 [09:22: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 36 37 4F 00 00 00 01 FF 47 00 D3 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 36 37 10 04 04 00 D3 CC 01 00 F4 03 04 00 86 A6 21 67 B6 04 01 00 00 5B A9 17 2F B3 DF 53 9D [09:22:24]CommunicateWithHost err = 0 [09:22:24]CheckOFDResponse [09:22:24]1017 (14) - 77093643461234 [09:22:24]1041 (16) - 0000000000871767 [09:22:24]1040 (4) - 117971 [09:22:24]1012 (4) - 30.10.2024 03:22 [09:22:24]1206 (1) - 0 [09:22:24]OFD Sender: Remove packet 117971 [09:22:24]ProducePacketName [09:22:24]name=ofd_packets/00117971 [09:22:24]NVStorageDeleteData [09:22:25]Write to MH i2c: 01 00 00 46 01 47 [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: 01 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: 01 07 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 A3 0C FD [09:22:25]RasterBufferAndPrint [09:22:25]line [09:22:25]line [09:22:25]line [09:22:25]line [09:22:25]line [09:22:25]written 0, free lines is 3241 [09:22:25]MH_Cut [09:22:25]Write to MH i2c: D1 01 00 4D 01 01 20 [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: D1 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: D1 01 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: D1 01 00 4D 01 00 1F [09:22:25]Write to MH i2c: 01 00 00 4E 01 4F [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]OFD Sender: No OFD packet to send [09:22:25]*** Cut start [09:22:25]*** Purtial cut [09:22:25]*** Stage 1: CUTSNS_PIN = 1 [09:22:26]Read from MH i2c: 01 [09:22:26]MH_I2C_Read... [09:22:26]*** Stop cut motor [09:22:26]*** Cut end [09:22:26]Read from MH i2c: 01 07 00 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 FF 0F 64 [09:22:26]process_action close_receipt done [09:22:26]requested_data is exist [09:22:26]produce_requested_data [09:22:26]requested_item fm.sn is exist - process it [09:22:26]wFMCommunicate request_size=4 [09:22:26]MH_SAM_APDU [09:22:26]CAPDU: 80 11 00 00 [09:22:26]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [09:22:26]Write i2c OK [09:22:26]MH_I2C_Read... [09:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:26]Read from MH i2c: E2 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 17 00 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 21 [09:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:22:26]wFMCommunicate OK [09:22:26]requested_item fd.num is exist - process it [09:22:26]SAM_PROTO_GetFieldsCounters [09:22:26]wFMCommunicate request_size=4 [09:22:26]MH_SAM_APDU [09:22:26]CAPDU: 80 13 00 00 [09:22:26]Write to MH i2c: E2 08 00 50 01 80 13 00 00 00 00 00 00 CD [09:22:26]Write i2c OK [09:22:26]MH_I2C_Read... [09:22:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:26]Read from MH i2c: E2 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 62 00 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 62 00 50 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:22: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:26]wFMCommunicate OK [09:22:26]SAM_PROTO_GetFieldsCounters done [09:22:26]requested_item shift.num is exist - process it [09:22:26]requested_item shift.opened is exist - process it [09:22:26]req_shift_opened [09:22:26]FM_GetShiftState [09:22:26]SAM_PROTO_GetShiftState [09:22:26]wFMCommunicate request_size=4 [09:22:26]MH_SAM_APDU [09:22:26]CAPDU: 80 13 01 00 [09:22:26]Write to MH i2c: E2 08 00 51 01 80 13 01 00 00 00 00 00 CF [09:22:26]Write i2c OK [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 [09:22:26]MH_I2C_Read... [09:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:26]Read from MH i2c: E2 0E 00 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 0E 00 51 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A7 [09:22:26]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:22:26]wFMCommunicate OK [09:22:26]SAM_PROTO_GetShiftState done [09:22:26]FM_GetShiftState done [09:22:26]req_shift_opened done [09:22:26]requested_item shift.open_date is exist - process it [09:22:26]req_shift_open_date [09:22:26]req_shift_open_date done [09:22:26]produce_requested_data done [09:22:26]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117971,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:22:26]process_action_free close_receipt [09:22:26]json_value_free [09:22:26]json_value_free done [09:22:26]process_json_proto returns [09:22:26]Send response to host [09:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117971,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:22:26]free response buf [09:22:26]execute_script done [09:22:26]execute_script returns [09:22:26]free content buf [09:22:26]Sock 7.Close socket [09:22:26]Sock 7.Thread stoped [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:23]accept exits with 9 [09:23:23]New connection [09:23:23]New thread 3067559268 created [09:23:23]Thread 3067415908 joined [09:23:23]Waiting for new connection... [09:23:23] Sock 9.Parse request [09:23:23]Sock 9.Check first char [09:23:23]Sock 9.First char is OK [09:23:23]request: POST /json_proto HTTP/1.0 [09:23:23]Method: POST [09:23:23]URL: /json_proto [09:23:23]Method is POST - this is cgi request [09:23:23]url: /json_proto [09:23:23]query_string will be loaded in cgi processing [09:23:23]execute_cgi json_proto POST (null) [09:23:23]execute_cgi path=json_proto method=POST [09:23:23]POST find Content-Length [09:23:23]Host: 172.17.96.67:8080 [09:23:23]Content-Length: 677 [09:23:23]Content-Type: application/json [09:23:23] [09:23:23]POST finish read [09:23:23]Found Content-Length = 677 [09:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:23]execute_script... [09:23: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)245764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:23]POST & json_proto [09:23:23]process_json_proto [09:23:23]json parsed OK: [09:23:23]protocol is kg_v1.0 [09:23:23]action value=close_receipt [09:23:23]process_action close_receipt [09:23:23]cmd_close_receipt [09:23:23]MH_GetDate [09:23:23]Write to MH i2c: F0 00 00 52 01 42 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 09 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 09 00 52 01 00 0C FB 21 67 47 6C 1F 67 13 [09:23:23]GetLastDocTimeStamp 1730280142 [09:23:23]current date 1730280204 [09:23:23]FM_GetShiftState [09:23:23]SAM_PROTO_GetShiftState [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 13 01 00 [09:23:23]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0E 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A9 [09:23:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_GetShiftState done [09:23:24]FM_GetShiftState done [09:23:24]opened in 1730246605 [09:23:24]opened+sec_in_day 1730333005 [09:23:24]quantity*price = 30038 [09:23:24]sum+1 = 30039 [09:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 32 30.10.2024 09:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117972 ФПД: 74802151558060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092324&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117972&fm=74802151558060&tin=02508201610067®Number=0000000000091782&sum=30000 [09:23:25]StoreToDocumentArchive [09:23:25]shift 545 fd 117972 [09:23:25]save to /storage/0545/doc_00117972 [09:23:25]save last doc name /storage/0545/doc_00117972 to /storage/kkm_last_doc_name [09:23:25]save OK [09:23:25]Clear old archive folders... [09:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:25]tlvbuf is 0066EBB0 [09:23:25]SAM_PROTO_ClearQueue [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 09 00 00 [09:23:25]Write to MH i2c: E2 08 00 60 01 80 09 00 00 00 00 00 00 D3 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]SAM_PROTO_ClearQueue done [09:23:25]KKMCreateOFDPacket [09:23:25]OFDProtocolAddRootSTLVToBuf [09:23:25]FM_MakeSignedData [09:23:25]FM_MakeSignedData [09:23:25]SAM_PROTO_SignData [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 01 02 [09:23:25]Write to MH i2c: E2 08 00 61 01 80 0D 01 02 00 00 00 00 DB [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]wFMCommunicate request_size=255 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 00 00 00 F4 03 04 00 0C FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CC 01 00 35 04 06 00 44 [09:23:25]Write to MH i2c: E2 02 01 62 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 00 00 00 F4 03 04 00 0C FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CC 01 00 35 04 06 00 44 00 00 18 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]OFD Sender: No OFD packet to send [09:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]wFMCommunicate request_size=10 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 02 02 05 08 3B AC 0B AC [09:23:25]Write to MH i2c: E2 0D 00 63 01 80 0D 02 02 05 00 08 3B AC 0B AC 00 00 8E [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 03 02 [09:23:25]Write to MH i2c: E2 08 00 64 01 80 0D 03 02 00 00 00 00 E0 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 0B 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 0B 00 64 01 00 1D 92 BA 69 65 0B BD 5B 90 00 3B [09:23:25]RAPDU: 1D 92 BA 69 65 0B BD 5B 90 00 [09:23:25]wFMCommunicate OK [09:23:25]SAM_PROTO_SignData done [09:23:25]FM_MakeSignedData done [09:23:25]CreateOFDProtocolMessage [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 11 00 00 [09:23:25]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 17 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 37 [09:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:23:25]wFMCommunicate OK [09:23:25]CreateOFDProtocolMessage done [09:23:25]OFDSenderStorePacket 117972 [09:23:25]StoreOFDPacket docnum=117972 [09:23:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AE 5F 07 01 57 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 32 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 20 00 00 00 F4 03 04 00 0C FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CC 01 00 35 04 06 00 44 08 3B AC 0B AC 1D 92 BA 69 65 0B BD 5B [09:23:25]CheckFolder [09:23:25]dirname=/storage/ofd_packets [09:23:25]CheckFolder done [09:23:25]ProducePacketName [09:23:25]name=ofd_packets/00117972 [09:23:25]NVStorageSaveData ofd_packets/00117972 [09:23:25]File name is /storage/ofd_packets/00117972 [09:23:25]Write 301 bytes [09:23:25]NVStorageSaveData done [09:23:25]OFDSenderStorePacket done [09:23:25]KKMCreateOFDPacket done [09:23:25]NVStorageSaveData kkm_last_timestamp [09:23:25]File name is /storage/kkm_last_timestamp [09:23:25]Write 4 bytes [09:23:25]NVStorageSaveData done [09:23:25]ExternCall_PrintAddStr [09:23:25]wPrintStart [09:23:25]Write to MH i2c: 01 00 00 66 01 67 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 66 01 00 00 00 00 00 FF 0F 7C [09:23:25]RasterBufferAndPrint [09:23:25]line Счет N : (1)245764 [09:23:25]line ИНН: 02508201610067 [09:23:25]line Контрольно-Кассовый Чек [09:23:25]line ПРОДАЖА [09:23:25]line ТРК (МРК, ГНК) : 21 [09:23:25]line Товар: 2710124130 [09:23:25]line Аи-92-К-2 [09:23:25]line 4.490 * 66.90 [09:23:25]line = 300.38 [09:23:25]line НДС 12% НСП 1% [09:23:25]line > о реализуемом товаре [09:23:25]line ОКРУГЛЕНИЕ: -0.38 [09:23:25]line ИТОГО: 300.00 [09:23:25]line Внесено: 300.00 [09:23:25]line СДАЧА: 0.00 [09:23:25]line НСП 1% : 2.66 [09:23:25]line НДС 12% : 31.90 [09:23:25]line Наличными: 300.00 [09:23:25]line Безнал.: 0.00 [09:23:25]line Место: АЗС № 173 "Партнер Нефть" [09:23:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:23:25]line СНО: Общий режим [09:23:25]line Чек 32 30.10.2024 09:23 [09:23:25]line Смена: 545 ФФД: 1.0 [09:23:25]line ЗНМ: 0300000115 [09:23:25]line РНМ: 0000000000091782 [09:23:25]line Версия ККМ: 001 [09:23:25]line ФМ: 0000000000871767 [09:23:25]line ФД: 117972 [09:23:25]line ФПД: 74802151558060 [09:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092324&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117972&fm=74802151558060&tin=02508201610067®Number=0000000000091782&sum=30000 [09:23:26]OFD Sender: Processing packet 117972 [packets to send 77, broken 76] [09:23:26]ProducePacketName [09:23:26]name=ofd_packets/00117972 [09:23:26]OFD Sender: To server: pG, [09:23:26]CommunicateWithHost lk.salyk.kg:30040 [09:23:26]ConnectInit lk.salyk.kg [09:23:26]written 0, free lines is 4095 [09:23:26]Connected sock=10 [09:23: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 36 37 0F 01 00 00 AE 5F 07 01 57 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 32 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 20 00 00 00 F4 03 04 00 0C FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D4 CC 01 00 35 04 06 00 44 08 3B AC 0B AC 1D 92 BA 69 65 0B BD 5B [09:23: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 36 37 4F 00 00 00 AF 91 47 00 04 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 36 37 10 04 04 00 D4 CC 01 00 F4 03 04 00 C4 A6 21 67 B6 04 01 00 00 C1 97 3F 8E 5C 64 D3 69 [09:23:26]CommunicateWithHost err = 0 [09:23:26]CheckOFDResponse [09:23:26]1017 (14) - 77093643461234 [09:23:26]1041 (16) - 0000000000871767 [09:23:26]1040 (4) - 117972 [09:23:26]1012 (4) - 30.10.2024 03:23 [09:23:26]1206 (1) - 0 [09:23:26]OFD Sender: Remove packet 117972 [09:23:26]ProducePacketName [09:23:26]name=ofd_packets/00117972 [09:23:26]NVStorageDeleteData [09:23:26]Write to MH i2c: 01 00 00 90 01 91 [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 07 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 AA 0C 4E [09:23:26]RasterBufferAndPrint [09:23:26]line [09:23:26]line [09:23:26]line [09:23:26]line [09:23:26]line [09:23:26]written 0, free lines is 3247 [09:23:26]MH_Cut [09:23:26]Write to MH i2c: D1 01 00 97 01 01 6A [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: D1 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: D1 01 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: D1 01 00 97 01 00 69 [09:23:26]Write to MH i2c: 01 00 00 98 01 99 [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]OFD Sender: No OFD packet to send [09:23:27]*** Cut start [09:23:27]*** Purtial cut [09:23:27]*** Stage 1: CUTSNS_PIN = 1 [09:23:27]Read from MH i2c: 01 [09:23:27]MH_I2C_Read... [09:23:27]*** Stop cut motor [09:23:27]*** Cut end [09:23:27]Read from MH i2c: 01 07 00 [09:23:27]MH_I2C_Read... [09:23:27]Read from MH i2c: 01 07 00 98 01 00 00 00 00 00 FF 0F AE [09:23:27]process_action close_receipt done [09:23:27]requested_data is exist [09:23:27]produce_requested_data [09:23:27]requested_item fm.sn is exist - process it [09:23:27]wFMCommunicate request_size=4 [09:23:27]MH_SAM_APDU [09:23:27]CAPDU: 80 11 00 00 [09:23:27]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [09:23:27]Write i2c OK [09:23:27]MH_I2C_Read... [09:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:27]Read from MH i2c: E2 [09:23:27]MH_I2C_Read... [09:23:27]Read from MH i2c: E2 17 00 [09:23:27]MH_I2C_Read... [09:23:27]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6B [09:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:23:27]wFMCommunicate OK [09:23:27]requested_item fd.num is exist - process it [09:23:27]SAM_PROTO_GetFieldsCounters [09:23:27]wFMCommunicate request_size=4 [09:23:27]MH_SAM_APDU [09:23:27]CAPDU: 80 13 00 00 [09:23:27]Write to MH i2c: E2 08 00 9A 01 80 13 00 00 00 00 00 00 17 [09:23:27]Write i2c OK [09:23:27]MH_I2C_Read... [09:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:27]Read from MH i2c: E2 [09:23:27]MH_I2C_Read... [09:23:27]Read from MH i2c: E2 62 00 [09:23:27]MH_I2C_Read... [09:23:27]Read from MH i2c: E2 62 00 9A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [09:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:27]wFMCommunicate OK [09:23:27]SAM_PROTO_GetFieldsCounters done [09:23:27]requested_item shift.num is exist - process it [09:23:27]requested_item shift.opened is exist - process it [09:23:27]req_shift_opened [09:23:27]FM_GetShiftState [09:23:27]SAM_PROTO_GetShiftState [09:23:27]wFMCommunicate request_size=4 [09:23:27]MH_SAM_APDU [09:23:27]CAPDU: 80 13 01 00 [09:23:27]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [09:23:27]Write i2c OK [09:23:27]MH_I2C_Read... [09:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:27]Read from MH i2c: E2 [09:23:27]MH_I2C_Read... [09:23:27]Read from MH i2c: E2 0E 00 [09:23:27]MH_I2C_Read... [09:23:27]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F1 [09:23:27]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:23:27]wFMCommunicate OK [09:23:27]SAM_PROTO_GetShiftState done [09:23:27]FM_GetShiftState done [09:23:27]req_shift_opened done [09:23:27]requested_item shift.open_date is exist - process it [09:23:27]req_shift_open_date [09:23:27]req_shift_open_date done [09:23:27]produce_requested_data done [09:23:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117972,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:23:27]process_action_free close_receipt [09:23:27]json_value_free [09:23:27]json_value_free done [09:23:27]process_json_proto returns [09:23:27]Send response to host [09:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117972,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:23:27]free response buf [09:23:27]execute_script done [09:23:27]execute_script returns [09:23:27]free content buf [09:23:27]Sock 9.Close socket [09:23:27]Sock 9.Thread stoped [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]accept exits with 7 [09:24:41]New connection [09:24:41]New thread 3067415908 created [09:24:41]Thread 3067559268 joined [09:24:41]Waiting for new connection... [09:24:41] Sock 7.Parse request [09:24:41]Sock 7.Check first char [09:24:41]Sock 7.First char is OK [09:24:41]request: POST /json_proto HTTP/1.0 [09:24:41]Method: POST [09:24:41]URL: /json_proto [09:24:41]Method is POST - this is cgi request [09:24:41]url: /json_proto [09:24:41]query_string will be loaded in cgi processing [09:24:41]execute_cgi json_proto POST (null) [09:24:41]execute_cgi path=json_proto method=POST [09:24:41]POST find Content-Length [09:24:41]Host: 172.17.96.67:8080 [09:24:41]Content-Length: 677 [09:24:41]Content-Type: application/json [09:24:41] [09:24:41]POST finish read [09:24:41]Found Content-Length = 677 [09:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:41]execute_script... [09:24:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:41]POST & json_proto [09:24:41]process_json_proto [09:24:41]json parsed OK: [09:24:41]protocol is kg_v1.0 [09:24:41]action value=close_receipt [09:24:41]process_action close_receipt [09:24:41]cmd_close_receipt [09:24:41]MH_GetDate [09:24:41]Write to MH i2c: F0 00 00 9C 01 8C [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: F0 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: F0 09 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: F0 09 00 9C 01 00 59 FB 21 67 47 6C 1F 67 AA [09:24:41]GetLastDocTimeStamp 1730280204 [09:24:41]current date 1730280281 [09:24:41]FM_GetShiftState [09:24:41]SAM_PROTO_GetShiftState [09:24:41]wFMCommunicate request_size=4 [09:24:41]MH_SAM_APDU [09:24:41]CAPDU: 80 13 01 00 [09:24:41]Write to MH i2c: E2 08 00 9D 01 80 13 01 00 00 00 00 00 1B [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0E 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0E 00 9D 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F3 [09:24:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:24:41]wFMCommunicate OK [09:24:41]SAM_PROTO_GetShiftState done [09:24:41]FM_GetShiftState done [09:24:41]opened in 1730246605 [09:24:41]opened+sec_in_day 1730333005 [09:24:41]quantity*price = 60009 [09:24:41]sum+1 = 60010 [09:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 33 30.10.2024 09:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117973 ФПД: 32536567662413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092441&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117973&fm=32536567662413&tin=02508201610067®Number=0000000000091782&sum=60000 [09:24:42]StoreToDocumentArchive [09:24:42]shift 545 fd 117973 [09:24:42]save to /storage/0545/doc_00117973 [09:24:42]save last doc name /storage/0545/doc_00117973 to /storage/kkm_last_doc_name [09:24:42]save OK [09:24:42]Clear old archive folders... [09:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:42]tlvbuf is 00677990 [09:24:42]SAM_PROTO_ClearQueue [09:24:42]wFMCommunicate request_size=4 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 09 00 00 [09:24:42]Write to MH i2c: E2 08 00 AA 01 80 09 00 00 00 00 00 00 1D [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]SAM_PROTO_ClearQueue done [09:24:42]KKMCreateOFDPacket [09:24:42]OFDProtocolAddRootSTLVToBuf [09:24:42]FM_MakeSignedData [09:24:42]FM_MakeSignedData [09:24:42]SAM_PROTO_SignData [09:24:42]wFMCommunicate request_size=4 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 0D 01 02 [09:24:42]Write to MH i2c: E2 08 00 AB 01 80 0D 01 02 00 00 00 00 25 [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]wFMCommunicate request_size=255 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 00 00 00 F4 03 04 00 59 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CC 01 00 35 04 06 00 1D [09:24:42]Write to MH i2c: E2 02 01 AC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 00 00 00 F4 03 04 00 59 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CC 01 00 35 04 06 00 1D 00 00 73 [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]wFMCommunicate request_size=10 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 0D 02 02 05 97 82 8E C7 4D [09:24:42]Write to MH i2c: E2 0D 00 AD 01 80 0D 02 02 05 00 97 82 8E C7 4D 00 00 ED [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]wFMCommunicate request_size=4 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 0D 03 02 [09:24:42]Write to MH i2c: E2 08 00 AE 01 80 0D 03 02 00 00 00 00 2A [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 0B 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 0B 00 AE 01 00 3A 9D F4 66 D4 8A B7 00 90 00 71 [09:24:42]RAPDU: 3A 9D F4 66 D4 8A B7 00 90 00 [09:24:42]wFMCommunicate OK [09:24:42]SAM_PROTO_SignData done [09:24:42]FM_MakeSignedData done [09:24:42]CreateOFDProtocolMessage [09:24:42]wFMCommunicate request_size=4 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 11 00 00 [09:24:42]Write to MH i2c: E2 08 00 AF 01 80 11 00 00 00 00 00 00 2A [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 17 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 17 00 AF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 81 [09:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:24:42]wFMCommunicate OK [09:24:42]CreateOFDProtocolMessage done [09:24:42]OFDSenderStorePacket 117973 [09:24:42]StoreOFDPacket docnum=117973 [09:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F9 91 07 01 05 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 00 00 00 F4 03 04 00 59 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CC 01 00 35 04 06 00 1D 97 82 8E C7 4D 3A 9D F4 66 D4 8A B7 00 [09:24:42]CheckFolder [09:24:42]dirname=/storage/ofd_packets [09:24:42]CheckFolder done [09:24:42]ProducePacketName [09:24:42]name=ofd_packets/00117973 [09:24:42]NVStorageSaveData ofd_packets/00117973 [09:24:42]File name is /storage/ofd_packets/00117973 [09:24:42]Write 301 bytes [09:24:42]NVStorageSaveData done [09:24:42]OFDSenderStorePacket done [09:24:42]KKMCreateOFDPacket done [09:24:42]NVStorageSaveData kkm_last_timestamp [09:24:42]File name is /storage/kkm_last_timestamp [09:24:42]Write 4 bytes [09:24:42]NVStorageSaveData done [09:24:42]ExternCall_PrintAddStr [09:24:42]wPrintStart [09:24:42]Write to MH i2c: 01 00 00 B0 01 B1 [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: 01 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: 01 07 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 FF 0F C6 [09:24:42]RasterBufferAndPrint [09:24:42]line Счет N : (1)245766 [09:24:42]line ИНН: 02508201610067 [09:24:42]line Контрольно-Кассовый Чек [09:24:42]line ПРОДАЖА [09:24:42]line ТРК (МРК, ГНК) : 21 [09:24:42]line Товар: 2710124130 [09:24:42]line Аи-92-К-2 [09:24:42]line 8.970 * 66.90 [09:24:42]line = 600.09 [09:24:42]line НДС 12% НСП 1% [09:24:42]line > о реализуемом товаре [09:24:42]line ОКРУГЛЕНИЕ: -0.09 [09:24:42]line ИТОГО: 600.00 [09:24:42]line Внесено: 600.00 [09:24:42]line СДАЧА: 0.00 [09:24:42]line НСП 1% : 5.31 [09:24:42]line НДС 12% : 63.73 [09:24:42]line Наличными: 600.00 [09:24:42]line Безнал.: 0.00 [09:24:42]line Место: АЗС № 173 "Партнер Нефть" [09:24:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:24:42]line СНО: Общий режим [09:24:42]line Чек 33 30.10.2024 09:24 [09:24:42]line Смена: 545 ФФД: 1.0 [09:24:42]line ЗНМ: 0300000115 [09:24:42]line РНМ: 0000000000091782 [09:24:42]line Версия ККМ: 001 [09:24:42]line ФМ: 0000000000871767 [09:24:42]line ФД: 117973 [09:24:42]line ФПД: 32536567662413 [09:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092441&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117973&fm=32536567662413&tin=02508201610067®Number=0000000000091782&sum=60000 [09:24:42]written 0, free lines is 4095 [09:24:42]OFD Sender: Processing packet 117973 [packets to send 77, broken 76] [09:24:42]ProducePacketName [09:24:42]name=ofd_packets/00117973 [09:24:43]OFD Sender: To server: pG, [09:24:43]CommunicateWithHost lk.salyk.kg:30040 [09:24:43]ConnectInit lk.salyk.kg [09:24:43]Write to MH i2c: 01 00 00 DA 01 DB [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 07 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 AA 0C 98 [09:24:43]RasterBufferAndPrint [09:24:43]line [09:24:43]line [09:24:43]line [09:24:43]line [09:24:43]line [09:24:43]Connected sock=10 [09:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F9 91 07 01 05 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 00 00 00 F4 03 04 00 59 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CC 01 00 35 04 06 00 1D 97 82 8E C7 4D 3A 9D F4 66 D4 8A B7 00 [09:24:43]written 0, free lines is 3245 [09:24:43]MH_Cut [09:24:43]Write to MH i2c: D1 01 00 E1 01 01 B4 [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: D1 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: D1 01 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: D1 01 00 E1 01 00 B3 [09:24:43]Write to MH i2c: 01 00 00 E2 01 E3 [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24: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 36 37 4F 00 00 00 8B 89 47 00 52 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D5 CC 01 00 F4 03 04 00 11 A7 21 67 B6 04 01 00 00 AD 6C BE 8D EC F7 ED 24 [09:24:43]CommunicateWithHost err = 0 [09:24:43]CheckOFDResponse [09:24:43]1017 (14) - 77093643461234 [09:24:43]1041 (16) - 0000000000871767 [09:24:43]1040 (4) - 117973 [09:24:43]1012 (4) - 30.10.2024 03:25 [09:24:43]1206 (1) - 0 [09:24:43]OFD Sender: Remove packet 117973 [09:24:43]ProducePacketName [09:24:43]name=ofd_packets/00117973 [09:24:43]NVStorageDeleteData [09:24:44]OFD Sender: No OFD packet to send [09:24:44]*** Cut start [09:24:44]*** Purtial cut [09:24:44]*** Stage 1: CUTSNS_PIN = 1 [09:24:44]Read from MH i2c: 01 [09:24:44]MH_I2C_Read... [09:24:44]*** Stop cut motor [09:24:44]*** Cut end [09:24:44]Read from MH i2c: 01 07 00 [09:24:44]MH_I2C_Read... [09:24:44]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 FF 0F F8 [09:24:44]process_action close_receipt done [09:24:44]requested_data is exist [09:24:44]produce_requested_data [09:24:44]requested_item fm.sn is exist - process it [09:24:44]wFMCommunicate request_size=4 [09:24:44]MH_SAM_APDU [09:24:44]CAPDU: 80 11 00 00 [09:24:44]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [09:24:44]Write i2c OK [09:24:44]MH_I2C_Read... [09:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:44]Read from MH i2c: E2 [09:24:44]MH_I2C_Read... [09:24:44]Read from MH i2c: E2 17 00 [09:24:44]MH_I2C_Read... [09:24:44]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B5 [09:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:24:44]wFMCommunicate OK [09:24:44]requested_item fd.num is exist - process it [09:24:44]SAM_PROTO_GetFieldsCounters [09:24:44]wFMCommunicate request_size=4 [09:24:44]MH_SAM_APDU [09:24:44]CAPDU: 80 13 00 00 [09:24:44]Write to MH i2c: E2 08 00 E4 01 80 13 00 00 00 00 00 00 61 [09:24:44]Write i2c OK [09:24:44]MH_I2C_Read... [09:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:44]Read from MH i2c: E2 [09:24:44]MH_I2C_Read... [09:24:44]Read from MH i2c: E2 62 00 [09:24:44]MH_I2C_Read... [09:24:44]Read from MH i2c: E2 62 00 E4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [09:24: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:44]wFMCommunicate OK [09:24:44]SAM_PROTO_GetFieldsCounters done [09:24:44]requested_item shift.num is exist - process it [09:24:44]requested_item shift.opened is exist - process it [09:24:44]req_shift_opened [09:24:44]FM_GetShiftState [09:24:44]SAM_PROTO_GetShiftState [09:24:44]wFMCommunicate request_size=4 [09:24:44]MH_SAM_APDU [09:24:44]CAPDU: 80 13 01 00 [09:24:44]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [09:24:44]Write i2c OK [09:24:44]MH_I2C_Read... [09:24:44]Read from MH i2c: E2 [09:24:44]MH_I2C_Read... [09:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:44]Read from MH i2c: E2 0E 00 [09:24:44]MH_I2C_Read... [09:24:44]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3B [09:24:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:24:44]wFMCommunicate OK [09:24:44]SAM_PROTO_GetShiftState done [09:24:44]FM_GetShiftState done [09:24:44]req_shift_opened done [09:24:44]requested_item shift.open_date is exist - process it [09:24:44]req_shift_open_date [09:24:44]req_shift_open_date done [09:24:44]produce_requested_data done [09:24:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117973,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:24:44]process_action_free close_receipt [09:24:44]json_value_free [09:24:44]json_value_free done [09:24:44]process_json_proto returns [09:24:44]Send response to host [09:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117973,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:24:44]free response buf [09:24:44]execute_script done [09:24:44]execute_script returns [09:24:44]free content buf [09:24:44]Sock 7.Close socket [09:24:44]Sock 7.Thread stoped [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:33]accept exits with 9 [09:26:33]New connection [09:26:33]New thread 3067559268 created [09:26:33]Thread 3067415908 joined [09:26:33]Waiting for new connection... [09:26:33] Sock 9.Parse request [09:26:33]Sock 9.Check first char [09:26:33]Sock 9.First char is OK [09:26:33]request: POST /json_proto HTTP/1.0 [09:26:33]Method: POST [09:26:33]URL: /json_proto [09:26:33]Method is POST - this is cgi request [09:26:33]url: /json_proto [09:26:33]query_string will be loaded in cgi processing [09:26:33]execute_cgi json_proto POST (null) [09:26:33]execute_cgi path=json_proto method=POST [09:26:33]POST find Content-Length [09:26:33]Host: 172.17.96.67:8080 [09:26:33]Content-Length: 677 [09:26:33]Content-Type: application/json [09:26:33] [09:26:33]POST finish read [09:26:33]Found Content-Length = 677 [09:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:33]execute_script... [09:26:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:33]POST & json_proto [09:26:33]process_json_proto [09:26:33]json parsed OK: [09:26:33]protocol is kg_v1.0 [09:26:33]action value=close_receipt [09:26:33]process_action close_receipt [09:26:33]cmd_close_receipt [09:26:33]MH_GetDate [09:26:33]Write to MH i2c: F0 00 00 E6 01 D6 [09:26:33]Write i2c OK [09:26:33]MH_I2C_Read... [09:26:33]Read from MH i2c: F0 [09:26:33]MH_I2C_Read... [09:26:33]Read from MH i2c: F0 09 00 [09:26:33]MH_I2C_Read... [09:26:33]Read from MH i2c: F0 09 00 E6 01 00 C9 FB 21 67 47 6C 1F 67 64 [09:26:33]GetLastDocTimeStamp 1730280281 [09:26:33]current date 1730280393 [09:26:33]FM_GetShiftState [09:26:33]SAM_PROTO_GetShiftState [09:26:33]wFMCommunicate request_size=4 [09:26:33]MH_SAM_APDU [09:26:33]CAPDU: 80 13 01 00 [09:26:33]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [09:26:33]Write i2c OK [09:26:33]MH_I2C_Read... [09:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:33]Read from MH i2c: E2 [09:26:33]MH_I2C_Read... [09:26:33]Read from MH i2c: E2 0E 00 [09:26:33]MH_I2C_Read... [09:26:33]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3D [09:26:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:26:33]wFMCommunicate OK [09:26:33]SAM_PROTO_GetShiftState done [09:26:33]FM_GetShiftState done [09:26:33]opened in 1730246605 [09:26:33]opened+sec_in_day 1730333005 [09:26:33]quantity*price = 50041 [09:26:33]sum+1 = 50042 [09:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 34 30.10.2024 09:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117974 ФПД: 67295314833421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092633&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117974&fm=67295314833421&tin=02508201610067®Number=0000000000091782&sum=50000 [09:26:34]StoreToDocumentArchive [09:26:34]shift 545 fd 117974 [09:26:34]save to /storage/0545/doc_00117974 [09:26:34]save last doc name /storage/0545/doc_00117974 to /storage/kkm_last_doc_name [09:26:34]save OK [09:26:34]Clear old archive folders... [09:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:34]tlvbuf is 00673740 [09:26:34]SAM_PROTO_ClearQueue [09:26:34]wFMCommunicate request_size=4 [09:26:34]MH_SAM_APDU [09:26:34]CAPDU: 80 09 00 00 [09:26:34]Write to MH i2c: E2 08 00 F4 01 80 09 00 00 00 00 00 00 67 [09:26:34]Write i2c OK [09:26:34]MH_I2C_Read... [09:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:34]Read from MH i2c: E2 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [09:26:34]RAPDU: 90 00 [09:26:34]wFMCommunicate OK [09:26:34]SAM_PROTO_ClearQueue done [09:26:34]KKMCreateOFDPacket [09:26:34]OFDProtocolAddRootSTLVToBuf [09:26:34]FM_MakeSignedData [09:26:34]FM_MakeSignedData [09:26:34]SAM_PROTO_SignData [09:26:34]wFMCommunicate request_size=4 [09:26:34]MH_SAM_APDU [09:26:34]CAPDU: 80 0D 01 02 [09:26:34]Write to MH i2c: E2 08 00 F5 01 80 0D 01 02 00 00 00 00 6F [09:26:34]Write i2c OK [09:26:34]MH_I2C_Read... [09:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:34]Read from MH i2c: E2 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [09:26:34]RAPDU: 90 00 [09:26:34]wFMCommunicate OK [09:26:34]wFMCommunicate request_size=255 [09:26:34]MH_SAM_APDU [09:26: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 32 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 22 00 00 00 F4 03 04 00 C9 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CC 01 00 35 04 06 00 3D [09:26:34]Write to MH i2c: E2 02 01 F6 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 C9 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CC 01 00 35 04 06 00 3D 00 00 72 [09:26:34]Write i2c OK [09:26:34]MH_I2C_Read... [09:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:34]Read from MH i2c: E2 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [09:26:34]RAPDU: 90 00 [09:26:34]wFMCommunicate OK [09:26:34]wFMCommunicate request_size=10 [09:26:34]MH_SAM_APDU [09:26:34]CAPDU: 80 0D 02 02 05 34 69 55 F0 0D [09:26:34]Write to MH i2c: E2 0D 00 F7 01 80 0D 02 02 05 00 34 69 55 F0 0D 00 00 6B [09:26:34]Write i2c OK [09:26:34]MH_I2C_Read... [09:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:34]Read from MH i2c: E2 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [09:26:34]RAPDU: 90 00 [09:26:34]wFMCommunicate OK [09:26:34]wFMCommunicate request_size=4 [09:26:34]MH_SAM_APDU [09:26:34]CAPDU: 80 0D 03 02 [09:26:34]Write to MH i2c: E2 08 00 F8 01 80 0D 03 02 00 00 00 00 74 [09:26:34]Write i2c OK [09:26:34]MH_I2C_Read... [09:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:34]Read from MH i2c: E2 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 0B 00 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 0B 00 F8 01 00 EB 17 63 BD 5A CE B1 16 90 00 86 [09:26:34]RAPDU: EB 17 63 BD 5A CE B1 16 90 00 [09:26:34]wFMCommunicate OK [09:26:34]SAM_PROTO_SignData done [09:26:34]FM_MakeSignedData done [09:26:34]CreateOFDProtocolMessage [09:26:34]wFMCommunicate request_size=4 [09:26:34]MH_SAM_APDU [09:26:34]CAPDU: 80 11 00 00 [09:26:34]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [09:26:34]Write i2c OK [09:26:34]MH_I2C_Read... [09:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:34]Read from MH i2c: E2 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 17 00 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CB [09:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:26:34]wFMCommunicate OK [09:26:34]CreateOFDProtocolMessage done [09:26:34]OFDSenderStorePacket 117974 [09:26:34]StoreOFDPacket docnum=117974 [09:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6E ED 07 01 BF 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 C9 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CC 01 00 35 04 06 00 3D 34 69 55 F0 0D EB 17 63 BD 5A CE B1 16 [09:26:34]CheckFolder [09:26:34]dirname=/storage/ofd_packets [09:26:34]CheckFolder done [09:26:34]ProducePacketName [09:26:34]name=ofd_packets/00117974 [09:26:34]NVStorageSaveData ofd_packets/00117974 [09:26:34]File name is /storage/ofd_packets/00117974 [09:26:34]Write 301 bytes [09:26:34]NVStorageSaveData done [09:26:34]OFDSenderStorePacket done [09:26:34]KKMCreateOFDPacket done [09:26:34]NVStorageSaveData kkm_last_timestamp [09:26:34]File name is /storage/kkm_last_timestamp [09:26:34]Write 4 bytes [09:26:34]NVStorageSaveData done [09:26:34]ExternCall_PrintAddStr [09:26:34]wPrintStart [09:26:34]Write to MH i2c: 01 00 00 FA 01 FB [09:26:34]Write i2c OK [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: 01 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: 01 07 00 [09:26:34]MH_I2C_Read... [09:26:34]Read from MH i2c: 01 07 00 FA 01 00 00 00 00 00 FF 0F 10 [09:26:34]RasterBufferAndPrint [09:26:34]line Счет N : (1)245767 [09:26:34]line ИНН: 02508201610067 [09:26:34]line Контрольно-Кассовый Чек [09:26:34]line ПРОДАЖА [09:26:34]line ТРК (МРК, ГНК) : 11 [09:26:34]line Товар: 2710124130 [09:26:34]line Аи-92-К-2 [09:26:34]line 7.480 * 66.90 [09:26:34]line = 500.41 [09:26:34]line НДС 12% НСП 1% [09:26:34]line > о реализуемом товаре [09:26:34]line ОКРУГЛЕНИЕ: -0.41 [09:26:34]line ИТОГО: 500.00 [09:26:34]line Внесено: 500.00 [09:26:34]line СДАЧА: 0.00 [09:26:34]line НСП 1% : 4.43 [09:26:34]line НДС 12% : 53.14 [09:26:34]line Наличными: 500.00 [09:26:34]line Безнал.: 0.00 [09:26:34]line Место: АЗС № 173 "Партнер Нефть" [09:26:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:26:34]line СНО: Общий режим [09:26:34]line Чек 34 30.10.2024 09:26 [09:26:34]line Смена: 545 ФФД: 1.0 [09:26:34]line ЗНМ: 0300000115 [09:26:34]line РНМ: 0000000000091782 [09:26:34]line Версия ККМ: 001 [09:26:34]line ФМ: 0000000000871767 [09:26:34]line ФД: 117974 [09:26:34]line ФПД: 67295314833421 [09:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092633&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117974&fm=67295314833421&tin=02508201610067®Number=0000000000091782&sum=50000 [09:26:35]OFD Sender: Processing packet 117974 [packets to send 77, broken 76] [09:26:35]ProducePacketName [09:26:35]name=ofd_packets/00117974 [09:26:35]OFD Sender: To server: pG, [09:26:35]CommunicateWithHost lk.salyk.kg:30040 [09:26:35]ConnectInit lk.salyk.kg [09:26:35]written 0, free lines is 4095 [09:26:35]Connected sock=10 [09:26: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 36 37 0F 01 00 00 6E ED 07 01 BF 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 C9 FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D6 CC 01 00 35 04 06 00 3D 34 69 55 F0 0D EB 17 63 BD 5A CE B1 16 [09:26: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 36 37 4F 00 00 00 C5 F4 47 00 87 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 36 37 10 04 04 00 D6 CC 01 00 F4 03 04 00 81 A7 21 67 B6 04 01 00 00 91 EB E1 DE 5A 97 46 EE [09:26:35]CommunicateWithHost err = 0 [09:26:35]CheckOFDResponse [09:26:35]1017 (14) - 77093643461234 [09:26:35]1041 (16) - 0000000000871767 [09:26:35]1040 (4) - 117974 [09:26:35]1012 (4) - 30.10.2024 03:26 [09:26:35]1206 (1) - 0 [09:26:35]OFD Sender: Remove packet 117974 [09:26:35]ProducePacketName [09:26:35]name=ofd_packets/00117974 [09:26:35]NVStorageDeleteData [09:26:35]Write to MH i2c: 01 00 00 24 02 26 [09:26:35]Write i2c OK [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: 01 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: 01 07 00 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 AA 0C E3 [09:26:35]RasterBufferAndPrint [09:26:35]line [09:26:35]line [09:26:35]line [09:26:35]line [09:26:35]line [09:26:35]written 0, free lines is 3247 [09:26:35]MH_Cut [09:26:35]Write to MH i2c: D1 01 00 2B 02 01 FF [09:26:35]Write i2c OK [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: D1 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: D1 01 00 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: D1 01 00 2B 02 00 FE [09:26:35]Write to MH i2c: 01 00 00 2C 02 2E [09:26:35]Write i2c OK [09:26:35]MH_I2C_Read... [09:26:35]OFD Sender: No OFD packet to send [09:26:36]*** Cut start [09:26:36]*** Purtial cut [09:26:36]*** Stage 1: CUTSNS_PIN = 1 [09:26:36]Read from MH i2c: 01 [09:26:36]MH_I2C_Read... [09:26:36]*** Stop cut motor [09:26:36]*** Cut end [09:26:36]Read from MH i2c: 01 07 00 [09:26:36]MH_I2C_Read... [09:26:36]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 FF 0F 43 [09:26:36]process_action close_receipt done [09:26:36]requested_data is exist [09:26:36]produce_requested_data [09:26:36]requested_item fm.sn is exist - process it [09:26:36]wFMCommunicate request_size=4 [09:26:36]MH_SAM_APDU [09:26:36]CAPDU: 80 11 00 00 [09:26:36]Write to MH i2c: E2 08 00 2D 02 80 11 00 00 00 00 00 00 A9 [09:26:36]Write i2c OK [09:26:36]MH_I2C_Read... [09:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:36]Read from MH i2c: E2 [09:26:36]MH_I2C_Read... [09:26:36]Read from MH i2c: E2 17 00 [09:26:36]MH_I2C_Read... [09:26:36]Read from MH i2c: E2 17 00 2D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 00 [09:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:26:36]wFMCommunicate OK [09:26:36]requested_item fd.num is exist - process it [09:26:36]SAM_PROTO_GetFieldsCounters [09:26:36]wFMCommunicate request_size=4 [09:26:36]MH_SAM_APDU [09:26:36]CAPDU: 80 13 00 00 [09:26:36]Write to MH i2c: E2 08 00 2E 02 80 13 00 00 00 00 00 00 AC [09:26:36]Write i2c OK [09:26:36]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 62 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 62 00 2E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [09:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:37]wFMCommunicate OK [09:26:37]SAM_PROTO_GetFieldsCounters done [09:26:37]requested_item shift.num is exist - process it [09:26:37]requested_item shift.opened is exist - process it [09:26:37]req_shift_opened [09:26:37]FM_GetShiftState [09:26:37]SAM_PROTO_GetShiftState [09:26:37]wFMCommunicate request_size=4 [09:26:37]MH_SAM_APDU [09:26:37]CAPDU: 80 13 01 00 [09:26:37]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0E 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 86 [09:26:37]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:26:37]wFMCommunicate OK [09:26:37]SAM_PROTO_GetShiftState done [09:26:37]FM_GetShiftState done [09:26:37]req_shift_opened done [09:26:37]requested_item shift.open_date is exist - process it [09:26:37]req_shift_open_date [09:26:37]req_shift_open_date done [09:26:37]produce_requested_data done [09:26:37]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117974,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:26:37]process_action_free close_receipt [09:26:37]json_value_free [09:26:37]json_value_free done [09:26:37]process_json_proto returns [09:26:37]Send response to host [09:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117974,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:26:37]free response buf [09:26:37]execute_script done [09:26:37]execute_script returns [09:26:37]free content buf [09:26:37]Sock 9.Close socket [09:26:37]Sock 9.Thread stoped [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:50]accept exits with 7 [09:26:50]New connection [09:26:50]New thread 3067415908 created [09:26:50]Thread 3067559268 joined [09:26:50]Waiting for new connection... [09:26:50] Sock 7.Parse request [09:26:50]Sock 7.Check first char [09:26:50]Sock 7.First char is OK [09:26:50]request: POST /json_proto HTTP/1.0 [09:26:50]Method: POST [09:26:50]URL: /json_proto [09:26:50]Method is POST - this is cgi request [09:26:50]url: /json_proto [09:26:50]query_string will be loaded in cgi processing [09:26:50]execute_cgi json_proto POST (null) [09:26:50]execute_cgi path=json_proto method=POST [09:26:50]POST find Content-Length [09:26:50]Host: 172.17.96.67:8080 [09:26:50]Content-Length: 677 [09:26:50]Content-Type: application/json [09:26:50] [09:26:50]POST finish read [09:26:50]Found Content-Length = 677 [09:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:50]execute_script... [09:26: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)245768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:50]POST & json_proto [09:26:50]process_json_proto [09:26:50]json parsed OK: [09:26:50]protocol is kg_v1.0 [09:26:50]action value=close_receipt [09:26:50]process_action close_receipt [09:26:50]cmd_close_receipt [09:26:50]MH_GetDate [09:26:50]Write to MH i2c: F0 00 00 30 02 21 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: F0 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: F0 09 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: F0 09 00 30 02 00 DA FB 21 67 47 6C 1F 67 C0 [09:26:50]GetLastDocTimeStamp 1730280393 [09:26:50]current date 1730280410 [09:26:50]FM_GetShiftState [09:26:50]SAM_PROTO_GetShiftState [09:26:50]wFMCommunicate request_size=4 [09:26:50]MH_SAM_APDU [09:26:50]CAPDU: 80 13 01 00 [09:26:50]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:50]Read from MH i2c: E2 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 0E 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 88 [09:26:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:26:50]wFMCommunicate OK [09:26:50]SAM_PROTO_GetShiftState done [09:26:50]FM_GetShiftState done [09:26:50]opened in 1730246605 [09:26:50]opened+sec_in_day 1730333005 [09:26:50]quantity*price = 40006 [09:26:50]sum+1 = 40007 [09:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 35 30.10.2024 09:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117975 ФПД: 57508260690132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092650&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117975&fm=57508260690132&tin=02508201610067®Number=0000000000091782&sum=40000 [09:26:51]StoreToDocumentArchive [09:26:51]shift 545 fd 117975 [09:26:51]save to /storage/0545/doc_00117975 [09:26:51]save last doc name /storage/0545/doc_00117975 to /storage/kkm_last_doc_name [09:26:51]save OK [09:26:51]Clear old archive folders... [09:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:51]tlvbuf is 0065F950 [09:26:51]SAM_PROTO_ClearQueue [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 09 00 00 [09:26:51]Write to MH i2c: E2 08 00 3E 02 80 09 00 00 00 00 00 00 B2 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [09:26:51]RAPDU: 90 00 [09:26:51]wFMCommunicate OK [09:26:51]SAM_PROTO_ClearQueue done [09:26:51]KKMCreateOFDPacket [09:26:51]OFDProtocolAddRootSTLVToBuf [09:26:51]FM_MakeSignedData [09:26:51]FM_MakeSignedData [09:26:51]SAM_PROTO_SignData [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 0D 01 02 [09:26:51]Write to MH i2c: E2 08 00 3F 02 80 0D 01 02 00 00 00 00 BA [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [09:26:51]RAPDU: 90 00 [09:26:51]wFMCommunicate OK [09:26:51]wFMCommunicate request_size=255 [09:26:51]MH_SAM_APDU [09:26: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 32 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 23 00 00 00 F4 03 04 00 DA FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CC 01 00 35 04 06 00 34 [09:26:51]Write to MH i2c: E2 02 01 40 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 DA FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CC 01 00 35 04 06 00 34 00 00 96 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [09:26:51]RAPDU: 90 00 [09:26:51]wFMCommunicate OK [09:26:51]wFMCommunicate request_size=10 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 0D 02 02 05 4D AF 73 38 D4 [09:26:51]Write to MH i2c: E2 0D 00 41 02 80 0D 02 02 05 00 4D AF 73 38 D4 00 00 42 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [09:26:51]RAPDU: 90 00 [09:26:51]wFMCommunicate OK [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 0D 03 02 [09:26:51]Write to MH i2c: E2 08 00 42 02 80 0D 03 02 00 00 00 00 BF [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 0B 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 0B 00 42 02 00 1C 5F E0 25 E8 7D B0 E9 90 00 3E [09:26:52]RAPDU: 1C 5F E0 25 E8 7D B0 E9 90 00 [09:26:52]wFMCommunicate OK [09:26:52]SAM_PROTO_SignData done [09:26:52]FM_MakeSignedData done [09:26:52]CreateOFDProtocolMessage [09:26:52]wFMCommunicate request_size=4 [09:26:52]MH_SAM_APDU [09:26:52]CAPDU: 80 11 00 00 [09:26:52]Write to MH i2c: E2 08 00 43 02 80 11 00 00 00 00 00 00 BF [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 17 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 17 00 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 16 [09:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:26:52]wFMCommunicate OK [09:26:52]CreateOFDProtocolMessage done [09:26:52]OFDSenderStorePacket 117975 [09:26:52]StoreOFDPacket docnum=117975 [09:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 67 96 07 01 3C 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 DA FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CC 01 00 35 04 06 00 34 4D AF 73 38 D4 1C 5F E0 25 E8 7D B0 E9 [09:26:52]CheckFolder [09:26:52]dirname=/storage/ofd_packets [09:26:52]CheckFolder done [09:26:52]ProducePacketName [09:26:52]name=ofd_packets/00117975 [09:26:52]NVStorageSaveData ofd_packets/00117975 [09:26:52]File name is /storage/ofd_packets/00117975 [09:26:52]Write 301 bytes [09:26:52]NVStorageSaveData done [09:26:52]OFDSenderStorePacket done [09:26:52]KKMCreateOFDPacket done [09:26:52]NVStorageSaveData kkm_last_timestamp [09:26:52]File name is /storage/kkm_last_timestamp [09:26:52]Write 4 bytes [09:26:52]NVStorageSaveData done [09:26:52]ExternCall_PrintAddStr [09:26:52]wPrintStart [09:26:52]Write to MH i2c: 01 00 00 44 02 46 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 44 02 00 00 00 00 00 FF 0F 5B [09:26:52]RasterBufferAndPrint [09:26:52]line Счет N : (1)245768 [09:26:52]line ИНН: 02508201610067 [09:26:52]line Контрольно-Кассовый Чек [09:26:52]line ПРОДАЖА [09:26:52]line ТРК (МРК, ГНК) : 21 [09:26:52]line Товар: 2710124130 [09:26:52]line Аи-92-К-2 [09:26:52]line 5.980 * 66.90 [09:26:52]line = 400.06 [09:26:52]line НДС 12% НСП 1% [09:26:52]line > о реализуемом товаре [09:26:52]line ОКРУГЛЕНИЕ: -0.06 [09:26:52]line ИТОГО: 400.00 [09:26:52]line Внесено: 400.00 [09:26:52]line СДАЧА: 0.00 [09:26:52]line НСП 1% : 3.54 [09:26:52]line НДС 12% : 42.48 [09:26:52]line Наличными: 400.00 [09:26:52]line Безнал.: 0.00 [09:26:52]line Место: АЗС № 173 "Партнер Нефть" [09:26:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:26:52]line СНО: Общий режим [09:26:52]line Чек 35 30.10.2024 09:26 [09:26:52]line Смена: 545 ФФД: 1.0 [09:26:52]line ЗНМ: 0300000115 [09:26:52]line РНМ: 0000000000091782 [09:26:52]line Версия ККМ: 001 [09:26:52]line ФМ: 0000000000871767 [09:26:52]line ФД: 117975 [09:26:52]line ФПД: 57508260690132 [09:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092650&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117975&fm=57508260690132&tin=02508201610067®Number=0000000000091782&sum=40000 [09:26:52]written 0, free lines is 4095 [09:26:52]OFD Sender: Processing packet 117975 [packets to send 77, broken 76] [09:26:52]ProducePacketName [09:26:52]name=ofd_packets/00117975 [09:26:52]OFD Sender: To server: pG, [09:26:52]CommunicateWithHost lk.salyk.kg:30040 [09:26:52]ConnectInit lk.salyk.kg [09:26:52]Connected sock=10 [09:26: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 36 37 0F 01 00 00 67 96 07 01 3C 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 DA FB 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CC 01 00 35 04 06 00 34 4D AF 73 38 D4 1C 5F E0 25 E8 7D B0 E9 [09:26: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 36 37 4F 00 00 00 91 09 47 00 39 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D7 CC 01 00 F4 03 04 00 92 A7 21 67 B6 04 01 00 00 C8 6E 40 7E C5 BB 25 1C [09:26:52]CommunicateWithHost err = 0 [09:26:52]CheckOFDResponse [09:26:52]1017 (14) - 77093643461234 [09:26:52]1041 (16) - 0000000000871767 [09:26:52]1040 (4) - 117975 [09:26:52]1012 (4) - 30.10.2024 03:27 [09:26:52]1206 (1) - 0 [09:26:52]OFD Sender: Remove packet 117975 [09:26:52]ProducePacketName [09:26:52]name=ofd_packets/00117975 [09:26:52]NVStorageDeleteData [09:26:52]Write to MH i2c: 01 00 00 6E 02 70 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 AF 0C 32 [09:26:52]RasterBufferAndPrint [09:26:52]line [09:26:52]line [09:26:52]line [09:26:52]line [09:26:52]line [09:26:52]written 0, free lines is 3251 [09:26:52]MH_Cut [09:26:52]Write to MH i2c: D1 01 00 75 02 01 49 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: D1 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: D1 01 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: D1 01 00 75 02 00 48 [09:26:52]Write to MH i2c: 01 00 00 76 02 78 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]OFD Sender: No OFD packet to send [09:26:53]*** Cut start [09:26:53]*** Purtial cut [09:26:53]*** Stage 1: CUTSNS_PIN = 1 [09:26:53]Read from MH i2c: 01 [09:26:53]MH_I2C_Read... [09:26:53]*** Stop cut motor [09:26:53]Read from MH i2c: 01 07 00 [09:26:53]MH_I2C_Read... [09:26:53]*** Cut end [09:26:53]Read from MH i2c: 01 07 00 76 02 00 00 00 00 00 FF 0F 8D [09:26:53]process_action close_receipt done [09:26:53]requested_data is exist [09:26:53]produce_requested_data [09:26:53]requested_item fm.sn is exist - process it [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 11 00 00 [09:26:53]Write to MH i2c: E2 08 00 77 02 80 11 00 00 00 00 00 00 F3 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 17 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 17 00 77 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4A [09:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:26:53]wFMCommunicate OK [09:26:53]requested_item fd.num is exist - process it [09:26:53]SAM_PROTO_GetFieldsCounters [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 00 00 [09:26:53]Write to MH i2c: E2 08 00 78 02 80 13 00 00 00 00 00 00 F6 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 62 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 62 00 78 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [09:26:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetFieldsCounters done [09:26:53]requested_item shift.num is exist - process it [09:26:53]requested_item shift.opened is exist - process it [09:26:53]req_shift_opened [09:26:53]FM_GetShiftState [09:26:53]SAM_PROTO_GetShiftState [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 01 00 [09:26:53]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D0 [09:26:53]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetShiftState done [09:26:53]FM_GetShiftState done [09:26:53]req_shift_opened done [09:26:53]requested_item shift.open_date is exist - process it [09:26:53]req_shift_open_date [09:26:53]req_shift_open_date done [09:26:53]produce_requested_data done [09:26:53]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117975,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:26:53]process_action_free close_receipt [09:26:53]json_value_free [09:26:53]json_value_free done [09:26:53]process_json_proto returns [09:26:53]Send response to host [09:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117975,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:26:53]free response buf [09:26:53]execute_script done [09:26:53]execute_script returns [09:26:53]free content buf [09:26:53]Sock 7.Close socket [09:26:53]Sock 7.Thread stoped [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:43]accept exits with 9 [09:28:43]New connection [09:28:43]New thread 3067559268 created [09:28:43]Thread 3067415908 joined [09:28:43]Waiting for new connection... [09:28:43] Sock 9.Parse request [09:28:43]Sock 9.Check first char [09:28:43]Sock 9.First char is OK [09:28:43]request: POST /json_proto HTTP/1.0 [09:28:43]Method: POST [09:28:43]URL: /json_proto [09:28:43]Method is POST - this is cgi request [09:28:43]url: /json_proto [09:28:43]query_string will be loaded in cgi processing [09:28:43]execute_cgi json_proto POST (null) [09:28:43]execute_cgi path=json_proto method=POST [09:28:43]POST find Content-Length [09:28:43]Host: 172.17.96.67:8080 [09:28:43]Content-Length: 677 [09:28:43]Content-Type: application/json [09:28:43] [09:28:43]POST finish read [09:28:43]Found Content-Length = 677 [09:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:43]execute_script... [09:28: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)245769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:43]POST & json_proto [09:28:43]process_json_proto [09:28:43]json parsed OK: [09:28:43]protocol is kg_v1.0 [09:28:43]action value=close_receipt [09:28:43]process_action close_receipt [09:28:43]cmd_close_receipt [09:28:43]MH_GetDate [09:28:43]Write to MH i2c: F0 00 00 7A 02 6B [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: F0 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: F0 09 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: F0 09 00 7A 02 00 4B FC 21 67 47 6C 1F 67 7C [09:28:43]GetLastDocTimeStamp 1730280410 [09:28:43]current date 1730280523 [09:28:43]FM_GetShiftState [09:28:43]SAM_PROTO_GetShiftState [09:28:43]wFMCommunicate request_size=4 [09:28:43]MH_SAM_APDU [09:28:43]CAPDU: 80 13 01 00 [09:28:43]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [09:28:43]Write i2c OK [09:28:43]MH_I2C_Read... [09:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:43]Read from MH i2c: E2 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 0E 00 [09:28:43]MH_I2C_Read... [09:28:43]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D2 [09:28:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:28:43]wFMCommunicate OK [09:28:43]SAM_PROTO_GetShiftState done [09:28:43]FM_GetShiftState done [09:28:43]opened in 1730246605 [09:28:43]opened+sec_in_day 1730333005 [09:28:43]quantity*price = 65026 [09:28:43]sum+1 = 65028 [09:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 36 30.10.2024 09:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117976 ФПД: 75913362267923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092843&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117976&fm=75913362267923&tin=02508201610067®Number=0000000000091782&sum=65000 [09:28:44]StoreToDocumentArchive [09:28:44]shift 545 fd 117976 [09:28:44]save to /storage/0545/doc_00117976 [09:28:44]save last doc name /storage/0545/doc_00117976 to /storage/kkm_last_doc_name [09:28:44]save OK [09:28:44]Clear old archive folders... [09:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:44]tlvbuf is 00661260 [09:28:44]SAM_PROTO_ClearQueue [09:28:44]wFMCommunicate request_size=4 [09:28:44]MH_SAM_APDU [09:28:44]CAPDU: 80 09 00 00 [09:28:44]Write to MH i2c: E2 08 00 88 02 80 09 00 00 00 00 00 00 FC [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:44]Read from MH i2c: E2 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 [09:28:44]MH_I2C_Read... [09:28:44]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [09:28:44]RAPDU: 90 00 [09:28:44]wFMCommunicate OK [09:28:44]SAM_PROTO_ClearQueue done [09:28:44]KKMCreateOFDPacket [09:28:44]OFDProtocolAddRootSTLVToBuf [09:28:44]FM_MakeSignedData [09:28:44]FM_MakeSignedData [09:28:44]SAM_PROTO_SignData [09:28:44]wFMCommunicate request_size=4 [09:28:44]MH_SAM_APDU [09:28:44]CAPDU: 80 0D 01 02 [09:28:44]Write to MH i2c: E2 08 00 89 02 80 0D 01 02 00 00 00 00 04 [09:28:44]Write i2c OK [09:28:44]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 03 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [09:28:45]RAPDU: 90 00 [09:28:45]wFMCommunicate OK [09:28:45]wFMCommunicate request_size=255 [09:28:45]MH_SAM_APDU [09:28: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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4B FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CC 01 00 35 04 06 00 45 [09:28:45]Write to MH i2c: E2 02 01 8A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4B FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CC 01 00 35 04 06 00 45 00 00 89 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 03 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [09:28:45]RAPDU: 90 00 [09:28:45]wFMCommunicate OK [09:28:45]wFMCommunicate request_size=10 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 0D 02 02 05 0A F4 FD DF 13 [09:28:45]Write to MH i2c: E2 0D 00 8B 02 80 0D 02 02 05 00 0A F4 FD DF 13 00 00 FE [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 03 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [09:28:45]RAPDU: 90 00 [09:28:45]wFMCommunicate OK [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 0D 03 02 [09:28:45]Write to MH i2c: E2 08 00 8C 02 80 0D 03 02 00 00 00 00 09 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 0B 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 0B 00 8C 02 00 DC A3 34 E0 52 5A 08 30 90 00 81 [09:28:45]RAPDU: DC A3 34 E0 52 5A 08 30 90 00 [09:28:45]wFMCommunicate OK [09:28:45]SAM_PROTO_SignData done [09:28:45]FM_MakeSignedData done [09:28:45]CreateOFDProtocolMessage [09:28:45]wFMCommunicate request_size=4 [09:28:45]MH_SAM_APDU [09:28:45]CAPDU: 80 11 00 00 [09:28:45]Write to MH i2c: E2 08 00 8D 02 80 11 00 00 00 00 00 00 09 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:45]Read from MH i2c: E2 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: E2 17 00 8D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 60 [09:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:28:45]wFMCommunicate OK [09:28:45]CreateOFDProtocolMessage done [09:28:45]OFDSenderStorePacket 117976 [09:28:45]StoreOFDPacket docnum=117976 [09:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9F 94 07 01 F6 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4B FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CC 01 00 35 04 06 00 45 0A F4 FD DF 13 DC A3 34 E0 52 5A 08 30 [09:28:45]CheckFolder [09:28:45]dirname=/storage/ofd_packets [09:28:45]CheckFolder done [09:28:45]ProducePacketName [09:28:45]name=ofd_packets/00117976 [09:28:45]NVStorageSaveData ofd_packets/00117976 [09:28:45]File name is /storage/ofd_packets/00117976 [09:28:45]Write 301 bytes [09:28:45]NVStorageSaveData done [09:28:45]OFDSenderStorePacket done [09:28:45]KKMCreateOFDPacket done [09:28:45]NVStorageSaveData kkm_last_timestamp [09:28:45]File name is /storage/kkm_last_timestamp [09:28:45]Write 4 bytes [09:28:45]NVStorageSaveData done [09:28:45]ExternCall_PrintAddStr [09:28:45]wPrintStart [09:28:45]Write to MH i2c: 01 00 00 8E 02 90 [09:28:45]Write i2c OK [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: 01 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: 01 07 00 [09:28:45]MH_I2C_Read... [09:28:45]Read from MH i2c: 01 07 00 8E 02 00 00 00 00 00 FF 0F A5 [09:28:45]RasterBufferAndPrint [09:28:45]line Счет N : (1)245769 [09:28:45]line ИНН: 02508201610067 [09:28:45]line Контрольно-Кассовый Чек [09:28:45]line ПРОДАЖА [09:28:45]line ТРК (МРК, ГНК) : 11 [09:28:45]line Товар: 2710124130 [09:28:45]line Аи-92-К-2 [09:28:45]line 9.720 * 66.90 [09:28:45]line = 650.27 [09:28:45]line НДС 12% НСП 1% [09:28:45]line > о реализуемом товаре [09:28:45]line ОКРУГЛЕНИЕ: -0.27 [09:28:45]line ИТОГО: 650.00 [09:28:45]line Внесено: 650.00 [09:28:45]line СДАЧА: 0.00 [09:28:45]line НСП 1% : 5.75 [09:28:45]line НДС 12% : 69.05 [09:28:45]line Наличными: 650.00 [09:28:45]line Безнал.: 0.00 [09:28:45]line Место: АЗС № 173 "Партнер Нефть" [09:28:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:28:45]line СНО: Общий режим [09:28:45]line Чек 36 30.10.2024 09:28 [09:28:45]line Смена: 545 ФФД: 1.0 [09:28:45]line ЗНМ: 0300000115 [09:28:45]line РНМ: 0000000000091782 [09:28:45]line Версия ККМ: 001 [09:28:45]line ФМ: 0000000000871767 [09:28:45]line ФД: 117976 [09:28:45]line ФПД: 75913362267923 [09:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092843&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117976&fm=75913362267923&tin=02508201610067®Number=0000000000091782&sum=65000 [09:28:45]OFD Sender: Processing packet 117976 [packets to send 77, broken 76] [09:28:45]ProducePacketName [09:28:45]name=ofd_packets/00117976 [09:28:45]OFD Sender: To server: pG, [09:28:45]CommunicateWithHost lk.salyk.kg:30040 [09:28:45]ConnectInit lk.salyk.kg [09:28:45]written 0, free lines is 4095 [09:28:45]Connected sock=10 [09:28: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 36 37 0F 01 00 00 9F 94 07 01 F6 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4B FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D8 CC 01 00 35 04 06 00 45 0A F4 FD DF 13 DC A3 34 E0 52 5A 08 30 [09:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 3F 9E 47 00 35 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 36 37 10 04 04 00 D8 CC 01 00 F4 03 04 00 04 A8 21 67 B6 04 01 00 00 6B 1E 82 1E F0 06 AB 41 [09:28:46]CommunicateWithHost err = 0 [09:28:46]CheckOFDResponse [09:28:46]1017 (14) - 77093643461234 [09:28:46]1041 (16) - 0000000000871767 [09:28:46]1040 (4) - 117976 [09:28:46]1012 (4) - 30.10.2024 03:29 [09:28:46]1206 (1) - 0 [09:28:46]OFD Sender: Remove packet 117976 [09:28:46]ProducePacketName [09:28:46]name=ofd_packets/00117976 [09:28:46]NVStorageDeleteData [09:28:46]Write to MH i2c: 01 00 00 B8 02 BA [09:28:46]Write i2c OK [09:28:46]MH_I2C_Read... [09:28:46]Read from MH i2c: 01 [09:28:46]MH_I2C_Read... [09:28:46]Read from MH i2c: 01 07 00 [09:28:46]MH_I2C_Read... [09:28:46]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 AA 0C 77 [09:28:46]RasterBufferAndPrint [09:28:46]line [09:28:46]line [09:28:46]line [09:28:46]line [09:28:46]line [09:28:46]written 0, free lines is 3247 [09:28:46]MH_Cut [09:28:46]Write to MH i2c: D1 01 00 BF 02 01 93 [09:28:46]Write i2c OK [09:28:46]MH_I2C_Read... [09:28:46]Read from MH i2c: D1 [09:28:46]MH_I2C_Read... [09:28:46]Read from MH i2c: D1 01 00 [09:28:46]MH_I2C_Read... [09:28:46]Read from MH i2c: D1 01 00 BF 02 00 92 [09:28:46]Write to MH i2c: 01 00 00 C0 02 C2 [09:28:46]Write i2c OK [09:28:46]MH_I2C_Read... [09:28:46]OFD Sender: No OFD packet to send [09:28:47]*** Cut start [09:28:47]*** Purtial cut [09:28:47]*** Stage 1: CUTSNS_PIN = 1 [09:28:47]Read from MH i2c: 01 [09:28:47]MH_I2C_Read... [09:28:47]*** Stop cut motor [09:28:47]*** Cut end [09:28:47]Read from MH i2c: 01 07 00 [09:28:47]MH_I2C_Read... [09:28:47]Read from MH i2c: 01 07 00 C0 02 00 00 00 00 00 FF 0F D7 [09:28:47]process_action close_receipt done [09:28:47]requested_data is exist [09:28:47]produce_requested_data [09:28:47]requested_item fm.sn is exist - process it [09:28:47]wFMCommunicate request_size=4 [09:28:47]MH_SAM_APDU [09:28:47]CAPDU: 80 11 00 00 [09:28:47]Write to MH i2c: E2 08 00 C1 02 80 11 00 00 00 00 00 00 3D [09:28:47]Write i2c OK [09:28:47]MH_I2C_Read... [09:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:47]Read from MH i2c: E2 [09:28:47]MH_I2C_Read... [09:28:47]Read from MH i2c: E2 17 00 [09:28:47]MH_I2C_Read... [09:28:47]Read from MH i2c: E2 17 00 C1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 94 [09:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:28:47]wFMCommunicate OK [09:28:47]requested_item fd.num is exist - process it [09:28:47]SAM_PROTO_GetFieldsCounters [09:28:47]wFMCommunicate request_size=4 [09:28:47]MH_SAM_APDU [09:28:47]CAPDU: 80 13 00 00 [09:28:47]Write to MH i2c: E2 08 00 C2 02 80 13 00 00 00 00 00 00 40 [09:28:47]Write i2c OK [09:28:47]MH_I2C_Read... [09:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:47]Read from MH i2c: E2 [09:28:47]MH_I2C_Read... [09:28:47]Read from MH i2c: E2 62 00 [09:28:47]MH_I2C_Read... [09:28:47]Read from MH i2c: E2 62 00 C2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [09:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:47]wFMCommunicate OK [09:28:47]SAM_PROTO_GetFieldsCounters done [09:28:47]requested_item shift.num is exist - process it [09:28:47]requested_item shift.opened is exist - process it [09:28:47]req_shift_opened [09:28:47]FM_GetShiftState [09:28:47]SAM_PROTO_GetShiftState [09:28:47]wFMCommunicate request_size=4 [09:28:47]MH_SAM_APDU [09:28:47]CAPDU: 80 13 01 00 [09:28:47]Write to MH i2c: E2 08 00 C3 02 80 13 01 00 00 00 00 00 42 [09:28:47]Write i2c OK [09:28:47]MH_I2C_Read... [09:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:47]Read from MH i2c: E2 [09:28:47]MH_I2C_Read... [09:28:47]Read from MH i2c: E2 0E 00 [09:28:47]MH_I2C_Read... [09:28:47]Read from MH i2c: E2 0E 00 C3 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1A [09:28:47]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:28:47]wFMCommunicate OK [09:28:47]SAM_PROTO_GetShiftState done [09:28:47]FM_GetShiftState done [09:28:47]req_shift_opened done [09:28:47]requested_item shift.open_date is exist - process it [09:28:47]req_shift_open_date [09:28:47]req_shift_open_date done [09:28:47]produce_requested_data done [09:28:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117976,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:28:47]process_action_free close_receipt [09:28:47]json_value_free [09:28:47]json_value_free done [09:28:47]process_json_proto returns [09:28:47]Send response to host [09:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117976,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:28:47]free response buf [09:28:47]execute_script done [09:28:47]execute_script returns [09:28:47]free content buf [09:28:47]Sock 9.Close socket [09:28:47]Sock 9.Thread stoped [09:28:49]accept exits with 7 [09:28:49]New connection [09:28:49]New thread 3067415908 created [09:28:49]Thread 3067559268 joined [09:28:49]Waiting for new connection... [09:28:49] Sock 7.Parse request [09:28:49]Sock 7.Check first char [09:28:49]Sock 7.First char is OK [09:28:49]request: POST /json_proto HTTP/1.0 [09:28:49]Method: POST [09:28:49]URL: /json_proto [09:28:49]Method is POST - this is cgi request [09:28:49]url: /json_proto [09:28:49]query_string will be loaded in cgi processing [09:28:49]execute_cgi json_proto POST (null) [09:28:49]execute_cgi path=json_proto method=POST [09:28:49]POST find Content-Length [09:28:49]Host: 172.17.96.67:8080 [09:28:49]Content-Length: 677 [09:28:49]Content-Type: application/json [09:28:49] [09:28:49]POST finish read [09:28:49]Found Content-Length = 677 [09:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:49]execute_script... [09:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:49]POST & json_proto [09:28:49]process_json_proto [09:28:49]json parsed OK: [09:28:49]protocol is kg_v1.0 [09:28:49]action value=close_receipt [09:28:49]process_action close_receipt [09:28:49]cmd_close_receipt [09:28:49]MH_GetDate [09:28:49]Write to MH i2c: F0 00 00 C4 02 B5 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 09 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 09 00 C4 02 00 51 FC 21 67 47 6C 1F 67 CC [09:28:49]GetLastDocTimeStamp 1730280523 [09:28:49]current date 1730280529 [09:28:49]FM_GetShiftState [09:28:49]SAM_PROTO_GetShiftState [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 13 01 00 [09:28:49]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0E 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1C [09:28:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:28:49]wFMCommunicate OK [09:28:49]SAM_PROTO_GetShiftState done [09:28:49]FM_GetShiftState done [09:28:49]opened in 1730246605 [09:28:49]opened+sec_in_day 1730333005 [09:28:49]quantity*price = 50041 [09:28:49]sum+1 = 50042 [09:28: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 37 30.10.2024 09:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117977 ФПД: 59168393269401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092849&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117977&fm=59168393269401&tin=02508201610067®Number=0000000000091782&sum=50000 [09:28:50]StoreToDocumentArchive [09:28:50]shift 545 fd 117977 [09:28:50]save to /storage/0545/doc_00117977 [09:28:50]save last doc name /storage/0545/doc_00117977 to /storage/kkm_last_doc_name [09:28:50]save OK [09:28:50]Clear old archive folders... [09:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:50]tlvbuf is 00641BC0 [09:28:50]SAM_PROTO_ClearQueue [09:28:50]wFMCommunicate request_size=4 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 09 00 00 [09:28:50]Write to MH i2c: E2 08 00 D2 02 80 09 00 00 00 00 00 00 46 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [09:28:50]RAPDU: 90 00 [09:28:50]wFMCommunicate OK [09:28:50]SAM_PROTO_ClearQueue done [09:28:50]KKMCreateOFDPacket [09:28:50]OFDProtocolAddRootSTLVToBuf [09:28:50]FM_MakeSignedData [09:28:50]FM_MakeSignedData [09:28:50]SAM_PROTO_SignData [09:28:50]wFMCommunicate request_size=4 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 0D 01 02 [09:28:50]Write to MH i2c: E2 08 00 D3 02 80 0D 01 02 00 00 00 00 4E [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [09:28:50]RAPDU: 90 00 [09:28:50]wFMCommunicate OK [09:28:50]wFMCommunicate request_size=255 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 51 FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CC 01 00 35 04 06 00 35 [09:28:50]Write to MH i2c: E2 02 01 D4 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 51 FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CC 01 00 35 04 06 00 35 00 00 D8 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]wFMCommunicate request_size=10 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 0D 02 02 05 D0 37 10 10 99 [09:28:51]Write to MH i2c: E2 0D 00 D5 02 80 0D 02 02 05 00 D0 37 10 10 99 00 00 1B [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 0D 03 02 [09:28:51]Write to MH i2c: E2 08 00 D6 02 80 0D 03 02 00 00 00 00 53 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0B 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0B 00 D6 02 00 51 F5 AD 6E 7C 8D A1 1D 90 00 7C [09:28:51]RAPDU: 51 F5 AD 6E 7C 8D A1 1D 90 00 [09:28:51]wFMCommunicate OK [09:28:51]SAM_PROTO_SignData done [09:28:51]FM_MakeSignedData done [09:28:51]CreateOFDProtocolMessage [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 11 00 00 [09:28:51]Write to MH i2c: E2 08 00 D7 02 80 11 00 00 00 00 00 00 53 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 17 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 17 00 D7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AA [09:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:28:51]wFMCommunicate OK [09:28:51]CreateOFDProtocolMessage done [09:28:51]OFDSenderStorePacket 117977 [09:28:51]StoreOFDPacket docnum=117977 [09:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 63 29 07 01 EB F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 51 FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CC 01 00 35 04 06 00 35 D0 37 10 10 99 51 F5 AD 6E 7C 8D A1 1D [09:28:51]CheckFolder [09:28:51]dirname=/storage/ofd_packets [09:28:51]CheckFolder done [09:28:51]ProducePacketName [09:28:51]name=ofd_packets/00117977 [09:28:51]NVStorageSaveData ofd_packets/00117977 [09:28:51]File name is /storage/ofd_packets/00117977 [09:28:51]Write 301 bytes [09:28:51]NVStorageSaveData done [09:28:51]OFDSenderStorePacket done [09:28:51]KKMCreateOFDPacket done [09:28:51]NVStorageSaveData kkm_last_timestamp [09:28:51]File name is /storage/kkm_last_timestamp [09:28:51]Write 4 bytes [09:28:51]NVStorageSaveData done [09:28:51]ExternCall_PrintAddStr [09:28:51]wPrintStart [09:28:51]Write to MH i2c: 01 00 00 D8 02 DA [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [09:28:51]RasterBufferAndPrint [09:28:51]line Счет N : (1)245770 [09:28:51]line ИНН: 02508201610067 [09:28:51]line Контрольно-Кассовый Чек [09:28:51]line ПРОДАЖА [09:28:51]line ТРК (МРК, ГНК) : 21 [09:28:51]line Товар: 2710124130 [09:28:51]line Аи-92-К-2 [09:28:51]line 7.480 * 66.90 [09:28:51]line = 500.41 [09:28:51]line НДС 12% НСП 1% [09:28:51]line > о реализуемом товаре [09:28:51]line ОКРУГЛЕНИЕ: -0.41 [09:28:51]line ИТОГО: 500.00 [09:28:51]line Внесено: 500.00 [09:28:51]line СДАЧА: 0.00 [09:28:51]line НСП 1% : 4.43 [09:28:51]line НДС 12% : 53.14 [09:28:51]line Наличными: 500.00 [09:28:51]line Безнал.: 0.00 [09:28:51]line Место: АЗС № 173 "Партнер Нефть" [09:28:51]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:28:51]line СНО: Общий режим [09:28:51]line Чек 37 30.10.2024 09:28 [09:28:51]line Смена: 545 ФФД: 1.0 [09:28:51]line ЗНМ: 0300000115 [09:28:51]line РНМ: 0000000000091782 [09:28:51]line Версия ККМ: 001 [09:28:51]line ФМ: 0000000000871767 [09:28:51]line ФД: 117977 [09:28:51]line ФПД: 59168393269401 [09:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092849&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117977&fm=59168393269401&tin=02508201610067®Number=0000000000091782&sum=50000 [09:28:51]OFD Sender: Processing packet 117977 [packets to send 77, broken 76] [09:28:51]ProducePacketName [09:28:51]name=ofd_packets/00117977 [09:28:51]OFD Sender: To server: pG, [09:28:51]CommunicateWithHost lk.salyk.kg:30040 [09:28:51]ConnectInit lk.salyk.kg [09:28:51]written 0, free lines is 4095 [09:28:51]Connected sock=10 [09:28: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 36 37 0F 01 00 00 63 29 07 01 EB F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 51 FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CC 01 00 35 04 06 00 35 D0 37 10 10 99 51 F5 AD 6E 7C 8D A1 1D [09:28: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 36 37 4F 00 00 00 E7 AD 47 00 1C 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 D9 CC 01 00 F4 03 04 00 09 A8 21 67 B6 04 01 00 00 FF CB 5A 47 D2 A1 AC 53 [09:28:51]CommunicateWithHost err = 0 [09:28:51]CheckOFDResponse [09:28:51]1017 (14) - 77093643461234 [09:28:51]1041 (16) - 0000000000871767 [09:28:51]1040 (4) - 117977 [09:28:51]1012 (4) - 30.10.2024 03:29 [09:28:51]1206 (1) - 0 [09:28:51]OFD Sender: Remove packet 117977 [09:28:51]ProducePacketName [09:28:51]name=ofd_packets/00117977 [09:28:51]NVStorageDeleteData [09:28:51]Write to MH i2c: 01 00 00 02 03 05 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 B3 0C CB [09:28:51]RasterBufferAndPrint [09:28:51]line [09:28:51]line [09:28:51]line [09:28:51]line [09:28:51]line [09:28:51]written 0, free lines is 3263 [09:28:51]MH_Cut [09:28:51]Write to MH i2c: D1 01 00 09 03 01 DE [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: D1 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: D1 01 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: D1 01 00 09 03 00 DD [09:28:52]Write to MH i2c: 01 00 00 0A 03 0D [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]OFD Sender: No OFD packet to send [09:28:52]*** Cut start [09:28:52]*** Purtial cut [09:28:52]*** Stage 1: CUTSNS_PIN = 1 [09:28:53]Read from MH i2c: 01 [09:28:53]MH_I2C_Read... [09:28:53]*** Stop cut motor [09:28:53]*** Cut end [09:28:53]Read from MH i2c: 01 07 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [09:28:53]process_action close_receipt done [09:28:53]requested_data is exist [09:28:53]produce_requested_data [09:28:53]requested_item fm.sn is exist - process it [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 11 00 00 [09:28:53]Write to MH i2c: E2 08 00 0B 03 80 11 00 00 00 00 00 00 88 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 17 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 17 00 0B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DF [09:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:28:53]wFMCommunicate OK [09:28:53]requested_item fd.num is exist - process it [09:28:53]SAM_PROTO_GetFieldsCounters [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 13 00 00 [09:28:53]Write to MH i2c: E2 08 00 0C 03 80 13 00 00 00 00 00 00 8B [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 62 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 62 00 0C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [09:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 D9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:53]wFMCommunicate OK [09:28:53]SAM_PROTO_GetFieldsCounters done [09:28:53]requested_item shift.num is exist - process it [09:28:53]requested_item shift.opened is exist - process it [09:28:53]req_shift_opened [09:28:53]FM_GetShiftState [09:28:53]SAM_PROTO_GetShiftState [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 13 01 00 [09:28:53]Write to MH i2c: E2 08 00 0D 03 80 13 01 00 00 00 00 00 8D [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0E 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0E 00 0D 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 65 [09:28:53]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:28:53]wFMCommunicate OK [09:28:53]SAM_PROTO_GetShiftState done [09:28:53]FM_GetShiftState done [09:28:53]req_shift_opened done [09:28:53]requested_item shift.open_date is exist - process it [09:28:53]req_shift_open_date [09:28:53]req_shift_open_date done [09:28:53]produce_requested_data done [09:28:53]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117977,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:28:53]process_action_free close_receipt [09:28:53]json_value_free [09:28:53]json_value_free done [09:28:53]process_json_proto returns [09:28:53]Send response to host [09:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117977,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:28:53]free response buf [09:28:53]execute_script done [09:28:53]execute_script returns [09:28:53]free content buf [09:28:53]Sock 7.Close socket [09:28:53]Sock 7.Thread stoped [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:06]accept exits with 9 [09:30:06]New connection [09:30:06]New thread 3067559268 created [09:30:06]Thread 3067415908 joined [09:30:06]Waiting for new connection... [09:30:06] Sock 9.Parse request [09:30:06]Sock 9.Check first char [09:30:06]Sock 9.First char is OK [09:30:06]request: POST /json_proto HTTP/1.0 [09:30:06]Method: POST [09:30:06]URL: /json_proto [09:30:06]Method is POST - this is cgi request [09:30:06]url: /json_proto [09:30:06]query_string will be loaded in cgi processing [09:30:06]execute_cgi json_proto POST (null) [09:30:06]execute_cgi path=json_proto method=POST [09:30:06]POST find Content-Length [09:30:06]Host: 172.17.96.67:8080 [09:30:06]Content-Length: 677 [09:30:06]Content-Type: application/json [09:30:06] [09:30:06]POST finish read [09:30:06]Found Content-Length = 677 [09:30:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:06]execute_script... [09:30: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)245771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:06]POST & json_proto [09:30:06]process_json_proto [09:30:06]json parsed OK: [09:30:06]protocol is kg_v1.0 [09:30:06]action value=close_receipt [09:30:06]process_action close_receipt [09:30:06]cmd_close_receipt [09:30:06]MH_GetDate [09:30:06]Write to MH i2c: F0 00 00 0E 03 00 [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: F0 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: F0 09 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: F0 09 00 0E 03 00 9E FC 21 67 47 6C 1F 67 64 [09:30:06]GetLastDocTimeStamp 1730280529 [09:30:06]current date 1730280606 [09:30:06]FM_GetShiftState [09:30:06]SAM_PROTO_GetShiftState [09:30:06]wFMCommunicate request_size=4 [09:30:06]MH_SAM_APDU [09:30:06]CAPDU: 80 13 01 00 [09:30:06]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 67 [09:30:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:30:06]wFMCommunicate OK [09:30:06]SAM_PROTO_GetShiftState done [09:30:06]FM_GetShiftState done [09:30:06]opened in 1730246605 [09:30:06]opened+sec_in_day 1730333005 [09:30:06]quantity*price = 50041 [09:30:06]sum+1 = 50042 [09:30:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 38 30.10.2024 09:30 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117978 ФПД: 229729925340720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093006&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117978&fm=229729925340720&tin=02508201610067®Number=0000000000091782&sum=50000 [09:30:07]StoreToDocumentArchive [09:30:07]shift 545 fd 117978 [09:30:07]save to /storage/0545/doc_00117978 [09:30:07]save last doc name /storage/0545/doc_00117978 to /storage/kkm_last_doc_name [09:30:07]save OK [09:30:07]Clear old archive folders... [09:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:07]tlvbuf is 00637000 [09:30:07]SAM_PROTO_ClearQueue [09:30:07]wFMCommunicate request_size=4 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 09 00 00 [09:30:07]Write to MH i2c: E2 08 00 1C 03 80 09 00 00 00 00 00 00 91 [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [09:30:07]RAPDU: 90 00 [09:30:07]wFMCommunicate OK [09:30:07]SAM_PROTO_ClearQueue done [09:30:07]KKMCreateOFDPacket [09:30:07]OFDProtocolAddRootSTLVToBuf [09:30:07]FM_MakeSignedData [09:30:07]FM_MakeSignedData [09:30:07]SAM_PROTO_SignData [09:30:07]wFMCommunicate request_size=4 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 0D 01 02 [09:30:07]Write to MH i2c: E2 08 00 1D 03 80 0D 01 02 00 00 00 00 99 [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [09:30:07]RAPDU: 90 00 [09:30:07]wFMCommunicate OK [09:30:07]wFMCommunicate request_size=255 [09:30:07]MH_SAM_APDU [09:30: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 32 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 26 00 00 00 F4 03 04 00 9E FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CC 01 00 35 04 06 00 D0 [09:30:07]Write to MH i2c: E2 02 01 1E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 26 00 00 00 F4 03 04 00 9E FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CC 01 00 35 04 06 00 D0 00 00 0D [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]OFD Sender: No OFD packet to send [09:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [09:30:07]RAPDU: 90 00 [09:30:07]wFMCommunicate OK [09:30:07]wFMCommunicate request_size=10 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 0D 02 02 05 F0 2A 98 1E 30 [09:30:07]Write to MH i2c: E2 0D 00 1F 03 80 0D 02 02 05 00 F0 2A 98 1E 30 00 00 A6 [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [09:30:07]RAPDU: 90 00 [09:30:07]wFMCommunicate OK [09:30:07]wFMCommunicate request_size=4 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 0D 03 02 [09:30:07]Write to MH i2c: E2 08 00 20 03 80 0D 03 02 00 00 00 00 9E [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 0B 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 0B 00 20 03 00 11 93 EE FB 4D 44 1F 9A 90 00 76 [09:30:07]RAPDU: 11 93 EE FB 4D 44 1F 9A 90 00 [09:30:07]wFMCommunicate OK [09:30:07]SAM_PROTO_SignData done [09:30:07]FM_MakeSignedData done [09:30:07]CreateOFDProtocolMessage [09:30:07]wFMCommunicate request_size=4 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 11 00 00 [09:30:07]Write to MH i2c: E2 08 00 21 03 80 11 00 00 00 00 00 00 9E [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 17 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 17 00 21 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F5 [09:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:30:07]wFMCommunicate OK [09:30:07]CreateOFDProtocolMessage done [09:30:07]OFDSenderStorePacket 117978 [09:30:07]StoreOFDPacket docnum=117978 [09:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4A BE 07 01 56 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 26 00 00 00 F4 03 04 00 9E FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CC 01 00 35 04 06 00 D0 F0 2A 98 1E 30 11 93 EE FB 4D 44 1F 9A [09:30:07]CheckFolder [09:30:07]dirname=/storage/ofd_packets [09:30:07]CheckFolder done [09:30:07]ProducePacketName [09:30:07]name=ofd_packets/00117978 [09:30:07]NVStorageSaveData ofd_packets/00117978 [09:30:07]File name is /storage/ofd_packets/00117978 [09:30:07]Write 301 bytes [09:30:07]NVStorageSaveData done [09:30:07]OFDSenderStorePacket done [09:30:07]KKMCreateOFDPacket done [09:30:07]NVStorageSaveData kkm_last_timestamp [09:30:07]File name is /storage/kkm_last_timestamp [09:30:07]Write 4 bytes [09:30:07]NVStorageSaveData done [09:30:07]ExternCall_PrintAddStr [09:30:07]wPrintStart [09:30:07]Write to MH i2c: 01 00 00 22 03 25 [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: 01 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: 01 07 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 FF 0F 3A [09:30:07]RasterBufferAndPrint [09:30:07]line Счет N : (1)245771 [09:30:07]line ИНН: 02508201610067 [09:30:07]line Контрольно-Кассовый Чек [09:30:07]line ПРОДАЖА [09:30:07]line ТРК (МРК, ГНК) : 11 [09:30:07]line Товар: 2710124130 [09:30:07]line Аи-92-К-2 [09:30:07]line 7.480 * 66.90 [09:30:07]line = 500.41 [09:30:07]line НДС 12% НСП 1% [09:30:07]line > о реализуемом товаре [09:30:07]line ОКРУГЛЕНИЕ: -0.41 [09:30:07]line ИТОГО: 500.00 [09:30:07]line Внесено: 500.00 [09:30:07]line СДАЧА: 0.00 [09:30:07]line НСП 1% : 4.43 [09:30:07]line НДС 12% : 53.14 [09:30:07]line Наличными: 500.00 [09:30:07]line Безнал.: 0.00 [09:30:07]line Место: АЗС № 173 "Партнер Нефть" [09:30:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:30:07]line СНО: Общий режим [09:30:07]line Чек 38 30.10.2024 09:30 [09:30:07]line Смена: 545 ФФД: 1.0 [09:30:07]line ЗНМ: 0300000115 [09:30:07]line РНМ: 0000000000091782 [09:30:07]line Версия ККМ: 001 [09:30:07]line ФМ: 0000000000871767 [09:30:07]line ФД: 117978 [09:30:07]line ФПД: 229729925340720 [09:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093006&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117978&fm=229729925340720&tin=02508201610067®Number=0000000000091782&sum=50000 [09:30:07]OFD Sender: Processing packet 117978 [packets to send 77, broken 76] [09:30:07]ProducePacketName [09:30:07]name=ofd_packets/00117978 [09:30:07]OFD Sender: To server: pG, [09:30:07]CommunicateWithHost lk.salyk.kg:30040 [09:30:08]ConnectInit lk.salyk.kg [09:30:08]written 0, free lines is 4095 [09:30:08]Connected sock=10 [09: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 36 37 0F 01 00 00 4A BE 07 01 56 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 26 00 00 00 F4 03 04 00 9E FC 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DA CC 01 00 35 04 06 00 D0 F0 2A 98 1E 30 11 93 EE FB 4D 44 1F 9A [09: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 36 37 4F 00 00 00 76 22 47 00 4D 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 36 37 10 04 04 00 DA CC 01 00 F4 03 04 00 56 A8 21 67 B6 04 01 00 00 4A 58 A0 C7 E7 B5 C0 C9 [09:30:08]CommunicateWithHost err = 0 [09:30:08]CheckOFDResponse [09:30:08]1017 (14) - 77093643461234 [09:30:08]1041 (16) - 0000000000871767 [09:30:08]1040 (4) - 117978 [09:30:08]1012 (4) - 30.10.2024 03:30 [09:30:08]1206 (1) - 0 [09:30:08]OFD Sender: Remove packet 117978 [09:30:08]ProducePacketName [09:30:08]name=ofd_packets/00117978 [09:30:08]NVStorageDeleteData [09:30:08]Write to MH i2c: 01 00 00 4C 03 4F [09:30:08]Write i2c OK [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: 01 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: 01 07 00 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 AF 0C 11 [09:30:08]RasterBufferAndPrint [09:30:08]line [09:30:08]line [09:30:08]line [09:30:08]line [09:30:08]line [09:30:08]written 0, free lines is 3251 [09:30:08]MH_Cut [09:30:08]Write to MH i2c: D1 01 00 53 03 01 28 [09:30:08]Write i2c OK [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: D1 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: D1 01 00 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: D1 01 00 53 03 00 27 [09:30:08]Write to MH i2c: 01 00 00 54 03 57 [09:30:08]Write i2c OK [09:30:08]MH_I2C_Read... [09:30:08]OFD Sender: No OFD packet to send [09:30:09]*** Cut start [09:30:09]*** Purtial cut [09:30:09]*** Stage 1: CUTSNS_PIN = 1 [09:30:09]Read from MH i2c: 01 [09:30:09]MH_I2C_Read... [09:30:09]*** Stop cut motor [09:30:09]*** Cut end [09:30:09]Read from MH i2c: 01 07 00 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [09:30:09]process_action close_receipt done [09:30:09]requested_data is exist [09:30:09]produce_requested_data [09:30:09]requested_item fm.sn is exist - process it [09:30:09]wFMCommunicate request_size=4 [09:30:09]MH_SAM_APDU [09:30:09]CAPDU: 80 11 00 00 [09:30:09]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:09]Read from MH i2c: E2 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: E2 17 00 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 29 [09:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:30:09]wFMCommunicate OK [09:30:09]requested_item fd.num is exist - process it [09:30:09]SAM_PROTO_GetFieldsCounters [09:30:09]wFMCommunicate request_size=4 [09:30:09]MH_SAM_APDU [09:30:09]CAPDU: 80 13 00 00 [09:30:09]Write to MH i2c: E2 08 00 56 03 80 13 00 00 00 00 00 00 D5 [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:09]Read from MH i2c: E2 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: E2 62 00 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: E2 62 00 56 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:09]wFMCommunicate OK [09:30:09]SAM_PROTO_GetFieldsCounters done [09:30:09]requested_item shift.num is exist - process it [09:30:09]requested_item shift.opened is exist - process it [09:30:09]req_shift_opened [09:30:09]FM_GetShiftState [09:30:09]SAM_PROTO_GetShiftState [09:30:09]wFMCommunicate request_size=4 [09:30:09]MH_SAM_APDU [09:30:09]CAPDU: 80 13 01 00 [09:30:09]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:10]Read from MH i2c: E2 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 0E 00 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AF [09:30:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:30:10]wFMCommunicate OK [09:30:10]SAM_PROTO_GetShiftState done [09:30:10]FM_GetShiftState done [09:30:10]req_shift_opened done [09:30:10]requested_item shift.open_date is exist - process it [09:30:10]req_shift_open_date [09:30:10]req_shift_open_date done [09:30:10]produce_requested_data done [09:30:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117978,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:30:10]process_action_free close_receipt [09:30:10]json_value_free [09:30:10]json_value_free done [09:30:10]process_json_proto returns [09:30:10]Send response to host [09:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117978,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:30:10]free response buf [09:30:10]execute_script done [09:30:10]execute_script returns [09:30:10]free content buf [09:30:10]Sock 9.Close socket [09:30:10]Sock 9.Thread stoped [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:39]accept exits with 7 [09:32:39]New connection [09:32:39]New thread 3067415908 created [09:32:39]Thread 3067559268 joined [09:32:39]Waiting for new connection... [09:32:39] Sock 7.Parse request [09:32:39]Sock 7.Check first char [09:32:39]Sock 7.First char is OK [09:32:39]request: POST /json_proto HTTP/1.0 [09:32:39]Method: POST [09:32:39]URL: /json_proto [09:32:39]Method is POST - this is cgi request [09:32:39]url: /json_proto [09:32:39]query_string will be loaded in cgi processing [09:32:39]execute_cgi json_proto POST (null) [09:32:39]execute_cgi path=json_proto method=POST [09:32:39]POST find Content-Length [09:32:39]Host: 172.17.96.67:8080 [09:32:39]Content-Length: 677 [09:32:39]Content-Type: application/json [09:32:39] [09:32:39]POST finish read [09:32:39]Found Content-Length = 677 [09:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:39]execute_script... [09:32: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)245772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:39]POST & json_proto [09:32:39]process_json_proto [09:32:39]json parsed OK: [09:32:39]protocol is kg_v1.0 [09:32:39]action value=close_receipt [09:32:39]process_action close_receipt [09:32:39]cmd_close_receipt [09:32:39]MH_GetDate [09:32:39]Write to MH i2c: F0 00 00 58 03 4A [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: F0 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: F0 09 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: F0 09 00 58 03 00 37 FD 21 67 47 6C 1F 67 48 [09:32:39]GetLastDocTimeStamp 1730280606 [09:32:39]current date 1730280759 [09:32:39]FM_GetShiftState [09:32:39]SAM_PROTO_GetShiftState [09:32:39]wFMCommunicate request_size=4 [09:32:39]MH_SAM_APDU [09:32:39]CAPDU: 80 13 01 00 [09:32:39]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0E 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B1 [09:32:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:32:39]wFMCommunicate OK [09:32:39]SAM_PROTO_GetShiftState done [09:32:39]FM_GetShiftState done [09:32:39]opened in 1730246605 [09:32:39]opened+sec_in_day 1730333005 [09:32:39]quantity*price = 30038 [09:32:39]sum+1 = 30039 [09:32: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 39 30.10.2024 09:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117979 ФПД: 142790697764509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093239&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117979&fm=142790697764509&tin=02508201610067®Number=0000000000091782&sum=30000 [09:32:40]StoreToDocumentArchive [09:32:40]shift 545 fd 117979 [09:32:40]save to /storage/0545/doc_00117979 [09:32:40]save last doc name /storage/0545/doc_00117979 to /storage/kkm_last_doc_name [09:32:40]save OK [09:32:40]Clear old archive folders... [09:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:40]tlvbuf is 00686210 [09:32:40]SAM_PROTO_ClearQueue [09:32:40]wFMCommunicate request_size=4 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 09 00 00 [09:32:40]Write to MH i2c: E2 08 00 66 03 80 09 00 00 00 00 00 00 DB [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:40]Read from MH i2c: E2 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [09:32:40]RAPDU: 90 00 [09:32:40]wFMCommunicate OK [09:32:40]SAM_PROTO_ClearQueue done [09:32:40]KKMCreateOFDPacket [09:32:40]OFDProtocolAddRootSTLVToBuf [09:32:40]FM_MakeSignedData [09:32:40]FM_MakeSignedData [09:32:40]SAM_PROTO_SignData [09:32:40]wFMCommunicate request_size=4 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 0D 01 02 [09:32:40]Write to MH i2c: E2 08 00 67 03 80 0D 01 02 00 00 00 00 E3 [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:40]Read from MH i2c: E2 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [09:32:40]RAPDU: 90 00 [09:32:40]wFMCommunicate OK [09:32:40]wFMCommunicate request_size=255 [09:32:40]MH_SAM_APDU [09:32: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 32 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 27 00 00 00 F4 03 04 00 37 FD 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CC 01 00 35 04 06 00 81 [09:32:40]Write to MH i2c: E2 02 01 68 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 27 00 00 00 F4 03 04 00 37 FD 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CC 01 00 35 04 06 00 81 00 00 98 [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:40]Read from MH i2c: E2 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [09:32:40]RAPDU: 90 00 [09:32:40]wFMCommunicate OK [09:32:40]wFMCommunicate request_size=10 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 0D 02 02 05 DE 0C D1 46 9D [09:32:40]Write to MH i2c: E2 0D 00 69 03 80 0D 02 02 05 00 DE 0C D1 46 9D 00 00 8E [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:40]Read from MH i2c: E2 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [09:32:40]RAPDU: 90 00 [09:32:40]wFMCommunicate OK [09:32:40]wFMCommunicate request_size=4 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 0D 03 02 [09:32:40]Write to MH i2c: E2 08 00 6A 03 80 0D 03 02 00 00 00 00 E8 [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 0B 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 0B 00 6A 03 00 D9 B1 5A 59 53 01 A6 AB 90 00 CB [09:32:41]RAPDU: D9 B1 5A 59 53 01 A6 AB 90 00 [09:32:41]wFMCommunicate OK [09:32:41]SAM_PROTO_SignData done [09:32:41]FM_MakeSignedData done [09:32:41]CreateOFDProtocolMessage [09:32:41]wFMCommunicate request_size=4 [09:32:41]MH_SAM_APDU [09:32:41]CAPDU: 80 11 00 00 [09:32:41]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 17 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3F [09:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:32:41]wFMCommunicate OK [09:32:41]CreateOFDProtocolMessage done [09:32:41]OFDSenderStorePacket 117979 [09:32:41]StoreOFDPacket docnum=117979 [09:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 58 03 07 01 D5 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 37 FD 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CC 01 00 35 04 06 00 81 DE 0C D1 46 9D D9 B1 5A 59 53 01 A6 AB [09:32:41]CheckFolder [09:32:41]dirname=/storage/ofd_packets [09:32:41]CheckFolder done [09:32:41]ProducePacketName [09:32:41]name=ofd_packets/00117979 [09:32:41]NVStorageSaveData ofd_packets/00117979 [09:32:41]File name is /storage/ofd_packets/00117979 [09:32:41]Write 301 bytes [09:32:41]NVStorageSaveData done [09:32:41]OFDSenderStorePacket done [09:32:41]KKMCreateOFDPacket done [09:32:41]NVStorageSaveData kkm_last_timestamp [09:32:41]File name is /storage/kkm_last_timestamp [09:32:41]Write 4 bytes [09:32:41]NVStorageSaveData done [09:32:41]ExternCall_PrintAddStr [09:32:41]wPrintStart [09:32:41]Write to MH i2c: 01 00 00 6C 03 6F [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 07 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [09:32:41]RasterBufferAndPrint [09:32:41]line Счет N : (1)245772 [09:32:41]line ИНН: 02508201610067 [09:32:41]line Контрольно-Кассовый Чек [09:32:41]line ПРОДАЖА [09:32:41]line ТРК (МРК, ГНК) : 21 [09:32:41]line Товар: 2710124130 [09:32:41]line Аи-92-К-2 [09:32:41]line 4.490 * 66.90 [09:32:41]line = 300.38 [09:32:41]line НДС 12% НСП 1% [09:32:41]line > о реализуемом товаре [09:32:41]line ОКРУГЛЕНИЕ: -0.38 [09:32:41]line ИТОГО: 300.00 [09:32:41]line Внесено: 300.00 [09:32:41]line СДАЧА: 0.00 [09:32:41]line НСП 1% : 2.66 [09:32:41]line НДС 12% : 31.90 [09:32:41]line Наличными: 300.00 [09:32:41]line Безнал.: 0.00 [09:32:41]line Место: АЗС № 173 "Партнер Нефть" [09:32:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:32:41]line СНО: Общий режим [09:32:41]line Чек 39 30.10.2024 09:32 [09:32:41]line Смена: 545 ФФД: 1.0 [09:32:41]line ЗНМ: 0300000115 [09:32:41]line РНМ: 0000000000091782 [09:32:41]line Версия ККМ: 001 [09:32:41]line ФМ: 0000000000871767 [09:32:41]line ФД: 117979 [09:32:41]line ФПД: 142790697764509 [09:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093239&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117979&fm=142790697764509&tin=02508201610067®Number=0000000000091782&sum=30000 [09:32:41]written 0, free lines is 4095 [09:32:41]OFD Sender: Processing packet 117979 [packets to send 77, broken 76] [09:32:41]ProducePacketName [09:32:41]name=ofd_packets/00117979 [09:32:41]OFD Sender: To server: pG, [09:32:41]CommunicateWithHost lk.salyk.kg:30040 [09:32:41]ConnectInit lk.salyk.kg [09:32:41]Connected sock=10 [09:32: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 36 37 0F 01 00 00 58 03 07 01 D5 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 37 FD 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CC 01 00 35 04 06 00 81 DE 0C D1 46 9D D9 B1 5A 59 53 01 A6 AB [09:32: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 36 37 4F 00 00 00 86 F9 47 00 1A 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DB CC 01 00 F4 03 04 00 EF A8 21 67 B6 04 01 00 00 C6 57 06 A2 B4 67 36 53 [09:32:41]CommunicateWithHost err = 0 [09:32:41]CheckOFDResponse [09:32:41]1017 (14) - 77093643461234 [09:32:41]1041 (16) - 0000000000871767 [09:32:41]1040 (4) - 117979 [09:32:41]1012 (4) - 30.10.2024 03:33 [09:32:41]1206 (1) - 0 [09:32:41]OFD Sender: Remove packet 117979 [09:32:41]ProducePacketName [09:32:41]name=ofd_packets/00117979 [09:32:41]NVStorageDeleteData [09:32:41]Write to MH i2c: 01 00 00 96 03 99 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 07 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: 01 07 00 96 03 00 00 00 00 00 AA 0C 56 [09:32:41]RasterBufferAndPrint [09:32:41]line [09:32:41]line [09:32:41]line [09:32:41]line [09:32:41]line [09:32:41]written 0, free lines is 3245 [09:32:41]MH_Cut [09:32:41]Write to MH i2c: D1 01 00 9D 03 01 72 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: D1 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: D1 01 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: D1 01 00 9D 03 00 71 [09:32:41]Write to MH i2c: 01 00 00 9E 03 A1 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:42]OFD Sender: No OFD packet to send [09:32:42]*** Cut start [09:32:42]*** Purtial cut [09:32:42]*** Stage 1: CUTSNS_PIN = 1 [09:32:43]Read from MH i2c: 01 [09:32:43]MH_I2C_Read... [09:32:43]*** Stop cut motor [09:32:43]*** Cut end [09:32:43]Read from MH i2c: 01 07 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [09:32:43]process_action close_receipt done [09:32:43]requested_data is exist [09:32:43]produce_requested_data [09:32:43]requested_item fm.sn is exist - process it [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 11 00 00 [09:32:43]Write to MH i2c: E2 08 00 9F 03 80 11 00 00 00 00 00 00 1C [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:43]Read from MH i2c: E2 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 17 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 17 00 9F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 73 [09:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:32:43]wFMCommunicate OK [09:32:43]requested_item fd.num is exist - process it [09:32:43]SAM_PROTO_GetFieldsCounters [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 13 00 00 [09:32:43]Write to MH i2c: E2 08 00 A0 03 80 13 00 00 00 00 00 00 1F [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:43]Read from MH i2c: E2 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 62 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 62 00 A0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [09:32: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:43]wFMCommunicate OK [09:32:43]SAM_PROTO_GetFieldsCounters done [09:32:43]requested_item shift.num is exist - process it [09:32:43]requested_item shift.opened is exist - process it [09:32:43]req_shift_opened [09:32:43]FM_GetShiftState [09:32:43]SAM_PROTO_GetShiftState [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 13 01 00 [09:32:43]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:43]Read from MH i2c: E2 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 0E 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F9 [09:32:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:32:43]wFMCommunicate OK [09:32:43]SAM_PROTO_GetShiftState done [09:32:43]FM_GetShiftState done [09:32:43]req_shift_opened done [09:32:43]requested_item shift.open_date is exist - process it [09:32:43]req_shift_open_date [09:32:43]req_shift_open_date done [09:32:43]produce_requested_data done [09:32:43]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117979,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:32:43]process_action_free close_receipt [09:32:43]json_value_free [09:32:43]json_value_free done [09:32:43]process_json_proto returns [09:32:43]Send response to host [09:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117979,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:32:43]free response buf [09:32:43]execute_script done [09:32:43]execute_script returns [09:32:43]free content buf [09:32:43]Sock 7.Close socket [09:32:43]Sock 7.Thread stoped [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:29]accept exits with 9 [09:36:29]New connection [09:36:29]New thread 3067559268 created [09:36:29]Thread 3067415908 joined [09:36:29]Waiting for new connection... [09:36:29] Sock 9.Parse request [09:36:29]Sock 9.Check first char [09:36:29]Sock 9.First char is OK [09:36:29]request: POST /json_proto HTTP/1.0 [09:36:29]Method: POST [09:36:29]URL: /json_proto [09:36:29]Method is POST - this is cgi request [09:36:29]url: /json_proto [09:36:29]query_string will be loaded in cgi processing [09:36:29]execute_cgi json_proto POST (null) [09:36:29]execute_cgi path=json_proto method=POST [09:36:29]POST find Content-Length [09:36:29]Host: 172.17.96.67:8080 [09:36:29]Content-Length: 678 [09:36:29]Content-Type: application/json [09:36:29] [09:36:29]POST finish read [09:36:29]Found Content-Length = 678 [09:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:36:29]execute_script... [09:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:36:29]POST & json_proto [09:36:29]process_json_proto [09:36:29]json parsed OK: [09:36:29]protocol is kg_v1.0 [09:36:29]action value=close_receipt [09:36:29]process_action close_receipt [09:36:29]cmd_close_receipt [09:36:29]MH_GetDate [09:36:29]Write to MH i2c: F0 00 00 A2 03 94 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: F0 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: F0 09 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: F0 09 00 A2 03 00 1D FE 21 67 47 6C 1F 67 79 [09:36:29]GetLastDocTimeStamp 1730280759 [09:36:29]current date 1730280989 [09:36:29]FM_GetShiftState [09:36:29]SAM_PROTO_GetShiftState [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 01 00 [09:36:29]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FB [09:36:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetShiftState done [09:36:29]FM_GetShiftState done [09:36:29]opened in 1730246605 [09:36:29]opened+sec_in_day 1730333005 [09:36:29]quantity*price = 70044 [09:36:29]sum+1 = 70045 [09:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 40 30.10.2024 09:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117980 ФПД: 189859394105360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093629&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117980&fm=189859394105360&tin=02508201610067®Number=0000000000091782&sum=70000 [09:36:30]StoreToDocumentArchive [09:36:30]shift 545 fd 117980 [09:36:30]save to /storage/0545/doc_00117980 [09:36:30]save last doc name /storage/0545/doc_00117980 to /storage/kkm_last_doc_name [09:36:30]save OK [09:36:30]Clear old archive folders... [09:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:30]tlvbuf is 00626690 [09:36:30]SAM_PROTO_ClearQueue [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 09 00 00 [09:36:30]Write to MH i2c: E2 08 00 B0 03 80 09 00 00 00 00 00 00 25 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [09:36:30]RAPDU: 90 00 [09:36:30]wFMCommunicate OK [09:36:30]SAM_PROTO_ClearQueue done [09:36:30]KKMCreateOFDPacket [09:36:30]OFDProtocolAddRootSTLVToBuf [09:36:30]FM_MakeSignedData [09:36:30]FM_MakeSignedData [09:36:30]SAM_PROTO_SignData [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 0D 01 02 [09:36:30]Write to MH i2c: E2 08 00 B1 03 80 0D 01 02 00 00 00 00 2D [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [09:36:30]RAPDU: 90 00 [09:36:30]wFMCommunicate OK [09:36:30]wFMCommunicate request_size=255 [09:36:30]MH_SAM_APDU [09:36: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 32 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 28 00 00 00 F4 03 04 00 1D FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CC 01 00 35 04 06 00 AC [09:36:30]Write to MH i2c: E2 02 01 B2 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 28 00 00 00 F4 03 04 00 1D FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CC 01 00 35 04 06 00 AC 00 00 12 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [09:36:30]RAPDU: 90 00 [09:36:30]wFMCommunicate OK [09:36:30]wFMCommunicate request_size=10 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 0D 02 02 05 AD 15 BE 30 10 [09:36:30]Write to MH i2c: E2 0D 00 B3 03 80 0D 02 02 05 00 AD 15 BE 30 10 00 00 FA [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [09:36:30]RAPDU: 90 00 [09:36:30]wFMCommunicate OK [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 0D 03 02 [09:36:30]Write to MH i2c: E2 08 00 B4 03 80 0D 03 02 00 00 00 00 32 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 0B 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 0B 00 B4 03 00 3D 75 D8 E9 F7 EA A0 DC 90 00 03 [09:36:30]RAPDU: 3D 75 D8 E9 F7 EA A0 DC 90 00 [09:36:30]wFMCommunicate OK [09:36:30]SAM_PROTO_SignData done [09:36:30]FM_MakeSignedData done [09:36:30]CreateOFDProtocolMessage [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 11 00 00 [09:36:30]Write to MH i2c: E2 08 00 B5 03 80 11 00 00 00 00 00 00 32 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 17 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 17 00 B5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 89 [09:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:36:30]wFMCommunicate OK [09:36:30]CreateOFDProtocolMessage done [09:36:30]OFDSenderStorePacket 117980 [09:36:30]StoreOFDPacket docnum=117980 [09:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 15 4D 07 01 E5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 28 00 00 00 F4 03 04 00 1D FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CC 01 00 35 04 06 00 AC AD 15 BE 30 10 3D 75 D8 E9 F7 EA A0 DC [09:36:30]CheckFolder [09:36:30]dirname=/storage/ofd_packets [09:36:30]CheckFolder done [09:36:30]ProducePacketName [09:36:30]name=ofd_packets/00117980 [09:36:30]NVStorageSaveData ofd_packets/00117980 [09:36:30]File name is /storage/ofd_packets/00117980 [09:36:30]Write 301 bytes [09:36:30]NVStorageSaveData done [09:36:30]OFDSenderStorePacket done [09:36:30]KKMCreateOFDPacket done [09:36:30]NVStorageSaveData kkm_last_timestamp [09:36:30]File name is /storage/kkm_last_timestamp [09:36:30]Write 4 bytes [09:36:30]NVStorageSaveData done [09:36:30]ExternCall_PrintAddStr [09:36:30]wPrintStart [09:36:30]Write to MH i2c: 01 00 00 B6 03 B9 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: 01 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: 01 07 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: 01 07 00 B6 03 00 00 00 00 00 FF 0F CE [09:36:30]RasterBufferAndPrint [09:36:30]line Счет N : (1)245773 [09:36:30]line ИНН: 02508201610067 [09:36:30]line Контрольно-Кассовый Чек [09:36:30]line ПРОДАЖА [09:36:30]line ТРК (МРК, ГНК) : 21 [09:36:30]line Товар: 2710124130 [09:36:30]line Аи-92-К-2 [09:36:30]line 10.470 * 66.90 [09:36:30]line = 700.44 [09:36:30]line НДС 12% НСП 1% [09:36:30]line > о реализуемом товаре [09:36:30]line ОКРУГЛЕНИЕ: -0.44 [09:36:30]line ИТОГО: 700.00 [09:36:30]line Внесено: 700.00 [09:36:30]line СДАЧА: 0.00 [09:36:30]line НСП 1% : 6.20 [09:36:30]line НДС 12% : 74.38 [09:36:30]line Наличными: 700.00 [09:36:30]line Безнал.: 0.00 [09:36:30]line Место: АЗС № 173 "Партнер Нефть" [09:36:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:36:30]line СНО: Общий режим [09:36:30]line Чек 40 30.10.2024 09:36 [09:36:30]line Смена: 545 ФФД: 1.0 [09:36:30]line ЗНМ: 0300000115 [09:36:30]line РНМ: 0000000000091782 [09:36:30]line Версия ККМ: 001 [09:36:30]line ФМ: 0000000000871767 [09:36:30]line ФД: 117980 [09:36:30]line ФПД: 189859394105360 [09:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093629&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117980&fm=189859394105360&tin=02508201610067®Number=0000000000091782&sum=70000 [09:36:31]OFD Sender: Processing packet 117980 [packets to send 77, broken 76] [09:36:31]ProducePacketName [09:36:31]name=ofd_packets/00117980 [09:36:31]OFD Sender: To server: pG, [09:36:31]CommunicateWithHost lk.salyk.kg:30040 [09:36:31]ConnectInit lk.salyk.kg [09:36:31]written 0, free lines is 4095 [09:36:31]Connected sock=10 [09:36: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 36 37 0F 01 00 00 15 4D 07 01 E5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 28 00 00 00 F4 03 04 00 1D FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DC CC 01 00 35 04 06 00 AC AD 15 BE 30 10 3D 75 D8 E9 F7 EA A0 DC [09:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 DD 32 47 00 70 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 36 37 10 04 04 00 DC CC 01 00 F4 03 04 00 D5 A9 21 67 B6 04 01 00 00 65 24 90 B4 FA 1C 20 85 [09:36:31]CommunicateWithHost err = 0 [09:36:31]CheckOFDResponse [09:36:31]1017 (14) - 77093643461234 [09:36:31]1041 (16) - 0000000000871767 [09:36:31]1040 (4) - 117980 [09:36:31]1012 (4) - 30.10.2024 03:36 [09:36:31]1206 (1) - 0 [09:36:31]OFD Sender: Remove packet 117980 [09:36:31]ProducePacketName [09:36:31]name=ofd_packets/00117980 [09:36:31]NVStorageDeleteData [09:36:31]Write to MH i2c: 01 00 00 E0 03 E3 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 07 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 A3 0C 99 [09:36:31]RasterBufferAndPrint [09:36:31]line [09:36:31]line [09:36:31]line [09:36:31]line [09:36:31]line [09:36:31]written 0, free lines is 3240 [09:36:31]MH_Cut [09:36:31]Write to MH i2c: D1 01 00 E7 03 01 BC [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: D1 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: D1 01 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: D1 01 00 E7 03 00 BB [09:36:31]Write to MH i2c: 01 00 00 E8 03 EB [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]OFD Sender: No OFD packet to send [09:36:32]*** Cut start [09:36:32]*** Purtial cut [09:36:32]*** Stage 1: CUTSNS_PIN = 1 [09:36:32]Read from MH i2c: 01 [09:36:32]MH_I2C_Read... [09:36:32]*** Stop cut motor [09:36:32]*** Cut end [09:36:32]Read from MH i2c: 01 07 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 FF 0F 00 [09:36:32]process_action close_receipt done [09:36:32]requested_data is exist [09:36:32]produce_requested_data [09:36:32]requested_item fm.sn is exist - process it [09:36:32]wFMCommunicate request_size=4 [09:36:32]MH_SAM_APDU [09:36:32]CAPDU: 80 11 00 00 [09:36:32]Write to MH i2c: E2 08 00 E9 03 80 11 00 00 00 00 00 00 66 [09:36:32]Write i2c OK [09:36:32]MH_I2C_Read... [09:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:32]Read from MH i2c: E2 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 17 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 17 00 E9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BD [09:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:36:32]wFMCommunicate OK [09:36:32]requested_item fd.num is exist - process it [09:36:32]SAM_PROTO_GetFieldsCounters [09:36:32]wFMCommunicate request_size=4 [09:36:32]MH_SAM_APDU [09:36:32]CAPDU: 80 13 00 00 [09:36:32]Write to MH i2c: E2 08 00 EA 03 80 13 00 00 00 00 00 00 69 [09:36:32]Write i2c OK [09:36:32]MH_I2C_Read... [09:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:32]Read from MH i2c: E2 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 62 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 62 00 EA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:32]wFMCommunicate OK [09:36:32]SAM_PROTO_GetFieldsCounters done [09:36:32]requested_item shift.num is exist - process it [09:36:32]requested_item shift.opened is exist - process it [09:36:32]req_shift_opened [09:36:32]FM_GetShiftState [09:36:32]SAM_PROTO_GetShiftState [09:36:32]wFMCommunicate request_size=4 [09:36:32]MH_SAM_APDU [09:36:32]CAPDU: 80 13 01 00 [09:36:32]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [09:36:32]Write i2c OK [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 [09:36:32]MH_I2C_Read... [09:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:32]Read from MH i2c: E2 0E 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 43 [09:36:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:36:32]wFMCommunicate OK [09:36:32]SAM_PROTO_GetShiftState done [09:36:32]FM_GetShiftState done [09:36:32]req_shift_opened done [09:36:32]requested_item shift.open_date is exist - process it [09:36:32]req_shift_open_date [09:36:32]req_shift_open_date done [09:36:32]produce_requested_data done [09:36:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117980,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:36:32]process_action_free close_receipt [09:36:32]json_value_free [09:36:32]json_value_free done [09:36:32]process_json_proto returns [09:36:32]Send response to host [09:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117980,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:36:32]free response buf [09:36:32]execute_script done [09:36:32]execute_script returns [09:36:32]free content buf [09:36:32]Sock 9.Close socket [09:36:32]Sock 9.Thread stoped [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:51]accept exits with 7 [09:37:51]New connection [09:37:51]New thread 3067415908 created [09:37:51]Thread 3067559268 joined [09:37:51]Waiting for new connection... [09:37:51] Sock 7.Parse request [09:37:51]Sock 7.Check first char [09:37:51]Sock 7.First char is OK [09:37:51]request: POST /json_proto HTTP/1.0 [09:37:51]Method: POST [09:37:51]URL: /json_proto [09:37:51]Method is POST - this is cgi request [09:37:51]url: /json_proto [09:37:51]query_string will be loaded in cgi processing [09:37:51]execute_cgi json_proto POST (null) [09:37:51]execute_cgi path=json_proto method=POST [09:37:51]POST find Content-Length [09:37:51]Host: 172.17.96.67:8080 [09:37:51]Content-Length: 677 [09:37:51]Content-Type: application/json [09:37:51] [09:37:51]POST finish read [09:37:51]Found Content-Length = 677 [09:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:51]execute_script... [09:37:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:51]POST & json_proto [09:37:51]process_json_proto [09:37:51]json parsed OK: [09:37:51]protocol is kg_v1.0 [09:37:51]action value=close_receipt [09:37:51]process_action close_receipt [09:37:51]cmd_close_receipt [09:37:51]MH_GetDate [09:37:51]Write to MH i2c: F0 00 00 EC 03 DE [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: F0 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: F0 09 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: F0 09 00 EC 03 00 6F FE 21 67 47 6C 1F 67 15 [09:37:51]GetLastDocTimeStamp 1730280989 [09:37:51]current date 1730281071 [09:37:51]FM_GetShiftState [09:37:51]SAM_PROTO_GetShiftState [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 13 01 00 [09:37:51]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0E 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 45 [09:37:51]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:37:51]wFMCommunicate OK [09:37:51]SAM_PROTO_GetShiftState done [09:37:51]FM_GetShiftState done [09:37:51]opened in 1730246605 [09:37:51]opened+sec_in_day 1730333005 [09:37:51]quantity*price = 20003 [09:37:51]sum+1 = 20004 [09:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 41 30.10.2024 09:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117981 ФПД: 60009069557261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093751&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117981&fm=60009069557261&tin=02508201610067®Number=0000000000091782&sum=20000 [09:37:52]StoreToDocumentArchive [09:37:52]shift 545 fd 117981 [09:37:52]save to /storage/0545/doc_00117981 [09:37:52]save last doc name /storage/0545/doc_00117981 to /storage/kkm_last_doc_name [09:37:52]save OK [09:37:52]Clear old archive folders... [09:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:52]tlvbuf is 0065DF70 [09:37:52]SAM_PROTO_ClearQueue [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 09 00 00 [09:37:52]Write to MH i2c: E2 08 00 FA 03 80 09 00 00 00 00 00 00 6F [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [09:37:52]RAPDU: 90 00 [09:37:52]wFMCommunicate OK [09:37:52]SAM_PROTO_ClearQueue done [09:37:52]KKMCreateOFDPacket [09:37:52]OFDProtocolAddRootSTLVToBuf [09:37:52]FM_MakeSignedData [09:37:52]FM_MakeSignedData [09:37:52]SAM_PROTO_SignData [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 0D 01 02 [09:37:52]Write to MH i2c: E2 08 00 FB 03 80 0D 01 02 00 00 00 00 77 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [09:37:52]RAPDU: 90 00 [09:37:52]wFMCommunicate OK [09:37:52]wFMCommunicate request_size=255 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 00 00 00 F4 03 04 00 6F FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CC 01 00 35 04 06 00 36 [09:37:52]Write to MH i2c: E2 02 01 FC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 00 00 00 F4 03 04 00 6F FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CC 01 00 35 04 06 00 36 00 00 EC [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [09:37:52]RAPDU: 90 00 [09:37:52]wFMCommunicate OK [09:37:52]wFMCommunicate request_size=10 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 0D 02 02 05 93 F3 46 36 0D [09:37:52]Write to MH i2c: E2 0D 00 FD 03 80 0D 02 02 05 00 93 F3 46 36 0D 00 00 93 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [09:37:52]RAPDU: 90 00 [09:37:52]wFMCommunicate OK [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 0D 03 02 [09:37:52]Write to MH i2c: E2 08 00 FE 03 80 0D 03 02 00 00 00 00 7C [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0B 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0B 00 FE 03 00 DA 0E 03 0B 99 BE E2 8D 90 00 39 [09:37:52]RAPDU: DA 0E 03 0B 99 BE E2 8D 90 00 [09:37:52]wFMCommunicate OK [09:37:52]SAM_PROTO_SignData done [09:37:52]FM_MakeSignedData done [09:37:52]CreateOFDProtocolMessage [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 11 00 00 [09:37:52]Write to MH i2c: E2 08 00 FF 03 80 11 00 00 00 00 00 00 7C [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 FF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D3 [09:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:37:52]wFMCommunicate OK [09:37:52]CreateOFDProtocolMessage done [09:37:52]OFDSenderStorePacket 117981 [09:37:52]StoreOFDPacket docnum=117981 [09:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 05 29 07 01 BD 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 32 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 29 00 00 00 F4 03 04 00 6F FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CC 01 00 35 04 06 00 36 93 F3 46 36 0D DA 0E 03 0B 99 BE E2 8D [09:37:52]CheckFolder [09:37:52]dirname=/storage/ofd_packets [09:37:52]CheckFolder done [09:37:52]ProducePacketName [09:37:52]name=ofd_packets/00117981 [09:37:52]NVStorageSaveData ofd_packets/00117981 [09:37:52]File name is /storage/ofd_packets/00117981 [09:37:52]Write 301 bytes [09:37:52]NVStorageSaveData done [09:37:52]OFDSenderStorePacket done [09:37:52]KKMCreateOFDPacket done [09:37:52]NVStorageSaveData kkm_last_timestamp [09:37:52]File name is /storage/kkm_last_timestamp [09:37:52]Write 4 bytes [09:37:52]NVStorageSaveData done [09:37:52]ExternCall_PrintAddStr [09:37:52]wPrintStart [09:37:52]Write to MH i2c: 01 00 00 00 04 04 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 00 04 00 00 00 00 00 FF 0F 19 [09:37:52]RasterBufferAndPrint [09:37:52]line Счет N : (1)245774 [09:37:52]line ИНН: 02508201610067 [09:37:52]line Контрольно-Кассовый Чек [09:37:52]line ПРОДАЖА [09:37:52]line ТРК (МРК, ГНК) : 21 [09:37:52]line Товар: 2710124130 [09:37:52]line Аи-92-К-2 [09:37:52]line 2.990 * 66.90 [09:37:52]line = 200.03 [09:37:52]line НДС 12% НСП 1% [09:37:52]line > о реализуемом товаре [09:37:52]line ОКРУГЛЕНИЕ: -0.03 [09:37:52]line ИТОГО: 200.00 [09:37:52]line Внесено: 200.00 [09:37:52]line СДАЧА: 0.00 [09:37:52]line НСП 1% : 1.77 [09:37:52]line НДС 12% : 21.24 [09:37:52]line Наличными: 200.00 [09:37:52]line Безнал.: 0.00 [09:37:52]line Место: АЗС № 173 "Партнер Нефть" [09:37:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:37:52]line СНО: Общий режим [09:37:52]line Чек 41 30.10.2024 09:37 [09:37:52]line Смена: 545 ФФД: 1.0 [09:37:52]line ЗНМ: 0300000115 [09:37:52]line РНМ: 0000000000091782 [09:37:52]line Версия ККМ: 001 [09:37:52]line ФМ: 0000000000871767 [09:37:52]line ФД: 117981 [09:37:52]line ФПД: 60009069557261 [09:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093751&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117981&fm=60009069557261&tin=02508201610067®Number=0000000000091782&sum=20000 [09:37:52]written 0, free lines is 4095 [09:37:52]OFD Sender: Processing packet 117981 [packets to send 77, broken 76] [09:37:52]ProducePacketName [09:37:52]name=ofd_packets/00117981 [09:37:52]OFD Sender: To server: pG, [09:37:52]CommunicateWithHost lk.salyk.kg:30040 [09:37:52]ConnectInit lk.salyk.kg [09:37:53]Connected sock=10 [09:37: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 36 37 0F 01 00 00 05 29 07 01 BD 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 32 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 29 00 00 00 F4 03 04 00 6F FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CC 01 00 35 04 06 00 36 93 F3 46 36 0D DA 0E 03 0B 99 BE E2 8D [09:37: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 36 37 4F 00 00 00 DC 4B 47 00 AE 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DD CC 01 00 F4 03 04 00 27 AA 21 67 B6 04 01 00 00 25 B7 50 F2 84 CC 7C 05 [09:37:53]CommunicateWithHost err = 0 [09:37:53]CheckOFDResponse [09:37:53]1017 (14) - 77093643461234 [09:37:53]1041 (16) - 0000000000871767 [09:37:53]1040 (4) - 117981 [09:37:53]1012 (4) - 30.10.2024 03:38 [09:37:53]1206 (1) - 0 [09:37:53]OFD Sender: Remove packet 117981 [09:37:53]ProducePacketName [09:37:53]name=ofd_packets/00117981 [09:37:53]NVStorageDeleteData [09:37:53]Write to MH i2c: 01 00 00 2A 04 2E [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: 01 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: 01 07 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 AB 0C EC [09:37:53]RasterBufferAndPrint [09:37:53]line [09:37:53]line [09:37:53]line [09:37:53]line [09:37:53]line [09:37:53]written 0, free lines is 3249 [09:37:53]MH_Cut [09:37:53]Write to MH i2c: D1 01 00 31 04 01 07 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: D1 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: D1 01 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: D1 01 00 31 04 00 06 [09:37:53]Write to MH i2c: 01 00 00 32 04 36 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]OFD Sender: No OFD packet to send [09:37:54]*** Cut start [09:37:54]*** Purtial cut [09:37:54]*** Stage 1: CUTSNS_PIN = 1 [09:37:54]Read from MH i2c: 01 [09:37:54]MH_I2C_Read... [09:37:54]*** Stop cut motor [09:37:54]*** Cut end [09:37:54]Read from MH i2c: 01 07 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [09:37:54]process_action close_receipt done [09:37:54]requested_data is exist [09:37:54]produce_requested_data [09:37:54]requested_item fm.sn is exist - process it [09:37:54]wFMCommunicate request_size=4 [09:37:54]MH_SAM_APDU [09:37:54]CAPDU: 80 11 00 00 [09:37:54]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:54]Read from MH i2c: E2 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 17 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 08 [09:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:37:54]wFMCommunicate OK [09:37:54]requested_item fd.num is exist - process it [09:37:54]SAM_PROTO_GetFieldsCounters [09:37:54]wFMCommunicate request_size=4 [09:37:54]MH_SAM_APDU [09:37:54]CAPDU: 80 13 00 00 [09:37:54]Write to MH i2c: E2 08 00 34 04 80 13 00 00 00 00 00 00 B4 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:54]Read from MH i2c: E2 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 62 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 62 00 34 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [09:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:54]wFMCommunicate OK [09:37:54]SAM_PROTO_GetFieldsCounters done [09:37:54]requested_item shift.num is exist - process it [09:37:54]requested_item shift.opened is exist - process it [09:37:54]req_shift_opened [09:37:54]FM_GetShiftState [09:37:54]SAM_PROTO_GetShiftState [09:37:54]wFMCommunicate request_size=4 [09:37:54]MH_SAM_APDU [09:37:54]CAPDU: 80 13 01 00 [09:37:54]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:54]Read from MH i2c: E2 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 0E 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8E [09:37:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:37:54]wFMCommunicate OK [09:37:54]SAM_PROTO_GetShiftState done [09:37:54]FM_GetShiftState done [09:37:54]req_shift_opened done [09:37:54]requested_item shift.open_date is exist - process it [09:37:54]req_shift_open_date [09:37:54]req_shift_open_date done [09:37:54]produce_requested_data done [09:37:54]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117981,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:37:54]process_action_free close_receipt [09:37:54]json_value_free [09:37:54]json_value_free done [09:37:54]process_json_proto returns [09:37:54]Send response to host [09:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117981,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:37:54]free response buf [09:37:54]execute_script done [09:37:54]execute_script returns [09:37:54]free content buf [09:37:54]Sock 7.Close socket [09:37:54]Sock 7.Thread stoped [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:36]accept exits with 9 [09:39:36]New connection [09:39:36]New thread 3067559268 created [09:39:36]Thread 3067415908 joined [09:39:36]Waiting for new connection... [09:39:36] Sock 9.Parse request [09:39:36]Sock 9.Check first char [09:39:36]Sock 9.First char is OK [09:39:36]request: POST /json_proto HTTP/1.0 [09:39:36]Method: POST [09:39:36]URL: /json_proto [09:39:36]Method is POST - this is cgi request [09:39:36]url: /json_proto [09:39:36]query_string will be loaded in cgi processing [09:39:36]execute_cgi json_proto POST (null) [09:39:36]execute_cgi path=json_proto method=POST [09:39:36]POST find Content-Length [09:39:36]Host: 172.17.96.67:8080 [09:39:36]Content-Length: 678 [09:39:36]Content-Type: application/json [09:39:36] [09:39:36]POST finish read [09:39:36]Found Content-Length = 678 [09:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:39:36]execute_script... [09:39: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)245775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:39:36]POST & json_proto [09:39:36]process_json_proto [09:39:36]json parsed OK: [09:39:36]protocol is kg_v1.0 [09:39:36]action value=close_receipt [09:39:36]process_action close_receipt [09:39:36]cmd_close_receipt [09:39:36]MH_GetDate [09:39:36]Write to MH i2c: F0 00 00 36 04 29 [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 36 04 00 D8 FE 21 67 47 6C 1F 67 C9 [09:39:36]GetLastDocTimeStamp 1730281071 [09:39:36]current date 1730281176 [09:39:36]FM_GetShiftState [09:39:36]SAM_PROTO_GetShiftState [09:39:36]wFMCommunicate request_size=4 [09:39:36]MH_SAM_APDU [09:39:36]CAPDU: 80 13 01 00 [09:39:36]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:36]Read from MH i2c: E2 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 90 [09:39:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:39:36]wFMCommunicate OK [09:39:36]SAM_PROTO_GetShiftState done [09:39:36]FM_GetShiftState done [09:39:36]opened in 1730246605 [09:39:36]opened+sec_in_day 1730333005 [09:39:36]quantity*price = 70044 [09:39:36]sum+1 = 70045 [09:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 42 30.10.2024 09:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117982 ФПД: 211835456060678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093936&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117982&fm=211835456060678&tin=02508201610067®Number=0000000000091782&sum=70000 [09:39:37]StoreToDocumentArchive [09:39:37]shift 545 fd 117982 [09:39:37]save to /storage/0545/doc_00117982 [09:39:37]save last doc name /storage/0545/doc_00117982 to /storage/kkm_last_doc_name [09:39:37]save OK [09:39:37]Clear old archive folders... [09:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:37]tlvbuf is 00624EE0 [09:39:37]SAM_PROTO_ClearQueue [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 09 00 00 [09:39:37]Write to MH i2c: E2 08 00 44 04 80 09 00 00 00 00 00 00 BA [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_ClearQueue done [09:39:37]KKMCreateOFDPacket [09:39:37]OFDProtocolAddRootSTLVToBuf [09:39:37]FM_MakeSignedData [09:39:37]FM_MakeSignedData [09:39:37]SAM_PROTO_SignData [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 01 02 [09:39:37]Write to MH i2c: E2 08 00 45 04 80 0D 01 02 00 00 00 00 C2 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=255 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2A 00 00 00 F4 03 04 00 D8 FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CC 01 00 35 04 06 00 C0 [09:39:37]Write to MH i2c: E2 02 01 46 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2A 00 00 00 F4 03 04 00 D8 FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CC 01 00 35 04 06 00 C0 00 00 7A [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=10 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 02 02 05 A9 C9 1B FD 06 [09:39:37]Write to MH i2c: E2 0D 00 47 04 80 0D 02 02 05 00 A9 C9 1B FD 06 00 00 5F [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 03 02 [09:39:37]Write to MH i2c: E2 08 00 48 04 80 0D 03 02 00 00 00 00 C7 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 0B 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 0B 00 48 04 00 DB 86 B0 35 8B F8 01 5A 90 00 EC [09:39:37]RAPDU: DB 86 B0 35 8B F8 01 5A 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_SignData done [09:39:37]FM_MakeSignedData done [09:39:37]CreateOFDProtocolMessage [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 11 00 00 [09:39:37]Write to MH i2c: E2 08 00 49 04 80 11 00 00 00 00 00 00 C7 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 17 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 17 00 49 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1E [09:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:39:37]wFMCommunicate OK [09:39:37]CreateOFDProtocolMessage done [09:39:37]OFDSenderStorePacket 117982 [09:39:37]StoreOFDPacket docnum=117982 [09:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4E B6 07 01 9E 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 32 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 2A 00 00 00 F4 03 04 00 D8 FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CC 01 00 35 04 06 00 C0 A9 C9 1B FD 06 DB 86 B0 35 8B F8 01 5A [09:39:37]CheckFolder [09:39:37]dirname=/storage/ofd_packets [09:39:37]CheckFolder done [09:39:37]ProducePacketName [09:39:37]name=ofd_packets/00117982 [09:39:37]NVStorageSaveData ofd_packets/00117982 [09:39:37]File name is /storage/ofd_packets/00117982 [09:39:37]Write 301 bytes [09:39:37]NVStorageSaveData done [09:39:37]OFDSenderStorePacket done [09:39:37]KKMCreateOFDPacket done [09:39:37]NVStorageSaveData kkm_last_timestamp [09:39:37]File name is /storage/kkm_last_timestamp [09:39:37]Write 4 bytes [09:39:37]NVStorageSaveData done [09:39:37]ExternCall_PrintAddStr [09:39:37]wPrintStart [09:39:37]Write to MH i2c: 01 00 00 4A 04 4E [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: 01 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: 01 07 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: 01 07 00 4A 04 00 00 00 00 00 FF 0F 63 [09:39:37]RasterBufferAndPrint [09:39:37]line Счет N : (1)245775 [09:39:37]line ИНН: 02508201610067 [09:39:37]line Контрольно-Кассовый Чек [09:39:37]line ПРОДАЖА [09:39:37]line ТРК (МРК, ГНК) : 21 [09:39:37]line Товар: 2710124130 [09:39:37]line Аи-92-К-2 [09:39:37]line 10.470 * 66.90 [09:39:37]line = 700.44 [09:39:37]line НДС 12% НСП 1% [09:39:37]line > о реализуемом товаре [09:39:37]line ОКРУГЛЕНИЕ: -0.44 [09:39:37]line ИТОГО: 700.00 [09:39:37]line Внесено: 700.00 [09:39:37]line СДАЧА: 0.00 [09:39:37]line НСП 1% : 6.20 [09:39:37]line НДС 12% : 74.38 [09:39:37]line Наличными: 700.00 [09:39:37]line Безнал.: 0.00 [09:39:37]line Место: АЗС № 173 "Партнер Нефть" [09:39:37]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:39:37]line СНО: Общий режим [09:39:37]line Чек 42 30.10.2024 09:39 [09:39:37]line Смена: 545 ФФД: 1.0 [09:39:37]line ЗНМ: 0300000115 [09:39:37]line РНМ: 0000000000091782 [09:39:37]line Версия ККМ: 001 [09:39:37]line ФМ: 0000000000871767 [09:39:37]line ФД: 117982 [09:39:37]line ФПД: 211835456060678 [09:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093936&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117982&fm=211835456060678&tin=02508201610067®Number=0000000000091782&sum=70000 [09:39:38]written 0, free lines is 4095 [09:39:38]OFD Sender: Processing packet 117982 [packets to send 77, broken 76] [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00117982 [09:39:38]OFD Sender: To server: pG, [09:39:38]CommunicateWithHost lk.salyk.kg:30040 [09:39:38]ConnectInit lk.salyk.kg [09:39:38]Connected sock=10 [09:39: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 36 37 0F 01 00 00 4E B6 07 01 9E 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 32 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 2A 00 00 00 F4 03 04 00 D8 FE 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CC 01 00 35 04 06 00 C0 A9 C9 1B FD 06 DB 86 B0 35 8B F8 01 5A [09:39: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 36 37 4F 00 00 00 12 1C 47 00 CA 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DE CC 01 00 F4 03 04 00 90 AA 21 67 B6 04 01 00 00 11 E6 00 C7 73 75 E2 3B [09:39:38]CommunicateWithHost err = 0 [09:39:38]CheckOFDResponse [09:39:38]1017 (14) - 77093643461234 [09:39:38]1041 (16) - 0000000000871767 [09:39:38]1040 (4) - 117982 [09:39:38]1012 (4) - 30.10.2024 03:40 [09:39:38]1206 (1) - 0 [09:39:38]OFD Sender: Remove packet 117982 [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00117982 [09:39:38]NVStorageDeleteData [09:39:38]Write to MH i2c: 01 00 00 74 04 78 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 A8 0C 33 [09:39:38]RasterBufferAndPrint [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]written 0, free lines is 3245 [09:39:38]MH_Cut [09:39:38]Write to MH i2c: D1 01 00 7B 04 01 51 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 01 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 01 00 7B 04 00 50 [09:39:38]Write to MH i2c: 01 00 00 7C 04 80 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:39]OFD Sender: No OFD packet to send [09:39:39]*** Cut start [09:39:39]*** Purtial cut [09:39:39]*** Stage 1: CUTSNS_PIN = 1 [09:39:39]Read from MH i2c: 01 [09:39:39]MH_I2C_Read... [09:39:39]*** Stop cut motor [09:39:39]*** Cut end [09:39:39]Read from MH i2c: 01 07 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [09:39:39]process_action close_receipt done [09:39:39]requested_data is exist [09:39:39]produce_requested_data [09:39:39]requested_item fm.sn is exist - process it [09:39:39]wFMCommunicate request_size=4 [09:39:39]MH_SAM_APDU [09:39:39]CAPDU: 80 11 00 00 [09:39:39]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:39]Read from MH i2c: E2 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: E2 17 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 52 [09:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:39:39]wFMCommunicate OK [09:39:39]requested_item fd.num is exist - process it [09:39:39]SAM_PROTO_GetFieldsCounters [09:39:39]wFMCommunicate request_size=4 [09:39:39]MH_SAM_APDU [09:39:39]CAPDU: 80 13 00 00 [09:39:39]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 7E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [09:39: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetFieldsCounters done [09:39:40]requested_item shift.num is exist - process it [09:39:40]requested_item shift.opened is exist - process it [09:39:40]req_shift_opened [09:39:40]FM_GetShiftState [09:39:40]SAM_PROTO_GetShiftState [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 01 00 [09:39:40]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D8 [09:39:40]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetShiftState done [09:39:40]FM_GetShiftState done [09:39:40]req_shift_opened done [09:39:40]requested_item shift.open_date is exist - process it [09:39:40]req_shift_open_date [09:39:40]req_shift_open_date done [09:39:40]produce_requested_data done [09:39:40]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117982,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:39:40]process_action_free close_receipt [09:39:40]json_value_free [09:39:40]json_value_free done [09:39:40]process_json_proto returns [09:39:40]Send response to host [09:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117982,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:39:40]free response buf [09:39:40]execute_script done [09:39:40]execute_script returns [09:39:40]free content buf [09:39:40]Sock 9.Close socket [09:39:40]Sock 9.Thread stoped [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:01]accept exits with 7 [09:42:01]New connection [09:42:01]New thread 3067415908 created [09:42:01]Thread 3067559268 joined [09:42:01]Waiting for new connection... [09:42:01] Sock 7.Parse request [09:42:01]Sock 7.Check first char [09:42:01]Sock 7.First char is OK [09:42:01]request: POST /json_proto HTTP/1.0 [09:42:01]Method: POST [09:42:01]URL: /json_proto [09:42:01]Method is POST - this is cgi request [09:42:01]url: /json_proto [09:42:01]query_string will be loaded in cgi processing [09:42:01]execute_cgi json_proto POST (null) [09:42:01]execute_cgi path=json_proto method=POST [09:42:01]POST find Content-Length [09:42:01]Host: 172.17.96.67:8080 [09:42:01]Content-Length: 677 [09:42:01]Content-Type: application/json [09:42:01] [09:42:01]POST finish read [09:42:01]Found Content-Length = 677 [09:42:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:01]execute_script... [09:42: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)245777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:01]POST & json_proto [09:42:01]process_json_proto [09:42:01]json parsed OK: [09:42:01]protocol is kg_v1.0 [09:42:01]action value=close_receipt [09:42:01]process_action close_receipt [09:42:01]cmd_close_receipt [09:42:01]MH_GetDate [09:42:01]Write to MH i2c: F0 00 00 80 04 73 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: F0 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: F0 09 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: F0 09 00 80 04 00 69 FF 21 67 47 6C 1F 67 A5 [09:42:01]GetLastDocTimeStamp 1730281176 [09:42:01]current date 1730281321 [09:42:01]FM_GetShiftState [09:42:01]SAM_PROTO_GetShiftState [09:42:01]wFMCommunicate request_size=4 [09:42:01]MH_SAM_APDU [09:42:01]CAPDU: 80 13 01 00 [09:42:01]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:01]Read from MH i2c: E2 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 0E 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DA [09:42:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:42:01]wFMCommunicate OK [09:42:01]SAM_PROTO_GetShiftState done [09:42:01]FM_GetShiftState done [09:42:01]opened in 1730246605 [09:42:01]opened+sec_in_day 1730333005 [09:42:01]quantity*price = 50041 [09:42:01]sum+1 = 50042 [09:42:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 43 30.10.2024 09:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117983 ФПД: 13967205055961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094201&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117983&fm=13967205055961&tin=02508201610067®Number=0000000000091782&sum=50000 [09:42:02]StoreToDocumentArchive [09:42:02]shift 545 fd 117983 [09:42:02]save to /storage/0545/doc_00117983 [09:42:02]save last doc name /storage/0545/doc_00117983 to /storage/kkm_last_doc_name [09:42:02]save OK [09:42:02]Clear old archive folders... [09:42:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:02]tlvbuf is B6FE9760 [09:42:02]SAM_PROTO_ClearQueue [09:42:02]wFMCommunicate request_size=4 [09:42:02]MH_SAM_APDU [09:42:02]CAPDU: 80 09 00 00 [09:42:02]Write to MH i2c: E2 08 00 8E 04 80 09 00 00 00 00 00 00 04 [09:42:02]Write i2c OK [09:42:02]MH_I2C_Read... [09:42:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:02]Read from MH i2c: E2 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 03 00 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [09:42:02]RAPDU: 90 00 [09:42:02]wFMCommunicate OK [09:42:02]SAM_PROTO_ClearQueue done [09:42:02]KKMCreateOFDPacket [09:42:02]OFDProtocolAddRootSTLVToBuf [09:42:02]FM_MakeSignedData [09:42:02]FM_MakeSignedData [09:42:02]SAM_PROTO_SignData [09:42:02]wFMCommunicate request_size=4 [09:42:02]MH_SAM_APDU [09:42:02]CAPDU: 80 0D 01 02 [09:42:02]Write to MH i2c: E2 08 00 8F 04 80 0D 01 02 00 00 00 00 0C [09:42:02]Write i2c OK [09:42:02]MH_I2C_Read... [09:42:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:02]Read from MH i2c: E2 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 03 00 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [09:42:02]RAPDU: 90 00 [09:42:02]wFMCommunicate OK [09:42:02]wFMCommunicate request_size=255 [09:42:02]MH_SAM_APDU [09:42:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 00 00 00 F4 03 04 00 69 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CC 01 00 35 04 06 00 0C [09:42:02]Write to MH i2c: E2 02 01 90 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 00 00 00 F4 03 04 00 69 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CC 01 00 35 04 06 00 0C 00 00 94 [09:42:02]Write i2c OK [09:42:02]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 03 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [09:42:03]RAPDU: 90 00 [09:42:03]wFMCommunicate OK [09:42:03]wFMCommunicate request_size=10 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 0D 02 02 05 B3 FE 4B BD D9 [09:42:03]Write to MH i2c: E2 0D 00 91 04 80 0D 02 02 05 00 B3 FE 4B BD D9 00 00 AB [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 03 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [09:42:03]RAPDU: 90 00 [09:42:03]wFMCommunicate OK [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 0D 03 02 [09:42:03]Write to MH i2c: E2 08 00 92 04 80 0D 03 02 00 00 00 00 11 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0B 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0B 00 92 04 00 A0 88 FD 3B 48 00 F7 78 90 00 29 [09:42:03]RAPDU: A0 88 FD 3B 48 00 F7 78 90 00 [09:42:03]wFMCommunicate OK [09:42:03]SAM_PROTO_SignData done [09:42:03]FM_MakeSignedData done [09:42:03]CreateOFDProtocolMessage [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 11 00 00 [09:42:03]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 68 [09:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:42:03]wFMCommunicate OK [09:42:03]CreateOFDProtocolMessage done [09:42:03]OFDSenderStorePacket 117983 [09:42:03]StoreOFDPacket docnum=117983 [09:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 44 6D 07 01 9C 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 32 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 2B 00 00 00 F4 03 04 00 69 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CC 01 00 35 04 06 00 0C B3 FE 4B BD D9 A0 88 FD 3B 48 00 F7 78 [09:42:03]CheckFolder [09:42:03]dirname=/storage/ofd_packets [09:42:03]CheckFolder done [09:42:03]ProducePacketName [09:42:03]name=ofd_packets/00117983 [09:42:03]NVStorageSaveData ofd_packets/00117983 [09:42:03]File name is /storage/ofd_packets/00117983 [09:42:03]Write 301 bytes [09:42:03]NVStorageSaveData done [09:42:03]OFDSenderStorePacket done [09:42:03]KKMCreateOFDPacket done [09:42:03]NVStorageSaveData kkm_last_timestamp [09:42:03]File name is /storage/kkm_last_timestamp [09:42:03]Write 4 bytes [09:42:03]NVStorageSaveData done [09:42:03]ExternCall_PrintAddStr [09:42:03]wPrintStart [09:42:03]Write to MH i2c: 01 00 00 94 04 98 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: 01 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: 01 07 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [09:42:03]RasterBufferAndPrint [09:42:03]line Счет N : (1)245777 [09:42:03]line ИНН: 02508201610067 [09:42:03]line Контрольно-Кассовый Чек [09:42:03]line ПРОДАЖА [09:42:03]line ТРК (МРК, ГНК) : 21 [09:42:03]line Товар: 2710124130 [09:42:03]line Аи-92-К-2 [09:42:03]line 7.480 * 66.90 [09:42:03]line = 500.41 [09:42:03]line НДС 12% НСП 1% [09:42:03]line > о реализуемом товаре [09:42:03]line ОКРУГЛЕНИЕ: -0.41 [09:42:03]line ИТОГО: 500.00 [09:42:03]line Внесено: 500.00 [09:42:03]line СДАЧА: 0.00 [09:42:03]line НСП 1% : 4.43 [09:42:03]line НДС 12% : 53.14 [09:42:03]line Наличными: 500.00 [09:42:03]line Безнал.: 0.00 [09:42:03]line Место: АЗС № 173 "Партнер Нефть" [09:42:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:42:03]line СНО: Общий режим [09:42:03]line Чек 43 30.10.2024 09:42 [09:42:03]line Смена: 545 ФФД: 1.0 [09:42:03]line ЗНМ: 0300000115 [09:42:03]line РНМ: 0000000000091782 [09:42:03]line Версия ККМ: 001 [09:42:03]line ФМ: 0000000000871767 [09:42:03]line ФД: 117983 [09:42:03]line ФПД: 13967205055961 [09:42:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094201&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117983&fm=13967205055961&tin=02508201610067®Number=0000000000091782&sum=50000 [09:42:03]OFD Sender: Processing packet 117983 [packets to send 77, broken 76] [09:42:03]ProducePacketName [09:42:03]name=ofd_packets/00117983 [09:42:03]OFD Sender: To server: pG, [09:42:03]CommunicateWithHost lk.salyk.kg:30040 [09:42:03]ConnectInit lk.salyk.kg [09:42:03]written 0, free lines is 4095 [09:42:03]Connected sock=10 [09:42: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 36 37 0F 01 00 00 44 6D 07 01 9C 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 32 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 2B 00 00 00 F4 03 04 00 69 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CC 01 00 35 04 06 00 0C B3 FE 4B BD D9 A0 88 FD 3B 48 00 F7 78 [09:42: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 36 37 4F 00 00 00 CE 5F 47 00 F5 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 DF CC 01 00 F4 03 04 00 21 AB 21 67 B6 04 01 00 00 8D 26 7C 75 05 E7 A7 43 [09:42:04]CommunicateWithHost err = 0 [09:42:04]CheckOFDResponse [09:42:04]1017 (14) - 77093643461234 [09:42:04]1041 (16) - 0000000000871767 [09:42:04]1040 (4) - 117983 [09:42:04]1012 (4) - 30.10.2024 03:42 [09:42:04]1206 (1) - 0 [09:42:04]OFD Sender: Remove packet 117983 [09:42:04]ProducePacketName [09:42:04]name=ofd_packets/00117983 [09:42:04]NVStorageDeleteData [09:42:04]Write to MH i2c: 01 00 00 BE 04 C2 [09:42:04]Write i2c OK [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: 01 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: 01 07 00 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 A6 0C 7B [09:42:04]RasterBufferAndPrint [09:42:04]line [09:42:04]line [09:42:04]line [09:42:04]line [09:42:04]line [09:42:04]written 0, free lines is 3241 [09:42:04]MH_Cut [09:42:04]Write to MH i2c: D1 01 00 C5 04 01 9B [09:42:04]Write i2c OK [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: D1 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: D1 01 00 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: D1 01 00 C5 04 00 9A [09:42:04]Write to MH i2c: 01 00 00 C6 04 CA [09:42:04]Write i2c OK [09:42:04]MH_I2C_Read... [09:42:04]OFD Sender: No OFD packet to send [09:42:04]*** Cut start [09:42:04]*** Purtial cut [09:42:04]*** Stage 1: CUTSNS_PIN = 1 [09:42:05]Read from MH i2c: 01 [09:42:05]MH_I2C_Read... [09:42:05]*** Stop cut motor [09:42:05]*** Cut end [09:42:05]Read from MH i2c: 01 07 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [09:42:05]process_action close_receipt done [09:42:05]requested_data is exist [09:42:05]produce_requested_data [09:42:05]requested_item fm.sn is exist - process it [09:42:05]wFMCommunicate request_size=4 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 11 00 00 [09:42:05]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 17 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9C [09:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:42:05]wFMCommunicate OK [09:42:05]requested_item fd.num is exist - process it [09:42:05]SAM_PROTO_GetFieldsCounters [09:42:05]wFMCommunicate request_size=4 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 13 00 00 [09:42:05]Write to MH i2c: E2 08 00 C8 04 80 13 00 00 00 00 00 00 48 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 62 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 62 00 C8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [09:42: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 DF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:05]wFMCommunicate OK [09:42:05]SAM_PROTO_GetFieldsCounters done [09:42:05]requested_item shift.num is exist - process it [09:42:05]requested_item shift.opened is exist - process it [09:42:05]req_shift_opened [09:42:05]FM_GetShiftState [09:42:05]SAM_PROTO_GetShiftState [09:42:05]wFMCommunicate request_size=4 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 13 01 00 [09:42:05]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 0E 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 22 [09:42:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:42:05]wFMCommunicate OK [09:42:05]SAM_PROTO_GetShiftState done [09:42:05]FM_GetShiftState done [09:42:05]req_shift_opened done [09:42:05]requested_item shift.open_date is exist - process it [09:42:05]req_shift_open_date [09:42:05]req_shift_open_date done [09:42:05]produce_requested_data done [09:42:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117983,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:42:05]process_action_free close_receipt [09:42:05]json_value_free [09:42:05]json_value_free done [09:42:05]process_json_proto returns [09:42:05]Send response to host [09:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117983,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:42:05]free response buf [09:42:05]execute_script done [09:42:05]execute_script returns [09:42:05]free content buf [09:42:05]Sock 7.Close socket [09:42:05]Sock 7.Thread stoped [09:42:07]accept exits with 9 [09:42:07]New connection [09:42:07]New thread 3067559268 created [09:42:07]Thread 3067415908 joined [09:42:07]Waiting for new connection... [09:42:07] Sock 9.Parse request [09:42:07]Sock 9.Check first char [09:42:07]Sock 9.First char is OK [09:42:07]request: POST /json_proto HTTP/1.0 [09:42:07]Method: POST [09:42:07]URL: /json_proto [09:42:07]Method is POST - this is cgi request [09:42:07]url: /json_proto [09:42:07]query_string will be loaded in cgi processing [09:42:07]execute_cgi json_proto POST (null) [09:42:07]execute_cgi path=json_proto method=POST [09:42:07]POST find Content-Length [09:42:07]Host: 172.17.96.67:8080 [09:42:07]Content-Length: 766 [09:42:07]Content-Type: application/json [09:42:07] [09:42:07]POST finish read [09:42:07]Found Content-Length = 766 [09:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:07]execute_script... [09:42:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:07]POST & json_proto [09:42:07]process_json_proto [09:42:07]json parsed OK: [09:42:07]protocol is kg_v1.0 [09:42:07]action value=close_receipt [09:42:07]process_action close_receipt [09:42:07]cmd_close_receipt [09:42:07]MH_GetDate [09:42:07]Write to MH i2c: F0 00 00 CA 04 BD [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: F0 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: F0 09 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: F0 09 00 CA 04 00 6F FF 21 67 47 6C 1F 67 F5 [09:42:07]GetLastDocTimeStamp 1730281321 [09:42:07]current date 1730281327 [09:42:07]FM_GetShiftState [09:42:07]SAM_PROTO_GetShiftState [09:42:07]wFMCommunicate request_size=4 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 13 01 00 [09:42:07]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 0E 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 24 [09:42:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:42:07]wFMCommunicate OK [09:42:07]SAM_PROTO_GetShiftState done [09:42:07]FM_GetShiftState done [09:42:07]opened in 1730246605 [09:42:07]opened+sec_in_day 1730333005 [09:42:07]quantity*price = 200025 [09:42:07]sum+1 = 200026 [09:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 44 30.10.2024 09:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 117984 ФПД: 106047222170394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094208&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117984&fm=106047222170394&tin=02508201610067®Number=0000000000091782&sum=200025 [09:42:08]StoreToDocumentArchive [09:42:08]shift 545 fd 117984 [09:42:08]save to /storage/0545/doc_00117984 [09:42:08]save last doc name /storage/0545/doc_00117984 to /storage/kkm_last_doc_name [09:42:08]save OK [09:42:08]Clear old archive folders... [09:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:42:08]tlvbuf is 0062F210 [09:42:08]SAM_PROTO_ClearQueue [09:42:08]wFMCommunicate request_size=4 [09:42:08]MH_SAM_APDU [09:42:08]CAPDU: 80 09 00 00 [09:42:08]Write to MH i2c: E2 08 00 D8 04 80 09 00 00 00 00 00 00 4E [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:08]Read from MH i2c: E2 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 03 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [09:42:08]RAPDU: 90 00 [09:42:08]wFMCommunicate OK [09:42:08]SAM_PROTO_ClearQueue done [09:42:08]KKMCreateOFDPacket [09:42:08]OFDProtocolAddRootSTLVToBuf [09:42:08]FM_MakeSignedData [09:42:08]FM_MakeSignedData [09:42:08]SAM_PROTO_SignData [09:42:08]wFMCommunicate request_size=4 [09:42:08]MH_SAM_APDU [09:42:08]CAPDU: 80 0D 01 02 [09:42:08]Write to MH i2c: E2 08 00 D9 04 80 0D 01 02 00 00 00 00 56 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [09:42:09]RAPDU: 90 00 [09:42:09]wFMCommunicate OK [09:42:09]wFMCommunicate request_size=255 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 70 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CC 01 00 35 04 06 00 60 73 0B 01 [09:42:09]Write to MH i2c: E2 02 01 DA 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 70 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CC 01 00 35 04 06 00 60 73 0B 01 00 00 D0 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:09]Read from MH i2c: E2 03 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [09:42:09]RAPDU: 90 00 [09:42:09]wFMCommunicate OK [09:42:09]wFMCommunicate request_size=7 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 0D 02 02 02 C3 1A [09:42:09]Write to MH i2c: E2 0A 00 DB 04 80 0D 02 02 02 00 C3 1A 00 00 3A [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [09:42:09]RAPDU: 90 00 [09:42:09]wFMCommunicate OK [09:42:09]wFMCommunicate request_size=4 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 0D 03 02 [09:42:09]Write to MH i2c: E2 08 00 DC 04 80 0D 03 02 00 00 00 00 5B [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 0B 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 0B 00 DC 04 00 A0 14 67 AE 22 6A E8 48 90 00 E1 [09:42:09]RAPDU: A0 14 67 AE 22 6A E8 48 90 00 [09:42:09]wFMCommunicate OK [09:42:09]SAM_PROTO_SignData done [09:42:09]FM_MakeSignedData done [09:42:09]CreateOFDProtocolMessage [09:42:09]wFMCommunicate request_size=4 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 11 00 00 [09:42:09]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 17 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B2 [09:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:42:09]wFMCommunicate OK [09:42:09]CreateOFDProtocolMessage done [09:42:09]OFDSenderStorePacket 117984 [09:42:09]StoreOFDPacket docnum=117984 [09:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 5F 62 04 01 07 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 70 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CC 01 00 35 04 06 00 60 73 0B 01 C3 1A A0 14 67 AE 22 6A E8 48 [09:42:09]CheckFolder [09:42:09]dirname=/storage/ofd_packets [09:42:09]CheckFolder done [09:42:09]ProducePacketName [09:42:09]name=ofd_packets/00117984 [09:42:09]NVStorageSaveData ofd_packets/00117984 [09:42:09]File name is /storage/ofd_packets/00117984 [09:42:09]Write 298 bytes [09:42:09]NVStorageSaveData done [09:42:09]OFDSenderStorePacket done [09:42:09]KKMCreateOFDPacket done [09:42:09]NVStorageSaveData kkm_last_timestamp [09:42:09]File name is /storage/kkm_last_timestamp [09:42:09]Write 4 bytes [09:42:09]NVStorageSaveData done [09:42:09]ExternCall_PrintAddStr [09:42:09]wPrintStart [09:42:09]Write to MH i2c: 01 00 00 DE 04 E2 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: 01 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: 01 07 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FF 0F F7 [09:42:09]RasterBufferAndPrint [09:42:09]line Счет N : (1)245776 [09:42:09]line ИНН: 02508201610067 [09:42:09]line Контрольно-Кассовый Чек [09:42:09]line ПРОДАЖА [09:42:09]line ТРК (МРК, ГНК) : 13 [09:42:09]line Товар: 2710194210 [09:42:09]line ДТ-К-2 [09:42:09]line 26.250 * 76.20 [09:42:09]line = 2000.25 [09:42:09]line НДС 12% НСП 1% [09:42:09]line > о реализуемом товаре [09:42:09]line ИТОГО: 2000.25 [09:42:09]line НСП 1% : 17.70 [09:42:09]line НДС 12% : 212.42 [09:42:09]line Наличными: 0.00 [09:42:09]line Безнал.: 2000.25 [09:42:09]line Место: АЗС № 173 "Партнер Нефть" [09:42:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:42:09]line СНО: Общий режим [09:42:09]line Чек 44 30.10.2024 09:42 [09:42:09]line Смена: 545 ФФД: 1.0 [09:42:09]line ЗНМ: 0300000115 [09:42:09]line РНМ: 0000000000091782 [09:42:09]line Версия ККМ: 001 [09:42:09]line Платежная система: Mbank [09:42:09]line ФМ: 0000000000871767 [09:42:09]line ФД: 117984 [09:42:09]line ФПД: 106047222170394 [09:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094208&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117984&fm=106047222170394&tin=02508201610067®Number=0000000000091782&sum=200025 [09:42:09]written 0, free lines is 4095 [09:42:09]OFD Sender: Processing packet 117984 [packets to send 77, broken 76] [09:42:09]ProducePacketName [09:42:09]name=ofd_packets/00117984 [09:42:09]OFD Sender: To server: pG, [09:42:09]CommunicateWithHost lk.salyk.kg:30040 [09:42:09]ConnectInit lk.salyk.kg [09:42:09]Connected sock=10 [09:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 5F 62 04 01 07 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 70 FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CC 01 00 35 04 06 00 60 73 0B 01 C3 1A A0 14 67 AE 22 6A E8 48 [09:42: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 36 37 4F 00 00 00 B4 BA 47 00 C4 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E0 CC 01 00 F4 03 04 00 27 AB 21 67 B6 04 01 00 00 7E D0 43 9F FD CC 69 B8 [09:42:09]CommunicateWithHost err = 0 [09:42:09]CheckOFDResponse [09:42:09]1017 (14) - 77093643461234 [09:42:09]1041 (16) - 0000000000871767 [09:42:09]1040 (4) - 117984 [09:42:09]1012 (4) - 30.10.2024 03:42 [09:42:09]1206 (1) - 0 [09:42:09]OFD Sender: Remove packet 117984 [09:42:09]ProducePacketName [09:42:09]name=ofd_packets/00117984 [09:42:09]NVStorageDeleteData [09:42:09]Write to MH i2c: 01 00 00 06 05 0B [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: 01 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: 01 07 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 DA 0C F8 [09:42:09]RasterBufferAndPrint [09:42:09]line [09:42:09]line [09:42:09]line [09:42:09]line [09:42:09]line [09:42:09]written 0, free lines is 3298 [09:42:09]MH_Cut [09:42:09]Write to MH i2c: D1 01 00 0D 05 01 E4 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: D1 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: D1 01 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: D1 01 00 0D 05 00 E3 [09:42:09]Write to MH i2c: 01 00 00 0E 05 13 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:10]OFD Sender: No OFD packet to send [09:42:10]*** Cut start [09:42:10]*** Purtial cut [09:42:10]*** Stage 1: CUTSNS_PIN = 1 [09:42:11]Read from MH i2c: 01 [09:42:11]MH_I2C_Read... [09:42:11]*** Stop cut motor [09:42:11]*** Cut end [09:42:11]Read from MH i2c: 01 07 00 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [09:42:11]process_action close_receipt done [09:42:11]requested_data is exist [09:42:11]produce_requested_data [09:42:11]requested_item fm.sn is exist - process it [09:42:11]wFMCommunicate request_size=4 [09:42:11]MH_SAM_APDU [09:42:11]CAPDU: 80 11 00 00 [09:42:11]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [09:42:11]Write i2c OK [09:42:11]MH_I2C_Read... [09:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:11]Read from MH i2c: E2 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: E2 17 00 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E5 [09:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:42:11]wFMCommunicate OK [09:42:11]requested_item fd.num is exist - process it [09:42:11]SAM_PROTO_GetFieldsCounters [09:42:11]wFMCommunicate request_size=4 [09:42:11]MH_SAM_APDU [09:42:11]CAPDU: 80 13 00 00 [09:42:11]Write to MH i2c: E2 08 00 10 05 80 13 00 00 00 00 00 00 91 [09:42:11]Write i2c OK [09:42:11]MH_I2C_Read... [09:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:11]Read from MH i2c: E2 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: E2 62 00 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: E2 62 00 10 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E0 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [09:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E0 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:11]wFMCommunicate OK [09:42:11]SAM_PROTO_GetFieldsCounters done [09:42:11]requested_item shift.num is exist - process it [09:42:11]requested_item shift.opened is exist - process it [09:42:11]req_shift_opened [09:42:11]FM_GetShiftState [09:42:11]SAM_PROTO_GetShiftState [09:42:11]wFMCommunicate request_size=4 [09:42:11]MH_SAM_APDU [09:42:11]CAPDU: 80 13 01 00 [09:42:11]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [09:42:11]Write i2c OK [09:42:11]MH_I2C_Read... [09:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:11]Read from MH i2c: E2 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: E2 0E 00 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6B [09:42:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:42:11]wFMCommunicate OK [09:42:11]SAM_PROTO_GetShiftState done [09:42:11]FM_GetShiftState done [09:42:11]req_shift_opened done [09:42:11]requested_item shift.open_date is exist - process it [09:42:11]req_shift_open_date [09:42:11]req_shift_open_date done [09:42:11]produce_requested_data done [09:42:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117984,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:42:11]process_action_free close_receipt [09:42:11]json_value_free [09:42:11]json_value_free done [09:42:11]process_json_proto returns [09:42:11]Send response to host [09:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117984,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:42:11]free response buf [09:42:11]execute_script done [09:42:11]execute_script returns [09:42:11]free content buf [09:42:11]Sock 9.Close socket [09:42:11]Sock 9.Thread stoped [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:42]accept exits with 7 [09:43:42]New connection [09:43:42]New thread 3067415908 created [09:43:42]Thread 3067559268 joined [09:43:42]Waiting for new connection... [09:43:42] Sock 7.Parse request [09:43:42]Sock 7.Check first char [09:43:42]Sock 7.First char is OK [09:43:42]request: POST /json_proto HTTP/1.0 [09:43:42]Method: POST [09:43:42]URL: /json_proto [09:43:42]Method is POST - this is cgi request [09:43:42]url: /json_proto [09:43:42]query_string will be loaded in cgi processing [09:43:42]execute_cgi json_proto POST (null) [09:43:42]execute_cgi path=json_proto method=POST [09:43:42]POST find Content-Length [09:43:42]Host: 172.17.96.67:8080 [09:43:42]Content-Length: 677 [09:43:42]Content-Type: application/json [09:43:42] [09:43:42]POST finish read [09:43:42]Found Content-Length = 677 [09:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:42]execute_script... [09:43: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)245778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:42]POST & json_proto [09:43:42]process_json_proto [09:43:42]json parsed OK: [09:43:42]protocol is kg_v1.0 [09:43:42]action value=close_receipt [09:43:42]process_action close_receipt [09:43:42]cmd_close_receipt [09:43:42]MH_GetDate [09:43:42]Write to MH i2c: F0 00 00 12 05 06 [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: F0 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: F0 09 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: F0 09 00 12 05 00 CF FF 21 67 47 6C 1F 67 9E [09:43:42]GetLastDocTimeStamp 1730281328 [09:43:42]current date 1730281423 [09:43:42]FM_GetShiftState [09:43:42]SAM_PROTO_GetShiftState [09:43:42]wFMCommunicate request_size=4 [09:43:42]MH_SAM_APDU [09:43:42]CAPDU: 80 13 01 00 [09:43:42]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:42]Read from MH i2c: E2 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 0E 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6D [09:43:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:43:42]wFMCommunicate OK [09:43:42]SAM_PROTO_GetShiftState done [09:43:42]FM_GetShiftState done [09:43:42]opened in 1730246605 [09:43:42]opened+sec_in_day 1730333005 [09:43:42]quantity*price = 50041 [09:43:42]sum+1 = 50042 [09:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 45 30.10.2024 09:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117985 ФПД: 83456467252862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117985&fm=83456467252862&tin=02508201610067®Number=0000000000091782&sum=50000 [09:43:44]StoreToDocumentArchive [09:43:44]shift 545 fd 117985 [09:43:44]save to /storage/0545/doc_00117985 [09:43:44]save last doc name /storage/0545/doc_00117985 to /storage/kkm_last_doc_name [09:43:44]save OK [09:43:44]Clear old archive folders... [09:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:44]tlvbuf is 00674B80 [09:43:44]SAM_PROTO_ClearQueue [09:43:44]wFMCommunicate request_size=4 [09:43:44]MH_SAM_APDU [09:43:44]CAPDU: 80 09 00 00 [09:43:44]Write to MH i2c: E2 08 00 20 05 80 09 00 00 00 00 00 00 97 [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:44]Read from MH i2c: E2 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [09:43:44]RAPDU: 90 00 [09:43:44]wFMCommunicate OK [09:43:44]SAM_PROTO_ClearQueue done [09:43:44]KKMCreateOFDPacket [09:43:44]OFDProtocolAddRootSTLVToBuf [09:43:44]FM_MakeSignedData [09:43:44]FM_MakeSignedData [09:43:44]SAM_PROTO_SignData [09:43:44]wFMCommunicate request_size=4 [09:43:44]MH_SAM_APDU [09:43:44]CAPDU: 80 0D 01 02 [09:43:44]Write to MH i2c: E2 08 00 21 05 80 0D 01 02 00 00 00 00 9F [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:44]Read from MH i2c: E2 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [09:43:44]RAPDU: 90 00 [09:43:44]wFMCommunicate OK [09:43:44]wFMCommunicate request_size=255 [09:43:44]MH_SAM_APDU [09:43: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 32 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 2D 00 00 00 F4 03 04 00 CF FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CC 01 00 35 04 06 00 4B [09:43:44]Write to MH i2c: E2 02 01 22 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2D 00 00 00 F4 03 04 00 CF FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CC 01 00 35 04 06 00 4B 00 00 D0 [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:44]Read from MH i2c: E2 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [09:43:44]RAPDU: 90 00 [09:43:44]wFMCommunicate OK [09:43:44]wFMCommunicate request_size=10 [09:43:44]MH_SAM_APDU [09:43:44]CAPDU: 80 0D 02 02 05 E7 39 15 B6 7E [09:43:44]Write to MH i2c: E2 0D 00 23 05 80 0D 02 02 05 00 E7 39 15 B6 7E 00 00 15 [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:44]Read from MH i2c: E2 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [09:43:44]RAPDU: 90 00 [09:43:44]wFMCommunicate OK [09:43:44]wFMCommunicate request_size=4 [09:43:44]MH_SAM_APDU [09:43:44]CAPDU: 80 0D 03 02 [09:43:44]Write to MH i2c: E2 08 00 24 05 80 0D 03 02 00 00 00 00 A4 [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:44]Read from MH i2c: E2 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 0B 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 0B 00 24 05 00 2A 27 EC 18 83 68 63 22 90 00 6A [09:43:44]RAPDU: 2A 27 EC 18 83 68 63 22 90 00 [09:43:44]wFMCommunicate OK [09:43:44]SAM_PROTO_SignData done [09:43:44]FM_MakeSignedData done [09:43:44]CreateOFDProtocolMessage [09:43:44]wFMCommunicate request_size=4 [09:43:44]MH_SAM_APDU [09:43:44]CAPDU: 80 11 00 00 [09:43:44]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:44]Read from MH i2c: E2 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 17 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FB [09:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:43:44]wFMCommunicate OK [09:43:44]CreateOFDProtocolMessage done [09:43:44]OFDSenderStorePacket 117985 [09:43:44]StoreOFDPacket docnum=117985 [09:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C5 3B 07 01 A8 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 CF FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CC 01 00 35 04 06 00 4B E7 39 15 B6 7E 2A 27 EC 18 83 68 63 22 [09:43:44]CheckFolder [09:43:44]dirname=/storage/ofd_packets [09:43:44]CheckFolder done [09:43:44]ProducePacketName [09:43:44]name=ofd_packets/00117985 [09:43:44]NVStorageSaveData ofd_packets/00117985 [09:43:44]File name is /storage/ofd_packets/00117985 [09:43:44]Write 301 bytes [09:43:44]NVStorageSaveData done [09:43:44]OFDSenderStorePacket done [09:43:44]KKMCreateOFDPacket done [09:43:44]NVStorageSaveData kkm_last_timestamp [09:43:44]File name is /storage/kkm_last_timestamp [09:43:44]Write 4 bytes [09:43:44]NVStorageSaveData done [09:43:44]ExternCall_PrintAddStr [09:43:44]wPrintStart [09:43:44]Write to MH i2c: 01 00 00 26 05 2B [09:43:44]Write i2c OK [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: 01 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: 01 07 00 [09:43:44]MH_I2C_Read... [09:43:44]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [09:43:44]RasterBufferAndPrint [09:43:44]line Счет N : (1)245778 [09:43:44]line ИНН: 02508201610067 [09:43:44]line Контрольно-Кассовый Чек [09:43:44]line ПРОДАЖА [09:43:44]line ТРК (МРК, ГНК) : 21 [09:43:44]line Товар: 2710124130 [09:43:44]line Аи-92-К-2 [09:43:44]line 7.480 * 66.90 [09:43:44]line = 500.41 [09:43:44]line НДС 12% НСП 1% [09:43:44]line > о реализуемом товаре [09:43:44]line ОКРУГЛЕНИЕ: -0.41 [09:43:44]line ИТОГО: 500.00 [09:43:44]line Внесено: 500.00 [09:43:44]line СДАЧА: 0.00 [09:43:44]line НСП 1% : 4.43 [09:43:44]line НДС 12% : 53.14 [09:43:44]line Наличными: 500.00 [09:43:44]line Безнал.: 0.00 [09:43:44]line Место: АЗС № 173 "Партнер Нефть" [09:43:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:43:44]line СНО: Общий режим [09:43:44]line Чек 45 30.10.2024 09:43 [09:43:44]line Смена: 545 ФФД: 1.0 [09:43:44]line ЗНМ: 0300000115 [09:43:44]line РНМ: 0000000000091782 [09:43:44]line Версия ККМ: 001 [09:43:44]line ФМ: 0000000000871767 [09:43:44]line ФД: 117985 [09:43:44]line ФПД: 83456467252862 [09:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117985&fm=83456467252862&tin=02508201610067®Number=0000000000091782&sum=50000 [09:43:44]OFD Sender: Processing packet 117985 [packets to send 77, broken 76] [09:43:44]ProducePacketName [09:43:44]name=ofd_packets/00117985 [09:43:44]OFD Sender: To server: pG, [09:43:44]CommunicateWithHost lk.salyk.kg:30040 [09:43:44]ConnectInit lk.salyk.kg [09:43:44]written 0, free lines is 4095 [09:43:45]Connected sock=10 [09:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C5 3B 07 01 A8 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 CF FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E1 CC 01 00 35 04 06 00 4B E7 39 15 B6 7E 2A 27 EC 18 83 68 63 22 [09:43: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 36 37 4F 00 00 00 8F CA 47 00 9A 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 36 37 10 04 04 00 E1 CC 01 00 F4 03 04 00 87 AB 21 67 B6 04 01 00 00 72 94 92 F4 FB 2E 69 76 [09:43:45]CommunicateWithHost err = 0 [09:43:45]CheckOFDResponse [09:43:45]1017 (14) - 77093643461234 [09:43:45]1041 (16) - 0000000000871767 [09:43:45]1040 (4) - 117985 [09:43:45]1012 (4) - 30.10.2024 03:44 [09:43:45]1206 (1) - 0 [09:43:45]OFD Sender: Remove packet 117985 [09:43:45]ProducePacketName [09:43:45]name=ofd_packets/00117985 [09:43:45]NVStorageDeleteData [09:43:45]Write to MH i2c: 01 00 00 50 05 55 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 07 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 AD 0C 15 [09:43:45]RasterBufferAndPrint [09:43:45]line [09:43:45]line [09:43:45]line [09:43:45]line [09:43:45]line [09:43:45]written 0, free lines is 3249 [09:43:45]MH_Cut [09:43:45]Write to MH i2c: D1 01 00 57 05 01 2E [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: D1 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: D1 01 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: D1 01 00 57 05 00 2D [09:43:45]Write to MH i2c: 01 00 00 58 05 5D [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]OFD Sender: No OFD packet to send [09:43:46]*** Cut start [09:43:46]*** Purtial cut [09:43:46]*** Stage 1: CUTSNS_PIN = 1 [09:43:46]Read from MH i2c: 01 [09:43:46]MH_I2C_Read... [09:43:46]*** Stop cut motor [09:43:46]*** Cut end [09:43:46]Read from MH i2c: 01 07 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 FF 0F 72 [09:43:46]process_action close_receipt done [09:43:46]requested_data is exist [09:43:46]produce_requested_data [09:43:46]requested_item fm.sn is exist - process it [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 11 00 00 [09:43:46]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 17 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2F [09:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:43:46]wFMCommunicate OK [09:43:46]requested_item fd.num is exist - process it [09:43:46]SAM_PROTO_GetFieldsCounters [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 13 00 00 [09:43:46]Write to MH i2c: E2 08 00 5A 05 80 13 00 00 00 00 00 00 DB [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 62 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 62 00 5A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E1 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E1 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:46]wFMCommunicate OK [09:43:46]SAM_PROTO_GetFieldsCounters done [09:43:46]requested_item shift.num is exist - process it [09:43:46]requested_item shift.opened is exist - process it [09:43:46]req_shift_opened [09:43:46]FM_GetShiftState [09:43:46]SAM_PROTO_GetShiftState [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 13 01 00 [09:43:46]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 0E 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B5 [09:43:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:43:46]wFMCommunicate OK [09:43:46]SAM_PROTO_GetShiftState done [09:43:46]FM_GetShiftState done [09:43:46]req_shift_opened done [09:43:46]requested_item shift.open_date is exist - process it [09:43:46]req_shift_open_date [09:43:46]req_shift_open_date done [09:43:46]produce_requested_data done [09:43:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117985,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:43:46]process_action_free close_receipt [09:43:46]json_value_free [09:43:46]json_value_free done [09:43:46]process_json_proto returns [09:43:46]Send response to host [09:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117985,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:43:46]free response buf [09:43:46]execute_script done [09:43:46]execute_script returns [09:43:46]free content buf [09:43:46]Sock 7.Close socket [09:43:46]Sock 7.Thread stoped [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:26]accept exits with 9 [09:44:26]New connection [09:44:26]New thread 3067559268 created [09:44:26]Thread 3067415908 joined [09:44:26]Waiting for new connection... [09:44:26] Sock 9.Parse request [09:44:26]Sock 9.Check first char [09:44:26]Sock 9.First char is OK [09:44:26]request: POST /json_proto HTTP/1.0 [09:44:26]Method: POST [09:44:26]URL: /json_proto [09:44:26]Method is POST - this is cgi request [09:44:26]url: /json_proto [09:44:26]query_string will be loaded in cgi processing [09:44:26]execute_cgi json_proto POST (null) [09:44:26]execute_cgi path=json_proto method=POST [09:44:26]POST find Content-Length [09:44:26]Host: 172.17.96.67:8080 [09:44:26]Content-Length: 677 [09:44:26]Content-Type: application/json [09:44:26] [09:44:26]POST finish read [09:44:26]Found Content-Length = 677 [09:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:26]execute_script... [09:44: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)245779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:26]POST & json_proto [09:44:26]process_json_proto [09:44:26]json parsed OK: [09:44:26]protocol is kg_v1.0 [09:44:26]action value=close_receipt [09:44:26]process_action close_receipt [09:44:26]cmd_close_receipt [09:44:26]MH_GetDate [09:44:26]Write to MH i2c: F0 00 00 5C 05 50 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 09 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 09 00 5C 05 00 FA FF 21 67 47 6C 1F 67 13 [09:44:26]GetLastDocTimeStamp 1730281423 [09:44:26]current date 1730281466 [09:44:26]FM_GetShiftState [09:44:26]SAM_PROTO_GetShiftState [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 13 01 00 [09:44:26]Write to MH i2c: E2 08 00 5D 05 80 13 01 00 00 00 00 00 DF [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 5D 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B7 [09:44:26]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:44:26]wFMCommunicate OK [09:44:26]SAM_PROTO_GetShiftState done [09:44:26]FM_GetShiftState done [09:44:26]opened in 1730246605 [09:44:26]opened+sec_in_day 1730333005 [09:44:26]quantity*price = 40006 [09:44:26]sum+1 = 40007 [09:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 46 30.10.2024 09:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117986 ФПД: 5631676068411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094426&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117986&fm=5631676068411&tin=02508201610067®Number=0000000000091782&sum=40000 [09:44:27]StoreToDocumentArchive [09:44:27]shift 545 fd 117986 [09:44:27]save to /storage/0545/doc_00117986 [09:44:27]save last doc name /storage/0545/doc_00117986 to /storage/kkm_last_doc_name [09:44:27]save OK [09:44:27]Clear old archive folders... [09:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:27]tlvbuf is 00630380 [09:44:27]SAM_PROTO_ClearQueue [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 09 00 00 [09:44:27]Write to MH i2c: E2 08 00 6A 05 80 09 00 00 00 00 00 00 E1 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_ClearQueue done [09:44:27]KKMCreateOFDPacket [09:44:27]OFDProtocolAddRootSTLVToBuf [09:44:27]FM_MakeSignedData [09:44:27]FM_MakeSignedData [09:44:27]SAM_PROTO_SignData [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 01 02 [09:44:27]Write to MH i2c: E2 08 00 6B 05 80 0D 01 02 00 00 00 00 E9 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=255 [09:44:27]MH_SAM_APDU [09:44: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 32 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 2E 00 00 00 F4 03 04 00 FA FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CC 01 00 35 04 06 00 05 [09:44:27]Write to MH i2c: E2 02 01 6C 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 FA FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CC 01 00 35 04 06 00 05 00 00 D0 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [09:44:28]RAPDU: 90 00 [09:44:28]wFMCommunicate OK [09:44:28]wFMCommunicate request_size=10 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 0D 02 02 05 1F 3A 0D 32 3B [09:44:28]Write to MH i2c: E2 0D 00 6D 05 80 0D 02 02 05 00 1F 3A 0D 32 3B 00 00 C9 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [09:44:28]RAPDU: 90 00 [09:44:28]wFMCommunicate OK [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 0D 03 02 [09:44:28]Write to MH i2c: E2 08 00 6E 05 80 0D 03 02 00 00 00 00 EE [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0B 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0B 00 6E 05 00 5C BA 5E 4E FD F7 DC 30 90 00 B1 [09:44:28]RAPDU: 5C BA 5E 4E FD F7 DC 30 90 00 [09:44:28]wFMCommunicate OK [09:44:28]SAM_PROTO_SignData done [09:44:28]FM_MakeSignedData done [09:44:28]CreateOFDProtocolMessage [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 11 00 00 [09:44:28]Write to MH i2c: E2 08 00 6F 05 80 11 00 00 00 00 00 00 EE [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 6F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 45 [09:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:44:28]wFMCommunicate OK [09:44:28]CreateOFDProtocolMessage done [09:44:28]OFDSenderStorePacket 117986 [09:44:28]StoreOFDPacket docnum=117986 [09:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EB 37 07 01 B7 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2E 00 00 00 F4 03 04 00 FA FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CC 01 00 35 04 06 00 05 1F 3A 0D 32 3B 5C BA 5E 4E FD F7 DC 30 [09:44:28]CheckFolder [09:44:28]dirname=/storage/ofd_packets [09:44:28]CheckFolder done [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00117986 [09:44:28]NVStorageSaveData ofd_packets/00117986 [09:44:28]File name is /storage/ofd_packets/00117986 [09:44:28]Write 301 bytes [09:44:28]NVStorageSaveData done [09:44:28]OFDSenderStorePacket done [09:44:28]KKMCreateOFDPacket done [09:44:28]NVStorageSaveData kkm_last_timestamp [09:44:28]File name is /storage/kkm_last_timestamp [09:44:28]Write 4 bytes [09:44:28]NVStorageSaveData done [09:44:28]ExternCall_PrintAddStr [09:44:28]wPrintStart [09:44:28]Write to MH i2c: 01 00 00 70 05 75 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 70 05 00 00 00 00 00 FF 0F 8A [09:44:28]RasterBufferAndPrint [09:44:28]line Счет N : (1)245779 [09:44:28]line ИНН: 02508201610067 [09:44:28]line Контрольно-Кассовый Чек [09:44:28]line ПРОДАЖА [09:44:28]line ТРК (МРК, ГНК) : 11 [09:44:28]line Товар: 2710124130 [09:44:28]line Аи-92-К-2 [09:44:28]line 5.980 * 66.90 [09:44:28]line = 400.06 [09:44:28]line НДС 12% НСП 1% [09:44:28]line > о реализуемом товаре [09:44:28]line ОКРУГЛЕНИЕ: -0.06 [09:44:28]line ИТОГО: 400.00 [09:44:28]line Внесено: 400.00 [09:44:28]line СДАЧА: 0.00 [09:44:28]line НСП 1% : 3.54 [09:44:28]line НДС 12% : 42.48 [09:44:28]line Наличными: 400.00 [09:44:28]line Безнал.: 0.00 [09:44:28]line Место: АЗС № 173 "Партнер Нефть" [09:44:28]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:44:28]line СНО: Общий режим [09:44:28]line Чек 46 30.10.2024 09:44 [09:44:28]line Смена: 545 ФФД: 1.0 [09:44:28]line ЗНМ: 0300000115 [09:44:28]line РНМ: 0000000000091782 [09:44:28]line Версия ККМ: 001 [09:44:28]line ФМ: 0000000000871767 [09:44:28]line ФД: 117986 [09:44:28]line ФПД: 5631676068411 [09:44:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094426&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117986&fm=5631676068411&tin=02508201610067®Number=0000000000091782&sum=40000 [09:44:28]written 0, free lines is 4095 [09:44:28]OFD Sender: Processing packet 117986 [packets to send 77, broken 76] [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00117986 [09:44:28]OFD Sender: To server: pG, [09:44:28]CommunicateWithHost lk.salyk.kg:30040 [09:44:28]ConnectInit lk.salyk.kg [09:44:28]Connected sock=10 [09:44: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 36 37 0F 01 00 00 EB 37 07 01 B7 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2E 00 00 00 F4 03 04 00 FA FF 21 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E2 CC 01 00 35 04 06 00 05 1F 3A 0D 32 3B 5C BA 5E 4E FD F7 DC 30 [09:44: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 36 37 4F 00 00 00 76 41 47 00 42 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 36 37 10 04 04 00 E2 CC 01 00 F4 03 04 00 B2 AB 21 67 B6 04 01 00 00 3C 25 87 00 F3 21 FB 8E [09:44:28]CommunicateWithHost err = 0 [09:44:28]CheckOFDResponse [09:44:28]1017 (14) - 77093643461234 [09:44:28]1041 (16) - 0000000000871767 [09:44:28]1040 (4) - 117986 [09:44:28]1012 (4) - 30.10.2024 03:44 [09:44:28]1206 (1) - 0 [09:44:28]OFD Sender: Remove packet 117986 [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00117986 [09:44:28]NVStorageDeleteData [09:44:28]Write to MH i2c: 01 00 00 9A 05 9F [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 AA 0C 5C [09:44:28]RasterBufferAndPrint [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]written 0, free lines is 3246 [09:44:28]MH_Cut [09:44:28]Write to MH i2c: D1 01 00 A1 05 01 78 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 01 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 01 00 A1 05 00 77 [09:44:28]Write to MH i2c: 01 00 00 A2 05 A7 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:29]OFD Sender: No OFD packet to send [09:44:29]*** Cut start [09:44:29]*** Purtial cut [09:44:29]*** Stage 1: CUTSNS_PIN = 1 [09:44:29]Read from MH i2c: 01 [09:44:29]MH_I2C_Read... [09:44:29]*** Stop cut motor [09:44:29]*** Cut end [09:44:29]Read from MH i2c: 01 07 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [09:44:29]process_action close_receipt done [09:44:29]requested_data is exist [09:44:29]produce_requested_data [09:44:29]requested_item fm.sn is exist - process it [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 11 00 00 [09:44:29]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 17 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 79 [09:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:44:29]wFMCommunicate OK [09:44:29]requested_item fd.num is exist - process it [09:44:29]SAM_PROTO_GetFieldsCounters [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 13 00 00 [09:44:29]Write to MH i2c: E2 08 00 A4 05 80 13 00 00 00 00 00 00 25 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 62 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 62 00 A4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:44: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:30]wFMCommunicate OK [09:44:30]SAM_PROTO_GetFieldsCounters done [09:44:30]requested_item shift.num is exist - process it [09:44:30]requested_item shift.opened is exist - process it [09:44:30]req_shift_opened [09:44:30]FM_GetShiftState [09:44:30]SAM_PROTO_GetShiftState [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 13 01 00 [09:44:30]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 0E 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FF [09:44:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:44:30]wFMCommunicate OK [09:44:30]SAM_PROTO_GetShiftState done [09:44:30]FM_GetShiftState done [09:44:30]req_shift_opened done [09:44:30]requested_item shift.open_date is exist - process it [09:44:30]req_shift_open_date [09:44:30]req_shift_open_date done [09:44:30]produce_requested_data done [09:44:30]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117986,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:44:30]process_action_free close_receipt [09:44:30]json_value_free [09:44:30]json_value_free done [09:44:30]process_json_proto returns [09:44:30]Send response to host [09:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117986,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:44:30]free response buf [09:44:30]execute_script done [09:44:30]execute_script returns [09:44:30]free content buf [09:44:30]Sock 9.Close socket [09:44:30]Sock 9.Thread stoped [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:37]accept exits with 7 [09:47:37]New connection [09:47:37]New thread 3067415908 created [09:47:37]Thread 3067559268 joined [09:47:37]Waiting for new connection... [09:47:37] Sock 7.Parse request [09:47:37]Sock 7.Check first char [09:47:37]Sock 7.First char is OK [09:47:37]request: POST /json_proto HTTP/1.0 [09:47:37]Method: POST [09:47:37]URL: /json_proto [09:47:37]Method is POST - this is cgi request [09:47:37]url: /json_proto [09:47:37]query_string will be loaded in cgi processing [09:47:37]execute_cgi json_proto POST (null) [09:47:37]execute_cgi path=json_proto method=POST [09:47:37]POST find Content-Length [09:47:37]Host: 172.17.96.67:8080 [09:47:37]Content-Length: 677 [09:47:37]Content-Type: application/json [09:47:37] [09:47:37]POST finish read [09:47:37]Found Content-Length = 677 [09:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:37]execute_script... [09: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)245780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:37]POST & json_proto [09:47:37]process_json_proto [09:47:37]json parsed OK: [09:47:37]protocol is kg_v1.0 [09:47:37]action value=close_receipt [09:47:37]process_action close_receipt [09:47:37]cmd_close_receipt [09:47:37]MH_GetDate [09:47:37]Write to MH i2c: F0 00 00 A6 05 9A [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: F0 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: F0 09 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: F0 09 00 A6 05 00 B9 00 22 67 47 6C 1F 67 1E [09:47:37]GetLastDocTimeStamp 1730281466 [09:47:37]current date 1730281657 [09:47:37]FM_GetShiftState [09:47:37]SAM_PROTO_GetShiftState [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 13 01 00 [09:47:37]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0E 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 01 [09:47:37]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:47:37]wFMCommunicate OK [09:47:37]SAM_PROTO_GetShiftState done [09:47:37]FM_GetShiftState done [09:47:37]opened in 1730246605 [09:47:37]opened+sec_in_day 1730333005 [09:47:37]quantity*price = 20003 [09:47:37]sum+1 = 20004 [09:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 47 30.10.2024 09:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117987 ФПД: 273701812268820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094737&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117987&fm=273701812268820&tin=02508201610067®Number=0000000000091782&sum=20000 [09:47:38]StoreToDocumentArchive [09:47:38]shift 545 fd 117987 [09:47:38]save to /storage/0545/doc_00117987 [09:47:38]save last doc name /storage/0545/doc_00117987 to /storage/kkm_last_doc_name [09:47:38]save OK [09:47:38]Clear old archive folders... [09:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:38]tlvbuf is 00634EA0 [09:47:38]SAM_PROTO_ClearQueue [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 09 00 00 [09:47:38]Write to MH i2c: E2 08 00 B4 05 80 09 00 00 00 00 00 00 2B [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [09:47:38]RAPDU: 90 00 [09:47:38]wFMCommunicate OK [09:47:38]SAM_PROTO_ClearQueue done [09:47:38]KKMCreateOFDPacket [09:47:38]OFDProtocolAddRootSTLVToBuf [09:47:38]FM_MakeSignedData [09:47:38]FM_MakeSignedData [09:47:38]SAM_PROTO_SignData [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 0D 01 02 [09:47:38]Write to MH i2c: E2 08 00 B5 05 80 0D 01 02 00 00 00 00 33 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [09:47:38]RAPDU: 90 00 [09:47:38]wFMCommunicate OK [09:47:38]wFMCommunicate request_size=255 [09:47:38]MH_SAM_APDU [09:47: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 32 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 2F 00 00 00 F4 03 04 00 B9 00 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CC 01 00 35 04 06 00 F8 [09:47:38]Write to MH i2c: E2 02 01 B6 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 B9 00 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CC 01 00 35 04 06 00 F8 00 00 C3 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [09:47:39]RAPDU: 90 00 [09:47:39]wFMCommunicate OK [09:47:39]wFMCommunicate request_size=10 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 0D 02 02 05 EE 2B 4B 6F 14 [09:47:39]Write to MH i2c: E2 0D 00 B7 05 80 0D 02 02 05 00 EE 2B 4B 6F 14 00 00 27 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [09:47:39]RAPDU: 90 00 [09:47:39]wFMCommunicate OK [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 0D 03 02 [09:47:39]Write to MH i2c: E2 08 00 B8 05 80 0D 03 02 00 00 00 00 38 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 0B 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 0B 00 B8 05 00 CA 3E 27 A5 D2 4C 92 EE 90 00 AB [09:47:39]RAPDU: CA 3E 27 A5 D2 4C 92 EE 90 00 [09:47:39]wFMCommunicate OK [09:47:39]SAM_PROTO_SignData done [09:47:39]FM_MakeSignedData done [09:47:39]CreateOFDProtocolMessage [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 11 00 00 [09:47:39]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 17 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8F [09:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:47:39]wFMCommunicate OK [09:47:39]CreateOFDProtocolMessage done [09:47:39]OFDSenderStorePacket 117987 [09:47:39]StoreOFDPacket docnum=117987 [09:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C9 C7 07 01 C2 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 32 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 2F 00 00 00 F4 03 04 00 B9 00 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CC 01 00 35 04 06 00 F8 EE 2B 4B 6F 14 CA 3E 27 A5 D2 4C 92 EE [09:47:39]CheckFolder [09:47:39]dirname=/storage/ofd_packets [09:47:39]CheckFolder done [09:47:39]ProducePacketName [09:47:39]name=ofd_packets/00117987 [09:47:39]NVStorageSaveData ofd_packets/00117987 [09:47:39]File name is /storage/ofd_packets/00117987 [09:47:39]Write 301 bytes [09:47:39]NVStorageSaveData done [09:47:39]OFDSenderStorePacket done [09:47:39]KKMCreateOFDPacket done [09:47:39]NVStorageSaveData kkm_last_timestamp [09:47:39]File name is /storage/kkm_last_timestamp [09:47:39]Write 4 bytes [09:47:39]NVStorageSaveData done [09:47:39]ExternCall_PrintAddStr [09:47:39]wPrintStart [09:47:39]Write to MH i2c: 01 00 00 BA 05 BF [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 07 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [09:47:39]RasterBufferAndPrint [09:47:39]line Счет N : (1)245780 [09:47:39]line ИНН: 02508201610067 [09:47:39]line Контрольно-Кассовый Чек [09:47:39]line ПРОДАЖА [09:47:39]line ТРК (МРК, ГНК) : 21 [09:47:39]line Товар: 2710124130 [09:47:39]line Аи-92-К-2 [09:47:39]line 2.990 * 66.90 [09:47:39]line = 200.03 [09:47:39]line НДС 12% НСП 1% [09:47:39]line > о реализуемом товаре [09:47:39]line ОКРУГЛЕНИЕ: -0.03 [09:47:39]line ИТОГО: 200.00 [09:47:39]line Внесено: 200.00 [09:47:39]line СДАЧА: 0.00 [09:47:39]line НСП 1% : 1.77 [09:47:39]line НДС 12% : 21.24 [09:47:39]line Наличными: 200.00 [09:47:39]line Безнал.: 0.00 [09:47:39]line Место: АЗС № 173 "Партнер Нефть" [09:47:39]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:47:39]line СНО: Общий режим [09:47:39]line Чек 47 30.10.2024 09:47 [09:47:39]line Смена: 545 ФФД: 1.0 [09:47:39]line ЗНМ: 0300000115 [09:47:39]line РНМ: 0000000000091782 [09:47:39]line Версия ККМ: 001 [09:47:39]line ФМ: 0000000000871767 [09:47:39]line ФД: 117987 [09:47:39]line ФПД: 273701812268820 [09:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094737&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117987&fm=273701812268820&tin=02508201610067®Number=0000000000091782&sum=20000 [09:47:39]written 0, free lines is 4095 [09:47:39]OFD Sender: Processing packet 117987 [packets to send 77, broken 76] [09:47:39]ProducePacketName [09:47:39]name=ofd_packets/00117987 [09:47:39]OFD Sender: To server: pG, [09:47:39]CommunicateWithHost lk.salyk.kg:30040 [09:47:39]ConnectInit lk.salyk.kg [09:47:39]Connected sock=10 [09: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 36 37 0F 01 00 00 C9 C7 07 01 C2 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 32 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 2F 00 00 00 F4 03 04 00 B9 00 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E3 CC 01 00 35 04 06 00 F8 EE 2B 4B 6F 14 CA 3E 27 A5 D2 4C 92 EE [09:47: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 36 37 4F 00 00 00 19 EB 47 00 17 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 36 37 10 04 04 00 E3 CC 01 00 F4 03 04 00 71 AC 21 67 B6 04 01 00 00 DB 85 91 05 C9 03 4E 57 [09:47:40]CommunicateWithHost err = 0 [09:47:40]CheckOFDResponse [09:47:40]1017 (14) - 77093643461234 [09:47:40]1041 (16) - 0000000000871767 [09:47:40]1040 (4) - 117987 [09:47:40]1012 (4) - 30.10.2024 03:48 [09:47:40]1206 (1) - 0 [09:47:40]OFD Sender: Remove packet 117987 [09:47:40]ProducePacketName [09:47:40]name=ofd_packets/00117987 [09:47:40]NVStorageDeleteData [09:47:40]Write to MH i2c: 01 00 00 E4 05 E9 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: 01 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: 01 07 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 A8 0C A4 [09:47:40]RasterBufferAndPrint [09:47:40]line [09:47:40]line [09:47:40]line [09:47:40]line [09:47:40]line [09:47:40]written 0, free lines is 3243 [09:47:40]MH_Cut [09:47:40]Write to MH i2c: D1 01 00 EB 05 01 C2 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: D1 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: D1 01 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: D1 01 00 EB 05 00 C1 [09:47:40]Write to MH i2c: 01 00 00 EC 05 F1 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]OFD Sender: No OFD packet to send [09:47:40]*** Cut start [09:47:40]*** Purtial cut [09:47:40]*** Stage 1: CUTSNS_PIN = 1 [09:47:41]Read from MH i2c: 01 [09:47:41]MH_I2C_Read... [09:47:41]*** Stop cut motor [09:47:41]*** Cut end [09:47:41]Read from MH i2c: 01 07 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [09:47:41]process_action close_receipt done [09:47:41]requested_data is exist [09:47:41]produce_requested_data [09:47:41]requested_item fm.sn is exist - process it [09:47:41]wFMCommunicate request_size=4 [09:47:41]MH_SAM_APDU [09:47:41]CAPDU: 80 11 00 00 [09:47:41]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 17 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C3 [09:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:47:41]wFMCommunicate OK [09:47:41]requested_item fd.num is exist - process it [09:47:41]SAM_PROTO_GetFieldsCounters [09:47:41]wFMCommunicate request_size=4 [09:47:41]MH_SAM_APDU [09:47:41]CAPDU: 80 13 00 00 [09:47:41]Write to MH i2c: E2 08 00 EE 05 80 13 00 00 00 00 00 00 6F [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 62 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 62 00 EE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:41]wFMCommunicate OK [09:47:41]SAM_PROTO_GetFieldsCounters done [09:47:41]requested_item shift.num is exist - process it [09:47:41]requested_item shift.opened is exist - process it [09:47:41]req_shift_opened [09:47:41]FM_GetShiftState [09:47:41]SAM_PROTO_GetShiftState [09:47:41]wFMCommunicate request_size=4 [09:47:41]MH_SAM_APDU [09:47:41]CAPDU: 80 13 01 00 [09:47:41]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 0E 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 49 [09:47:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:47:41]wFMCommunicate OK [09:47:41]SAM_PROTO_GetShiftState done [09:47:41]FM_GetShiftState done [09:47:41]req_shift_opened done [09:47:41]requested_item shift.open_date is exist - process it [09:47:41]req_shift_open_date [09:47:41]req_shift_open_date done [09:47:41]produce_requested_data done [09:47:41]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117987,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:47:41]process_action_free close_receipt [09:47:41]json_value_free [09:47:41]json_value_free done [09:47:41]process_json_proto returns [09:47:41]Send response to host [09:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117987,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:47:41]free response buf [09:47:41]execute_script done [09:47:41]execute_script returns [09:47:41]free content buf [09:47:41]Sock 7.Close socket [09:47:41]Sock 7.Thread stoped [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:06]accept exits with 9 [09:52:06]New connection [09:52:06]New thread 3067559268 created [09:52:06]Thread 3067415908 joined [09:52:06]Waiting for new connection... [09:52:06] Sock 9.Parse request [09:52:06]Sock 9.Check first char [09:52:06]Sock 9.First char is OK [09:52:06]request: POST /json_proto HTTP/1.0 [09:52:06]Method: POST [09:52:06]URL: /json_proto [09:52:06]Method is POST - this is cgi request [09:52:06]url: /json_proto [09:52:06]query_string will be loaded in cgi processing [09:52:06]execute_cgi json_proto POST (null) [09:52:06]execute_cgi path=json_proto method=POST [09:52:06]POST find Content-Length [09:52:06]Host: 172.17.96.67:8080 [09:52:06]Content-Length: 677 [09:52:06]Content-Type: application/json [09:52:06] [09:52:06]POST finish read [09:52:06]Found Content-Length = 677 [09:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:06]execute_script... [09:52: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)245781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:06]POST & json_proto [09:52:06]process_json_proto [09:52:06]json parsed OK: [09:52:06]protocol is kg_v1.0 [09:52:06]action value=close_receipt [09:52:06]process_action close_receipt [09:52:06]cmd_close_receipt [09:52:06]MH_GetDate [09:52:06]Write to MH i2c: F0 00 00 F0 05 E4 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: F0 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: F0 09 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: F0 09 00 F0 05 00 C6 01 22 67 47 6C 1F 67 76 [09:52:06]GetLastDocTimeStamp 1730281657 [09:52:06]current date 1730281926 [09:52:06]FM_GetShiftState [09:52:06]SAM_PROTO_GetShiftState [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 13 01 00 [09:52:06]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0E 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4B [09:52:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:52:06]wFMCommunicate OK [09:52:06]SAM_PROTO_GetShiftState done [09:52:06]FM_GetShiftState done [09:52:06]opened in 1730246605 [09:52:06]opened+sec_in_day 1730333005 [09:52:06]quantity*price = 50041 [09:52:06]sum+1 = 50042 [09:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 48 30.10.2024 09:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117988 ФПД: 4621796385671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095206&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117988&fm=4621796385671&tin=02508201610067®Number=0000000000091782&sum=50000 [09:52:07]StoreToDocumentArchive [09:52:07]shift 545 fd 117988 [09:52:07]save to /storage/0545/doc_00117988 [09:52:07]save last doc name /storage/0545/doc_00117988 to /storage/kkm_last_doc_name [09:52:07]save OK [09:52:07]Clear old archive folders... [09:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:07]tlvbuf is 00674CD0 [09:52:07]SAM_PROTO_ClearQueue [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 09 00 00 [09:52:07]Write to MH i2c: E2 08 00 FE 05 80 09 00 00 00 00 00 00 75 [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 03 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [09:52:07]RAPDU: 90 00 [09:52:07]wFMCommunicate OK [09:52:07]SAM_PROTO_ClearQueue done [09:52:07]KKMCreateOFDPacket [09:52:07]OFDProtocolAddRootSTLVToBuf [09:52:07]FM_MakeSignedData [09:52:07]FM_MakeSignedData [09:52:07]SAM_PROTO_SignData [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 0D 01 02 [09:52:07]Write to MH i2c: E2 08 00 FF 05 80 0D 01 02 00 00 00 00 7D [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 03 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [09:52:07]RAPDU: 90 00 [09:52:07]wFMCommunicate OK [09:52:07]wFMCommunicate request_size=255 [09:52:07]MH_SAM_APDU [09:52: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 32 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 30 00 00 00 F4 03 04 00 C6 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CC 01 00 35 04 06 00 04 [09:52:07]Write to MH i2c: E2 02 01 00 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 00 00 00 F4 03 04 00 C6 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CC 01 00 35 04 06 00 04 00 00 68 [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 03 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [09:52:07]RAPDU: 90 00 [09:52:07]wFMCommunicate OK [09:52:07]wFMCommunicate request_size=10 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 0D 02 02 05 34 18 88 23 87 [09:52:07]Write to MH i2c: E2 0D 00 01 06 80 0D 02 02 05 00 34 18 88 23 87 00 00 09 [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [09:52:08]RAPDU: 90 00 [09:52:08]wFMCommunicate OK [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 0D 03 02 [09:52:08]Write to MH i2c: E2 08 00 02 06 80 0D 03 02 00 00 00 00 83 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0B 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0B 00 02 06 00 2C CC DC 3D 58 B3 42 E3 90 00 C5 [09:52:08]RAPDU: 2C CC DC 3D 58 B3 42 E3 90 00 [09:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_SignData done [09:52:08]FM_MakeSignedData done [09:52:08]CreateOFDProtocolMessage [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 11 00 00 [09:52:08]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 17 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 17 00 03 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DA [09:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:52:08]wFMCommunicate OK [09:52:08]CreateOFDProtocolMessage done [09:52:08]OFDSenderStorePacket 117988 [09:52:08]StoreOFDPacket docnum=117988 [09:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 26 ED 07 01 A2 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 32 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 30 00 00 00 F4 03 04 00 C6 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CC 01 00 35 04 06 00 04 34 18 88 23 87 2C CC DC 3D 58 B3 42 E3 [09:52:08]CheckFolder [09:52:08]dirname=/storage/ofd_packets [09:52:08]CheckFolder done [09:52:08]ProducePacketName [09:52:08]name=ofd_packets/00117988 [09:52:08]NVStorageSaveData ofd_packets/00117988 [09:52:08]File name is /storage/ofd_packets/00117988 [09:52:08]Write 301 bytes [09:52:08]NVStorageSaveData done [09:52:08]OFDSenderStorePacket done [09:52:08]KKMCreateOFDPacket done [09:52:08]NVStorageSaveData kkm_last_timestamp [09:52:08]File name is /storage/kkm_last_timestamp [09:52:08]Write 4 bytes [09:52:08]NVStorageSaveData done [09:52:08]ExternCall_PrintAddStr [09:52:08]wPrintStart [09:52:08]Write to MH i2c: 01 00 00 04 06 0A [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 07 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 07 00 04 06 00 00 00 00 00 FF 0F 1F [09:52:08]RasterBufferAndPrint [09:52:08]line Счет N : (1)245781 [09:52:08]line ИНН: 02508201610067 [09:52:08]line Контрольно-Кассовый Чек [09:52:08]line ПРОДАЖА [09:52:08]line ТРК (МРК, ГНК) : 21 [09:52:08]line Товар: 2710124130 [09:52:08]line Аи-92-К-2 [09:52:08]line 7.480 * 66.90 [09:52:08]line = 500.41 [09:52:08]line НДС 12% НСП 1% [09:52:08]line > о реализуемом товаре [09:52:08]line ОКРУГЛЕНИЕ: -0.41 [09:52:08]line ИТОГО: 500.00 [09:52:08]line Внесено: 500.00 [09:52:08]line СДАЧА: 0.00 [09:52:08]line НСП 1% : 4.43 [09:52:08]line НДС 12% : 53.14 [09:52:08]line Наличными: 500.00 [09:52:08]line Безнал.: 0.00 [09:52:08]line Место: АЗС № 173 "Партнер Нефть" [09:52:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:52:08]line СНО: Общий режим [09:52:08]line Чек 48 30.10.2024 09:52 [09:52:08]line Смена: 545 ФФД: 1.0 [09:52:08]line ЗНМ: 0300000115 [09:52:08]line РНМ: 0000000000091782 [09:52:08]line Версия ККМ: 001 [09:52:08]line ФМ: 0000000000871767 [09:52:08]line ФД: 117988 [09:52:08]line ФПД: 4621796385671 [09:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095206&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117988&fm=4621796385671&tin=02508201610067®Number=0000000000091782&sum=50000 [09:52:08]written 0, free lines is 4095 [09:52:08]OFD Sender: Processing packet 117988 [packets to send 77, broken 76] [09:52:08]ProducePacketName [09:52:08]name=ofd_packets/00117988 [09:52:08]OFD Sender: To server: pG, [09:52:08]CommunicateWithHost lk.salyk.kg:30040 [09:52:08]ConnectInit lk.salyk.kg [09:52:08]Connected sock=10 [09:52: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 36 37 0F 01 00 00 26 ED 07 01 A2 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 32 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 30 00 00 00 F4 03 04 00 C6 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E4 CC 01 00 35 04 06 00 04 34 18 88 23 87 2C CC DC 3D 58 B3 42 E3 [09:52:08]Write to MH i2c: 01 00 00 2E 06 34 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 07 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 AE 0C F5 [09:52:08]RasterBufferAndPrint [09:52:08]line [09:52:08]line [09:52:08]line [09:52:08]line [09:52:08]line [09:52:08]written 0, free lines is 3251 [09:52:08]MH_Cut [09:52:08]Write to MH i2c: D1 01 00 35 06 01 0D [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: D1 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: D1 01 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: D1 01 00 35 06 00 0C [09:52:08]Write to MH i2c: 01 00 00 36 06 3C [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52: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 36 37 4F 00 00 00 9D 48 47 00 6B 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 36 37 10 04 04 00 E4 CC 01 00 F4 03 04 00 7E AD 21 67 B6 04 01 00 00 AD 5C 5C B8 F6 2A 3A 8E [09:52:08]CommunicateWithHost err = 0 [09:52:08]CheckOFDResponse [09:52:08]1017 (14) - 77093643461234 [09:52:08]1041 (16) - 0000000000871767 [09:52:08]1040 (4) - 117988 [09:52:08]1012 (4) - 30.10.2024 03:52 [09:52:08]1206 (1) - 0 [09:52:08]OFD Sender: Remove packet 117988 [09:52:08]ProducePacketName [09:52:08]name=ofd_packets/00117988 [09:52:08]NVStorageDeleteData [09:52:09]OFD Sender: No OFD packet to send [09:52:09]*** Cut start [09:52:09]*** Purtial cut [09:52:09]*** Stage 1: CUTSNS_PIN = 1 [09:52:09]Read from MH i2c: 01 [09:52:09]MH_I2C_Read... [09:52:09]*** Stop cut motor [09:52:09]*** Cut end [09:52:09]Read from MH i2c: 01 07 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 FF 0F 51 [09:52:09]process_action close_receipt done [09:52:09]requested_data is exist [09:52:09]produce_requested_data [09:52:09]requested_item fm.sn is exist - process it [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 11 00 00 [09:52:09]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 17 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0E [09:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:52:09]wFMCommunicate OK [09:52:09]requested_item fd.num is exist - process it [09:52:09]SAM_PROTO_GetFieldsCounters [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 13 00 00 [09:52:09]Write to MH i2c: E2 08 00 38 06 80 13 00 00 00 00 00 00 BA [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 62 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 62 00 38 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [09:52: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:09]wFMCommunicate OK [09:52:09]SAM_PROTO_GetFieldsCounters done [09:52:09]requested_item shift.num is exist - process it [09:52:09]requested_item shift.opened is exist - process it [09:52:09]req_shift_opened [09:52:09]FM_GetShiftState [09:52:09]SAM_PROTO_GetShiftState [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 13 01 00 [09:52:09]Write to MH i2c: E2 08 00 39 06 80 13 01 00 00 00 00 00 BC [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:10]Read from MH i2c: E2 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 0E 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 0E 00 39 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 94 [09:52:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:52:10]wFMCommunicate OK [09:52:10]SAM_PROTO_GetShiftState done [09:52:10]FM_GetShiftState done [09:52:10]req_shift_opened done [09:52:10]requested_item shift.open_date is exist - process it [09:52:10]req_shift_open_date [09:52:10]req_shift_open_date done [09:52:10]produce_requested_data done [09:52:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117988,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:52:10]process_action_free close_receipt [09:52:10]json_value_free [09:52:10]json_value_free done [09:52:10]process_json_proto returns [09:52:10]Send response to host [09:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117988,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:52:10]free response buf [09:52:10]execute_script done [09:52:10]execute_script returns [09:52:10]free content buf [09:52:10]Sock 9.Close socket [09:52:10]Sock 9.Thread stoped [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]accept exits with 7 [09:52:29]New connection [09:52:29]New thread 3067415908 created [09:52:29]Thread 3067559268 joined [09:52:29]Waiting for new connection... [09:52:29] Sock 7.Parse request [09:52:29]Sock 7.Check first char [09:52:29]Sock 7.First char is OK [09:52:29]request: POST /json_proto HTTP/1.0 [09:52:29]Method: POST [09:52:29]URL: /json_proto [09:52:29]Method is POST - this is cgi request [09:52:29]url: /json_proto [09:52:29]query_string will be loaded in cgi processing [09:52:29]execute_cgi json_proto POST (null) [09:52:29]execute_cgi path=json_proto method=POST [09:52:29]POST find Content-Length [09:52:29]Host: 172.17.96.67:8080 [09:52:29]Content-Length: 677 [09:52:29]Content-Type: application/json [09:52:29] [09:52:29]POST finish read [09:52:29]Found Content-Length = 677 [09:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:29]execute_script... [09:52: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)245782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:29]POST & json_proto [09:52:29]process_json_proto [09:52:29]json parsed OK: [09:52:29]protocol is kg_v1.0 [09:52:29]action value=close_receipt [09:52:29]process_action close_receipt [09:52:29]cmd_close_receipt [09:52:29]MH_GetDate [09:52:29]Write to MH i2c: F0 00 00 3A 06 2F [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 09 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 09 00 3A 06 00 DD 01 22 67 47 6C 1F 67 D8 [09:52:29]GetLastDocTimeStamp 1730281926 [09:52:29]current date 1730281949 [09:52:29]FM_GetShiftState [09:52:29]SAM_PROTO_GetShiftState [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 13 01 00 [09:52:29]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]OFD Sender: No OFD packet to send [09:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 96 [09:52:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:52:29]wFMCommunicate OK [09:52:29]SAM_PROTO_GetShiftState done [09:52:29]FM_GetShiftState done [09:52:29]opened in 1730246605 [09:52:29]opened+sec_in_day 1730333005 [09:52:29]quantity*price = 20003 [09:52:29]sum+1 = 20004 [09:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 49 30.10.2024 09:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117989 ФПД: 198854163996330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095229&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117989&fm=198854163996330&tin=02508201610067®Number=0000000000091782&sum=20000 [09:52:30]StoreToDocumentArchive [09:52:30]shift 545 fd 117989 [09:52:30]save to /storage/0545/doc_00117989 [09:52:30]save last doc name /storage/0545/doc_00117989 to /storage/kkm_last_doc_name [09:52:30]save OK [09:52:30]Clear old archive folders... [09:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:30]tlvbuf is 0062D2A0 [09:52:30]SAM_PROTO_ClearQueue [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 09 00 00 [09:52:30]Write to MH i2c: E2 08 00 48 06 80 09 00 00 00 00 00 00 C0 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]SAM_PROTO_ClearQueue done [09:52:30]KKMCreateOFDPacket [09:52:30]OFDProtocolAddRootSTLVToBuf [09:52:30]FM_MakeSignedData [09:52:30]FM_MakeSignedData [09:52:30]SAM_PROTO_SignData [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 0D 01 02 [09:52:30]Write to MH i2c: E2 08 00 49 06 80 0D 01 02 00 00 00 00 C8 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]wFMCommunicate request_size=255 [09:52:30]MH_SAM_APDU [09:52: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 32 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 31 00 00 00 F4 03 04 00 DD 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CC 01 00 35 04 06 00 B4 [09:52:30]Write to MH i2c: E2 02 01 4A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 31 00 00 00 F4 03 04 00 DD 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CC 01 00 35 04 06 00 B4 00 00 3D [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]wFMCommunicate request_size=10 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 0D 02 02 05 DB 57 CE 9E AA [09:52:30]Write to MH i2c: E2 0D 00 4B 06 80 0D 02 02 05 00 DB 57 CE 9E AA 00 00 1D [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 0D 03 02 [09:52:30]Write to MH i2c: E2 08 00 4C 06 80 0D 03 02 00 00 00 00 CD [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 0B 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 0B 00 4C 06 00 7A E8 61 39 58 C8 C7 FF 90 00 B0 [09:52:30]RAPDU: 7A E8 61 39 58 C8 C7 FF 90 00 [09:52:30]wFMCommunicate OK [09:52:30]SAM_PROTO_SignData done [09:52:30]FM_MakeSignedData done [09:52:30]CreateOFDProtocolMessage [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 11 00 00 [09:52:30]Write to MH i2c: E2 08 00 4D 06 80 11 00 00 00 00 00 00 CD [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 17 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 17 00 4D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 24 [09:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:52:30]wFMCommunicate OK [09:52:30]CreateOFDProtocolMessage done [09:52:30]OFDSenderStorePacket 117989 [09:52:30]StoreOFDPacket docnum=117989 [09:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3C FB 07 01 73 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 DD 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CC 01 00 35 04 06 00 B4 DB 57 CE 9E AA 7A E8 61 39 58 C8 C7 FF [09:52:30]CheckFolder [09:52:30]dirname=/storage/ofd_packets [09:52:30]CheckFolder done [09:52:30]ProducePacketName [09:52:30]name=ofd_packets/00117989 [09:52:30]NVStorageSaveData ofd_packets/00117989 [09:52:30]File name is /storage/ofd_packets/00117989 [09:52:30]Write 301 bytes [09:52:30]NVStorageSaveData done [09:52:30]OFDSenderStorePacket done [09:52:30]KKMCreateOFDPacket done [09:52:30]NVStorageSaveData kkm_last_timestamp [09:52:30]File name is /storage/kkm_last_timestamp [09:52:30]Write 4 bytes [09:52:30]NVStorageSaveData done [09:52:30]ExternCall_PrintAddStr [09:52:30]wPrintStart [09:52:30]Write to MH i2c: 01 00 00 4E 06 54 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 07 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 FF 0F 69 [09:52:30]RasterBufferAndPrint [09:52:30]line Счет N : (1)245782 [09:52:30]line ИНН: 02508201610067 [09:52:30]line Контрольно-Кассовый Чек [09:52:30]line ПРОДАЖА [09:52:30]line ТРК (МРК, ГНК) : 21 [09:52:30]line Товар: 2710124130 [09:52:30]line Аи-92-К-2 [09:52:30]line 2.990 * 66.90 [09:52:30]line = 200.03 [09:52:30]line НДС 12% НСП 1% [09:52:30]line > о реализуемом товаре [09:52:30]line ОКРУГЛЕНИЕ: -0.03 [09:52:30]line ИТОГО: 200.00 [09:52:30]line Внесено: 200.00 [09:52:30]line СДАЧА: 0.00 [09:52:31]line НСП 1% : 1.77 [09:52:31]line НДС 12% : 21.24 [09:52:31]line Наличными: 200.00 [09:52:31]line Безнал.: 0.00 [09:52:31]line Место: АЗС № 173 "Партнер Нефть" [09:52:31]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:52:31]line СНО: Общий режим [09:52:31]line Чек 49 30.10.2024 09:52 [09:52:31]line Смена: 545 ФФД: 1.0 [09:52:31]line ЗНМ: 0300000115 [09:52:31]line РНМ: 0000000000091782 [09:52:31]line Версия ККМ: 001 [09:52:31]line ФМ: 0000000000871767 [09:52:31]line ФД: 117989 [09:52:31]line ФПД: 198854163996330 [09:52:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095229&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117989&fm=198854163996330&tin=02508201610067®Number=0000000000091782&sum=20000 [09:52:31]OFD Sender: Processing packet 117989 [packets to send 77, broken 76] [09:52:31]ProducePacketName [09:52:31]name=ofd_packets/00117989 [09:52:31]OFD Sender: To server: pG, [09:52:31]CommunicateWithHost lk.salyk.kg:30040 [09:52:31]ConnectInit lk.salyk.kg [09:52:31]written 0, free lines is 4095 [09:52:31]Connected sock=10 [09:52: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 36 37 0F 01 00 00 3C FB 07 01 73 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 DD 01 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CC 01 00 35 04 06 00 B4 DB 57 CE 9E AA 7A E8 61 39 58 C8 C7 FF [09:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 38 BD 47 00 C7 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E5 CC 01 00 F4 03 04 00 95 AD 21 67 B6 04 01 00 00 A1 C0 B6 F3 F7 76 9F AF [09:52:31]CommunicateWithHost err = 0 [09:52:31]CheckOFDResponse [09:52:31]1017 (14) - 77093643461234 [09:52:31]1041 (16) - 0000000000871767 [09:52:31]1040 (4) - 117989 [09:52:31]1012 (4) - 30.10.2024 03:52 [09:52:31]1206 (1) - 0 [09:52:31]OFD Sender: Remove packet 117989 [09:52:31]ProducePacketName [09:52:31]name=ofd_packets/00117989 [09:52:31]NVStorageDeleteData [09:52:31]Write to MH i2c: 01 00 00 78 06 7E [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 07 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 AF 0C 40 [09:52:31]RasterBufferAndPrint [09:52:31]line [09:52:31]line [09:52:31]line [09:52:31]line [09:52:31]line [09:52:31]written 0, free lines is 3253 [09:52:31]MH_Cut [09:52:31]Write to MH i2c: D1 01 00 7F 06 01 57 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: D1 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: D1 01 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: D1 01 00 7F 06 00 56 [09:52:31]Write to MH i2c: 01 00 00 80 06 86 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:32]OFD Sender: No OFD packet to send [09:52:32]*** Cut start [09:52:32]*** Purtial cut [09:52:32]*** Stage 1: CUTSNS_PIN = 1 [09:52:32]Read from MH i2c: 01 [09:52:32]MH_I2C_Read... [09:52:32]*** Stop cut motor [09:52:32]*** Cut end [09:52:32]Read from MH i2c: 01 07 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [09:52:32]process_action close_receipt done [09:52:32]requested_data is exist [09:52:32]produce_requested_data [09:52:32]requested_item fm.sn is exist - process it [09:52:32]wFMCommunicate request_size=4 [09:52:32]MH_SAM_APDU [09:52:32]CAPDU: 80 11 00 00 [09:52:32]Write to MH i2c: E2 08 00 81 06 80 11 00 00 00 00 00 00 01 [09:52:32]Write i2c OK [09:52:32]MH_I2C_Read... [09:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:33]Read from MH i2c: E2 [09:52:33]MH_I2C_Read... [09:52:33]Read from MH i2c: E2 17 00 [09:52:33]MH_I2C_Read... [09:52:33]Read from MH i2c: E2 17 00 81 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 58 [09:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:52:33]wFMCommunicate OK [09:52:33]requested_item fd.num is exist - process it [09:52:33]SAM_PROTO_GetFieldsCounters [09:52:33]wFMCommunicate request_size=4 [09:52:33]MH_SAM_APDU [09:52:33]CAPDU: 80 13 00 00 [09:52:33]Write to MH i2c: E2 08 00 82 06 80 13 00 00 00 00 00 00 04 [09:52:33]Write i2c OK [09:52:33]MH_I2C_Read... [09:52:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:33]Read from MH i2c: E2 [09:52:33]MH_I2C_Read... [09:52:33]Read from MH i2c: E2 62 00 [09:52:33]MH_I2C_Read... [09:52:33]Read from MH i2c: E2 62 00 82 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:52: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:33]wFMCommunicate OK [09:52:33]SAM_PROTO_GetFieldsCounters done [09:52:33]requested_item shift.num is exist - process it [09:52:33]requested_item shift.opened is exist - process it [09:52:33]req_shift_opened [09:52:33]FM_GetShiftState [09:52:33]SAM_PROTO_GetShiftState [09:52:33]wFMCommunicate request_size=4 [09:52:33]MH_SAM_APDU [09:52:33]CAPDU: 80 13 01 00 [09:52:33]Write to MH i2c: E2 08 00 83 06 80 13 01 00 00 00 00 00 06 [09:52:33]Write i2c OK [09:52:33]MH_I2C_Read... [09:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:33]Read from MH i2c: E2 [09:52:33]MH_I2C_Read... [09:52:33]Read from MH i2c: E2 0E 00 [09:52:33]MH_I2C_Read... [09:52:33]Read from MH i2c: E2 0E 00 83 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DE [09:52:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:52:33]wFMCommunicate OK [09:52:33]SAM_PROTO_GetShiftState done [09:52:33]FM_GetShiftState done [09:52:33]req_shift_opened done [09:52:33]requested_item shift.open_date is exist - process it [09:52:33]req_shift_open_date [09:52:33]req_shift_open_date done [09:52:33]produce_requested_data done [09:52:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117989,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:52:33]process_action_free close_receipt [09:52:33]json_value_free [09:52:33]json_value_free done [09:52:33]process_json_proto returns [09:52:33]Send response to host [09:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117989,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:52:33]free response buf [09:52:33]execute_script done [09:52:33]execute_script returns [09:52:33]free content buf [09:52:33]Sock 7.Close socket [09:52:33]Sock 7.Thread stoped [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:08]accept exits with 9 [09:55:08]New connection [09:55:08]New thread 3067559268 created [09:55:08]Thread 3067415908 joined [09:55:08]Waiting for new connection... [09:55:08] Sock 9.Parse request [09:55:08]Sock 9.Check first char [09:55:08]Sock 9.First char is OK [09:55:08]request: POST /json_proto HTTP/1.0 [09:55:08]Method: POST [09:55:08]URL: /json_proto [09:55:08]Method is POST - this is cgi request [09:55:08]url: /json_proto [09:55:08]query_string will be loaded in cgi processing [09:55:08]execute_cgi json_proto POST (null) [09:55:08]execute_cgi path=json_proto method=POST [09:55:08]POST find Content-Length [09:55:08]Host: 172.17.96.67:8080 [09:55:08]Content-Length: 682 [09:55:08]Content-Type: application/json [09:55:08] [09:55:08]POST finish read [09:55:08]Found Content-Length = 682 [09:55:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:55:08]execute_script... [09:55:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:55:08]POST & json_proto [09:55:08]process_json_proto [09:55:08]json parsed OK: [09:55:08]protocol is kg_v1.0 [09:55:08]action value=close_receipt [09:55:08]process_action close_receipt [09:55:08]cmd_close_receipt [09:55:08]MH_GetDate [09:55:08]Write to MH i2c: F0 00 00 84 06 79 [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: F0 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: F0 09 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: F0 09 00 84 06 00 7C 02 22 67 47 6C 1F 67 C2 [09:55:08]GetLastDocTimeStamp 1730281949 [09:55:08]current date 1730282108 [09:55:08]FM_GetShiftState [09:55:08]SAM_PROTO_GetShiftState [09:55:08]wFMCommunicate request_size=4 [09:55:08]MH_SAM_APDU [09:55:08]CAPDU: 80 13 01 00 [09:55:08]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 0E 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E0 [09:55:08]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:55:08]wFMCommunicate OK [09:55:08]SAM_PROTO_GetShiftState done [09:55:08]FM_GetShiftState done [09:55:08]opened in 1730246605 [09:55:08]opened+sec_in_day 1730333005 [09:55:08]quantity*price = 100015 [09:55:08]sum+1 = 100017 [09:55:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 50 30.10.2024 09:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117990 ФПД: 128421796077441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095508&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117990&fm=128421796077441&tin=02508201610067®Number=0000000000091782&sum=100000 [09:55:09]StoreToDocumentArchive [09:55:09]shift 545 fd 117990 [09:55:09]save to /storage/0545/doc_00117990 [09:55:09]save last doc name /storage/0545/doc_00117990 to /storage/kkm_last_doc_name [09:55:09]save OK [09:55:09]Clear old archive folders... [09:55:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:09]tlvbuf is 0062EFF0 [09:55:09]SAM_PROTO_ClearQueue [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 09 00 00 [09:55:09]Write to MH i2c: E2 08 00 92 06 80 09 00 00 00 00 00 00 0A [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]SAM_PROTO_ClearQueue done [09:55:09]KKMCreateOFDPacket [09:55:09]OFDProtocolAddRootSTLVToBuf [09:55:09]FM_MakeSignedData [09:55:09]FM_MakeSignedData [09:55:09]SAM_PROTO_SignData [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 01 02 [09:55:09]Write to MH i2c: E2 08 00 93 06 80 0D 01 02 00 00 00 00 12 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=255 [09:55:09]MH_SAM_APDU [09:55: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 32 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 32 00 00 00 F4 03 04 00 7C 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CC 01 00 35 04 06 00 74 [09:55:09]Write to MH i2c: E2 02 01 94 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 00 00 00 F4 03 04 00 7C 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CC 01 00 35 04 06 00 74 00 00 21 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=10 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 02 02 05 CC 87 89 5F 81 [09:55:09]Write to MH i2c: E2 0D 00 95 06 80 0D 02 02 05 00 CC 87 89 5F 81 00 00 DB [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 03 02 [09:55:09]Write to MH i2c: E2 08 00 96 06 80 0D 03 02 00 00 00 00 17 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0B 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0B 00 96 06 00 EF 40 10 A3 3E 7C 7D A2 90 00 D3 [09:55:09]RAPDU: EF 40 10 A3 3E 7C 7D A2 90 00 [09:55:09]wFMCommunicate OK [09:55:09]SAM_PROTO_SignData done [09:55:09]FM_MakeSignedData done [09:55:09]CreateOFDProtocolMessage [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 11 00 00 [09:55:09]Write to MH i2c: E2 08 00 97 06 80 11 00 00 00 00 00 00 17 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 17 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 17 00 97 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6E [09:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:55:09]wFMCommunicate OK [09:55:09]CreateOFDProtocolMessage done [09:55:09]OFDSenderStorePacket 117990 [09:55:09]StoreOFDPacket docnum=117990 [09:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 67 63 07 01 59 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 00 00 00 F4 03 04 00 7C 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CC 01 00 35 04 06 00 74 CC 87 89 5F 81 EF 40 10 A3 3E 7C 7D A2 [09:55:09]CheckFolder [09:55:09]dirname=/storage/ofd_packets [09:55:09]CheckFolder done [09:55:09]ProducePacketName [09:55:09]name=ofd_packets/00117990 [09:55:09]NVStorageSaveData ofd_packets/00117990 [09:55:09]File name is /storage/ofd_packets/00117990 [09:55:09]Write 301 bytes [09:55:09]NVStorageSaveData done [09:55:09]OFDSenderStorePacket done [09:55:09]KKMCreateOFDPacket done [09:55:09]NVStorageSaveData kkm_last_timestamp [09:55:09]File name is /storage/kkm_last_timestamp [09:55:09]Write 4 bytes [09:55:09]NVStorageSaveData done [09:55:09]ExternCall_PrintAddStr [09:55:09]wPrintStart [09:55:09]Write to MH i2c: 01 00 00 98 06 9E [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [09:55:09]RasterBufferAndPrint [09:55:09]line Счет N : (1)245783 [09:55:09]line ИНН: 02508201610067 [09:55:09]line Контрольно-Кассовый Чек [09:55:09]line ПРОДАЖА [09:55:09]line ТРК (МРК, ГНК) : 11 [09:55:09]line Товар: 2710124130 [09:55:09]line Аи-92-К-2 [09:55:09]line 14.950 * 66.90 [09:55:09]line = 1000.16 [09:55:09]line НДС 12% НСП 1% [09:55:09]line > о реализуемом товаре [09:55:09]line ОКРУГЛЕНИЕ: -0.16 [09:55:09]line ИТОГО: 1000.00 [09:55:09]line Внесено: 1000.00 [09:55:09]line СДАЧА: 0.00 [09:55:09]line НСП 1% : 8.85 [09:55:09]line НДС 12% : 106.21 [09:55:09]line Наличными: 1000.00 [09:55:09]line Безнал.: 0.00 [09:55:09]line Место: АЗС № 173 "Партнер Нефть" [09:55:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:55:09]line СНО: Общий режим [09:55:09]line Чек 50 30.10.2024 09:55 [09:55:09]line Смена: 545 ФФД: 1.0 [09:55:09]line ЗНМ: 0300000115 [09:55:09]line РНМ: 0000000000091782 [09:55:09]line Версия ККМ: 001 [09:55:09]line ФМ: 0000000000871767 [09:55:09]line ФД: 117990 [09:55:09]line ФПД: 128421796077441 [09:55:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095508&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117990&fm=128421796077441&tin=02508201610067®Number=0000000000091782&sum=100000 [09:55:10]written 0, free lines is 4095 [09:55:10]OFD Sender: Processing packet 117990 [packets to send 77, broken 76] [09:55:10]ProducePacketName [09:55:10]name=ofd_packets/00117990 [09:55:10]OFD Sender: To server: pG, [09:55:10]CommunicateWithHost lk.salyk.kg:30040 [09:55:10]ConnectInit lk.salyk.kg [09:55:10]Connected sock=10 [09:55: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 36 37 0F 01 00 00 67 63 07 01 59 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 00 00 00 F4 03 04 00 7C 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CC 01 00 35 04 06 00 74 CC 87 89 5F 81 EF 40 10 A3 3E 7C 7D A2 [09:55: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 36 37 4F 00 00 00 05 79 47 00 D2 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E6 CC 01 00 F4 03 04 00 34 AE 21 67 B6 04 01 00 00 8E 40 14 09 86 8A 60 43 [09:55:10]CommunicateWithHost err = 0 [09:55:10]CheckOFDResponse [09:55:10]1017 (14) - 77093643461234 [09:55:10]1041 (16) - 0000000000871767 [09:55:10]1040 (4) - 117990 [09:55:10]1012 (4) - 30.10.2024 03:55 [09:55:10]1206 (1) - 0 [09:55:10]OFD Sender: Remove packet 117990 [09:55:10]ProducePacketName [09:55:10]name=ofd_packets/00117990 [09:55:10]NVStorageDeleteData [09:55:10]Write to MH i2c: 01 00 00 C2 06 C8 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 07 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 A8 0C 83 [09:55:10]RasterBufferAndPrint [09:55:10]line [09:55:10]line [09:55:10]line [09:55:10]line [09:55:10]line [09:55:10]written 0, free lines is 3245 [09:55:10]MH_Cut [09:55:10]Write to MH i2c: D1 01 00 C9 06 01 A1 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: D1 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: D1 01 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: D1 01 00 C9 06 00 A0 [09:55:10]Write to MH i2c: 01 00 00 CA 06 D0 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]OFD Sender: No OFD packet to send [09:55:11]*** Cut start [09:55:11]*** Purtial cut [09:55:11]*** Stage 1: CUTSNS_PIN = 1 [09:55:11]Read from MH i2c: 01 [09:55:11]MH_I2C_Read... [09:55:11]*** Stop cut motor [09:55:11]*** Cut end [09:55:11]Read from MH i2c: 01 07 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 FF 0F E5 [09:55:11]process_action close_receipt done [09:55:11]requested_data is exist [09:55:11]produce_requested_data [09:55:11]requested_item fm.sn is exist - process it [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 11 00 00 [09:55:11]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 17 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A2 [09:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:55:11]wFMCommunicate OK [09:55:11]requested_item fd.num is exist - process it [09:55:11]SAM_PROTO_GetFieldsCounters [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 13 00 00 [09:55:11]Write to MH i2c: E2 08 00 CC 06 80 13 00 00 00 00 00 00 4E [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 62 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 62 00 CC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [09:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetFieldsCounters done [09:55:11]requested_item shift.num is exist - process it [09:55:11]requested_item shift.opened is exist - process it [09:55:11]req_shift_opened [09:55:11]FM_GetShiftState [09:55:11]SAM_PROTO_GetShiftState [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 13 01 00 [09:55:11]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 28 [09:55:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetShiftState done [09:55:11]FM_GetShiftState done [09:55:11]req_shift_opened done [09:55:11]requested_item shift.open_date is exist - process it [09:55:11]req_shift_open_date [09:55:11]req_shift_open_date done [09:55:11]produce_requested_data done [09:55:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117990,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:55:11]process_action_free close_receipt [09:55:11]json_value_free [09:55:11]json_value_free done [09:55:11]process_json_proto returns [09:55:11]Send response to host [09:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117990,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:55:11]free response buf [09:55:11]execute_script done [09:55:11]execute_script returns [09:55:11]free content buf [09:55:11]Sock 9.Close socket [09:55:11]Sock 9.Thread stoped [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:11]accept exits with 7 [09:57:11]New connection [09:57:11]New thread 3067415908 created [09:57:11]Thread 3067559268 joined [09:57:11]Waiting for new connection... [09:57:11] Sock 7.Parse request [09:57:11]Sock 7.Check first char [09:57:11]Sock 7.First char is OK [09:57:11]request: POST /json_proto HTTP/1.0 [09:57:11]Method: POST [09:57:11]URL: /json_proto [09:57:11]Method is POST - this is cgi request [09:57:11]url: /json_proto [09:57:11]query_string will be loaded in cgi processing [09:57:11]execute_cgi json_proto POST (null) [09:57:11]execute_cgi path=json_proto method=POST [09:57:11]POST find Content-Length [09:57:11]Host: 172.17.96.67:8080 [09:57:11]Content-Length: 677 [09:57:11]Content-Type: application/json [09:57:11] [09:57:11]POST finish read [09:57:11]Found Content-Length = 677 [09:57:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:11]execute_script... [09:57: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)245784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:11]POST & json_proto [09:57:11]process_json_proto [09:57:11]json parsed OK: [09:57:11]protocol is kg_v1.0 [09:57:11]action value=close_receipt [09:57:11]process_action close_receipt [09:57:11]cmd_close_receipt [09:57:11]MH_GetDate [09:57:11]Write to MH i2c: F0 00 00 CE 06 C3 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: F0 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: F0 09 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: F0 09 00 CE 06 00 F7 02 22 67 47 6C 1F 67 87 [09:57:11]GetLastDocTimeStamp 1730282108 [09:57:11]current date 1730282231 [09:57:11]FM_GetShiftState [09:57:11]SAM_PROTO_GetShiftState [09:57:11]wFMCommunicate request_size=4 [09:57:11]MH_SAM_APDU [09:57:11]CAPDU: 80 13 01 00 [09:57:11]Write to MH i2c: E2 08 00 CF 06 80 13 01 00 00 00 00 00 52 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:11]Read from MH i2c: E2 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: E2 0E 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: E2 0E 00 CF 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2A [09:57:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:57:11]wFMCommunicate OK [09:57:11]SAM_PROTO_GetShiftState done [09:57:11]FM_GetShiftState done [09:57:11]opened in 1730246605 [09:57:11]opened+sec_in_day 1730333005 [09:57:11]quantity*price = 30038 [09:57:11]sum+1 = 30039 [09:57:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 51 30.10.2024 09:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117991 ФПД: 8140884019448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095711&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117991&fm=8140884019448&tin=02508201610067®Number=0000000000091782&sum=30000 [09:57:12]StoreToDocumentArchive [09:57:12]shift 545 fd 117991 [09:57:12]save to /storage/0545/doc_00117991 [09:57:12]save last doc name /storage/0545/doc_00117991 to /storage/kkm_last_doc_name [09:57:12]save OK [09:57:12]Clear old archive folders... [09:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:12]tlvbuf is 00673740 [09:57:12]SAM_PROTO_ClearQueue [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 09 00 00 [09:57:12]Write to MH i2c: E2 08 00 DC 06 80 09 00 00 00 00 00 00 54 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [09:57:12]RAPDU: 90 00 [09:57:12]wFMCommunicate OK [09:57:12]SAM_PROTO_ClearQueue done [09:57:12]KKMCreateOFDPacket [09:57:12]OFDProtocolAddRootSTLVToBuf [09:57:12]FM_MakeSignedData [09:57:12]FM_MakeSignedData [09:57:12]SAM_PROTO_SignData [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 0D 01 02 [09:57:12]Write to MH i2c: E2 08 00 DD 06 80 0D 01 02 00 00 00 00 5C [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [09:57:12]RAPDU: 90 00 [09:57:12]wFMCommunicate OK [09:57:12]wFMCommunicate request_size=255 [09:57:12]MH_SAM_APDU [09:57: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 32 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 33 00 00 00 F4 03 04 00 F7 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CC 01 00 35 04 06 00 07 [09:57:12]Write to MH i2c: E2 02 01 DE 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 F7 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CC 01 00 35 04 06 00 07 00 00 75 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [09:57:12]RAPDU: 90 00 [09:57:12]wFMCommunicate OK [09:57:12]wFMCommunicate request_size=10 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 0D 02 02 05 67 72 80 08 F8 [09:57:12]Write to MH i2c: E2 0D 00 DF 06 80 0D 02 02 05 00 67 72 80 08 F8 00 00 C2 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [09:57:12]RAPDU: 90 00 [09:57:12]wFMCommunicate OK [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 0D 03 02 [09:57:12]Write to MH i2c: E2 08 00 E0 06 80 0D 03 02 00 00 00 00 61 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 0B 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 0B 00 E0 06 00 7E 19 AD 5F 0D 2B 55 FF 90 00 91 [09:57:12]RAPDU: 7E 19 AD 5F 0D 2B 55 FF 90 00 [09:57:12]wFMCommunicate OK [09:57:12]SAM_PROTO_SignData done [09:57:12]FM_MakeSignedData done [09:57:12]CreateOFDProtocolMessage [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 11 00 00 [09:57:12]Write to MH i2c: E2 08 00 E1 06 80 11 00 00 00 00 00 00 61 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 17 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 17 00 E1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B8 [09:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:57:12]wFMCommunicate OK [09:57:12]CreateOFDProtocolMessage done [09:57:12]OFDSenderStorePacket 117991 [09:57:12]StoreOFDPacket docnum=117991 [09:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C2 84 07 01 84 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 F7 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CC 01 00 35 04 06 00 07 67 72 80 08 F8 7E 19 AD 5F 0D 2B 55 FF [09:57:12]CheckFolder [09:57:12]dirname=/storage/ofd_packets [09:57:12]CheckFolder done [09:57:12]ProducePacketName [09:57:12]name=ofd_packets/00117991 [09:57:12]NVStorageSaveData ofd_packets/00117991 [09:57:12]File name is /storage/ofd_packets/00117991 [09:57:12]Write 301 bytes [09:57:12]NVStorageSaveData done [09:57:12]OFDSenderStorePacket done [09:57:12]KKMCreateOFDPacket done [09:57:12]NVStorageSaveData kkm_last_timestamp [09:57:12]File name is /storage/kkm_last_timestamp [09:57:12]Write 4 bytes [09:57:12]NVStorageSaveData done [09:57:12]ExternCall_PrintAddStr [09:57:12]wPrintStart [09:57:12]Write to MH i2c: 01 00 00 E2 06 E8 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: 01 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: 01 07 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: 01 07 00 E2 06 00 00 00 00 00 FF 0F FD [09:57:12]RasterBufferAndPrint [09:57:12]line Счет N : (1)245784 [09:57:12]line ИНН: 02508201610067 [09:57:12]line Контрольно-Кассовый Чек [09:57:12]line ПРОДАЖА [09:57:12]line ТРК (МРК, ГНК) : 21 [09:57:12]line Товар: 2710124130 [09:57:12]line Аи-92-К-2 [09:57:12]line 4.490 * 66.90 [09:57:12]line = 300.38 [09:57:12]line НДС 12% НСП 1% [09:57:12]line > о реализуемом товаре [09:57:12]line ОКРУГЛЕНИЕ: -0.38 [09:57:12]line ИТОГО: 300.00 [09:57:12]line Внесено: 300.00 [09:57:12]line СДАЧА: 0.00 [09:57:12]line НСП 1% : 2.66 [09:57:12]line НДС 12% : 31.90 [09:57:12]line Наличными: 300.00 [09:57:12]line Безнал.: 0.00 [09:57:12]line Место: АЗС № 173 "Партнер Нефть" [09:57:12]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:57:12]line СНО: Общий режим [09:57:12]line Чек 51 30.10.2024 09:57 [09:57:12]line Смена: 545 ФФД: 1.0 [09:57:12]line ЗНМ: 0300000115 [09:57:12]line РНМ: 0000000000091782 [09:57:12]line Версия ККМ: 001 [09:57:12]line ФМ: 0000000000871767 [09:57:12]line ФД: 117991 [09:57:12]line ФПД: 8140884019448 [09:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095711&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117991&fm=8140884019448&tin=02508201610067®Number=0000000000091782&sum=30000 [09:57:12]written 0, free lines is 4095 [09:57:12]OFD Sender: Processing packet 117991 [packets to send 77, broken 76] [09:57:12]ProducePacketName [09:57:12]name=ofd_packets/00117991 [09:57:12]OFD Sender: To server: pG, [09:57:12]CommunicateWithHost lk.salyk.kg:30040 [09:57:12]ConnectInit lk.salyk.kg [09:57:12]Connected sock=11 [09:57: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 36 37 0F 01 00 00 C2 84 07 01 84 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 F7 02 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CC 01 00 35 04 06 00 07 67 72 80 08 F8 7E 19 AD 5F 0D 2B 55 FF [09:57: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 36 37 4F 00 00 00 0D A6 47 00 94 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E7 CC 01 00 F4 03 04 00 AF AE 21 67 B6 04 01 00 00 FB AD BA AF 7F 63 44 8B [09:57:13]CommunicateWithHost err = 0 [09:57:13]CheckOFDResponse [09:57:13]1017 (14) - 77093643461234 [09:57:13]1041 (16) - 0000000000871767 [09:57:13]1040 (4) - 117991 [09:57:13]1012 (4) - 30.10.2024 03:57 [09:57:13]1206 (1) - 0 [09:57:13]OFD Sender: Remove packet 117991 [09:57:13]ProducePacketName [09:57:13]name=ofd_packets/00117991 [09:57:13]NVStorageDeleteData [09:57:13]Write to MH i2c: 01 00 00 0C 07 13 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 AD 0C D3 [09:57:13]RasterBufferAndPrint [09:57:13]line [09:57:13]line [09:57:13]line [09:57:13]line [09:57:13]line [09:57:13]written 0, free lines is 3248 [09:57:13]MH_Cut [09:57:13]Write to MH i2c: D1 01 00 13 07 01 EC [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: D1 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: D1 01 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: D1 01 00 13 07 00 EB [09:57:13]Write to MH i2c: 01 00 00 14 07 1B [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]OFD Sender: No OFD packet to send [09:57:14]*** Cut start [09:57:14]*** Purtial cut [09:57:14]*** Stage 1: CUTSNS_PIN = 1 [09:57:14]Read from MH i2c: 01 [09:57:14]MH_I2C_Read... [09:57:14]*** Stop cut motor [09:57:14]*** Cut end [09:57:14]Read from MH i2c: 01 07 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 FF 0F 30 [09:57:14]process_action close_receipt done [09:57:14]requested_data is exist [09:57:14]produce_requested_data [09:57:14]requested_item fm.sn is exist - process it [09:57:14]wFMCommunicate request_size=4 [09:57:14]MH_SAM_APDU [09:57:14]CAPDU: 80 11 00 00 [09:57:14]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:14]Read from MH i2c: E2 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 17 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 17 00 15 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 ED [09:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:57:14]wFMCommunicate OK [09:57:14]requested_item fd.num is exist - process it [09:57:14]SAM_PROTO_GetFieldsCounters [09:57:14]wFMCommunicate request_size=4 [09:57:14]MH_SAM_APDU [09:57:14]CAPDU: 80 13 00 00 [09:57:14]Write to MH i2c: E2 08 00 16 07 80 13 00 00 00 00 00 00 99 [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:14]Read from MH i2c: E2 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 62 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 62 00 16 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [09:57: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:14]wFMCommunicate OK [09:57:14]SAM_PROTO_GetFieldsCounters done [09:57:14]requested_item shift.num is exist - process it [09:57:14]requested_item shift.opened is exist - process it [09:57:14]req_shift_opened [09:57:14]FM_GetShiftState [09:57:14]SAM_PROTO_GetShiftState [09:57:14]wFMCommunicate request_size=4 [09:57:14]MH_SAM_APDU [09:57:14]CAPDU: 80 13 01 00 [09:57:14]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:14]Read from MH i2c: E2 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 73 [09:57:14]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:57:14]wFMCommunicate OK [09:57:14]SAM_PROTO_GetShiftState done [09:57:14]FM_GetShiftState done [09:57:14]req_shift_opened done [09:57:14]requested_item shift.open_date is exist - process it [09:57:14]req_shift_open_date [09:57:14]req_shift_open_date done [09:57:14]produce_requested_data done [09:57:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117991,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:57:14]process_action_free close_receipt [09:57:14]json_value_free [09:57:14]json_value_free done [09:57:14]process_json_proto returns [09:57:14]Send response to host [09:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117991,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:57:14]free response buf [09:57:14]execute_script done [09:57:14]execute_script returns [09:57:14]free content buf [09:57:14]Sock 7.Close socket [09:57:14]Sock 7.Thread stoped [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:44]accept exits with 9 [09:59:44]New connection [09:59:44]New thread 3067559268 created [09:59:44]Thread 3067415908 joined [09:59:44]Waiting for new connection... [09:59:44] Sock 9.Parse request [09:59:44]Sock 9.Check first char [09:59:44]Sock 9.First char is OK [09:59:44]request: POST /json_proto HTTP/1.0 [09:59:44]Method: POST [09:59:44]URL: /json_proto [09:59:44]Method is POST - this is cgi request [09:59:44]url: /json_proto [09:59:44]query_string will be loaded in cgi processing [09:59:44]execute_cgi json_proto POST (null) [09:59:44]execute_cgi path=json_proto method=POST [09:59:44]POST find Content-Length [09:59:44]Host: 172.17.96.67:8080 [09:59:44]Content-Length: 677 [09:59:44]Content-Type: application/json [09:59:44] [09:59:44]POST finish read [09:59:44]Found Content-Length = 677 [09:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:44]execute_script... [09:59:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:44]POST & json_proto [09:59:44]process_json_proto [09:59:44]json parsed OK: [09:59:44]protocol is kg_v1.0 [09:59:44]action value=close_receipt [09:59:44]process_action close_receipt [09:59:44]cmd_close_receipt [09:59:44]MH_GetDate [09:59:44]Write to MH i2c: F0 00 00 18 07 0E [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: F0 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: F0 09 00 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: F0 09 00 18 07 00 91 03 22 67 47 6C 1F 67 6D [09:59:44]GetLastDocTimeStamp 1730282231 [09:59:44]current date 1730282385 [09:59:44]FM_GetShiftState [09:59:44]SAM_PROTO_GetShiftState [09:59:44]wFMCommunicate request_size=4 [09:59:44]MH_SAM_APDU [09:59:44]CAPDU: 80 13 01 00 [09:59:44]Write to MH i2c: E2 08 00 19 07 80 13 01 00 00 00 00 00 9D [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:44]Read from MH i2c: E2 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: E2 0E 00 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: E2 0E 00 19 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 75 [09:59:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:59:44]wFMCommunicate OK [09:59:44]SAM_PROTO_GetShiftState done [09:59:44]FM_GetShiftState done [09:59:44]opened in 1730246605 [09:59:44]opened+sec_in_day 1730333005 [09:59:44]quantity*price = 50041 [09:59:44]sum+1 = 50042 [09:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 52 30.10.2024 09:59 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117992 ФПД: 44095398065760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095945&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117992&fm=44095398065760&tin=02508201610067®Number=0000000000091782&sum=50000 [09:59:46]StoreToDocumentArchive [09:59:46]shift 545 fd 117992 [09:59:46]save to /storage/0545/doc_00117992 [09:59:46]save last doc name /storage/0545/doc_00117992 to /storage/kkm_last_doc_name [09:59:46]save OK [09:59:46]Clear old archive folders... [09:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:46]tlvbuf is 0065C200 [09:59:46]SAM_PROTO_ClearQueue [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 09 00 00 [09:59:46]Write to MH i2c: E2 08 00 26 07 80 09 00 00 00 00 00 00 9F [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [09:59:46]RAPDU: 90 00 [09:59:46]wFMCommunicate OK [09:59:46]SAM_PROTO_ClearQueue done [09:59:46]KKMCreateOFDPacket [09:59:46]OFDProtocolAddRootSTLVToBuf [09:59:46]FM_MakeSignedData [09:59:46]FM_MakeSignedData [09:59:46]SAM_PROTO_SignData [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 0D 01 02 [09:59:46]Write to MH i2c: E2 08 00 27 07 80 0D 01 02 00 00 00 00 A7 [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [09:59:46]RAPDU: 90 00 [09:59:46]wFMCommunicate OK [09:59:46]wFMCommunicate request_size=255 [09:59:46]MH_SAM_APDU [09: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 32 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 34 00 00 00 F4 03 04 00 91 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CC 01 00 35 04 06 00 28 [09:59:46]Write to MH i2c: E2 02 01 28 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 34 00 00 00 F4 03 04 00 91 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CC 01 00 35 04 06 00 28 00 00 8A [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [09:59:46]RAPDU: 90 00 [09:59:46]wFMCommunicate OK [09:59:46]wFMCommunicate request_size=10 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 0D 02 02 05 1A C2 89 B6 60 [09:59:46]Write to MH i2c: E2 0D 00 29 07 80 0D 02 02 05 00 1A C2 89 B6 60 00 00 2F [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [09:59:46]RAPDU: 90 00 [09:59:46]wFMCommunicate OK [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 0D 03 02 [09:59:46]Write to MH i2c: E2 08 00 2A 07 80 0D 03 02 00 00 00 00 AC [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0B 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0B 00 2A 07 00 6D FA 17 CC 40 5C 94 8E 90 00 B5 [09:59:46]RAPDU: 6D FA 17 CC 40 5C 94 8E 90 00 [09:59:46]wFMCommunicate OK [09:59:46]SAM_PROTO_SignData done [09:59:46]FM_MakeSignedData done [09:59:46]CreateOFDProtocolMessage [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 11 00 00 [09:59:46]Write to MH i2c: E2 08 00 2B 07 80 11 00 00 00 00 00 00 AC [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 17 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 17 00 2B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 03 [09:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:59:46]wFMCommunicate OK [09:59:46]CreateOFDProtocolMessage done [09:59:46]OFDSenderStorePacket 117992 [09:59:46]StoreOFDPacket docnum=117992 [09:59:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FF E5 07 01 C9 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 34 00 00 00 F4 03 04 00 91 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CC 01 00 35 04 06 00 28 1A C2 89 B6 60 6D FA 17 CC 40 5C 94 8E [09:59:46]CheckFolder [09:59:46]dirname=/storage/ofd_packets [09:59:46]CheckFolder done [09:59:46]ProducePacketName [09:59:46]name=ofd_packets/00117992 [09:59:46]NVStorageSaveData ofd_packets/00117992 [09:59:46]File name is /storage/ofd_packets/00117992 [09:59:46]Write 301 bytes [09:59:46]NVStorageSaveData done [09:59:46]OFDSenderStorePacket done [09:59:46]KKMCreateOFDPacket done [09:59:46]NVStorageSaveData kkm_last_timestamp [09:59:46]File name is /storage/kkm_last_timestamp [09:59:46]Write 4 bytes [09:59:46]NVStorageSaveData done [09:59:46]ExternCall_PrintAddStr [09:59:46]wPrintStart [09:59:46]Write to MH i2c: 01 00 00 2C 07 33 [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: 01 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: 01 07 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 FF 0F 48 [09:59:46]RasterBufferAndPrint [09:59:46]line Счет N : (1)245785 [09:59:46]line ИНН: 02508201610067 [09:59:46]line Контрольно-Кассовый Чек [09:59:46]line ПРОДАЖА [09:59:46]line ТРК (МРК, ГНК) : 11 [09:59:46]line Товар: 2710124130 [09:59:46]line Аи-92-К-2 [09:59:46]line 7.480 * 66.90 [09:59:46]line = 500.41 [09:59:46]line НДС 12% НСП 1% [09:59:46]line > о реализуемом товаре [09:59:46]line ОКРУГЛЕНИЕ: -0.41 [09:59:46]line ИТОГО: 500.00 [09:59:46]line Внесено: 500.00 [09:59:46]line СДАЧА: 0.00 [09:59:46]line НСП 1% : 4.43 [09:59:46]line НДС 12% : 53.14 [09:59:46]line Наличными: 500.00 [09:59:46]line Безнал.: 0.00 [09:59:46]line Место: АЗС № 173 "Партнер Нефть" [09:59:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [09:59:46]line СНО: Общий режим [09:59:46]line Чек 52 30.10.2024 09:59 [09:59:46]line Смена: 545 ФФД: 1.0 [09:59:46]line ЗНМ: 0300000115 [09:59:46]line РНМ: 0000000000091782 [09:59:46]line Версия ККМ: 001 [09:59:46]line ФМ: 0000000000871767 [09:59:46]line ФД: 117992 [09:59:46]line ФПД: 44095398065760 [09:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095945&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117992&fm=44095398065760&tin=02508201610067®Number=0000000000091782&sum=50000 [09:59:46]written 0, free lines is 4095 [09:59:46]OFD Sender: Processing packet 117992 [packets to send 77, broken 76] [09:59:46]ProducePacketName [09:59:46]name=ofd_packets/00117992 [09:59:46]OFD Sender: To server: pG, [09:59:46]CommunicateWithHost lk.salyk.kg:30040 [09:59:46]ConnectInit lk.salyk.kg [09:59:46]Connected sock=10 [09:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FF E5 07 01 C9 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 34 00 00 00 F4 03 04 00 91 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CC 01 00 35 04 06 00 28 1A C2 89 B6 60 6D FA 17 CC 40 5C 94 8E [09:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 33 2A 47 00 C2 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E8 CC 01 00 F4 03 04 00 48 AF 21 67 B6 04 01 00 00 AC D3 68 CE AE 61 AA 7F [09:59:46]CommunicateWithHost err = 0 [09:59:46]CheckOFDResponse [09:59:46]1017 (14) - 77093643461234 [09:59:46]1041 (16) - 0000000000871767 [09:59:46]1040 (4) - 117992 [09:59:46]1012 (4) - 30.10.2024 04:00 [09:59:46]1206 (1) - 0 [09:59:46]OFD Sender: Remove packet 117992 [09:59:46]ProducePacketName [09:59:46]name=ofd_packets/00117992 [09:59:46]NVStorageDeleteData [09:59:47]Write to MH i2c: 01 00 00 56 07 5D [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: 01 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: 01 07 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 B1 0C 21 [09:59:47]RasterBufferAndPrint [09:59:47]line [09:59:47]line [09:59:47]line [09:59:47]line [09:59:47]line [09:59:47]written 0, free lines is 3253 [09:59:47]MH_Cut [09:59:47]Write to MH i2c: D1 01 00 5D 07 01 36 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: D1 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: D1 01 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: D1 01 00 5D 07 00 35 [09:59:47]Write to MH i2c: 01 00 00 5E 07 65 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]OFD Sender: No OFD packet to send [09:59:47]*** Cut start [09:59:47]*** Purtial cut [09:59:47]*** Stage 1: CUTSNS_PIN = 1 [09:59:48]Read from MH i2c: 01 [09:59:48]MH_I2C_Read... [09:59:48]*** Stop cut motor [09:59:48]*** Cut end [09:59:48]Read from MH i2c: 01 07 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 FF 0F 7A [09:59:48]process_action close_receipt done [09:59:48]requested_data is exist [09:59:48]produce_requested_data [09:59:48]requested_item fm.sn is exist - process it [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 11 00 00 [09:59:48]Write to MH i2c: E2 08 00 5F 07 80 11 00 00 00 00 00 00 E0 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 5F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 37 [09:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [09:59:48]wFMCommunicate OK [09:59:48]requested_item fd.num is exist - process it [09:59:48]SAM_PROTO_GetFieldsCounters [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 13 00 00 [09:59:48]Write to MH i2c: E2 08 00 60 07 80 13 00 00 00 00 00 00 E3 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 62 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 62 00 60 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:48]wFMCommunicate OK [09:59:48]SAM_PROTO_GetFieldsCounters done [09:59:48]requested_item shift.num is exist - process it [09:59:48]requested_item shift.opened is exist - process it [09:59:48]req_shift_opened [09:59:48]FM_GetShiftState [09:59:48]SAM_PROTO_GetShiftState [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 13 01 00 [09:59:48]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 0E 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BD [09:59:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [09:59:48]wFMCommunicate OK [09:59:48]SAM_PROTO_GetShiftState done [09:59:48]FM_GetShiftState done [09:59:48]req_shift_opened done [09:59:48]requested_item shift.open_date is exist - process it [09:59:48]req_shift_open_date [09:59:48]req_shift_open_date done [09:59:48]produce_requested_data done [09:59:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117992,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [09:59:48]process_action_free close_receipt [09:59:48]json_value_free [09:59:48]json_value_free done [09:59:48]process_json_proto returns [09:59:48]Send response to host [09:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117992,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [09:59:48]free response buf [09:59:48]execute_script done [09:59:48]execute_script returns [09:59:48]free content buf [09:59:48]Sock 9.Close socket [09:59:48]Sock 9.Thread stoped [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:31]accept exits with 7 [10:00:31]New connection [10:00:31]New thread 3067415908 created [10:00:31]Thread 3067559268 joined [10:00:31]Waiting for new connection... [10:00:31] Sock 7.Parse request [10:00:31]Sock 7.Check first char [10:00:31]Sock 7.First char is OK [10:00:31]request: POST /json_proto HTTP/1.0 [10:00:31]Method: POST [10:00:31]URL: /json_proto [10:00:31]Method is POST - this is cgi request [10:00:31]url: /json_proto [10:00:31]query_string will be loaded in cgi processing [10:00:31]execute_cgi json_proto POST (null) [10:00:31]execute_cgi path=json_proto method=POST [10:00:31]POST find Content-Length [10:00:31]Host: 172.17.96.67:8080 [10:00:31]Content-Length: 677 [10:00:31]Content-Type: application/json [10:00:31] [10:00:31]POST finish read [10:00:31]Found Content-Length = 677 [10:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:31]execute_script... [10:00: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)245786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:31]POST & json_proto [10:00:31]process_json_proto [10:00:31]json parsed OK: [10:00:31]protocol is kg_v1.0 [10:00:31]action value=close_receipt [10:00:31]process_action close_receipt [10:00:31]cmd_close_receipt [10:00:31]MH_GetDate [10:00:31]Write to MH i2c: F0 00 00 62 07 58 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: F0 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: F0 09 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: F0 09 00 62 07 00 BF 03 22 67 47 6C 1F 67 E5 [10:00:31]GetLastDocTimeStamp 1730282385 [10:00:31]current date 1730282431 [10:00:31]FM_GetShiftState [10:00:31]SAM_PROTO_GetShiftState [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 13 01 00 [10:00:31]Write to MH i2c: E2 08 00 63 07 80 13 01 00 00 00 00 00 E7 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 63 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BF [10:00:31]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:00:31]wFMCommunicate OK [10:00:31]SAM_PROTO_GetShiftState done [10:00:31]FM_GetShiftState done [10:00:31]opened in 1730246605 [10:00:31]opened+sec_in_day 1730333005 [10:00:31]quantity*price = 30038 [10:00:31]sum+1 = 30039 [10:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 53 30.10.2024 10:00 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117993 ФПД: 106536798391068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100031&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117993&fm=106536798391068&tin=02508201610067®Number=0000000000091782&sum=30000 [10:00:32]StoreToDocumentArchive [10:00:32]shift 545 fd 117993 [10:00:32]save to /storage/0545/doc_00117993 [10:00:32]save last doc name /storage/0545/doc_00117993 to /storage/kkm_last_doc_name [10:00:32]save OK [10:00:32]Clear old archive folders... [10:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:32]tlvbuf is 00674790 [10:00:32]SAM_PROTO_ClearQueue [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 09 00 00 [10:00:32]Write to MH i2c: E2 08 00 70 07 80 09 00 00 00 00 00 00 E9 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_ClearQueue done [10:00:32]KKMCreateOFDPacket [10:00:32]OFDProtocolAddRootSTLVToBuf [10:00:32]FM_MakeSignedData [10:00:32]FM_MakeSignedData [10:00:32]SAM_PROTO_SignData [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 01 02 [10:00:32]Write to MH i2c: E2 08 00 71 07 80 0D 01 02 00 00 00 00 F1 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]wFMCommunicate request_size=255 [10:00:32]MH_SAM_APDU [10:00: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 32 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 35 00 00 00 F4 03 04 00 BF 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CC 01 00 35 04 06 00 60 [10:00:32]Write to MH i2c: E2 02 01 72 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 BF 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CC 01 00 35 04 06 00 60 00 00 30 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]OFD Sender: No OFD packet to send [10:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]wFMCommunicate request_size=10 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 02 02 05 E5 08 06 0B 1C [10:00:32]Write to MH i2c: E2 0D 00 73 07 80 0D 02 02 05 00 E5 08 06 0B 1C 00 00 18 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 03 02 [10:00:32]Write to MH i2c: E2 08 00 74 07 80 0D 03 02 00 00 00 00 F6 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0B 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0B 00 74 07 00 40 D3 E6 C9 21 B6 C1 0A 90 00 5B [10:00:32]RAPDU: 40 D3 E6 C9 21 B6 C1 0A 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_SignData done [10:00:32]FM_MakeSignedData done [10:00:32]CreateOFDProtocolMessage [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 11 00 00 [10:00:32]Write to MH i2c: E2 08 00 75 07 80 11 00 00 00 00 00 00 F6 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 17 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 17 00 75 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4D [10:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:00:32]wFMCommunicate OK [10:00:32]CreateOFDProtocolMessage done [10:00:32]OFDSenderStorePacket 117993 [10:00:32]StoreOFDPacket docnum=117993 [10:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CA E0 07 01 A9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 BF 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CC 01 00 35 04 06 00 60 E5 08 06 0B 1C 40 D3 E6 C9 21 B6 C1 0A [10:00:32]CheckFolder [10:00:32]dirname=/storage/ofd_packets [10:00:32]CheckFolder done [10:00:32]ProducePacketName [10:00:32]name=ofd_packets/00117993 [10:00:32]NVStorageSaveData ofd_packets/00117993 [10:00:32]File name is /storage/ofd_packets/00117993 [10:00:32]Write 301 bytes [10:00:32]NVStorageSaveData done [10:00:32]OFDSenderStorePacket done [10:00:32]KKMCreateOFDPacket done [10:00:32]NVStorageSaveData kkm_last_timestamp [10:00:32]File name is /storage/kkm_last_timestamp [10:00:32]Write 4 bytes [10:00:32]NVStorageSaveData done [10:00:32]ExternCall_PrintAddStr [10:00:32]wPrintStart [10:00:32]Write to MH i2c: 01 00 00 76 07 7D [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 07 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 07 00 76 07 00 00 00 00 00 FF 0F 92 [10:00:32]RasterBufferAndPrint [10:00:32]line Счет N : (1)245786 [10:00:32]line ИНН: 02508201610067 [10:00:32]line Контрольно-Кассовый Чек [10:00:32]line ПРОДАЖА [10:00:32]line ТРК (МРК, ГНК) : 21 [10:00:32]line Товар: 2710124130 [10:00:32]line Аи-92-К-2 [10:00:32]line 4.490 * 66.90 [10:00:32]line = 300.38 [10:00:32]line НДС 12% НСП 1% [10:00:32]line > о реализуемом товаре [10:00:32]line ОКРУГЛЕНИЕ: -0.38 [10:00:32]line ИТОГО: 300.00 [10:00:32]line Внесено: 300.00 [10:00:32]line СДАЧА: 0.00 [10:00:32]line НСП 1% : 2.66 [10:00:32]line НДС 12% : 31.90 [10:00:32]line Наличными: 300.00 [10:00:32]line Безнал.: 0.00 [10:00:32]line Место: АЗС № 173 "Партнер Нефть" [10:00:32]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:00:32]line СНО: Общий режим [10:00:32]line Чек 53 30.10.2024 10:00 [10:00:32]line Смена: 545 ФФД: 1.0 [10:00:32]line ЗНМ: 0300000115 [10:00:32]line РНМ: 0000000000091782 [10:00:32]line Версия ККМ: 001 [10:00:32]line ФМ: 0000000000871767 [10:00:32]line ФД: 117993 [10:00:32]line ФПД: 106536798391068 [10:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100031&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117993&fm=106536798391068&tin=02508201610067®Number=0000000000091782&sum=30000 [10:00:33]OFD Sender: Processing packet 117993 [packets to send 77, broken 76] [10:00:33]ProducePacketName [10:00:33]name=ofd_packets/00117993 [10:00:33]OFD Sender: To server: pG, [10:00:33]CommunicateWithHost lk.salyk.kg:30040 [10:00:33]ConnectInit lk.salyk.kg [10:00:33]written 0, free lines is 4095 [10:00:33]Connected sock=10 [10:00: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 36 37 0F 01 00 00 CA E0 07 01 A9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 BF 03 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 E9 CC 01 00 35 04 06 00 60 E5 08 06 0B 1C 40 D3 E6 C9 21 B6 C1 0A [10:00: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 36 37 4F 00 00 00 61 77 47 00 1A 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 36 37 10 04 04 00 E9 CC 01 00 F4 03 04 00 77 AF 21 67 B6 04 01 00 00 46 D0 E9 B9 75 55 C8 2F [10:00:33]CommunicateWithHost err = 0 [10:00:33]CheckOFDResponse [10:00:33]1017 (14) - 77093643461234 [10:00:33]1041 (16) - 0000000000871767 [10:00:33]1040 (4) - 117993 [10:00:33]1012 (4) - 30.10.2024 04:00 [10:00:33]1206 (1) - 0 [10:00:33]OFD Sender: Remove packet 117993 [10:00:33]ProducePacketName [10:00:33]name=ofd_packets/00117993 [10:00:33]NVStorageDeleteData [10:00:33]Write to MH i2c: 01 00 00 A0 07 A7 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 07 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 07 00 A0 07 00 00 00 00 00 AA 0C 64 [10:00:33]RasterBufferAndPrint [10:00:33]line [10:00:33]line [10:00:33]line [10:00:33]line [10:00:33]line [10:00:33]written 0, free lines is 3246 [10:00:33]MH_Cut [10:00:33]Write to MH i2c: D1 01 00 A7 07 01 80 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: D1 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: D1 01 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: D1 01 00 A7 07 00 7F [10:00:33]Write to MH i2c: 01 00 00 A8 07 AF [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]OFD Sender: No OFD packet to send [10:00:34]*** Cut start [10:00:34]*** Purtial cut [10:00:34]*** Stage 1: CUTSNS_PIN = 1 [10:00:34]Read from MH i2c: 01 [10:00:34]MH_I2C_Read... [10:00:34]*** Stop cut motor [10:00:34]*** Cut end [10:00:34]Read from MH i2c: 01 07 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 FF 0F C4 [10:00:34]process_action close_receipt done [10:00:34]requested_data is exist [10:00:34]produce_requested_data [10:00:34]requested_item fm.sn is exist - process it [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 11 00 00 [10:00:34]Write to MH i2c: E2 08 00 A9 07 80 11 00 00 00 00 00 00 2A [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 17 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 17 00 A9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 81 [10:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:00:34]wFMCommunicate OK [10:00:34]requested_item fd.num is exist - process it [10:00:34]SAM_PROTO_GetFieldsCounters [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 13 00 00 [10:00:34]Write to MH i2c: E2 08 00 AA 07 80 13 00 00 00 00 00 00 2D [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 62 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 62 00 AA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [10: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 E9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:34]wFMCommunicate OK [10:00:34]SAM_PROTO_GetFieldsCounters done [10:00:34]requested_item shift.num is exist - process it [10:00:34]requested_item shift.opened is exist - process it [10:00:34]req_shift_opened [10:00:34]FM_GetShiftState [10:00:34]SAM_PROTO_GetShiftState [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 13 01 00 [10:00:34]Write to MH i2c: E2 08 00 AB 07 80 13 01 00 00 00 00 00 2F [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 0E 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 0E 00 AB 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 07 [10:00:34]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:00:34]wFMCommunicate OK [10:00:34]SAM_PROTO_GetShiftState done [10:00:34]FM_GetShiftState done [10:00:34]req_shift_opened done [10:00:34]requested_item shift.open_date is exist - process it [10:00:34]req_shift_open_date [10:00:34]req_shift_open_date done [10:00:34]produce_requested_data done [10:00:34]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117993,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:00:34]process_action_free close_receipt [10:00:34]json_value_free [10:00:34]json_value_free done [10:00:34]process_json_proto returns [10:00:34]Send response to host [10:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117993,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:00:34]free response buf [10:00:34]execute_script done [10:00:34]execute_script returns [10:00:34]free content buf [10:00:34]Sock 7.Close socket [10:00:34]Sock 7.Thread stoped [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:46]accept exits with 9 [10:01:46]New connection [10:01:46]New thread 3067559268 created [10:01:46]Thread 3067415908 joined [10:01:46]Waiting for new connection... [10:01:46] Sock 9.Parse request [10:01:46]Sock 9.Check first char [10:01:46]Sock 9.First char is OK [10:01:46]request: POST /json_proto HTTP/1.0 [10:01:46]Method: POST [10:01:46]URL: /json_proto [10:01:46]Method is POST - this is cgi request [10:01:46]url: /json_proto [10:01:46]query_string will be loaded in cgi processing [10:01:46]execute_cgi json_proto POST (null) [10:01:46]execute_cgi path=json_proto method=POST [10:01:46]POST find Content-Length [10:01:46]Host: 172.17.96.67:8080 [10:01:46]Content-Length: 682 [10:01:46]Content-Type: application/json [10:01:46] [10:01:46]POST finish read [10:01:46]Found Content-Length = 682 [10:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:46]execute_script... [10:01: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)245787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:46]POST & json_proto [10:01:46]process_json_proto [10:01:46]json parsed OK: [10:01:46]protocol is kg_v1.0 [10:01:46]action value=close_receipt [10:01:46]process_action close_receipt [10:01:46]cmd_close_receipt [10:01:46]MH_GetDate [10:01:46]Write to MH i2c: F0 00 00 AC 07 A2 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: F0 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: F0 09 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: F0 09 00 AC 07 00 0A 04 22 67 47 6C 1F 67 7B [10:01:46]GetLastDocTimeStamp 1730282431 [10:01:46]current date 1730282506 [10:01:46]FM_GetShiftState [10:01:46]SAM_PROTO_GetShiftState [10:01:46]wFMCommunicate request_size=4 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 13 01 00 [10:01:46]Write to MH i2c: E2 08 00 AD 07 80 13 01 00 00 00 00 00 31 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0E 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0E 00 AD 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 09 [10:01:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:01:46]wFMCommunicate OK [10:01:46]SAM_PROTO_GetShiftState done [10:01:46]FM_GetShiftState done [10:01:46]opened in 1730246605 [10:01:46]opened+sec_in_day 1730333005 [10:01:46]quantity*price = 100015 [10:01:46]sum+1 = 100017 [10:01:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 54 30.10.2024 10:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117994 ФПД: 123782237134881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100146&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117994&fm=123782237134881&tin=02508201610067®Number=0000000000091782&sum=100000 [10:01:47]StoreToDocumentArchive [10:01:47]shift 545 fd 117994 [10:01:47]save to /storage/0545/doc_00117994 [10:01:47]save last doc name /storage/0545/doc_00117994 to /storage/kkm_last_doc_name [10:01:47]save OK [10:01:47]Clear old archive folders... [10:01:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:47]tlvbuf is 0062C140 [10:01:47]SAM_PROTO_ClearQueue [10:01:47]wFMCommunicate request_size=4 [10:01:47]MH_SAM_APDU [10:01:47]CAPDU: 80 09 00 00 [10:01:47]Write to MH i2c: E2 08 00 BA 07 80 09 00 00 00 00 00 00 33 [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:47]Read from MH i2c: E2 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 03 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [10:01:47]RAPDU: 90 00 [10:01:47]wFMCommunicate OK [10:01:47]SAM_PROTO_ClearQueue done [10:01:47]KKMCreateOFDPacket [10:01:47]OFDProtocolAddRootSTLVToBuf [10:01:47]FM_MakeSignedData [10:01:47]FM_MakeSignedData [10:01:47]SAM_PROTO_SignData [10:01:47]wFMCommunicate request_size=4 [10:01:47]MH_SAM_APDU [10:01:47]CAPDU: 80 0D 01 02 [10:01:47]Write to MH i2c: E2 08 00 BB 07 80 0D 01 02 00 00 00 00 3B [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:47]Read from MH i2c: E2 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 03 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [10:01:47]RAPDU: 90 00 [10:01:47]wFMCommunicate OK [10:01:47]wFMCommunicate request_size=255 [10:01:47]MH_SAM_APDU [10:01:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 0A 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CC 01 00 35 04 06 00 70 [10:01:47]Write to MH i2c: E2 02 01 BC 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 36 00 00 00 F4 03 04 00 0A 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CC 01 00 35 04 06 00 70 00 00 DE [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]wFMCommunicate request_size=10 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 02 02 05 94 4C 46 20 21 [10:01:48]Write to MH i2c: E2 0D 00 BD 07 80 0D 02 02 05 00 94 4C 46 20 21 00 00 AF [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 03 02 [10:01:48]Write to MH i2c: E2 08 00 BE 07 80 0D 03 02 00 00 00 00 40 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 0B 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 0B 00 BE 07 00 AB 3D 51 EE DA B1 92 3C 90 00 C1 [10:01:48]RAPDU: AB 3D 51 EE DA B1 92 3C 90 00 [10:01:48]wFMCommunicate OK [10:01:48]SAM_PROTO_SignData done [10:01:48]FM_MakeSignedData done [10:01:48]CreateOFDProtocolMessage [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 11 00 00 [10:01:48]Write to MH i2c: E2 08 00 BF 07 80 11 00 00 00 00 00 00 40 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 17 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 17 00 BF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 97 [10:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:01:48]wFMCommunicate OK [10:01:48]CreateOFDProtocolMessage done [10:01:48]OFDSenderStorePacket 117994 [10:01:48]StoreOFDPacket docnum=117994 [10:01:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 24 68 07 01 97 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 0A 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CC 01 00 35 04 06 00 70 94 4C 46 20 21 AB 3D 51 EE DA B1 92 3C [10:01:48]CheckFolder [10:01:48]dirname=/storage/ofd_packets [10:01:48]CheckFolder done [10:01:48]ProducePacketName [10:01:48]name=ofd_packets/00117994 [10:01:48]NVStorageSaveData ofd_packets/00117994 [10:01:48]File name is /storage/ofd_packets/00117994 [10:01:48]Write 301 bytes [10:01:48]NVStorageSaveData done [10:01:48]OFDSenderStorePacket done [10:01:48]KKMCreateOFDPacket done [10:01:48]NVStorageSaveData kkm_last_timestamp [10:01:48]File name is /storage/kkm_last_timestamp [10:01:48]Write 4 bytes [10:01:48]NVStorageSaveData done [10:01:48]ExternCall_PrintAddStr [10:01:48]wPrintStart [10:01:48]Write to MH i2c: 01 00 00 C0 07 C7 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: 01 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: 01 07 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: 01 07 00 C0 07 00 00 00 00 00 FF 0F DC [10:01:48]RasterBufferAndPrint [10:01:48]line Счет N : (1)245787 [10:01:48]line ИНН: 02508201610067 [10:01:48]line Контрольно-Кассовый Чек [10:01:48]line ПРОДАЖА [10:01:48]line ТРК (МРК, ГНК) : 11 [10:01:48]line Товар: 2710124130 [10:01:48]line Аи-92-К-2 [10:01:48]line 14.950 * 66.90 [10:01:48]line = 1000.16 [10:01:48]line НДС 12% НСП 1% [10:01:48]line > о реализуемом товаре [10:01:48]line ОКРУГЛЕНИЕ: -0.16 [10:01:48]line ИТОГО: 1000.00 [10:01:48]line Внесено: 1000.00 [10:01:48]line СДАЧА: 0.00 [10:01:48]line НСП 1% : 8.85 [10:01:48]line НДС 12% : 106.21 [10:01:48]line Наличными: 1000.00 [10:01:48]line Безнал.: 0.00 [10:01:48]line Место: АЗС № 173 "Партнер Нефть" [10:01:48]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:01:48]line СНО: Общий режим [10:01:48]line Чек 54 30.10.2024 10:01 [10:01:48]line Смена: 545 ФФД: 1.0 [10:01:48]line ЗНМ: 0300000115 [10:01:48]line РНМ: 0000000000091782 [10:01:48]line Версия ККМ: 001 [10:01:48]line ФМ: 0000000000871767 [10:01:48]line ФД: 117994 [10:01:48]line ФПД: 123782237134881 [10:01:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100146&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117994&fm=123782237134881&tin=02508201610067®Number=0000000000091782&sum=100000 [10:01:48]OFD Sender: Processing packet 117994 [packets to send 77, broken 76] [10:01:48]ProducePacketName [10:01:48]name=ofd_packets/00117994 [10:01:48]OFD Sender: To server: pG, [10:01:48]CommunicateWithHost lk.salyk.kg:30040 [10:01:48]ConnectInit lk.salyk.kg [10:01:48]written 0, free lines is 4095 [10:01:48]Connected sock=10 [10:01: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 36 37 0F 01 00 00 24 68 07 01 97 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 0A 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EA CC 01 00 35 04 06 00 70 94 4C 46 20 21 AB 3D 51 EE DA B1 92 3C [10:01: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 36 37 4F 00 00 00 AF 6B 47 00 6D 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 36 37 10 04 04 00 EA CC 01 00 F4 03 04 00 C2 AF 21 67 B6 04 01 00 00 57 C2 B9 E6 FA 87 46 13 [10:01:49]CommunicateWithHost err = 0 [10:01:49]CheckOFDResponse [10:01:49]1017 (14) - 77093643461234 [10:01:49]1041 (16) - 0000000000871767 [10:01:49]1040 (4) - 117994 [10:01:49]1012 (4) - 30.10.2024 04:02 [10:01:49]1206 (1) - 0 [10:01:49]OFD Sender: Remove packet 117994 [10:01:49]ProducePacketName [10:01:49]name=ofd_packets/00117994 [10:01:49]NVStorageDeleteData [10:01:49]Write to MH i2c: 01 00 00 EA 07 F1 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 AD 0C B1 [10:01:49]RasterBufferAndPrint [10:01:49]line [10:01:49]line [10:01:49]line [10:01:49]line [10:01:49]line [10:01:49]written 0, free lines is 3248 [10:01:49]MH_Cut [10:01:49]Write to MH i2c: D1 01 00 F1 07 01 CA [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: D1 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: D1 01 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: D1 01 00 F1 07 00 C9 [10:01:49]Write to MH i2c: 01 00 00 F2 07 F9 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]OFD Sender: No OFD packet to send [10:01:50]*** Cut start [10:01:50]*** Purtial cut [10:01:50]*** Stage 1: CUTSNS_PIN = 1 [10:01:50]Read from MH i2c: 01 [10:01:50]MH_I2C_Read... [10:01:50]*** Stop cut motor [10:01:50]*** Cut end [10:01:50]Read from MH i2c: 01 07 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 F2 07 00 00 00 00 00 FF 0F 0E [10:01:50]process_action close_receipt done [10:01:50]requested_data is exist [10:01:50]produce_requested_data [10:01:50]requested_item fm.sn is exist - process it [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 11 00 00 [10:01:50]Write to MH i2c: E2 08 00 F3 07 80 11 00 00 00 00 00 00 74 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:50]Read from MH i2c: E2 17 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 17 00 F3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CB [10:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:01:50]wFMCommunicate OK [10:01:50]requested_item fd.num is exist - process it [10:01:50]SAM_PROTO_GetFieldsCounters [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 13 00 00 [10:01:50]Write to MH i2c: E2 08 00 F4 07 80 13 00 00 00 00 00 00 77 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 62 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 62 00 F4 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [10:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:50]wFMCommunicate OK [10:01:50]SAM_PROTO_GetFieldsCounters done [10:01:50]requested_item shift.num is exist - process it [10:01:50]requested_item shift.opened is exist - process it [10:01:50]req_shift_opened [10:01:50]FM_GetShiftState [10:01:50]SAM_PROTO_GetShiftState [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 13 01 00 [10:01:50]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 0E 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 51 [10:01:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:01:50]wFMCommunicate OK [10:01:50]SAM_PROTO_GetShiftState done [10:01:50]FM_GetShiftState done [10:01:50]req_shift_opened done [10:01:50]requested_item shift.open_date is exist - process it [10:01:50]req_shift_open_date [10:01:50]req_shift_open_date done [10:01:50]produce_requested_data done [10:01:50]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117994,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:01:50]process_action_free close_receipt [10:01:50]json_value_free [10:01:50]json_value_free done [10:01:50]process_json_proto returns [10:01:50]Send response to host [10:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117994,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:01:50]free response buf [10:01:50]execute_script done [10:01:50]execute_script returns [10:01:50]free content buf [10:01:50]Sock 9.Close socket [10:01:50]Sock 9.Thread stoped [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:24]accept exits with 7 [10:05:24]New connection [10:05:24]New thread 3067415908 created [10:05:24]Thread 3067559268 joined [10:05:24]Waiting for new connection... [10:05:24] Sock 7.Parse request [10:05:24]Sock 7.Check first char [10:05:24]Sock 7.First char is OK [10:05:24]request: POST /json_proto HTTP/1.0 [10:05:24]Method: POST [10:05:24]URL: /json_proto [10:05:24]Method is POST - this is cgi request [10:05:24]url: /json_proto [10:05:24]query_string will be loaded in cgi processing [10:05:24]execute_cgi json_proto POST (null) [10:05:24]execute_cgi path=json_proto method=POST [10:05:24]POST find Content-Length [10:05:24]Host: 172.17.96.67:8080 [10:05:24]Content-Length: 677 [10:05:24]Content-Type: application/json [10:05:24] [10:05:24]POST finish read [10:05:24]Found Content-Length = 677 [10:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:05:24]execute_script... [10:05:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:05:24]POST & json_proto [10:05:24]process_json_proto [10:05:24]json parsed OK: [10:05:24]protocol is kg_v1.0 [10:05:24]action value=close_receipt [10:05:24]process_action close_receipt [10:05:24]cmd_close_receipt [10:05:24]MH_GetDate [10:05:24]Write to MH i2c: F0 00 00 F6 07 EC [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 09 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 09 00 F6 07 00 E5 04 22 67 47 6C 1F 67 A0 [10:05:24]GetLastDocTimeStamp 1730282506 [10:05:24]current date 1730282725 [10:05:24]FM_GetShiftState [10:05:24]SAM_PROTO_GetShiftState [10:05:24]wFMCommunicate request_size=4 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 13 01 00 [10:05:24]Write to MH i2c: E2 08 00 F7 07 80 13 01 00 00 00 00 00 7B [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 0E 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 0E 00 F7 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 53 [10:05:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:05:24]wFMCommunicate OK [10:05:24]SAM_PROTO_GetShiftState done [10:05:24]FM_GetShiftState done [10:05:24]opened in 1730246605 [10:05:24]opened+sec_in_day 1730333005 [10:05:24]quantity*price = 20003 [10:05:24]sum+1 = 20004 [10:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 55 30.10.2024 10:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117995 ФПД: 161524333116604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100525&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117995&fm=161524333116604&tin=02508201610067®Number=0000000000091782&sum=20000 [10:05:26]StoreToDocumentArchive [10:05:26]shift 545 fd 117995 [10:05:26]save to /storage/0545/doc_00117995 [10:05:26]save last doc name /storage/0545/doc_00117995 to /storage/kkm_last_doc_name [10:05:26]save OK [10:05:26]Clear old archive folders... [10:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:26]tlvbuf is 00663480 [10:05:26]SAM_PROTO_ClearQueue [10:05:26]wFMCommunicate request_size=4 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 09 00 00 [10:05:26]Write to MH i2c: E2 08 00 04 08 80 09 00 00 00 00 00 00 7E [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [10:05:26]RAPDU: 90 00 [10:05:26]wFMCommunicate OK [10:05:26]SAM_PROTO_ClearQueue done [10:05:26]KKMCreateOFDPacket [10:05:26]OFDProtocolAddRootSTLVToBuf [10:05:26]FM_MakeSignedData [10:05:26]FM_MakeSignedData [10:05:26]SAM_PROTO_SignData [10:05:26]wFMCommunicate request_size=4 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 0D 01 02 [10:05:26]Write to MH i2c: E2 08 00 05 08 80 0D 01 02 00 00 00 00 86 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [10:05:26]RAPDU: 90 00 [10:05:26]wFMCommunicate OK [10:05:26]wFMCommunicate request_size=255 [10:05:26]MH_SAM_APDU [10:05: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 32 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 37 00 00 00 F4 03 04 00 E5 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CC 01 00 35 04 06 00 92 [10:05:26]Write to MH i2c: E2 02 01 06 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 37 00 00 00 F4 03 04 00 E5 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CC 01 00 35 04 06 00 92 00 00 F0 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [10:05:26]RAPDU: 90 00 [10:05:26]wFMCommunicate OK [10:05:26]wFMCommunicate request_size=10 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 0D 02 02 05 E7 D0 7F 7C BC [10:05:26]Write to MH i2c: E2 0D 00 07 08 80 0D 02 02 05 00 E7 D0 7F 7C BC 00 00 01 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [10:05:26]RAPDU: 90 00 [10:05:26]wFMCommunicate OK [10:05:26]wFMCommunicate request_size=4 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 0D 03 02 [10:05:26]Write to MH i2c: E2 08 00 08 08 80 0D 03 02 00 00 00 00 8B [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 0B 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 0B 00 08 08 00 A2 44 F3 D4 EC C8 81 59 90 00 C7 [10:05:26]RAPDU: A2 44 F3 D4 EC C8 81 59 90 00 [10:05:26]wFMCommunicate OK [10:05:26]SAM_PROTO_SignData done [10:05:26]FM_MakeSignedData done [10:05:26]CreateOFDProtocolMessage [10:05:26]wFMCommunicate request_size=4 [10:05:26]MH_SAM_APDU [10:05:26]CAPDU: 80 11 00 00 [10:05:26]Write to MH i2c: E2 08 00 09 08 80 11 00 00 00 00 00 00 8B [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:26]Read from MH i2c: E2 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 17 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: E2 17 00 09 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E2 [10:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:05:26]wFMCommunicate OK [10:05:26]CreateOFDProtocolMessage done [10:05:26]OFDSenderStorePacket 117995 [10:05:26]StoreOFDPacket docnum=117995 [10:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 80 B4 07 01 ED 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 32 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 37 00 00 00 F4 03 04 00 E5 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CC 01 00 35 04 06 00 92 E7 D0 7F 7C BC A2 44 F3 D4 EC C8 81 59 [10:05:26]CheckFolder [10:05:26]dirname=/storage/ofd_packets [10:05:26]CheckFolder done [10:05:26]ProducePacketName [10:05:26]name=ofd_packets/00117995 [10:05:26]NVStorageSaveData ofd_packets/00117995 [10:05:26]File name is /storage/ofd_packets/00117995 [10:05:26]Write 301 bytes [10:05:26]NVStorageSaveData done [10:05:26]OFDSenderStorePacket done [10:05:26]KKMCreateOFDPacket done [10:05:26]NVStorageSaveData kkm_last_timestamp [10:05:26]File name is /storage/kkm_last_timestamp [10:05:26]Write 4 bytes [10:05:26]NVStorageSaveData done [10:05:26]ExternCall_PrintAddStr [10:05:26]wPrintStart [10:05:26]Write to MH i2c: 01 00 00 0A 08 12 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 0A 08 00 00 00 00 00 FF 0F 27 [10:05:26]RasterBufferAndPrint [10:05:26]line Счет N : (1)245788 [10:05:26]line ИНН: 02508201610067 [10:05:26]line Контрольно-Кассовый Чек [10:05:26]line ПРОДАЖА [10:05:26]line ТРК (МРК, ГНК) : 11 [10:05:26]line Товар: 2710124130 [10:05:26]line Аи-92-К-2 [10:05:26]line 2.990 * 66.90 [10:05:26]line = 200.03 [10:05:26]line НДС 12% НСП 1% [10:05:26]line > о реализуемом товаре [10:05:26]line ОКРУГЛЕНИЕ: -0.03 [10:05:26]line ИТОГО: 200.00 [10:05:26]line Внесено: 200.00 [10:05:26]line СДАЧА: 0.00 [10:05:26]line НСП 1% : 1.77 [10:05:26]line НДС 12% : 21.24 [10:05:26]line Наличными: 200.00 [10:05:26]line Безнал.: 0.00 [10:05:26]line Место: АЗС № 173 "Партнер Нефть" [10:05:26]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:05:26]line СНО: Общий режим [10:05:26]line Чек 55 30.10.2024 10:05 [10:05:26]line Смена: 545 ФФД: 1.0 [10:05:26]line ЗНМ: 0300000115 [10:05:26]line РНМ: 0000000000091782 [10:05:26]line Версия ККМ: 001 [10:05:26]line ФМ: 0000000000871767 [10:05:26]line ФД: 117995 [10:05:26]line ФПД: 161524333116604 [10:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100525&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117995&fm=161524333116604&tin=02508201610067®Number=0000000000091782&sum=20000 [10:05:26]written 0, free lines is 4095 [10:05:26]OFD Sender: Processing packet 117995 [packets to send 77, broken 76] [10:05:26]ProducePacketName [10:05:26]name=ofd_packets/00117995 [10:05:26]OFD Sender: To server: pG, [10:05:26]CommunicateWithHost lk.salyk.kg:30040 [10:05:26]ConnectInit lk.salyk.kg [10:05:27]Connected sock=9 [10:05: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 36 37 0F 01 00 00 80 B4 07 01 ED 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 32 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 37 00 00 00 F4 03 04 00 E5 04 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EB CC 01 00 35 04 06 00 92 E7 D0 7F 7C BC A2 44 F3 D4 EC C8 81 59 [10:05: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 36 37 4F 00 00 00 3B D1 47 00 A0 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 36 37 10 04 04 00 EB CC 01 00 F4 03 04 00 9D B0 21 67 B6 04 01 00 00 94 9C 00 FC 2F AA F2 3A [10:05:27]CommunicateWithHost err = 0 [10:05:27]CheckOFDResponse [10:05:27]1017 (14) - 77093643461234 [10:05:27]1041 (16) - 0000000000871767 [10:05:27]1040 (4) - 117995 [10:05:27]1012 (4) - 30.10.2024 04:05 [10:05:27]1206 (1) - 0 [10:05:27]OFD Sender: Remove packet 117995 [10:05:27]ProducePacketName [10:05:27]name=ofd_packets/00117995 [10:05:27]NVStorageDeleteData [10:05:27]Write to MH i2c: 01 00 00 34 08 3C [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 07 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 9E 0C ED [10:05:27]RasterBufferAndPrint [10:05:27]line [10:05:27]line [10:05:27]line [10:05:27]line [10:05:27]line [10:05:27]written 0, free lines is 3235 [10:05:27]MH_Cut [10:05:27]Write to MH i2c: D1 01 00 3B 08 01 15 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: D1 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: D1 01 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: D1 01 00 3B 08 00 14 [10:05:27]Write to MH i2c: 01 00 00 3C 08 44 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]OFD Sender: No OFD packet to send [10:05:28]*** Cut start [10:05:28]*** Purtial cut [10:05:28]*** Stage 1: CUTSNS_PIN = 1 [10:05:28]Read from MH i2c: 01 [10:05:28]MH_I2C_Read... [10:05:28]*** Stop cut motor [10:05:28]*** Cut end [10:05:28]Read from MH i2c: 01 07 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 FF 0F 59 [10:05:28]process_action close_receipt done [10:05:28]requested_data is exist [10:05:28]produce_requested_data [10:05:28]requested_item fm.sn is exist - process it [10:05:28]wFMCommunicate request_size=4 [10:05:28]MH_SAM_APDU [10:05:28]CAPDU: 80 11 00 00 [10:05:28]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 17 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 17 00 3D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 16 [10:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:05:28]wFMCommunicate OK [10:05:28]requested_item fd.num is exist - process it [10:05:28]SAM_PROTO_GetFieldsCounters [10:05:28]wFMCommunicate request_size=4 [10:05:28]MH_SAM_APDU [10:05:28]CAPDU: 80 13 00 00 [10:05:28]Write to MH i2c: E2 08 00 3E 08 80 13 00 00 00 00 00 00 C2 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 62 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 62 00 3E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10:05:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:28]wFMCommunicate OK [10:05:28]SAM_PROTO_GetFieldsCounters done [10:05:28]requested_item shift.num is exist - process it [10:05:28]requested_item shift.opened is exist - process it [10:05:28]req_shift_opened [10:05:28]FM_GetShiftState [10:05:28]SAM_PROTO_GetShiftState [10:05:28]wFMCommunicate request_size=4 [10:05:28]MH_SAM_APDU [10:05:28]CAPDU: 80 13 01 00 [10:05:28]Write to MH i2c: E2 08 00 3F 08 80 13 01 00 00 00 00 00 C4 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 0E 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 0E 00 3F 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9C [10:05:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:05:28]wFMCommunicate OK [10:05:28]SAM_PROTO_GetShiftState done [10:05:28]FM_GetShiftState done [10:05:28]req_shift_opened done [10:05:28]requested_item shift.open_date is exist - process it [10:05:28]req_shift_open_date [10:05:28]req_shift_open_date done [10:05:28]produce_requested_data done [10:05:28]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117995,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:05:28]process_action_free close_receipt [10:05:28]json_value_free [10:05:28]json_value_free done [10:05:28]process_json_proto returns [10:05:28]Send response to host [10:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117995,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:05:28]free response buf [10:05:28]execute_script done [10:05:28]execute_script returns [10:05:28]free content buf [10:05:28]Sock 7.Close socket [10:05:28]Sock 7.Thread stoped [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]accept exits with 10 [10:06:42]New connection [10:06:42]New thread 3067559268 created [10:06:42]Thread 3067415908 joined [10:06:42]Waiting for new connection... [10:06:42] Sock 10.Parse request [10:06:42]Sock 10.Check first char [10:06:42]Sock 10.First char is OK [10:06:42]request: POST /json_proto HTTP/1.0 [10:06:42]Method: POST [10:06:42]URL: /json_proto [10:06:42]Method is POST - this is cgi request [10:06:42]url: /json_proto [10:06:42]query_string will be loaded in cgi processing [10:06:42]execute_cgi json_proto POST (null) [10:06:42]execute_cgi path=json_proto method=POST [10:06:42]POST find Content-Length [10:06:42]Host: 172.17.96.67:8080 [10:06:42]Content-Length: 677 [10:06:42]Content-Type: application/json [10:06:42] [10:06:42]POST finish read [10:06:42]Found Content-Length = 677 [10:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:06:42]execute_script... [10:06: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)245789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:06:42]POST & json_proto [10:06:42]process_json_proto [10:06:42]json parsed OK: [10:06:42]protocol is kg_v1.0 [10:06:42]action value=close_receipt [10:06:42]process_action close_receipt [10:06:42]cmd_close_receipt [10:06:42]MH_GetDate [10:06:42]Write to MH i2c: F0 00 00 40 08 37 [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: F0 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: F0 09 00 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: F0 09 00 40 08 00 33 05 22 67 47 6C 1F 67 3A [10:06:42]GetLastDocTimeStamp 1730282725 [10:06:42]current date 1730282803 [10:06:42]FM_GetShiftState [10:06:42]SAM_PROTO_GetShiftState [10:06:42]wFMCommunicate request_size=4 [10:06:42]MH_SAM_APDU [10:06:42]CAPDU: 80 13 01 00 [10:06:42]Write to MH i2c: E2 08 00 41 08 80 13 01 00 00 00 00 00 C6 [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:42]Read from MH i2c: E2 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: E2 0E 00 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: E2 0E 00 41 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9E [10:06:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:06:42]wFMCommunicate OK [10:06:42]SAM_PROTO_GetShiftState done [10:06:42]FM_GetShiftState done [10:06:42]opened in 1730246605 [10:06:42]opened+sec_in_day 1730333005 [10:06:42]quantity*price = 50041 [10:06:42]sum+1 = 50042 [10:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 56 30.10.2024 10:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117996 ФПД: 131471328395406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100643&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117996&fm=131471328395406&tin=02508201610067®Number=0000000000091782&sum=50000 [10:06:43]StoreToDocumentArchive [10:06:43]shift 545 fd 117996 [10:06:43]save to /storage/0545/doc_00117996 [10:06:43]save last doc name /storage/0545/doc_00117996 to /storage/kkm_last_doc_name [10:06:43]save OK [10:06:43]Clear old archive folders... [10:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:43]tlvbuf is 0062D050 [10:06:43]SAM_PROTO_ClearQueue [10:06:43]wFMCommunicate request_size=4 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 09 00 00 [10:06:43]Write to MH i2c: E2 08 00 4E 08 80 09 00 00 00 00 00 00 C8 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 03 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [10:06:43]RAPDU: 90 00 [10:06:43]wFMCommunicate OK [10:06:43]SAM_PROTO_ClearQueue done [10:06:43]KKMCreateOFDPacket [10:06:43]OFDProtocolAddRootSTLVToBuf [10:06:43]FM_MakeSignedData [10:06:43]FM_MakeSignedData [10:06:43]SAM_PROTO_SignData [10:06:43]wFMCommunicate request_size=4 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 0D 01 02 [10:06:43]Write to MH i2c: E2 08 00 4F 08 80 0D 01 02 00 00 00 00 D0 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:44]Read from MH i2c: E2 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 03 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [10:06:44]RAPDU: 90 00 [10:06:44]wFMCommunicate OK [10:06:44]wFMCommunicate request_size=255 [10:06:44]MH_SAM_APDU [10:06: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 32 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 38 00 00 00 F4 03 04 00 33 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CC 01 00 35 04 06 00 77 [10:06:44]Write to MH i2c: E2 02 01 50 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 00 00 00 F4 03 04 00 33 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CC 01 00 35 04 06 00 77 00 00 AE [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:44]Read from MH i2c: E2 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 03 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [10:06:44]RAPDU: 90 00 [10:06:44]wFMCommunicate OK [10:06:44]wFMCommunicate request_size=10 [10:06:44]MH_SAM_APDU [10:06:44]CAPDU: 80 0D 02 02 05 92 8D D3 C0 8E [10:06:44]Write to MH i2c: E2 0D 00 51 08 80 0D 02 02 05 00 92 8D D3 C0 8E 00 00 1D [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:44]Read from MH i2c: E2 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 03 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [10:06:44]RAPDU: 90 00 [10:06:44]wFMCommunicate OK [10:06:44]wFMCommunicate request_size=4 [10:06:44]MH_SAM_APDU [10:06:44]CAPDU: 80 0D 03 02 [10:06:44]Write to MH i2c: E2 08 00 52 08 80 0D 03 02 00 00 00 00 D5 [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:44]Read from MH i2c: E2 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 0B 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 0B 00 52 08 00 74 B7 6F EE 2F D2 EA CB 90 00 14 [10:06:44]RAPDU: 74 B7 6F EE 2F D2 EA CB 90 00 [10:06:44]wFMCommunicate OK [10:06:44]SAM_PROTO_SignData done [10:06:44]FM_MakeSignedData done [10:06:44]CreateOFDProtocolMessage [10:06:44]wFMCommunicate request_size=4 [10:06:44]MH_SAM_APDU [10:06:44]CAPDU: 80 11 00 00 [10:06:44]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:44]Read from MH i2c: E2 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 17 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2C [10:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:06:44]wFMCommunicate OK [10:06:44]CreateOFDProtocolMessage done [10:06:44]OFDSenderStorePacket 117996 [10:06:44]StoreOFDPacket docnum=117996 [10:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9B BE 07 01 8C 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 32 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 38 00 00 00 F4 03 04 00 33 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CC 01 00 35 04 06 00 77 92 8D D3 C0 8E 74 B7 6F EE 2F D2 EA CB [10:06:44]CheckFolder [10:06:44]dirname=/storage/ofd_packets [10:06:44]CheckFolder done [10:06:44]ProducePacketName [10:06:44]name=ofd_packets/00117996 [10:06:44]NVStorageSaveData ofd_packets/00117996 [10:06:44]File name is /storage/ofd_packets/00117996 [10:06:44]Write 301 bytes [10:06:44]NVStorageSaveData done [10:06:44]OFDSenderStorePacket done [10:06:44]KKMCreateOFDPacket done [10:06:44]NVStorageSaveData kkm_last_timestamp [10:06:44]File name is /storage/kkm_last_timestamp [10:06:44]Write 4 bytes [10:06:44]NVStorageSaveData done [10:06:44]ExternCall_PrintAddStr [10:06:44]wPrintStart [10:06:44]Write to MH i2c: 01 00 00 54 08 5C [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: 01 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: 01 07 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 FF 0F 71 [10:06:44]RasterBufferAndPrint [10:06:44]line Счет N : (1)245789 [10:06:44]line ИНН: 02508201610067 [10:06:44]line Контрольно-Кассовый Чек [10:06:44]line ПРОДАЖА [10:06:44]line ТРК (МРК, ГНК) : 21 [10:06:44]line Товар: 2710124130 [10:06:44]line Аи-92-К-2 [10:06:44]line 7.480 * 66.90 [10:06:44]line = 500.41 [10:06:44]line НДС 12% НСП 1% [10:06:44]line > о реализуемом товаре [10:06:44]line ОКРУГЛЕНИЕ: -0.41 [10:06:44]line ИТОГО: 500.00 [10:06:44]line Внесено: 500.00 [10:06:44]line СДАЧА: 0.00 [10:06:44]line НСП 1% : 4.43 [10:06:44]line НДС 12% : 53.14 [10:06:44]line Наличными: 500.00 [10:06:44]line Безнал.: 0.00 [10:06:44]line Место: АЗС № 173 "Партнер Нефть" [10:06:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:06:44]line СНО: Общий режим [10:06:44]line Чек 56 30.10.2024 10:06 [10:06:44]line Смена: 545 ФФД: 1.0 [10:06:44]line ЗНМ: 0300000115 [10:06:44]line РНМ: 0000000000091782 [10:06:44]line Версия ККМ: 001 [10:06:44]line ФМ: 0000000000871767 [10:06:44]line ФД: 117996 [10:06:44]line ФПД: 131471328395406 [10:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100643&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117996&fm=131471328395406&tin=02508201610067®Number=0000000000091782&sum=50000 [10:06:44]written 0, free lines is 4095 [10:06:44]OFD Sender: Processing packet 117996 [packets to send 77, broken 76] [10:06:44]ProducePacketName [10:06:44]name=ofd_packets/00117996 [10:06:44]OFD Sender: To server: pG, [10:06:44]CommunicateWithHost lk.salyk.kg:30040 [10:06:44]ConnectInit lk.salyk.kg [10:06:44]Connected sock=9 [10:06: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 36 37 0F 01 00 00 9B BE 07 01 8C 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 32 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 38 00 00 00 F4 03 04 00 33 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EC CC 01 00 35 04 06 00 77 92 8D D3 C0 8E 74 B7 6F EE 2F D2 EA CB [10:06: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 36 37 4F 00 00 00 B5 84 47 00 31 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 36 37 10 04 04 00 EC CC 01 00 F4 03 04 00 EB B0 21 67 B6 04 01 00 00 04 77 D2 8B 05 AA DE 3C [10:06:45]CommunicateWithHost err = 0 [10:06:45]CheckOFDResponse [10:06:45]1017 (14) - 77093643461234 [10:06:45]1041 (16) - 0000000000871767 [10:06:45]1040 (4) - 117996 [10:06:45]1012 (4) - 30.10.2024 04:07 [10:06:45]1206 (1) - 0 [10:06:45]OFD Sender: Remove packet 117996 [10:06:45]ProducePacketName [10:06:45]name=ofd_packets/00117996 [10:06:45]NVStorageDeleteData [10:06:45]Write to MH i2c: 01 00 00 7E 08 86 [10:06:45]Write i2c OK [10:06:45]MH_I2C_Read... [10:06:45]Read from MH i2c: 01 [10:06:45]MH_I2C_Read... [10:06:45]Read from MH i2c: 01 07 00 [10:06:45]MH_I2C_Read... [10:06:45]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 A5 0C 3E [10:06:45]RasterBufferAndPrint [10:06:45]line [10:06:45]line [10:06:45]line [10:06:45]line [10:06:45]line [10:06:45]written 0, free lines is 3240 [10:06:45]MH_Cut [10:06:45]Write to MH i2c: D1 01 00 85 08 01 5F [10:06:45]Write i2c OK [10:06:45]MH_I2C_Read... [10:06:45]Read from MH i2c: D1 [10:06:45]MH_I2C_Read... [10:06:45]Read from MH i2c: D1 01 00 [10:06:45]MH_I2C_Read... [10:06:45]Read from MH i2c: D1 01 00 85 08 00 5E [10:06:45]Write to MH i2c: 01 00 00 86 08 8E [10:06:45]Write i2c OK [10:06:45]MH_I2C_Read... [10:06:45]OFD Sender: No OFD packet to send [10:06:46]*** Cut start [10:06:46]*** Purtial cut [10:06:46]*** Stage 1: CUTSNS_PIN = 1 [10:06:46]Read from MH i2c: 01 [10:06:46]MH_I2C_Read... [10:06:46]*** Stop cut motor [10:06:46]*** Cut end [10:06:46]Read from MH i2c: 01 07 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [10:06:46]process_action close_receipt done [10:06:46]requested_data is exist [10:06:46]produce_requested_data [10:06:46]requested_item fm.sn is exist - process it [10:06:46]wFMCommunicate request_size=4 [10:06:46]MH_SAM_APDU [10:06:46]CAPDU: 80 11 00 00 [10:06:46]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [10:06:46]Write i2c OK [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 [10:06:46]MH_I2C_Read... [10:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:46]Read from MH i2c: E2 17 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 17 00 87 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 60 [10:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:06:46]wFMCommunicate OK [10:06:46]requested_item fd.num is exist - process it [10:06:46]SAM_PROTO_GetFieldsCounters [10:06:46]wFMCommunicate request_size=4 [10:06:46]MH_SAM_APDU [10:06:46]CAPDU: 80 13 00 00 [10:06:46]Write to MH i2c: E2 08 00 88 08 80 13 00 00 00 00 00 00 0C [10:06:46]Write i2c OK [10:06:46]MH_I2C_Read... [10:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:46]Read from MH i2c: E2 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 62 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 62 00 88 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [10:06: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:46]wFMCommunicate OK [10:06:46]SAM_PROTO_GetFieldsCounters done [10:06:46]requested_item shift.num is exist - process it [10:06:46]requested_item shift.opened is exist - process it [10:06:46]req_shift_opened [10:06:46]FM_GetShiftState [10:06:46]SAM_PROTO_GetShiftState [10:06:46]wFMCommunicate request_size=4 [10:06:46]MH_SAM_APDU [10:06:46]CAPDU: 80 13 01 00 [10:06:46]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [10:06:46]Write i2c OK [10:06:46]MH_I2C_Read... [10:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:46]Read from MH i2c: E2 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 0E 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E6 [10:06:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:06:46]wFMCommunicate OK [10:06:46]SAM_PROTO_GetShiftState done [10:06:46]FM_GetShiftState done [10:06:46]req_shift_opened done [10:06:46]requested_item shift.open_date is exist - process it [10:06:46]req_shift_open_date [10:06:46]req_shift_open_date done [10:06:46]produce_requested_data done [10:06:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117996,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:06:46]process_action_free close_receipt [10:06:46]json_value_free [10:06:46]json_value_free done [10:06:46]process_json_proto returns [10:06:46]Send response to host [10:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117996,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:06:46]free response buf [10:06:46]execute_script done [10:06:46]execute_script returns [10:06:46]free content buf [10:06:46]Sock 10.Close socket [10:06:46]Sock 10.Thread stoped [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:24]accept exits with 7 [10:07:24]New connection [10:07:24]New thread 3067415908 created [10:07:24]Thread 3067559268 joined [10:07:24]Waiting for new connection... [10:07:24] Sock 7.Parse request [10:07:24]Sock 7.Check first char [10:07:24]Sock 7.First char is OK [10:07:24]request: POST /json_proto HTTP/1.0 [10:07:24]Method: POST [10:07:24]URL: /json_proto [10:07:24]Method is POST - this is cgi request [10:07:24]url: /json_proto [10:07:24]query_string will be loaded in cgi processing [10:07:24]execute_cgi json_proto POST (null) [10:07:24]execute_cgi path=json_proto method=POST [10:07:24]POST find Content-Length [10:07:24]Host: 172.17.96.67:8080 [10:07:24]Content-Length: 682 [10:07:24]Content-Type: application/json [10:07:24] [10:07:24]POST finish read [10:07:24]Found Content-Length = 682 [10:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:24]execute_script... [10:07: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)245790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:24]POST & json_proto [10:07:24]process_json_proto [10:07:24]json parsed OK: [10:07:24]protocol is kg_v1.0 [10:07:24]action value=close_receipt [10:07:24]process_action close_receipt [10:07:24]cmd_close_receipt [10:07:24]MH_GetDate [10:07:24]Write to MH i2c: F0 00 00 8A 08 81 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: F0 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: F0 09 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: F0 09 00 8A 08 00 5C 05 22 67 47 6C 1F 67 AD [10:07:24]GetLastDocTimeStamp 1730282803 [10:07:24]current date 1730282844 [10:07:24]FM_GetShiftState [10:07:24]SAM_PROTO_GetShiftState [10:07:24]wFMCommunicate request_size=4 [10:07:24]MH_SAM_APDU [10:07:24]CAPDU: 80 13 01 00 [10:07:24]Write to MH i2c: E2 08 00 8B 08 80 13 01 00 00 00 00 00 10 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:24]Read from MH i2c: E2 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 0E 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 0E 00 8B 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E8 [10:07:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:07:24]wFMCommunicate OK [10:07:24]SAM_PROTO_GetShiftState done [10:07:24]FM_GetShiftState done [10:07:24]opened in 1730246605 [10:07:24]opened+sec_in_day 1730333005 [10:07:24]quantity*price = 100015 [10:07:24]sum+1 = 100017 [10:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 57 30.10.2024 10:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117997 ФПД: 181269778725782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100724&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117997&fm=181269778725782&tin=02508201610067®Number=0000000000091782&sum=100000 [10:07:25]StoreToDocumentArchive [10:07:25]shift 545 fd 117997 [10:07:25]save to /storage/0545/doc_00117997 [10:07:25]save last doc name /storage/0545/doc_00117997 to /storage/kkm_last_doc_name [10:07:25]save OK [10:07:25]Clear old archive folders... [10:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:25]tlvbuf is 0065BCC0 [10:07:25]SAM_PROTO_ClearQueue [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 09 00 00 [10:07:25]Write to MH i2c: E2 08 00 98 08 80 09 00 00 00 00 00 00 12 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [10:07:25]RAPDU: 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_ClearQueue done [10:07:25]KKMCreateOFDPacket [10:07:25]OFDProtocolAddRootSTLVToBuf [10:07:25]FM_MakeSignedData [10:07:25]FM_MakeSignedData [10:07:25]SAM_PROTO_SignData [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 0D 01 02 [10:07:25]Write to MH i2c: E2 08 00 99 08 80 0D 01 02 00 00 00 00 1A [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [10:07:25]RAPDU: 90 00 [10:07:25]wFMCommunicate OK [10:07:25]wFMCommunicate request_size=255 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 00 00 00 F4 03 04 00 5C 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CC 01 00 35 04 06 00 A4 [10:07:25]Write to MH i2c: E2 02 01 9A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 00 00 00 F4 03 04 00 5C 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CC 01 00 35 04 06 00 A4 00 00 4A [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [10:07:25]RAPDU: 90 00 [10:07:25]wFMCommunicate OK [10:07:25]wFMCommunicate request_size=10 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 0D 02 02 05 DD 28 C4 FB 96 [10:07:25]Write to MH i2c: E2 0D 00 9B 08 80 0D 02 02 05 00 DD 28 C4 FB 96 00 00 81 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [10:07:25]RAPDU: 90 00 [10:07:25]wFMCommunicate OK [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 0D 03 02 [10:07:25]Write to MH i2c: E2 08 00 9C 08 80 0D 03 02 00 00 00 00 1F [10:07:25]OFD Sender: No OFD packet to send [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0B 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0B 00 9C 08 00 9E D5 28 BA FC E6 4A 98 90 00 39 [10:07:25]RAPDU: 9E D5 28 BA FC E6 4A 98 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_SignData done [10:07:25]FM_MakeSignedData done [10:07:25]CreateOFDProtocolMessage [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 11 00 00 [10:07:25]Write to MH i2c: E2 08 00 9D 08 80 11 00 00 00 00 00 00 1F [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 17 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 17 00 9D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 76 [10:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:07:25]wFMCommunicate OK [10:07:25]CreateOFDProtocolMessage done [10:07:25]OFDSenderStorePacket 117997 [10:07:25]StoreOFDPacket docnum=117997 [10:07:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DE 23 07 01 09 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 5C 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CC 01 00 35 04 06 00 A4 DD 28 C4 FB 96 9E D5 28 BA FC E6 4A 98 [10:07:25]CheckFolder [10:07:25]dirname=/storage/ofd_packets [10:07:25]CheckFolder done [10:07:25]ProducePacketName [10:07:25]name=ofd_packets/00117997 [10:07:25]NVStorageSaveData ofd_packets/00117997 [10:07:25]File name is /storage/ofd_packets/00117997 [10:07:25]Write 301 bytes [10:07:25]NVStorageSaveData done [10:07:25]OFDSenderStorePacket done [10:07:25]KKMCreateOFDPacket done [10:07:25]NVStorageSaveData kkm_last_timestamp [10:07:25]File name is /storage/kkm_last_timestamp [10:07:25]Write 4 bytes [10:07:25]NVStorageSaveData done [10:07:25]ExternCall_PrintAddStr [10:07:25]wPrintStart [10:07:25]Write to MH i2c: 01 00 00 9E 08 A6 [10:07:25]OFD Sender: Processing packet 117997 [packets to send 77, broken 76] [10:07:25]ProducePacketName [10:07:25]name=ofd_packets/00117997 [10:07:25]OFD Sender: To server: pG, [10:07:25]CommunicateWithHost lk.salyk.kg:30040 [10:07:25]ConnectInit lk.salyk.kg [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: 01 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: 01 07 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 FF 0F BB [10:07:25]RasterBufferAndPrint [10:07:25]line Счет N : (1)245790 [10:07:25]line ИНН: 02508201610067 [10:07:25]line Контрольно-Кассовый Чек [10:07:25]line ПРОДАЖА [10:07:25]line ТРК (МРК, ГНК) : 11 [10:07:25]line Товар: 2710124130 [10:07:25]line Аи-92-К-2 [10:07:25]line 14.950 * 66.90 [10:07:25]line = 1000.16 [10:07:25]line НДС 12% НСП 1% [10:07:25]line > о реализуемом товаре [10:07:25]line ОКРУГЛЕНИЕ: -0.16 [10:07:25]line ИТОГО: 1000.00 [10:07:25]line Внесено: 1000.00 [10:07:25]line СДАЧА: 0.00 [10:07:25]line НСП 1% : 8.85 [10:07:25]line НДС 12% : 106.21 [10:07:25]line Наличными: 1000.00 [10:07:25]line Безнал.: 0.00 [10:07:25]line Место: АЗС № 173 "Партнер Нефть" [10:07:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:07:25]line СНО: Общий режим [10:07:25]line Чек 57 30.10.2024 10:07 [10:07:25]line Смена: 545 ФФД: 1.0 [10:07:25]line ЗНМ: 0300000115 [10:07:25]line РНМ: 0000000000091782 [10:07:25]line Версия ККМ: 001 [10:07:25]line ФМ: 0000000000871767 [10:07:25]line ФД: 117997 [10:07:25]line ФПД: 181269778725782 [10:07:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100724&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117997&fm=181269778725782&tin=02508201610067®Number=0000000000091782&sum=100000 [10:07:26]Connected sock=10 [10:07: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 36 37 0F 01 00 00 DE 23 07 01 09 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 5C 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 ED CC 01 00 35 04 06 00 A4 DD 28 C4 FB 96 9E D5 28 BA FC E6 4A 98 [10:07:26]written 0, free lines is 4095 [10:07: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 36 37 4F 00 00 00 18 4C 47 00 C2 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 36 37 10 04 04 00 ED CC 01 00 F4 03 04 00 14 B1 21 67 B6 04 01 00 00 C1 04 01 80 40 25 C7 9A [10:07:26]CommunicateWithHost err = 0 [10:07:26]CheckOFDResponse [10:07:26]1017 (14) - 77093643461234 [10:07:26]1041 (16) - 0000000000871767 [10:07:26]1040 (4) - 117997 [10:07:26]1012 (4) - 30.10.2024 04:07 [10:07:26]1206 (1) - 0 [10:07:26]OFD Sender: Remove packet 117997 [10:07:26]ProducePacketName [10:07:26]name=ofd_packets/00117997 [10:07:26]NVStorageDeleteData [10:07:26]Write to MH i2c: 01 00 00 C8 08 D0 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: 01 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: 01 07 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 A4 0C 87 [10:07:26]RasterBufferAndPrint [10:07:26]line [10:07:26]line [10:07:26]line [10:07:26]line [10:07:26]line [10:07:26]written 0, free lines is 3240 [10:07:26]MH_Cut [10:07:26]Write to MH i2c: D1 01 00 CF 08 01 A9 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: D1 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: D1 01 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: D1 01 00 CF 08 00 A8 [10:07:26]Write to MH i2c: 01 00 00 D0 08 D8 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]OFD Sender: No OFD packet to send [10:07:27]*** Cut start [10:07:27]*** Purtial cut [10:07:27]*** Stage 1: CUTSNS_PIN = 1 [10:07:27]Read from MH i2c: 01 [10:07:27]MH_I2C_Read... [10:07:27]*** Stop cut motor [10:07:27]*** Cut end [10:07:27]Read from MH i2c: 01 07 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 D0 08 00 00 00 00 00 FF 0F ED [10:07:27]process_action close_receipt done [10:07:27]requested_data is exist [10:07:27]produce_requested_data [10:07:27]requested_item fm.sn is exist - process it [10:07:27]wFMCommunicate request_size=4 [10:07:27]MH_SAM_APDU [10:07:27]CAPDU: 80 11 00 00 [10:07:27]Write to MH i2c: E2 08 00 D1 08 80 11 00 00 00 00 00 00 53 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:27]Read from MH i2c: E2 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 17 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 17 00 D1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AA [10:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:07:27]wFMCommunicate OK [10:07:27]requested_item fd.num is exist - process it [10:07:27]SAM_PROTO_GetFieldsCounters [10:07:27]wFMCommunicate request_size=4 [10:07:27]MH_SAM_APDU [10:07:27]CAPDU: 80 13 00 00 [10:07:27]Write to MH i2c: E2 08 00 D2 08 80 13 00 00 00 00 00 00 56 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:28]Read from MH i2c: E2 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 62 00 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 62 00 D2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 ED CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 ED CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:28]wFMCommunicate OK [10:07:28]SAM_PROTO_GetFieldsCounters done [10:07:28]requested_item shift.num is exist - process it [10:07:28]requested_item shift.opened is exist - process it [10:07:28]req_shift_opened [10:07:28]FM_GetShiftState [10:07:28]SAM_PROTO_GetShiftState [10:07:28]wFMCommunicate request_size=4 [10:07:28]MH_SAM_APDU [10:07:28]CAPDU: 80 13 01 00 [10:07:28]Write to MH i2c: E2 08 00 D3 08 80 13 01 00 00 00 00 00 58 [10:07:28]Write i2c OK [10:07:28]MH_I2C_Read... [10:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:28]Read from MH i2c: E2 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 0E 00 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 0E 00 D3 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 30 [10:07:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:07:28]wFMCommunicate OK [10:07:28]SAM_PROTO_GetShiftState done [10:07:28]FM_GetShiftState done [10:07:28]req_shift_opened done [10:07:28]requested_item shift.open_date is exist - process it [10:07:28]req_shift_open_date [10:07:28]req_shift_open_date done [10:07:28]produce_requested_data done [10:07:28]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117997,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:07:28]process_action_free close_receipt [10:07:28]json_value_free [10:07:28]json_value_free done [10:07:28]process_json_proto returns [10:07:28]Send response to host [10:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117997,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:07:28]free response buf [10:07:28]execute_script done [10:07:28]execute_script returns [10:07:28]free content buf [10:07:28]Sock 7.Close socket [10:07:28]Sock 7.Thread stoped [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:42]int [10:07:42]Write to MH i2c: 01 00 00 D4 08 DC [10:07:42]*** FLAG_PRN_KEY set [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 D4 08 00 08 00 00 00 FF 0F F9 [10:07:42]state=0 [10:07:42]Key pressed [10:07:42]Feed [10:07:42]Write to MH i2c: D8 00 00 D5 08 B4 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 01 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 01 00 D5 08 00 B5 [10:07:42]int [10:07:42]Write to MH i2c: 01 00 00 D6 08 DE [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 D6 08 00 48 00 00 00 3C 00 69 [10:07:42]state=2 [10:07:42]Key pressed [10:07:43]int [10:07:43]Write to MH i2c: 01 00 00 D7 08 DF [10:07:43]*** FLAG_PRN_KEY reset [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 F6 0F EB [10:07:43]state=2 [10:07:43]Stop feed [10:07:44]int [10:07:44]Write to MH i2c: 01 00 00 D8 08 E0 [10:07:44]*** FLAG_PRN_KEY set [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 D8 08 00 08 00 00 00 FF 0F FD [10:07:44]state=0 [10:07:44]Key pressed [10:07:44]Feed [10:07:44]Write to MH i2c: D8 00 00 D9 08 B8 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: D8 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: D8 01 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: D8 01 00 D9 08 00 B9 [10:07:44]int [10:07:44]Write to MH i2c: 01 00 00 DA 08 E2 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 DA 08 00 48 00 00 00 3C 00 6D [10:07:44]state=2 [10:07:44]Key pressed [10:07:44]int [10:07:44]Write to MH i2c: 01 00 00 DB 08 E3 [10:07:44]*** FLAG_PRN_KEY reset [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 F6 0F EF [10:07:44]state=2 [10:07:44]Stop feed [10:07:46]OFD Sender: No OFD packet to send [10:07:47]int [10:07:47]Write to MH i2c: 01 00 00 DC 08 E4 [10:07:47]*** FLAG_PRN_PAP1 set [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 DC 08 00 01 00 00 00 FF 0F FA [10:07:47]state=0 [10:07:47]No paper [10:07:47]int [10:07:47]Write to MH i2c: 01 00 00 DD 08 E5 [10:07:47]*** FLAG_PRN_PAP2 set [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 DD 08 00 03 00 00 00 FF 0F FD [10:07:47]state=0 [10:07:47]No paper [10:07:47]Cover opened [10:07:51]OFD Sender: No OFD packet to send [10:07:52]Write to MH i2c: 01 00 00 DE 08 E6 [10:07:52]Write i2c OK [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: 01 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: 01 07 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: 01 07 00 DE 08 00 03 00 00 00 FF 0F FE [10:07:52]state=3 [10:07:52]No paper [10:07:52]Cover opened [10:07:56]int [10:07:56]Write to MH i2c: 01 00 00 DF 08 E7 [10:07:56]Write i2c OK [10:07:56]MH_I2C_Read... [10:07:56]Read from MH i2c: 01 [10:07:56]MH_I2C_Read... [10:07:56]Read from MH i2c: 01 07 00 [10:07:56]MH_I2C_Read... [10:07:56]*** FLAG_PRN_PAP2 reset [10:07:56]*** FLAG_PRN_PAP1 reset [10:07:56]Read from MH i2c: 01 07 00 DF 08 00 00 00 00 00 FF 0F FC [10:07:56]state=3 [10:07:56]Cover closed [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:25]accept exits with 9 [10:08:25]New connection [10:08:25]New thread 3067559268 created [10:08:25]Thread 3067415908 joined [10:08:25]Waiting for new connection... [10:08:25] Sock 9.Parse request [10:08:25]Sock 9.Check first char [10:08:25]Sock 9.First char is OK [10:08:25]request: POST /json_proto HTTP/1.0 [10:08:25]Method: POST [10:08:25]URL: /json_proto [10:08:25]Method is POST - this is cgi request [10:08:25]url: /json_proto [10:08:25]query_string will be loaded in cgi processing [10:08:25]execute_cgi json_proto POST (null) [10:08:25]execute_cgi path=json_proto method=POST [10:08:25]POST find Content-Length [10:08:25]Host: 172.17.96.67:8080 [10:08:25]Content-Length: 677 [10:08:25]Content-Type: application/json [10:08:25] [10:08:25]POST finish read [10:08:25]Found Content-Length = 677 [10:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:25]execute_script... [10:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:25]POST & json_proto [10:08:25]process_json_proto [10:08:25]json parsed OK: [10:08:25]protocol is kg_v1.0 [10:08:25]action value=close_receipt [10:08:25]process_action close_receipt [10:08:25]cmd_close_receipt [10:08:25]MH_GetDate [10:08:25]Write to MH i2c: F0 00 00 E0 08 D7 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: F0 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: F0 09 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: F0 09 00 E0 08 00 99 05 22 67 47 6C 1F 67 40 [10:08:25]GetLastDocTimeStamp 1730282844 [10:08:25]current date 1730282905 [10:08:25]FM_GetShiftState [10:08:25]SAM_PROTO_GetShiftState [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 01 00 [10:08:25]Write to MH i2c: E2 08 00 E1 08 80 13 01 00 00 00 00 00 66 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 E1 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3E [10:08:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetShiftState done [10:08:25]FM_GetShiftState done [10:08:25]opened in 1730246605 [10:08:25]opened+sec_in_day 1730333005 [10:08:25]quantity*price = 20003 [10:08:25]sum+1 = 20004 [10:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 58 30.10.2024 10:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117998 ФПД: 40621896828899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100825&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117998&fm=40621896828899&tin=02508201610067®Number=0000000000091782&sum=20000 [10:08:26]StoreToDocumentArchive [10:08:26]shift 545 fd 117998 [10:08:26]save to /storage/0545/doc_00117998 [10:08:26]save last doc name /storage/0545/doc_00117998 to /storage/kkm_last_doc_name [10:08:26]save OK [10:08:26]Clear old archive folders... [10:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:26]tlvbuf is 00663690 [10:08:26]SAM_PROTO_ClearQueue [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 09 00 00 [10:08:26]Write to MH i2c: E2 08 00 EE 08 80 09 00 00 00 00 00 00 68 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [10:08:26]RAPDU: 90 00 [10:08:26]wFMCommunicate OK [10:08:26]SAM_PROTO_ClearQueue done [10:08:26]KKMCreateOFDPacket [10:08:26]OFDProtocolAddRootSTLVToBuf [10:08:26]FM_MakeSignedData [10:08:26]FM_MakeSignedData [10:08:26]SAM_PROTO_SignData [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 0D 01 02 [10:08:26]Write to MH i2c: E2 08 00 EF 08 80 0D 01 02 00 00 00 00 70 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [10:08:26]RAPDU: 90 00 [10:08:26]wFMCommunicate OK [10:08:26]wFMCommunicate request_size=255 [10:08:26]MH_SAM_APDU [10:08: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 32 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 3A 00 00 00 F4 03 04 00 99 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CC 01 00 35 04 06 00 24 [10:08:26]Write to MH i2c: E2 02 01 F0 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 99 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CC 01 00 35 04 06 00 24 00 00 27 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]OFD Sender: No OFD packet to send [10:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:27]Read from MH i2c: E2 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 03 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [10:08:27]RAPDU: 90 00 [10:08:27]wFMCommunicate OK [10:08:27]wFMCommunicate request_size=10 [10:08:27]MH_SAM_APDU [10:08:27]CAPDU: 80 0D 02 02 05 F2 05 BB 07 E3 [10:08:27]Write to MH i2c: E2 0D 00 F1 08 80 0D 02 02 05 00 F2 05 BB 07 E3 00 00 19 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:27]Read from MH i2c: E2 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 03 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 03 00 F1 08 00 90 00 6D [10:08:27]RAPDU: 90 00 [10:08:27]wFMCommunicate OK [10:08:27]wFMCommunicate request_size=4 [10:08:27]MH_SAM_APDU [10:08:27]CAPDU: 80 0D 03 02 [10:08:27]Write to MH i2c: E2 08 00 F2 08 80 0D 03 02 00 00 00 00 75 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:27]Read from MH i2c: E2 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 0B 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 0B 00 F2 08 00 AF FF EC 44 C9 3E 6E 20 90 00 E9 [10:08:27]RAPDU: AF FF EC 44 C9 3E 6E 20 90 00 [10:08:27]wFMCommunicate OK [10:08:27]SAM_PROTO_SignData done [10:08:27]FM_MakeSignedData done [10:08:27]CreateOFDProtocolMessage [10:08:27]wFMCommunicate request_size=4 [10:08:27]MH_SAM_APDU [10:08:27]CAPDU: 80 11 00 00 [10:08:27]Write to MH i2c: E2 08 00 F3 08 80 11 00 00 00 00 00 00 75 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:27]Read from MH i2c: E2 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 17 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 17 00 F3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CC [10:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:08:27]wFMCommunicate OK [10:08:27]CreateOFDProtocolMessage done [10:08:27]OFDSenderStorePacket 117998 [10:08:27]StoreOFDPacket docnum=117998 [10:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0A 68 07 01 DC A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 99 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CC 01 00 35 04 06 00 24 F2 05 BB 07 E3 AF FF EC 44 C9 3E 6E 20 [10:08:27]CheckFolder [10:08:27]dirname=/storage/ofd_packets [10:08:27]CheckFolder done [10:08:27]ProducePacketName [10:08:27]name=ofd_packets/00117998 [10:08:27]NVStorageSaveData ofd_packets/00117998 [10:08:27]File name is /storage/ofd_packets/00117998 [10:08:27]Write 301 bytes [10:08:27]NVStorageSaveData done [10:08:27]OFDSenderStorePacket done [10:08:27]KKMCreateOFDPacket done [10:08:27]NVStorageSaveData kkm_last_timestamp [10:08:27]File name is /storage/kkm_last_timestamp [10:08:27]Write 4 bytes [10:08:27]NVStorageSaveData done [10:08:27]ExternCall_PrintAddStr [10:08:27]wPrintStart [10:08:27]Write to MH i2c: 01 00 00 F4 08 FC [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 F4 08 00 00 00 00 00 FF 0F 11 [10:08:27]RasterBufferAndPrint [10:08:27]line Счет N : (1)245791 [10:08:27]line ИНН: 02508201610067 [10:08:27]line Контрольно-Кассовый Чек [10:08:27]line ПРОДАЖА [10:08:27]line ТРК (МРК, ГНК) : 21 [10:08:27]line Товар: 2710124130 [10:08:27]line Аи-92-К-2 [10:08:27]line 2.990 * 66.90 [10:08:27]line = 200.03 [10:08:27]line НДС 12% НСП 1% [10:08:27]line > о реализуемом товаре [10:08:27]line ОКРУГЛЕНИЕ: -0.03 [10:08:27]line ИТОГО: 200.00 [10:08:27]line Внесено: 200.00 [10:08:27]line СДАЧА: 0.00 [10:08:27]line НСП 1% : 1.77 [10:08:27]line НДС 12% : 21.24 [10:08:27]line Наличными: 200.00 [10:08:27]line Безнал.: 0.00 [10:08:27]line Место: АЗС № 173 "Партнер Нефть" [10:08:27]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:08:27]line СНО: Общий режим [10:08:27]line Чек 58 30.10.2024 10:08 [10:08:27]line Смена: 545 ФФД: 1.0 [10:08:27]line ЗНМ: 0300000115 [10:08:27]line РНМ: 0000000000091782 [10:08:27]line Версия ККМ: 001 [10:08:27]line ФМ: 0000000000871767 [10:08:27]line ФД: 117998 [10:08:27]line ФПД: 40621896828899 [10:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100825&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117998&fm=40621896828899&tin=02508201610067®Number=0000000000091782&sum=20000 [10:08:27]written 0, free lines is 4095 [10:08:27]OFD Sender: Processing packet 117998 [packets to send 77, broken 76] [10:08:27]ProducePacketName [10:08:27]name=ofd_packets/00117998 [10:08:27]OFD Sender: To server: pG, [10:08:27]CommunicateWithHost lk.salyk.kg:30040 [10:08:27]ConnectInit lk.salyk.kg [10:08:27]Connected sock=10 [10:08: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 36 37 0F 01 00 00 0A 68 07 01 DC A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 99 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EE CC 01 00 35 04 06 00 24 F2 05 BB 07 E3 AF FF EC 44 C9 3E 6E 20 [10:08:27]Write to MH i2c: 01 00 00 1E 09 27 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 [10:08:27]MH_I2C_Read... [10:08: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 36 37 4F 00 00 00 7B A4 47 00 54 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 36 37 10 04 04 00 EE CC 01 00 F4 03 04 00 51 B1 21 67 B6 04 01 00 00 F3 6B 2B 89 A2 B1 42 F1 [10:08:27]CommunicateWithHost err = 0 [10:08:27]CheckOFDResponse [10:08:27]1017 (14) - 77093643461234 [10:08:27]1041 (16) - 0000000000871767 [10:08:27]1040 (4) - 117998 [10:08:27]1012 (4) - 30.10.2024 04:08 [10:08:27]1206 (1) - 0 [10:08:27]OFD Sender: Remove packet 117998 [10:08:27]ProducePacketName [10:08:27]name=ofd_packets/00117998 [10:08:27]NVStorageDeleteData [10:08:27]Read from MH i2c: 01 07 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 1E 09 00 00 00 00 00 A9 0C E3 [10:08:27]RasterBufferAndPrint [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]written 0, free lines is 3253 [10:08:27]MH_Cut [10:08:27]Write to MH i2c: D1 01 00 25 09 01 00 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 01 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 01 00 25 09 00 FF [10:08:27]Write to MH i2c: 01 00 00 26 09 2F [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:28]OFD Sender: No OFD packet to send [10:08:28]*** Cut start [10:08:28]*** Purtial cut [10:08:28]*** Stage 1: CUTSNS_PIN = 1 [10:08:28]Read from MH i2c: 01 [10:08:28]MH_I2C_Read... [10:08:28]*** Stop cut motor [10:08:28]*** Cut end [10:08:28]Read from MH i2c: 01 07 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 FF 0F 44 [10:08:28]process_action close_receipt done [10:08:28]requested_data is exist [10:08:28]produce_requested_data [10:08:28]requested_item fm.sn is exist - process it [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 11 00 00 [10:08:28]Write to MH i2c: E2 08 00 27 09 80 11 00 00 00 00 00 00 AA [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 27 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 01 [10:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:08:28]wFMCommunicate OK [10:08:28]requested_item fd.num is exist - process it [10:08:28]SAM_PROTO_GetFieldsCounters [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 13 00 00 [10:08:28]Write to MH i2c: E2 08 00 28 09 80 13 00 00 00 00 00 00 AD [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 62 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 62 00 28 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [10:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:29]wFMCommunicate OK [10:08:29]SAM_PROTO_GetFieldsCounters done [10:08:29]requested_item shift.num is exist - process it [10:08:29]requested_item shift.opened is exist - process it [10:08:29]req_shift_opened [10:08:29]FM_GetShiftState [10:08:29]SAM_PROTO_GetShiftState [10:08:29]wFMCommunicate request_size=4 [10:08:29]MH_SAM_APDU [10:08:29]CAPDU: 80 13 01 00 [10:08:29]Write to MH i2c: E2 08 00 29 09 80 13 01 00 00 00 00 00 AF [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:29]Read from MH i2c: E2 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 0E 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 0E 00 29 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 87 [10:08:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:08:29]wFMCommunicate OK [10:08:29]SAM_PROTO_GetShiftState done [10:08:29]FM_GetShiftState done [10:08:29]req_shift_opened done [10:08:29]requested_item shift.open_date is exist - process it [10:08:29]req_shift_open_date [10:08:29]req_shift_open_date done [10:08:29]produce_requested_data done [10:08:29]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117998,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:08:29]process_action_free close_receipt [10:08:29]json_value_free [10:08:29]json_value_free done [10:08:29]process_json_proto returns [10:08:29]Send response to host [10:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117998,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:08:29]free response buf [10:08:29]execute_script done [10:08:29]execute_script returns [10:08:29]free content buf [10:08:29]Sock 9.Close socket [10:08:29]Sock 9.Thread stoped [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:46]accept exits with 7 [10:08:46]New connection [10:08:46]New thread 3067415908 created [10:08:46]Thread 3067559268 joined [10:08:46]Waiting for new connection... [10:08:46] Sock 7.Parse request [10:08:46]Sock 7.Check first char [10:08:46]Sock 7.First char is OK [10:08:46]request: POST /json_proto HTTP/1.0 [10:08:46]Method: POST [10:08:46]URL: /json_proto [10:08:46]Method is POST - this is cgi request [10:08:46]url: /json_proto [10:08:46]query_string will be loaded in cgi processing [10:08:46]execute_cgi json_proto POST (null) [10:08:46]execute_cgi path=json_proto method=POST [10:08:46]POST find Content-Length [10:08:46]Host: 172.17.96.67:8080 [10:08:46]Content-Length: 677 [10:08:46]Content-Type: application/json [10:08:46] [10:08:46]POST finish read [10:08:46]Found Content-Length = 677 [10:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:46]execute_script... [10: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)245792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:46]POST & json_proto [10:08:46]process_json_proto [10:08:46]json parsed OK: [10:08:46]protocol is kg_v1.0 [10:08:46]action value=close_receipt [10:08:46]process_action close_receipt [10:08:46]cmd_close_receipt [10:08:46]MH_GetDate [10:08:46]Write to MH i2c: F0 00 00 2A 09 22 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: F0 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: F0 09 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: F0 09 00 2A 09 00 AE 05 22 67 47 6C 1F 67 A0 [10:08:46]GetLastDocTimeStamp 1730282905 [10:08:46]current date 1730282926 [10:08:46]FM_GetShiftState [10:08:46]SAM_PROTO_GetShiftState [10:08:46]wFMCommunicate request_size=4 [10:08:46]MH_SAM_APDU [10:08:46]CAPDU: 80 13 01 00 [10:08:46]Write to MH i2c: E2 08 00 2B 09 80 13 01 00 00 00 00 00 B1 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:46]Read from MH i2c: E2 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: E2 0E 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: E2 0E 00 2B 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 89 [10:08:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:08:46]wFMCommunicate OK [10:08:46]SAM_PROTO_GetShiftState done [10:08:46]FM_GetShiftState done [10:08:46]opened in 1730246605 [10:08:46]opened+sec_in_day 1730333005 [10:08:46]quantity*price = 20003 [10:08:46]sum+1 = 20004 [10:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 59 30.10.2024 10:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 117999 ФПД: 107451248253909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100846&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117999&fm=107451248253909&tin=02508201610067®Number=0000000000091782&sum=20000 [10:08:47]StoreToDocumentArchive [10:08:47]shift 545 fd 117999 [10:08:47]save to /storage/0545/doc_00117999 [10:08:47]save last doc name /storage/0545/doc_00117999 to /storage/kkm_last_doc_name [10:08:47]save OK [10:08:47]Clear old archive folders... [10:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:47]tlvbuf is 0064D860 [10:08:47]SAM_PROTO_ClearQueue [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 09 00 00 [10:08:47]Write to MH i2c: E2 08 00 38 09 80 09 00 00 00 00 00 00 B3 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [10:08:47]RAPDU: 90 00 [10:08:47]wFMCommunicate OK [10:08:47]SAM_PROTO_ClearQueue done [10:08:47]KKMCreateOFDPacket [10:08:47]OFDProtocolAddRootSTLVToBuf [10:08:47]FM_MakeSignedData [10:08:47]FM_MakeSignedData [10:08:47]SAM_PROTO_SignData [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 0D 01 02 [10:08:47]Write to MH i2c: E2 08 00 39 09 80 0D 01 02 00 00 00 00 BB [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [10:08:47]RAPDU: 90 00 [10:08:47]wFMCommunicate OK [10:08:47]wFMCommunicate request_size=255 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 AE 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CC 01 00 35 04 06 00 61 [10:08:47]Write to MH i2c: E2 02 01 3A 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 AE 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CC 01 00 35 04 06 00 61 00 00 C6 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [10:08:47]RAPDU: 90 00 [10:08:47]wFMCommunicate OK [10:08:47]wFMCommunicate request_size=10 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 0D 02 02 05 B9 F1 7B 9B D5 [10:08:47]Write to MH i2c: E2 0D 00 3B 09 80 0D 02 02 05 00 B9 F1 7B 9B D5 00 00 5D [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [10:08:47]RAPDU: 90 00 [10:08:47]wFMCommunicate OK [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 0D 03 02 [10:08:47]Write to MH i2c: E2 08 00 3C 09 80 0D 03 02 00 00 00 00 C0 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 0B 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 0B 00 3C 09 00 4F A0 D1 26 E2 26 46 DF 90 00 D4 [10:08:47]RAPDU: 4F A0 D1 26 E2 26 46 DF 90 00 [10:08:47]wFMCommunicate OK [10:08:47]SAM_PROTO_SignData done [10:08:47]FM_MakeSignedData done [10:08:47]CreateOFDProtocolMessage [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 11 00 00 [10:08:47]Write to MH i2c: E2 08 00 3D 09 80 11 00 00 00 00 00 00 C0 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 17 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 17 00 3D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 17 [10:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:08:47]wFMCommunicate OK [10:08:47]CreateOFDProtocolMessage done [10:08:47]OFDSenderStorePacket 117999 [10:08:47]StoreOFDPacket docnum=117999 [10:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5C 6D 07 01 6E 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 32 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 3B 00 00 00 F4 03 04 00 AE 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CC 01 00 35 04 06 00 61 B9 F1 7B 9B D5 4F A0 D1 26 E2 26 46 DF [10:08:47]CheckFolder [10:08:47]dirname=/storage/ofd_packets [10:08:47]CheckFolder done [10:08:47]ProducePacketName [10:08:47]name=ofd_packets/00117999 [10:08:47]NVStorageSaveData ofd_packets/00117999 [10:08:47]File name is /storage/ofd_packets/00117999 [10:08:47]Write 301 bytes [10:08:47]NVStorageSaveData done [10:08:47]OFDSenderStorePacket done [10:08:47]KKMCreateOFDPacket done [10:08:47]NVStorageSaveData kkm_last_timestamp [10:08:47]File name is /storage/kkm_last_timestamp [10:08:47]Write 4 bytes [10:08:47]NVStorageSaveData done [10:08:47]ExternCall_PrintAddStr [10:08:47]wPrintStart [10:08:47]Write to MH i2c: 01 00 00 3E 09 47 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: 01 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: 01 07 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: 01 07 00 3E 09 00 00 00 00 00 FF 0F 5C [10:08:47]RasterBufferAndPrint [10:08:47]line Счет N : (1)245792 [10:08:47]line ИНН: 02508201610067 [10:08:47]line Контрольно-Кассовый Чек [10:08:47]line ПРОДАЖА [10:08:47]line ТРК (МРК, ГНК) : 11 [10:08:47]line Товар: 2710124130 [10:08:47]line Аи-92-К-2 [10:08:47]line 2.990 * 66.90 [10:08:47]line = 200.03 [10:08:47]line НДС 12% НСП 1% [10:08:47]line > о реализуемом товаре [10:08:47]line ОКРУГЛЕНИЕ: -0.03 [10:08:47]line ИТОГО: 200.00 [10:08:47]line Внесено: 200.00 [10:08:47]line СДАЧА: 0.00 [10:08:47]line НСП 1% : 1.77 [10:08:47]line НДС 12% : 21.24 [10:08:47]line Наличными: 200.00 [10:08:47]line Безнал.: 0.00 [10:08:47]line Место: АЗС № 173 "Партнер Нефть" [10:08:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:08:47]line СНО: Общий режим [10:08:47]line Чек 59 30.10.2024 10:08 [10:08:47]line Смена: 545 ФФД: 1.0 [10:08:47]line ЗНМ: 0300000115 [10:08:47]line РНМ: 0000000000091782 [10:08:47]line Версия ККМ: 001 [10:08:47]line ФМ: 0000000000871767 [10:08:47]line ФД: 117999 [10:08:47]line ФПД: 107451248253909 [10:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100846&type=1&operation_type=1&fn_number=0000000000871767&fd_number=117999&fm=107451248253909&tin=02508201610067®Number=0000000000091782&sum=20000 [10:08:48]written 0, free lines is 4095 [10:08:48]OFD Sender: Processing packet 117999 [packets to send 77, broken 76] [10:08:48]ProducePacketName [10:08:48]name=ofd_packets/00117999 [10:08:48]OFD Sender: To server: pG, [10:08:48]CommunicateWithHost lk.salyk.kg:30040 [10:08:48]ConnectInit lk.salyk.kg [10:08:48]Connected sock=10 [10: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 36 37 0F 01 00 00 5C 6D 07 01 6E 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 32 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 3B 00 00 00 F4 03 04 00 AE 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 EF CC 01 00 35 04 06 00 61 B9 F1 7B 9B D5 4F A0 D1 26 E2 26 46 DF [10:08: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 36 37 4F 00 00 00 DC A6 47 00 7B 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 36 37 10 04 04 00 EF CC 01 00 F4 03 04 00 66 B1 21 67 B6 04 01 00 00 5B 77 9D 04 BB 0A 8C 6F [10:08:48]CommunicateWithHost err = 0 [10:08:48]CheckOFDResponse [10:08:48]1017 (14) - 77093643461234 [10:08:48]1041 (16) - 0000000000871767 [10:08:48]1040 (4) - 117999 [10:08:48]1012 (4) - 30.10.2024 04:09 [10:08:48]1206 (1) - 0 [10:08:48]OFD Sender: Remove packet 117999 [10:08:48]ProducePacketName [10:08:48]name=ofd_packets/00117999 [10:08:48]NVStorageDeleteData [10:08:48]Write to MH i2c: 01 00 00 68 09 71 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: 01 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: 01 07 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 A8 0C 2C [10:08:48]RasterBufferAndPrint [10:08:48]line [10:08:48]line [10:08:48]line [10:08:48]line [10:08:48]line [10:08:48]written 0, free lines is 3243 [10:08:48]MH_Cut [10:08:48]Write to MH i2c: D1 01 00 6F 09 01 4A [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: D1 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: D1 01 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: D1 01 00 6F 09 00 49 [10:08:48]Write to MH i2c: 01 00 00 70 09 79 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:49]OFD Sender: No OFD packet to send [10:08:49]*** Cut start [10:08:49]*** Purtial cut [10:08:49]*** Stage 1: CUTSNS_PIN = 1 [10:08:49]Read from MH i2c: 01 [10:08:49]MH_I2C_Read... [10:08:49]*** Stop cut motor [10:08:49]*** Cut end [10:08:49]Read from MH i2c: 01 07 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 FF 0F 8E [10:08:49]process_action close_receipt done [10:08:49]requested_data is exist [10:08:49]produce_requested_data [10:08:49]requested_item fm.sn is exist - process it [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 11 00 00 [10:08:49]Write to MH i2c: E2 08 00 71 09 80 11 00 00 00 00 00 00 F4 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 17 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 17 00 71 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4B [10:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:08:49]wFMCommunicate OK [10:08:49]requested_item fd.num is exist - process it [10:08:49]SAM_PROTO_GetFieldsCounters [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 13 00 00 [10:08:49]Write to MH i2c: E2 08 00 72 09 80 13 00 00 00 00 00 00 F7 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 62 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 62 00 72 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [10: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 EF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:50]wFMCommunicate OK [10:08:50]SAM_PROTO_GetFieldsCounters done [10:08:50]requested_item shift.num is exist - process it [10:08:50]requested_item shift.opened is exist - process it [10:08:50]req_shift_opened [10:08:50]FM_GetShiftState [10:08:50]SAM_PROTO_GetShiftState [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 13 01 00 [10:08:50]Write to MH i2c: E2 08 00 73 09 80 13 01 00 00 00 00 00 F9 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0E 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0E 00 73 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D1 [10:08:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:08:50]wFMCommunicate OK [10:08:50]SAM_PROTO_GetShiftState done [10:08:50]FM_GetShiftState done [10:08:50]req_shift_opened done [10:08:50]requested_item shift.open_date is exist - process it [10:08:50]req_shift_open_date [10:08:50]req_shift_open_date done [10:08:50]produce_requested_data done [10:08:50]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":117999,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:08:50]process_action_free close_receipt [10:08:50]json_value_free [10:08:50]json_value_free done [10:08:50]process_json_proto returns [10:08:50]Send response to host [10:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":117999,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:08:50]free response buf [10:08:50]execute_script done [10:08:50]execute_script returns [10:08:50]free content buf [10:08:50]Sock 7.Close socket [10:08:50]Sock 7.Thread stoped [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:44]accept exits with 9 [10:09:44]New connection [10:09:44]New thread 3067559268 created [10:09:44]Thread 3067415908 joined [10:09:44]Waiting for new connection... [10:09:44] Sock 9.Parse request [10:09:44]Sock 9.Check first char [10:09:44]Sock 9.First char is OK [10:09:44]request: POST /json_proto HTTP/1.0 [10:09:44]Method: POST [10:09:44]URL: /json_proto [10:09:44]Method is POST - this is cgi request [10:09:44]url: /json_proto [10:09:44]query_string will be loaded in cgi processing [10:09:44]execute_cgi json_proto POST (null) [10:09:44]execute_cgi path=json_proto method=POST [10:09:44]POST find Content-Length [10:09:44]Host: 172.17.96.67:8080 [10:09:44]Content-Length: 766 [10:09:44]Content-Type: application/json [10:09:44] [10:09:44]POST finish read [10:09:44]Found Content-Length = 766 [10:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:09:44]execute_script... [10:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:09:44]POST & json_proto [10:09:44]process_json_proto [10:09:44]json parsed OK: [10:09:44]protocol is kg_v1.0 [10:09:44]action value=close_receipt [10:09:44]process_action close_receipt [10:09:44]cmd_close_receipt [10:09:44]MH_GetDate [10:09:44]Write to MH i2c: F0 00 00 74 09 6C [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 09 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 09 00 74 09 00 E8 05 22 67 47 6C 1F 67 24 [10:09:44]GetLastDocTimeStamp 1730282926 [10:09:44]current date 1730282984 [10:09:44]FM_GetShiftState [10:09:44]SAM_PROTO_GetShiftState [10:09:44]wFMCommunicate request_size=4 [10:09:44]MH_SAM_APDU [10:09:44]CAPDU: 80 13 01 00 [10:09:44]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:44]Read from MH i2c: E2 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 0E 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D3 [10:09:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:09:44]wFMCommunicate OK [10:09:44]SAM_PROTO_GetShiftState done [10:09:44]FM_GetShiftState done [10:09:44]opened in 1730246605 [10:09:44]opened+sec_in_day 1730333005 [10:09:44]quantity*price = 50041 [10:09:44]sum+1 = 50042 [10:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 60 30.10.2024 10:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118000 ФПД: 20656817813801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100944&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118000&fm=20656817813801&tin=02508201610067®Number=0000000000091782&sum=50041 [10:09:45]StoreToDocumentArchive [10:09:45]shift 545 fd 118000 [10:09:45]save to /storage/0545/doc_00118000 [10:09:45]save last doc name /storage/0545/doc_00118000 to /storage/kkm_last_doc_name [10:09:45]save OK [10:09:45]Clear old archive folders... [10:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:45]tlvbuf is 0060C710 [10:09:45]SAM_PROTO_ClearQueue [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 09 00 00 [10:09:45]Write to MH i2c: E2 08 00 82 09 80 09 00 00 00 00 00 00 FD [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_ClearQueue done [10:09:45]KKMCreateOFDPacket [10:09:45]OFDProtocolAddRootSTLVToBuf [10:09:45]FM_MakeSignedData [10:09:45]FM_MakeSignedData [10:09:45]SAM_PROTO_SignData [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 01 02 [10:09:45]Write to MH i2c: E2 08 00 83 09 80 0D 01 02 00 00 00 00 05 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=255 [10:09:45]MH_SAM_APDU [10:09: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 32 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 3C 00 00 00 F4 03 04 00 E8 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CC 01 00 35 04 06 00 12 [10:09:45]Write to MH i2c: E2 02 01 84 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 00 00 00 F4 03 04 00 E8 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CC 01 00 35 04 06 00 12 00 00 8D [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [10:09:46]RAPDU: 90 00 [10:09:46]wFMCommunicate OK [10:09:46]wFMCommunicate request_size=10 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 0D 02 02 05 C9 8A 49 B9 29 [10:09:46]Write to MH i2c: E2 0D 00 85 09 80 0D 02 02 05 00 C9 8A 49 B9 29 00 00 90 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [10:09:46]RAPDU: 90 00 [10:09:46]wFMCommunicate OK [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 0D 03 02 [10:09:46]Write to MH i2c: E2 08 00 86 09 80 0D 03 02 00 00 00 00 0A [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0B 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0B 00 86 09 00 02 0D 59 13 B1 F8 87 33 90 00 E9 [10:09:46]RAPDU: 02 0D 59 13 B1 F8 87 33 90 00 [10:09:46]wFMCommunicate OK [10:09:46]SAM_PROTO_SignData done [10:09:46]FM_MakeSignedData done [10:09:46]CreateOFDProtocolMessage [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 11 00 00 [10:09:46]Write to MH i2c: E2 08 00 87 09 80 11 00 00 00 00 00 00 0A [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 87 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 61 [10:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:09:46]wFMCommunicate OK [10:09:46]CreateOFDProtocolMessage done [10:09:46]OFDSenderStorePacket 118000 [10:09:46]StoreOFDPacket docnum=118000 [10:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 14 2F 07 01 09 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 00 00 00 F4 03 04 00 E8 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CC 01 00 35 04 06 00 12 C9 8A 49 B9 29 02 0D 59 13 B1 F8 87 33 [10:09:46]CheckFolder [10:09:46]dirname=/storage/ofd_packets [10:09:46]CheckFolder done [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00118000 [10:09:46]NVStorageSaveData ofd_packets/00118000 [10:09:46]File name is /storage/ofd_packets/00118000 [10:09:46]Write 301 bytes [10:09:46]NVStorageSaveData done [10:09:46]OFDSenderStorePacket done [10:09:46]KKMCreateOFDPacket done [10:09:46]NVStorageSaveData kkm_last_timestamp [10:09:46]File name is /storage/kkm_last_timestamp [10:09:46]Write 4 bytes [10:09:46]NVStorageSaveData done [10:09:46]ExternCall_PrintAddStr [10:09:46]wPrintStart [10:09:46]Write to MH i2c: 01 00 00 88 09 91 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 88 09 00 00 00 00 00 FF 0F A6 [10:09:46]RasterBufferAndPrint [10:09:46]line Счет N : (1)245793 [10:09:46]line ИНН: 02508201610067 [10:09:46]line Контрольно-Кассовый Чек [10:09:46]line ПРОДАЖА [10:09:46]line ТРК (МРК, ГНК) : 11 [10:09:46]line Товар: 2710124130 [10:09:46]line Аи-92-К-2 [10:09:46]line 7.480 * 66.90 [10:09:46]line = 500.41 [10:09:46]line НДС 12% НСП 1% [10:09:46]line > о реализуемом товаре [10:09:46]line ИТОГО: 500.41 [10:09:46]line НСП 1% : 4.43 [10:09:46]line НДС 12% : 53.14 [10:09:46]line Наличными: 0.00 [10:09:46]line Безнал.: 500.41 [10:09:46]line Место: АЗС № 173 "Партнер Нефть" [10:09:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:09:46]line СНО: Общий режим [10:09:46]line Чек 60 30.10.2024 10:09 [10:09:46]line Смена: 545 ФФД: 1.0 [10:09:46]line ЗНМ: 0300000115 [10:09:46]line РНМ: 0000000000091782 [10:09:46]line Версия ККМ: 001 [10:09:46]line Платежная система: Mbank [10:09:46]line ФМ: 0000000000871767 [10:09:46]line ФД: 118000 [10:09:46]line ФПД: 20656817813801 [10:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100944&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118000&fm=20656817813801&tin=02508201610067®Number=0000000000091782&sum=50041 [10:09:46]written 0, free lines is 4095 [10:09:46]OFD Sender: Processing packet 118000 [packets to send 77, broken 76] [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00118000 [10:09:46]OFD Sender: To server: pG, [10:09:46]CommunicateWithHost lk.salyk.kg:30040 [10:09:46]ConnectInit lk.salyk.kg [10:09:46]Connected sock=10 [10:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 14 2F 07 01 09 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 00 00 00 F4 03 04 00 E8 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F0 CC 01 00 35 04 06 00 12 C9 8A 49 B9 29 02 0D 59 13 B1 F8 87 33 [10:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 85 BE 47 00 95 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 36 37 10 04 04 00 F0 CC 01 00 F4 03 04 00 A0 B1 21 67 B6 04 01 00 00 E5 C2 03 E7 36 4F C4 A6 [10:09:46]CommunicateWithHost err = 0 [10:09:46]CheckOFDResponse [10:09:46]1017 (14) - 77093643461234 [10:09:46]1041 (16) - 0000000000871767 [10:09:46]1040 (4) - 118000 [10:09:46]1012 (4) - 30.10.2024 04:10 [10:09:46]1206 (1) - 0 [10:09:46]OFD Sender: Remove packet 118000 [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00118000 [10:09:46]NVStorageDeleteData [10:09:46]Write to MH i2c: 01 00 00 B0 09 B9 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 D2 0C 9E [10:09:46]RasterBufferAndPrint [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]written 0, free lines is 3287 [10:09:46]MH_Cut [10:09:46]Write to MH i2c: D1 01 00 B7 09 01 92 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 01 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 01 00 B7 09 00 91 [10:09:46]Write to MH i2c: 01 00 00 B8 09 C1 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:47]OFD Sender: No OFD packet to send [10:09:47]*** Cut start [10:09:47]*** Purtial cut [10:09:47]*** Stage 1: CUTSNS_PIN = 1 [10:09:47]Read from MH i2c: 01 [10:09:47]MH_I2C_Read... [10:09:47]*** Stop cut motor [10:09:47]*** Cut end [10:09:47]Read from MH i2c: 01 07 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 FF 0F D6 [10:09:47]process_action close_receipt done [10:09:47]requested_data is exist [10:09:47]produce_requested_data [10:09:47]requested_item fm.sn is exist - process it [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 11 00 00 [10:09:47]Write to MH i2c: E2 08 00 B9 09 80 11 00 00 00 00 00 00 3C [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 B9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 93 [10:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:09:47]wFMCommunicate OK [10:09:47]requested_item fd.num is exist - process it [10:09:47]SAM_PROTO_GetFieldsCounters [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 00 00 [10:09:47]Write to MH i2c: E2 08 00 BA 09 80 13 00 00 00 00 00 00 3F [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 62 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 62 00 BA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F0 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10:09:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F0 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:48]wFMCommunicate OK [10:09:48]SAM_PROTO_GetFieldsCounters done [10:09:48]requested_item shift.num is exist - process it [10:09:48]requested_item shift.opened is exist - process it [10:09:48]req_shift_opened [10:09:48]FM_GetShiftState [10:09:48]SAM_PROTO_GetShiftState [10:09:48]wFMCommunicate request_size=4 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 13 01 00 [10:09:48]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 0E 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 19 [10:09:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:09:48]wFMCommunicate OK [10:09:48]SAM_PROTO_GetShiftState done [10:09:48]FM_GetShiftState done [10:09:48]req_shift_opened done [10:09:48]requested_item shift.open_date is exist - process it [10:09:48]req_shift_open_date [10:09:48]req_shift_open_date done [10:09:48]produce_requested_data done [10:09:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118000,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:09:48]process_action_free close_receipt [10:09:48]json_value_free [10:09:48]json_value_free done [10:09:48]process_json_proto returns [10:09:48]Send response to host [10:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118000,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:09:48]free response buf [10:09:48]execute_script done [10:09:48]execute_script returns [10:09:48]free content buf [10:09:48]Sock 9.Close socket [10:09:48]Sock 9.Thread stoped [10:09:52]OFD Sender: No OFD packet to send [10:09:55]accept exits with 7 [10:09:55]New connection [10:09:55]New thread 3067415908 created [10:09:55]Thread 3067559268 joined [10:09:55]Waiting for new connection... [10:09:55] Sock 7.Parse request [10:09:55]Sock 7.Check first char [10:09:55]Sock 7.First char is OK [10:09:55]request: POST /json_proto HTTP/1.0 [10:09:55]Method: POST [10:09:55]URL: /json_proto [10:09:55]Method is POST - this is cgi request [10:09:55]url: /json_proto [10:09:55]query_string will be loaded in cgi processing [10:09:55]execute_cgi json_proto POST (null) [10:09:55]execute_cgi path=json_proto method=POST [10:09:55]POST find Content-Length [10:09:55]Host: 172.17.96.67:8080 [10:09:55]Content-Length: 677 [10:09:55]Content-Type: application/json [10:09:55] [10:09:55]POST finish read [10:09:55]Found Content-Length = 677 [10:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:09:55]execute_script... [10:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:09:55]POST & json_proto [10:09:55]process_json_proto [10:09:55]json parsed OK: [10:09:55]protocol is kg_v1.0 [10:09:55]action value=close_receipt [10:09:55]process_action close_receipt [10:09:55]cmd_close_receipt [10:09:55]MH_GetDate [10:09:55]Write to MH i2c: F0 00 00 BC 09 B4 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: F0 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: F0 09 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: F0 09 00 BC 09 00 F3 05 22 67 47 6C 1F 67 77 [10:09:55]GetLastDocTimeStamp 1730282984 [10:09:55]current date 1730282995 [10:09:55]FM_GetShiftState [10:09:55]SAM_PROTO_GetShiftState [10:09:55]wFMCommunicate request_size=4 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 13 01 00 [10:09:55]Write to MH i2c: E2 08 00 BD 09 80 13 01 00 00 00 00 00 43 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 0E 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 0E 00 BD 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1B [10:09:55]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:09:55]wFMCommunicate OK [10:09:55]SAM_PROTO_GetShiftState done [10:09:55]FM_GetShiftState done [10:09:55]opened in 1730246605 [10:09:55]opened+sec_in_day 1730333005 [10:09:55]quantity*price = 50041 [10:09:55]sum+1 = 50042 [10:09: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 61 30.10.2024 10:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118001 ФПД: 19438165871391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100955&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118001&fm=19438165871391&tin=02508201610067®Number=0000000000091782&sum=50000 [10:09:56]StoreToDocumentArchive [10:09:56]shift 545 fd 118001 [10:09:56]save to /storage/0545/doc_00118001 [10:09:56]save last doc name /storage/0545/doc_00118001 to /storage/kkm_last_doc_name [10:09:56]save OK [10:09:56]Clear old archive folders... [10:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:56]tlvbuf is 00677500 [10:09:56]SAM_PROTO_ClearQueue [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 09 00 00 [10:09:56]Write to MH i2c: E2 08 00 CA 09 80 09 00 00 00 00 00 00 45 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_ClearQueue done [10:09:56]KKMCreateOFDPacket [10:09:56]OFDProtocolAddRootSTLVToBuf [10:09:56]FM_MakeSignedData [10:09:56]FM_MakeSignedData [10:09:56]SAM_PROTO_SignData [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 01 02 [10:09:56]Write to MH i2c: E2 08 00 CB 09 80 0D 01 02 00 00 00 00 4D [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]wFMCommunicate request_size=255 [10:09:56]MH_SAM_APDU [10:09: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 32 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 3D 00 00 00 F4 03 04 00 F3 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CC 01 00 35 04 06 00 11 [10:09:56]Write to MH i2c: E2 02 01 CC 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 F3 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CC 01 00 35 04 06 00 11 00 00 8F [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:57]Read from MH i2c: E2 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 03 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [10:09:57]RAPDU: 90 00 [10:09:57]wFMCommunicate OK [10:09:57]wFMCommunicate request_size=10 [10:09:57]MH_SAM_APDU [10:09:57]CAPDU: 80 0D 02 02 05 AD CC F8 CB 1F [10:09:57]Write to MH i2c: E2 0D 00 CD 09 80 0D 02 02 05 00 AD CC F8 CB 1F 00 00 B5 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:57]Read from MH i2c: E2 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 03 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [10:09:57]RAPDU: 90 00 [10:09:57]wFMCommunicate OK [10:09:57]wFMCommunicate request_size=4 [10:09:57]MH_SAM_APDU [10:09:57]CAPDU: 80 0D 03 02 [10:09:57]Write to MH i2c: E2 08 00 CE 09 80 0D 03 02 00 00 00 00 52 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:57]Read from MH i2c: E2 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 0B 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 0B 00 CE 09 00 98 89 B0 46 42 2D F9 60 90 00 32 [10:09:57]RAPDU: 98 89 B0 46 42 2D F9 60 90 00 [10:09:57]wFMCommunicate OK [10:09:57]SAM_PROTO_SignData done [10:09:57]FM_MakeSignedData done [10:09:57]CreateOFDProtocolMessage [10:09:57]wFMCommunicate request_size=4 [10:09:57]MH_SAM_APDU [10:09:57]CAPDU: 80 11 00 00 [10:09:57]Write to MH i2c: E2 08 00 CF 09 80 11 00 00 00 00 00 00 52 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:57]Read from MH i2c: E2 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 17 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 17 00 CF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A9 [10:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:09:57]wFMCommunicate OK [10:09:57]CreateOFDProtocolMessage done [10:09:57]OFDSenderStorePacket 118001 [10:09:57]StoreOFDPacket docnum=118001 [10:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 89 93 07 01 80 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 F3 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CC 01 00 35 04 06 00 11 AD CC F8 CB 1F 98 89 B0 46 42 2D F9 60 [10:09:57]CheckFolder [10:09:57]dirname=/storage/ofd_packets [10:09:57]CheckFolder done [10:09:57]ProducePacketName [10:09:57]name=ofd_packets/00118001 [10:09:57]NVStorageSaveData ofd_packets/00118001 [10:09:57]File name is /storage/ofd_packets/00118001 [10:09:57]Write 301 bytes [10:09:57]NVStorageSaveData done [10:09:57]OFDSenderStorePacket done [10:09:57]KKMCreateOFDPacket done [10:09:57]NVStorageSaveData kkm_last_timestamp [10:09:57]File name is /storage/kkm_last_timestamp [10:09:57]Write 4 bytes [10:09:57]NVStorageSaveData done [10:09:57]ExternCall_PrintAddStr [10:09:57]wPrintStart [10:09:57]Write to MH i2c: 01 00 00 D0 09 D9 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 D0 09 00 00 00 00 00 FF 0F EE [10:09:57]RasterBufferAndPrint [10:09:57]line Счет N : (1)245794 [10:09:57]line ИНН: 02508201610067 [10:09:57]line Контрольно-Кассовый Чек [10:09:57]line ПРОДАЖА [10:09:57]line ТРК (МРК, ГНК) : 21 [10:09:57]line Товар: 2710124130 [10:09:57]line Аи-92-К-2 [10:09:57]line 7.480 * 66.90 [10:09:57]line = 500.41 [10:09:57]line НДС 12% НСП 1% [10:09:57]line > о реализуемом товаре [10:09:57]line ОКРУГЛЕНИЕ: -0.41 [10:09:57]line ИТОГО: 500.00 [10:09:57]line Внесено: 500.00 [10:09:57]line СДАЧА: 0.00 [10:09:57]line НСП 1% : 4.43 [10:09:57]line НДС 12% : 53.14 [10:09:57]line Наличными: 500.00 [10:09:57]line Безнал.: 0.00 [10:09:57]line Место: АЗС № 173 "Партнер Нефть" [10:09:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:09:57]line СНО: Общий режим [10:09:57]line Чек 61 30.10.2024 10:09 [10:09:57]line Смена: 545 ФФД: 1.0 [10:09:57]line ЗНМ: 0300000115 [10:09:57]line РНМ: 0000000000091782 [10:09:57]line Версия ККМ: 001 [10:09:57]line ФМ: 0000000000871767 [10:09:57]line ФД: 118001 [10:09:57]line ФПД: 19438165871391 [10:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T100955&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118001&fm=19438165871391&tin=02508201610067®Number=0000000000091782&sum=50000 [10:09:57]OFD Sender: Processing packet 118001 [packets to send 77, broken 76] [10:09:57]ProducePacketName [10:09:57]name=ofd_packets/00118001 [10:09:57]OFD Sender: To server: pG, [10:09:57]CommunicateWithHost lk.salyk.kg:30040 [10:09:57]ConnectInit lk.salyk.kg [10:09:57]written 0, free lines is 4095 [10:09:57]Connected sock=10 [10:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 89 93 07 01 80 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 F3 05 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CC 01 00 35 04 06 00 11 AD CC F8 CB 1F 98 89 B0 46 42 2D F9 60 [10:09: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 36 37 4F 00 00 00 24 BA 47 00 39 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F1 CC 01 00 F4 03 04 00 AB B1 21 67 B6 04 01 00 00 7F 24 FF 62 68 E2 7E D2 [10:09:57]CommunicateWithHost err = 0 [10:09:57]CheckOFDResponse [10:09:57]1017 (14) - 77093643461234 [10:09:57]1041 (16) - 0000000000871767 [10:09:57]1040 (4) - 118001 [10:09:57]1012 (4) - 30.10.2024 04:10 [10:09:57]1206 (1) - 0 [10:09:57]OFD Sender: Remove packet 118001 [10:09:57]ProducePacketName [10:09:57]name=ofd_packets/00118001 [10:09:57]NVStorageDeleteData [10:09:58]Write to MH i2c: 01 00 00 FA 09 03 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 FA 09 00 00 00 00 00 AD 0C C3 [10:09:58]RasterBufferAndPrint [10:09:58]line [10:09:58]line [10:09:58]line [10:09:58]line [10:09:58]line [10:09:58]written 0, free lines is 3253 [10:09:58]MH_Cut [10:09:58]Write to MH i2c: D1 01 00 01 0A 01 DD [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: D1 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: D1 01 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: D1 01 00 01 0A 00 DC [10:09:58]Write to MH i2c: 01 00 00 02 0A 0C [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]OFD Sender: No OFD packet to send [10:09:58]*** Cut start [10:09:58]*** Purtial cut [10:09:58]*** Stage 1: CUTSNS_PIN = 1 [10:09:59]Read from MH i2c: 01 [10:09:59]MH_I2C_Read... [10:09:59]*** Stop cut motor [10:09:59]*** Cut end [10:09:59]Read from MH i2c: 01 07 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 07 00 02 0A 00 00 00 00 00 FF 0F 21 [10:09:59]process_action close_receipt done [10:09:59]requested_data is exist [10:09:59]produce_requested_data [10:09:59]requested_item fm.sn is exist - process it [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 11 00 00 [10:09:59]Write to MH i2c: E2 08 00 03 0A 80 11 00 00 00 00 00 00 87 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 17 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 17 00 03 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DE [10:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:09:59]wFMCommunicate OK [10:09:59]requested_item fd.num is exist - process it [10:09:59]SAM_PROTO_GetFieldsCounters [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 13 00 00 [10:09:59]Write to MH i2c: E2 08 00 04 0A 80 13 00 00 00 00 00 00 8A [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 62 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 62 00 04 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F1 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [10:09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F1 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_GetFieldsCounters done [10:09:59]requested_item shift.num is exist - process it [10:09:59]requested_item shift.opened is exist - process it [10:09:59]req_shift_opened [10:09:59]FM_GetShiftState [10:09:59]SAM_PROTO_GetShiftState [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 13 01 00 [10:09:59]Write to MH i2c: E2 08 00 05 0A 80 13 01 00 00 00 00 00 8C [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 05 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 64 [10:09:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_GetShiftState done [10:09:59]FM_GetShiftState done [10:09:59]req_shift_opened done [10:09:59]requested_item shift.open_date is exist - process it [10:09:59]req_shift_open_date [10:09:59]req_shift_open_date done [10:09:59]produce_requested_data done [10:09:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118001,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:09:59]process_action_free close_receipt [10:09:59]json_value_free [10:09:59]json_value_free done [10:09:59]process_json_proto returns [10:09:59]Send response to host [10:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118001,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:09:59]free response buf [10:09:59]execute_script done [10:09:59]execute_script returns [10:09:59]free content buf [10:09:59]Sock 7.Close socket [10:09:59]Sock 7.Thread stoped [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]int [10:10:13]Write to MH i2c: 01 00 00 06 0A 10 [10:10:13]*** FLAG_PRN_PAP1 set [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 06 0A 00 01 00 00 00 FF 0F 26 [10:10:13]state=0 [10:10:13]No paper [10:10:13]int [10:10:13]Write to MH i2c: 01 00 00 07 0A 11 [10:10:13]*** FLAG_PRN_PAP2 set [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 07 0A 00 03 00 00 00 FF 0F 29 [10:10:13]state=0 [10:10:13]No paper [10:10:13]Cover opened [10:10:13]OFD Sender: No OFD packet to send [10:10:18]Write to MH i2c: 01 00 00 08 0A 12 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 08 0A 00 03 00 00 00 FF 0F 2A [10:10:18]state=3 [10:10:18]No paper [10:10:18]Cover opened [10:10:18]OFD Sender: No OFD packet to send [10:10:20]int [10:10:20]Write to MH i2c: 01 00 00 09 0A 13 [10:10:20]*** FLAG_PRN_PAP2 reset [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 07 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 07 00 09 0A 00 01 00 00 00 FF 0F 29 [10:10:20]state=3 [10:10:20]No paper [10:10:20]Cover closed [10:10:20]int [10:10:20]Write to MH i2c: 01 00 00 0A 0A 14 [10:10:20]*** FLAG_PRN_PAP2 set [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 07 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 07 00 0A 0A 00 03 00 00 00 FF 0F 2C [10:10:20]state=0 [10:10:20]No paper [10:10:20]Cover opened [10:10:21]int [10:10:21]Write to MH i2c: 01 00 00 0B 0A 15 [10:10:21]*** FLAG_PRN_PAP2 reset [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: 01 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: 01 07 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: 01 07 00 0B 0A 00 01 00 00 00 FF 0F 2B [10:10:21]state=3 [10:10:21]No paper [10:10:21]Cover closed [10:10:22]int [10:10:22]Write to MH i2c: 01 00 00 0C 0A 16 [10:10:22]*** FLAG_PRN_PAP2 set [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 07 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 07 00 0C 0A 00 03 00 00 00 FF 0F 2E [10:10:22]state=0 [10:10:22]No paper [10:10:22]Cover opened [10:10:23]OFD Sender: No OFD packet to send [10:10:27]Write to MH i2c: 01 00 00 0D 0A 17 [10:10:27]Write i2c OK [10:10:27]MH_I2C_Read... [10:10:27]Read from MH i2c: 01 [10:10:27]MH_I2C_Read... [10:10:27]Read from MH i2c: 01 07 00 [10:10:27]MH_I2C_Read... [10:10:27]Read from MH i2c: 01 07 00 0D 0A 00 03 00 00 00 FF 0F 2F [10:10:27]state=3 [10:10:27]No paper [10:10:27]Cover opened [10:10:28]OFD Sender: No OFD packet to send [10:10:32]Write to MH i2c: 01 00 00 0E 0A 18 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 07 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 07 00 0E 0A 00 03 00 00 00 FF 0F 30 [10:10:32]state=3 [10:10:32]No paper [10:10:32]Cover opened [10:10:33]OFD Sender: No OFD packet to send [10:10:37]Write to MH i2c: 01 00 00 0F 0A 19 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 0F 0A 00 03 00 00 00 FF 0F 31 [10:10:37]state=3 [10:10:37]No paper [10:10:37]Cover opened [10:10:38]OFD Sender: No OFD packet to send [10:10:42]Write to MH i2c: 01 00 00 10 0A 1A [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: 01 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: 01 07 00 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: 01 07 00 10 0A 00 03 00 00 00 FF 0F 32 [10:10:42]state=3 [10:10:42]No paper [10:10:42]Cover opened [10:10:43]OFD Sender: No OFD packet to send [10:10:47]Write to MH i2c: 01 00 00 11 0A 1B [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 11 0A 00 03 00 00 00 FF 0F 33 [10:10:47]state=3 [10:10:47]No paper [10:10:47]Cover opened [10:10:48]OFD Sender: No OFD packet to send [10:10:48]int [10:10:48]Write to MH i2c: 01 00 00 12 0A 1C [10:10:48]*** FLAG_PRN_PAP1 reset [10:10:48]*** FLAG_PRN_PAP2 reset [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 07 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [10:10:48]state=3 [10:10:48]Cover closed [10:10:49]int [10:10:49]Write to MH i2c: 01 00 00 13 0A 1D [10:10:49]*** FLAG_PRN_KEY set [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 07 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 07 00 13 0A 00 08 00 00 00 FF 0F 3A [10:10:49]state=0 [10:10:49]Key pressed [10:10:49]Feed [10:10:49]Write to MH i2c: D8 00 00 14 0A F5 [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: D8 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: D8 01 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: D8 01 00 14 0A 00 F6 [10:10:49]int [10:10:49]Write to MH i2c: 01 00 00 15 0A 1F [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 07 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 07 00 15 0A 00 48 00 00 00 3C 00 AA [10:10:49]state=2 [10:10:49]Key pressed [10:10:49]int [10:10:49]Write to MH i2c: 01 00 00 16 0A 20 [10:10:49]*** FLAG_PRN_KEY reset [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 07 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 07 00 16 0A 00 00 00 00 00 F6 0F 2C [10:10:49]state=2 [10:10:49]Stop feed [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:10:59]int [10:10:59]Write to MH i2c: 01 00 00 17 0A 21 [10:10:59]*** FLAG_PRN_KEY set [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 17 0A 00 08 00 00 00 FF 0F 3E [10:10:59]state=0 [10:10:59]Key pressed [10:10:59]Feed [10:10:59]Write to MH i2c: D8 00 00 18 0A F9 [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: D8 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: D8 01 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: D8 01 00 18 0A 00 FA [10:10:59]int [10:10:59]Write to MH i2c: 01 00 00 19 0A 23 [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 19 0A 00 48 00 00 00 3D 00 AF [10:10:59]state=2 [10:10:59]Key pressed [10:10:59]int [10:10:59]Write to MH i2c: 01 00 00 1A 0A 24 [10:10:59]*** FLAG_PRN_KEY reset [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 1A 0A 00 00 00 00 00 F6 0F 30 [10:10:59]state=2 [10:10:59]Stop feed [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:07]accept exits with 9 [10:12:07]New connection [10:12:07]New thread 3067559268 created [10:12:07]Thread 3067415908 joined [10:12:07]Waiting for new connection... [10:12:07] Sock 9.Parse request [10:12:07]Sock 9.Check first char [10:12:07]Sock 9.First char is OK [10:12:07]request: POST /json_proto HTTP/1.0 [10:12:07]Method: POST [10:12:07]URL: /json_proto [10:12:07]Method is POST - this is cgi request [10:12:07]url: /json_proto [10:12:07]query_string will be loaded in cgi processing [10:12:07]execute_cgi json_proto POST (null) [10:12:07]execute_cgi path=json_proto method=POST [10:12:07]POST find Content-Length [10:12:07]Host: 172.17.96.67:8080 [10:12:07]Content-Length: 677 [10:12:07]Content-Type: application/json [10:12:07] [10:12:07]POST finish read [10:12:07]Found Content-Length = 677 [10:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:12:07]execute_script... [10:12: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)245795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:12:07]POST & json_proto [10:12:07]process_json_proto [10:12:07]json parsed OK: [10:12:07]protocol is kg_v1.0 [10:12:07]action value=close_receipt [10:12:07]process_action close_receipt [10:12:07]cmd_close_receipt [10:12:07]MH_GetDate [10:12:07]Write to MH i2c: F0 00 00 1B 0A 14 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 1B 0A 00 77 06 22 67 47 6C 1F 67 5C [10:12:07]GetLastDocTimeStamp 1730282995 [10:12:07]current date 1730283127 [10:12:07]FM_GetShiftState [10:12:07]SAM_PROTO_GetShiftState [10:12:07]wFMCommunicate request_size=4 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 13 01 00 [10:12:07]Write to MH i2c: E2 08 00 1C 0A 80 13 01 00 00 00 00 00 A3 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 1C 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 7B [10:12:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:12:07]wFMCommunicate OK [10:12:07]SAM_PROTO_GetShiftState done [10:12:07]FM_GetShiftState done [10:12:07]opened in 1730246605 [10:12:07]opened+sec_in_day 1730333005 [10:12:07]quantity*price = 35055 [10:12:07]sum+1 = 35057 [10:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 62 30.10.2024 10:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118002 ФПД: 52717832913919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101207&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118002&fm=52717832913919&tin=02508201610067®Number=0000000000091782&sum=35000 [10:12:08]StoreToDocumentArchive [10:12:08]shift 545 fd 118002 [10:12:08]save to /storage/0545/doc_00118002 [10:12:08]save last doc name /storage/0545/doc_00118002 to /storage/kkm_last_doc_name [10:12:08]save OK [10:12:08]Clear old archive folders... [10:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:08]tlvbuf is 0064D860 [10:12:08]SAM_PROTO_ClearQueue [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 09 00 00 [10:12:08]Write to MH i2c: E2 08 00 29 0A 80 09 00 00 00 00 00 00 A5 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 29 0A 00 90 00 A7 [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]SAM_PROTO_ClearQueue done [10:12:08]KKMCreateOFDPacket [10:12:08]OFDProtocolAddRootSTLVToBuf [10:12:08]FM_MakeSignedData [10:12:08]FM_MakeSignedData [10:12:08]SAM_PROTO_SignData [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 01 02 [10:12:08]Write to MH i2c: E2 08 00 2A 0A 80 0D 01 02 00 00 00 00 AD [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 2A 0A 00 90 00 A8 [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]wFMCommunicate request_size=255 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 77 06 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CC 01 00 35 04 06 00 2F [10:12:08]Write to MH i2c: E2 02 01 2B 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 77 06 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CC 01 00 35 04 06 00 2F 00 00 9F [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]wFMCommunicate request_size=10 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 02 02 05 F2 53 B4 43 FF [10:12:08]Write to MH i2c: E2 0D 00 2C 0A 80 0D 02 02 05 00 F2 53 B4 43 FF 00 00 F5 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 03 02 [10:12:08]Write to MH i2c: E2 08 00 2D 0A 80 0D 03 02 00 00 00 00 B2 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0B 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0B 00 2D 0A 00 56 33 75 E5 60 26 8E 3B 90 00 E5 [10:12:09]RAPDU: 56 33 75 E5 60 26 8E 3B 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_SignData done [10:12:09]FM_MakeSignedData done [10:12:09]CreateOFDProtocolMessage [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 11 00 00 [10:12:09]Write to MH i2c: E2 08 00 2E 0A 80 11 00 00 00 00 00 00 B2 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 2E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 09 [10:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:12:09]wFMCommunicate OK [10:12:09]CreateOFDProtocolMessage done [10:12:09]OFDSenderStorePacket 118002 [10:12:09]StoreOFDPacket docnum=118002 [10:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5D BE 07 01 A1 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 77 06 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CC 01 00 35 04 06 00 2F F2 53 B4 43 FF 56 33 75 E5 60 26 8E 3B [10:12:09]CheckFolder [10:12:09]dirname=/storage/ofd_packets [10:12:09]CheckFolder done [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00118002 [10:12:09]NVStorageSaveData ofd_packets/00118002 [10:12:09]File name is /storage/ofd_packets/00118002 [10:12:09]Write 301 bytes [10:12:09]NVStorageSaveData done [10:12:09]OFDSenderStorePacket done [10:12:09]KKMCreateOFDPacket done [10:12:09]NVStorageSaveData kkm_last_timestamp [10:12:09]File name is /storage/kkm_last_timestamp [10:12:09]Write 4 bytes [10:12:09]NVStorageSaveData done [10:12:09]ExternCall_PrintAddStr [10:12:09]wPrintStart [10:12:09]Write to MH i2c: 01 00 00 2F 0A 39 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [10:12:09]RasterBufferAndPrint [10:12:09]line Счет N : (1)245795 [10:12:09]line ИНН: 02508201610067 [10:12:09]line Контрольно-Кассовый Чек [10:12:09]line ПРОДАЖА [10:12:09]line ТРК (МРК, ГНК) : 11 [10:12:09]line Товар: 2710124130 [10:12:09]line Аи-92-К-2 [10:12:09]line 5.240 * 66.90 [10:12:09]line = 350.56 [10:12:09]line НДС 12% НСП 1% [10:12:09]line > о реализуемом товаре [10:12:09]line ОКРУГЛЕНИЕ: -0.56 [10:12:09]line ИТОГО: 350.00 [10:12:09]line Внесено: 350.00 [10:12:09]line СДАЧА: 0.00 [10:12:09]line НСП 1% : 3.10 [10:12:09]line НДС 12% : 37.23 [10:12:09]line Наличными: 350.00 [10:12:09]line Безнал.: 0.00 [10:12:09]line Место: АЗС № 173 "Партнер Нефть" [10:12:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:12:09]line СНО: Общий режим [10:12:09]line Чек 62 30.10.2024 10:12 [10:12:09]line Смена: 545 ФФД: 1.0 [10:12:09]line ЗНМ: 0300000115 [10:12:09]line РНМ: 0000000000091782 [10:12:09]line Версия ККМ: 001 [10:12:09]line ФМ: 0000000000871767 [10:12:09]line ФД: 118002 [10:12:09]line ФПД: 52717832913919 [10:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101207&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118002&fm=52717832913919&tin=02508201610067®Number=0000000000091782&sum=35000 [10:12:09]OFD Sender: Processing packet 118002 [packets to send 77, broken 76] [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00118002 [10:12:09]OFD Sender: To server: pG, [10:12:09]CommunicateWithHost lk.salyk.kg:30040 [10:12:09]ConnectInit lk.salyk.kg [10:12:09]written 0, free lines is 4095 [10:12:09]Connected sock=10 [10:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5D BE 07 01 A1 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 77 06 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CC 01 00 35 04 06 00 2F F2 53 B4 43 FF 56 33 75 E5 60 26 8E 3B [10:12: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 36 37 4F 00 00 00 DE 62 47 00 05 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F2 CC 01 00 F4 03 04 00 2F B2 21 67 B6 04 01 00 00 C5 B6 7A 7D 9B A0 89 93 [10:12:09]CommunicateWithHost err = 0 [10:12:09]CheckOFDResponse [10:12:09]1017 (14) - 77093643461234 [10:12:09]1041 (16) - 0000000000871767 [10:12:09]1040 (4) - 118002 [10:12:09]1012 (4) - 30.10.2024 04:12 [10:12:09]1206 (1) - 0 [10:12:09]OFD Sender: Remove packet 118002 [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00118002 [10:12:09]NVStorageDeleteData [10:12:09]Write to MH i2c: 01 00 00 59 0A 63 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 AF 0C 25 [10:12:09]RasterBufferAndPrint [10:12:09]line [10:12:09]line [10:12:09]line [10:12:09]line [10:12:09]line [10:12:09]written 0, free lines is 3253 [10:12:09]MH_Cut [10:12:09]Write to MH i2c: D1 01 00 60 0A 01 3C [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: D1 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: D1 01 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: D1 01 00 60 0A 00 3B [10:12:09]Write to MH i2c: 01 00 00 61 0A 6B [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:10]OFD Sender: No OFD packet to send [10:12:10]*** Cut start [10:12:10]*** Purtial cut [10:12:10]*** Stage 1: CUTSNS_PIN = 1 [10:12:11]Read from MH i2c: 01 [10:12:11]MH_I2C_Read... [10:12:11]*** Stop cut motor [10:12:11]*** Cut end [10:12:11]Read from MH i2c: 01 07 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 07 00 61 0A 00 00 00 00 00 FF 0F 80 [10:12:11]process_action close_receipt done [10:12:11]requested_data is exist [10:12:11]produce_requested_data [10:12:11]requested_item fm.sn is exist - process it [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 11 00 00 [10:12:11]Write to MH i2c: E2 08 00 62 0A 80 11 00 00 00 00 00 00 E6 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 62 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3D [10:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:12:11]wFMCommunicate OK [10:12:11]requested_item fd.num is exist - process it [10:12:11]SAM_PROTO_GetFieldsCounters [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 00 00 [10:12:11]Write to MH i2c: E2 08 00 63 0A 80 13 00 00 00 00 00 00 E9 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 62 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 62 00 63 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [10:12:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F2 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetFieldsCounters done [10:12:11]requested_item shift.num is exist - process it [10:12:11]requested_item shift.opened is exist - process it [10:12:11]req_shift_opened [10:12:11]FM_GetShiftState [10:12:11]SAM_PROTO_GetShiftState [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 01 00 [10:12:11]Write to MH i2c: E2 08 00 64 0A 80 13 01 00 00 00 00 00 EB [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 64 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C3 [10:12:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetShiftState done [10:12:11]FM_GetShiftState done [10:12:11]req_shift_opened done [10:12:11]requested_item shift.open_date is exist - process it [10:12:11]req_shift_open_date [10:12:11]req_shift_open_date done [10:12:11]produce_requested_data done [10:12:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118002,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:12:11]process_action_free close_receipt [10:12:11]json_value_free [10:12:11]json_value_free done [10:12:11]process_json_proto returns [10:12:11]Send response to host [10:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118002,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:12:11]free response buf [10:12:11]execute_script done [10:12:11]execute_script returns [10:12:11]free content buf [10:12:11]Sock 9.Close socket [10:12:11]Sock 9.Thread stoped [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 65 0A 6F [10:12:14]*** FLAG_PRN_KEY set [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 65 0A 00 08 00 00 00 FF 0F 8C [10:12:14]state=0 [10:12:14]Key pressed [10:12:14]Feed [10:12:14]Write to MH i2c: D8 00 00 66 0A 47 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 01 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 01 00 66 0A 00 48 [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 67 0A 71 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 67 0A 00 48 00 00 00 3C 00 FC [10:12:14]state=2 [10:12:14]Key pressed [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 68 0A 72 [10:12:14]*** FLAG_PRN_KEY reset [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 FC 0F 84 [10:12:14]state=2 [10:12:14]Stop feed [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 69 0A 73 [10:12:14]*** FLAG_PRN_KEY set [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 69 0A 00 08 00 00 00 FF 0F 90 [10:12:14]state=0 [10:12:14]Key pressed [10:12:14]Feed [10:12:14]Write to MH i2c: D8 00 00 6A 0A 4B [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 01 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 01 00 6A 0A 00 4C [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 6B 0A 75 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 6B 0A 00 48 00 00 00 3C 00 00 [10:12:14]state=2 [10:12:14]Key pressed [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 6C 0A 76 [10:12:14]*** FLAG_PRN_KEY reset [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 6C 0A 00 00 00 00 00 F6 0F 82 [10:12:14]state=2 [10:12:14]Stop feed [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 6D 0A 77 [10:12:14]*** FLAG_PRN_KEY set [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 6D 0A 00 08 00 00 00 FF 0F 94 [10:12:14]state=0 [10:12:14]Key pressed [10:12:14]Feed [10:12:14]Write to MH i2c: D8 00 00 6E 0A 4F [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 01 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D8 01 00 6E 0A 00 50 [10:12:14]int [10:12:14]Write to MH i2c: 01 00 00 6F 0A 79 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 6F 0A 00 48 00 00 00 3C 00 04 [10:12:14]state=2 [10:12:14]Key pressed [10:12:15]int [10:12:15]Write to MH i2c: 01 00 00 70 0A 7A [10:12:15]*** FLAG_PRN_KEY reset [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 70 0A 00 00 00 00 00 F9 0F 89 [10:12:15]state=2 [10:12:15]Stop feed [10:12:15]int [10:12:15]Write to MH i2c: 01 00 00 71 0A 7B [10:12:15]*** FLAG_PRN_KEY set [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 71 0A 00 08 00 00 00 FF 0F 98 [10:12:15]state=0 [10:12:15]Key pressed [10:12:15]Feed [10:12:15]Write to MH i2c: D8 00 00 72 0A 53 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D8 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D8 01 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D8 01 00 72 0A 00 54 [10:12:15]int [10:12:15]Write to MH i2c: 01 00 00 73 0A 7D [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 73 0A 00 48 00 00 00 3C 00 08 [10:12:15]state=2 [10:12:15]Key pressed [10:12:15]OFD Sender: No OFD packet to send [10:12:15]int [10:12:15]Write to MH i2c: 01 00 00 74 0A 7E [10:12:15]*** FLAG_PRN_KEY reset [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 74 0A 00 00 00 00 00 FF 0F 93 [10:12:15]state=2 [10:12:15]Stop feed [10:12:16]int [10:12:16]Write to MH i2c: 01 00 00 75 0A 7F [10:12:16]*** FLAG_PRN_PAP1 set [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: 01 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: 01 07 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: 01 07 00 75 0A 00 01 00 00 00 FF 0F 95 [10:12:16]state=0 [10:12:16]No paper [10:12:17]int [10:12:17]Write to MH i2c: 01 00 00 76 0A 80 [10:12:17]*** FLAG_PRN_PAP2 set [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 76 0A 00 03 00 00 00 FF 0F 98 [10:12:17]state=0 [10:12:17]No paper [10:12:17]Cover opened [10:12:20]OFD Sender: No OFD packet to send [10:12:22]Write to MH i2c: 01 00 00 77 0A 81 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 07 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 07 00 77 0A 00 03 00 00 00 FF 0F 99 [10:12:22]state=3 [10:12:22]No paper [10:12:22]Cover opened [10:12:25]OFD Sender: No OFD packet to send [10:12:25]int [10:12:25]Write to MH i2c: 01 00 00 78 0A 82 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 [10:12:25]MH_I2C_Read... [10:12:25]*** FLAG_PRN_PAP2 reset [10:12:25]*** FLAG_PRN_PAP1 reset [10:12:25]Read from MH i2c: 01 07 00 78 0A 00 00 00 00 00 FF 0F 97 [10:12:25]state=3 [10:12:25]Cover closed [10:12:26]int [10:12:26]Write to MH i2c: 01 00 00 79 0A 83 [10:12:26]*** FLAG_PRN_KEY set [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 79 0A 00 08 00 00 00 FF 0F A0 [10:12:26]state=0 [10:12:26]Key pressed [10:12:26]Feed [10:12:26]Write to MH i2c: D8 00 00 7A 0A 5B [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: D8 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: D8 01 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: D8 01 00 7A 0A 00 5C [10:12:26]int [10:12:26]Write to MH i2c: 01 00 00 7B 0A 85 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 7B 0A 00 48 00 00 00 3D 00 11 [10:12:26]state=2 [10:12:26]Key pressed [10:12:27]int [10:12:27]Write to MH i2c: 01 00 00 7C 0A 86 [10:12:27]*** FLAG_PRN_KEY reset [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: 01 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: 01 07 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 F9 0F 95 [10:12:27]state=2 [10:12:27]Stop feed [10:12:30]OFD Sender: No OFD packet to send [10:12:30]int [10:12:30]Write to MH i2c: 01 00 00 7D 0A 87 [10:12:30]*** FLAG_PRN_KEY set [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 07 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 07 00 7D 0A 00 08 00 00 00 FF 0F A4 [10:12:30]state=0 [10:12:30]Key pressed [10:12:30]Feed [10:12:30]Write to MH i2c: D8 00 00 7E 0A 5F [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: D8 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: D8 01 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: D8 01 00 7E 0A 00 60 [10:12:30]int [10:12:30]Write to MH i2c: 01 00 00 7F 0A 89 [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 07 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 07 00 7F 0A 00 48 00 00 00 3C 00 14 [10:12:30]state=2 [10:12:30]Key pressed [10:12:31]int [10:12:31]Write to MH i2c: 01 00 00 80 0A 8A [10:12:31]*** FLAG_PRN_KEY reset [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 07 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 F5 0F 95 [10:12:31]state=2 [10:12:31]Stop feed [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:42]accept exits with 7 [10:14:42]New connection [10:14:42]New thread 3067415908 created [10:14:42]Thread 3067559268 joined [10:14:42]Waiting for new connection... [10:14:42] Sock 7.Parse request [10:14:42]Sock 7.Check first char [10:14:42]Sock 7.First char is OK [10:14:42]request: POST /json_proto HTTP/1.0 [10:14:42]Method: POST [10:14:42]URL: /json_proto [10:14:42]Method is POST - this is cgi request [10:14:42]url: /json_proto [10:14:42]query_string will be loaded in cgi processing [10:14:42]execute_cgi json_proto POST (null) [10:14:42]execute_cgi path=json_proto method=POST [10:14:42]POST find Content-Length [10:14:42]Host: 172.17.96.67:8080 [10:14:42]Content-Length: 677 [10:14:42]Content-Type: application/json [10:14:42] [10:14:42]POST finish read [10:14:42]Found Content-Length = 677 [10:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:14:42]execute_script... [10:14: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)245796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:14:42]POST & json_proto [10:14:42]process_json_proto [10:14:42]json parsed OK: [10:14:42]protocol is kg_v1.0 [10:14:42]action value=close_receipt [10:14:42]process_action close_receipt [10:14:42]cmd_close_receipt [10:14:42]MH_GetDate [10:14:42]Write to MH i2c: F0 00 00 81 0A 7A [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: F0 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: F0 09 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: F0 09 00 81 0A 00 12 07 22 67 47 6C 1F 67 5E [10:14:42]GetLastDocTimeStamp 1730283127 [10:14:42]current date 1730283282 [10:14:42]FM_GetShiftState [10:14:42]SAM_PROTO_GetShiftState [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 13 01 00 [10:14:42]Write to MH i2c: E2 08 00 82 0A 80 13 01 00 00 00 00 00 09 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0E 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0E 00 82 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E1 [10:14:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_GetShiftState done [10:14:42]FM_GetShiftState done [10:14:42]opened in 1730246605 [10:14:42]opened+sec_in_day 1730333005 [10:14:42]quantity*price = 40006 [10:14:42]sum+1 = 40007 [10:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 63 30.10.2024 10:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118003 ФПД: 741730050611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118003&fm=741730050611&tin=02508201610067®Number=0000000000091782&sum=40000 [10:14:43]StoreToDocumentArchive [10:14:43]shift 545 fd 118003 [10:14:43]save to /storage/0545/doc_00118003 [10:14:43]save last doc name /storage/0545/doc_00118003 to /storage/kkm_last_doc_name [10:14:43]save OK [10:14:43]Clear old archive folders... [10:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:43]tlvbuf is 0066CEF0 [10:14:43]SAM_PROTO_ClearQueue [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 09 00 00 [10:14:43]Write to MH i2c: E2 08 00 8F 0A 80 09 00 00 00 00 00 00 0B [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [10:14:43]RAPDU: 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_ClearQueue done [10:14:43]KKMCreateOFDPacket [10:14:43]OFDProtocolAddRootSTLVToBuf [10:14:43]FM_MakeSignedData [10:14:43]FM_MakeSignedData [10:14:43]SAM_PROTO_SignData [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 0D 01 02 [10:14:43]Write to MH i2c: E2 08 00 90 0A 80 0D 01 02 00 00 00 00 13 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [10:14:43]RAPDU: 90 00 [10:14:43]wFMCommunicate OK [10:14:43]wFMCommunicate request_size=255 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 00 00 00 F4 03 04 00 12 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CC 01 00 35 04 06 00 00 [10:14:43]Write to MH i2c: E2 02 01 91 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 00 00 00 F4 03 04 00 12 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CC 01 00 35 04 06 00 00 00 00 38 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [10:14:43]RAPDU: 90 00 [10:14:43]wFMCommunicate OK [10:14:43]wFMCommunicate request_size=10 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 0D 02 02 05 AC B2 8E 62 33 [10:14:43]Write to MH i2c: E2 0D 00 92 0A 80 0D 02 02 05 00 AC B2 8E 62 33 00 00 A1 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 92 0A 00 90 00 10 [10:14:43]RAPDU: 90 00 [10:14:43]wFMCommunicate OK [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 0D 03 02 [10:14:43]Write to MH i2c: E2 08 00 93 0A 80 0D 03 02 00 00 00 00 18 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0B 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0B 00 93 0A 00 DC 57 B3 D9 0A 2A DA B0 90 00 96 [10:14:43]RAPDU: DC 57 B3 D9 0A 2A DA B0 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_SignData done [10:14:43]FM_MakeSignedData done [10:14:43]CreateOFDProtocolMessage [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 11 00 00 [10:14:43]Write to MH i2c: E2 08 00 94 0A 80 11 00 00 00 00 00 00 18 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 17 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 17 00 94 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6F [10:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:14:43]wFMCommunicate OK [10:14:43]CreateOFDProtocolMessage done [10:14:43]OFDSenderStorePacket 118003 [10:14:43]StoreOFDPacket docnum=118003 [10:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3C 16 07 01 39 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 00 00 00 F4 03 04 00 12 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CC 01 00 35 04 06 00 00 AC B2 8E 62 33 DC 57 B3 D9 0A 2A DA B0 [10:14:43]CheckFolder [10:14:43]dirname=/storage/ofd_packets [10:14:43]CheckFolder done [10:14:43]ProducePacketName [10:14:43]name=ofd_packets/00118003 [10:14:43]NVStorageSaveData ofd_packets/00118003 [10:14:43]File name is /storage/ofd_packets/00118003 [10:14:43]Write 301 bytes [10:14:43]NVStorageSaveData done [10:14:43]OFDSenderStorePacket done [10:14:43]KKMCreateOFDPacket done [10:14:43]NVStorageSaveData kkm_last_timestamp [10:14:43]File name is /storage/kkm_last_timestamp [10:14:43]Write 4 bytes [10:14:43]NVStorageSaveData done [10:14:43]OFD Sender: Processing packet 118003 [packets to send 77, broken 76] [10:14:43]ProducePacketName [10:14:43]name=ofd_packets/00118003 [10:14:43]OFD Sender: To server: pG, [10:14:43]CommunicateWithHost lk.salyk.kg:30040 [10:14:43]ConnectInit lk.salyk.kg [10:14:43]ExternCall_PrintAddStr [10:14:43]wPrintStart [10:14:43]Write to MH i2c: 01 00 00 95 0A 9F [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 95 0A 00 00 00 00 00 FF 0F B4 [10:14:43]RasterBufferAndPrint [10:14:43]line Счет N : (1)245796 [10:14:43]line ИНН: 02508201610067 [10:14:43]line Контрольно-Кассовый Чек [10:14:43]line ПРОДАЖА [10:14:43]line ТРК (МРК, ГНК) : 21 [10:14:43]line Товар: 2710124130 [10:14:43]line Аи-92-К-2 [10:14:43]line 5.980 * 66.90 [10:14:43]line = 400.06 [10:14:43]line НДС 12% НСП 1% [10:14:43]line > о реализуемом товаре [10:14:43]line ОКРУГЛЕНИЕ: -0.06 [10:14:43]line ИТОГО: 400.00 [10:14:43]line Внесено: 400.00 [10:14:43]line СДАЧА: 0.00 [10:14:43]line НСП 1% : 3.54 [10:14:43]line НДС 12% : 42.48 [10:14:43]line Наличными: 400.00 [10:14:43]line Безнал.: 0.00 [10:14:43]line Место: АЗС № 173 "Партнер Нефть" [10:14:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:14:43]line СНО: Общий режим [10:14:43]line Чек 63 30.10.2024 10:14 [10:14:43]line Смена: 545 ФФД: 1.0 [10:14:43]line ЗНМ: 0300000115 [10:14:43]line РНМ: 0000000000091782 [10:14:43]line Версия ККМ: 001 [10:14:43]line ФМ: 0000000000871767 [10:14:43]line ФД: 118003 [10:14:43]line ФПД: 741730050611 [10:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118003&fm=741730050611&tin=02508201610067®Number=0000000000091782&sum=40000 [10:14:44]Connected sock=11 [10:14: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 36 37 0F 01 00 00 3C 16 07 01 39 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 00 00 00 F4 03 04 00 12 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F3 CC 01 00 35 04 06 00 00 AC B2 8E 62 33 DC 57 B3 D9 0A 2A DA B0 [10:14:44]written 0, free lines is 4095 [10:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 7B EC 47 00 90 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 36 37 10 04 04 00 F3 CC 01 00 F4 03 04 00 CA B2 21 67 B6 04 01 00 00 6B B9 B8 F7 B6 41 C5 E6 [10:14:44]CommunicateWithHost err = 0 [10:14:44]CheckOFDResponse [10:14:44]1017 (14) - 77093643461234 [10:14:44]1041 (16) - 0000000000871767 [10:14:44]1040 (4) - 118003 [10:14:44]1012 (4) - 30.10.2024 04:15 [10:14:44]1206 (1) - 0 [10:14:44]OFD Sender: Remove packet 118003 [10:14:44]ProducePacketName [10:14:44]name=ofd_packets/00118003 [10:14:44]NVStorageDeleteData [10:14:44]Write to MH i2c: 01 00 00 BF 0A C9 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 BF 0A 00 00 00 00 00 A8 0C 84 [10:14:44]RasterBufferAndPrint [10:14:44]line [10:14:44]line [10:14:44]line [10:14:44]line [10:14:44]line [10:14:44]written 0, free lines is 3245 [10:14:44]MH_Cut [10:14:44]Write to MH i2c: D1 01 00 C6 0A 01 A2 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: D1 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: D1 01 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: D1 01 00 C6 0A 00 A1 [10:14:44]Write to MH i2c: 01 00 00 C7 0A D1 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]OFD Sender: No OFD packet to send [10:14:45]*** Cut start [10:14:45]*** Purtial cut [10:14:45]*** Stage 1: CUTSNS_PIN = 1 [10:14:45]Read from MH i2c: 01 [10:14:45]MH_I2C_Read... [10:14:45]*** Stop cut motor [10:14:45]*** Cut end [10:14:45]Read from MH i2c: 01 07 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 FF 0F E6 [10:14:45]process_action close_receipt done [10:14:45]requested_data is exist [10:14:45]produce_requested_data [10:14:45]requested_item fm.sn is exist - process it [10:14:45]wFMCommunicate request_size=4 [10:14:45]MH_SAM_APDU [10:14:45]CAPDU: 80 11 00 00 [10:14:45]Write to MH i2c: E2 08 00 C8 0A 80 11 00 00 00 00 00 00 4C [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:45]Read from MH i2c: E2 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 17 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 17 00 C8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A3 [10:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:14:45]wFMCommunicate OK [10:14:45]requested_item fd.num is exist - process it [10:14:45]SAM_PROTO_GetFieldsCounters [10:14:45]wFMCommunicate request_size=4 [10:14:45]MH_SAM_APDU [10:14:45]CAPDU: 80 13 00 00 [10:14:45]Write to MH i2c: E2 08 00 C9 0A 80 13 00 00 00 00 00 00 4F [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:46]Read from MH i2c: E2 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 62 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 62 00 C9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [10:14: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F3 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:46]wFMCommunicate OK [10:14:46]SAM_PROTO_GetFieldsCounters done [10:14:46]requested_item shift.num is exist - process it [10:14:46]requested_item shift.opened is exist - process it [10:14:46]req_shift_opened [10:14:46]FM_GetShiftState [10:14:46]SAM_PROTO_GetShiftState [10:14:46]wFMCommunicate request_size=4 [10:14:46]MH_SAM_APDU [10:14:46]CAPDU: 80 13 01 00 [10:14:46]Write to MH i2c: E2 08 00 CA 0A 80 13 01 00 00 00 00 00 51 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:46]Read from MH i2c: E2 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 0E 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 0E 00 CA 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 29 [10:14:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:14:46]wFMCommunicate OK [10:14:46]SAM_PROTO_GetShiftState done [10:14:46]FM_GetShiftState done [10:14:46]req_shift_opened done [10:14:46]requested_item shift.open_date is exist - process it [10:14:46]req_shift_open_date [10:14:46]req_shift_open_date done [10:14:46]produce_requested_data done [10:14:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118003,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:14:46]process_action_free close_receipt [10:14:46]json_value_free [10:14:46]json_value_free done [10:14:46]process_json_proto returns [10:14:46]Send response to host [10:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118003,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:14:46]free response buf [10:14:46]execute_script done [10:14:46]execute_script returns [10:14:46]free content buf [10:14:46]Sock 7.Close socket [10:14:46]Sock 7.Thread stoped [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:01]accept exits with 9 [10:16:01]New connection [10:16:01]New thread 3067559268 created [10:16:01]Thread 3067415908 joined [10:16:01]Waiting for new connection... [10:16:01] Sock 9.Parse request [10:16:01]Sock 9.Check first char [10:16:01]Sock 9.First char is OK [10:16:01]request: POST /json_proto HTTP/1.0 [10:16:01]Method: POST [10:16:01]URL: /json_proto [10:16:01]Method is POST - this is cgi request [10:16:01]url: /json_proto [10:16:01]query_string will be loaded in cgi processing [10:16:01]execute_cgi json_proto POST (null) [10:16:01]execute_cgi path=json_proto method=POST [10:16:01]POST find Content-Length [10:16:01]Host: 172.17.96.67:8080 [10:16:01]Content-Length: 677 [10:16:01]Content-Type: application/json [10:16:01] [10:16:01]POST finish read [10:16:01]Found Content-Length = 677 [10:16:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:16:01]execute_script... [10:16: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)245797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:16:01]POST & json_proto [10:16:01]process_json_proto [10:16:01]json parsed OK: [10:16:01]protocol is kg_v1.0 [10:16:01]action value=close_receipt [10:16:01]process_action close_receipt [10:16:01]cmd_close_receipt [10:16:01]MH_GetDate [10:16:01]Write to MH i2c: F0 00 00 CB 0A C4 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: F0 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: F0 09 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: F0 09 00 CB 0A 00 62 07 22 67 47 6C 1F 67 F8 [10:16:01]GetLastDocTimeStamp 1730283282 [10:16:01]current date 1730283362 [10:16:01]FM_GetShiftState [10:16:01]SAM_PROTO_GetShiftState [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 13 01 00 [10:16:01]Write to MH i2c: E2 08 00 CC 0A 80 13 01 00 00 00 00 00 53 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 0E 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 0E 00 CC 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2B [10:16:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:16:01]wFMCommunicate OK [10:16:01]SAM_PROTO_GetShiftState done [10:16:01]FM_GetShiftState done [10:16:01]opened in 1730246605 [10:16:01]opened+sec_in_day 1730333005 [10:16:01]quantity*price = 50041 [10:16:01]sum+1 = 50042 [10:16:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 64 30.10.2024 10:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118004 ФПД: 38986729542481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101602&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118004&fm=38986729542481&tin=02508201610067®Number=0000000000091782&sum=50000 [10:16:02]StoreToDocumentArchive [10:16:02]shift 545 fd 118004 [10:16:02]save to /storage/0545/doc_00118004 [10:16:02]save last doc name /storage/0545/doc_00118004 to /storage/kkm_last_doc_name [10:16:02]save OK [10:16:02]Clear old archive folders... [10:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:02]tlvbuf is 00677EA0 [10:16:02]SAM_PROTO_ClearQueue [10:16:02]wFMCommunicate request_size=4 [10:16:02]MH_SAM_APDU [10:16:02]CAPDU: 80 09 00 00 [10:16:02]Write to MH i2c: E2 08 00 D9 0A 80 09 00 00 00 00 00 00 55 [10:16:02]Write i2c OK [10:16:02]MH_I2C_Read... [10:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:02]Read from MH i2c: E2 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: E2 03 00 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [10:16:02]RAPDU: 90 00 [10:16:02]wFMCommunicate OK [10:16:02]SAM_PROTO_ClearQueue done [10:16:02]KKMCreateOFDPacket [10:16:02]OFDProtocolAddRootSTLVToBuf [10:16:02]FM_MakeSignedData [10:16:02]FM_MakeSignedData [10:16:02]SAM_PROTO_SignData [10:16:02]wFMCommunicate request_size=4 [10:16:02]MH_SAM_APDU [10:16:02]CAPDU: 80 0D 01 02 [10:16:02]Write to MH i2c: E2 08 00 DA 0A 80 0D 01 02 00 00 00 00 5D [10:16:02]Write i2c OK [10:16:02]MH_I2C_Read... [10:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:02]Read from MH i2c: E2 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: E2 03 00 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: E2 03 00 DA 0A 00 90 00 58 [10:16:02]RAPDU: 90 00 [10:16:02]wFMCommunicate OK [10:16:02]wFMCommunicate request_size=255 [10:16:02]MH_SAM_APDU [10:16:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CC 01 00 35 04 06 00 23 [10:16:03]Write to MH i2c: E2 02 01 DB 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CC 01 00 35 04 06 00 23 00 00 28 [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:03]Read from MH i2c: E2 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 03 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 03 00 DB 0A 00 90 00 59 [10:16:03]RAPDU: 90 00 [10:16:03]wFMCommunicate OK [10:16:03]wFMCommunicate request_size=10 [10:16:03]MH_SAM_APDU [10:16:03]CAPDU: 80 0D 02 02 05 75 4E 2A 53 51 [10:16:03]Write to MH i2c: E2 0D 00 DC 0A 80 0D 02 02 05 00 75 4E 2A 53 51 00 00 FB [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:03]Read from MH i2c: E2 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 03 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 03 00 DC 0A 00 90 00 5A [10:16:03]RAPDU: 90 00 [10:16:03]wFMCommunicate OK [10:16:03]wFMCommunicate request_size=4 [10:16:03]MH_SAM_APDU [10:16:03]CAPDU: 80 0D 03 02 [10:16:03]Write to MH i2c: E2 08 00 DD 0A 80 0D 03 02 00 00 00 00 62 [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:03]Read from MH i2c: E2 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 0B 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 0B 00 DD 0A 00 C8 1C E3 DF 16 5F 90 E3 90 00 F1 [10:16:03]RAPDU: C8 1C E3 DF 16 5F 90 E3 90 00 [10:16:03]wFMCommunicate OK [10:16:03]SAM_PROTO_SignData done [10:16:03]FM_MakeSignedData done [10:16:03]CreateOFDProtocolMessage [10:16:03]wFMCommunicate request_size=4 [10:16:03]MH_SAM_APDU [10:16:03]CAPDU: 80 11 00 00 [10:16:03]Write to MH i2c: E2 08 00 DE 0A 80 11 00 00 00 00 00 00 62 [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:03]Read from MH i2c: E2 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 17 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 17 00 DE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B9 [10:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:16:03]wFMCommunicate OK [10:16:03]CreateOFDProtocolMessage done [10:16:03]OFDSenderStorePacket 118004 [10:16:03]StoreOFDPacket docnum=118004 [10:16:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B3 7B 07 01 AF 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CC 01 00 35 04 06 00 23 75 4E 2A 53 51 C8 1C E3 DF 16 5F 90 E3 [10:16:03]CheckFolder [10:16:03]dirname=/storage/ofd_packets [10:16:03]CheckFolder done [10:16:03]ProducePacketName [10:16:03]name=ofd_packets/00118004 [10:16:03]NVStorageSaveData ofd_packets/00118004 [10:16:03]File name is /storage/ofd_packets/00118004 [10:16:03]Write 301 bytes [10:16:03]NVStorageSaveData done [10:16:03]OFDSenderStorePacket done [10:16:03]KKMCreateOFDPacket done [10:16:03]NVStorageSaveData kkm_last_timestamp [10:16:03]File name is /storage/kkm_last_timestamp [10:16:03]Write 4 bytes [10:16:03]NVStorageSaveData done [10:16:03]ExternCall_PrintAddStr [10:16:03]wPrintStart [10:16:03]Write to MH i2c: 01 00 00 DF 0A E9 [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: 01 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: 01 07 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: 01 07 00 DF 0A 00 00 00 00 00 FF 0F FE [10:16:03]RasterBufferAndPrint [10:16:03]line Счет N : (1)245797 [10:16:03]line ИНН: 02508201610067 [10:16:03]line Контрольно-Кассовый Чек [10:16:03]line ПРОДАЖА [10:16:03]line ТРК (МРК, ГНК) : 21 [10:16:03]line Товар: 2710124130 [10:16:03]line Аи-92-К-2 [10:16:03]line 7.480 * 66.90 [10:16:03]line = 500.41 [10:16:03]line НДС 12% НСП 1% [10:16:03]line > о реализуемом товаре [10:16:03]line ОКРУГЛЕНИЕ: -0.41 [10:16:03]line ИТОГО: 500.00 [10:16:03]line Внесено: 500.00 [10:16:03]line СДАЧА: 0.00 [10:16:03]line НСП 1% : 4.43 [10:16:03]line НДС 12% : 53.14 [10:16:03]line Наличными: 500.00 [10:16:03]line Безнал.: 0.00 [10:16:03]line Место: АЗС № 173 "Партнер Нефть" [10:16:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:16:03]line СНО: Общий режим [10:16:03]line Чек 64 30.10.2024 10:16 [10:16:03]line Смена: 545 ФФД: 1.0 [10:16:03]line ЗНМ: 0300000115 [10:16:03]line РНМ: 0000000000091782 [10:16:03]line Версия ККМ: 001 [10:16:03]line ФМ: 0000000000871767 [10:16:03]line ФД: 118004 [10:16:03]line ФПД: 38986729542481 [10:16:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101602&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118004&fm=38986729542481&tin=02508201610067®Number=0000000000091782&sum=50000 [10:16:03]written 0, free lines is 4095 [10:16:03]OFD Sender: Processing packet 118004 [packets to send 77, broken 76] [10:16:03]ProducePacketName [10:16:03]name=ofd_packets/00118004 [10:16:03]OFD Sender: To server: pG, [10:16:03]CommunicateWithHost lk.salyk.kg:30040 [10:16:03]ConnectInit lk.salyk.kg [10:16:03]Connected sock=10 [10:16: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 36 37 0F 01 00 00 B3 7B 07 01 AF 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 07 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CC 01 00 35 04 06 00 23 75 4E 2A 53 51 C8 1C E3 DF 16 5F 90 E3 [10:16:03]Write to MH i2c: 01 00 00 09 0B 14 [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: 01 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: 01 07 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 A8 0C CF [10:16:03]RasterBufferAndPrint [10:16:03]line [10:16:03]line [10:16:03]line [10:16:03]line [10:16:03]line [10:16:03]written 0, free lines is 3245 [10:16:03]MH_Cut [10:16:03]Write to MH i2c: D1 01 00 10 0B 01 ED [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: D1 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: D1 01 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: D1 01 00 10 0B 00 EC [10:16:03]Write to MH i2c: 01 00 00 11 0B 1C [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16: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 36 37 4F 00 00 00 96 76 47 00 22 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F4 CC 01 00 F4 03 04 00 19 B3 21 67 B6 04 01 00 00 DD 1A A8 82 9B C8 3B 92 [10:16:03]CommunicateWithHost err = 0 [10:16:03]CheckOFDResponse [10:16:03]1017 (14) - 77093643461234 [10:16:03]1041 (16) - 0000000000871767 [10:16:03]1040 (4) - 118004 [10:16:03]1012 (4) - 30.10.2024 04:16 [10:16:03]1206 (1) - 0 [10:16:03]OFD Sender: Remove packet 118004 [10:16:03]ProducePacketName [10:16:03]name=ofd_packets/00118004 [10:16:03]NVStorageDeleteData [10:16:04]OFD Sender: No OFD packet to send [10:16:04]*** Cut start [10:16:04]*** Purtial cut [10:16:04]*** Stage 1: CUTSNS_PIN = 1 [10:16:05]Read from MH i2c: 01 [10:16:05]MH_I2C_Read... [10:16:05]*** Stop cut motor [10:16:05]*** Cut end [10:16:05]Read from MH i2c: 01 07 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: 01 07 00 11 0B 00 00 00 00 00 FF 0F 31 [10:16:05]process_action close_receipt done [10:16:05]requested_data is exist [10:16:05]produce_requested_data [10:16:05]requested_item fm.sn is exist - process it [10:16:05]wFMCommunicate request_size=4 [10:16:05]MH_SAM_APDU [10:16:05]CAPDU: 80 11 00 00 [10:16:05]Write to MH i2c: E2 08 00 12 0B 80 11 00 00 00 00 00 00 97 [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 17 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 17 00 12 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EE [10:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:16:05]wFMCommunicate OK [10:16:05]requested_item fd.num is exist - process it [10:16:05]SAM_PROTO_GetFieldsCounters [10:16:05]wFMCommunicate request_size=4 [10:16:05]MH_SAM_APDU [10:16:05]CAPDU: 80 13 00 00 [10:16:05]Write to MH i2c: E2 08 00 13 0B 80 13 00 00 00 00 00 00 9A [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 62 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 62 00 13 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10:16: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F4 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:05]wFMCommunicate OK [10:16:05]SAM_PROTO_GetFieldsCounters done [10:16:05]requested_item shift.num is exist - process it [10:16:05]requested_item shift.opened is exist - process it [10:16:05]req_shift_opened [10:16:05]FM_GetShiftState [10:16:05]SAM_PROTO_GetShiftState [10:16:05]wFMCommunicate request_size=4 [10:16:05]MH_SAM_APDU [10:16:05]CAPDU: 80 13 01 00 [10:16:05]Write to MH i2c: E2 08 00 14 0B 80 13 01 00 00 00 00 00 9C [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 0E 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 0E 00 14 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 74 [10:16:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:16:05]wFMCommunicate OK [10:16:05]SAM_PROTO_GetShiftState done [10:16:05]FM_GetShiftState done [10:16:05]req_shift_opened done [10:16:05]requested_item shift.open_date is exist - process it [10:16:05]req_shift_open_date [10:16:05]req_shift_open_date done [10:16:05]produce_requested_data done [10:16:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118004,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:16:05]process_action_free close_receipt [10:16:05]json_value_free [10:16:05]json_value_free done [10:16:05]process_json_proto returns [10:16:05]Send response to host [10:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118004,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:16:05]free response buf [10:16:05]execute_script done [10:16:05]execute_script returns [10:16:05]free content buf [10:16:05]Sock 9.Close socket [10:16:05]Sock 9.Thread stoped [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:14]int [10:16:14]Write to MH i2c: 01 00 00 15 0B 20 [10:16:14]*** FLAG_PRN_PAP1 set [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: 01 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: 01 07 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: 01 07 00 15 0B 00 01 00 00 00 FF 0F 36 [10:16:14]state=0 [10:16:14]No paper [10:16:15]int [10:16:15]Write to MH i2c: 01 00 00 16 0B 21 [10:16:15]*** FLAG_PRN_PAP2 set [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 16 0B 00 03 00 00 00 FF 0F 39 [10:16:15]state=0 [10:16:15]No paper [10:16:15]Cover opened [10:16:19]OFD Sender: No OFD packet to send [10:16:20]Write to MH i2c: 01 00 00 17 0B 22 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 07 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 07 00 17 0B 00 03 00 00 00 FF 0F 3A [10:16:20]state=3 [10:16:20]No paper [10:16:20]Cover opened [10:16:24]OFD Sender: No OFD packet to send [10:16:25]Write to MH i2c: 01 00 00 18 0B 23 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: 01 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: 01 07 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: 01 07 00 18 0B 00 03 00 00 00 FF 0F 3B [10:16:25]state=3 [10:16:25]No paper [10:16:25]Cover opened [10:16:29]OFD Sender: No OFD packet to send [10:16:30]Write to MH i2c: 01 00 00 19 0B 24 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: 01 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: 01 07 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: 01 07 00 19 0B 00 03 00 00 00 FF 0F 3C [10:16:30]state=3 [10:16:30]No paper [10:16:30]Cover opened [10:16:34]OFD Sender: No OFD packet to send [10:16:35]Write to MH i2c: 01 00 00 1A 0B 25 [10:16:35]Write i2c OK [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: 01 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: 01 07 00 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: 01 07 00 1A 0B 00 03 00 00 00 FF 0F 3D [10:16:35]state=3 [10:16:35]No paper [10:16:35]Cover opened [10:16:36]int [10:16:36]Write to MH i2c: 01 00 00 1B 0B 26 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: 01 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: 01 07 00 [10:16:36]MH_I2C_Read... [10:16:36]*** FLAG_PRN_PAP2 reset [10:16:36]*** FLAG_PRN_PAP1 reset [10:16:36]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 FF 0F 3B [10:16:36]state=3 [10:16:36]Cover closed [10:16:39]int [10:16:39]Write to MH i2c: 01 00 00 1C 0B 27 [10:16:39]*** FLAG_PRN_PAP1 set [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 1C 0B 00 01 00 00 00 FF 0F 3D [10:16:39]state=0 [10:16:39]No paper [10:16:39]int [10:16:39]Write to MH i2c: 01 00 00 1D 0B 28 [10:16:39]*** FLAG_PRN_PAP2 set [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 1D 0B 00 03 00 00 00 FF 0F 40 [10:16:39]state=0 [10:16:39]No paper [10:16:39]Cover opened [10:16:39]OFD Sender: No OFD packet to send [10:16:40]int [10:16:40]Write to MH i2c: 01 00 00 1E 0B 29 [10:16:40]*** FLAG_PRN_PAP1 reset [10:16:40]*** FLAG_PRN_PAP2 reset [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: 01 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: 01 07 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 FF 0F 3E [10:16:40]state=3 [10:16:40]Cover closed [10:16:44]OFD Sender: No OFD packet to send [10:16:45]int [10:16:45]Write to MH i2c: 01 00 00 1F 0B 2A [10:16:45]*** FLAG_PRN_KEY set [10:16:45]Write i2c OK [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 07 00 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 07 00 1F 0B 00 08 00 00 00 FF 0F 47 [10:16:45]state=0 [10:16:45]Key pressed [10:16:45]Feed [10:16:45]Write to MH i2c: D8 00 00 20 0B 02 [10:16:45]Write i2c OK [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: D8 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: D8 01 00 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: D8 01 00 20 0B 00 03 [10:16:45]int [10:16:45]Write to MH i2c: 01 00 00 21 0B 2C [10:16:45]Write i2c OK [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 07 00 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 07 00 21 0B 00 48 00 00 00 3C 00 B7 [10:16:45]state=2 [10:16:45]Key pressed [10:16:45]int [10:16:45]Write to MH i2c: 01 00 00 22 0B 2D [10:16:45]*** FLAG_PRN_KEY reset [10:16:45]Write i2c OK [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 07 00 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: 01 07 00 22 0B 00 00 00 00 00 F5 0F 38 [10:16:45]state=2 [10:16:45]Stop feed [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:51]accept exits with 7 [10:19:51]New connection [10:19:51]New thread 3067415908 created [10:19:51]Thread 3067559268 joined [10:19:51]Waiting for new connection... [10:19:51] Sock 7.Parse request [10:19:51]Sock 7.Check first char [10:19:51]Sock 7.First char is OK [10:19:51]request: POST /json_proto HTTP/1.0 [10:19:51]Method: POST [10:19:51]URL: /json_proto [10:19:51]Method is POST - this is cgi request [10:19:51]url: /json_proto [10:19:51]query_string will be loaded in cgi processing [10:19:51]execute_cgi json_proto POST (null) [10:19:51]execute_cgi path=json_proto method=POST [10:19:51]POST find Content-Length [10:19:51]Host: 172.17.96.67:8080 [10:19:51]Content-Length: 679 [10:19:51]Content-Type: application/json [10:19:51] [10:19:51]POST finish read [10:19:51]Found Content-Length = 679 [10:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:51]execute_script... [10:19: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)245798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:51]POST & json_proto [10:19:51]process_json_proto [10:19:51]json parsed OK: [10:19:51]protocol is kg_v1.0 [10:19:51]action value=close_receipt [10:19:51]process_action close_receipt [10:19:51]cmd_close_receipt [10:19:51]MH_GetDate [10:19:51]Write to MH i2c: F0 00 00 23 0B 1D [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 09 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 09 00 23 0B 00 47 08 22 67 47 6C 1F 67 37 [10:19:51]GetLastDocTimeStamp 1730283362 [10:19:51]current date 1730283591 [10:19:51]FM_GetShiftState [10:19:51]SAM_PROTO_GetShiftState [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 13 01 00 [10:19:51]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 84 [10:19:51]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_GetShiftState done [10:19:51]FM_GetShiftState done [10:19:51]opened in 1730246605 [10:19:51]opened+sec_in_day 1730333005 [10:19:51]quantity*price = 100050 [10:19:51]sum+1 = 100052 [10:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 65 30.10.2024 10:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118005 ФПД: 161382678282377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101951&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118005&fm=161382678282377&tin=02508201610067®Number=0000000000091782&sum=100000 [10:19:52]StoreToDocumentArchive [10:19:52]shift 545 fd 118005 [10:19:52]save to /storage/0545/doc_00118005 [10:19:52]save last doc name /storage/0545/doc_00118005 to /storage/kkm_last_doc_name [10:19:52]save OK [10:19:52]Clear old archive folders... [10:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:52]tlvbuf is 0062CB40 [10:19:52]SAM_PROTO_ClearQueue [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 09 00 00 [10:19:52]Write to MH i2c: E2 08 00 31 0B 80 09 00 00 00 00 00 00 AE [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [10:19:52]RAPDU: 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_ClearQueue done [10:19:52]KKMCreateOFDPacket [10:19:52]OFDProtocolAddRootSTLVToBuf [10:19:52]FM_MakeSignedData [10:19:52]FM_MakeSignedData [10:19:52]SAM_PROTO_SignData [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 0D 01 02 [10:19:52]Write to MH i2c: E2 08 00 32 0B 80 0D 01 02 00 00 00 00 B6 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [10:19:52]RAPDU: 90 00 [10:19:52]wFMCommunicate OK [10:19:52]wFMCommunicate request_size=255 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 47 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CC 01 00 35 04 06 00 92 C6 D5 36 [10:19:52]Write to MH i2c: E2 02 01 33 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 47 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CC 01 00 35 04 06 00 92 C6 D5 36 00 00 9F [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [10:19:52]RAPDU: 90 00 [10:19:52]wFMCommunicate OK [10:19:52]wFMCommunicate request_size=7 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 0D 02 02 02 40 89 [10:19:52]Write to MH i2c: E2 0A 00 34 0B 80 0D 02 02 02 00 40 89 00 00 86 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [10:19:52]RAPDU: 90 00 [10:19:52]wFMCommunicate OK [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 0D 03 02 [10:19:52]Write to MH i2c: E2 08 00 35 0B 80 0D 03 02 00 00 00 00 BB [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0B 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0B 00 35 0B 00 DD 45 12 9A B9 77 3D AF 90 00 A6 [10:19:52]RAPDU: DD 45 12 9A B9 77 3D AF 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_SignData done [10:19:52]FM_MakeSignedData done [10:19:52]CreateOFDProtocolMessage [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 11 00 00 [10:19:52]Write to MH i2c: E2 08 00 36 0B 80 11 00 00 00 00 00 00 BB [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 36 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 12 [10:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:19:52]wFMCommunicate OK [10:19:52]CreateOFDProtocolMessage done [10:19:52]OFDSenderStorePacket 118005 [10:19:52]StoreOFDPacket docnum=118005 [10:19:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 A4 C5 04 01 ED 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 32 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 41 00 00 00 F4 03 04 00 47 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CC 01 00 35 04 06 00 92 C6 D5 36 40 89 DD 45 12 9A B9 77 3D AF [10:19:52]CheckFolder [10:19:52]dirname=/storage/ofd_packets [10:19:52]CheckFolder done [10:19:52]ProducePacketName [10:19:52]name=ofd_packets/00118005 [10:19:52]NVStorageSaveData ofd_packets/00118005 [10:19:52]File name is /storage/ofd_packets/00118005 [10:19:52]Write 298 bytes [10:19:52]NVStorageSaveData done [10:19:52]OFDSenderStorePacket done [10:19:52]KKMCreateOFDPacket done [10:19:52]NVStorageSaveData kkm_last_timestamp [10:19:52]File name is /storage/kkm_last_timestamp [10:19:52]Write 4 bytes [10:19:52]NVStorageSaveData done [10:19:52]ExternCall_PrintAddStr [10:19:52]wPrintStart [10:19:52]Write to MH i2c: 01 00 00 37 0B 42 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 07 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 FF 0F 57 [10:19:52]RasterBufferAndPrint [10:19:52]line Счет N : (1)245798 [10:19:52]line ИНН: 02508201610067 [10:19:52]line Контрольно-Кассовый Чек [10:19:52]line ПРОДАЖА [10:19:52]line ТРК (МРК, ГНК) : 13 [10:19:52]line Товар: 2710194210 [10:19:52]line ДТ-К-2 [10:19:52]line 13.130 * 76.20 [10:19:52]line = 1000.51 [10:19:52]line НДС 12% НСП 1% [10:19:52]line > о реализуемом товаре [10:19:52]line ОКРУГЛЕНИЕ: -0.51 [10:19:52]line ИТОГО: 1000.00 [10:19:52]line Внесено: 1000.00 [10:19:52]line СДАЧА: 0.00 [10:19:52]line НСП 1% : 8.85 [10:19:52]line НДС 12% : 106.25 [10:19:52]line Наличными: 1000.00 [10:19:52]line Безнал.: 0.00 [10:19:52]line Место: АЗС № 173 "Партнер Нефть" [10:19:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:19:52]line СНО: Общий режим [10:19:52]line Чек 65 30.10.2024 10:19 [10:19:52]line Смена: 545 ФФД: 1.0 [10:19:52]line ЗНМ: 0300000115 [10:19:52]line РНМ: 0000000000091782 [10:19:52]line Версия ККМ: 001 [10:19:52]line ФМ: 0000000000871767 [10:19:52]line ФД: 118005 [10:19:52]line ФПД: 161382678282377 [10:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101951&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118005&fm=161382678282377&tin=02508201610067®Number=0000000000091782&sum=100000 [10:19:53]OFD Sender: Processing packet 118005 [packets to send 77, broken 76] [10:19:53]ProducePacketName [10:19:53]name=ofd_packets/00118005 [10:19:53]OFD Sender: To server: pG, [10:19:53]CommunicateWithHost lk.salyk.kg:30040 [10:19:53]ConnectInit lk.salyk.kg [10:19:53]written 0, free lines is 4095 [10:19:53]Connected sock=11 [10:19: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 36 37 0C 01 00 00 A4 C5 04 01 ED 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 32 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 41 00 00 00 F4 03 04 00 47 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F5 CC 01 00 35 04 06 00 92 C6 D5 36 40 89 DD 45 12 9A B9 77 3D AF [10:19: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 36 37 4F 00 00 00 B2 A4 47 00 37 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 36 37 10 04 04 00 F5 CC 01 00 F4 03 04 00 FF B3 21 67 B6 04 01 00 00 F8 9E 57 5A A2 96 22 5E [10:19:53]CommunicateWithHost err = 0 [10:19:53]CheckOFDResponse [10:19:53]1017 (14) - 77093643461234 [10:19:53]1041 (16) - 0000000000871767 [10:19:53]1040 (4) - 118005 [10:19:53]1012 (4) - 30.10.2024 04:20 [10:19:53]1206 (1) - 0 [10:19:53]OFD Sender: Remove packet 118005 [10:19:53]ProducePacketName [10:19:53]name=ofd_packets/00118005 [10:19:53]NVStorageDeleteData [10:19:53]Write to MH i2c: 01 00 00 61 0B 6C [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 61 0B 00 00 00 00 00 AA 0C 29 [10:19:53]RasterBufferAndPrint [10:19:53]line [10:19:53]line [10:19:53]line [10:19:53]line [10:19:53]line [10:19:53]written 0, free lines is 3246 [10:19:53]MH_Cut [10:19:53]Write to MH i2c: D1 01 00 68 0B 01 45 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: D1 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: D1 01 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: D1 01 00 68 0B 00 44 [10:19:53]Write to MH i2c: 01 00 00 69 0B 74 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:54]OFD Sender: No OFD packet to send [10:19:54]*** Cut start [10:19:54]*** Purtial cut [10:19:54]*** Stage 1: CUTSNS_PIN = 1 [10:19:54]Read from MH i2c: 01 [10:19:54]MH_I2C_Read... [10:19:54]*** Stop cut motor [10:19:54]*** Cut end [10:19:54]Read from MH i2c: 01 07 00 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 FF 0F 89 [10:19:54]process_action close_receipt done [10:19:54]requested_data is exist [10:19:54]produce_requested_data [10:19:54]requested_item fm.sn is exist - process it [10:19:54]wFMCommunicate request_size=4 [10:19:54]MH_SAM_APDU [10:19:54]CAPDU: 80 11 00 00 [10:19:54]Write to MH i2c: E2 08 00 6A 0B 80 11 00 00 00 00 00 00 EF [10:19:54]Write i2c OK [10:19:54]MH_I2C_Read... [10:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:54]Read from MH i2c: E2 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: E2 17 00 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: E2 17 00 6A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 46 [10:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:19:54]wFMCommunicate OK [10:19:54]requested_item fd.num is exist - process it [10:19:54]SAM_PROTO_GetFieldsCounters [10:19:54]wFMCommunicate request_size=4 [10:19:54]MH_SAM_APDU [10:19:54]CAPDU: 80 13 00 00 [10:19:54]Write to MH i2c: E2 08 00 6B 0B 80 13 00 00 00 00 00 00 F2 [10:19:54]Write i2c OK [10:19:54]MH_I2C_Read... [10:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:55]Read from MH i2c: E2 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 62 00 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 62 00 6B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:19: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F5 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:55]wFMCommunicate OK [10:19:55]SAM_PROTO_GetFieldsCounters done [10:19:55]requested_item shift.num is exist - process it [10:19:55]requested_item shift.opened is exist - process it [10:19:55]req_shift_opened [10:19:55]FM_GetShiftState [10:19:55]SAM_PROTO_GetShiftState [10:19:55]wFMCommunicate request_size=4 [10:19:55]MH_SAM_APDU [10:19:55]CAPDU: 80 13 01 00 [10:19:55]Write to MH i2c: E2 08 00 6C 0B 80 13 01 00 00 00 00 00 F4 [10:19:55]Write i2c OK [10:19:55]MH_I2C_Read... [10:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:55]Read from MH i2c: E2 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 0E 00 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 0E 00 6C 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CC [10:19:55]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:19:55]wFMCommunicate OK [10:19:55]SAM_PROTO_GetShiftState done [10:19:55]FM_GetShiftState done [10:19:55]req_shift_opened done [10:19:55]requested_item shift.open_date is exist - process it [10:19:55]req_shift_open_date [10:19:55]req_shift_open_date done [10:19:55]produce_requested_data done [10:19:55]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118005,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:19:55]process_action_free close_receipt [10:19:55]json_value_free [10:19:55]json_value_free done [10:19:55]process_json_proto returns [10:19:55]Send response to host [10:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118005,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:19:55]free response buf [10:19:55]execute_script done [10:19:55]execute_script returns [10:19:55]free content buf [10:19:55]Sock 7.Close socket [10:19:55]Sock 7.Thread stoped [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:33]accept exits with 10 [10:20:33]New connection [10:20:33]New thread 3067559268 created [10:20:33]Thread 3067415908 joined [10:20:33]Waiting for new connection... [10:20:33] Sock 10.Parse request [10:20:33]Sock 10.Check first char [10:20:33]Sock 10.First char is OK [10:20:33]request: POST /json_proto HTTP/1.0 [10:20:33]Method: POST [10:20:33]URL: /json_proto [10:20:33]Method is POST - this is cgi request [10:20:33]url: /json_proto [10:20:33]query_string will be loaded in cgi processing [10:20:33]execute_cgi json_proto POST (null) [10:20:33]execute_cgi path=json_proto method=POST [10:20:33]POST find Content-Length [10:20:33]Host: 172.17.96.67:8080 [10:20:33]Content-Length: 677 [10:20:33]Content-Type: application/json [10:20:33] [10:20:33]POST finish read [10:20:33]Found Content-Length = 677 [10:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:20:33]execute_script... [10:20:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:20:33]POST & json_proto [10:20:33]process_json_proto [10:20:33]json parsed OK: [10:20:33]protocol is kg_v1.0 [10:20:33]action value=close_receipt [10:20:33]process_action close_receipt [10:20:33]cmd_close_receipt [10:20:33]MH_GetDate [10:20:33]Write to MH i2c: F0 00 00 6D 0B 67 [10:20:33]Write i2c OK [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: F0 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: F0 09 00 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: F0 09 00 6D 0B 00 71 08 22 67 47 6C 1F 67 AB [10:20:33]GetLastDocTimeStamp 1730283591 [10:20:33]current date 1730283633 [10:20:33]FM_GetShiftState [10:20:33]SAM_PROTO_GetShiftState [10:20:33]wFMCommunicate request_size=4 [10:20:33]MH_SAM_APDU [10:20:33]CAPDU: 80 13 01 00 [10:20:33]Write to MH i2c: E2 08 00 6E 0B 80 13 01 00 00 00 00 00 F6 [10:20:33]Write i2c OK [10:20:33]MH_I2C_Read... [10:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:33]Read from MH i2c: E2 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 0E 00 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 0E 00 6E 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CE [10:20:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:20:33]wFMCommunicate OK [10:20:33]SAM_PROTO_GetShiftState done [10:20:33]FM_GetShiftState done [10:20:33]opened in 1730246605 [10:20:33]opened+sec_in_day 1730333005 [10:20:33]quantity*price = 50041 [10:20:33]sum+1 = 50042 [10:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 66 30.10.2024 10:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118006 ФПД: 192561879219777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102033&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118006&fm=192561879219777&tin=02508201610067®Number=0000000000091782&sum=50000 [10:20:34]StoreToDocumentArchive [10:20:34]shift 545 fd 118006 [10:20:34]save to /storage/0545/doc_00118006 [10:20:34]save last doc name /storage/0545/doc_00118006 to /storage/kkm_last_doc_name [10:20:34]save OK [10:20:34]Clear old archive folders... [10:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:34]tlvbuf is 0060C100 [10:20:34]SAM_PROTO_ClearQueue [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 09 00 00 [10:20:34]Write to MH i2c: E2 08 00 7B 0B 80 09 00 00 00 00 00 00 F8 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]SAM_PROTO_ClearQueue done [10:20:34]KKMCreateOFDPacket [10:20:34]OFDProtocolAddRootSTLVToBuf [10:20:34]FM_MakeSignedData [10:20:34]FM_MakeSignedData [10:20:34]SAM_PROTO_SignData [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 0D 01 02 [10:20:34]Write to MH i2c: E2 08 00 7C 0B 80 0D 01 02 00 00 00 00 00 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]wFMCommunicate request_size=255 [10:20:34]MH_SAM_APDU [10:20: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 71 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CC 01 00 35 04 06 00 AF [10:20:34]Write to MH i2c: E2 02 01 7D 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 71 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CC 01 00 35 04 06 00 AF 00 00 6B [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]wFMCommunicate request_size=10 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 0D 02 02 05 22 4E 68 7E 41 [10:20:34]Write to MH i2c: E2 0D 00 7E 0B 80 0D 02 02 05 00 22 4E 68 7E 41 00 00 A4 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [10:20:34]RAPDU: 90 00 [10:20:34]wFMCommunicate OK [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 0D 03 02 [10:20:34]Write to MH i2c: E2 08 00 7F 0B 80 0D 03 02 00 00 00 00 05 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 0B 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 0B 00 7F 0B 00 8B 21 C5 D5 88 E0 6C 1D 90 00 3D [10:20:34]RAPDU: 8B 21 C5 D5 88 E0 6C 1D 90 00 [10:20:34]wFMCommunicate OK [10:20:34]SAM_PROTO_SignData done [10:20:34]FM_MakeSignedData done [10:20:34]CreateOFDProtocolMessage [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 11 00 00 [10:20:34]Write to MH i2c: E2 08 00 80 0B 80 11 00 00 00 00 00 00 05 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 17 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 17 00 80 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5C [10:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:20:34]wFMCommunicate OK [10:20:34]CreateOFDProtocolMessage done [10:20:34]OFDSenderStorePacket 118006 [10:20:34]StoreOFDPacket docnum=118006 [10:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7E C1 07 01 72 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 71 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CC 01 00 35 04 06 00 AF 22 4E 68 7E 41 8B 21 C5 D5 88 E0 6C 1D [10:20:34]CheckFolder [10:20:34]dirname=/storage/ofd_packets [10:20:34]CheckFolder done [10:20:34]ProducePacketName [10:20:34]name=ofd_packets/00118006 [10:20:34]NVStorageSaveData ofd_packets/00118006 [10:20:34]File name is /storage/ofd_packets/00118006 [10:20:34]Write 301 bytes [10:20:34]NVStorageSaveData done [10:20:34]OFDSenderStorePacket done [10:20:34]KKMCreateOFDPacket done [10:20:34]NVStorageSaveData kkm_last_timestamp [10:20:34]File name is /storage/kkm_last_timestamp [10:20:34]Write 4 bytes [10:20:34]NVStorageSaveData done [10:20:34]ExternCall_PrintAddStr [10:20:34]wPrintStart [10:20:34]Write to MH i2c: 01 00 00 81 0B 8C [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 81 0B 00 00 00 00 00 FF 0F A1 [10:20:34]RasterBufferAndPrint [10:20:34]line Счет N : (1)245799 [10:20:34]line ИНН: 02508201610067 [10:20:34]line Контрольно-Кассовый Чек [10:20:34]line ПРОДАЖА [10:20:34]line ТРК (МРК, ГНК) : 21 [10:20:34]line Товар: 2710124130 [10:20:34]line Аи-92-К-2 [10:20:34]line 7.480 * 66.90 [10:20:34]line = 500.41 [10:20:34]line НДС 12% НСП 1% [10:20:34]line > о реализуемом товаре [10:20:34]line ОКРУГЛЕНИЕ: -0.41 [10:20:34]line ИТОГО: 500.00 [10:20:34]line Внесено: 500.00 [10:20:34]line СДАЧА: 0.00 [10:20:34]line НСП 1% : 4.43 [10:20:34]line НДС 12% : 53.14 [10:20:34]line Наличными: 500.00 [10:20:34]line Безнал.: 0.00 [10:20:34]line Место: АЗС № 173 "Партнер Нефть" [10:20:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:20:34]line СНО: Общий режим [10:20:34]line Чек 66 30.10.2024 10:20 [10:20:34]line Смена: 545 ФФД: 1.0 [10:20:34]line ЗНМ: 0300000115 [10:20:34]line РНМ: 0000000000091782 [10:20:34]line Версия ККМ: 001 [10:20:34]line ФМ: 0000000000871767 [10:20:34]line ФД: 118006 [10:20:34]line ФПД: 192561879219777 [10:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102033&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118006&fm=192561879219777&tin=02508201610067®Number=0000000000091782&sum=50000 [10:20:35]written 0, free lines is 4095 [10:20:35]OFD Sender: Processing packet 118006 [packets to send 77, broken 76] [10:20:35]ProducePacketName [10:20:35]name=ofd_packets/00118006 [10:20:35]OFD Sender: To server: pG, [10:20:35]CommunicateWithHost lk.salyk.kg:30040 [10:20:35]ConnectInit lk.salyk.kg [10:20:35]Connected sock=7 [10:20: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 36 37 0F 01 00 00 7E C1 07 01 72 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 71 08 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CC 01 00 35 04 06 00 AF 22 4E 68 7E 41 8B 21 C5 D5 88 E0 6C 1D [10:20: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 36 37 4F 00 00 00 99 92 47 00 C5 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F6 CC 01 00 F4 03 04 00 29 B4 21 67 B6 04 01 00 00 B7 E1 E1 06 F1 B1 1E C0 [10:20:35]CommunicateWithHost err = 0 [10:20:35]CheckOFDResponse [10:20:35]1017 (14) - 77093643461234 [10:20:35]1041 (16) - 0000000000871767 [10:20:35]1040 (4) - 118006 [10:20:35]1012 (4) - 30.10.2024 04:20 [10:20:35]1206 (1) - 0 [10:20:35]OFD Sender: Remove packet 118006 [10:20:35]ProducePacketName [10:20:35]name=ofd_packets/00118006 [10:20:35]NVStorageDeleteData [10:20:35]Write to MH i2c: 01 00 00 AB 0B B6 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 A6 0C 6F [10:20:35]RasterBufferAndPrint [10:20:35]line [10:20:35]line [10:20:35]line [10:20:35]line [10:20:35]line [10:20:35]written 0, free lines is 3242 [10:20:35]MH_Cut [10:20:35]Write to MH i2c: D1 01 00 B2 0B 01 8F [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: D1 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: D1 01 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: D1 01 00 B2 0B 00 8E [10:20:35]Write to MH i2c: 01 00 00 B3 0B BE [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:36]OFD Sender: No OFD packet to send [10:20:36]*** Cut start [10:20:36]*** Purtial cut [10:20:36]*** Stage 1: CUTSNS_PIN = 1 [10:20:36]Read from MH i2c: 01 [10:20:36]MH_I2C_Read... [10:20:36]*** Stop cut motor [10:20:36]*** Cut end [10:20:36]Read from MH i2c: 01 07 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: 01 07 00 B3 0B 00 00 00 00 00 FF 0F D3 [10:20:36]process_action close_receipt done [10:20:36]requested_data is exist [10:20:36]produce_requested_data [10:20:36]requested_item fm.sn is exist - process it [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 11 00 00 [10:20:36]Write to MH i2c: E2 08 00 B4 0B 80 11 00 00 00 00 00 00 39 [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:36]Read from MH i2c: E2 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 17 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 17 00 B4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 90 [10:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:20:36]wFMCommunicate OK [10:20:36]requested_item fd.num is exist - process it [10:20:36]SAM_PROTO_GetFieldsCounters [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 13 00 00 [10:20:36]Write to MH i2c: E2 08 00 B5 0B 80 13 00 00 00 00 00 00 3C [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 62 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 62 00 B5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [10:20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F6 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_GetFieldsCounters done [10:20:37]requested_item shift.num is exist - process it [10:20:37]requested_item shift.opened is exist - process it [10:20:37]req_shift_opened [10:20:37]FM_GetShiftState [10:20:37]SAM_PROTO_GetShiftState [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 13 01 00 [10:20:37]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 16 [10:20:37]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_GetShiftState done [10:20:37]FM_GetShiftState done [10:20:37]req_shift_opened done [10:20:37]requested_item shift.open_date is exist - process it [10:20:37]req_shift_open_date [10:20:37]req_shift_open_date done [10:20:37]produce_requested_data done [10:20:37]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118006,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:20:37]process_action_free close_receipt [10:20:37]json_value_free [10:20:37]json_value_free done [10:20:37]process_json_proto returns [10:20:37]Send response to host [10:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118006,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:20:37]free response buf [10:20:37]execute_script done [10:20:37]execute_script returns [10:20:37]free content buf [10:20:37]Sock 10.Close socket [10:20:37]Sock 10.Thread stoped [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:49]accept exits with 9 [10:23:49]New connection [10:23:49]New thread 3067415908 created [10:23:49]Thread 3067559268 joined [10:23:49]Waiting for new connection... [10:23:49] Sock 9.Parse request [10:23:49]Sock 9.Check first char [10:23:49]Sock 9.First char is OK [10:23:49]request: POST /json_proto HTTP/1.0 [10:23:49]Method: POST [10:23:49]URL: /json_proto [10:23:49]Method is POST - this is cgi request [10:23:49]url: /json_proto [10:23:49]query_string will be loaded in cgi processing [10:23:49]execute_cgi json_proto POST (null) [10:23:49]execute_cgi path=json_proto method=POST [10:23:49]POST find Content-Length [10:23:49]Host: 172.17.96.67:8080 [10:23:49]Content-Length: 978 [10:23:49]Content-Type: application/json [10:23:49] [10:23:49]POST finish read [10:23:49]Found Content-Length = 978 [10:23:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:49]execute_script... [10:23:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:49]POST & json_proto [10:23:49]process_json_proto [10:23:49]json parsed OK: [10:23:49]protocol is kg_v1.0 [10:23:49]action value=close_receipt [10:23:49]process_action close_receipt [10:23:49]cmd_close_receipt [10:23:49]MH_GetDate [10:23:49]Write to MH i2c: F0 00 00 B7 0B B1 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 09 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 09 00 B7 0B 00 36 09 22 67 47 6C 1F 67 BB [10:23:49]GetLastDocTimeStamp 1730283633 [10:23:49]current date 1730283830 [10:23:49]FM_GetShiftState [10:23:49]SAM_PROTO_GetShiftState [10:23:49]wFMCommunicate request_size=4 [10:23:49]MH_SAM_APDU [10:23:49]CAPDU: 80 13 01 00 [10:23:49]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0E 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 18 [10:23:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:23:50]wFMCommunicate OK [10:23:50]SAM_PROTO_GetShiftState done [10:23:50]FM_GetShiftState done [10:23:50]opened in 1730246605 [10:23:50]opened+sec_in_day 1730333005 [10:23:50]quantity*price = 600020 [10:23:50]sum+1 = 600022 [10:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.19 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 67 30.10.2024 10:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа ДТ номер 173 сэкономлено 79.79 сом ФМ: 0000000000871767 ФД: 118007 ФПД: 213542777823100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102350&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118007&fm=213542777823100&tin=02508201610067®Number=0000000000091782&sum=600000 [10:23:51]StoreToDocumentArchive [10:23:51]shift 545 fd 118007 [10:23:51]save to /storage/0545/doc_00118007 [10:23:51]save last doc name /storage/0545/doc_00118007 to /storage/kkm_last_doc_name [10:23:51]save OK [10:23:51]Clear old archive folders... [10:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:23:51]tlvbuf is 0066C7F0 [10:23:51]SAM_PROTO_ClearQueue [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 09 00 00 [10:23:51]Write to MH i2c: E2 08 00 C5 0B 80 09 00 00 00 00 00 00 42 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [10:23:51]RAPDU: 90 00 [10:23:51]wFMCommunicate OK [10:23:51]SAM_PROTO_ClearQueue done [10:23:51]KKMCreateOFDPacket [10:23:51]OFDProtocolAddRootSTLVToBuf [10:23:51]FM_MakeSignedData [10:23:51]FM_MakeSignedData [10:23:51]SAM_PROTO_SignData [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 0D 01 02 [10:23:51]Write to MH i2c: E2 08 00 C6 0B 80 0D 01 02 00 00 00 00 4A [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [10:23:51]RAPDU: 90 00 [10:23:51]wFMCommunicate OK [10:23:51]wFMCommunicate request_size=255 [10:23:51]MH_SAM_APDU [10:23: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 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 36 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CC 01 00 35 04 06 00 C2 37 4D 6A [10:23:51]Write to MH i2c: E2 02 01 C7 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 36 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CC 01 00 35 04 06 00 C2 37 4D 6A 00 00 45 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]OFD Sender: No OFD packet to send [10:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [10:23:51]RAPDU: 90 00 [10:23:51]wFMCommunicate OK [10:23:51]wFMCommunicate request_size=7 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 0D 02 02 02 9F 7C [10:23:51]Write to MH i2c: E2 0A 00 C8 0B 80 0D 02 02 02 00 9F 7C 00 00 6C [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [10:23:51]RAPDU: 90 00 [10:23:51]wFMCommunicate OK [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 0D 03 02 [10:23:51]Write to MH i2c: E2 08 00 C9 0B 80 0D 03 02 00 00 00 00 4F [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 0B 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 0B 00 C9 0B 00 C6 E4 C8 9F 80 E4 E1 76 90 00 1C [10:23:51]RAPDU: C6 E4 C8 9F 80 E4 E1 76 90 00 [10:23:51]wFMCommunicate OK [10:23:51]SAM_PROTO_SignData done [10:23:51]FM_MakeSignedData done [10:23:51]CreateOFDProtocolMessage [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 11 00 00 [10:23:51]Write to MH i2c: E2 08 00 CA 0B 80 11 00 00 00 00 00 00 4F [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 17 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 17 00 CA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A6 [10:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:23:51]wFMCommunicate OK [10:23:51]CreateOFDProtocolMessage done [10:23:51]OFDSenderStorePacket 118007 [10:23:51]StoreOFDPacket docnum=118007 [10:23:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 BD E5 04 01 51 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 36 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CC 01 00 35 04 06 00 C2 37 4D 6A 9F 7C C6 E4 C8 9F 80 E4 E1 76 [10:23:51]CheckFolder [10:23:51]dirname=/storage/ofd_packets [10:23:51]CheckFolder done [10:23:51]ProducePacketName [10:23:51]name=ofd_packets/00118007 [10:23:51]NVStorageSaveData ofd_packets/00118007 [10:23:51]File name is /storage/ofd_packets/00118007 [10:23:51]Write 298 bytes [10:23:51]NVStorageSaveData done [10:23:51]OFDSenderStorePacket done [10:23:51]KKMCreateOFDPacket done [10:23:51]NVStorageSaveData kkm_last_timestamp [10:23:51]File name is /storage/kkm_last_timestamp [10:23:51]Write 4 bytes [10:23:51]NVStorageSaveData done [10:23:51]ExternCall_PrintAddStr [10:23:51]wPrintStart [10:23:51]Write to MH i2c: 01 00 00 CB 0B D6 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 07 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [10:23:51]RasterBufferAndPrint [10:23:51]line Счет N : (1)245800 [10:23:51]line ИНН: 02508201610067 [10:23:51]line Контрольно-Кассовый Чек [10:23:51]line ПРОДАЖА [10:23:51]line ТРК (МРК, ГНК) : 13 [10:23:51]line Товар: 2710194210 [10:23:51]line ДТ-К-2 [10:23:51]line 79.790 * 75.20 [10:23:51]line = 6000.21 [10:23:51]line НДС 12% НСП 1% [10:23:51]line > о реализуемом товаре [10:23:51]line ОКРУГЛЕНИЕ: -0.21 [10:23:51]line ИТОГО: 6000.00 [10:23:51]line Внесено: 6000.00 [10:23:51]line СДАЧА: 0.00 [10:23:51]line НСП 1% : 53.10 [10:23:51]line НДС 12% : 637.19 [10:23:51]line Наличными: 6000.00 [10:23:51]line Безнал.: 0.00 [10:23:51]line Место: АЗС № 173 "Партнер Нефть" [10:23:51]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:23:51]line СНО: Общий режим [10:23:51]line Чек 67 30.10.2024 10:23 [10:23:51]line Смена: 545 ФФД: 1.0 [10:23:51]line ЗНМ: 0300000115 [10:23:51]line РНМ: 0000000000091782 [10:23:51]line Версия ККМ: 001 [10:23:51]line [10:23:51]line Дисконтная программа [10:23:51]line ДТ [10:23:51]line номер 173 [10:23:51]line сэкономлено 79.79 сом [10:23:51]line ФМ: 0000000000871767 [10:23:51]line ФД: 118007 [10:23:51]line ФПД: 213542777823100 [10:23:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102350&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118007&fm=213542777823100&tin=02508201610067®Number=0000000000091782&sum=600000 [10:23:51]OFD Sender: Processing packet 118007 [packets to send 77, broken 76] [10:23:51]ProducePacketName [10:23:51]name=ofd_packets/00118007 [10:23:51]OFD Sender: To server: pG, [10:23:51]CommunicateWithHost lk.salyk.kg:30040 [10:23:51]ConnectInit lk.salyk.kg [10:23:51]written 0, free lines is 4095 [10:23:52]Connected sock=10 [10:23: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 36 37 0C 01 00 00 BD E5 04 01 51 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 36 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CC 01 00 35 04 06 00 C2 37 4D 6A 9F 7C C6 E4 C8 9F 80 E4 E1 76 [10:23: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 36 37 4F 00 00 00 86 4B 47 00 D2 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F7 CC 01 00 F4 03 04 00 EE B4 21 67 B6 04 01 00 00 94 26 B0 99 43 61 DD E2 [10:23:52]CommunicateWithHost err = 0 [10:23:52]CheckOFDResponse [10:23:52]1017 (14) - 77093643461234 [10:23:52]1041 (16) - 0000000000871767 [10:23:52]1040 (4) - 118007 [10:23:52]1012 (4) - 30.10.2024 04:24 [10:23:52]1206 (1) - 0 [10:23:52]OFD Sender: Remove packet 118007 [10:23:52]ProducePacketName [10:23:52]name=ofd_packets/00118007 [10:23:52]NVStorageDeleteData [10:23:52]Write to MH i2c: 01 00 00 FA 0B 05 [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: 01 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: 01 07 00 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: 01 07 00 FA 0B 00 00 00 00 00 54 0C 6C [10:23:52]RasterBufferAndPrint [10:23:52]line [10:23:52]line [10:23:52]line [10:23:52]line [10:23:52]line [10:23:52]written 0, free lines is 3162 [10:23:52]MH_Cut [10:23:52]Write to MH i2c: D1 01 00 01 0C 01 DF [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: D1 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: D1 01 00 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: D1 01 00 01 0C 00 DE [10:23:52]Write to MH i2c: 01 00 00 02 0C 0E [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:52]OFD Sender: No OFD packet to send [10:23:53]*** Cut start [10:23:53]*** Purtial cut [10:23:53]*** Stage 1: CUTSNS_PIN = 1 [10:23:53]Read from MH i2c: 01 [10:23:53]MH_I2C_Read... [10:23:53]*** Stop cut motor [10:23:53]*** Cut end [10:23:53]Read from MH i2c: 01 07 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 FF 0F 23 [10:23:53]process_action close_receipt done [10:23:53]requested_data is exist [10:23:53]produce_requested_data [10:23:53]requested_item fm.sn is exist - process it [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 11 00 00 [10:23:53]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 17 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 17 00 03 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E0 [10:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:23:53]wFMCommunicate OK [10:23:53]requested_item fd.num is exist - process it [10:23:53]SAM_PROTO_GetFieldsCounters [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 13 00 00 [10:23:53]Write to MH i2c: E2 08 00 04 0C 80 13 00 00 00 00 00 00 8C [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 62 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 62 00 04 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [10:23:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F7 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:53]wFMCommunicate OK [10:23:53]SAM_PROTO_GetFieldsCounters done [10:23:53]requested_item shift.num is exist - process it [10:23:53]requested_item shift.opened is exist - process it [10:23:53]req_shift_opened [10:23:53]FM_GetShiftState [10:23:53]SAM_PROTO_GetShiftState [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 13 01 00 [10:23:53]Write to MH i2c: E2 08 00 05 0C 80 13 01 00 00 00 00 00 8E [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0E 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0E 00 05 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 66 [10:23:53]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:23:53]wFMCommunicate OK [10:23:53]SAM_PROTO_GetShiftState done [10:23:53]FM_GetShiftState done [10:23:53]req_shift_opened done [10:23:53]requested_item shift.open_date is exist - process it [10:23:53]req_shift_open_date [10:23:53]req_shift_open_date done [10:23:53]produce_requested_data done [10:23:53]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118007,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:23:53]process_action_free close_receipt [10:23:53]json_value_free [10:23:53]json_value_free done [10:23:53]process_json_proto returns [10:23:53]Send response to host [10:23:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118007,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:23:53]free response buf [10:23:53]execute_script done [10:23:53]execute_script returns [10:23:53]free content buf [10:23:53]Sock 9.Close socket [10:23:53]Sock 9.Thread stoped [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:56]accept exits with 7 [10:25:56]New connection [10:25:56]New thread 3067559268 created [10:25:56]Thread 3067415908 joined [10:25:56]Waiting for new connection... [10:25:56] Sock 7.Parse request [10:25:56]Sock 7.Check first char [10:25:56]Sock 7.First char is OK [10:25:56]request: POST /json_proto HTTP/1.0 [10:25:56]Method: POST [10:25:56]URL: /json_proto [10:25:56]Method is POST - this is cgi request [10:25:56]url: /json_proto [10:25:56]query_string will be loaded in cgi processing [10:25:56]execute_cgi json_proto POST (null) [10:25:56]execute_cgi path=json_proto method=POST [10:25:56]POST find Content-Length [10:25:56]Host: 172.17.96.67:8080 [10:25:56]Content-Length: 677 [10:25:56]Content-Type: application/json [10:25:56] [10:25:56]POST finish read [10:25:56]Found Content-Length = 677 [10:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:25:56]execute_script... [10:25: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)245801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:25:56]POST & json_proto [10:25:56]process_json_proto [10:25:56]json parsed OK: [10:25:56]protocol is kg_v1.0 [10:25:56]action value=close_receipt [10:25:56]process_action close_receipt [10:25:56]cmd_close_receipt [10:25:56]MH_GetDate [10:25:56]Write to MH i2c: F0 00 00 06 0C 01 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: F0 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: F0 09 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: F0 09 00 06 0C 00 B4 09 22 67 47 6C 1F 67 89 [10:25:56]GetLastDocTimeStamp 1730283830 [10:25:56]current date 1730283956 [10:25:56]FM_GetShiftState [10:25:56]SAM_PROTO_GetShiftState [10:25:56]wFMCommunicate request_size=4 [10:25:56]MH_SAM_APDU [10:25:56]CAPDU: 80 13 01 00 [10:25:56]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:56]Read from MH i2c: E2 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0E 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 68 [10:25:56]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:25:56]wFMCommunicate OK [10:25:56]SAM_PROTO_GetShiftState done [10:25:56]FM_GetShiftState done [10:25:56]opened in 1730246605 [10:25:56]opened+sec_in_day 1730333005 [10:25:56]quantity*price = 40006 [10:25:56]sum+1 = 40007 [10:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 68 30.10.2024 10:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118008 ФПД: 3236045484515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102556&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118008&fm=3236045484515&tin=02508201610067®Number=0000000000091782&sum=40000 [10:25:57]StoreToDocumentArchive [10:25:57]shift 545 fd 118008 [10:25:57]save to /storage/0545/doc_00118008 [10:25:57]save last doc name /storage/0545/doc_00118008 to /storage/kkm_last_doc_name [10:25:57]save OK [10:25:57]Clear old archive folders... [10:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:57]tlvbuf is 0064DA60 [10:25:57]SAM_PROTO_ClearQueue [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 09 00 00 [10:25:57]Write to MH i2c: E2 08 00 14 0C 80 09 00 00 00 00 00 00 92 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [10:25:57]RAPDU: 90 00 [10:25:57]wFMCommunicate OK [10:25:57]SAM_PROTO_ClearQueue done [10:25:57]KKMCreateOFDPacket [10:25:57]OFDProtocolAddRootSTLVToBuf [10:25:57]FM_MakeSignedData [10:25:57]FM_MakeSignedData [10:25:57]SAM_PROTO_SignData [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 0D 01 02 [10:25:57]Write to MH i2c: E2 08 00 15 0C 80 0D 01 02 00 00 00 00 9A [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [10:25:57]RAPDU: 90 00 [10:25:57]wFMCommunicate OK [10:25:57]wFMCommunicate request_size=255 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 B4 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CC 01 00 35 04 06 00 02 [10:25:57]Write to MH i2c: E2 02 01 16 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 B4 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CC 01 00 35 04 06 00 02 00 00 6F [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [10:25:57]RAPDU: 90 00 [10:25:57]wFMCommunicate OK [10:25:57]wFMCommunicate request_size=10 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 0D 02 02 05 F1 73 57 71 E3 [10:25:57]Write to MH i2c: E2 0D 00 17 0C 80 0D 02 02 05 00 F1 73 57 71 E3 00 00 B6 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [10:25:57]RAPDU: 90 00 [10:25:57]wFMCommunicate OK [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 0D 03 02 [10:25:57]Write to MH i2c: E2 08 00 18 0C 80 0D 03 02 00 00 00 00 9F [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:58]OFD Sender: No OFD packet to send [10:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 0B 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 0B 00 18 0C 00 AC C2 1E E3 CC B9 91 25 90 00 4A [10:25:58]RAPDU: AC C2 1E E3 CC B9 91 25 90 00 [10:25:58]wFMCommunicate OK [10:25:58]SAM_PROTO_SignData done [10:25:58]FM_MakeSignedData done [10:25:58]CreateOFDProtocolMessage [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 11 00 00 [10:25:58]Write to MH i2c: E2 08 00 19 0C 80 11 00 00 00 00 00 00 9F [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 17 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 17 00 19 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F6 [10:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:25:58]wFMCommunicate OK [10:25:58]CreateOFDProtocolMessage done [10:25:58]OFDSenderStorePacket 118008 [10:25:58]StoreOFDPacket docnum=118008 [10:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F7 EE 07 01 66 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 32 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 44 00 00 00 F4 03 04 00 B4 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CC 01 00 35 04 06 00 02 F1 73 57 71 E3 AC C2 1E E3 CC B9 91 25 [10:25:58]CheckFolder [10:25:58]dirname=/storage/ofd_packets [10:25:58]CheckFolder done [10:25:58]ProducePacketName [10:25:58]name=ofd_packets/00118008 [10:25:58]NVStorageSaveData ofd_packets/00118008 [10:25:58]File name is /storage/ofd_packets/00118008 [10:25:58]Write 301 bytes [10:25:58]NVStorageSaveData done [10:25:58]OFDSenderStorePacket done [10:25:58]KKMCreateOFDPacket done [10:25:58]NVStorageSaveData kkm_last_timestamp [10:25:58]File name is /storage/kkm_last_timestamp [10:25:58]Write 4 bytes [10:25:58]NVStorageSaveData done [10:25:58]ExternCall_PrintAddStr [10:25:58]wPrintStart [10:25:58]Write to MH i2c: 01 00 00 1A 0C 26 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [10:25:58]RasterBufferAndPrint [10:25:58]line Счет N : (1)245801 [10:25:58]line ИНН: 02508201610067 [10:25:58]line Контрольно-Кассовый Чек [10:25:58]line ПРОДАЖА [10:25:58]line ТРК (МРК, ГНК) : 21 [10:25:58]line Товар: 2710124130 [10:25:58]line Аи-92-К-2 [10:25:58]line 5.980 * 66.90 [10:25:58]line = 400.06 [10:25:58]line НДС 12% НСП 1% [10:25:58]line > о реализуемом товаре [10:25:58]line ОКРУГЛЕНИЕ: -0.06 [10:25:58]line ИТОГО: 400.00 [10:25:58]line Внесено: 400.00 [10:25:58]line СДАЧА: 0.00 [10:25:58]line НСП 1% : 3.54 [10:25:58]line НДС 12% : 42.48 [10:25:58]line Наличными: 400.00 [10:25:58]line Безнал.: 0.00 [10:25:58]line Место: АЗС № 173 "Партнер Нефть" [10:25:58]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:25:58]line СНО: Общий режим [10:25:58]line Чек 68 30.10.2024 10:25 [10:25:58]line Смена: 545 ФФД: 1.0 [10:25:58]line ЗНМ: 0300000115 [10:25:58]line РНМ: 0000000000091782 [10:25:58]line Версия ККМ: 001 [10:25:58]line ФМ: 0000000000871767 [10:25:58]line ФД: 118008 [10:25:58]line ФПД: 3236045484515 [10:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102556&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118008&fm=3236045484515&tin=02508201610067®Number=0000000000091782&sum=40000 [10:25:58]OFD Sender: Processing packet 118008 [packets to send 77, broken 76] [10:25:58]ProducePacketName [10:25:58]name=ofd_packets/00118008 [10:25:58]OFD Sender: To server: pG, [10:25:58]CommunicateWithHost lk.salyk.kg:30040 [10:25:58]ConnectInit lk.salyk.kg [10:25:58]written 0, free lines is 4095 [10:25:58]Connected sock=10 [10:25: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 36 37 0F 01 00 00 F7 EE 07 01 66 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 32 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 44 00 00 00 F4 03 04 00 B4 09 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F8 CC 01 00 35 04 06 00 02 F1 73 57 71 E3 AC C2 1E E3 CC B9 91 25 [10:25: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 36 37 4F 00 00 00 EF 41 47 00 C2 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 36 37 10 04 04 00 F8 CC 01 00 F4 03 04 00 6C B5 21 67 B6 04 01 00 00 2F 9A 04 E1 D6 5A C2 B8 [10:25:58]CommunicateWithHost err = 0 [10:25:58]CheckOFDResponse [10:25:58]1017 (14) - 77093643461234 [10:25:58]1041 (16) - 0000000000871767 [10:25:58]1040 (4) - 118008 [10:25:58]1012 (4) - 30.10.2024 04:26 [10:25:58]1206 (1) - 0 [10:25:58]OFD Sender: Remove packet 118008 [10:25:58]ProducePacketName [10:25:58]name=ofd_packets/00118008 [10:25:58]NVStorageDeleteData [10:25:58]Write to MH i2c: 01 00 00 44 0C 50 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 A8 0C 0B [10:25:58]RasterBufferAndPrint [10:25:58]line [10:25:58]line [10:25:58]line [10:25:58]line [10:25:58]line [10:25:58]written 0, free lines is 3245 [10:25:58]MH_Cut [10:25:58]Write to MH i2c: D1 01 00 4B 0C 01 29 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: D1 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: D1 01 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: D1 01 00 4B 0C 00 28 [10:25:58]Write to MH i2c: 01 00 00 4C 0C 58 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:59]OFD Sender: No OFD packet to send [10:25:59]*** Cut start [10:25:59]*** Purtial cut [10:25:59]*** Stage 1: CUTSNS_PIN = 1 [10:26:00]Read from MH i2c: 01 [10:26:00]MH_I2C_Read... [10:26:00]*** Stop cut motor [10:26:00]*** Cut end [10:26:00]Read from MH i2c: 01 07 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 FF 0F 6D [10:26:00]process_action close_receipt done [10:26:00]requested_data is exist [10:26:00]produce_requested_data [10:26:00]requested_item fm.sn is exist - process it [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 11 00 00 [10:26:00]Write to MH i2c: E2 08 00 4D 0C 80 11 00 00 00 00 00 00 D3 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 17 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 17 00 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2A [10:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:26:00]wFMCommunicate OK [10:26:00]requested_item fd.num is exist - process it [10:26:00]SAM_PROTO_GetFieldsCounters [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 13 00 00 [10:26:00]Write to MH i2c: E2 08 00 4E 0C 80 13 00 00 00 00 00 00 D6 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 62 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 62 00 4E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [10:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F8 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:00]wFMCommunicate OK [10:26:00]SAM_PROTO_GetFieldsCounters done [10:26:00]requested_item shift.num is exist - process it [10:26:00]requested_item shift.opened is exist - process it [10:26:00]req_shift_opened [10:26:00]FM_GetShiftState [10:26:00]SAM_PROTO_GetShiftState [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 13 01 00 [10:26:00]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 0E 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B0 [10:26:00]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:26:00]wFMCommunicate OK [10:26:00]SAM_PROTO_GetShiftState done [10:26:00]FM_GetShiftState done [10:26:00]req_shift_opened done [10:26:00]requested_item shift.open_date is exist - process it [10:26:00]req_shift_open_date [10:26:00]req_shift_open_date done [10:26:00]produce_requested_data done [10:26:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118008,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:26:00]process_action_free close_receipt [10:26:00]json_value_free [10:26:00]json_value_free done [10:26:00]process_json_proto returns [10:26:00]Send response to host [10:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118008,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:26:00]free response buf [10:26:00]execute_script done [10:26:00]execute_script returns [10:26:00]free content buf [10:26:00]Sock 7.Close socket [10:26:00]Sock 7.Thread stoped [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:46]accept exits with 9 [10:27:46]New connection [10:27:46]New thread 3067415908 created [10:27:46]Thread 3067559268 joined [10:27:46]Waiting for new connection... [10:27:46] Sock 9.Parse request [10:27:46]Sock 9.Check first char [10:27:46]Sock 9.First char is OK [10:27:46]request: POST /json_proto HTTP/1.0 [10:27:46]Method: POST [10:27:46]URL: /json_proto [10:27:46]Method is POST - this is cgi request [10:27:46]url: /json_proto [10:27:46]query_string will be loaded in cgi processing [10:27:46]execute_cgi json_proto POST (null) [10:27:46]execute_cgi path=json_proto method=POST [10:27:46]POST find Content-Length [10:27:46]Host: 172.17.96.67:8080 [10:27:46]Content-Length: 984 [10:27:46]Content-Type: application/json [10:27:46] [10:27:46]POST finish read [10:27:46]Found Content-Length = 984 [10:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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" ] } } [10:27:46]execute_script... [10:27: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)245802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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" ] } } [10:27:46]POST & json_proto [10:27:46]process_json_proto [10:27:46]json parsed OK: [10:27:46]protocol is kg_v1.0 [10:27:46]action value=close_receipt [10:27:46]process_action close_receipt [10:27:46]cmd_close_receipt [10:27:46]MH_GetDate [10:27:46]Write to MH i2c: F0 00 00 50 0C 4B [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 09 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 09 00 50 0C 00 22 0A 22 67 47 6C 1F 67 42 [10:27:46]GetLastDocTimeStamp 1730283956 [10:27:46]current date 1730284066 [10:27:46]FM_GetShiftState [10:27:46]SAM_PROTO_GetShiftState [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 13 01 00 [10:27:46]Write to MH i2c: E2 08 00 51 0C 80 13 01 00 00 00 00 00 DA [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0E 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0E 00 51 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B2 [10:27:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_GetShiftState done [10:27:46]FM_GetShiftState done [10:27:46]opened in 1730246605 [10:27:46]opened+sec_in_day 1730333005 [10:27:46]quantity*price = 200006 [10:27:46]sum+1 = 200008 [10:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 69 30.10.2024 10:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 30.35 сом ФМ: 0000000000871767 ФД: 118009 ФПД: 89884325500401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102746&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118009&fm=89884325500401&tin=02508201610067®Number=0000000000091782&sum=200000 [10:27:47]StoreToDocumentArchive [10:27:47]shift 545 fd 118009 [10:27:47]save to /storage/0545/doc_00118009 [10:27:47]save last doc name /storage/0545/doc_00118009 to /storage/kkm_last_doc_name [10:27:47]save OK [10:27:47]Clear old archive folders... [10:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:47]tlvbuf is 0067A140 [10:27:47]SAM_PROTO_ClearQueue [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 09 00 00 [10:27:47]Write to MH i2c: E2 08 00 5E 0C 80 09 00 00 00 00 00 00 DC [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_ClearQueue done [10:27:47]KKMCreateOFDPacket [10:27:47]OFDProtocolAddRootSTLVToBuf [10:27:47]FM_MakeSignedData [10:27:47]FM_MakeSignedData [10:27:47]SAM_PROTO_SignData [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 01 02 [10:27:47]Write to MH i2c: E2 08 00 5F 0C 80 0D 01 02 00 00 00 00 E4 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]wFMCommunicate request_size=255 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 22 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CC 01 00 35 04 06 00 51 [10:27:47]Write to MH i2c: E2 02 01 60 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 22 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CC 01 00 35 04 06 00 51 00 00 31 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]wFMCommunicate request_size=10 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 02 02 05 BF D3 4A D5 F1 [10:27:47]Write to MH i2c: E2 0D 00 61 0C 80 0D 02 02 05 00 BF D3 4A D5 F1 00 00 93 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 03 02 [10:27:47]Write to MH i2c: E2 08 00 62 0C 80 0D 03 02 00 00 00 00 E9 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0B 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0B 00 62 0C 00 0E 7F CA 94 C5 DD F5 A6 90 00 12 [10:27:47]RAPDU: 0E 7F CA 94 C5 DD F5 A6 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_SignData done [10:27:47]FM_MakeSignedData done [10:27:47]CreateOFDProtocolMessage [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 11 00 00 [10:27:47]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 40 [10:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:27:47]wFMCommunicate OK [10:27:47]CreateOFDProtocolMessage done [10:27:47]OFDSenderStorePacket 118009 [10:27:47]StoreOFDPacket docnum=118009 [10:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EB 94 07 01 54 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 22 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CC 01 00 35 04 06 00 51 BF D3 4A D5 F1 0E 7F CA 94 C5 DD F5 A6 [10:27:47]CheckFolder [10:27:47]dirname=/storage/ofd_packets [10:27:47]CheckFolder done [10:27:47]ProducePacketName [10:27:47]name=ofd_packets/00118009 [10:27:47]NVStorageSaveData ofd_packets/00118009 [10:27:47]File name is /storage/ofd_packets/00118009 [10:27:47]Write 301 bytes [10:27:47]NVStorageSaveData done [10:27:47]OFDSenderStorePacket done [10:27:47]KKMCreateOFDPacket done [10:27:47]NVStorageSaveData kkm_last_timestamp [10:27:47]File name is /storage/kkm_last_timestamp [10:27:47]Write 4 bytes [10:27:47]NVStorageSaveData done [10:27:47]ExternCall_PrintAddStr [10:27:47]wPrintStart [10:27:47]Write to MH i2c: 01 00 00 64 0C 70 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 FF 0F 85 [10:27:47]RasterBufferAndPrint [10:27:47]line Счет N : (1)245802 [10:27:47]line ИНН: 02508201610067 [10:27:47]line Контрольно-Кассовый Чек [10:27:47]line ПРОДАЖА [10:27:47]line ТРК (МРК, ГНК) : 11 [10:27:47]line Товар: 2710124130 [10:27:47]line Аи-92-К-2 [10:27:47]line 30.350 * 65.90 [10:27:47]line = 2000.07 [10:27:47]line НДС 12% НСП 1% [10:27:47]line > о реализуемом товаре [10:27:47]line ОКРУГЛЕНИЕ: -0.07 [10:27:47]line ИТОГО: 2000.00 [10:27:47]line Внесено: 2000.00 [10:27:47]line СДАЧА: 0.00 [10:27:47]line НСП 1% : 17.70 [10:27:47]line НДС 12% : 212.40 [10:27:47]line Наличными: 2000.00 [10:27:47]line Безнал.: 0.00 [10:27:47]line Место: АЗС № 173 "Партнер Нефть" [10:27:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:27:47]line СНО: Общий режим [10:27:47]line Чек 69 30.10.2024 10:27 [10:27:47]line Смена: 545 ФФД: 1.0 [10:27:47]line ЗНМ: 0300000115 [10:27:47]line РНМ: 0000000000091782 [10:27:47]line Версия ККМ: 001 [10:27:47]line [10:27:47]line Дисконтная программа [10:27:47]line АИ-92 [10:27:47]line номер 173 [10:27:47]line сэкономлено 30.35 сом [10:27:47]line ФМ: 0000000000871767 [10:27:47]line ФД: 118009 [10:27:47]line ФПД: 89884325500401 [10:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102746&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118009&fm=89884325500401&tin=02508201610067®Number=0000000000091782&sum=200000 [10:27:48]OFD Sender: Processing packet 118009 [packets to send 77, broken 76] [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00118009 [10:27:48]OFD Sender: To server: pG, [10:27:48]CommunicateWithHost lk.salyk.kg:30040 [10:27:48]ConnectInit lk.salyk.kg [10:27:48]written 0, free lines is 4095 [10:27:48]Connected sock=10 [10:27: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 36 37 0F 01 00 00 EB 94 07 01 54 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 22 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CC 01 00 35 04 06 00 51 BF D3 4A D5 F1 0E 7F CA 94 C5 DD F5 A6 [10:27: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 36 37 4F 00 00 00 9F 01 47 00 5E 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 F9 CC 01 00 F4 03 04 00 DA B5 21 67 B6 04 01 00 00 F1 33 3F 59 BA 35 B4 9A [10:27:48]CommunicateWithHost err = 0 [10:27:48]CheckOFDResponse [10:27:48]1017 (14) - 77093643461234 [10:27:48]1041 (16) - 0000000000871767 [10:27:48]1040 (4) - 118009 [10:27:48]1012 (4) - 30.10.2024 04:28 [10:27:48]1206 (1) - 0 [10:27:48]OFD Sender: Remove packet 118009 [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00118009 [10:27:48]NVStorageDeleteData [10:27:48]Write to MH i2c: 01 00 00 93 0C 9F [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 4A 0C FC [10:27:48]RasterBufferAndPrint [10:27:48]line [10:27:48]line [10:27:48]line [10:27:48]line [10:27:48]line [10:27:48]written 0, free lines is 3151 [10:27:48]MH_Cut [10:27:48]Write to MH i2c: D1 01 00 9A 0C 01 78 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: D1 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: D1 01 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: D1 01 00 9A 0C 00 77 [10:27:48]Write to MH i2c: 01 00 00 9B 0C A7 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:49]OFD Sender: No OFD packet to send [10:27:49]*** Cut start [10:27:49]*** Purtial cut [10:27:49]*** Stage 1: CUTSNS_PIN = 1 [10:27:49]Read from MH i2c: 01 [10:27:49]MH_I2C_Read... [10:27:49]*** Stop cut motor [10:27:49]*** Cut end [10:27:49]Read from MH i2c: 01 07 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 07 00 9B 0C 00 00 00 00 00 FF 0F BC [10:27:49]process_action close_receipt done [10:27:49]requested_data is exist [10:27:49]produce_requested_data [10:27:49]requested_item fm.sn is exist - process it [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 11 00 00 [10:27:49]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 17 00 [10:27:49]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 79 [10:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:27:50]wFMCommunicate OK [10:27:50]requested_item fd.num is exist - process it [10:27:50]SAM_PROTO_GetFieldsCounters [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 00 00 [10:27:50]Write to MH i2c: E2 08 00 9D 0C 80 13 00 00 00 00 00 00 25 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 62 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 62 00 9D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [10:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 F9 CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetFieldsCounters done [10:27:50]requested_item shift.num is exist - process it [10:27:50]requested_item shift.opened is exist - process it [10:27:50]req_shift_opened [10:27:50]FM_GetShiftState [10:27:50]SAM_PROTO_GetShiftState [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 01 00 [10:27:50]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FF [10:27:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetShiftState done [10:27:50]FM_GetShiftState done [10:27:50]req_shift_opened done [10:27:50]requested_item shift.open_date is exist - process it [10:27:50]req_shift_open_date [10:27:50]req_shift_open_date done [10:27:50]produce_requested_data done [10:27:50]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118009,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:27:50]process_action_free close_receipt [10:27:50]json_value_free [10:27:50]json_value_free done [10:27:50]process_json_proto returns [10:27:50]Send response to host [10:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118009,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:27:50]free response buf [10:27:50]execute_script done [10:27:50]execute_script returns [10:27:50]free content buf [10:27:50]Sock 9.Close socket [10:27:50]Sock 9.Thread stoped [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:07]accept exits with 7 [10:29:07]New connection [10:29:07]New thread 3067559268 created [10:29:07]Thread 3067415908 joined [10:29:07]Waiting for new connection... [10:29:07] Sock 7.Parse request [10:29:07]Sock 7.Check first char [10:29:07]Sock 7.First char is OK [10:29:07]request: POST /json_proto HTTP/1.0 [10:29:07]Method: POST [10:29:07]URL: /json_proto [10:29:07]Method is POST - this is cgi request [10:29:07]url: /json_proto [10:29:07]query_string will be loaded in cgi processing [10:29:07]execute_cgi json_proto POST (null) [10:29:07]execute_cgi path=json_proto method=POST [10:29:07]POST find Content-Length [10:29:07]Host: 172.17.96.67:8080 [10:29:07]Content-Length: 677 [10:29:07]Content-Type: application/json [10:29:07] [10:29:07]POST finish read [10:29:07]Found Content-Length = 677 [10:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:29:07]execute_script... [10: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)245804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:29:07]POST & json_proto [10:29:07]process_json_proto [10:29:07]json parsed OK: [10:29:07]protocol is kg_v1.0 [10:29:07]action value=close_receipt [10:29:07]process_action close_receipt [10:29:07]cmd_close_receipt [10:29:07]MH_GetDate [10:29:07]Write to MH i2c: F0 00 00 9F 0C 9A [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: F0 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: F0 09 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: F0 09 00 9F 0C 00 73 0A 22 67 47 6C 1F 67 E2 [10:29:07]GetLastDocTimeStamp 1730284066 [10:29:07]current date 1730284147 [10:29:07]FM_GetShiftState [10:29:07]SAM_PROTO_GetShiftState [10:29:07]wFMCommunicate request_size=4 [10:29:07]MH_SAM_APDU [10:29:07]CAPDU: 80 13 01 00 [10:29:07]Write to MH i2c: E2 08 00 A0 0C 80 13 01 00 00 00 00 00 29 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:07]Read from MH i2c: E2 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 0E 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 0E 00 A0 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 01 [10:29:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:29:07]wFMCommunicate OK [10:29:07]SAM_PROTO_GetShiftState done [10:29:07]FM_GetShiftState done [10:29:07]opened in 1730246605 [10:29:07]opened+sec_in_day 1730333005 [10:29:07]quantity*price = 20003 [10:29:07]sum+1 = 20004 [10:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 70 30.10.2024 10:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118010 ФПД: 46919760753331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102907&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118010&fm=46919760753331&tin=02508201610067®Number=0000000000091782&sum=20000 [10:29:08]StoreToDocumentArchive [10:29:08]shift 545 fd 118010 [10:29:08]save to /storage/0545/doc_00118010 [10:29:08]save last doc name /storage/0545/doc_00118010 to /storage/kkm_last_doc_name [10:29:08]save OK [10:29:08]Clear old archive folders... [10:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:08]tlvbuf is 00658A50 [10:29:08]SAM_PROTO_ClearQueue [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 09 00 00 [10:29:08]Write to MH i2c: E2 08 00 AD 0C 80 09 00 00 00 00 00 00 2B [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [10:29:08]RAPDU: 90 00 [10:29:08]wFMCommunicate OK [10:29:08]SAM_PROTO_ClearQueue done [10:29:08]KKMCreateOFDPacket [10:29:08]OFDProtocolAddRootSTLVToBuf [10:29:08]FM_MakeSignedData [10:29:08]FM_MakeSignedData [10:29:08]SAM_PROTO_SignData [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 0D 01 02 [10:29:08]Write to MH i2c: E2 08 00 AE 0C 80 0D 01 02 00 00 00 00 33 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [10:29:08]RAPDU: 90 00 [10:29:08]wFMCommunicate OK [10:29:08]wFMCommunicate request_size=255 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 46 00 00 00 F4 03 04 00 73 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CC 01 00 35 04 06 00 2A [10:29:08]Write to MH i2c: E2 02 01 AF 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 73 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CC 01 00 35 04 06 00 2A 00 00 E7 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [10:29:08]RAPDU: 90 00 [10:29:08]wFMCommunicate OK [10:29:08]wFMCommunicate request_size=10 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 0D 02 02 05 AC 5B AC 32 B3 [10:29:08]Write to MH i2c: E2 0D 00 B0 0C 80 0D 02 02 05 00 AC 5B AC 32 B3 00 00 D8 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [10:29:08]RAPDU: 90 00 [10:29:08]wFMCommunicate OK [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 0D 03 02 [10:29:08]Write to MH i2c: E2 08 00 B1 0C 80 0D 03 02 00 00 00 00 38 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 0B 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 0B 00 B1 0C 00 3C D9 15 8A 8A 93 AC D4 90 00 8A [10:29:08]RAPDU: 3C D9 15 8A 8A 93 AC D4 90 00 [10:29:08]wFMCommunicate OK [10:29:08]SAM_PROTO_SignData done [10:29:08]FM_MakeSignedData done [10:29:08]CreateOFDProtocolMessage [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 11 00 00 [10:29:08]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 17 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8F [10:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:29:08]wFMCommunicate OK [10:29:08]CreateOFDProtocolMessage done [10:29:08]OFDSenderStorePacket 118010 [10:29:08]StoreOFDPacket docnum=118010 [10:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 20 63 07 01 41 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 73 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CC 01 00 35 04 06 00 2A AC 5B AC 32 B3 3C D9 15 8A 8A 93 AC D4 [10:29:08]CheckFolder [10:29:08]dirname=/storage/ofd_packets [10:29:08]CheckFolder done [10:29:08]ProducePacketName [10:29:08]name=ofd_packets/00118010 [10:29:08]NVStorageSaveData ofd_packets/00118010 [10:29:08]File name is /storage/ofd_packets/00118010 [10:29:08]Write 301 bytes [10:29:08]NVStorageSaveData done [10:29:08]OFDSenderStorePacket done [10:29:08]KKMCreateOFDPacket done [10:29:08]NVStorageSaveData kkm_last_timestamp [10:29:08]File name is /storage/kkm_last_timestamp [10:29:08]Write 4 bytes [10:29:08]NVStorageSaveData done [10:29:08]ExternCall_PrintAddStr [10:29:08]wPrintStart [10:29:08]Write to MH i2c: 01 00 00 B3 0C BF [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: 01 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: 01 07 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [10:29:08]RasterBufferAndPrint [10:29:08]line Счет N : (1)245804 [10:29:08]line ИНН: 02508201610067 [10:29:08]line Контрольно-Кассовый Чек [10:29:08]line ПРОДАЖА [10:29:08]line ТРК (МРК, ГНК) : 11 [10:29:08]line Товар: 2710124130 [10:29:08]line Аи-92-К-2 [10:29:08]line 2.990 * 66.90 [10:29:08]line = 200.03 [10:29:08]line НДС 12% НСП 1% [10:29:08]line > о реализуемом товаре [10:29:08]line ОКРУГЛЕНИЕ: -0.03 [10:29:08]line ИТОГО: 200.00 [10:29:08]line Внесено: 200.00 [10:29:09]line СДАЧА: 0.00 [10:29:09]line НСП 1% : 1.77 [10:29:09]line НДС 12% : 21.24 [10:29:09]line Наличными: 200.00 [10:29:09]line Безнал.: 0.00 [10:29:09]line Место: АЗС № 173 "Партнер Нефть" [10:29:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:29:09]line СНО: Общий режим [10:29:09]line Чек 70 30.10.2024 10:29 [10:29:09]line Смена: 545 ФФД: 1.0 [10:29:09]line ЗНМ: 0300000115 [10:29:09]line РНМ: 0000000000091782 [10:29:09]line Версия ККМ: 001 [10:29:09]line ФМ: 0000000000871767 [10:29:09]line ФД: 118010 [10:29:09]line ФПД: 46919760753331 [10:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102907&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118010&fm=46919760753331&tin=02508201610067®Number=0000000000091782&sum=20000 [10:29:09]written 0, free lines is 4095 [10:29:09]OFD Sender: Processing packet 118010 [packets to send 77, broken 76] [10:29:09]ProducePacketName [10:29:09]name=ofd_packets/00118010 [10:29:09]OFD Sender: To server: pG, [10:29:09]CommunicateWithHost lk.salyk.kg:30040 [10:29:09]ConnectInit lk.salyk.kg [10:29:09]Connected sock=10 [10:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 20 63 07 01 41 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 73 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FA CC 01 00 35 04 06 00 2A AC 5B AC 32 B3 3C D9 15 8A 8A 93 AC D4 [10:29: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 36 37 4F 00 00 00 8F 99 47 00 9C 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 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 36 37 10 04 04 00 FA CC 01 00 F4 03 04 00 2B B6 21 67 B6 04 01 00 00 AA 64 6F 26 A6 70 60 36 [10:29:09]CommunicateWithHost err = 0 [10:29:09]CheckOFDResponse [10:29:09]1017 (14) - 77093643461234 [10:29:09]1041 (16) - 0000000000871767 [10:29:09]1040 (4) - 118010 [10:29:09]1012 (4) - 30.10.2024 04:29 [10:29:09]1206 (1) - 0 [10:29:09]OFD Sender: Remove packet 118010 [10:29:09]ProducePacketName [10:29:09]name=ofd_packets/00118010 [10:29:09]NVStorageDeleteData [10:29:09]Write to MH i2c: 01 00 00 DD 0C E9 [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: 01 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: 01 07 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 AF 0C AB [10:29:09]RasterBufferAndPrint [10:29:09]line [10:29:09]line [10:29:09]line [10:29:09]line [10:29:09]line [10:29:09]written 0, free lines is 3253 [10:29:09]MH_Cut [10:29:09]Write to MH i2c: D1 01 00 E4 0C 01 C2 [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: D1 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: D1 01 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: D1 01 00 E4 0C 00 C1 [10:29:09]Write to MH i2c: 01 00 00 E5 0C F1 [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]OFD Sender: No OFD packet to send [10:29:10]*** Cut start [10:29:10]*** Purtial cut [10:29:10]*** Stage 1: CUTSNS_PIN = 1 [10:29:10]Read from MH i2c: 01 [10:29:10]MH_I2C_Read... [10:29:10]*** Stop cut motor [10:29:10]*** Cut end [10:29:10]Read from MH i2c: 01 07 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 FF 0F 06 [10:29:10]process_action close_receipt done [10:29:10]requested_data is exist [10:29:10]produce_requested_data [10:29:10]requested_item fm.sn is exist - process it [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 11 00 00 [10:29:10]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:10]Read from MH i2c: E2 17 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C3 [10:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:29:10]wFMCommunicate OK [10:29:10]requested_item fd.num is exist - process it [10:29:10]SAM_PROTO_GetFieldsCounters [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 13 00 00 [10:29:10]Write to MH i2c: E2 08 00 E7 0C 80 13 00 00 00 00 00 00 6F [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 62 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 62 00 E7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [10:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FA CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_GetFieldsCounters done [10:29:10]requested_item shift.num is exist - process it [10:29:10]requested_item shift.opened is exist - process it [10:29:10]req_shift_opened [10:29:10]FM_GetShiftState [10:29:10]SAM_PROTO_GetShiftState [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 13 01 00 [10:29:10]Write to MH i2c: E2 08 00 E8 0C 80 13 01 00 00 00 00 00 71 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0E 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0E 00 E8 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 49 [10:29:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_GetShiftState done [10:29:10]FM_GetShiftState done [10:29:10]req_shift_opened done [10:29:10]requested_item shift.open_date is exist - process it [10:29:10]req_shift_open_date [10:29:10]req_shift_open_date done [10:29:10]produce_requested_data done [10:29:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118010,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:29:10]process_action_free close_receipt [10:29:10]json_value_free [10:29:10]json_value_free done [10:29:10]process_json_proto returns [10:29:10]Send response to host [10:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118010,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:29:10]free response buf [10:29:10]execute_script done [10:29:10]execute_script returns [10:29:10]free content buf [10:29:10]Sock 7.Close socket [10:29:10]Sock 7.Thread stoped [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:19]accept exits with 9 [10:29:19]New connection [10:29:19]New thread 3067415908 created [10:29:19]Thread 3067559268 joined [10:29:19]Waiting for new connection... [10:29:19] Sock 9.Parse request [10:29:19]Sock 9.Check first char [10:29:19]Sock 9.First char is OK [10:29:19]request: POST /json_proto HTTP/1.0 [10:29:19]Method: POST [10:29:19]URL: /json_proto [10:29:19]Method is POST - this is cgi request [10:29:19]url: /json_proto [10:29:19]query_string will be loaded in cgi processing [10:29:19]execute_cgi json_proto POST (null) [10:29:19]execute_cgi path=json_proto method=POST [10:29:19]POST find Content-Length [10:29:19]Host: 172.17.96.67:8080 [10:29:19]Content-Length: 679 [10:29:19]Content-Type: application/json [10:29:19] [10:29:19]POST finish read [10:29:19]Found Content-Length = 679 [10:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:19]execute_script... [10:29: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)245803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:19]POST & json_proto [10:29:19]process_json_proto [10:29:19]json parsed OK: [10:29:19]protocol is kg_v1.0 [10:29:19]action value=close_receipt [10:29:19]process_action close_receipt [10:29:19]cmd_close_receipt [10:29:19]MH_GetDate [10:29:19]Write to MH i2c: F0 00 00 E9 0C E4 [10:29:19]Write i2c OK [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: F0 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: F0 09 00 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: F0 09 00 E9 0C 00 80 0A 22 67 47 6C 1F 67 39 [10:29:19]GetLastDocTimeStamp 1730284147 [10:29:19]current date 1730284160 [10:29:19]FM_GetShiftState [10:29:19]SAM_PROTO_GetShiftState [10:29:19]wFMCommunicate request_size=4 [10:29:19]MH_SAM_APDU [10:29:19]CAPDU: 80 13 01 00 [10:29:19]Write to MH i2c: E2 08 00 EA 0C 80 13 01 00 00 00 00 00 73 [10:29:19]Write i2c OK [10:29:19]MH_I2C_Read... [10:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:19]Read from MH i2c: E2 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 0E 00 [10:29:19]MH_I2C_Read... [10:29:19]Read from MH i2c: E2 0E 00 EA 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4B [10:29:19]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:29:19]wFMCommunicate OK [10:29:19]SAM_PROTO_GetShiftState done [10:29:19]FM_GetShiftState done [10:29:19]opened in 1730246605 [10:29:19]opened+sec_in_day 1730333005 [10:29:19]quantity*price = 100050 [10:29:19]sum+1 = 100052 [10:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 71 30.10.2024 10:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118011 ФПД: 168302879530136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102920&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118011&fm=168302879530136&tin=02508201610067®Number=0000000000091782&sum=100000 [10:29:21]StoreToDocumentArchive [10:29:21]shift 545 fd 118011 [10:29:21]save to /storage/0545/doc_00118011 [10:29:21]save last doc name /storage/0545/doc_00118011 to /storage/kkm_last_doc_name [10:29:21]save OK [10:29:21]Clear old archive folders... [10:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:21]tlvbuf is 0063E8E0 [10:29:21]SAM_PROTO_ClearQueue [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 09 00 00 [10:29:21]Write to MH i2c: E2 08 00 F7 0C 80 09 00 00 00 00 00 00 75 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]SAM_PROTO_ClearQueue done [10:29:21]KKMCreateOFDPacket [10:29:21]OFDProtocolAddRootSTLVToBuf [10:29:21]FM_MakeSignedData [10:29:21]FM_MakeSignedData [10:29:21]SAM_PROTO_SignData [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 01 02 [10:29:21]Write to MH i2c: E2 08 00 F8 0C 80 0D 01 02 00 00 00 00 7D [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]wFMCommunicate request_size=255 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 47 00 00 00 F4 03 04 00 80 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CC 01 00 35 04 06 00 99 12 11 59 [10:29:21]Write to MH i2c: E2 02 01 F9 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 80 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CC 01 00 35 04 06 00 99 12 11 59 00 00 5F [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]wFMCommunicate request_size=7 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 02 02 02 5C 98 [10:29:21]Write to MH i2c: E2 0A 00 FA 0C 80 0D 02 02 02 00 5C 98 00 00 78 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [10:29:21]RAPDU: 90 00 [10:29:21]wFMCommunicate OK [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 0D 03 02 [10:29:21]Write to MH i2c: E2 08 00 FB 0C 80 0D 03 02 00 00 00 00 82 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0B 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0B 00 FB 0C 00 5C 50 CE 1A 66 62 D0 3F 90 00 EE [10:29:21]RAPDU: 5C 50 CE 1A 66 62 D0 3F 90 00 [10:29:21]wFMCommunicate OK [10:29:21]SAM_PROTO_SignData done [10:29:21]FM_MakeSignedData done [10:29:21]CreateOFDProtocolMessage [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 11 00 00 [10:29:21]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 17 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D9 [10:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:29:21]wFMCommunicate OK [10:29:21]CreateOFDProtocolMessage done [10:29:21]OFDSenderStorePacket 118011 [10:29:21]StoreOFDPacket docnum=118011 [10:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 64 EE 04 01 6D AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 80 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CC 01 00 35 04 06 00 99 12 11 59 5C 98 5C 50 CE 1A 66 62 D0 3F [10:29:21]CheckFolder [10:29:21]dirname=/storage/ofd_packets [10:29:21]CheckFolder done [10:29:21]ProducePacketName [10:29:21]name=ofd_packets/00118011 [10:29:21]NVStorageSaveData ofd_packets/00118011 [10:29:21]File name is /storage/ofd_packets/00118011 [10:29:21]Write 298 bytes [10:29:21]NVStorageSaveData done [10:29:21]OFDSenderStorePacket done [10:29:21]KKMCreateOFDPacket done [10:29:21]NVStorageSaveData kkm_last_timestamp [10:29:21]File name is /storage/kkm_last_timestamp [10:29:21]Write 4 bytes [10:29:21]NVStorageSaveData done [10:29:21]ExternCall_PrintAddStr [10:29:21]wPrintStart [10:29:21]Write to MH i2c: 01 00 00 FD 0C 09 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 07 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [10:29:21]RasterBufferAndPrint [10:29:21]line Счет N : (1)245803 [10:29:21]line ИНН: 02508201610067 [10:29:21]line Контрольно-Кассовый Чек [10:29:21]line ПРОДАЖА [10:29:21]line ТРК (МРК, ГНК) : 23 [10:29:21]line Товар: 2710194210 [10:29:21]line ДТ-К-2 [10:29:21]line 13.130 * 76.20 [10:29:21]line = 1000.51 [10:29:21]line НДС 12% НСП 1% [10:29:21]line > о реализуемом товаре [10:29:21]line ОКРУГЛЕНИЕ: -0.51 [10:29:21]line ИТОГО: 1000.00 [10:29:21]line Внесено: 1000.00 [10:29:21]line СДАЧА: 0.00 [10:29:21]line НСП 1% : 8.85 [10:29:21]line НДС 12% : 106.25 [10:29:21]line Наличными: 1000.00 [10:29:21]line Безнал.: 0.00 [10:29:21]line Место: АЗС № 173 "Партнер Нефть" [10:29:21]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:29:21]line СНО: Общий режим [10:29:21]line Чек 71 30.10.2024 10:29 [10:29:21]line Смена: 545 ФФД: 1.0 [10:29:21]line ЗНМ: 0300000115 [10:29:21]line РНМ: 0000000000091782 [10:29:21]line Версия ККМ: 001 [10:29:21]line ФМ: 0000000000871767 [10:29:21]line ФД: 118011 [10:29:21]line ФПД: 168302879530136 [10:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102920&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118011&fm=168302879530136&tin=02508201610067®Number=0000000000091782&sum=100000 [10:29:21]OFD Sender: Processing packet 118011 [packets to send 77, broken 76] [10:29:21]ProducePacketName [10:29:21]name=ofd_packets/00118011 [10:29:21]OFD Sender: To server: pG, [10:29:21]CommunicateWithHost lk.salyk.kg:30040 [10:29:21]ConnectInit lk.salyk.kg [10:29:21]written 0, free lines is 4095 [10:29:21]Connected sock=10 [10:29: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 36 37 0C 01 00 00 64 EE 04 01 6D AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 80 0A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FB CC 01 00 35 04 06 00 99 12 11 59 5C 98 5C 50 CE 1A 66 62 D0 3F [10:29: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 36 37 4F 00 00 00 C2 4D 47 00 C4 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 36 37 10 04 04 00 FB CC 01 00 F4 03 04 00 37 B6 21 67 B6 04 01 00 00 95 AF FE 6B 0E 93 17 C4 [10:29:21]CommunicateWithHost err = 0 [10:29:21]CheckOFDResponse [10:29:21]1017 (14) - 77093643461234 [10:29:21]1041 (16) - 0000000000871767 [10:29:21]1040 (4) - 118011 [10:29:21]1012 (4) - 30.10.2024 04:29 [10:29:21]1206 (1) - 0 [10:29:21]OFD Sender: Remove packet 118011 [10:29:21]ProducePacketName [10:29:21]name=ofd_packets/00118011 [10:29:21]NVStorageDeleteData [10:29:22]Write to MH i2c: 01 00 00 27 0D 34 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: 01 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: 01 07 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: 01 07 00 27 0D 00 00 00 00 00 B1 0C F8 [10:29:22]RasterBufferAndPrint [10:29:22]line [10:29:22]line [10:29:22]line [10:29:22]line [10:29:22]line [10:29:22]written 0, free lines is 3257 [10:29:22]MH_Cut [10:29:22]Write to MH i2c: D1 01 00 2E 0D 01 0D [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: D1 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: D1 01 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: D1 01 00 2E 0D 00 0C [10:29:22]Write to MH i2c: 01 00 00 2F 0D 3C [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]OFD Sender: No OFD packet to send [10:29:22]*** Cut start [10:29:22]*** Purtial cut [10:29:22]*** Stage 1: CUTSNS_PIN = 1 [10:29:23]Read from MH i2c: 01 [10:29:23]MH_I2C_Read... [10:29:23]*** Stop cut motor [10:29:23]*** Cut end [10:29:23]Read from MH i2c: 01 07 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 07 00 2F 0D 00 00 00 00 00 FF 0F 51 [10:29:23]process_action close_receipt done [10:29:23]requested_data is exist [10:29:23]produce_requested_data [10:29:23]requested_item fm.sn is exist - process it [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 11 00 00 [10:29:23]Write to MH i2c: E2 08 00 30 0D 80 11 00 00 00 00 00 00 B7 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 17 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 17 00 30 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0E [10:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:29:23]wFMCommunicate OK [10:29:23]requested_item fd.num is exist - process it [10:29:23]SAM_PROTO_GetFieldsCounters [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 13 00 00 [10:29:23]Write to MH i2c: E2 08 00 31 0D 80 13 00 00 00 00 00 00 BA [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 62 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 62 00 31 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FB CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_GetFieldsCounters done [10:29:23]requested_item shift.num is exist - process it [10:29:23]requested_item shift.opened is exist - process it [10:29:23]req_shift_opened [10:29:23]FM_GetShiftState [10:29:23]SAM_PROTO_GetShiftState [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 13 01 00 [10:29:23]Write to MH i2c: E2 08 00 32 0D 80 13 01 00 00 00 00 00 BC [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 32 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 94 [10:29:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_GetShiftState done [10:29:23]FM_GetShiftState done [10:29:23]req_shift_opened done [10:29:23]requested_item shift.open_date is exist - process it [10:29:23]req_shift_open_date [10:29:23]req_shift_open_date done [10:29:23]produce_requested_data done [10:29:23]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118011,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:29:23]process_action_free close_receipt [10:29:23]json_value_free [10:29:23]json_value_free done [10:29:23]process_json_proto returns [10:29:23]Send response to host [10:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118011,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:29:23]free response buf [10:29:23]execute_script done [10:29:23]execute_script returns [10:29:23]free content buf [10:29:23]Sock 9.Close socket [10:29:23]Sock 9.Thread stoped [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]accept exits with 7 [10:32:17]New connection [10:32:17]New thread 3067559268 created [10:32:17]Thread 3067415908 joined [10:32:17]Waiting for new connection... [10:32:17] Sock 7.Parse request [10:32:17]Sock 7.Check first char [10:32:17]Sock 7.First char is OK [10:32:17]request: POST /json_proto HTTP/1.0 [10:32:17]Method: POST [10:32:17]URL: /json_proto [10:32:17]Method is POST - this is cgi request [10:32:17]url: /json_proto [10:32:17]query_string will be loaded in cgi processing [10:32:17]execute_cgi json_proto POST (null) [10:32:17]execute_cgi path=json_proto method=POST [10:32:17]POST find Content-Length [10:32:17]Host: 172.17.96.67:8080 [10:32:17]Content-Length: 677 [10:32:17]Content-Type: application/json [10:32:17] [10:32:17]POST finish read [10:32:17]Found Content-Length = 677 [10:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:17]execute_script... [10:32: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)245805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:17]POST & json_proto [10:32:17]process_json_proto [10:32:17]json parsed OK: [10:32:17]protocol is kg_v1.0 [10:32:17]action value=close_receipt [10:32:17]process_action close_receipt [10:32:17]cmd_close_receipt [10:32:17]MH_GetDate [10:32:17]Write to MH i2c: F0 00 00 33 0D 2F [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: F0 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: F0 09 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: F0 09 00 33 0D 00 31 0B 22 67 47 6C 1F 67 36 [10:32:17]GetLastDocTimeStamp 1730284160 [10:32:17]current date 1730284337 [10:32:17]FM_GetShiftState [10:32:17]SAM_PROTO_GetShiftState [10:32:17]wFMCommunicate request_size=4 [10:32:17]MH_SAM_APDU [10:32:17]CAPDU: 80 13 01 00 [10:32:17]Write to MH i2c: E2 08 00 34 0D 80 13 01 00 00 00 00 00 BE [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:17]Read from MH i2c: E2 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 0E 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 0E 00 34 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 96 [10:32:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:32:17]wFMCommunicate OK [10:32:17]SAM_PROTO_GetShiftState done [10:32:17]FM_GetShiftState done [10:32:17]opened in 1730246605 [10:32:17]opened+sec_in_day 1730333005 [10:32:17]quantity*price = 30038 [10:32:17]sum+1 = 30039 [10:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 72 30.10.2024 10:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118012 ФПД: 140535911147821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103217&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118012&fm=140535911147821&tin=02508201610067®Number=0000000000091782&sum=30000 [10:32:18]StoreToDocumentArchive [10:32:18]shift 545 fd 118012 [10:32:18]save to /storage/0545/doc_00118012 [10:32:18]save last doc name /storage/0545/doc_00118012 to /storage/kkm_last_doc_name [10:32:18]save OK [10:32:18]Clear old archive folders... [10:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:18]tlvbuf is 0066CF60 [10:32:18]SAM_PROTO_ClearQueue [10:32:18]wFMCommunicate request_size=4 [10:32:18]MH_SAM_APDU [10:32:18]CAPDU: 80 09 00 00 [10:32:18]Write to MH i2c: E2 08 00 41 0D 80 09 00 00 00 00 00 00 C0 [10:32:18]Write i2c OK [10:32:18]MH_I2C_Read... [10:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:18]Read from MH i2c: E2 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: E2 03 00 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [10:32:18]RAPDU: 90 00 [10:32:18]wFMCommunicate OK [10:32:18]SAM_PROTO_ClearQueue done [10:32:18]KKMCreateOFDPacket [10:32:18]OFDProtocolAddRootSTLVToBuf [10:32:18]FM_MakeSignedData [10:32:18]FM_MakeSignedData [10:32:18]SAM_PROTO_SignData [10:32:18]wFMCommunicate request_size=4 [10:32:18]MH_SAM_APDU [10:32:18]CAPDU: 80 0D 01 02 [10:32:18]Write to MH i2c: E2 08 00 42 0D 80 0D 01 02 00 00 00 00 C8 [10:32:18]Write i2c OK [10:32:18]MH_I2C_Read... [10:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:18]Read from MH i2c: E2 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: E2 03 00 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [10:32:18]RAPDU: 90 00 [10:32:18]wFMCommunicate OK [10:32:18]wFMCommunicate request_size=255 [10:32:18]MH_SAM_APDU [10:32:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 48 00 00 00 F4 03 04 00 31 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CC 01 00 35 04 06 00 7F [10:32:18]Write to MH i2c: E2 02 01 43 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 31 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CC 01 00 35 04 06 00 7F 00 00 C6 [10:32:18]Write i2c OK [10:32:18]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [10:32:19]RAPDU: 90 00 [10:32:19]wFMCommunicate OK [10:32:19]wFMCommunicate request_size=10 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 0D 02 02 05 D1 11 0F E9 2D [10:32:19]Write to MH i2c: E2 0D 00 44 0D 80 0D 02 02 05 00 D1 11 0F E9 2D 00 00 DC [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [10:32:19]RAPDU: 90 00 [10:32:19]wFMCommunicate OK [10:32:19]wFMCommunicate request_size=4 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 0D 03 02 [10:32:19]Write to MH i2c: E2 08 00 45 0D 80 0D 03 02 00 00 00 00 CD [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 0B 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 0B 00 45 0D 00 D5 32 D2 7B 4E C2 81 FA 90 00 AD [10:32:19]RAPDU: D5 32 D2 7B 4E C2 81 FA 90 00 [10:32:19]wFMCommunicate OK [10:32:19]SAM_PROTO_SignData done [10:32:19]FM_MakeSignedData done [10:32:19]CreateOFDProtocolMessage [10:32:19]wFMCommunicate request_size=4 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 11 00 00 [10:32:19]Write to MH i2c: E2 08 00 46 0D 80 11 00 00 00 00 00 00 CD [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 17 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 17 00 46 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 24 [10:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:32:19]wFMCommunicate OK [10:32:19]CreateOFDProtocolMessage done [10:32:19]OFDSenderStorePacket 118012 [10:32:19]StoreOFDPacket docnum=118012 [10:32:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7E 70 07 01 D6 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 32 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 48 00 00 00 F4 03 04 00 31 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CC 01 00 35 04 06 00 7F D1 11 0F E9 2D D5 32 D2 7B 4E C2 81 FA [10:32:19]CheckFolder [10:32:19]dirname=/storage/ofd_packets [10:32:19]CheckFolder done [10:32:19]ProducePacketName [10:32:19]name=ofd_packets/00118012 [10:32:19]NVStorageSaveData ofd_packets/00118012 [10:32:19]File name is /storage/ofd_packets/00118012 [10:32:19]Write 301 bytes [10:32:19]NVStorageSaveData done [10:32:19]OFDSenderStorePacket done [10:32:19]KKMCreateOFDPacket done [10:32:19]NVStorageSaveData kkm_last_timestamp [10:32:19]File name is /storage/kkm_last_timestamp [10:32:19]Write 4 bytes [10:32:19]NVStorageSaveData done [10:32:19]ExternCall_PrintAddStr [10:32:19]wPrintStart [10:32:19]Write to MH i2c: 01 00 00 47 0D 54 [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: 01 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: 01 07 00 [10:32:19]MH_I2C_Read... [10:32:19]OFD Sender: Processing packet 118012 [packets to send 77, broken 76] [10:32:19]Read from MH i2c: ProducePacketName [10:32:19]01 name=ofd_packets/00118012 [10:32:19]07 00 47 OFD Sender: To server: pG, [10:32:19]0D CommunicateWithHost lk.salyk.kg:30040 [10:32:19]00 ConnectInit lk.salyk.kg [10:32:19]00 00 00 00 FF 0F 69 [10:32:19]RasterBufferAndPrint [10:32:19]line Счет N : (1)245805 [10:32:19]line ИНН: 02508201610067 [10:32:19]line Контрольно-Кассовый Чек [10:32:19]line ПРОДАЖА [10:32:19]line ТРК (МРК, ГНК) : 21 [10:32:19]line Товар: 2710124130 [10:32:19]line Аи-92-К-2 [10:32:19]line 4.490 * 66.90 [10:32:19]line = 300.38 [10:32:19]line НДС 12% НСП 1% [10:32:19]line > о реализуемом товаре [10:32:19]line ОКРУГЛЕНИЕ: -0.38 [10:32:19]line ИТОГО: 300.00 [10:32:19]line Внесено: 300.00 [10:32:19]line СДАЧА: 0.00 [10:32:19]line НСП 1% : 2.66 [10:32:19]line НДС 12% : 31.90 [10:32:19]line Наличными: 300.00 [10:32:19]line Безнал.: 0.00 [10:32:19]line Место: АЗС № 173 "Партнер Нефть" [10:32:19]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:32:19]line СНО: Общий режим [10:32:19]line Чек 72 30.10.2024 10:32 [10:32:19]line Смена: 545 ФФД: 1.0 [10:32:19]line ЗНМ: 0300000115 [10:32:19]line РНМ: 0000000000091782 [10:32:19]line Версия ККМ: 001 [10:32:19]line ФМ: 0000000000871767 [10:32:19]line ФД: 118012 [10:32:19]line ФПД: 140535911147821 [10:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103217&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118012&fm=140535911147821&tin=02508201610067®Number=0000000000091782&sum=30000 [10:32:19]Connected sock=10 [10:32: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 36 37 0F 01 00 00 7E 70 07 01 D6 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 32 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 48 00 00 00 F4 03 04 00 31 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CC 01 00 35 04 06 00 7F D1 11 0F E9 2D D5 32 D2 7B 4E C2 81 FA [10:32:19]written 0, free lines is 4095 [10:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 5A 34 47 00 FF 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FC CC 01 00 F4 03 04 00 E9 B6 21 67 B6 04 01 00 00 EE 27 3D A8 A0 CC FA 1E [10:32:19]CommunicateWithHost err = 0 [10:32:19]CheckOFDResponse [10:32:19]1017 (14) - 77093643461234 [10:32:19]1041 (16) - 0000000000871767 [10:32:19]1040 (4) - 118012 [10:32:19]1012 (4) - 30.10.2024 04:32 [10:32:19]1206 (1) - 0 [10:32:19]OFD Sender: Remove packet 118012 [10:32:19]ProducePacketName [10:32:19]name=ofd_packets/00118012 [10:32:19]NVStorageDeleteData [10:32:20]Write to MH i2c: 01 00 00 71 0D 7E [10:32:20]Write i2c OK [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 07 00 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 07 00 71 0D 00 00 00 00 00 B3 0C 44 [10:32:20]RasterBufferAndPrint [10:32:20]line [10:32:20]line [10:32:20]line [10:32:20]line [10:32:20]line [10:32:20]written 0, free lines is 3259 [10:32:20]MH_Cut [10:32:20]Write to MH i2c: D1 01 00 78 0D 01 57 [10:32:20]Write i2c OK [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: D1 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: D1 01 00 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: D1 01 00 78 0D 00 56 [10:32:20]Write to MH i2c: 01 00 00 79 0D 86 [10:32:20]Write i2c OK [10:32:20]MH_I2C_Read... [10:32:20]OFD Sender: No OFD packet to send [10:32:20]*** Cut start [10:32:20]*** Purtial cut [10:32:20]*** Stage 1: CUTSNS_PIN = 1 [10:32:21]Read from MH i2c: 01 [10:32:21]MH_I2C_Read... [10:32:21]*** Stop cut motor [10:32:21]*** Cut end [10:32:21]Read from MH i2c: 01 07 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [10:32:21]process_action close_receipt done [10:32:21]requested_data is exist [10:32:21]produce_requested_data [10:32:21]requested_item fm.sn is exist - process it [10:32:21]wFMCommunicate request_size=4 [10:32:21]MH_SAM_APDU [10:32:21]CAPDU: 80 11 00 00 [10:32:21]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [10:32:21]Write i2c OK [10:32:21]MH_I2C_Read... [10:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:21]Read from MH i2c: E2 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 17 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 17 00 7A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 58 [10:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:32:21]wFMCommunicate OK [10:32:21]requested_item fd.num is exist - process it [10:32:21]SAM_PROTO_GetFieldsCounters [10:32:21]wFMCommunicate request_size=4 [10:32:21]MH_SAM_APDU [10:32:21]CAPDU: 80 13 00 00 [10:32:21]Write to MH i2c: E2 08 00 7B 0D 80 13 00 00 00 00 00 00 04 [10:32:21]Write i2c OK [10:32:21]MH_I2C_Read... [10:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:21]Read from MH i2c: E2 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 62 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 62 00 7B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [10:32: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FC CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:21]wFMCommunicate OK [10:32:21]SAM_PROTO_GetFieldsCounters done [10:32:21]requested_item shift.num is exist - process it [10:32:21]requested_item shift.opened is exist - process it [10:32:21]req_shift_opened [10:32:21]FM_GetShiftState [10:32:21]SAM_PROTO_GetShiftState [10:32:21]wFMCommunicate request_size=4 [10:32:21]MH_SAM_APDU [10:32:21]CAPDU: 80 13 01 00 [10:32:21]Write to MH i2c: E2 08 00 7C 0D 80 13 01 00 00 00 00 00 06 [10:32:21]Write i2c OK [10:32:21]MH_I2C_Read... [10:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:21]Read from MH i2c: E2 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 0E 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 0E 00 7C 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DE [10:32:21]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:32:21]wFMCommunicate OK [10:32:21]SAM_PROTO_GetShiftState done [10:32:21]FM_GetShiftState done [10:32:21]req_shift_opened done [10:32:21]requested_item shift.open_date is exist - process it [10:32:21]req_shift_open_date [10:32:21]req_shift_open_date done [10:32:21]produce_requested_data done [10:32:21]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118012,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:32:21]process_action_free close_receipt [10:32:21]json_value_free [10:32:21]json_value_free done [10:32:21]process_json_proto returns [10:32:21]Send response to host [10:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118012,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:32:21]free response buf [10:32:21]execute_script done [10:32:21]execute_script returns [10:32:21]free content buf [10:32:21]Sock 7.Close socket [10:32:21]Sock 7.Thread stoped [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:29]accept exits with 9 [10:34:29]New connection [10:34:29]New thread 3067415908 created [10:34:29]Thread 3067559268 joined [10:34:29]Waiting for new connection... [10:34:29] Sock 9.Parse request [10:34:29]Sock 9.Check first char [10:34:29]Sock 9.First char is OK [10:34:29]request: POST /json_proto HTTP/1.0 [10:34:29]Method: POST [10:34:29]URL: /json_proto [10:34:29]Method is POST - this is cgi request [10:34:29]url: /json_proto [10:34:29]query_string will be loaded in cgi processing [10:34:29]execute_cgi json_proto POST (null) [10:34:29]execute_cgi path=json_proto method=POST [10:34:29]POST find Content-Length [10:34:29]Host: 172.17.96.67:8080 [10:34:29]Content-Length: 682 [10:34:29]Content-Type: application/json [10:34:29] [10:34:29]POST finish read [10:34:29]Found Content-Length = 682 [10:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:29]execute_script... [10:34: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)245806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:29]POST & json_proto [10:34:29]process_json_proto [10:34:29]json parsed OK: [10:34:29]protocol is kg_v1.0 [10:34:29]action value=close_receipt [10:34:29]process_action close_receipt [10:34:29]cmd_close_receipt [10:34:29]MH_GetDate [10:34:29]Write to MH i2c: F0 00 00 7D 0D 79 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: F0 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: F0 09 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: F0 09 00 7D 0D 00 B6 0B 22 67 47 6C 1F 67 05 [10:34:29]GetLastDocTimeStamp 1730284337 [10:34:29]current date 1730284470 [10:34:29]FM_GetShiftState [10:34:29]SAM_PROTO_GetShiftState [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 13 01 00 [10:34:29]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 0E 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E0 [10:34:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:34:29]wFMCommunicate OK [10:34:29]SAM_PROTO_GetShiftState done [10:34:29]FM_GetShiftState done [10:34:29]opened in 1730246605 [10:34:29]opened+sec_in_day 1730333005 [10:34:29]quantity*price = 100015 [10:34:29]sum+1 = 100017 [10:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 73 30.10.2024 10:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118013 ФПД: 187812044250928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103430&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118013&fm=187812044250928&tin=02508201610067®Number=0000000000091782&sum=100000 [10:34:30]StoreToDocumentArchive [10:34:30]shift 545 fd 118013 [10:34:30]save to /storage/0545/doc_00118013 [10:34:30]save last doc name /storage/0545/doc_00118013 to /storage/kkm_last_doc_name [10:34:30]save OK [10:34:30]Clear old archive folders... [10:34:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:30]tlvbuf is 0063F190 [10:34:30]SAM_PROTO_ClearQueue [10:34:30]wFMCommunicate request_size=4 [10:34:30]MH_SAM_APDU [10:34:30]CAPDU: 80 09 00 00 [10:34:30]Write to MH i2c: E2 08 00 8B 0D 80 09 00 00 00 00 00 00 0A [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:30]Read from MH i2c: E2 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 03 00 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [10:34:30]RAPDU: 90 00 [10:34:30]wFMCommunicate OK [10:34:30]SAM_PROTO_ClearQueue done [10:34:30]KKMCreateOFDPacket [10:34:30]OFDProtocolAddRootSTLVToBuf [10:34:30]FM_MakeSignedData [10:34:30]FM_MakeSignedData [10:34:30]SAM_PROTO_SignData [10:34:30]wFMCommunicate request_size=4 [10:34:30]MH_SAM_APDU [10:34:30]CAPDU: 80 0D 01 02 [10:34:30]Write to MH i2c: E2 08 00 8C 0D 80 0D 01 02 00 00 00 00 12 [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:30]Read from MH i2c: E2 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 03 00 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [10:34:30]RAPDU: 90 00 [10:34:30]wFMCommunicate OK [10:34:30]wFMCommunicate request_size=255 [10:34:30]MH_SAM_APDU [10:34: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 32 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 49 00 00 00 F4 03 04 00 B6 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CC 01 00 35 04 06 00 AA [10:34:30]Write to MH i2c: E2 02 01 8D 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 B6 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CC 01 00 35 04 06 00 AA 00 00 C8 [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 03 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [10:34:31]RAPDU: 90 00 [10:34:31]wFMCommunicate OK [10:34:31]wFMCommunicate request_size=10 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 0D 02 02 05 D0 66 2E 9F 30 [10:34:31]Write to MH i2c: E2 0D 00 8E 0D 80 0D 02 02 05 00 D0 66 2E 9F 30 00 00 52 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 03 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [10:34:31]RAPDU: 90 00 [10:34:31]wFMCommunicate OK [10:34:31]wFMCommunicate request_size=4 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 0D 03 02 [10:34:31]Write to MH i2c: E2 08 00 8F 0D 80 0D 03 02 00 00 00 00 17 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 0B 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 0B 00 8F 0D 00 F4 2F E7 9D 04 F3 DB B9 90 00 4A [10:34:31]RAPDU: F4 2F E7 9D 04 F3 DB B9 90 00 [10:34:31]wFMCommunicate OK [10:34:31]SAM_PROTO_SignData done [10:34:31]FM_MakeSignedData done [10:34:31]CreateOFDProtocolMessage [10:34:31]wFMCommunicate request_size=4 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 11 00 00 [10:34:31]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 17 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6E [10:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:34:31]wFMCommunicate OK [10:34:31]CreateOFDProtocolMessage done [10:34:31]OFDSenderStorePacket 118013 [10:34:31]StoreOFDPacket docnum=118013 [10:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 63 08 07 01 C0 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 32 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 49 00 00 00 F4 03 04 00 B6 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CC 01 00 35 04 06 00 AA D0 66 2E 9F 30 F4 2F E7 9D 04 F3 DB B9 [10:34:31]CheckFolder [10:34:31]dirname=/storage/ofd_packets [10:34:31]CheckFolder done [10:34:31]ProducePacketName [10:34:31]name=ofd_packets/00118013 [10:34:31]NVStorageSaveData ofd_packets/00118013 [10:34:31]File name is /storage/ofd_packets/00118013 [10:34:31]Write 301 bytes [10:34:31]NVStorageSaveData done [10:34:31]OFDSenderStorePacket done [10:34:31]KKMCreateOFDPacket done [10:34:31]NVStorageSaveData kkm_last_timestamp [10:34:31]File name is /storage/kkm_last_timestamp [10:34:31]Write 4 bytes [10:34:31]NVStorageSaveData done [10:34:31]ExternCall_PrintAddStr [10:34:31]wPrintStart [10:34:31]Write to MH i2c: 01 00 00 91 0D 9E [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 FF 0F B3 [10:34:31]RasterBufferAndPrint [10:34:31]line Счет N : (1)245806 [10:34:31]line ИНН: 02508201610067 [10:34:31]line Контрольно-Кассовый Чек [10:34:31]line ПРОДАЖА [10:34:31]line ТРК (МРК, ГНК) : 11 [10:34:31]line Товар: 2710124130 [10:34:31]line Аи-92-К-2 [10:34:31]line 14.950 * 66.90 [10:34:31]line = 1000.16 [10:34:31]line НДС 12% НСП 1% [10:34:31]line > о реализуемом товаре [10:34:31]line ОКРУГЛЕНИЕ: -0.16 [10:34:31]line ИТОГО: 1000.00 [10:34:31]line Внесено: 1000.00 [10:34:31]line СДАЧА: 0.00 [10:34:31]line НСП 1% : 8.85 [10:34:31]line НДС 12% : 106.21 [10:34:31]line Наличными: 1000.00 [10:34:31]line Безнал.: 0.00 [10:34:31]line Место: АЗС № 173 "Партнер Нефть" [10:34:31]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:34:31]line СНО: Общий режим [10:34:31]line Чек 73 30.10.2024 10:34 [10:34:31]line Смена: 545 ФФД: 1.0 [10:34:31]line ЗНМ: 0300000115 [10:34:31]line РНМ: 0000000000091782 [10:34:31]line Версия ККМ: 001 [10:34:31]line ФМ: 0000000000871767 [10:34:31]line ФД: 118013 [10:34:31]line ФПД: 187812044250928 [10:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103430&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118013&fm=187812044250928&tin=02508201610067®Number=0000000000091782&sum=100000 [10:34:31]written 0, free lines is 4095 [10:34:31]OFD Sender: Processing packet 118013 [packets to send 77, broken 76] [10:34:31]ProducePacketName [10:34:31]name=ofd_packets/00118013 [10:34:31]OFD Sender: To server: pG, [10:34:31]CommunicateWithHost lk.salyk.kg:30040 [10:34:31]ConnectInit lk.salyk.kg [10:34:31]Connected sock=10 [10:34: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 36 37 0F 01 00 00 63 08 07 01 C0 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 32 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 49 00 00 00 F4 03 04 00 B6 0B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CC 01 00 35 04 06 00 AA D0 66 2E 9F 30 F4 2F E7 9D 04 F3 DB B9 [10:34:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 CD 50 47 00 DB 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FD CC 01 00 F4 03 04 00 6D B7 21 67 B6 04 01 00 00 EF C0 0F 42 0C 81 12 31 [10:34:31]CommunicateWithHost err = 0 [10:34:31]CheckOFDResponse [10:34:31]1017 (14) - 77093643461234 [10:34:31]1041 (16) - 0000000000871767 [10:34:31]1040 (4) - 118013 [10:34:31]1012 (4) - 30.10.2024 04:34 [10:34:31]1206 (1) - 0 [10:34:31]OFD Sender: Remove packet 118013 [10:34:31]ProducePacketName [10:34:31]name=ofd_packets/00118013 [10:34:31]NVStorageDeleteData [10:34:32]Write to MH i2c: 01 00 00 BB 0D C8 [10:34:32]Write i2c OK [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: 01 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: 01 07 00 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: 01 07 00 BB 0D 00 00 00 00 00 C4 0C 9F [10:34:32]RasterBufferAndPrint [10:34:32]line [10:34:32]line [10:34:32]line [10:34:32]line [10:34:32]line [10:34:32]written 0, free lines is 3274 [10:34:32]MH_Cut [10:34:32]Write to MH i2c: D1 01 00 C2 0D 01 A1 [10:34:32]Write i2c OK [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: D1 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: D1 01 00 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: D1 01 00 C2 0D 00 A0 [10:34:32]Write to MH i2c: 01 00 00 C3 0D D0 [10:34:32]Write i2c OK [10:34:32]MH_I2C_Read... [10:34:32]OFD Sender: No OFD packet to send [10:34:32]*** Cut start [10:34:32]*** Purtial cut [10:34:32]*** Stage 1: CUTSNS_PIN = 1 [10:34:33]Read from MH i2c: 01 [10:34:33]MH_I2C_Read... [10:34:33]*** Stop cut motor [10:34:33]*** Cut end [10:34:33]Read from MH i2c: 01 07 00 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [10:34:33]process_action close_receipt done [10:34:33]requested_data is exist [10:34:33]produce_requested_data [10:34:33]requested_item fm.sn is exist - process it [10:34:33]wFMCommunicate request_size=4 [10:34:33]MH_SAM_APDU [10:34:33]CAPDU: 80 11 00 00 [10:34:33]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [10:34:33]Write i2c OK [10:34:33]MH_I2C_Read... [10:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:33]Read from MH i2c: E2 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: E2 17 00 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A2 [10:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:34:33]wFMCommunicate OK [10:34:33]requested_item fd.num is exist - process it [10:34:33]SAM_PROTO_GetFieldsCounters [10:34:33]wFMCommunicate request_size=4 [10:34:33]MH_SAM_APDU [10:34:33]CAPDU: 80 13 00 00 [10:34:33]Write to MH i2c: E2 08 00 C5 0D 80 13 00 00 00 00 00 00 4E [10:34:33]Write i2c OK [10:34:33]MH_I2C_Read... [10:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:33]Read from MH i2c: E2 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: E2 62 00 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: E2 62 00 C5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:34: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FD CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:33]wFMCommunicate OK [10:34:33]SAM_PROTO_GetFieldsCounters done [10:34:33]requested_item shift.num is exist - process it [10:34:33]requested_item shift.opened is exist - process it [10:34:33]req_shift_opened [10:34:33]FM_GetShiftState [10:34:33]SAM_PROTO_GetShiftState [10:34:33]wFMCommunicate request_size=4 [10:34:33]MH_SAM_APDU [10:34:33]CAPDU: 80 13 01 00 [10:34:33]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [10:34:33]Write i2c OK [10:34:33]MH_I2C_Read... [10:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:33]Read from MH i2c: E2 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: E2 0E 00 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 28 [10:34:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:34:33]wFMCommunicate OK [10:34:33]SAM_PROTO_GetShiftState done [10:34:33]FM_GetShiftState done [10:34:33]req_shift_opened done [10:34:33]requested_item shift.open_date is exist - process it [10:34:33]req_shift_open_date [10:34:33]req_shift_open_date done [10:34:33]produce_requested_data done [10:34:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118013,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:34:33]process_action_free close_receipt [10:34:33]json_value_free [10:34:33]json_value_free done [10:34:33]process_json_proto returns [10:34:33]Send response to host [10:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118013,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:34:33]free response buf [10:34:33]execute_script done [10:34:33]execute_script returns [10:34:33]free content buf [10:34:33]Sock 9.Close socket [10:34:33]Sock 9.Thread stoped [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:50]accept exits with 7 [10:36:50]New connection [10:36:50]New thread 3067559268 created [10:36:50]Thread 3067415908 joined [10:36:50]Waiting for new connection... [10:36:50] Sock 7.Parse request [10:36:50]Sock 7.Check first char [10:36:50]Sock 7.First char is OK [10:36:50]request: POST /json_proto HTTP/1.0 [10:36:50]Method: POST [10:36:50]URL: /json_proto [10:36:50]Method is POST - this is cgi request [10:36:50]url: /json_proto [10:36:50]query_string will be loaded in cgi processing [10:36:50]execute_cgi json_proto POST (null) [10:36:50]execute_cgi path=json_proto method=POST [10:36:50]POST find Content-Length [10:36:50]Host: 172.17.96.67:8080 [10:36:50]Content-Length: 677 [10:36:50]Content-Type: application/json [10:36:50] [10:36:50]POST finish read [10:36:50]Found Content-Length = 677 [10:36:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.970, "sum" : 332.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 332.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:50]execute_script... [10:36: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)245807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.970, "sum" : 332.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 332.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:50]POST & json_proto [10:36:50]process_json_proto [10:36:50]json parsed OK: [10:36:50]protocol is kg_v1.0 [10:36:50]action value=close_receipt [10:36:50]process_action close_receipt [10:36:50]cmd_close_receipt [10:36:50]MH_GetDate [10:36:50]Write to MH i2c: F0 00 00 C7 0D C3 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: F0 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: F0 09 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: F0 09 00 C7 0D 00 42 0C 22 67 47 6C 1F 67 DC [10:36:50]GetLastDocTimeStamp 1730284470 [10:36:50]current date 1730284610 [10:36:50]FM_GetShiftState [10:36:50]SAM_PROTO_GetShiftState [10:36:50]wFMCommunicate request_size=4 [10:36:50]MH_SAM_APDU [10:36:50]CAPDU: 80 13 01 00 [10:36:50]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:50]Read from MH i2c: E2 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 0E 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2A [10:36:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:36:50]wFMCommunicate OK [10:36:50]SAM_PROTO_GetShiftState done [10:36:50]FM_GetShiftState done [10:36:50]opened in 1730246605 [10:36:50]opened+sec_in_day 1730333005 [10:36:50]quantity*price = 33249 [10:36:50]sum+1 = 33250 [10:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 332.00 Внесено: 340.00 СДАЧА: 8.00 НСП 1% : 2.94 НДС 12% : 35.31 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 74 30.10.2024 10:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118014 ФПД: 199790570286793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103650&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118014&fm=199790570286793&tin=02508201610067®Number=0000000000091782&sum=33200 [10:36:51]StoreToDocumentArchive [10:36:51]shift 545 fd 118014 [10:36:51]save to /storage/0545/doc_00118014 [10:36:51]save last doc name /storage/0545/doc_00118014 to /storage/kkm_last_doc_name [10:36:51]save OK [10:36:51]Clear old archive folders... [10:36:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:51]tlvbuf is 00647CC0 [10:36:51]SAM_PROTO_ClearQueue [10:36:51]wFMCommunicate request_size=4 [10:36:51]MH_SAM_APDU [10:36:51]CAPDU: 80 09 00 00 [10:36:51]Write to MH i2c: E2 08 00 D5 0D 80 09 00 00 00 00 00 00 54 [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:51]Read from MH i2c: E2 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [10:36:51]RAPDU: 90 00 [10:36:51]wFMCommunicate OK [10:36:51]SAM_PROTO_ClearQueue done [10:36:51]KKMCreateOFDPacket [10:36:51]OFDProtocolAddRootSTLVToBuf [10:36:51]FM_MakeSignedData [10:36:51]FM_MakeSignedData [10:36:51]SAM_PROTO_SignData [10:36:51]wFMCommunicate request_size=4 [10:36:51]MH_SAM_APDU [10:36:51]CAPDU: 80 0D 01 02 [10:36:51]Write to MH i2c: E2 08 00 D6 0D 80 0D 01 02 00 00 00 00 5C [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:51]Read from MH i2c: E2 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [10:36:51]RAPDU: 90 00 [10:36:51]wFMCommunicate OK [10:36:51]wFMCommunicate request_size=255 [10:36:51]MH_SAM_APDU [10:36: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 32 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 42 0C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CC 01 00 35 04 06 00 B5 [10:36:51]Write to MH i2c: E2 02 01 D7 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 42 0C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CC 01 00 35 04 06 00 B5 00 00 A9 [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:51]Read from MH i2c: E2 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [10:36:51]RAPDU: 90 00 [10:36:51]wFMCommunicate OK [10:36:51]wFMCommunicate request_size=10 [10:36:51]MH_SAM_APDU [10:36:51]CAPDU: 80 0D 02 02 05 B5 5D F8 AE C9 [10:36:51]Write to MH i2c: E2 0D 00 D8 0D 80 0D 02 02 05 00 B5 5D F8 AE C9 00 00 EA [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:51]Read from MH i2c: E2 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [10:36:51]RAPDU: 90 00 [10:36:51]wFMCommunicate OK [10:36:51]wFMCommunicate request_size=4 [10:36:51]MH_SAM_APDU [10:36:51]CAPDU: 80 0D 03 02 [10:36:51]Write to MH i2c: E2 08 00 D9 0D 80 0D 03 02 00 00 00 00 61 [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:51]Read from MH i2c: E2 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 0B 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 0B 00 D9 0D 00 F2 2C E9 4D 22 CA 45 60 90 00 47 [10:36:51]RAPDU: F2 2C E9 4D 22 CA 45 60 90 00 [10:36:51]wFMCommunicate OK [10:36:51]SAM_PROTO_SignData done [10:36:51]FM_MakeSignedData done [10:36:51]CreateOFDProtocolMessage [10:36:51]wFMCommunicate request_size=4 [10:36:51]MH_SAM_APDU [10:36:51]CAPDU: 80 11 00 00 [10:36:51]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:51]Read from MH i2c: E2 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 17 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B8 [10:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:36:51]wFMCommunicate OK [10:36:51]CreateOFDProtocolMessage done [10:36:51]OFDSenderStorePacket 118014 [10:36:51]StoreOFDPacket docnum=118014 [10:36:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 83 11 07 01 C9 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 42 0C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CC 01 00 35 04 06 00 B5 B5 5D F8 AE C9 F2 2C E9 4D 22 CA 45 60 [10:36:51]CheckFolder [10:36:51]dirname=/storage/ofd_packets [10:36:51]CheckFolder done [10:36:51]ProducePacketName [10:36:51]name=ofd_packets/00118014 [10:36:51]NVStorageSaveData ofd_packets/00118014 [10:36:51]File name is /storage/ofd_packets/00118014 [10:36:51]Write 301 bytes [10:36:51]NVStorageSaveData done [10:36:51]OFDSenderStorePacket done [10:36:51]KKMCreateOFDPacket done [10:36:51]NVStorageSaveData kkm_last_timestamp [10:36:51]File name is /storage/kkm_last_timestamp [10:36:51]Write 4 bytes [10:36:51]NVStorageSaveData done [10:36:51]ExternCall_PrintAddStr [10:36:51]wPrintStart [10:36:51]Write to MH i2c: 01 00 00 DB 0D E8 [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: 01 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: 01 07 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: 01 07 00 DB 0D 00 00 00 00 00 FF 0F FD [10:36:51]RasterBufferAndPrint [10:36:51]line Счет N : (1)245807 [10:36:51]line ИНН: 02508201610067 [10:36:51]line Контрольно-Кассовый Чек [10:36:51]line ПРОДАЖА [10:36:51]line ТРК (МРК, ГНК) : 11 [10:36:51]line Товар: 2710124130 [10:36:51]line Аи-92-К-2 [10:36:51]line 4.970 * 66.90 [10:36:51]line = 332.49 [10:36:51]line НДС 12% НСП 1% [10:36:51]line > о реализуемом товаре [10:36:51]line ОКРУГЛЕНИЕ: -0.49 [10:36:51]line ИТОГО: 332.00 [10:36:51]line Внесено: 340.00 [10:36:51]line СДАЧА: 8.00 [10:36:51]line НСП 1% : 2.94 [10:36:51]line НДС 12% : 35.31 [10:36:51]line Наличными: 332.00 [10:36:51]line Безнал.: 0.00 [10:36:51]line Место: АЗС № 173 "Партнер Нефть" [10:36:51]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:36:51]line СНО: Общий режим [10:36:51]line Чек 74 30.10.2024 10:36 [10:36:51]line Смена: 545 ФФД: 1.0 [10:36:51]line ЗНМ: 0300000115 [10:36:51]line РНМ: 0000000000091782 [10:36:51]line Версия ККМ: 001 [10:36:51]line ФМ: 0000000000871767 [10:36:51]line ФД: 118014 [10:36:51]line ФПД: 199790570286793 [10:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103650&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118014&fm=199790570286793&tin=02508201610067®Number=0000000000091782&sum=33200 [10:36:51]written 0, free lines is 4095 [10:36:51]OFD Sender: Processing packet 118014 [packets to send 77, broken 76] [10:36:51]ProducePacketName [10:36:51]name=ofd_packets/00118014 [10:36:51]OFD Sender: To server: pG, [10:36:51]CommunicateWithHost lk.salyk.kg:30040 [10:36:51]ConnectInit lk.salyk.kg [10:36:52]Connected sock=11 [10:36: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 36 37 0F 01 00 00 83 11 07 01 C9 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 42 0C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FE CC 01 00 35 04 06 00 B5 B5 5D F8 AE C9 F2 2C E9 4D 22 CA 45 60 [10:36: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 36 37 4F 00 00 00 A5 43 47 00 8B 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 36 37 10 04 04 00 FE CC 01 00 F4 03 04 00 FA B7 21 67 B6 04 01 00 00 B2 3D C0 7F 06 E9 54 8F [10:36:52]CommunicateWithHost err = 0 [10:36:52]CheckOFDResponse [10:36:52]1017 (14) - 77093643461234 [10:36:52]1041 (16) - 0000000000871767 [10:36:52]1040 (4) - 118014 [10:36:52]1012 (4) - 30.10.2024 04:37 [10:36:52]1206 (1) - 0 [10:36:52]OFD Sender: Remove packet 118014 [10:36:52]ProducePacketName [10:36:52]name=ofd_packets/00118014 [10:36:52]NVStorageDeleteData [10:36:52]Write to MH i2c: 01 00 00 05 0E 13 [10:36:52]Write i2c OK [10:36:52]MH_I2C_Read... [10:36:52]Read from MH i2c: 01 [10:36:52]MH_I2C_Read... [10:36:52]Read from MH i2c: 01 07 00 [10:36:52]MH_I2C_Read... [10:36:52]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 BB 0C E1 [10:36:52]RasterBufferAndPrint [10:36:52]line [10:36:52]line [10:36:52]line [10:36:52]line [10:36:52]line [10:36:52]written 0, free lines is 3264 [10:36:52]MH_Cut [10:36:52]Write to MH i2c: D1 01 00 0C 0E 01 EC [10:36:52]Write i2c OK [10:36:52]MH_I2C_Read... [10:36:52]Read from MH i2c: D1 [10:36:52]MH_I2C_Read... [10:36:52]Read from MH i2c: D1 01 00 [10:36:52]MH_I2C_Read... [10:36:52]Read from MH i2c: D1 01 00 0C 0E 00 EB [10:36:52]Write to MH i2c: 01 00 00 0D 0E 1B [10:36:52]Write i2c OK [10:36:52]MH_I2C_Read... [10:36:52]OFD Sender: No OFD packet to send [10:36:53]*** Cut start [10:36:53]*** Purtial cut [10:36:53]*** Stage 1: CUTSNS_PIN = 1 [10:36:53]Read from MH i2c: 01 [10:36:53]MH_I2C_Read... [10:36:53]*** Stop cut motor [10:36:53]*** Cut end [10:36:53]Read from MH i2c: 01 07 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 FF 0F 30 [10:36:53]process_action close_receipt done [10:36:53]requested_data is exist [10:36:53]produce_requested_data [10:36:53]requested_item fm.sn is exist - process it [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 11 00 00 [10:36:53]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:53]Read from MH i2c: E2 17 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 ED [10:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:36:53]wFMCommunicate OK [10:36:53]requested_item fd.num is exist - process it [10:36:53]SAM_PROTO_GetFieldsCounters [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 13 00 00 [10:36:53]Write to MH i2c: E2 08 00 0F 0E 80 13 00 00 00 00 00 00 99 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 62 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 62 00 0F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [10:36:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FE CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:53]wFMCommunicate OK [10:36:53]SAM_PROTO_GetFieldsCounters done [10:36:53]requested_item shift.num is exist - process it [10:36:53]requested_item shift.opened is exist - process it [10:36:53]req_shift_opened [10:36:53]FM_GetShiftState [10:36:53]SAM_PROTO_GetShiftState [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 13 01 00 [10:36:53]Write to MH i2c: E2 08 00 10 0E 80 13 01 00 00 00 00 00 9B [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0E 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0E 00 10 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 73 [10:36:53]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:36:53]wFMCommunicate OK [10:36:53]SAM_PROTO_GetShiftState done [10:36:53]FM_GetShiftState done [10:36:53]req_shift_opened done [10:36:53]requested_item shift.open_date is exist - process it [10:36:53]req_shift_open_date [10:36:53]req_shift_open_date done [10:36:53]produce_requested_data done [10:36:53]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118014,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:36:53]process_action_free close_receipt [10:36:53]json_value_free [10:36:53]json_value_free done [10:36:53]process_json_proto returns [10:36:53]Send response to host [10:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118014,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:36:53]free response buf [10:36:53]execute_script done [10:36:53]execute_script returns [10:36:53]free content buf [10:36:53]Sock 7.Close socket [10:36:53]Sock 7.Thread stoped [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:11]accept exits with 9 [10:42:11]New connection [10:42:11]New thread 3067415908 created [10:42:11]Thread 3067559268 joined [10:42:11]Waiting for new connection... [10:42:11] Sock 9.Parse request [10:42:11]Sock 9.Check first char [10:42:11]Sock 9.First char is OK [10:42:11]request: POST /json_proto HTTP/1.0 [10:42:11]Method: POST [10:42:11]URL: /json_proto [10:42:11]Method is POST - this is cgi request [10:42:11]url: /json_proto [10:42:11]query_string will be loaded in cgi processing [10:42:11]execute_cgi json_proto POST (null) [10:42:11]execute_cgi path=json_proto method=POST [10:42:11]POST find Content-Length [10:42:11]Host: 172.17.96.67:8080 [10:42:11]Content-Length: 678 [10:42:11]Content-Type: application/json [10:42:11] [10:42:11]POST finish read [10:42:11]Found Content-Length = 678 [10:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:42:11]execute_script... [10:42:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:42:11]POST & json_proto [10:42:11]process_json_proto [10:42:11]json parsed OK: [10:42:11]protocol is kg_v1.0 [10:42:11]action value=close_receipt [10:42:11]process_action close_receipt [10:42:11]cmd_close_receipt [10:42:11]MH_GetDate [10:42:11]Write to MH i2c: F0 00 00 11 0E 0E [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 09 00 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 09 00 11 0E 00 84 0D 22 67 47 6C 1F 67 6A [10:42:11]GetLastDocTimeStamp 1730284610 [10:42:11]current date 1730284932 [10:42:11]FM_GetShiftState [10:42:11]SAM_PROTO_GetShiftState [10:42:11]wFMCommunicate request_size=4 [10:42:11]MH_SAM_APDU [10:42:11]CAPDU: 80 13 01 00 [10:42:11]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0E 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 75 [10:42:12]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:42:12]wFMCommunicate OK [10:42:12]SAM_PROTO_GetShiftState done [10:42:12]FM_GetShiftState done [10:42:12]opened in 1730246605 [10:42:12]opened+sec_in_day 1730333005 [10:42:12]quantity*price = 70044 [10:42:12]sum+1 = 70045 [10:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 75 30.10.2024 10:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118015 ФПД: 138884942052242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104212&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118015&fm=138884942052242&tin=02508201610067®Number=0000000000091782&sum=70000 [10:42:13]StoreToDocumentArchive [10:42:13]shift 545 fd 118015 [10:42:13]save to /storage/0545/doc_00118015 [10:42:13]save last doc name /storage/0545/doc_00118015 to /storage/kkm_last_doc_name [10:42:13]save OK [10:42:13]Clear old archive folders... [10:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:13]tlvbuf is 00648A50 [10:42:13]SAM_PROTO_ClearQueue [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 09 00 00 [10:42:13]Write to MH i2c: E2 08 00 1F 0E 80 09 00 00 00 00 00 00 9F [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_ClearQueue done [10:42:13]KKMCreateOFDPacket [10:42:13]OFDProtocolAddRootSTLVToBuf [10:42:13]FM_MakeSignedData [10:42:13]FM_MakeSignedData [10:42:13]SAM_PROTO_SignData [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 01 02 [10:42:13]Write to MH i2c: E2 08 00 20 0E 80 0D 01 02 00 00 00 00 A7 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=255 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4B 00 00 00 F4 03 04 00 84 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CC 01 00 35 04 06 00 7E [10:42:13]Write to MH i2c: E2 02 01 21 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 84 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CC 01 00 35 04 06 00 7E 00 00 1B [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=10 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 02 02 05 50 AB A2 BB 92 [10:42:13]Write to MH i2c: E2 0D 00 22 0E 80 0D 02 02 05 00 50 AB A2 BB 92 00 00 9E [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 03 02 [10:42:13]Write to MH i2c: E2 08 00 23 0E 80 0D 03 02 00 00 00 00 AC [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 23 0E 00 9F 2C BF 17 95 71 3D 79 90 00 0A [10:42:13]RAPDU: 9F 2C BF 17 95 71 3D 79 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_SignData done [10:42:13]FM_MakeSignedData done [10:42:13]CreateOFDProtocolMessage [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 11 00 00 [10:42:13]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 03 [10:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:42:13]wFMCommunicate OK [10:42:13]CreateOFDProtocolMessage done [10:42:13]OFDSenderStorePacket 118015 [10:42:13]StoreOFDPacket docnum=118015 [10:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FB 6F 07 01 C9 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 32 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 4B 00 00 00 F4 03 04 00 84 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CC 01 00 35 04 06 00 7E 50 AB A2 BB 92 9F 2C BF 17 95 71 3D 79 [10:42:13]CheckFolder [10:42:13]dirname=/storage/ofd_packets [10:42:13]CheckFolder done [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00118015 [10:42:13]NVStorageSaveData ofd_packets/00118015 [10:42:13]File name is /storage/ofd_packets/00118015 [10:42:13]Write 301 bytes [10:42:13]NVStorageSaveData done [10:42:13]OFDSenderStorePacket done [10:42:13]KKMCreateOFDPacket done [10:42:13]NVStorageSaveData kkm_last_timestamp [10:42:13]File name is /storage/kkm_last_timestamp [10:42:13]Write 4 bytes [10:42:13]NVStorageSaveData done [10:42:13]ExternCall_PrintAddStr [10:42:13]wPrintStart [10:42:13]Write to MH i2c: 01 00 00 25 0E 33 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 25 0E 00 00 00 00 00 FF 0F 48 [10:42:13]RasterBufferAndPrint [10:42:13]line Счет N : (1)245808 [10:42:13]line ИНН: 02508201610067 [10:42:13]line Контрольно-Кассовый Чек [10:42:13]line ПРОДАЖА [10:42:13]line ТРК (МРК, ГНК) : 11 [10:42:13]line Товар: 2710124130 [10:42:13]line Аи-92-К-2 [10:42:13]line 10.470 * 66.90 [10:42:13]line = 700.44 [10:42:13]line НДС 12% НСП 1% [10:42:13]line > о реализуемом товаре [10:42:13]line ОКРУГЛЕНИЕ: -0.44 [10:42:13]line ИТОГО: 700.00 [10:42:13]line Внесено: 700.00 [10:42:13]line СДАЧА: 0.00 [10:42:13]line НСП 1% : 6.20 [10:42:13]line НДС 12% : 74.38 [10:42:13]line Наличными: 700.00 [10:42:13]line Безнал.: 0.00 [10:42:13]line Место: АЗС № 173 "Партнер Нефть" [10:42:13]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:42:13]line СНО: Общий режим [10:42:13]line Чек 75 30.10.2024 10:42 [10:42:13]line Смена: 545 ФФД: 1.0 [10:42:13]line ЗНМ: 0300000115 [10:42:13]line РНМ: 0000000000091782 [10:42:13]line Версия ККМ: 001 [10:42:13]line ФМ: 0000000000871767 [10:42:13]line ФД: 118015 [10:42:13]line ФПД: 138884942052242 [10:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104212&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118015&fm=138884942052242&tin=02508201610067®Number=0000000000091782&sum=70000 [10:42:14]OFD Sender: Processing packet 118015 [packets to send 77, broken 76] [10:42:14]ProducePacketName [10:42:14]name=ofd_packets/00118015 [10:42:14]OFD Sender: To server: pG, [10:42:14]CommunicateWithHost lk.salyk.kg:30040 [10:42:14]ConnectInit lk.salyk.kg [10:42:14]written 0, free lines is 4095 [10:42:14]Connected sock=10 [10:42: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 36 37 0F 01 00 00 FB 6F 07 01 C9 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 32 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 4B 00 00 00 F4 03 04 00 84 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 FF CC 01 00 35 04 06 00 7E 50 AB A2 BB 92 9F 2C BF 17 95 71 3D 79 [10:42: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 36 37 4F 00 00 00 E8 DC 47 00 C0 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 36 37 10 04 04 00 FF CC 01 00 F4 03 04 00 3C B9 21 67 B6 04 01 00 00 CE 31 80 7D 54 1A BC 0F [10:42:14]CommunicateWithHost err = 0 [10:42:14]CheckOFDResponse [10:42:14]1017 (14) - 77093643461234 [10:42:14]1041 (16) - 0000000000871767 [10:42:14]1040 (4) - 118015 [10:42:14]1012 (4) - 30.10.2024 04:42 [10:42:14]1206 (1) - 0 [10:42:14]OFD Sender: Remove packet 118015 [10:42:14]ProducePacketName [10:42:14]name=ofd_packets/00118015 [10:42:14]NVStorageDeleteData [10:42:14]Write to MH i2c: 01 00 00 4F 0E 5D [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 BE 0C 2E [10:42:14]RasterBufferAndPrint [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]written 0, free lines is 3266 [10:42:14]MH_Cut [10:42:14]Write to MH i2c: D1 01 00 56 0E 01 36 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 56 0E 00 35 [10:42:14]Write to MH i2c: 01 00 00 57 0E 65 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]OFD Sender: No OFD packet to send [10:42:15]*** Cut start [10:42:15]*** Purtial cut [10:42:15]*** Stage 1: CUTSNS_PIN = 1 [10:42:15]Read from MH i2c: 01 [10:42:15]MH_I2C_Read... [10:42:15]*** Stop cut motor [10:42:15]*** Cut end [10:42:15]Read from MH i2c: 01 07 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [10:42:15]process_action close_receipt done [10:42:15]requested_data is exist [10:42:15]produce_requested_data [10:42:15]requested_item fm.sn is exist - process it [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 11 00 00 [10:42:15]Write to MH i2c: E2 08 00 58 0E 80 11 00 00 00 00 00 00 E0 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 17 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 17 00 58 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 37 [10:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:42:15]wFMCommunicate OK [10:42:15]requested_item fd.num is exist - process it [10:42:15]SAM_PROTO_GetFieldsCounters [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 13 00 00 [10:42:15]Write to MH i2c: E2 08 00 59 0E 80 13 00 00 00 00 00 00 E3 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 62 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 62 00 59 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [10:42:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 FF CC 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetFieldsCounters done [10:42:15]requested_item shift.num is exist - process it [10:42:15]requested_item shift.opened is exist - process it [10:42:15]req_shift_opened [10:42:15]FM_GetShiftState [10:42:15]SAM_PROTO_GetShiftState [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 13 01 00 [10:42:15]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BD [10:42:15]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetShiftState done [10:42:15]FM_GetShiftState done [10:42:15]req_shift_opened done [10:42:15]requested_item shift.open_date is exist - process it [10:42:15]req_shift_open_date [10:42:15]req_shift_open_date done [10:42:15]produce_requested_data done [10:42:15]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118015,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:42:15]process_action_free close_receipt [10:42:15]json_value_free [10:42:15]json_value_free done [10:42:15]process_json_proto returns [10:42:15]Send response to host [10:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118015,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:42:15]free response buf [10:42:15]execute_script done [10:42:15]execute_script returns [10:42:15]free content buf [10:42:15]Sock 9.Close socket [10:42:15]Sock 9.Thread stoped [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:20]accept exits with 7 [10:43:20]New connection [10:43:20]New thread 3067559268 created [10:43:20]Thread 3067415908 joined [10:43:20]Waiting for new connection... [10:43:20] Sock 7.Parse request [10:43:20]Sock 7.Check first char [10:43:20]Sock 7.First char is OK [10:43:20]request: POST /json_proto HTTP/1.0 [10:43:20]Method: POST [10:43:20]URL: /json_proto [10:43:20]Method is POST - this is cgi request [10:43:20]url: /json_proto [10:43:20]query_string will be loaded in cgi processing [10:43:20]execute_cgi json_proto POST (null) [10:43:20]execute_cgi path=json_proto method=POST [10:43:20]POST find Content-Length [10:43:20]Host: 172.17.96.67:8080 [10:43:20]Content-Length: 766 [10:43:20]Content-Type: application/json [10:43:20] [10:43:20]POST finish read [10:43:20]Found Content-Length = 766 [10:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:43:20]execute_script... [10:43: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)245809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:43:20]POST & json_proto [10:43:20]process_json_proto [10:43:20]json parsed OK: [10:43:20]protocol is kg_v1.0 [10:43:20]action value=close_receipt [10:43:20]process_action close_receipt [10:43:20]cmd_close_receipt [10:43:20]MH_GetDate [10:43:20]Write to MH i2c: F0 00 00 5B 0E 58 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: F0 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: F0 09 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: F0 09 00 5B 0E 00 C8 0D 22 67 47 6C 1F 67 F8 [10:43:20]GetLastDocTimeStamp 1730284932 [10:43:20]current date 1730285000 [10:43:20]FM_GetShiftState [10:43:20]SAM_PROTO_GetShiftState [10:43:20]wFMCommunicate request_size=4 [10:43:20]MH_SAM_APDU [10:43:20]CAPDU: 80 13 01 00 [10:43:20]Write to MH i2c: E2 08 00 5C 0E 80 13 01 00 00 00 00 00 E7 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:20]Read from MH i2c: E2 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 0E 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 0E 00 5C 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BF [10:43:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:43:20]wFMCommunicate OK [10:43:20]SAM_PROTO_GetShiftState done [10:43:20]FM_GetShiftState done [10:43:20]opened in 1730246605 [10:43:20]opened+sec_in_day 1730333005 [10:43:20]quantity*price = 300075 [10:43:20]sum+1 = 300077 [10:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 76 30.10.2024 10:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118016 ФПД: 254263810469759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104320&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118016&fm=254263810469759&tin=02508201610067®Number=0000000000091782&sum=300076 [10:43:21]StoreToDocumentArchive [10:43:21]shift 545 fd 118016 [10:43:21]save to /storage/0545/doc_00118016 [10:43:21]save last doc name /storage/0545/doc_00118016 to /storage/kkm_last_doc_name [10:43:21]save OK [10:43:21]Clear old archive folders... [10:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:43:21]tlvbuf is 0063EE00 [10:43:21]SAM_PROTO_ClearQueue [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 09 00 00 [10:43:21]Write to MH i2c: E2 08 00 69 0E 80 09 00 00 00 00 00 00 E9 [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [10:43:21]RAPDU: 90 00 [10:43:21]wFMCommunicate OK [10:43:21]SAM_PROTO_ClearQueue done [10:43:21]KKMCreateOFDPacket [10:43:21]OFDProtocolAddRootSTLVToBuf [10:43:21]FM_MakeSignedData [10:43:21]FM_MakeSignedData [10:43:21]SAM_PROTO_SignData [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 0D 01 02 [10:43:21]Write to MH i2c: E2 08 00 6A 0E 80 0D 01 02 00 00 00 00 F1 [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [10:43:21]RAPDU: 90 00 [10:43:21]wFMCommunicate OK [10:43:21]wFMCommunicate request_size=255 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 4C 00 00 00 F4 03 04 00 C8 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CD 01 00 35 04 06 00 E7 40 68 1A [10:43:21]Write to MH i2c: E2 02 01 6B 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 C8 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CD 01 00 35 04 06 00 E7 40 68 1A 00 00 8E [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 6B 0E 00 90 00 ED [10:43:21]RAPDU: 90 00 [10:43:21]wFMCommunicate OK [10:43:21]wFMCommunicate request_size=7 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 0D 02 02 02 2F 7F [10:43:21]Write to MH i2c: E2 0A 00 6C 0E 80 0D 02 02 02 00 2F 7F 00 00 A6 [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:22]Read from MH i2c: E2 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 03 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [10:43:22]RAPDU: 90 00 [10:43:22]wFMCommunicate OK [10:43:22]wFMCommunicate request_size=4 [10:43:22]MH_SAM_APDU [10:43:22]CAPDU: 80 0D 03 02 [10:43:22]Write to MH i2c: E2 08 00 6D 0E 80 0D 03 02 00 00 00 00 F6 [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:22]Read from MH i2c: E2 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 0B 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 0B 00 6D 0E 00 B7 9C F1 00 08 37 1B 40 90 00 D5 [10:43:22]RAPDU: B7 9C F1 00 08 37 1B 40 90 00 [10:43:22]wFMCommunicate OK [10:43:22]SAM_PROTO_SignData done [10:43:22]FM_MakeSignedData done [10:43:22]CreateOFDProtocolMessage [10:43:22]wFMCommunicate request_size=4 [10:43:22]MH_SAM_APDU [10:43:22]CAPDU: 80 11 00 00 [10:43:22]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:22]Read from MH i2c: E2 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 17 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4D [10:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:43:22]wFMCommunicate OK [10:43:22]CreateOFDProtocolMessage done [10:43:22]OFDSenderStorePacket 118016 [10:43:22]StoreOFDPacket docnum=118016 [10:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 DB D5 04 01 5F 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 C8 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CD 01 00 35 04 06 00 E7 40 68 1A 2F 7F B7 9C F1 00 08 37 1B 40 [10:43:22]CheckFolder [10:43:22]dirname=/storage/ofd_packets [10:43:22]CheckFolder done [10:43:22]ProducePacketName [10:43:22]name=ofd_packets/00118016 [10:43:22]NVStorageSaveData ofd_packets/00118016 [10:43:22]File name is /storage/ofd_packets/00118016 [10:43:22]Write 298 bytes [10:43:22]NVStorageSaveData done [10:43:22]OFDSenderStorePacket done [10:43:22]KKMCreateOFDPacket done [10:43:22]NVStorageSaveData kkm_last_timestamp [10:43:22]File name is /storage/kkm_last_timestamp [10:43:22]Write 4 bytes [10:43:22]NVStorageSaveData done [10:43:22]ExternCall_PrintAddStr [10:43:22]wPrintStart [10:43:22]Write to MH i2c: 01 00 00 6F 0E 7D [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: 01 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: 01 07 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 FF 0F 92 [10:43:22]RasterBufferAndPrint [10:43:22]line Счет N : (1)245809 [10:43:22]line ИНН: 02508201610067 [10:43:22]line Контрольно-Кассовый Чек [10:43:22]line ПРОДАЖА [10:43:22]line ТРК (МРК, ГНК) : 23 [10:43:22]line Товар: 2710194210 [10:43:22]line ДТ-К-2 [10:43:22]line 39.380 * 76.20 [10:43:22]line = 3000.76 [10:43:22]line НДС 12% НСП 1% [10:43:22]line > о реализуемом товаре [10:43:22]line ИТОГО: 3000.76 [10:43:22]line НСП 1% : 26.55 [10:43:22]line НДС 12% : 318.66 [10:43:22]line Наличными: 0.00 [10:43:22]line Безнал.: 3000.76 [10:43:22]line Место: АЗС № 173 "Партнер Нефть" [10:43:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:43:22]line СНО: Общий режим [10:43:22]line Чек 76 30.10.2024 10:43 [10:43:22]line Смена: 545 ФФД: 1.0 [10:43:22]line ЗНМ: 0300000115 [10:43:22]line РНМ: 0000000000091782 [10:43:22]line Версия ККМ: 001 [10:43:22]line Платежная система: Mbank [10:43:22]line ФМ: 0000000000871767 [10:43:22]line ФД: 118016 [10:43:22]line ФПД: 254263810469759 [10:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104320&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118016&fm=254263810469759&tin=02508201610067®Number=0000000000091782&sum=300076 [10:43:22]OFD Sender: Processing packet 118016 [packets to send 77, broken 76] [10:43:22]ProducePacketName [10:43:22]name=ofd_packets/00118016 [10:43:22]OFD Sender: To server: pG, [10:43:22]CommunicateWithHost lk.salyk.kg:30040 [10:43:22]ConnectInit lk.salyk.kg [10:43:22]written 0, free lines is 4095 [10:43:22]Connected sock=10 [10:43: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 36 37 0C 01 00 00 DB D5 04 01 5F 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 C8 0D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CD 01 00 35 04 06 00 E7 40 68 1A 2F 7F B7 9C F1 00 08 37 1B 40 [10:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 9F 5E 47 00 43 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 00 CD 01 00 F4 03 04 00 80 B9 21 67 B6 04 01 00 00 AD 25 C3 29 99 6D 6F 9C [10:43:22]CommunicateWithHost err = 0 [10:43:22]CheckOFDResponse [10:43:22]1017 (14) - 77093643461234 [10:43:22]1041 (16) - 0000000000871767 [10:43:22]1040 (4) - 118016 [10:43:22]1012 (4) - 30.10.2024 04:43 [10:43:22]1206 (1) - 0 [10:43:22]OFD Sender: Remove packet 118016 [10:43:22]ProducePacketName [10:43:22]name=ofd_packets/00118016 [10:43:22]NVStorageDeleteData [10:43:22]Write to MH i2c: 01 00 00 97 0E A5 [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: 01 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: 01 07 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: 01 07 00 97 0E 00 00 00 00 00 E2 0C 9A [10:43:22]RasterBufferAndPrint [10:43:22]line [10:43:22]line [10:43:22]line [10:43:22]line [10:43:22]line [10:43:22]written 0, free lines is 3302 [10:43:22]MH_Cut [10:43:22]Write to MH i2c: D1 01 00 9E 0E 01 7E [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: D1 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: D1 01 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: D1 01 00 9E 0E 00 7D [10:43:22]Write to MH i2c: 01 00 00 9F 0E AD [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:23]OFD Sender: No OFD packet to send [10:43:23]*** Cut start [10:43:23]*** Purtial cut [10:43:23]*** Stage 1: CUTSNS_PIN = 1 [10:43:24]Read from MH i2c: 01 [10:43:24]MH_I2C_Read... [10:43:24]*** Stop cut motor [10:43:24]*** Cut end [10:43:24]Read from MH i2c: 01 07 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 FF 0F C2 [10:43:24]process_action close_receipt done [10:43:24]requested_data is exist [10:43:24]produce_requested_data [10:43:24]requested_item fm.sn is exist - process it [10:43:24]wFMCommunicate request_size=4 [10:43:24]MH_SAM_APDU [10:43:24]CAPDU: 80 11 00 00 [10:43:24]Write to MH i2c: E2 08 00 A0 0E 80 11 00 00 00 00 00 00 28 [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:24]Read from MH i2c: E2 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 17 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 17 00 A0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7F [10:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:43:24]wFMCommunicate OK [10:43:24]requested_item fd.num is exist - process it [10:43:24]SAM_PROTO_GetFieldsCounters [10:43:24]wFMCommunicate request_size=4 [10:43:24]MH_SAM_APDU [10:43:24]CAPDU: 80 13 00 00 [10:43:24]Write to MH i2c: E2 08 00 A1 0E 80 13 00 00 00 00 00 00 2B [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:24]Read from MH i2c: E2 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 62 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 62 00 A1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 00 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [10:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 00 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:24]wFMCommunicate OK [10:43:24]SAM_PROTO_GetFieldsCounters done [10:43:24]requested_item shift.num is exist - process it [10:43:24]requested_item shift.opened is exist - process it [10:43:24]req_shift_opened [10:43:24]FM_GetShiftState [10:43:24]SAM_PROTO_GetShiftState [10:43:24]wFMCommunicate request_size=4 [10:43:24]MH_SAM_APDU [10:43:24]CAPDU: 80 13 01 00 [10:43:24]Write to MH i2c: E2 08 00 A2 0E 80 13 01 00 00 00 00 00 2D [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:24]Read from MH i2c: E2 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 0E 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 0E 00 A2 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 05 [10:43:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:43:24]wFMCommunicate OK [10:43:24]SAM_PROTO_GetShiftState done [10:43:24]FM_GetShiftState done [10:43:24]req_shift_opened done [10:43:24]requested_item shift.open_date is exist - process it [10:43:24]req_shift_open_date [10:43:24]req_shift_open_date done [10:43:24]produce_requested_data done [10:43:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118016,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:43:24]process_action_free close_receipt [10:43:24]json_value_free [10:43:24]json_value_free done [10:43:24]process_json_proto returns [10:43:24]Send response to host [10:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118016,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:43:24]free response buf [10:43:24]execute_script done [10:43:24]execute_script returns [10:43:24]free content buf [10:43:24]Sock 7.Close socket [10:43:24]Sock 7.Thread stoped [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:29]accept exits with 9 [10:45:29]New connection [10:45:29]New thread 3067415908 created [10:45:29]Thread 3067559268 joined [10:45:29]Waiting for new connection... [10:45:29] Sock 9.Parse request [10:45:29]Sock 9.Check first char [10:45:29]Sock 9.First char is OK [10:45:29]request: POST /json_proto HTTP/1.0 [10:45:29]Method: POST [10:45:29]URL: /json_proto [10:45:29]Method is POST - this is cgi request [10:45:29]url: /json_proto [10:45:29]query_string will be loaded in cgi processing [10:45:29]execute_cgi json_proto POST (null) [10:45:29]execute_cgi path=json_proto method=POST [10:45:29]POST find Content-Length [10:45:29]Host: 172.17.96.67:8080 [10:45:29]Content-Length: 677 [10:45:29]Content-Type: application/json [10:45:29] [10:45:29]POST finish read [10:45:29]Found Content-Length = 677 [10:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:29]execute_script... [10:45: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)245810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:29]POST & json_proto [10:45:29]process_json_proto [10:45:29]json parsed OK: [10:45:29]protocol is kg_v1.0 [10:45:29]action value=close_receipt [10:45:29]process_action close_receipt [10:45:29]cmd_close_receipt [10:45:29]MH_GetDate [10:45:29]Write to MH i2c: F0 00 00 A3 0E A0 [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: F0 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: F0 09 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: F0 09 00 A3 0E 00 4A 0E 22 67 47 6C 1F 67 C3 [10:45:29]GetLastDocTimeStamp 1730285000 [10:45:29]current date 1730285130 [10:45:29]FM_GetShiftState [10:45:29]SAM_PROTO_GetShiftState [10:45:29]wFMCommunicate request_size=4 [10:45:29]MH_SAM_APDU [10:45:29]CAPDU: 80 13 01 00 [10:45:29]Write to MH i2c: E2 08 00 A4 0E 80 13 01 00 00 00 00 00 2F [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 0E 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 0E 00 A4 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 07 [10:45:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:45:29]wFMCommunicate OK [10:45:29]SAM_PROTO_GetShiftState done [10:45:29]FM_GetShiftState done [10:45:29]opened in 1730246605 [10:45:29]opened+sec_in_day 1730333005 [10:45:29]quantity*price = 52048 [10:45:29]sum+1 = 52049 [10:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 77 30.10.2024 10:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118017 ФПД: 272196740510237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104530&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118017&fm=272196740510237&tin=02508201610067®Number=0000000000091782&sum=52000 [10:45:30]StoreToDocumentArchive [10:45:30]shift 545 fd 118017 [10:45:30]save to /storage/0545/doc_00118017 [10:45:30]save last doc name /storage/0545/doc_00118017 to /storage/kkm_last_doc_name [10:45:30]save OK [10:45:30]Clear old archive folders... [10:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:30]tlvbuf is 00640E10 [10:45:30]SAM_PROTO_ClearQueue [10:45:30]wFMCommunicate request_size=4 [10:45:30]MH_SAM_APDU [10:45:30]CAPDU: 80 09 00 00 [10:45:30]Write to MH i2c: E2 08 00 B1 0E 80 09 00 00 00 00 00 00 31 [10:45:30]Write i2c OK [10:45:30]MH_I2C_Read... [10:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:30]Read from MH i2c: E2 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: E2 03 00 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: E2 03 00 B1 0E 00 90 00 33 [10:45:30]RAPDU: 90 00 [10:45:30]wFMCommunicate OK [10:45:30]SAM_PROTO_ClearQueue done [10:45:30]KKMCreateOFDPacket [10:45:30]OFDProtocolAddRootSTLVToBuf [10:45:30]FM_MakeSignedData [10:45:30]FM_MakeSignedData [10:45:30]SAM_PROTO_SignData [10:45:30]wFMCommunicate request_size=4 [10:45:30]MH_SAM_APDU [10:45:30]CAPDU: 80 0D 01 02 [10:45:30]Write to MH i2c: E2 08 00 B2 0E 80 0D 01 02 00 00 00 00 39 [10:45:30]Write i2c OK [10:45:30]MH_I2C_Read... [10:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:30]Read from MH i2c: E2 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: E2 03 00 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [10:45:30]RAPDU: 90 00 [10:45:30]wFMCommunicate OK [10:45:30]wFMCommunicate request_size=255 [10:45:30]MH_SAM_APDU [10:45: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 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 4A 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CD 01 00 35 04 06 00 F7 [10:45:30]Write to MH i2c: E2 02 01 B3 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 4A 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CD 01 00 35 04 06 00 F7 00 00 86 [10:45:30]Write i2c OK [10:45:30]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [10:45:31]RAPDU: 90 00 [10:45:31]wFMCommunicate OK [10:45:31]wFMCommunicate request_size=10 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 0D 02 02 05 8F BE 06 F2 1D [10:45:31]Write to MH i2c: E2 0D 00 B4 0E 80 0D 02 02 05 00 8F BE 06 F2 1D 00 00 A8 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [10:45:31]RAPDU: 90 00 [10:45:31]wFMCommunicate OK [10:45:31]wFMCommunicate request_size=4 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 0D 03 02 [10:45:31]Write to MH i2c: E2 08 00 B5 0E 80 0D 03 02 00 00 00 00 3E [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0B 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0B 00 B5 0E 00 D8 5B 3F 7A 5E 1A E7 3B 90 00 C5 [10:45:31]RAPDU: D8 5B 3F 7A 5E 1A E7 3B 90 00 [10:45:31]wFMCommunicate OK [10:45:31]SAM_PROTO_SignData done [10:45:31]FM_MakeSignedData done [10:45:31]CreateOFDProtocolMessage [10:45:31]wFMCommunicate request_size=4 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 11 00 00 [10:45:31]Write to MH i2c: E2 08 00 B6 0E 80 11 00 00 00 00 00 00 3E [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 17 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 17 00 B6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 95 [10:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:45:31]wFMCommunicate OK [10:45:31]CreateOFDProtocolMessage done [10:45:31]OFDSenderStorePacket 118017 [10:45:31]StoreOFDPacket docnum=118017 [10:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 68 77 07 01 A0 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 4A 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CD 01 00 35 04 06 00 F7 8F BE 06 F2 1D D8 5B 3F 7A 5E 1A E7 3B [10:45:31]CheckFolder [10:45:31]dirname=/storage/ofd_packets [10:45:31]CheckFolder done [10:45:31]ProducePacketName [10:45:31]name=ofd_packets/00118017 [10:45:31]NVStorageSaveData ofd_packets/00118017 [10:45:31]File name is /storage/ofd_packets/00118017 [10:45:31]Write 301 bytes [10:45:31]NVStorageSaveData done [10:45:31]OFDSenderStorePacket done [10:45:31]KKMCreateOFDPacket done [10:45:31]NVStorageSaveData kkm_last_timestamp [10:45:31]File name is /storage/kkm_last_timestamp [10:45:31]Write 4 bytes [10:45:31]NVStorageSaveData done [10:45:31]ExternCall_PrintAddStr [10:45:31]wPrintStart [10:45:31]Write to MH i2c: 01 00 00 B7 0E C5 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: 01 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: 01 07 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: 01 07 00 B7 0E 00 00 00 00 00 FF 0F DA [10:45:31]RasterBufferAndPrint [10:45:31]line Счет N : (1)245810 [10:45:31]line ИНН: 02508201610067 [10:45:31]line Контрольно-Кассовый Чек [10:45:31]line ПРОДАЖА [10:45:31]line ТРК (МРК, ГНК) : 11 [10:45:31]line Товар: 2710124130 [10:45:31]line Аи-92-К-2 [10:45:31]line 7.780 * 66.90 [10:45:31]line = 520.48 [10:45:31]line НДС 12% НСП 1% [10:45:31]line > о реализуемом товаре [10:45:31]line ОКРУГЛЕНИЕ: -0.48 [10:45:31]line ИТОГО: 520.00 [10:45:31]line Внесено: 520.00 [10:45:31]line СДАЧА: 0.00 [10:45:31]line НСП 1% : 4.61 [10:45:31]line НДС 12% : 55.27 [10:45:31]line Наличными: 520.00 [10:45:31]line Безнал.: 0.00 [10:45:31]line Место: АЗС № 173 "Партнер Нефть" [10:45:31]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:45:31]line СНО: Общий режим [10:45:31]line Чек 77 30.10.2024 10:45 [10:45:31]line Смена: 545 ФФД: 1.0 [10:45:31]line ЗНМ: 0300000115 [10:45:31]line РНМ: 0000000000091782 [10:45:31]line Версия ККМ: 001 [10:45:31]line ФМ: 0000000000871767 [10:45:31]line ФД: 118017 [10:45:31]line ФПД: 272196740510237 [10:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104530&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118017&fm=272196740510237&tin=02508201610067®Number=0000000000091782&sum=52000 [10:45:31]OFD Sender: Processing packet 118017 [packets to send 77, broken 76] [10:45:31]ProducePacketName [10:45:31]name=ofd_packets/00118017 [10:45:31]OFD Sender: To server: pG, [10:45:31]CommunicateWithHost lk.salyk.kg:30040 [10:45:31]ConnectInit lk.salyk.kg [10:45:31]written 0, free lines is 4095 [10:45:31]Connected sock=10 [10:45: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 36 37 0F 01 00 00 68 77 07 01 A0 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 4A 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 01 CD 01 00 35 04 06 00 F7 8F BE 06 F2 1D D8 5B 3F 7A 5E 1A E7 3B [10:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 D1 7F 47 00 39 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 36 37 10 04 04 00 01 CD 01 00 F4 03 04 00 01 BA 21 67 B6 04 01 00 00 B8 5D B8 48 3B 3F C2 D6 [10:45:31]CommunicateWithHost err = 0 [10:45:31]CheckOFDResponse [10:45:31]1017 (14) - 77093643461234 [10:45:31]1041 (16) - 0000000000871767 [10:45:31]1040 (4) - 118017 [10:45:31]1012 (4) - 30.10.2024 04:45 [10:45:31]1206 (1) - 0 [10:45:31]OFD Sender: Remove packet 118017 [10:45:31]ProducePacketName [10:45:31]name=ofd_packets/00118017 [10:45:31]NVStorageDeleteData [10:45:32]Write to MH i2c: 01 00 00 E1 0E EF [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: 01 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: 01 07 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: 01 07 00 E1 0E 00 00 00 00 00 B1 0C B3 [10:45:32]RasterBufferAndPrint [10:45:32]line [10:45:32]line [10:45:32]line [10:45:32]line [10:45:32]line [10:45:32]written 0, free lines is 3253 [10:45:32]MH_Cut [10:45:32]Write to MH i2c: D1 01 00 E8 0E 01 C8 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: D1 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: D1 01 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: D1 01 00 E8 0E 00 C7 [10:45:32]Write to MH i2c: 01 00 00 E9 0E F7 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]OFD Sender: No OFD packet to send [10:45:32]*** Cut start [10:45:32]*** Purtial cut [10:45:32]*** Stage 1: CUTSNS_PIN = 1 [10:45:33]Read from MH i2c: 01 [10:45:33]MH_I2C_Read... [10:45:33]*** Stop cut motor [10:45:33]*** Cut end [10:45:33]Read from MH i2c: 01 07 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 FF 0F 0C [10:45:33]process_action close_receipt done [10:45:33]requested_data is exist [10:45:33]produce_requested_data [10:45:33]requested_item fm.sn is exist - process it [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 11 00 00 [10:45:33]Write to MH i2c: E2 08 00 EA 0E 80 11 00 00 00 00 00 00 72 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 EA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C9 [10:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:45:33]wFMCommunicate OK [10:45:33]requested_item fd.num is exist - process it [10:45:33]SAM_PROTO_GetFieldsCounters [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 13 00 00 [10:45:33]Write to MH i2c: E2 08 00 EB 0E 80 13 00 00 00 00 00 00 75 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 62 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 62 00 EB 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 01 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [10:45: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 01 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:33]wFMCommunicate OK [10:45:33]SAM_PROTO_GetFieldsCounters done [10:45:33]requested_item shift.num is exist - process it [10:45:33]requested_item shift.opened is exist - process it [10:45:33]req_shift_opened [10:45:33]FM_GetShiftState [10:45:33]SAM_PROTO_GetShiftState [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 13 01 00 [10:45:33]Write to MH i2c: E2 08 00 EC 0E 80 13 01 00 00 00 00 00 77 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0E 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0E 00 EC 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4F [10:45:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:45:33]wFMCommunicate OK [10:45:33]SAM_PROTO_GetShiftState done [10:45:33]FM_GetShiftState done [10:45:33]req_shift_opened done [10:45:33]requested_item shift.open_date is exist - process it [10:45:33]req_shift_open_date [10:45:33]req_shift_open_date done [10:45:33]produce_requested_data done [10:45:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118017,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:45:33]process_action_free close_receipt [10:45:33]json_value_free [10:45:33]json_value_free done [10:45:33]process_json_proto returns [10:45:33]Send response to host [10:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118017,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:45:33]free response buf [10:45:33]execute_script done [10:45:33]execute_script returns [10:45:33]free content buf [10:45:33]Sock 9.Close socket [10:45:33]Sock 9.Thread stoped [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:44]accept exits with 7 [10:45:44]New connection [10:45:44]New thread 3067559268 created [10:45:44]Thread 3067415908 joined [10:45:44]Waiting for new connection... [10:45:44] Sock 7.Parse request [10:45:44]Sock 7.Check first char [10:45:44]Sock 7.First char is OK [10:45:44]request: POST /json_proto HTTP/1.0 [10:45:44]Method: POST [10:45:44]URL: /json_proto [10:45:44]Method is POST - this is cgi request [10:45:44]url: /json_proto [10:45:44]query_string will be loaded in cgi processing [10:45:44]execute_cgi json_proto POST (null) [10:45:44]execute_cgi path=json_proto method=POST [10:45:44]POST find Content-Length [10:45:44]Host: 172.17.96.67:8080 [10:45:44]Content-Length: 677 [10:45:44]Content-Type: application/json [10:45:44] [10:45:44]POST finish read [10:45:44]Found Content-Length = 677 [10:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:45:44]execute_script... [10:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:45:44]POST & json_proto [10:45:44]process_json_proto [10:45:44]json parsed OK: [10:45:44]protocol is kg_v1.0 [10:45:44]action value=close_receipt [10:45:44]process_action close_receipt [10:45:44]cmd_close_receipt [10:45:44]MH_GetDate [10:45:44]Write to MH i2c: F0 00 00 ED 0E EA [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: F0 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: F0 09 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: F0 09 00 ED 0E 00 58 0E 22 67 47 6C 1F 67 1B [10:45:44]GetLastDocTimeStamp 1730285130 [10:45:44]current date 1730285144 [10:45:44]FM_GetShiftState [10:45:44]SAM_PROTO_GetShiftState [10:45:44]wFMCommunicate request_size=4 [10:45:44]MH_SAM_APDU [10:45:44]CAPDU: 80 13 01 00 [10:45:44]Write to MH i2c: E2 08 00 EE 0E 80 13 01 00 00 00 00 00 79 [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:44]Read from MH i2c: E2 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 0E 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 0E 00 EE 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 51 [10:45:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:45:44]wFMCommunicate OK [10:45:44]SAM_PROTO_GetShiftState done [10:45:44]FM_GetShiftState done [10:45:44]opened in 1730246605 [10:45:44]opened+sec_in_day 1730333005 [10:45:44]quantity*price = 20003 [10:45:44]sum+1 = 20004 [10:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 78 30.10.2024 10:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118018 ФПД: 156883220906504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104544&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118018&fm=156883220906504&tin=02508201610067®Number=0000000000091782&sum=20000 [10:45:45]StoreToDocumentArchive [10:45:45]shift 545 fd 118018 [10:45:45]save to /storage/0545/doc_00118018 [10:45:45]save last doc name /storage/0545/doc_00118018 to /storage/kkm_last_doc_name [10:45:45]save OK [10:45:45]Clear old archive folders... [10:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:45]tlvbuf is 00648B00 [10:45:45]SAM_PROTO_ClearQueue [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 09 00 00 [10:45:45]Write to MH i2c: E2 08 00 FB 0E 80 09 00 00 00 00 00 00 7B [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 FB 0E 00 90 00 7D [10:45:45]RAPDU: 90 00 [10:45:45]wFMCommunicate OK [10:45:45]SAM_PROTO_ClearQueue done [10:45:45]KKMCreateOFDPacket [10:45:45]OFDProtocolAddRootSTLVToBuf [10:45:45]FM_MakeSignedData [10:45:45]FM_MakeSignedData [10:45:45]SAM_PROTO_SignData [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 0D 01 02 [10:45:45]Write to MH i2c: E2 08 00 FC 0E 80 0D 01 02 00 00 00 00 83 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 FC 0E 00 90 00 7E [10:45:45]RAPDU: 90 00 [10:45:45]wFMCommunicate OK [10:45:45]wFMCommunicate request_size=255 [10:45:45]MH_SAM_APDU [10:45: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 32 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 4E 00 00 00 F4 03 04 00 58 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CD 01 00 35 04 06 00 8E [10:45:45]Write to MH i2c: E2 02 01 FD 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 58 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CD 01 00 35 04 06 00 8E 00 00 95 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 FD 0E 00 90 00 7F [10:45:45]RAPDU: 90 00 [10:45:45]wFMCommunicate OK [10:45:45]wFMCommunicate request_size=10 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 0D 02 02 05 AF 38 A7 42 08 [10:45:45]Write to MH i2c: E2 0D 00 FE 0E 80 0D 02 02 05 00 AF 38 A7 42 08 00 00 68 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 03 00 FE 0E 00 90 00 80 [10:45:45]RAPDU: 90 00 [10:45:45]wFMCommunicate OK [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 0D 03 02 [10:45:45]Write to MH i2c: E2 08 00 FF 0E 80 0D 03 02 00 00 00 00 88 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0B 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0B 00 FF 0E 00 6E D5 F9 B4 B6 A8 A7 E3 90 00 61 [10:45:45]RAPDU: 6E D5 F9 B4 B6 A8 A7 E3 90 00 [10:45:45]wFMCommunicate OK [10:45:45]SAM_PROTO_SignData done [10:45:45]FM_MakeSignedData done [10:45:45]CreateOFDProtocolMessage [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 11 00 00 [10:45:45]Write to MH i2c: E2 08 00 00 0F 80 11 00 00 00 00 00 00 89 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 17 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 17 00 00 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E0 [10:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:45:45]wFMCommunicate OK [10:45:45]CreateOFDProtocolMessage done [10:45:45]OFDSenderStorePacket 118018 [10:45:45]StoreOFDPacket docnum=118018 [10:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D0 78 07 01 E4 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4E 00 00 00 F4 03 04 00 58 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CD 01 00 35 04 06 00 8E AF 38 A7 42 08 6E D5 F9 B4 B6 A8 A7 E3 [10:45:45]CheckFolder [10:45:45]dirname=/storage/ofd_packets [10:45:45]CheckFolder done [10:45:45]ProducePacketName [10:45:45]name=ofd_packets/00118018 [10:45:45]NVStorageSaveData ofd_packets/00118018 [10:45:45]File name is /storage/ofd_packets/00118018 [10:45:45]Write 301 bytes [10:45:45]NVStorageSaveData done [10:45:45]OFDSenderStorePacket done [10:45:45]KKMCreateOFDPacket done [10:45:45]NVStorageSaveData kkm_last_timestamp [10:45:45]File name is /storage/kkm_last_timestamp [10:45:45]Write 4 bytes [10:45:45]NVStorageSaveData done [10:45:45]ExternCall_PrintAddStr [10:45:45]wPrintStart [10:45:45]Write to MH i2c: 01 00 00 01 0F 10 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: 01 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: 01 07 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [10:45:45]RasterBufferAndPrint [10:45:45]line Счет N : (1)245811 [10:45:45]line ИНН: 02508201610067 [10:45:45]line Контрольно-Кассовый Чек [10:45:45]line ПРОДАЖА [10:45:45]line ТРК (МРК, ГНК) : 21 [10:45:45]line Товар: 2710124130 [10:45:45]line Аи-92-К-2 [10:45:45]line 2.990 * 66.90 [10:45:45]line = 200.03 [10:45:45]line НДС 12% НСП 1% [10:45:45]line > о реализуемом товаре [10:45:45]line ОКРУГЛЕНИЕ: -0.03 [10:45:45]line ИТОГО: 200.00 [10:45:45]line Внесено: 200.00 [10:45:45]line СДАЧА: 0.00 [10:45:45]line НСП 1% : 1.77 [10:45:45]line НДС 12% : 21.24 [10:45:45]line Наличными: 200.00 [10:45:45]line Безнал.: 0.00 [10:45:45]line Место: АЗС № 173 "Партнер Нефть" [10:45:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:45:45]line СНО: Общий режим [10:45:45]line Чек 78 30.10.2024 10:45 [10:45:45]line Смена: 545 ФФД: 1.0 [10:45:45]line ЗНМ: 0300000115 [10:45:45]line РНМ: 0000000000091782 [10:45:45]line Версия ККМ: 001 [10:45:45]line ФМ: 0000000000871767 [10:45:45]line ФД: 118018 [10:45:45]line ФПД: 156883220906504 [10:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104544&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118018&fm=156883220906504&tin=02508201610067®Number=0000000000091782&sum=20000 [10:45:46]written 0, free lines is 4095 [10:45:46]OFD Sender: Processing packet 118018 [packets to send 77, broken 76] [10:45:46]ProducePacketName [10:45:46]name=ofd_packets/00118018 [10:45:46]OFD Sender: To server: pG, [10:45:46]CommunicateWithHost lk.salyk.kg:30040 [10:45:46]ConnectInit lk.salyk.kg [10:45:46]Connected sock=10 [10:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D0 78 07 01 E4 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4E 00 00 00 F4 03 04 00 58 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 02 CD 01 00 35 04 06 00 8E AF 38 A7 42 08 6E D5 F9 B4 B6 A8 A7 E3 [10:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 0E 5F 47 00 EB 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 36 37 10 04 04 00 02 CD 01 00 F4 03 04 00 10 BA 21 67 B6 04 01 00 00 00 21 E8 48 35 12 35 51 [10:45:46]CommunicateWithHost err = 0 [10:45:46]CheckOFDResponse [10:45:46]1017 (14) - 77093643461234 [10:45:46]1041 (16) - 0000000000871767 [10:45:46]1040 (4) - 118018 [10:45:46]1012 (4) - 30.10.2024 04:46 [10:45:46]1206 (1) - 0 [10:45:46]OFD Sender: Remove packet 118018 [10:45:46]ProducePacketName [10:45:46]name=ofd_packets/00118018 [10:45:46]NVStorageDeleteData [10:45:46]Write to MH i2c: 01 00 00 2B 0F 3A [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: 01 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: 01 07 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: 01 07 00 2B 0F 00 00 00 00 00 BB 0C 08 [10:45:46]RasterBufferAndPrint [10:45:46]line [10:45:46]line [10:45:46]line [10:45:46]line [10:45:46]line [10:45:46]written 0, free lines is 3266 [10:45:46]MH_Cut [10:45:46]Write to MH i2c: D1 01 00 32 0F 01 13 [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: D1 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: D1 01 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: D1 01 00 32 0F 00 12 [10:45:46]Write to MH i2c: 01 00 00 33 0F 42 [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]OFD Sender: No OFD packet to send [10:45:47]*** Cut start [10:45:47]*** Purtial cut [10:45:47]*** Stage 1: CUTSNS_PIN = 1 [10:45:47]Read from MH i2c: 01 [10:45:47]MH_I2C_Read... [10:45:47]*** Stop cut motor [10:45:47]*** Cut end [10:45:47]Read from MH i2c: 01 07 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 FF 0F 57 [10:45:47]process_action close_receipt done [10:45:47]requested_data is exist [10:45:47]produce_requested_data [10:45:47]requested_item fm.sn is exist - process it [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 11 00 00 [10:45:47]Write to MH i2c: E2 08 00 34 0F 80 11 00 00 00 00 00 00 BD [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 17 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 17 00 34 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 14 [10:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:45:47]wFMCommunicate OK [10:45:47]requested_item fd.num is exist - process it [10:45:47]SAM_PROTO_GetFieldsCounters [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 13 00 00 [10:45:47]Write to MH i2c: E2 08 00 35 0F 80 13 00 00 00 00 00 00 C0 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 62 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 62 00 35 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 02 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [10:45: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 02 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:47]wFMCommunicate OK [10:45:47]SAM_PROTO_GetFieldsCounters done [10:45:47]requested_item shift.num is exist - process it [10:45:47]requested_item shift.opened is exist - process it [10:45:47]req_shift_opened [10:45:47]FM_GetShiftState [10:45:47]SAM_PROTO_GetShiftState [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 13 01 00 [10:45:47]Write to MH i2c: E2 08 00 36 0F 80 13 01 00 00 00 00 00 C2 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0E 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0E 00 36 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9A [10:45:47]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:45:47]wFMCommunicate OK [10:45:47]SAM_PROTO_GetShiftState done [10:45:47]FM_GetShiftState done [10:45:47]req_shift_opened done [10:45:47]requested_item shift.open_date is exist - process it [10:45:47]req_shift_open_date [10:45:47]req_shift_open_date done [10:45:47]produce_requested_data done [10:45:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118018,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:45:47]process_action_free close_receipt [10:45:47]json_value_free [10:45:47]json_value_free done [10:45:47]process_json_proto returns [10:45:47]Send response to host [10:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118018,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:45:47]free response buf [10:45:47]execute_script done [10:45:47]execute_script returns [10:45:47]free content buf [10:45:47]Sock 7.Close socket [10:45:47]Sock 7.Thread stoped [10:45:50]int [10:45:50]Write to MH i2c: 01 00 00 37 0F 46 [10:45:50]*** FLAG_PRN_PAP1 set [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 07 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 07 00 37 0F 00 01 00 00 00 FF 0F 5C [10:45:50]state=0 [10:45:50]No paper [10:45:50]int [10:45:50]Write to MH i2c: 01 00 00 38 0F 47 [10:45:50]*** FLAG_PRN_PAP2 set [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 07 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 07 00 38 0F 00 03 00 00 00 FF 0F 5F [10:45:50]state=0 [10:45:50]No paper [10:45:50]Cover opened [10:45:51]OFD Sender: No OFD packet to send [10:45:55]Write to MH i2c: 01 00 00 39 0F 48 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 07 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 07 00 39 0F 00 03 00 00 00 FF 0F 60 [10:45:55]state=3 [10:45:55]No paper [10:45:55]Cover opened [10:45:56]OFD Sender: No OFD packet to send [10:46:00]Write to MH i2c: 01 00 00 3A 0F 49 [10:46:00]Write i2c OK [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: 01 [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: 01 07 00 [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: 01 07 00 3A 0F 00 03 00 00 00 FF 0F 61 [10:46:00]state=3 [10:46:00]No paper [10:46:00]Cover opened [10:46:01]OFD Sender: No OFD packet to send [10:46:03]int [10:46:03]Write to MH i2c: 01 00 00 3B 0F 4A [10:46:03]Write i2c OK [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: 01 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: 01 07 00 [10:46:03]MH_I2C_Read... [10:46:03]*** FLAG_PRN_PAP2 reset [10:46:03]*** FLAG_PRN_PAP1 reset [10:46:03]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [10:46:03]state=3 [10:46:03]Cover closed [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:39]accept exits with 9 [10:46:39]New connection [10:46:39]New thread 3067415908 created [10:46:39]Thread 3067559268 joined [10:46:39]Waiting for new connection... [10:46:39] Sock 9.Parse request [10:46:39]Sock 9.Check first char [10:46:39]Sock 9.First char is OK [10:46:39]request: POST /json_proto HTTP/1.0 [10:46:39]Method: POST [10:46:39]URL: /json_proto [10:46:39]Method is POST - this is cgi request [10:46:39]url: /json_proto [10:46:39]query_string will be loaded in cgi processing [10:46:39]execute_cgi json_proto POST (null) [10:46:39]execute_cgi path=json_proto method=POST [10:46:39]POST find Content-Length [10:46:39]Host: 172.17.96.67:8080 [10:46:39]Content-Length: 677 [10:46:39]Content-Type: application/json [10:46:39] [10:46:39]POST finish read [10:46:39]Found Content-Length = 677 [10:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:39]execute_script... [10: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)245812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:39]POST & json_proto [10:46:39]process_json_proto [10:46:39]json parsed OK: [10:46:39]protocol is kg_v1.0 [10:46:39]action value=close_receipt [10:46:39]process_action close_receipt [10:46:39]cmd_close_receipt [10:46:39]MH_GetDate [10:46:39]Write to MH i2c: F0 00 00 3C 0F 3A [10:46:39]Write i2c OK [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 09 00 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 09 00 3C 0F 00 8F 0E 22 67 47 6C 1F 67 A2 [10:46:39]GetLastDocTimeStamp 1730285144 [10:46:39]current date 1730285199 [10:46:39]FM_GetShiftState [10:46:39]SAM_PROTO_GetShiftState [10:46:39]wFMCommunicate request_size=4 [10:46:39]MH_SAM_APDU [10:46:39]CAPDU: 80 13 01 00 [10:46:39]Write to MH i2c: E2 08 00 3D 0F 80 13 01 00 00 00 00 00 C9 [10:46:39]Write i2c OK [10:46:39]MH_I2C_Read... [10:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:39]Read from MH i2c: E2 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: E2 0E 00 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: E2 0E 00 3D 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A1 [10:46:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:46:39]wFMCommunicate OK [10:46:39]SAM_PROTO_GetShiftState done [10:46:39]FM_GetShiftState done [10:46:39]opened in 1730246605 [10:46:39]opened+sec_in_day 1730333005 [10:46:39]quantity*price = 30038 [10:46:39]sum+1 = 30039 [10:46: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 79 30.10.2024 10:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118019 ФПД: 214709841539590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104639&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118019&fm=214709841539590&tin=02508201610067®Number=0000000000091782&sum=30000 [10:46:40]StoreToDocumentArchive [10:46:40]shift 545 fd 118019 [10:46:40]save to /storage/0545/doc_00118019 [10:46:40]save last doc name /storage/0545/doc_00118019 to /storage/kkm_last_doc_name [10:46:40]save OK [10:46:40]Clear old archive folders... [10:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:40]tlvbuf is 0066C2C0 [10:46:40]SAM_PROTO_ClearQueue [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 09 00 00 [10:46:40]Write to MH i2c: E2 08 00 4A 0F 80 09 00 00 00 00 00 00 CB [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]SAM_PROTO_ClearQueue done [10:46:40]KKMCreateOFDPacket [10:46:40]OFDProtocolAddRootSTLVToBuf [10:46:40]FM_MakeSignedData [10:46:40]FM_MakeSignedData [10:46:40]SAM_PROTO_SignData [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 01 02 [10:46:40]Write to MH i2c: E2 08 00 4B 0F 80 0D 01 02 00 00 00 00 D3 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=255 [10:46:40]MH_SAM_APDU [10:46: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 32 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 4F 00 00 00 F4 03 04 00 8F 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 03 CD 01 00 35 04 06 00 C3 [10:46:40]Write to MH i2c: E2 02 01 4C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 8F 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 03 CD 01 00 35 04 06 00 C3 00 00 85 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=10 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 02 02 05 47 07 D5 B2 06 [10:46:40]Write to MH i2c: E2 0D 00 4D 0F 80 0D 02 02 05 00 47 07 D5 B2 06 00 00 BB [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 03 02 [10:46:40]Write to MH i2c: E2 08 00 4E 0F 80 0D 03 02 00 00 00 00 D8 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 0B 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 0B 00 4E 0F 00 D6 D5 38 BD CD B8 73 09 90 00 7A [10:46:40]RAPDU: D6 D5 38 BD CD B8 73 09 90 00 [10:46:40]wFMCommunicate OK [10:46:40]SAM_PROTO_SignData done [10:46:40]FM_MakeSignedData done [10:46:40]CreateOFDProtocolMessage [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 11 00 00 [10:46:40]Write to MH i2c: E2 08 00 4F 0F 80 11 00 00 00 00 00 00 D8 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 17 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 17 00 4F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2F [10:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:46:40]wFMCommunicate OK [10:46:40]CreateOFDProtocolMessage done [10:46:40]OFDSenderStorePacket 118019 [10:46:40]StoreOFDPacket docnum=118019 [10:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0B FA 07 01 77 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4F 00 00 00 F4 03 04 00 8F 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 03 CD 01 00 35 04 06 00 C3 47 07 D5 B2 06 D6 D5 38 BD CD B8 73 09 [10:46:40]CheckFolder [10:46:40]dirname=/storage/ofd_packets [10:46:40]CheckFolder done [10:46:40]ProducePacketName [10:46:40]name=ofd_packets/00118019 [10:46:40]NVStorageSaveData ofd_packets/00118019 [10:46:40]File name is /storage/ofd_packets/00118019 [10:46:40]Write 301 bytes [10:46:40]NVStorageSaveData done [10:46:40]OFDSenderStorePacket done [10:46:40]KKMCreateOFDPacket done [10:46:40]NVStorageSaveData kkm_last_timestamp [10:46:40]File name is /storage/kkm_last_timestamp [10:46:40]Write 4 bytes [10:46:40]NVStorageSaveData done [10:46:40]ExternCall_PrintAddStr [10:46:40]wPrintStart [10:46:41]Write to MH i2c: 01 00 00 50 0F 5F [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 50 0F 00 00 00 00 00 FF 0F 74 [10:46:41]RasterBufferAndPrint [10:46:41]line Счет N : (1)245812 [10:46:41]line ИНН: 02508201610067 [10:46:41]line Контрольно-Кассовый Чек [10:46:41]line ПРОДАЖА [10:46:41]line ТРК (МРК, ГНК) : 11 [10:46:41]line Товар: 2710124130 [10:46:41]line Аи-92-К-2 [10:46:41]line 4.490 * 66.90 [10:46:41]line = 300.38 [10:46:41]line НДС 12% НСП 1% [10:46:41]line > о реализуемом товаре [10:46:41]line ОКРУГЛЕНИЕ: -0.38 [10:46:41]line ИТОГО: 300.00 [10:46:41]line Внесено: 300.00 [10:46:41]line СДАЧА: 0.00 [10:46:41]line НСП 1% : 2.66 [10:46:41]line НДС 12% : 31.90 [10:46:41]line Наличными: 300.00 [10:46:41]line Безнал.: 0.00 [10:46:41]line Место: АЗС № 173 "Партнер Нефть" [10:46:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:46:41]line СНО: Общий режим [10:46:41]line Чек 79 30.10.2024 10:46 [10:46:41]line Смена: 545 ФФД: 1.0 [10:46:41]line ЗНМ: 0300000115 [10:46:41]line РНМ: 0000000000091782 [10:46:41]line Версия ККМ: 001 [10:46:41]line ФМ: 0000000000871767 [10:46:41]line ФД: 118019 [10:46:41]line ФПД: 214709841539590 [10:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104639&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118019&fm=214709841539590&tin=02508201610067®Number=0000000000091782&sum=30000 [10:46:41]written 0, free lines is 4095 [10:46:41]OFD Sender: Processing packet 118019 [packets to send 77, broken 76] [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00118019 [10:46:41]OFD Sender: To server: pG, [10:46:41]CommunicateWithHost lk.salyk.kg:30040 [10:46:41]ConnectInit lk.salyk.kg [10:46:41]Connected sock=7 [10: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 36 37 0F 01 00 00 0B FA 07 01 77 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4F 00 00 00 F4 03 04 00 8F 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 03 CD 01 00 35 04 06 00 C3 47 07 D5 B2 06 D6 D5 38 BD CD B8 73 09 [10:46: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 36 37 4F 00 00 00 2B D3 47 00 B6 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 03 CD 01 00 F4 03 04 00 47 BA 21 67 B6 04 01 00 00 0A 46 4B 05 06 B7 17 DE [10:46:41]CommunicateWithHost err = 0 [10:46:41]CheckOFDResponse [10:46:41]1017 (14) - 77093643461234 [10:46:41]1041 (16) - 0000000000871767 [10:46:41]1040 (4) - 118019 [10:46:41]1012 (4) - 30.10.2024 04:47 [10:46:41]1206 (1) - 0 [10:46:41]OFD Sender: Remove packet 118019 [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00118019 [10:46:41]NVStorageDeleteData [10:46:41]Write to MH i2c: 01 00 00 7A 0F 89 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 7A 0F 00 00 00 00 00 B7 0C 53 [10:46:41]RasterBufferAndPrint [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]written 0, free lines is 3262 [10:46:41]MH_Cut [10:46:41]Write to MH i2c: D1 01 00 81 0F 01 62 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 01 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 01 00 81 0F 00 61 [10:46:41]Write to MH i2c: 01 00 00 82 0F 91 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:42]OFD Sender: No OFD packet to send [10:46:42]*** Cut start [10:46:42]*** Purtial cut [10:46:42]*** Stage 1: CUTSNS_PIN = 1 [10:46:42]Read from MH i2c: 01 [10:46:42]MH_I2C_Read... [10:46:42]*** Stop cut motor [10:46:42]*** Cut end [10:46:42]Read from MH i2c: 01 07 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: 01 07 00 82 0F 00 00 00 00 00 FF 0F A6 [10:46:42]process_action close_receipt done [10:46:42]requested_data is exist [10:46:42]produce_requested_data [10:46:42]requested_item fm.sn is exist - process it [10:46:42]wFMCommunicate request_size=4 [10:46:42]MH_SAM_APDU [10:46:42]CAPDU: 80 11 00 00 [10:46:42]Write to MH i2c: E2 08 00 83 0F 80 11 00 00 00 00 00 00 0C [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:42]Read from MH i2c: E2 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 17 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 17 00 83 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 63 [10:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:46:43]wFMCommunicate OK [10:46:43]requested_item fd.num is exist - process it [10:46:43]SAM_PROTO_GetFieldsCounters [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 13 00 00 [10:46:43]Write to MH i2c: E2 08 00 84 0F 80 13 00 00 00 00 00 00 0F [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 62 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 62 00 84 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 03 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 03 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_GetFieldsCounters done [10:46:43]requested_item shift.num is exist - process it [10:46:43]requested_item shift.opened is exist - process it [10:46:43]req_shift_opened [10:46:43]FM_GetShiftState [10:46:43]SAM_PROTO_GetShiftState [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 13 01 00 [10:46:43]Write to MH i2c: E2 08 00 85 0F 80 13 01 00 00 00 00 00 11 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 85 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E9 [10:46:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_GetShiftState done [10:46:43]FM_GetShiftState done [10:46:43]req_shift_opened done [10:46:43]requested_item shift.open_date is exist - process it [10:46:43]req_shift_open_date [10:46:43]req_shift_open_date done [10:46:43]produce_requested_data done [10:46:43]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118019,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:46:43]process_action_free close_receipt [10:46:43]json_value_free [10:46:43]json_value_free done [10:46:43]process_json_proto returns [10:46:43]Send response to host [10:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118019,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:46:43]free response buf [10:46:43]execute_script done [10:46:43]execute_script returns [10:46:43]free content buf [10:46:43]Sock 9.Close socket [10:46:43]Sock 9.Thread stoped [10:46:45]accept exits with 10 [10:46:45]New connection [10:46:45]New thread 3067559268 created [10:46:45]Thread 3067415908 joined [10:46:45]Waiting for new connection... [10:46:45] Sock 10.Parse request [10:46:45]Sock 10.Check first char [10:46:45]Sock 10.First char is OK [10:46:45]request: POST /json_proto HTTP/1.0 [10:46:45]Method: POST [10:46:45]URL: /json_proto [10:46:45]Method is POST - this is cgi request [10:46:45]url: /json_proto [10:46:45]query_string will be loaded in cgi processing [10:46:45]execute_cgi json_proto POST (null) [10:46:45]execute_cgi path=json_proto method=POST [10:46:45]POST find Content-Length [10:46:45]Host: 172.17.96.67:8080 [10:46:45]Content-Length: 677 [10:46:45]Content-Type: application/json [10:46:45] [10:46:45]POST finish read [10:46:45]Found Content-Length = 677 [10:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:46:45]execute_script... [10:46:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:46:45]POST & json_proto [10:46:45]process_json_proto [10:46:45]json parsed OK: [10:46:45]protocol is kg_v1.0 [10:46:45]action value=close_receipt [10:46:45]process_action close_receipt [10:46:45]cmd_close_receipt [10:46:45]MH_GetDate [10:46:45]Write to MH i2c: F0 00 00 86 0F 84 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: F0 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: F0 09 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: F0 09 00 86 0F 00 95 0E 22 67 47 6C 1F 67 F2 [10:46:45]GetLastDocTimeStamp 1730285199 [10:46:45]current date 1730285205 [10:46:45]FM_GetShiftState [10:46:45]SAM_PROTO_GetShiftState [10:46:45]wFMCommunicate request_size=4 [10:46:45]MH_SAM_APDU [10:46:45]CAPDU: 80 13 01 00 [10:46:45]Write to MH i2c: E2 08 00 87 0F 80 13 01 00 00 00 00 00 13 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:45]Read from MH i2c: E2 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 0E 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 0E 00 87 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EB [10:46:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:46:45]wFMCommunicate OK [10:46:45]SAM_PROTO_GetShiftState done [10:46:45]FM_GetShiftState done [10:46:45]opened in 1730246605 [10:46:45]opened+sec_in_day 1730333005 [10:46:45]quantity*price = 50041 [10:46:45]sum+1 = 50042 [10:46: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 80 30.10.2024 10:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118020 ФПД: 200664767611765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104645&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118020&fm=200664767611765&tin=02508201610067®Number=0000000000091782&sum=50000 [10:46:46]StoreToDocumentArchive [10:46:46]shift 545 fd 118020 [10:46:46]save to /storage/0545/doc_00118020 [10:46:46]save last doc name /storage/0545/doc_00118020 to /storage/kkm_last_doc_name [10:46:46]save OK [10:46:46]Clear old archive folders... [10:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:46]tlvbuf is 006908A0 [10:46:46]SAM_PROTO_ClearQueue [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 09 00 00 [10:46:46]Write to MH i2c: E2 08 00 94 0F 80 09 00 00 00 00 00 00 15 [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [10:46:46]RAPDU: 90 00 [10:46:46]wFMCommunicate OK [10:46:46]SAM_PROTO_ClearQueue done [10:46:46]KKMCreateOFDPacket [10:46:46]OFDProtocolAddRootSTLVToBuf [10:46:46]FM_MakeSignedData [10:46:46]FM_MakeSignedData [10:46:46]SAM_PROTO_SignData [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 0D 01 02 [10:46:46]Write to MH i2c: E2 08 00 95 0F 80 0D 01 02 00 00 00 00 1D [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 95 0F 00 90 00 18 [10:46:46]RAPDU: 90 00 [10:46:46]wFMCommunicate OK [10:46:46]wFMCommunicate request_size=255 [10:46:46]MH_SAM_APDU [10:46: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 32 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 50 00 00 00 F4 03 04 00 95 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CD 01 00 35 04 06 00 B6 [10:46:46]Write to MH i2c: E2 02 01 96 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 95 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CD 01 00 35 04 06 00 B6 00 00 D6 [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [10:46:46]RAPDU: 90 00 [10:46:46]wFMCommunicate OK [10:46:46]wFMCommunicate request_size=10 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 0D 02 02 05 80 E8 31 43 75 [10:46:46]Write to MH i2c: E2 0D 00 97 0F 80 0D 02 02 05 00 80 E8 31 43 75 00 00 7B [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [10:46:46]RAPDU: 90 00 [10:46:46]wFMCommunicate OK [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 0D 03 02 [10:46:46]Write to MH i2c: E2 08 00 98 0F 80 0D 03 02 00 00 00 00 22 [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 0B 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 0B 00 98 0F 00 19 4A 8A 50 50 31 31 94 90 00 A6 [10:46:46]RAPDU: 19 4A 8A 50 50 31 31 94 90 00 [10:46:46]wFMCommunicate OK [10:46:46]SAM_PROTO_SignData done [10:46:46]FM_MakeSignedData done [10:46:46]CreateOFDProtocolMessage [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 11 00 00 [10:46:46]Write to MH i2c: E2 08 00 99 0F 80 11 00 00 00 00 00 00 22 [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 17 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 17 00 99 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 79 [10:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:46:46]wFMCommunicate OK [10:46:46]CreateOFDProtocolMessage done [10:46:46]OFDSenderStorePacket 118020 [10:46:46]StoreOFDPacket docnum=118020 [10:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 79 8D 07 01 80 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 32 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 50 00 00 00 F4 03 04 00 95 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CD 01 00 35 04 06 00 B6 80 E8 31 43 75 19 4A 8A 50 50 31 31 94 [10:46:47]CheckFolder [10:46:47]dirname=/storage/ofd_packets [10:46:47]CheckFolder done [10:46:47]ProducePacketName [10:46:47]name=ofd_packets/00118020 [10:46:47]NVStorageSaveData ofd_packets/00118020 [10:46:47]File name is /storage/ofd_packets/00118020 [10:46:47]Write 301 bytes [10:46:47]NVStorageSaveData done [10:46:47]OFDSenderStorePacket done [10:46:47]KKMCreateOFDPacket done [10:46:47]NVStorageSaveData kkm_last_timestamp [10:46:47]File name is /storage/kkm_last_timestamp [10:46:47]Write 4 bytes [10:46:47]NVStorageSaveData done [10:46:47]ExternCall_PrintAddStr [10:46:47]wPrintStart [10:46:47]Write to MH i2c: 01 00 00 9A 0F A9 [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 07 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 07 00 9A 0F 00 00 00 00 00 FF 0F BE [10:46:47]RasterBufferAndPrint [10:46:47]line Счет N : (1)245813 [10:46:47]line ИНН: 02508201610067 [10:46:47]line Контрольно-Кассовый Чек [10:46:47]line ПРОДАЖА [10:46:47]line ТРК (МРК, ГНК) : 21 [10:46:47]line Товар: 2710124130 [10:46:47]line Аи-92-К-2 [10:46:47]line 7.480 * 66.90 [10:46:47]line = 500.41 [10:46:47]line НДС 12% НСП 1% [10:46:47]line > о реализуемом товаре [10:46:47]line ОКРУГЛЕНИЕ: -0.41 [10:46:47]line ИТОГО: 500.00 [10:46:47]line Внесено: 500.00 [10:46:47]line СДАЧА: 0.00 [10:46:47]line НСП 1% : 4.43 [10:46:47]line НДС 12% : 53.14 [10:46:47]line Наличными: 500.00 [10:46:47]line Безнал.: 0.00 [10:46:47]line Место: АЗС № 173 "Партнер Нефть" [10:46:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:46:47]line СНО: Общий режим [10:46:47]line Чек 80 30.10.2024 10:46 [10:46:47]line Смена: 545 ФФД: 1.0 [10:46:47]line ЗНМ: 0300000115 [10:46:47]line РНМ: 0000000000091782 [10:46:47]line Версия ККМ: 001 [10:46:47]line ФМ: 0000000000871767 [10:46:47]line ФД: 118020 [10:46:47]line ФПД: 200664767611765 [10:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104645&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118020&fm=200664767611765&tin=02508201610067®Number=0000000000091782&sum=50000 [10:46:47]OFD Sender: Processing packet 118020 [packets to send 77, broken 76] [10:46:47]ProducePacketName [10:46:47]name=ofd_packets/00118020 [10:46:47]OFD Sender: To server: pG, [10:46:47]CommunicateWithHost lk.salyk.kg:30040 [10:46:47]ConnectInit lk.salyk.kg [10:46:47]written 0, free lines is 4095 [10:46:47]Connected sock=9 [10:46: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 36 37 0F 01 00 00 79 8D 07 01 80 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 32 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 50 00 00 00 F4 03 04 00 95 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CD 01 00 35 04 06 00 B6 80 E8 31 43 75 19 4A 8A 50 50 31 31 94 [10:46: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 36 37 4F 00 00 00 C6 F8 47 00 1B E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 04 CD 01 00 F4 03 04 00 4D BA 21 67 B6 04 01 00 00 1E 6A 90 A5 60 52 B2 DD [10:46:47]CommunicateWithHost err = 0 [10:46:47]CheckOFDResponse [10:46:47]1017 (14) - 77093643461234 [10:46:47]1041 (16) - 0000000000871767 [10:46:47]1040 (4) - 118020 [10:46:47]1012 (4) - 30.10.2024 04:47 [10:46:47]1206 (1) - 0 [10:46:47]OFD Sender: Remove packet 118020 [10:46:47]ProducePacketName [10:46:47]name=ofd_packets/00118020 [10:46:47]NVStorageDeleteData [10:46:47]Write to MH i2c: 01 00 00 C4 0F D3 [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 07 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 C0 0C A6 [10:46:47]RasterBufferAndPrint [10:46:47]line [10:46:47]line [10:46:47]line [10:46:47]line [10:46:47]line [10:46:47]written 0, free lines is 3277 [10:46:47]MH_Cut [10:46:47]Write to MH i2c: D1 01 00 CB 0F 01 AC [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: D1 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: D1 01 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: D1 01 00 CB 0F 00 AB [10:46:47]Write to MH i2c: 01 00 00 CC 0F DB [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]OFD Sender: No OFD packet to send [10:46:48]*** Cut start [10:46:48]*** Purtial cut [10:46:48]*** Stage 1: CUTSNS_PIN = 1 [10:46:48]Read from MH i2c: 01 [10:46:48]MH_I2C_Read... [10:46:48]*** Stop cut motor [10:46:48]*** Cut end [10:46:48]Read from MH i2c: 01 07 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: 01 07 00 CC 0F 00 00 00 00 00 FF 0F F0 [10:46:48]process_action close_receipt done [10:46:48]requested_data is exist [10:46:48]produce_requested_data [10:46:48]requested_item fm.sn is exist - process it [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 11 00 00 [10:46:48]Write to MH i2c: E2 08 00 CD 0F 80 11 00 00 00 00 00 00 56 [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 17 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 17 00 CD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AD [10:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:46:48]wFMCommunicate OK [10:46:48]requested_item fd.num is exist - process it [10:46:48]SAM_PROTO_GetFieldsCounters [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 13 00 00 [10:46:48]Write to MH i2c: E2 08 00 CE 0F 80 13 00 00 00 00 00 00 59 [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 62 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 62 00 CE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 04 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10:46:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 04 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:48]wFMCommunicate OK [10:46:48]SAM_PROTO_GetFieldsCounters done [10:46:48]requested_item shift.num is exist - process it [10:46:48]requested_item shift.opened is exist - process it [10:46:48]req_shift_opened [10:46:48]FM_GetShiftState [10:46:48]SAM_PROTO_GetShiftState [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 13 01 00 [10:46:48]Write to MH i2c: E2 08 00 CF 0F 80 13 01 00 00 00 00 00 5B [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 0E 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 0E 00 CF 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 33 [10:46:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:46:48]wFMCommunicate OK [10:46:48]SAM_PROTO_GetShiftState done [10:46:48]FM_GetShiftState done [10:46:48]req_shift_opened done [10:46:48]requested_item shift.open_date is exist - process it [10:46:48]req_shift_open_date [10:46:48]req_shift_open_date done [10:46:48]produce_requested_data done [10:46:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118020,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:46:48]process_action_free close_receipt [10:46:48]json_value_free [10:46:48]json_value_free done [10:46:48]process_json_proto returns [10:46:48]Send response to host [10:46:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118020,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:46:48]free response buf [10:46:48]execute_script done [10:46:48]execute_script returns [10:46:48]free content buf [10:46:48]Sock 10.Close socket [10:46:48]Sock 10.Thread stoped [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:24]accept exits with 7 [10:47:24]New connection [10:47:24]New thread 3067415908 created [10:47:24]Thread 3067559268 joined [10:47:24]Waiting for new connection... [10:47:24] Sock 7.Parse request [10:47:24]Sock 7.Check first char [10:47:24]Sock 7.First char is OK [10:47:24]request: POST /json_proto HTTP/1.0 [10:47:24]Method: POST [10:47:24]URL: /json_proto [10:47:24]Method is POST - this is cgi request [10:47:24]url: /json_proto [10:47:24]query_string will be loaded in cgi processing [10:47:24]execute_cgi json_proto POST (null) [10:47:24]execute_cgi path=json_proto method=POST [10:47:24]POST find Content-Length [10:47:24]Host: 172.17.96.67:8080 [10:47:24]Content-Length: 677 [10:47:24]Content-Type: application/json [10:47:24] [10:47:24]POST finish read [10:47:24]Found Content-Length = 677 [10:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:47:24]execute_script... [10:47:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:47:24]POST & json_proto [10:47:24]process_json_proto [10:47:24]json parsed OK: [10:47:24]protocol is kg_v1.0 [10:47:24]action value=close_receipt [10:47:24]process_action close_receipt [10:47:24]cmd_close_receipt [10:47:24]MH_GetDate [10:47:24]Write to MH i2c: F0 00 00 D0 0F CE [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: F0 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: F0 09 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: F0 09 00 D0 0F 00 BC 0E 22 67 47 6C 1F 67 63 [10:47:24]GetLastDocTimeStamp 1730285205 [10:47:24]current date 1730285244 [10:47:24]FM_GetShiftState [10:47:24]SAM_PROTO_GetShiftState [10:47:24]wFMCommunicate request_size=4 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 13 01 00 [10:47:24]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 0E 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 35 [10:47:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:47:24]wFMCommunicate OK [10:47:24]SAM_PROTO_GetShiftState done [10:47:24]FM_GetShiftState done [10:47:24]opened in 1730246605 [10:47:24]opened+sec_in_day 1730333005 [10:47:24]quantity*price = 50041 [10:47:24]sum+1 = 50042 [10:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 81 30.10.2024 10:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118021 ФПД: 240043530160072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104724&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118021&fm=240043530160072&tin=02508201610067®Number=0000000000091782&sum=50000 [10:47:25]StoreToDocumentArchive [10:47:25]shift 545 fd 118021 [10:47:25]save to /storage/0545/doc_00118021 [10:47:25]save last doc name /storage/0545/doc_00118021 to /storage/kkm_last_doc_name [10:47:25]save OK [10:47:25]Clear old archive folders... [10:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:25]tlvbuf is 00647DB0 [10:47:25]SAM_PROTO_ClearQueue [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 09 00 00 [10:47:25]Write to MH i2c: E2 08 00 DE 0F 80 09 00 00 00 00 00 00 5F [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [10:47:25]RAPDU: 90 00 [10:47:25]wFMCommunicate OK [10:47:25]SAM_PROTO_ClearQueue done [10:47:25]KKMCreateOFDPacket [10:47:25]OFDProtocolAddRootSTLVToBuf [10:47:25]FM_MakeSignedData [10:47:25]FM_MakeSignedData [10:47:25]SAM_PROTO_SignData [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 0D 01 02 [10:47:25]Write to MH i2c: E2 08 00 DF 0F 80 0D 01 02 00 00 00 00 67 [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [10:47:25]RAPDU: 90 00 [10:47:25]wFMCommunicate OK [10:47:25]wFMCommunicate request_size=255 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 51 00 00 00 F4 03 04 00 BC 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CD 01 00 35 04 06 00 DA [10:47:25]Write to MH i2c: E2 02 01 E0 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 BC 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CD 01 00 35 04 06 00 DA 00 00 6D [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 03 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [10:47:26]RAPDU: 90 00 [10:47:26]wFMCommunicate OK [10:47:26]wFMCommunicate request_size=10 [10:47:26]MH_SAM_APDU [10:47:26]CAPDU: 80 0D 02 02 05 51 7D 58 87 C8 [10:47:26]Write to MH i2c: E2 0D 00 E1 0F 80 0D 02 02 05 00 51 7D 58 87 C8 00 00 E9 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 03 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [10:47:26]RAPDU: 90 00 [10:47:26]wFMCommunicate OK [10:47:26]wFMCommunicate request_size=4 [10:47:26]MH_SAM_APDU [10:47:26]CAPDU: 80 0D 03 02 [10:47:26]Write to MH i2c: E2 08 00 E2 0F 80 0D 03 02 00 00 00 00 6C [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 0B 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 0B 00 E2 0F 00 49 1B D8 12 D6 9D CC DA 90 00 D4 [10:47:26]RAPDU: 49 1B D8 12 D6 9D CC DA 90 00 [10:47:26]wFMCommunicate OK [10:47:26]SAM_PROTO_SignData done [10:47:26]FM_MakeSignedData done [10:47:26]CreateOFDProtocolMessage [10:47:26]wFMCommunicate request_size=4 [10:47:26]MH_SAM_APDU [10:47:26]CAPDU: 80 11 00 00 [10:47:26]Write to MH i2c: E2 08 00 E3 0F 80 11 00 00 00 00 00 00 6C [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 17 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 17 00 E3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C3 [10:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:47:26]wFMCommunicate OK [10:47:26]CreateOFDProtocolMessage done [10:47:26]OFDSenderStorePacket 118021 [10:47:26]StoreOFDPacket docnum=118021 [10:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DB BA 07 01 F3 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 32 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 51 00 00 00 F4 03 04 00 BC 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CD 01 00 35 04 06 00 DA 51 7D 58 87 C8 49 1B D8 12 D6 9D CC DA [10:47:26]CheckFolder [10:47:26]dirname=/storage/ofd_packets [10:47:26]CheckFolder done [10:47:26]ProducePacketName [10:47:26]name=ofd_packets/00118021 [10:47:26]NVStorageSaveData ofd_packets/00118021 [10:47:26]File name is /storage/ofd_packets/00118021 [10:47:26]Write 301 bytes [10:47:26]NVStorageSaveData done [10:47:26]OFDSenderStorePacket done [10:47:26]KKMCreateOFDPacket done [10:47:26]NVStorageSaveData kkm_last_timestamp [10:47:26]File name is /storage/kkm_last_timestamp [10:47:26]OFD Sender: Processing packet 118021 [packets to send 77, broken 76] [10:47:26]ProducePacketName [10:47:26]name=ofd_packets/00118021 [10:47:26]OFD Sender: To server: pG, [10:47:26]CommunicateWithHost lk.salyk.kg:30040 [10:47:26]ConnectInit lk.salyk.kg [10:47:26]Write 4 bytes [10:47:26]NVStorageSaveData done [10:47:26]ExternCall_PrintAddStr [10:47:26]wPrintStart [10:47:26]Write to MH i2c: 01 00 00 E4 0F F3 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 07 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 07 00 E4 0F 00 00 00 00 00 FF 0F 08 [10:47:26]RasterBufferAndPrint [10:47:26]line Счет N : (1)245814 [10:47:26]line ИНН: 02508201610067 [10:47:26]line Контрольно-Кассовый Чек [10:47:26]line ПРОДАЖА [10:47:26]line ТРК (МРК, ГНК) : 21 [10:47:26]line Товар: 2710124130 [10:47:26]line Аи-92-К-2 [10:47:26]line 7.480 * 66.90 [10:47:26]line = 500.41 [10:47:26]line НДС 12% НСП 1% [10:47:26]line > о реализуемом товаре [10:47:26]line ОКРУГЛЕНИЕ: -0.41 [10:47:26]line ИТОГО: 500.00 [10:47:26]line Внесено: 500.00 [10:47:26]line СДАЧА: 0.00 [10:47:26]line НСП 1% : 4.43 [10:47:26]line НДС 12% : 53.14 [10:47:26]line Наличными: 500.00 [10:47:26]line Безнал.: 0.00 [10:47:26]line Место: АЗС № 173 "Партнер Нефть" [10:47:26]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:47:26]line СНО: Общий режим [10:47:26]line Чек 81 30.10.2024 10:47 [10:47:26]line Смена: 545 ФФД: 1.0 [10:47:26]line ЗНМ: 0300000115 [10:47:26]line РНМ: 0000000000091782 [10:47:26]line Версия ККМ: 001 [10:47:26]line ФМ: 0000000000871767 [10:47:26]line ФД: 118021 [10:47:26]line ФПД: 240043530160072 [10:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104724&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118021&fm=240043530160072&tin=02508201610067®Number=0000000000091782&sum=50000 [10:47:26]Connected sock=11 [10:47: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 36 37 0F 01 00 00 DB BA 07 01 F3 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 32 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 51 00 00 00 F4 03 04 00 BC 0E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 05 CD 01 00 35 04 06 00 DA 51 7D 58 87 C8 49 1B D8 12 D6 9D CC DA [10:47:26]written 0, free lines is 4095 [10:47: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 36 37 4F 00 00 00 71 3D 47 00 8E 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 36 37 10 04 04 00 05 CD 01 00 F4 03 04 00 74 BA 21 67 B6 04 01 00 00 B4 AB 00 BD 38 6F 79 99 [10:47:26]CommunicateWithHost err = 0 [10:47:26]CheckOFDResponse [10:47:26]1017 (14) - 77093643461234 [10:47:26]1041 (16) - 0000000000871767 [10:47:26]1040 (4) - 118021 [10:47:26]1012 (4) - 30.10.2024 04:47 [10:47:26]1206 (1) - 0 [10:47:26]OFD Sender: Remove packet 118021 [10:47:26]ProducePacketName [10:47:26]name=ofd_packets/00118021 [10:47:26]NVStorageDeleteData [10:47:26]Write to MH i2c: 01 00 00 0E 10 1E [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 07 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 07 00 0E 10 00 00 00 00 00 B7 0C E8 [10:47:26]RasterBufferAndPrint [10:47:26]line [10:47:26]line [10:47:26]line [10:47:26]line [10:47:26]line [10:47:26]written 0, free lines is 3262 [10:47:26]MH_Cut [10:47:26]Write to MH i2c: D1 01 00 15 10 01 F7 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: D1 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: D1 01 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: D1 01 00 15 10 00 F6 [10:47:26]Write to MH i2c: 01 00 00 16 10 26 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:27]OFD Sender: No OFD packet to send [10:47:27]*** Cut start [10:47:27]*** Purtial cut [10:47:27]*** Stage 1: CUTSNS_PIN = 1 [10:47:28]Read from MH i2c: 01 [10:47:28]MH_I2C_Read... [10:47:28]*** Stop cut motor [10:47:28]*** Cut end [10:47:28]Read from MH i2c: 01 07 00 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: 01 07 00 16 10 00 00 00 00 00 FF 0F 3B [10:47:28]process_action close_receipt done [10:47:28]requested_data is exist [10:47:28]produce_requested_data [10:47:28]requested_item fm.sn is exist - process it [10:47:28]wFMCommunicate request_size=4 [10:47:28]MH_SAM_APDU [10:47:28]CAPDU: 80 11 00 00 [10:47:28]Write to MH i2c: E2 08 00 17 10 80 11 00 00 00 00 00 00 A1 [10:47:28]Write i2c OK [10:47:28]MH_I2C_Read... [10:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:28]Read from MH i2c: E2 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 17 00 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 17 00 17 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F8 [10:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:47:28]wFMCommunicate OK [10:47:28]requested_item fd.num is exist - process it [10:47:28]SAM_PROTO_GetFieldsCounters [10:47:28]wFMCommunicate request_size=4 [10:47:28]MH_SAM_APDU [10:47:28]CAPDU: 80 13 00 00 [10:47:28]Write to MH i2c: E2 08 00 18 10 80 13 00 00 00 00 00 00 A4 [10:47:28]Write i2c OK [10:47:28]MH_I2C_Read... [10:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:28]Read from MH i2c: E2 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 62 00 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 62 00 18 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 05 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [10:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 05 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:28]wFMCommunicate OK [10:47:28]SAM_PROTO_GetFieldsCounters done [10:47:28]requested_item shift.num is exist - process it [10:47:28]requested_item shift.opened is exist - process it [10:47:28]req_shift_opened [10:47:28]FM_GetShiftState [10:47:28]SAM_PROTO_GetShiftState [10:47:28]wFMCommunicate request_size=4 [10:47:28]MH_SAM_APDU [10:47:28]CAPDU: 80 13 01 00 [10:47:28]Write to MH i2c: E2 08 00 19 10 80 13 01 00 00 00 00 00 A6 [10:47:28]Write i2c OK [10:47:28]MH_I2C_Read... [10:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:28]Read from MH i2c: E2 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 0E 00 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 0E 00 19 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 7E [10:47:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:47:28]wFMCommunicate OK [10:47:28]SAM_PROTO_GetShiftState done [10:47:28]FM_GetShiftState done [10:47:28]req_shift_opened done [10:47:28]requested_item shift.open_date is exist - process it [10:47:28]req_shift_open_date [10:47:28]req_shift_open_date done [10:47:28]produce_requested_data done [10:47:28]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118021,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:47:28]process_action_free close_receipt [10:47:28]json_value_free [10:47:28]json_value_free done [10:47:28]process_json_proto returns [10:47:28]Send response to host [10:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118021,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:47:28]free response buf [10:47:28]execute_script done [10:47:28]execute_script returns [10:47:28]free content buf [10:47:28]Sock 7.Close socket [10:47:28]Sock 7.Thread stoped [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:10]accept exits with 9 [10:49:10]New connection [10:49:10]New thread 3067559268 created [10:49:10]Thread 3067415908 joined [10:49:10]Waiting for new connection... [10:49:10] Sock 9.Parse request [10:49:10]Sock 9.Check first char [10:49:10]Sock 9.First char is OK [10:49:10]request: POST /json_proto HTTP/1.0 [10:49:10]Method: POST [10:49:10]URL: /json_proto [10:49:10]Method is POST - this is cgi request [10:49:10]url: /json_proto [10:49:10]query_string will be loaded in cgi processing [10:49:10]execute_cgi json_proto POST (null) [10:49:10]execute_cgi path=json_proto method=POST [10:49:10]POST find Content-Length [10:49:10]Host: 172.17.96.67:8080 [10:49:10]Content-Length: 677 [10:49:10]Content-Type: application/json [10:49:10] [10:49:10]POST finish read [10:49:10]Found Content-Length = 677 [10:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:10]execute_script... [10:49:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:10]POST & json_proto [10:49:10]process_json_proto [10:49:10]json parsed OK: [10:49:10]protocol is kg_v1.0 [10:49:10]action value=close_receipt [10:49:10]process_action close_receipt [10:49:10]cmd_close_receipt [10:49:10]MH_GetDate [10:49:10]Write to MH i2c: F0 00 00 1A 10 19 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 09 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 09 00 1A 10 00 26 0F 22 67 47 6C 1F 67 19 [10:49:10]GetLastDocTimeStamp 1730285244 [10:49:10]current date 1730285350 [10:49:10]FM_GetShiftState [10:49:10]SAM_PROTO_GetShiftState [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 01 00 [10:49:10]Write to MH i2c: E2 08 00 1B 10 80 13 01 00 00 00 00 00 A8 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 1B 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 80 [10:49:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetShiftState done [10:49:10]FM_GetShiftState done [10:49:10]opened in 1730246605 [10:49:10]opened+sec_in_day 1730333005 [10:49:10]quantity*price = 22010 [10:49:10]sum+1 = 22011 [10:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 82 30.10.2024 10:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118022 ФПД: 260841053585256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104910&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118022&fm=260841053585256&tin=02508201610067®Number=0000000000091782&sum=22000 [10:49:11]StoreToDocumentArchive [10:49:11]shift 545 fd 118022 [10:49:11]save to /storage/0545/doc_00118022 [10:49:11]save last doc name /storage/0545/doc_00118022 to /storage/kkm_last_doc_name [10:49:11]save OK [10:49:11]Clear old archive folders... [10:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:11]tlvbuf is 00643350 [10:49:11]SAM_PROTO_ClearQueue [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 09 00 00 [10:49:11]Write to MH i2c: E2 08 00 28 10 80 09 00 00 00 00 00 00 AA [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]SAM_PROTO_ClearQueue done [10:49:11]KKMCreateOFDPacket [10:49:11]OFDProtocolAddRootSTLVToBuf [10:49:11]FM_MakeSignedData [10:49:11]FM_MakeSignedData [10:49:11]SAM_PROTO_SignData [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 01 02 [10:49:11]Write to MH i2c: E2 08 00 29 10 80 0D 01 02 00 00 00 00 B2 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]wFMCommunicate request_size=255 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 26 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CD 01 00 35 04 06 00 ED [10:49:11]Write to MH i2c: E2 02 01 2A 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 26 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CD 01 00 35 04 06 00 ED 00 00 9B [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=10 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 0D 02 02 05 3B CA 57 7F 68 [10:49:12]Write to MH i2c: E2 0D 00 2B 10 80 0D 02 02 05 00 3B CA 57 7F 68 00 00 02 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 0D 03 02 [10:49:12]Write to MH i2c: E2 08 00 2C 10 80 0D 03 02 00 00 00 00 B7 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 0B 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 0B 00 2C 10 00 66 FC 32 EF C8 B9 D8 DC 90 00 70 [10:49:12]RAPDU: 66 FC 32 EF C8 B9 D8 DC 90 00 [10:49:12]wFMCommunicate OK [10:49:12]SAM_PROTO_SignData done [10:49:12]FM_MakeSignedData done [10:49:12]CreateOFDProtocolMessage [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 11 00 00 [10:49:12]Write to MH i2c: E2 08 00 2D 10 80 11 00 00 00 00 00 00 B7 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 17 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 17 00 2D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0E [10:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:49:12]wFMCommunicate OK [10:49:12]CreateOFDProtocolMessage done [10:49:12]OFDSenderStorePacket 118022 [10:49:12]StoreOFDPacket docnum=118022 [10:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CD AC 07 01 5B B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 26 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CD 01 00 35 04 06 00 ED 3B CA 57 7F 68 66 FC 32 EF C8 B9 D8 DC [10:49:12]CheckFolder [10:49:12]dirname=/storage/ofd_packets [10:49:12]CheckFolder done [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00118022 [10:49:12]NVStorageSaveData ofd_packets/00118022 [10:49:12]File name is /storage/ofd_packets/00118022 [10:49:12]Write 301 bytes [10:49:12]NVStorageSaveData done [10:49:12]OFDSenderStorePacket done [10:49:12]KKMCreateOFDPacket done [10:49:12]NVStorageSaveData kkm_last_timestamp [10:49:12]File name is /storage/kkm_last_timestamp [10:49:12]Write 4 bytes [10:49:12]NVStorageSaveData done [10:49:12]ExternCall_PrintAddStr [10:49:12]wPrintStart [10:49:12]Write to MH i2c: 01 00 00 2E 10 3E [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 2E 10 00 00 00 00 00 FF 0F 53 [10:49:12]RasterBufferAndPrint [10:49:12]line Счет N : (1)245815 [10:49:12]line ИНН: 02508201610067 [10:49:12]line Контрольно-Кассовый Чек [10:49:12]line ПРОДАЖА [10:49:12]line ТРК (МРК, ГНК) : 21 [10:49:12]line Товар: 2710124130 [10:49:12]line Аи-92-К-2 [10:49:12]line 3.290 * 66.90 [10:49:12]line = 220.10 [10:49:12]line НДС 12% НСП 1% [10:49:12]line > о реализуемом товаре [10:49:12]line ОКРУГЛЕНИЕ: -0.10 [10:49:12]line ИТОГО: 220.00 [10:49:12]line Внесено: 220.00 [10:49:12]line СДАЧА: 0.00 [10:49:12]line НСП 1% : 1.95 [10:49:12]line НДС 12% : 23.37 [10:49:12]line Наличными: 220.00 [10:49:12]line Безнал.: 0.00 [10:49:12]line Место: АЗС № 173 "Партнер Нефть" [10:49:12]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:49:12]line СНО: Общий режим [10:49:12]line Чек 82 30.10.2024 10:49 [10:49:12]line Смена: 545 ФФД: 1.0 [10:49:12]line ЗНМ: 0300000115 [10:49:12]line РНМ: 0000000000091782 [10:49:12]line Версия ККМ: 001 [10:49:12]line ФМ: 0000000000871767 [10:49:12]line ФД: 118022 [10:49:12]line ФПД: 260841053585256 [10:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104910&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118022&fm=260841053585256&tin=02508201610067®Number=0000000000091782&sum=22000 [10:49:12]written 0, free lines is 4095 [10:49:12]OFD Sender: Processing packet 118022 [packets to send 77, broken 76] [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00118022 [10:49:12]OFD Sender: To server: pG, [10:49:12]CommunicateWithHost lk.salyk.kg:30040 [10:49:12]ConnectInit lk.salyk.kg [10:49:12]Connected sock=10 [10:49: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 36 37 0F 01 00 00 CD AC 07 01 5B B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 26 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 06 CD 01 00 35 04 06 00 ED 3B CA 57 7F 68 66 FC 32 EF C8 B9 D8 DC [10:49: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 36 37 4F 00 00 00 2D D5 47 00 16 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 36 37 10 04 04 00 06 CD 01 00 F4 03 04 00 DE BA 21 67 B6 04 01 00 00 57 0F AF 72 81 15 82 98 [10:49:12]CommunicateWithHost err = 0 [10:49:12]CheckOFDResponse [10:49:12]1017 (14) - 77093643461234 [10:49:12]1041 (16) - 0000000000871767 [10:49:12]1040 (4) - 118022 [10:49:12]1012 (4) - 30.10.2024 04:49 [10:49:12]1206 (1) - 0 [10:49:12]OFD Sender: Remove packet 118022 [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00118022 [10:49:12]NVStorageDeleteData [10:49:12]Write to MH i2c: 01 00 00 58 10 68 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 58 10 00 00 00 00 00 B5 0C 30 [10:49:12]RasterBufferAndPrint [10:49:12]line [10:49:12]line [10:49:12]line [10:49:12]line [10:49:12]line [10:49:12]written 0, free lines is 3259 [10:49:12]MH_Cut [10:49:12]Write to MH i2c: D1 01 00 5F 10 01 41 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: D1 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: D1 01 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: D1 01 00 5F 10 00 40 [10:49:12]Write to MH i2c: 01 00 00 60 10 70 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:13]OFD Sender: No OFD packet to send [10:49:13]*** Cut start [10:49:13]*** Purtial cut [10:49:13]*** Stage 1: CUTSNS_PIN = 1 [10:49:14]Read from MH i2c: 01 [10:49:14]MH_I2C_Read... [10:49:14]*** Stop cut motor [10:49:14]*** Cut end [10:49:14]Read from MH i2c: 01 07 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 FF 0F 85 [10:49:14]process_action close_receipt done [10:49:14]requested_data is exist [10:49:14]produce_requested_data [10:49:14]requested_item fm.sn is exist - process it [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 11 00 00 [10:49:14]Write to MH i2c: E2 08 00 61 10 80 11 00 00 00 00 00 00 EB [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 17 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 17 00 61 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 42 [10:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:49:14]wFMCommunicate OK [10:49:14]requested_item fd.num is exist - process it [10:49:14]SAM_PROTO_GetFieldsCounters [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 13 00 00 [10:49:14]Write to MH i2c: E2 08 00 62 10 80 13 00 00 00 00 00 00 EE [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 62 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 62 00 62 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 06 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [10:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 06 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:14]wFMCommunicate OK [10:49:14]SAM_PROTO_GetFieldsCounters done [10:49:14]requested_item shift.num is exist - process it [10:49:14]requested_item shift.opened is exist - process it [10:49:14]req_shift_opened [10:49:14]FM_GetShiftState [10:49:14]SAM_PROTO_GetShiftState [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 13 01 00 [10:49:14]Write to MH i2c: E2 08 00 63 10 80 13 01 00 00 00 00 00 F0 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0E 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0E 00 63 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C8 [10:49:14]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:49:14]wFMCommunicate OK [10:49:14]SAM_PROTO_GetShiftState done [10:49:14]FM_GetShiftState done [10:49:14]req_shift_opened done [10:49:14]requested_item shift.open_date is exist - process it [10:49:14]req_shift_open_date [10:49:14]req_shift_open_date done [10:49:14]produce_requested_data done [10:49:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118022,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:49:14]process_action_free close_receipt [10:49:14]json_value_free [10:49:14]json_value_free done [10:49:14]process_json_proto returns [10:49:14]Send response to host [10:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118022,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:49:14]free response buf [10:49:14]execute_script done [10:49:14]execute_script returns [10:49:14]free content buf [10:49:14]Sock 9.Close socket [10:49:14]Sock 9.Thread stoped [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:44]accept exits with 7 [10:51:44]New connection [10:51:44]New thread 3067415908 created [10:51:44]Thread 3067559268 joined [10:51:44]Waiting for new connection... [10:51:44] Sock 7.Parse request [10:51:44]Sock 7.Check first char [10:51:44]Sock 7.First char is OK [10:51:44]request: POST /json_proto HTTP/1.0 [10:51:44]Method: POST [10:51:44]URL: /json_proto [10:51:44]Method is POST - this is cgi request [10:51:44]url: /json_proto [10:51:44]query_string will be loaded in cgi processing [10:51:44]execute_cgi json_proto POST (null) [10:51:44]execute_cgi path=json_proto method=POST [10:51:44]POST find Content-Length [10:51:44]Host: 172.17.96.67:8080 [10:51:44]Content-Length: 677 [10:51:44]Content-Type: application/json [10:51:44] [10:51:44]POST finish read [10:51:44]Found Content-Length = 677 [10:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:51:44]execute_script... [10:51:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:51:44]POST & json_proto [10:51:44]process_json_proto [10:51:44]json parsed OK: [10:51:44]protocol is kg_v1.0 [10:51:44]action value=close_receipt [10:51:44]process_action close_receipt [10:51:44]cmd_close_receipt [10:51:44]MH_GetDate [10:51:44]Write to MH i2c: F0 00 00 64 10 63 [10:51:44]Write i2c OK [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: F0 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: F0 09 00 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: F0 09 00 64 10 00 C1 0F 22 67 47 6C 1F 67 FE [10:51:44]GetLastDocTimeStamp 1730285350 [10:51:44]current date 1730285505 [10:51:44]FM_GetShiftState [10:51:44]SAM_PROTO_GetShiftState [10:51:44]wFMCommunicate request_size=4 [10:51:44]MH_SAM_APDU [10:51:44]CAPDU: 80 13 01 00 [10:51:44]Write to MH i2c: E2 08 00 65 10 80 13 01 00 00 00 00 00 F2 [10:51:44]Write i2c OK [10:51:44]MH_I2C_Read... [10:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:44]Read from MH i2c: E2 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: E2 0E 00 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: E2 0E 00 65 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CA [10:51:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:51:44]wFMCommunicate OK [10:51:44]SAM_PROTO_GetShiftState done [10:51:44]FM_GetShiftState done [10:51:44]opened in 1730246605 [10:51:44]opened+sec_in_day 1730333005 [10:51:44]quantity*price = 60009 [10:51:44]sum+1 = 60010 [10:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 83 30.10.2024 10:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118023 ФПД: 265546897484768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105145&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118023&fm=265546897484768&tin=02508201610067®Number=0000000000091782&sum=60000 [10:51:45]StoreToDocumentArchive [10:51:45]shift 545 fd 118023 [10:51:45]save to /storage/0545/doc_00118023 [10:51:45]save last doc name /storage/0545/doc_00118023 to /storage/kkm_last_doc_name [10:51:45]save OK [10:51:45]Clear old archive folders... [10:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:45]tlvbuf is 00697150 [10:51:45]SAM_PROTO_ClearQueue [10:51:45]wFMCommunicate request_size=4 [10:51:45]MH_SAM_APDU [10:51:45]CAPDU: 80 09 00 00 [10:51:45]Write to MH i2c: E2 08 00 72 10 80 09 00 00 00 00 00 00 F4 [10:51:45]Write i2c OK [10:51:45]MH_I2C_Read... [10:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:45]Read from MH i2c: E2 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [10:51:45]RAPDU: 90 00 [10:51:45]wFMCommunicate OK [10:51:45]SAM_PROTO_ClearQueue done [10:51:45]KKMCreateOFDPacket [10:51:45]OFDProtocolAddRootSTLVToBuf [10:51:45]FM_MakeSignedData [10:51:45]FM_MakeSignedData [10:51:45]SAM_PROTO_SignData [10:51:45]wFMCommunicate request_size=4 [10:51:45]MH_SAM_APDU [10:51:45]CAPDU: 80 0D 01 02 [10:51:45]Write to MH i2c: E2 08 00 73 10 80 0D 01 02 00 00 00 00 FC [10:51:45]Write i2c OK [10:51:45]MH_I2C_Read... [10:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:45]Read from MH i2c: E2 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [10:51:45]RAPDU: 90 00 [10:51:45]wFMCommunicate OK [10:51:45]wFMCommunicate request_size=255 [10:51:45]MH_SAM_APDU [10:51: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 32 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 53 00 00 00 F4 03 04 00 C1 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CD 01 00 35 04 06 00 F1 [10:51:45]Write to MH i2c: E2 02 01 74 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 C1 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CD 01 00 35 04 06 00 F1 00 00 00 [10:51:45]Write i2c OK [10:51:45]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [10:51:46]RAPDU: 90 00 [10:51:46]wFMCommunicate OK [10:51:46]wFMCommunicate request_size=10 [10:51:46]MH_SAM_APDU [10:51:46]CAPDU: 80 0D 02 02 05 83 74 7E EB E0 [10:51:46]Write to MH i2c: E2 0D 00 75 10 80 0D 02 02 05 00 83 74 7E EB E0 00 00 49 [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 75 10 00 90 00 F9 [10:51:46]RAPDU: 90 00 [10:51:46]wFMCommunicate OK [10:51:46]wFMCommunicate request_size=4 [10:51:46]MH_SAM_APDU [10:51:46]CAPDU: 80 0D 03 02 [10:51:46]Write to MH i2c: E2 08 00 76 10 80 0D 03 02 00 00 00 00 01 [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 0B 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 0B 00 76 10 00 B4 DD B3 97 58 9B 50 B0 90 00 D0 [10:51:46]RAPDU: B4 DD B3 97 58 9B 50 B0 90 00 [10:51:46]wFMCommunicate OK [10:51:46]SAM_PROTO_SignData done [10:51:46]FM_MakeSignedData done [10:51:46]CreateOFDProtocolMessage [10:51:46]wFMCommunicate request_size=4 [10:51:46]MH_SAM_APDU [10:51:46]CAPDU: 80 11 00 00 [10:51:46]Write to MH i2c: E2 08 00 77 10 80 11 00 00 00 00 00 00 01 [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 17 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 17 00 77 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 58 [10:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:51:46]wFMCommunicate OK [10:51:46]CreateOFDProtocolMessage done [10:51:46]OFDSenderStorePacket 118023 [10:51:46]StoreOFDPacket docnum=118023 [10:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 39 3B 07 01 C2 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 C1 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CD 01 00 35 04 06 00 F1 83 74 7E EB E0 B4 DD B3 97 58 9B 50 B0 [10:51:46]CheckFolder [10:51:46]dirname=/storage/ofd_packets [10:51:46]CheckFolder done [10:51:46]ProducePacketName [10:51:46]name=ofd_packets/00118023 [10:51:46]NVStorageSaveData ofd_packets/00118023 [10:51:46]File name is /storage/ofd_packets/00118023 [10:51:46]Write 301 bytes [10:51:46]NVStorageSaveData done [10:51:46]OFDSenderStorePacket done [10:51:46]KKMCreateOFDPacket done [10:51:46]NVStorageSaveData kkm_last_timestamp [10:51:46]File name is /storage/kkm_last_timestamp [10:51:46]Write 4 bytes [10:51:46]NVStorageSaveData done [10:51:46]ExternCall_PrintAddStr [10:51:46]wPrintStart [10:51:46]Write to MH i2c: 01 00 00 78 10 88 [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: 01 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: 01 07 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 FF 0F 9D [10:51:46]RasterBufferAndPrint [10:51:46]line Счет N : (1)245816 [10:51:46]line ИНН: 02508201610067 [10:51:46]line Контрольно-Кассовый Чек [10:51:46]line ПРОДАЖА [10:51:46]line ТРК (МРК, ГНК) : 21 [10:51:46]line Товар: 2710124130 [10:51:46]line Аи-92-К-2 [10:51:46]line 8.970 * 66.90 [10:51:46]line = 600.09 [10:51:46]line НДС 12% НСП 1% [10:51:46]line > о реализуемом товаре [10:51:46]line ОКРУГЛЕНИЕ: -0.09 [10:51:46]line ИТОГО: 600.00 [10:51:46]line Внесено: 600.00 [10:51:46]line СДАЧА: 0.00 [10:51:46]line НСП 1% : 5.31 [10:51:46]line НДС 12% : 63.73 [10:51:46]line Наличными: 600.00 [10:51:46]line Безнал.: 0.00 [10:51:46]line Место: АЗС № 173 "Партнер Нефть" [10:51:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:51:46]line СНО: Общий режим [10:51:46]line Чек 83 30.10.2024 10:51 [10:51:46]line Смена: 545 ФФД: 1.0 [10:51:46]line ЗНМ: 0300000115 [10:51:46]line РНМ: 0000000000091782 [10:51:46]line Версия ККМ: 001 [10:51:46]line ФМ: 0000000000871767 [10:51:46]line ФД: 118023 [10:51:46]line ФПД: 265546897484768 [10:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105145&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118023&fm=265546897484768&tin=02508201610067®Number=0000000000091782&sum=60000 [10:51:46]written 0, free lines is 4095 [10:51:46]OFD Sender: Processing packet 118023 [packets to send 77, broken 76] [10:51:46]ProducePacketName [10:51:46]name=ofd_packets/00118023 [10:51:46]OFD Sender: To server: pG, [10:51:46]CommunicateWithHost lk.salyk.kg:30040 [10:51:46]ConnectInit lk.salyk.kg [10:51:46]Connected sock=10 [10:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 39 3B 07 01 C2 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 C1 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CD 01 00 35 04 06 00 F1 83 74 7E EB E0 B4 DD B3 97 58 9B 50 B0 [10:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 3D 1D 47 00 05 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 07 CD 01 00 F4 03 04 00 78 BB 21 67 B6 04 01 00 00 45 0D DE 19 34 6B F3 87 [10:51:46]CommunicateWithHost err = 0 [10:51:46]CheckOFDResponse [10:51:46]1017 (14) - 77093643461234 [10:51:46]1041 (16) - 0000000000871767 [10:51:46]1040 (4) - 118023 [10:51:46]1012 (4) - 30.10.2024 04:52 [10:51:46]1206 (1) - 0 [10:51:46]OFD Sender: Remove packet 118023 [10:51:46]ProducePacketName [10:51:46]name=ofd_packets/00118023 [10:51:46]NVStorageDeleteData [10:51:47]Write to MH i2c: 01 00 00 A2 10 B2 [10:51:47]Write i2c OK [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: 01 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: 01 07 00 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: 01 07 00 A2 10 00 00 00 00 00 B5 0C 7A [10:51:47]RasterBufferAndPrint [10:51:47]line [10:51:47]line [10:51:47]line [10:51:47]line [10:51:47]line [10:51:47]written 0, free lines is 3259 [10:51:47]MH_Cut [10:51:47]Write to MH i2c: D1 01 00 A9 10 01 8B [10:51:47]Write i2c OK [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: D1 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: D1 01 00 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: D1 01 00 A9 10 00 8A [10:51:47]Write to MH i2c: 01 00 00 AA 10 BA [10:51:47]Write i2c OK [10:51:47]MH_I2C_Read... [10:51:47]OFD Sender: No OFD packet to send [10:51:47]*** Cut start [10:51:47]*** Purtial cut [10:51:47]*** Stage 1: CUTSNS_PIN = 1 [10:51:48]Read from MH i2c: 01 [10:51:48]MH_I2C_Read... [10:51:48]*** Stop cut motor [10:51:48]*** Cut end [10:51:48]Read from MH i2c: 01 07 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: 01 07 00 AA 10 00 00 00 00 00 FF 0F CF [10:51:48]process_action close_receipt done [10:51:48]requested_data is exist [10:51:48]produce_requested_data [10:51:48]requested_item fm.sn is exist - process it [10:51:48]wFMCommunicate request_size=4 [10:51:48]MH_SAM_APDU [10:51:48]CAPDU: 80 11 00 00 [10:51:48]Write to MH i2c: E2 08 00 AB 10 80 11 00 00 00 00 00 00 35 [10:51:48]Write i2c OK [10:51:48]MH_I2C_Read... [10:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:48]Read from MH i2c: E2 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 17 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 17 00 AB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8C [10:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:51:48]wFMCommunicate OK [10:51:48]requested_item fd.num is exist - process it [10:51:48]SAM_PROTO_GetFieldsCounters [10:51:48]wFMCommunicate request_size=4 [10:51:48]MH_SAM_APDU [10:51:48]CAPDU: 80 13 00 00 [10:51:48]Write to MH i2c: E2 08 00 AC 10 80 13 00 00 00 00 00 00 38 [10:51:48]Write i2c OK [10:51:48]MH_I2C_Read... [10:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:48]Read from MH i2c: E2 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 62 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 62 00 AC 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 07 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [10:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 07 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:48]wFMCommunicate OK [10:51:48]SAM_PROTO_GetFieldsCounters done [10:51:48]requested_item shift.num is exist - process it [10:51:48]requested_item shift.opened is exist - process it [10:51:48]req_shift_opened [10:51:48]FM_GetShiftState [10:51:48]SAM_PROTO_GetShiftState [10:51:48]wFMCommunicate request_size=4 [10:51:48]MH_SAM_APDU [10:51:48]CAPDU: 80 13 01 00 [10:51:48]Write to MH i2c: E2 08 00 AD 10 80 13 01 00 00 00 00 00 3A [10:51:48]Write i2c OK [10:51:48]MH_I2C_Read... [10:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:48]Read from MH i2c: E2 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 0E 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 0E 00 AD 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 12 [10:51:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:51:48]wFMCommunicate OK [10:51:48]SAM_PROTO_GetShiftState done [10:51:48]FM_GetShiftState done [10:51:48]req_shift_opened done [10:51:48]requested_item shift.open_date is exist - process it [10:51:48]req_shift_open_date [10:51:48]req_shift_open_date done [10:51:48]produce_requested_data done [10:51:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118023,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:51:48]process_action_free close_receipt [10:51:48]json_value_free [10:51:48]json_value_free done [10:51:48]process_json_proto returns [10:51:48]Send response to host [10:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118023,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:51:48]free response buf [10:51:48]execute_script done [10:51:48]execute_script returns [10:51:48]free content buf [10:51:48]Sock 7.Close socket [10:51:48]Sock 7.Thread stoped [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:28]accept exits with 9 [10:52:28]New connection [10:52:28]New thread 3067559268 created [10:52:28]Thread 3067415908 joined [10:52:28]Waiting for new connection... [10:52:28] Sock 9.Parse request [10:52:28]Sock 9.Check first char [10:52:28]Sock 9.First char is OK [10:52:28]request: POST /json_proto HTTP/1.0 [10:52:28]Method: POST [10:52:28]URL: /json_proto [10:52:28]Method is POST - this is cgi request [10:52:28]url: /json_proto [10:52:28]query_string will be loaded in cgi processing [10:52:28]execute_cgi json_proto POST (null) [10:52:28]execute_cgi path=json_proto method=POST [10:52:28]POST find Content-Length [10:52:28]Host: 172.17.96.67:8080 [10:52:28]Content-Length: 679 [10:52:28]Content-Type: application/json [10:52:28] [10:52:28]POST finish read [10:52:28]Found Content-Length = 679 [10:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:28]execute_script... [10:52:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:28]POST & json_proto [10:52:28]process_json_proto [10:52:28]json parsed OK: [10:52:28]protocol is kg_v1.0 [10:52:28]action value=close_receipt [10:52:28]process_action close_receipt [10:52:28]cmd_close_receipt [10:52:28]MH_GetDate [10:52:28]Write to MH i2c: F0 00 00 AE 10 AD [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: F0 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: F0 09 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: F0 09 00 AE 10 00 ED 0F 22 67 47 6C 1F 67 74 [10:52:28]GetLastDocTimeStamp 1730285505 [10:52:28]current date 1730285549 [10:52:28]FM_GetShiftState [10:52:28]SAM_PROTO_GetShiftState [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 13 01 00 [10:52:28]Write to MH i2c: E2 08 00 AF 10 80 13 01 00 00 00 00 00 3C [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 0E 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 0E 00 AF 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 14 [10:52:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:52:28]wFMCommunicate OK [10:52:28]SAM_PROTO_GetShiftState done [10:52:28]FM_GetShiftState done [10:52:28]opened in 1730246605 [10:52:28]opened+sec_in_day 1730333005 [10:52:28]quantity*price = 140055 [10:52:28]sum+1 = 140057 [10:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 84 30.10.2024 10:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118024 ФПД: 148170082576510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105229&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118024&fm=148170082576510&tin=02508201610067®Number=0000000000091782&sum=140000 [10:52:30]StoreToDocumentArchive [10:52:30]shift 545 fd 118024 [10:52:30]save to /storage/0545/doc_00118024 [10:52:30]save last doc name /storage/0545/doc_00118024 to /storage/kkm_last_doc_name [10:52:30]save OK [10:52:30]Clear old archive folders... [10:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:30]tlvbuf is B6F3C5B0 [10:52:30]SAM_PROTO_ClearQueue [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 09 00 00 [10:52:30]Write to MH i2c: E2 08 00 BC 10 80 09 00 00 00 00 00 00 3E [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 BC 10 00 90 00 40 [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]SAM_PROTO_ClearQueue done [10:52:30]KKMCreateOFDPacket [10:52:30]OFDProtocolAddRootSTLVToBuf [10:52:30]FM_MakeSignedData [10:52:30]FM_MakeSignedData [10:52:30]SAM_PROTO_SignData [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 01 02 [10:52:30]Write to MH i2c: E2 08 00 BD 10 80 0D 01 02 00 00 00 00 46 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 BD 10 00 90 00 41 [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]wFMCommunicate request_size=255 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CD 01 00 35 04 06 00 86 C2 89 23 [10:52:30]Write to MH i2c: E2 02 01 BE 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CD 01 00 35 04 06 00 86 C2 89 23 00 00 D3 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 BE 10 00 90 00 42 [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]wFMCommunicate request_size=7 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 02 02 02 68 7E [10:52:30]Write to MH i2c: E2 0A 00 BF 10 80 0D 02 02 02 00 68 7E 00 00 33 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 BF 10 00 90 00 43 [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 03 02 [10:52:30]Write to MH i2c: E2 08 00 C0 10 80 0D 03 02 00 00 00 00 4B [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 0B 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 0B 00 C0 10 00 94 84 52 6F D6 B5 FF 74 90 00 23 [10:52:30]RAPDU: 94 84 52 6F D6 B5 FF 74 90 00 [10:52:30]wFMCommunicate OK [10:52:30]SAM_PROTO_SignData done [10:52:30]FM_MakeSignedData done [10:52:30]CreateOFDProtocolMessage [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 11 00 00 [10:52:30]Write to MH i2c: E2 08 00 C1 10 80 11 00 00 00 00 00 00 4B [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 17 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 17 00 C1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A2 [10:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:52:30]wFMCommunicate OK [10:52:30]CreateOFDProtocolMessage done [10:52:30]OFDSenderStorePacket 118024 [10:52:30]StoreOFDPacket docnum=118024 [10:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 E2 94 04 01 5E 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CD 01 00 35 04 06 00 86 C2 89 23 68 7E 94 84 52 6F D6 B5 FF 74 [10:52:30]CheckFolder [10:52:30]dirname=/storage/ofd_packets [10:52:30]CheckFolder done [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00118024 [10:52:30]NVStorageSaveData ofd_packets/00118024 [10:52:30]File name is /storage/ofd_packets/00118024 [10:52:30]Write 298 bytes [10:52:30]NVStorageSaveData done [10:52:30]OFDSenderStorePacket done [10:52:30]KKMCreateOFDPacket done [10:52:30]NVStorageSaveData kkm_last_timestamp [10:52:30]File name is /storage/kkm_last_timestamp [10:52:30]Write 4 bytes [10:52:30]NVStorageSaveData done [10:52:30]ExternCall_PrintAddStr [10:52:30]wPrintStart [10:52:30]Write to MH i2c: 01 00 00 C2 10 D2 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 C2 10 00 00 00 00 00 FF 0F E7 [10:52:30]RasterBufferAndPrint [10:52:30]line Счет N : (1)245817 [10:52:30]line ИНН: 02508201610067 [10:52:30]line Контрольно-Кассовый Чек [10:52:30]line ПРОДАЖА [10:52:30]line ТРК (МРК, ГНК) : 13 [10:52:30]line Товар: 2710194210 [10:52:30]line ДТ-К-2 [10:52:30]line 18.380 * 76.20 [10:52:30]line = 1400.56 [10:52:30]line НДС 12% НСП 1% [10:52:30]line > о реализуемом товаре [10:52:30]line ОКРУГЛЕНИЕ: -0.56 [10:52:30]line ИТОГО: 1400.00 [10:52:30]line Внесено: 1400.00 [10:52:30]line СДАЧА: 0.00 [10:52:30]line НСП 1% : 12.39 [10:52:30]line НДС 12% : 148.73 [10:52:30]line Наличными: 1400.00 [10:52:30]line Безнал.: 0.00 [10:52:30]line Место: АЗС № 173 "Партнер Нефть" [10:52:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:52:30]line СНО: Общий режим [10:52:30]line Чек 84 30.10.2024 10:52 [10:52:30]line Смена: 545 ФФД: 1.0 [10:52:30]line ЗНМ: 0300000115 [10:52:30]line РНМ: 0000000000091782 [10:52:30]line Версия ККМ: 001 [10:52:30]line ФМ: 0000000000871767 [10:52:30]line ФД: 118024 [10:52:30]line ФПД: 148170082576510 [10:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105229&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118024&fm=148170082576510&tin=02508201610067®Number=0000000000091782&sum=140000 [10:52:30]OFD Sender: Processing packet 118024 [packets to send 77, broken 76] [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00118024 [10:52:30]OFD Sender: To server: pG, [10:52:30]CommunicateWithHost lk.salyk.kg:30040 [10:52:30]ConnectInit lk.salyk.kg [10:52:30]written 0, free lines is 4095 [10:52:31]Connected sock=10 [10:52: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 36 37 0C 01 00 00 E2 94 04 01 5E 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 0F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 08 CD 01 00 35 04 06 00 86 C2 89 23 68 7E 94 84 52 6F D6 B5 FF 74 [10:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 1B 0B 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 36 37 10 04 04 00 08 CD 01 00 F4 03 04 00 A5 BB 21 67 B6 04 01 00 00 FA A5 27 80 35 AD 91 40 [10:52:31]CommunicateWithHost err = 0 [10:52:31]CheckOFDResponse [10:52:31]1017 (14) - 77093643461234 [10:52:31]1041 (16) - 0000000000871767 [10:52:31]1040 (4) - 118024 [10:52:31]1012 (4) - 30.10.2024 04:52 [10:52:31]1206 (1) - 0 [10:52:31]OFD Sender: Remove packet 118024 [10:52:31]ProducePacketName [10:52:31]name=ofd_packets/00118024 [10:52:31]NVStorageDeleteData [10:52:31]Write to MH i2c: 01 00 00 EC 10 FC [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 B9 0C C8 [10:52:31]RasterBufferAndPrint [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]written 0, free lines is 3264 [10:52:31]MH_Cut [10:52:31]Write to MH i2c: D1 01 00 F3 10 01 D5 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 01 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 01 00 F3 10 00 D4 [10:52:31]Write to MH i2c: 01 00 00 F4 10 04 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]OFD Sender: No OFD packet to send [10:52:32]*** Cut start [10:52:32]*** Purtial cut [10:52:32]*** Stage 1: CUTSNS_PIN = 1 [10:52:32]Read from MH i2c: 01 [10:52:32]MH_I2C_Read... [10:52:32]*** Stop cut motor [10:52:32]*** Cut end [10:52:32]Read from MH i2c: 01 07 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 FF 0F 19 [10:52:32]process_action close_receipt done [10:52:32]requested_data is exist [10:52:32]produce_requested_data [10:52:32]requested_item fm.sn is exist - process it [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 11 00 00 [10:52:32]Write to MH i2c: E2 08 00 F5 10 80 11 00 00 00 00 00 00 7F [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 17 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 17 00 F5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D6 [10:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:52:32]wFMCommunicate OK [10:52:32]requested_item fd.num is exist - process it [10:52:32]SAM_PROTO_GetFieldsCounters [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 13 00 00 [10:52:32]Write to MH i2c: E2 08 00 F6 10 80 13 00 00 00 00 00 00 82 [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 62 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 62 00 F6 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 08 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [10:52: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 08 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:32]wFMCommunicate OK [10:52:32]SAM_PROTO_GetFieldsCounters done [10:52:32]requested_item shift.num is exist - process it [10:52:32]requested_item shift.opened is exist - process it [10:52:32]req_shift_opened [10:52:32]FM_GetShiftState [10:52:32]SAM_PROTO_GetShiftState [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 13 01 00 [10:52:32]Write to MH i2c: E2 08 00 F7 10 80 13 01 00 00 00 00 00 84 [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 0E 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 0E 00 F7 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5C [10:52:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:52:32]wFMCommunicate OK [10:52:32]SAM_PROTO_GetShiftState done [10:52:32]FM_GetShiftState done [10:52:32]req_shift_opened done [10:52:32]requested_item shift.open_date is exist - process it [10:52:32]req_shift_open_date [10:52:32]req_shift_open_date done [10:52:32]produce_requested_data done [10:52:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118024,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:52:32]process_action_free close_receipt [10:52:32]json_value_free [10:52:32]json_value_free done [10:52:32]process_json_proto returns [10:52:32]Send response to host [10:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118024,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:52:32]free response buf [10:52:32]execute_script done [10:52:32]execute_script returns [10:52:32]free content buf [10:52:32]Sock 9.Close socket [10:52:32]Sock 9.Thread stoped [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:42]accept exits with 7 [10:53:42]New connection [10:53:42]New thread 3067415908 created [10:53:42]Thread 3067559268 joined [10:53:42]Waiting for new connection... [10:53:42] Sock 7.Parse request [10:53:42]Sock 7.Check first char [10:53:42]Sock 7.First char is OK [10:53:42]request: POST /json_proto HTTP/1.0 [10:53:42]Method: POST [10:53:42]URL: /json_proto [10:53:42]Method is POST - this is cgi request [10:53:42]url: /json_proto [10:53:42]query_string will be loaded in cgi processing [10:53:42]execute_cgi json_proto POST (null) [10:53:42]execute_cgi path=json_proto method=POST [10:53:42]POST find Content-Length [10:53:42]Host: 172.17.96.67:8080 [10:53:42]Content-Length: 677 [10:53:42]Content-Type: application/json [10:53:42] [10:53:42]POST finish read [10:53:42]Found Content-Length = 677 [10:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:42]execute_script... [10:53: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)245818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:42]POST & json_proto [10:53:42]process_json_proto [10:53:42]json parsed OK: [10:53:42]protocol is kg_v1.0 [10:53:42]action value=close_receipt [10:53:42]process_action close_receipt [10:53:42]cmd_close_receipt [10:53:42]MH_GetDate [10:53:42]Write to MH i2c: F0 00 00 F8 10 F7 [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: F0 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: F0 09 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: F0 09 00 F8 10 00 37 10 22 67 47 6C 1F 67 09 [10:53:42]GetLastDocTimeStamp 1730285549 [10:53:42]current date 1730285623 [10:53:42]FM_GetShiftState [10:53:42]SAM_PROTO_GetShiftState [10:53:42]wFMCommunicate request_size=4 [10:53:42]MH_SAM_APDU [10:53:42]CAPDU: 80 13 01 00 [10:53:42]Write to MH i2c: E2 08 00 F9 10 80 13 01 00 00 00 00 00 86 [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:42]Read from MH i2c: E2 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: E2 0E 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: E2 0E 00 F9 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5E [10:53:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:53:42]wFMCommunicate OK [10:53:42]SAM_PROTO_GetShiftState done [10:53:42]FM_GetShiftState done [10:53:42]opened in 1730246605 [10:53:42]opened+sec_in_day 1730333005 [10:53:42]quantity*price = 50041 [10:53:42]sum+1 = 50042 [10:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 85 30.10.2024 10:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118025 ФПД: 267689595313530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118025&fm=267689595313530&tin=02508201610067®Number=0000000000091782&sum=50000 [10:53:43]StoreToDocumentArchive [10:53:43]shift 545 fd 118025 [10:53:43]save to /storage/0545/doc_00118025 [10:53:43]save last doc name /storage/0545/doc_00118025 to /storage/kkm_last_doc_name [10:53:43]save OK [10:53:43]Clear old archive folders... [10:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:43]tlvbuf is 00648330 [10:53:43]SAM_PROTO_ClearQueue [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 09 00 00 [10:53:43]Write to MH i2c: E2 08 00 06 11 80 09 00 00 00 00 00 00 89 [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:43]Read from MH i2c: E2 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [10:53:43]RAPDU: 90 00 [10:53:43]wFMCommunicate OK [10:53:43]SAM_PROTO_ClearQueue done [10:53:43]KKMCreateOFDPacket [10:53:43]OFDProtocolAddRootSTLVToBuf [10:53:43]FM_MakeSignedData [10:53:43]FM_MakeSignedData [10:53:43]SAM_PROTO_SignData [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 0D 01 02 [10:53:43]Write to MH i2c: E2 08 00 07 11 80 0D 01 02 00 00 00 00 91 [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:43]Read from MH i2c: E2 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [10:53:43]RAPDU: 90 00 [10:53:43]wFMCommunicate OK [10:53:43]wFMCommunicate request_size=255 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 55 00 00 00 F4 03 04 00 37 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CD 01 00 35 04 06 00 F3 [10:53:43]Write to MH i2c: E2 02 01 08 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 37 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CD 01 00 35 04 06 00 F3 00 00 35 [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [10:53:44]RAPDU: 90 00 [10:53:44]wFMCommunicate OK [10:53:44]wFMCommunicate request_size=10 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 0D 02 02 05 76 57 3D 1D 7A [10:53:44]Write to MH i2c: E2 0D 00 09 11 80 0D 02 02 05 00 76 57 3D 1D 7A 00 00 3F [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [10:53:44]RAPDU: 90 00 [10:53:44]wFMCommunicate OK [10:53:44]wFMCommunicate request_size=4 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 0D 03 02 [10:53:44]Write to MH i2c: E2 08 00 0A 11 80 0D 03 02 00 00 00 00 96 [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0B 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0B 00 0A 11 00 6F C2 14 74 F0 F8 E5 F2 90 00 0F [10:53:44]RAPDU: 6F C2 14 74 F0 F8 E5 F2 90 00 [10:53:44]wFMCommunicate OK [10:53:44]SAM_PROTO_SignData done [10:53:44]FM_MakeSignedData done [10:53:44]CreateOFDProtocolMessage [10:53:44]wFMCommunicate request_size=4 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 11 00 00 [10:53:44]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 17 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 ED [10:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:53:44]wFMCommunicate OK [10:53:44]CreateOFDProtocolMessage done [10:53:44]OFDSenderStorePacket 118025 [10:53:44]StoreOFDPacket docnum=118025 [10:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1E 83 07 01 21 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 32 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 55 00 00 00 F4 03 04 00 37 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CD 01 00 35 04 06 00 F3 76 57 3D 1D 7A 6F C2 14 74 F0 F8 E5 F2 [10:53:44]CheckFolder [10:53:44]dirname=/storage/ofd_packets [10:53:44]CheckFolder done [10:53:44]ProducePacketName [10:53:44]name=ofd_packets/00118025 [10:53:44]NVStorageSaveData ofd_packets/00118025 [10:53:44]File name is /storage/ofd_packets/00118025 [10:53:44]Write 301 bytes [10:53:44]NVStorageSaveData done [10:53:44]OFDSenderStorePacket done [10:53:44]KKMCreateOFDPacket done [10:53:44]NVStorageSaveData kkm_last_timestamp [10:53:44]File name is /storage/kkm_last_timestamp [10:53:44]Write 4 bytes [10:53:44]NVStorageSaveData done [10:53:44]ExternCall_PrintAddStr [10:53:44]wPrintStart [10:53:44]Write to MH i2c: 01 00 00 0C 11 1D [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: 01 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: 01 07 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: 01 07 00 0C 11 00 00 00 00 00 FF 0F 32 [10:53:44]RasterBufferAndPrint [10:53:44]line Счет N : (1)245818 [10:53:44]line ИНН: 02508201610067 [10:53:44]line Контрольно-Кассовый Чек [10:53:44]line ПРОДАЖА [10:53:44]line ТРК (МРК, ГНК) : 21 [10:53:44]line Товар: 2710124130 [10:53:44]line Аи-92-К-2 [10:53:44]line 7.480 * 66.90 [10:53:44]line = 500.41 [10:53:44]line НДС 12% НСП 1% [10:53:44]line > о реализуемом товаре [10:53:44]line ОКРУГЛЕНИЕ: -0.41 [10:53:44]line ИТОГО: 500.00 [10:53:44]line Внесено: 500.00 [10:53:44]line СДАЧА: 0.00 [10:53:44]line НСП 1% : 4.43 [10:53:44]line НДС 12% : 53.14 [10:53:44]line Наличными: 500.00 [10:53:44]line Безнал.: 0.00 [10:53:44]line Место: АЗС № 173 "Партнер Нефть" [10:53:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:53:44]line СНО: Общий режим [10:53:44]line Чек 85 30.10.2024 10:53 [10:53:44]line Смена: 545 ФФД: 1.0 [10:53:44]line ЗНМ: 0300000115 [10:53:44]line РНМ: 0000000000091782 [10:53:44]line Версия ККМ: 001 [10:53:44]line ФМ: 0000000000871767 [10:53:44]line ФД: 118025 [10:53:44]line ФПД: 267689595313530 [10:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118025&fm=267689595313530&tin=02508201610067®Number=0000000000091782&sum=50000 [10:53:44]written 0, free lines is 4095 [10:53:44]OFD Sender: Processing packet 118025 [packets to send 77, broken 76] [10:53:44]ProducePacketName [10:53:44]name=ofd_packets/00118025 [10:53:44]OFD Sender: To server: pG, [10:53:44]CommunicateWithHost lk.salyk.kg:30040 [10:53:44]ConnectInit lk.salyk.kg [10:53:44]Connected sock=9 [10:53: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 36 37 0F 01 00 00 1E 83 07 01 21 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 32 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 55 00 00 00 F4 03 04 00 37 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 09 CD 01 00 35 04 06 00 F3 76 57 3D 1D 7A 6F C2 14 74 F0 F8 E5 F2 [10:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 C9 67 47 00 83 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 36 37 10 04 04 00 09 CD 01 00 F4 03 04 00 EF BB 21 67 B6 04 01 00 00 6E BA 46 94 FB 22 DC 22 [10:53:44]CommunicateWithHost err = 0 [10:53:44]CheckOFDResponse [10:53:44]1017 (14) - 77093643461234 [10:53:44]1041 (16) - 0000000000871767 [10:53:44]1040 (4) - 118025 [10:53:44]1012 (4) - 30.10.2024 04:54 [10:53:44]1206 (1) - 0 [10:53:44]OFD Sender: Remove packet 118025 [10:53:44]ProducePacketName [10:53:44]name=ofd_packets/00118025 [10:53:44]NVStorageDeleteData [10:53:45]Write to MH i2c: 01 00 00 36 11 47 [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: 01 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: 01 07 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 B3 0C 0D [10:53:45]RasterBufferAndPrint [10:53:45]line [10:53:45]line [10:53:45]line [10:53:45]line [10:53:45]line [10:53:45]written 0, free lines is 3255 [10:53:45]MH_Cut [10:53:45]Write to MH i2c: D1 01 00 3D 11 01 20 [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: D1 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: D1 01 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: D1 01 00 3D 11 00 1F [10:53:45]Write to MH i2c: 01 00 00 3E 11 4F [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]OFD Sender: No OFD packet to send [10:53:45]*** Cut start [10:53:45]*** Purtial cut [10:53:45]*** Stage 1: CUTSNS_PIN = 1 [10:53:46]Read from MH i2c: 01 [10:53:46]MH_I2C_Read... [10:53:46]*** Stop cut motor [10:53:46]*** Cut end [10:53:46]Read from MH i2c: 01 07 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 07 00 3E 11 00 00 00 00 00 FF 0F 64 [10:53:46]process_action close_receipt done [10:53:46]requested_data is exist [10:53:46]produce_requested_data [10:53:46]requested_item fm.sn is exist - process it [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 11 00 00 [10:53:46]Write to MH i2c: E2 08 00 3F 11 80 11 00 00 00 00 00 00 CA [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 17 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 17 00 3F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 21 [10:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:53:46]wFMCommunicate OK [10:53:46]requested_item fd.num is exist - process it [10:53:46]SAM_PROTO_GetFieldsCounters [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 13 00 00 [10:53:46]Write to MH i2c: E2 08 00 40 11 80 13 00 00 00 00 00 00 CD [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 62 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 62 00 40 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 09 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [10:53: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 09 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:46]wFMCommunicate OK [10:53:46]SAM_PROTO_GetFieldsCounters done [10:53:46]requested_item shift.num is exist - process it [10:53:46]requested_item shift.opened is exist - process it [10:53:46]req_shift_opened [10:53:46]FM_GetShiftState [10:53:46]SAM_PROTO_GetShiftState [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 13 01 00 [10:53:46]Write to MH i2c: E2 08 00 41 11 80 13 01 00 00 00 00 00 CF [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 41 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A7 [10:53:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:53:46]wFMCommunicate OK [10:53:46]SAM_PROTO_GetShiftState done [10:53:46]FM_GetShiftState done [10:53:46]req_shift_opened done [10:53:46]requested_item shift.open_date is exist - process it [10:53:46]req_shift_open_date [10:53:46]req_shift_open_date done [10:53:46]produce_requested_data done [10:53:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118025,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:53:46]process_action_free close_receipt [10:53:46]json_value_free [10:53:46]json_value_free done [10:53:46]process_json_proto returns [10:53:46]Send response to host [10:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118025,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:53:46]free response buf [10:53:46]execute_script done [10:53:46]execute_script returns [10:53:46]free content buf [10:53:46]Sock 7.Close socket [10:53:46]Sock 7.Thread stoped [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:07]accept exits with 10 [10:54:07]New connection [10:54:07]New thread 3067559268 created [10:54:07]Thread 3067415908 joined [10:54:07]Waiting for new connection... [10:54:07] Sock 10.Parse request [10:54:07]Sock 10.Check first char [10:54:07]Sock 10.First char is OK [10:54:07]request: POST /json_proto HTTP/1.0 [10:54:07]Method: POST [10:54:07]URL: /json_proto [10:54:07]Method is POST - this is cgi request [10:54:07]url: /json_proto [10:54:07]query_string will be loaded in cgi processing [10:54:07]execute_cgi json_proto POST (null) [10:54:07]execute_cgi path=json_proto method=POST [10:54:07]POST find Content-Length [10:54:07]Host: 172.17.96.67:8080 [10:54:07]Content-Length: 677 [10:54:07]Content-Type: application/json [10:54:07] [10:54:07]POST finish read [10:54:07]Found Content-Length = 677 [10:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:07]execute_script... [10:54: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)245819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:07]POST & json_proto [10:54:07]process_json_proto [10:54:07]json parsed OK: [10:54:07]protocol is kg_v1.0 [10:54:07]action value=close_receipt [10:54:07]process_action close_receipt [10:54:07]cmd_close_receipt [10:54:07]MH_GetDate [10:54:07]Write to MH i2c: F0 00 00 42 11 42 [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: F0 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: F0 09 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: F0 09 00 42 11 00 4F 10 22 67 47 6C 1F 67 6C [10:54:07]GetLastDocTimeStamp 1730285623 [10:54:07]current date 1730285647 [10:54:07]FM_GetShiftState [10:54:07]SAM_PROTO_GetShiftState [10:54:07]wFMCommunicate request_size=4 [10:54:07]MH_SAM_APDU [10:54:07]CAPDU: 80 13 01 00 [10:54:07]Write to MH i2c: E2 08 00 43 11 80 13 01 00 00 00 00 00 D1 [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 0E 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 0E 00 43 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A9 [10:54:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:54:07]wFMCommunicate OK [10:54:07]SAM_PROTO_GetShiftState done [10:54:07]FM_GetShiftState done [10:54:07]opened in 1730246605 [10:54:07]opened+sec_in_day 1730333005 [10:54:07]quantity*price = 30038 [10:54:07]sum+1 = 30039 [10:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 86 30.10.2024 10:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118026 ФПД: 93787875941092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105407&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118026&fm=93787875941092&tin=02508201610067®Number=0000000000091782&sum=30000 [10:54:08]StoreToDocumentArchive [10:54:08]shift 545 fd 118026 [10:54:08]save to /storage/0545/doc_00118026 [10:54:08]save last doc name /storage/0545/doc_00118026 to /storage/kkm_last_doc_name [10:54:08]save OK [10:54:08]Clear old archive folders... [10:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:08]tlvbuf is 00626D10 [10:54:08]SAM_PROTO_ClearQueue [10:54:08]wFMCommunicate request_size=4 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 09 00 00 [10:54:08]Write to MH i2c: E2 08 00 50 11 80 09 00 00 00 00 00 00 D3 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [10:54:08]RAPDU: 90 00 [10:54:08]wFMCommunicate OK [10:54:08]SAM_PROTO_ClearQueue done [10:54:08]KKMCreateOFDPacket [10:54:08]OFDProtocolAddRootSTLVToBuf [10:54:08]FM_MakeSignedData [10:54:08]FM_MakeSignedData [10:54:08]SAM_PROTO_SignData [10:54:08]wFMCommunicate request_size=4 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 0D 01 02 [10:54:08]Write to MH i2c: E2 08 00 51 11 80 0D 01 02 00 00 00 00 DB [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 51 11 00 90 00 D6 [10:54:08]RAPDU: 90 00 [10:54:08]wFMCommunicate OK [10:54:08]wFMCommunicate request_size=255 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 56 00 00 00 F4 03 04 00 4F 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CD 01 00 35 04 06 00 55 [10:54:08]Write to MH i2c: E2 02 01 52 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 4F 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CD 01 00 35 04 06 00 55 00 00 EF [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [10:54:08]RAPDU: 90 00 [10:54:08]wFMCommunicate OK [10:54:08]wFMCommunicate request_size=10 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 0D 02 02 05 4C B1 07 9A E4 [10:54:08]Write to MH i2c: E2 0D 00 53 11 80 0D 02 02 05 00 4C B1 07 9A E4 00 00 6A [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [10:54:08]RAPDU: 90 00 [10:54:08]wFMCommunicate OK [10:54:08]wFMCommunicate request_size=4 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 0D 03 02 [10:54:08]Write to MH i2c: E2 08 00 54 11 80 0D 03 02 00 00 00 00 E0 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 0B 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 0B 00 54 11 00 E5 0A 2E A7 E7 F4 0B D4 90 00 5F [10:54:08]RAPDU: E5 0A 2E A7 E7 F4 0B D4 90 00 [10:54:08]wFMCommunicate OK [10:54:08]SAM_PROTO_SignData done [10:54:08]FM_MakeSignedData done [10:54:08]CreateOFDProtocolMessage [10:54:08]wFMCommunicate request_size=4 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 11 00 00 [10:54:08]Write to MH i2c: E2 08 00 55 11 80 11 00 00 00 00 00 00 E0 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 17 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 17 00 55 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 37 [10:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:54:08]wFMCommunicate OK [10:54:08]CreateOFDProtocolMessage done [10:54:08]OFDSenderStorePacket 118026 [10:54:08]StoreOFDPacket docnum=118026 [10:54:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6A BF 07 01 22 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 56 00 00 00 F4 03 04 00 4F 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CD 01 00 35 04 06 00 55 4C B1 07 9A E4 E5 0A 2E A7 E7 F4 0B D4 [10:54:08]CheckFolder [10:54:08]dirname=/storage/ofd_packets [10:54:08]CheckFolder done [10:54:08]ProducePacketName [10:54:08]name=ofd_packets/00118026 [10:54:08]NVStorageSaveData ofd_packets/00118026 [10:54:08]File name is /storage/ofd_packets/00118026 [10:54:08]Write 301 bytes [10:54:08]NVStorageSaveData done [10:54:08]OFDSenderStorePacket done [10:54:08]KKMCreateOFDPacket done [10:54:08]NVStorageSaveData kkm_last_timestamp [10:54:08]File name is /storage/kkm_last_timestamp [10:54:08]Write 4 bytes [10:54:08]NVStorageSaveData done [10:54:08]ExternCall_PrintAddStr [10:54:08]wPrintStart [10:54:08]Write to MH i2c: 01 00 00 56 11 67 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 07 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 07 00 56 11 00 00 00 00 00 FF 0F 7C [10:54:08]RasterBufferAndPrint [10:54:08]line Счет N : (1)245819 [10:54:08]line ИНН: 02508201610067 [10:54:08]line Контрольно-Кассовый Чек [10:54:08]line ПРОДАЖА [10:54:08]line ТРК (МРК, ГНК) : 11 [10:54:08]line Товар: 2710124130 [10:54:08]line Аи-92-К-2 [10:54:08]line 4.490 * 66.90 [10:54:08]line = 300.38 [10:54:08]line НДС 12% НСП 1% [10:54:08]line > о реализуемом товаре [10:54:08]line ОКРУГЛЕНИЕ: -0.38 [10:54:08]line ИТОГО: 300.00 [10:54:08]line Внесено: 300.00 [10:54:08]line СДАЧА: 0.00 [10:54:08]line НСП 1% : 2.66 [10:54:08]line НДС 12% : 31.90 [10:54:08]line Наличными: 300.00 [10:54:08]line Безнал.: 0.00 [10:54:08]line Место: АЗС № 173 "Партнер Нефть" [10:54:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:54:08]line СНО: Общий режим [10:54:08]line Чек 86 30.10.2024 10:54 [10:54:08]line Смена: 545 ФФД: 1.0 [10:54:08]line ЗНМ: 0300000115 [10:54:08]line РНМ: 0000000000091782 [10:54:08]line Версия ККМ: 001 [10:54:08]line ФМ: 0000000000871767 [10:54:08]line ФД: 118026 [10:54:08]line ФПД: 93787875941092 [10:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105407&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118026&fm=93787875941092&tin=02508201610067®Number=0000000000091782&sum=30000 [10:54:08]written 0, free lines is 4095 [10:54:08]OFD Sender: Processing packet 118026 [packets to send 77, broken 76] [10:54:08]ProducePacketName [10:54:08]name=ofd_packets/00118026 [10:54:08]OFD Sender: To server: pG, [10:54:08]CommunicateWithHost lk.salyk.kg:30040 [10:54:08]ConnectInit lk.salyk.kg [10:54:09]Connected sock=11 [10:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6A BF 07 01 22 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 56 00 00 00 F4 03 04 00 4F 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0A CD 01 00 35 04 06 00 55 4C B1 07 9A E4 E5 0A 2E A7 E7 F4 0B D4 [10:54: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 36 37 4F 00 00 00 C0 07 47 00 60 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 36 37 10 04 04 00 0A CD 01 00 F4 03 04 00 07 BC 21 67 B6 04 01 00 00 B3 72 85 45 2C 20 8B EC [10:54:09]CommunicateWithHost err = 0 [10:54:09]CheckOFDResponse [10:54:09]1017 (14) - 77093643461234 [10:54:09]1041 (16) - 0000000000871767 [10:54:09]1040 (4) - 118026 [10:54:09]1012 (4) - 30.10.2024 04:54 [10:54:09]1206 (1) - 0 [10:54:09]OFD Sender: Remove packet 118026 [10:54:09]ProducePacketName [10:54:09]name=ofd_packets/00118026 [10:54:09]NVStorageDeleteData [10:54:09]Write to MH i2c: 01 00 00 80 11 91 [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 07 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 07 00 80 11 00 00 00 00 00 B9 0C 5D [10:54:09]RasterBufferAndPrint [10:54:09]line [10:54:09]line [10:54:09]line [10:54:09]line [10:54:09]line [10:54:09]written 0, free lines is 3262 [10:54:09]MH_Cut [10:54:09]Write to MH i2c: D1 01 00 87 11 01 6A [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: D1 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: D1 01 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: D1 01 00 87 11 00 69 [10:54:09]Write to MH i2c: 01 00 00 88 11 99 [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]OFD Sender: No OFD packet to send [10:54:10]*** Cut start [10:54:10]*** Purtial cut [10:54:10]*** Stage 1: CUTSNS_PIN = 1 [10:54:10]Read from MH i2c: 01 [10:54:10]MH_I2C_Read... [10:54:10]*** Stop cut motor [10:54:10]*** Cut end [10:54:10]Read from MH i2c: 01 07 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: 01 07 00 88 11 00 00 00 00 00 FF 0F AE [10:54:10]process_action close_receipt done [10:54:10]requested_data is exist [10:54:10]produce_requested_data [10:54:10]requested_item fm.sn is exist - process it [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 11 00 00 [10:54:10]Write to MH i2c: E2 08 00 89 11 80 11 00 00 00 00 00 00 14 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:10]Read from MH i2c: E2 17 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 17 00 89 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6B [10:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:54:10]wFMCommunicate OK [10:54:10]requested_item fd.num is exist - process it [10:54:10]SAM_PROTO_GetFieldsCounters [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 13 00 00 [10:54:10]Write to MH i2c: E2 08 00 8A 11 80 13 00 00 00 00 00 00 17 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 62 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 62 00 8A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [10:54: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_GetFieldsCounters done [10:54:10]requested_item shift.num is exist - process it [10:54:10]requested_item shift.opened is exist - process it [10:54:10]req_shift_opened [10:54:10]FM_GetShiftState [10:54:10]SAM_PROTO_GetShiftState [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 13 01 00 [10:54:10]Write to MH i2c: E2 08 00 8B 11 80 13 01 00 00 00 00 00 19 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 0E 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 0E 00 8B 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F1 [10:54:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_GetShiftState done [10:54:10]FM_GetShiftState done [10:54:10]req_shift_opened done [10:54:10]requested_item shift.open_date is exist - process it [10:54:10]req_shift_open_date [10:54:10]req_shift_open_date done [10:54:10]produce_requested_data done [10:54:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118026,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:54:10]process_action_free close_receipt [10:54:10]json_value_free [10:54:10]json_value_free done [10:54:10]process_json_proto returns [10:54:10]Send response to host [10:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118026,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:54:10]free response buf [10:54:10]execute_script done [10:54:10]execute_script returns [10:54:10]free content buf [10:54:10]Sock 10.Close socket [10:54:10]Sock 10.Thread stoped [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:26]accept exits with 7 [10:55:26]New connection [10:55:26]New thread 3067415908 created [10:55:26]Thread 3067559268 joined [10:55:26]Waiting for new connection... [10:55:26] Sock 7.Parse request [10:55:26]Sock 7.Check first char [10:55:26]Sock 7.First char is OK [10:55:26]request: POST /json_proto HTTP/1.0 [10:55:26]Method: POST [10:55:26]URL: /json_proto [10:55:26]Method is POST - this is cgi request [10:55:26]url: /json_proto [10:55:26]query_string will be loaded in cgi processing [10:55:26]execute_cgi json_proto POST (null) [10:55:26]execute_cgi path=json_proto method=POST [10:55:26]POST find Content-Length [10:55:26]Host: 172.17.96.67:8080 [10:55:26]Content-Length: 677 [10:55:26]Content-Type: application/json [10:55:26] [10:55:26]POST finish read [10:55:26]Found Content-Length = 677 [10:55:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:55:26]execute_script... [10:55: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)245820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:55:26]POST & json_proto [10:55:26]process_json_proto [10:55:26]json parsed OK: [10:55:26]protocol is kg_v1.0 [10:55:26]action value=close_receipt [10:55:26]process_action close_receipt [10:55:26]cmd_close_receipt [10:55:26]MH_GetDate [10:55:26]Write to MH i2c: F0 00 00 8C 11 8C [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: F0 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: F0 09 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: F0 09 00 8C 11 00 9E 10 22 67 47 6C 1F 67 05 [10:55:26]GetLastDocTimeStamp 1730285647 [10:55:26]current date 1730285726 [10:55:26]FM_GetShiftState [10:55:26]SAM_PROTO_GetShiftState [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 13 01 00 [10:55:26]Write to MH i2c: E2 08 00 8D 11 80 13 01 00 00 00 00 00 1B [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 0E 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 0E 00 8D 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F3 [10:55:26]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:55:26]wFMCommunicate OK [10:55:26]SAM_PROTO_GetShiftState done [10:55:26]FM_GetShiftState done [10:55:26]opened in 1730246605 [10:55:26]opened+sec_in_day 1730333005 [10:55:26]quantity*price = 50041 [10:55:26]sum+1 = 50042 [10:55:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 87 30.10.2024 10:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118027 ФПД: 251406058546687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105526&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118027&fm=251406058546687&tin=02508201610067®Number=0000000000091782&sum=50000 [10:55:27]StoreToDocumentArchive [10:55:27]shift 545 fd 118027 [10:55:27]save to /storage/0545/doc_00118027 [10:55:27]save last doc name /storage/0545/doc_00118027 to /storage/kkm_last_doc_name [10:55:27]save OK [10:55:27]Clear old archive folders... [10:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:27]tlvbuf is B6F3C090 [10:55:27]SAM_PROTO_ClearQueue [10:55:27]wFMCommunicate request_size=4 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 09 00 00 [10:55:27]Write to MH i2c: E2 08 00 9A 11 80 09 00 00 00 00 00 00 1D [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [10:55:27]RAPDU: 90 00 [10:55:27]wFMCommunicate OK [10:55:27]SAM_PROTO_ClearQueue done [10:55:27]KKMCreateOFDPacket [10:55:27]OFDProtocolAddRootSTLVToBuf [10:55:27]FM_MakeSignedData [10:55:27]FM_MakeSignedData [10:55:27]SAM_PROTO_SignData [10:55:27]wFMCommunicate request_size=4 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 0D 01 02 [10:55:27]Write to MH i2c: E2 08 00 9B 11 80 0D 01 02 00 00 00 00 25 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [10:55:27]RAPDU: 90 00 [10:55:27]wFMCommunicate OK [10:55:27]wFMCommunicate request_size=255 [10:55:27]MH_SAM_APDU [10:55: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 32 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 57 00 00 00 F4 03 04 00 9E 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0B CD 01 00 35 04 06 00 E4 [10:55:27]Write to MH i2c: E2 02 01 9C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 57 00 00 00 F4 03 04 00 9E 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0B CD 01 00 35 04 06 00 E4 00 00 25 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [10:55:27]RAPDU: 90 00 [10:55:27]wFMCommunicate OK [10:55:27]wFMCommunicate request_size=10 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 0D 02 02 05 A7 08 D0 65 FF [10:55:27]Write to MH i2c: E2 0D 00 9D 11 80 0D 02 02 05 00 A7 08 D0 65 FF 00 00 15 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [10:55:27]RAPDU: 90 00 [10:55:27]wFMCommunicate OK [10:55:27]wFMCommunicate request_size=4 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 0D 03 02 [10:55:27]Write to MH i2c: E2 08 00 9E 11 80 0D 03 02 00 00 00 00 2A [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 0B 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 0B 00 9E 11 00 48 AF A3 88 A0 CE 59 96 90 00 AA [10:55:27]RAPDU: 48 AF A3 88 A0 CE 59 96 90 00 [10:55:27]wFMCommunicate OK [10:55:27]SAM_PROTO_SignData done [10:55:27]FM_MakeSignedData done [10:55:27]CreateOFDProtocolMessage [10:55:27]wFMCommunicate request_size=4 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 11 00 00 [10:55:27]Write to MH i2c: E2 08 00 9F 11 80 11 00 00 00 00 00 00 2A [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:28]Read from MH i2c: E2 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 17 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 17 00 9F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 81 [10:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:55:28]wFMCommunicate OK [10:55:28]CreateOFDProtocolMessage done [10:55:28]OFDSenderStorePacket 118027 [10:55:28]StoreOFDPacket docnum=118027 [10:55:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 94 B1 07 01 C3 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 32 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 57 00 00 00 F4 03 04 00 9E 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0B CD 01 00 35 04 06 00 E4 A7 08 D0 65 FF 48 AF A3 88 A0 CE 59 96 [10:55:28]CheckFolder [10:55:28]dirname=/storage/ofd_packets [10:55:28]CheckFolder done [10:55:28]ProducePacketName [10:55:28]name=ofd_packets/00118027 [10:55:28]NVStorageSaveData ofd_packets/00118027 [10:55:28]File name is /storage/ofd_packets/00118027 [10:55:28]Write 301 bytes [10:55:28]NVStorageSaveData done [10:55:28]OFDSenderStorePacket done [10:55:28]KKMCreateOFDPacket done [10:55:28]NVStorageSaveData kkm_last_timestamp [10:55:28]File name is /storage/kkm_last_timestamp [10:55:28]Write 4 bytes [10:55:28]NVStorageSaveData done [10:55:28]ExternCall_PrintAddStr [10:55:28]wPrintStart [10:55:28]Write to MH i2c: 01 00 00 A0 11 B1 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 A0 11 00 00 00 00 00 FF 0F C6 [10:55:28]RasterBufferAndPrint [10:55:28]line Счет N : (1)245820 [10:55:28]line ИНН: 02508201610067 [10:55:28]line Контрольно-Кассовый Чек [10:55:28]line ПРОДАЖА [10:55:28]line ТРК (МРК, ГНК) : 21 [10:55:28]line Товар: 2710124130 [10:55:28]line Аи-92-К-2 [10:55:28]line 7.480 * 66.90 [10:55:28]line = 500.41 [10:55:28]line НДС 12% НСП 1% [10:55:28]line > о реализуемом товаре [10:55:28]line ОКРУГЛЕНИЕ: -0.41 [10:55:28]line ИТОГО: 500.00 [10:55:28]line Внесено: 500.00 [10:55:28]line СДАЧА: 0.00 [10:55:28]line НСП 1% : 4.43 [10:55:28]line НДС 12% : 53.14 [10:55:28]line Наличными: 500.00 [10:55:28]line Безнал.: 0.00 [10:55:28]line Место: АЗС № 173 "Партнер Нефть" [10:55:28]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:55:28]line СНО: Общий режим [10:55:28]line Чек 87 30.10.2024 10:55 [10:55:28]line Смена: 545 ФФД: 1.0 [10:55:28]line ЗНМ: 0300000115 [10:55:28]line РНМ: 0000000000091782 [10:55:28]line Версия ККМ: 001 [10:55:28]line ФМ: 0000000000871767 [10:55:28]line ФД: 118027 [10:55:28]line ФПД: 251406058546687 [10:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105526&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118027&fm=251406058546687&tin=02508201610067®Number=0000000000091782&sum=50000 [10:55:28]written 0, free lines is 4095 [10:55:28]OFD Sender: Processing packet 118027 [packets to send 77, broken 76] [10:55:28]ProducePacketName [10:55:28]name=ofd_packets/00118027 [10:55:28]OFD Sender: To server: pG, [10:55:28]CommunicateWithHost lk.salyk.kg:30040 [10:55:28]ConnectInit lk.salyk.kg [10:55:28]Connected sock=11 [10:55: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 36 37 0F 01 00 00 94 B1 07 01 C3 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 32 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 57 00 00 00 F4 03 04 00 9E 10 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0B CD 01 00 35 04 06 00 E4 A7 08 D0 65 FF 48 AF A3 88 A0 CE 59 96 [10:55: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 36 37 4F 00 00 00 94 77 47 00 F0 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 36 37 10 04 04 00 0B CD 01 00 F4 03 04 00 56 BC 21 67 B6 04 01 00 00 52 B1 20 A4 4A 7A AA 92 [10:55:28]CommunicateWithHost err = 0 [10:55:28]CheckOFDResponse [10:55:28]1017 (14) - 77093643461234 [10:55:28]1041 (16) - 0000000000871767 [10:55:28]1040 (4) - 118027 [10:55:28]1012 (4) - 30.10.2024 04:55 [10:55:28]1206 (1) - 0 [10:55:28]OFD Sender: Remove packet 118027 [10:55:28]ProducePacketName [10:55:28]name=ofd_packets/00118027 [10:55:28]NVStorageDeleteData [10:55:28]Write to MH i2c: 01 00 00 CA 11 DB [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 CA 11 00 00 00 00 00 AD 0C 9B [10:55:28]RasterBufferAndPrint [10:55:28]line [10:55:28]line [10:55:28]line [10:55:28]line [10:55:28]line [10:55:28]written 0, free lines is 3249 [10:55:28]MH_Cut [10:55:28]Write to MH i2c: D1 01 00 D1 11 01 B4 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: D1 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: D1 01 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: D1 01 00 D1 11 00 B3 [10:55:28]Write to MH i2c: 01 00 00 D2 11 E3 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:29]OFD Sender: No OFD packet to send [10:55:29]*** Cut start [10:55:29]*** Purtial cut [10:55:29]*** Stage 1: CUTSNS_PIN = 1 [10:55:29]Read from MH i2c: 01 [10:55:29]MH_I2C_Read... [10:55:29]*** Stop cut motor [10:55:29]*** Cut end [10:55:29]Read from MH i2c: 01 07 00 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 FF 0F F8 [10:55:29]process_action close_receipt done [10:55:29]requested_data is exist [10:55:29]produce_requested_data [10:55:29]requested_item fm.sn is exist - process it [10:55:29]wFMCommunicate request_size=4 [10:55:29]MH_SAM_APDU [10:55:29]CAPDU: 80 11 00 00 [10:55:29]Write to MH i2c: E2 08 00 D3 11 80 11 00 00 00 00 00 00 5E [10:55:29]Write i2c OK [10:55:29]MH_I2C_Read... [10:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:30]Read from MH i2c: E2 [10:55:30]MH_I2C_Read... [10:55:30]Read from MH i2c: E2 17 00 [10:55:30]MH_I2C_Read... [10:55:30]Read from MH i2c: E2 17 00 D3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B5 [10:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:55:30]wFMCommunicate OK [10:55:30]requested_item fd.num is exist - process it [10:55:30]SAM_PROTO_GetFieldsCounters [10:55:30]wFMCommunicate request_size=4 [10:55:30]MH_SAM_APDU [10:55:30]CAPDU: 80 13 00 00 [10:55:30]Write to MH i2c: E2 08 00 D4 11 80 13 00 00 00 00 00 00 61 [10:55:30]Write i2c OK [10:55:30]MH_I2C_Read... [10:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:30]Read from MH i2c: E2 [10:55:30]MH_I2C_Read... [10:55:30]Read from MH i2c: E2 62 00 [10:55:30]MH_I2C_Read... [10:55:30]Read from MH i2c: E2 62 00 D4 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [10:55: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:30]wFMCommunicate OK [10:55:30]SAM_PROTO_GetFieldsCounters done [10:55:30]requested_item shift.num is exist - process it [10:55:30]requested_item shift.opened is exist - process it [10:55:30]req_shift_opened [10:55:30]FM_GetShiftState [10:55:30]SAM_PROTO_GetShiftState [10:55:30]wFMCommunicate request_size=4 [10:55:30]MH_SAM_APDU [10:55:30]CAPDU: 80 13 01 00 [10:55:30]Write to MH i2c: E2 08 00 D5 11 80 13 01 00 00 00 00 00 63 [10:55:30]Write i2c OK [10:55:30]MH_I2C_Read... [10:55:30]Read from MH i2c: E2 [10:55:30]MH_I2C_Read... [10:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:30]Read from MH i2c: E2 0E 00 [10:55:30]MH_I2C_Read... [10:55:30]Read from MH i2c: E2 0E 00 D5 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3B [10:55:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:55:30]wFMCommunicate OK [10:55:30]SAM_PROTO_GetShiftState done [10:55:30]FM_GetShiftState done [10:55:30]req_shift_opened done [10:55:30]requested_item shift.open_date is exist - process it [10:55:30]req_shift_open_date [10:55:30]req_shift_open_date done [10:55:30]produce_requested_data done [10:55:30]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118027,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:55:30]process_action_free close_receipt [10:55:30]json_value_free [10:55:30]json_value_free done [10:55:30]process_json_proto returns [10:55:30]Send response to host [10:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118027,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:55:30]free response buf [10:55:30]execute_script done [10:55:30]execute_script returns [10:55:30]free content buf [10:55:30]Sock 7.Close socket [10:55:30]Sock 7.Thread stoped [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:19]accept exits with 9 [10:57:19]New connection [10:57:19]New thread 3067559268 created [10:57:19]Thread 3067415908 joined [10:57:19]Waiting for new connection... [10:57:19] Sock 9.Parse request [10:57:19]Sock 9.Check first char [10:57:19]Sock 9.First char is OK [10:57:19]request: POST /json_proto HTTP/1.0 [10:57:19]Method: POST [10:57:19]URL: /json_proto [10:57:19]Method is POST - this is cgi request [10:57:19]url: /json_proto [10:57:19]query_string will be loaded in cgi processing [10:57:19]execute_cgi json_proto POST (null) [10:57:19]execute_cgi path=json_proto method=POST [10:57:19]POST find Content-Length [10:57:19]Host: 172.17.96.67:8080 [10:57:19]Content-Length: 677 [10:57:19]Content-Type: application/json [10:57:19] [10:57:19]POST finish read [10:57:19]Found Content-Length = 677 [10:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:57:19]execute_script... [10:57: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)245821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:57:19]POST & json_proto [10:57:19]process_json_proto [10:57:19]json parsed OK: [10:57:19]protocol is kg_v1.0 [10:57:19]action value=close_receipt [10:57:19]process_action close_receipt [10:57:19]cmd_close_receipt [10:57:19]MH_GetDate [10:57:19]Write to MH i2c: F0 00 00 D6 11 D6 [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: F0 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: F0 09 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: F0 09 00 D6 11 00 10 11 22 67 47 6C 1F 67 C2 [10:57:19]GetLastDocTimeStamp 1730285726 [10:57:19]current date 1730285840 [10:57:19]FM_GetShiftState [10:57:19]SAM_PROTO_GetShiftState [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 01 00 [10:57:19]Write to MH i2c: E2 08 00 D7 11 80 13 01 00 00 00 00 00 65 [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 D7 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3D [10:57:19]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetShiftState done [10:57:19]FM_GetShiftState done [10:57:19]opened in 1730246605 [10:57:19]opened+sec_in_day 1730333005 [10:57:19]quantity*price = 50041 [10:57:19]sum+1 = 50042 [10:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 88 30.10.2024 10:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118028 ФПД: 272675426132154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105720&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118028&fm=272675426132154&tin=02508201610067®Number=0000000000091782&sum=50000 [10:57:21]StoreToDocumentArchive [10:57:21]shift 545 fd 118028 [10:57:21]save to /storage/0545/doc_00118028 [10:57:21]save last doc name /storage/0545/doc_00118028 to /storage/kkm_last_doc_name [10:57:21]save OK [10:57:21]Clear old archive folders... [10:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:21]tlvbuf is B6F3C650 [10:57:21]SAM_PROTO_ClearQueue [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 09 00 00 [10:57:21]Write to MH i2c: E2 08 00 E4 11 80 09 00 00 00 00 00 00 67 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]SAM_PROTO_ClearQueue done [10:57:21]KKMCreateOFDPacket [10:57:21]OFDProtocolAddRootSTLVToBuf [10:57:21]FM_MakeSignedData [10:57:21]FM_MakeSignedData [10:57:21]SAM_PROTO_SignData [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 01 02 [10:57:21]Write to MH i2c: E2 08 00 E5 11 80 0D 01 02 00 00 00 00 6F [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=255 [10:57:21]MH_SAM_APDU [10:57: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 32 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 58 00 00 00 F4 03 04 00 10 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0C CD 01 00 35 04 06 00 F7 [10:57:21]Write to MH i2c: E2 02 01 E6 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 10 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0C CD 01 00 35 04 06 00 F7 00 00 F7 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 E6 11 00 90 00 6B [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=10 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 02 02 05 FF 31 E9 E0 BA [10:57:21]Write to MH i2c: E2 0D 00 E7 11 80 0D 02 02 05 00 FF 31 E9 E0 BA 00 00 2F [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 03 02 [10:57:21]Write to MH i2c: E2 08 00 E8 11 80 0D 03 02 00 00 00 00 74 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 0B 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 0B 00 E8 11 00 58 BE CD B9 D0 6C 6A 34 90 00 EB [10:57:21]RAPDU: 58 BE CD B9 D0 6C 6A 34 90 00 [10:57:21]wFMCommunicate OK [10:57:21]SAM_PROTO_SignData done [10:57:21]FM_MakeSignedData done [10:57:21]CreateOFDProtocolMessage [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 11 00 00 [10:57:21]Write to MH i2c: E2 08 00 E9 11 80 11 00 00 00 00 00 00 74 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 17 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 17 00 E9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CB [10:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:57:21]wFMCommunicate OK [10:57:21]CreateOFDProtocolMessage done [10:57:21]OFDSenderStorePacket 118028 [10:57:21]StoreOFDPacket docnum=118028 [10:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 00 38 07 01 60 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 10 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0C CD 01 00 35 04 06 00 F7 FF 31 E9 E0 BA 58 BE CD B9 D0 6C 6A 34 [10:57:21]CheckFolder [10:57:21]dirname=/storage/ofd_packets [10:57:21]CheckFolder done [10:57:21]ProducePacketName [10:57:21]name=ofd_packets/00118028 [10:57:21]NVStorageSaveData ofd_packets/00118028 [10:57:21]File name is /storage/ofd_packets/00118028 [10:57:21]Write 301 bytes [10:57:21]NVStorageSaveData done [10:57:21]OFDSenderStorePacket done [10:57:21]KKMCreateOFDPacket done [10:57:21]NVStorageSaveData kkm_last_timestamp [10:57:21]File name is /storage/kkm_last_timestamp [10:57:21]Write 4 bytes [10:57:21]NVStorageSaveData done [10:57:21]ExternCall_PrintAddStr [10:57:21]wPrintStart [10:57:21]Write to MH i2c: 01 00 00 EA 11 FB [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 07 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 07 00 EA 11 00 00 00 00 00 FF 0F 10 [10:57:21]RasterBufferAndPrint [10:57:21]line Счет N : (1)245821 [10:57:21]line ИНН: 02508201610067 [10:57:21]line Контрольно-Кассовый Чек [10:57:21]line ПРОДАЖА [10:57:21]line ТРК (МРК, ГНК) : 21 [10:57:21]line Товар: 2710124130 [10:57:21]line Аи-92-К-2 [10:57:21]line 7.480 * 66.90 [10:57:21]line = 500.41 [10:57:21]line НДС 12% НСП 1% [10:57:21]line > о реализуемом товаре [10:57:21]line ОКРУГЛЕНИЕ: -0.41 [10:57:21]line ИТОГО: 500.00 [10:57:21]line Внесено: 500.00 [10:57:21]line СДАЧА: 0.00 [10:57:21]line НСП 1% : 4.43 [10:57:21]line НДС 12% : 53.14 [10:57:21]line Наличными: 500.00 [10:57:21]line Безнал.: 0.00 [10:57:21]line Место: АЗС № 173 "Партнер Нефть" [10:57:21]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [10:57:21]line СНО: Общий режим [10:57:21]line Чек 88 30.10.2024 10:57 [10:57:21]line Смена: 545 ФФД: 1.0 [10:57:21]line ЗНМ: 0300000115 [10:57:21]line РНМ: 0000000000091782 [10:57:21]line Версия ККМ: 001 [10:57:21]line ФМ: 0000000000871767 [10:57:21]line ФД: 118028 [10:57:21]line ФПД: 272675426132154 [10:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105720&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118028&fm=272675426132154&tin=02508201610067®Number=0000000000091782&sum=50000 [10:57:21]written 0, free lines is 4095 [10:57:21]OFD Sender: Processing packet 118028 [packets to send 77, broken 76] [10:57:21]ProducePacketName [10:57:21]name=ofd_packets/00118028 [10:57:21]OFD Sender: To server: pG, [10:57:21]CommunicateWithHost lk.salyk.kg:30040 [10:57:21]ConnectInit lk.salyk.kg [10:57:22]Connected sock=10 [10:57: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 36 37 0F 01 00 00 00 38 07 01 60 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 10 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0C CD 01 00 35 04 06 00 F7 FF 31 E9 E0 BA 58 BE CD B9 D0 6C 6A 34 [10:57: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 36 37 4F 00 00 00 8A 65 47 00 B7 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 36 37 10 04 04 00 0C CD 01 00 F4 03 04 00 C8 BC 21 67 B6 04 01 00 00 57 D4 05 9C 14 9C 4F F5 [10:57:22]CommunicateWithHost err = 0 [10:57:22]CheckOFDResponse [10:57:22]1017 (14) - 77093643461234 [10:57:22]1041 (16) - 0000000000871767 [10:57:22]1040 (4) - 118028 [10:57:22]1012 (4) - 30.10.2024 04:57 [10:57:22]1206 (1) - 0 [10:57:22]OFD Sender: Remove packet 118028 [10:57:22]ProducePacketName [10:57:22]name=ofd_packets/00118028 [10:57:22]NVStorageDeleteData [10:57:22]Write to MH i2c: 01 00 00 14 12 26 [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 07 00 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 07 00 14 12 00 00 00 00 00 B1 0C EA [10:57:22]RasterBufferAndPrint [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]written 0, free lines is 3255 [10:57:22]MH_Cut [10:57:22]Write to MH i2c: D1 01 00 1B 12 01 FF [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 01 00 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 01 00 1B 12 00 FE [10:57:22]Write to MH i2c: 01 00 00 1C 12 2E [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]OFD Sender: No OFD packet to send [10:57:23]*** Cut start [10:57:23]*** Purtial cut [10:57:23]*** Stage 1: CUTSNS_PIN = 1 [10:57:23]Read from MH i2c: 01 [10:57:23]MH_I2C_Read... [10:57:23]*** Stop cut motor [10:57:23]*** Cut end [10:57:23]Read from MH i2c: 01 07 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 FF 0F 43 [10:57:23]process_action close_receipt done [10:57:23]requested_data is exist [10:57:23]produce_requested_data [10:57:23]requested_item fm.sn is exist - process it [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 11 00 00 [10:57:23]Write to MH i2c: E2 08 00 1D 12 80 11 00 00 00 00 00 00 A9 [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:23]Read from MH i2c: E2 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 17 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 17 00 1D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 00 [10:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [10:57:23]wFMCommunicate OK [10:57:23]requested_item fd.num is exist - process it [10:57:23]SAM_PROTO_GetFieldsCounters [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 13 00 00 [10:57:23]Write to MH i2c: E2 08 00 1E 12 80 13 00 00 00 00 00 00 AC [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:23]Read from MH i2c: E2 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 62 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 62 00 1E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [10:57: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:23]wFMCommunicate OK [10:57:23]SAM_PROTO_GetFieldsCounters done [10:57:23]requested_item shift.num is exist - process it [10:57:23]requested_item shift.opened is exist - process it [10:57:23]req_shift_opened [10:57:23]FM_GetShiftState [10:57:23]SAM_PROTO_GetShiftState [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 13 01 00 [10:57:23]Write to MH i2c: E2 08 00 1F 12 80 13 01 00 00 00 00 00 AE [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:23]Read from MH i2c: E2 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 1F 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 86 [10:57:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [10:57:23]wFMCommunicate OK [10:57:23]SAM_PROTO_GetShiftState done [10:57:23]FM_GetShiftState done [10:57:23]req_shift_opened done [10:57:23]requested_item shift.open_date is exist - process it [10:57:23]req_shift_open_date [10:57:23]req_shift_open_date done [10:57:23]produce_requested_data done [10:57:23]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118028,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [10:57:23]process_action_free close_receipt [10:57:23]json_value_free [10:57:23]json_value_free done [10:57:23]process_json_proto returns [10:57:23]Send response to host [10:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118028,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [10:57:23]free response buf [10:57:23]execute_script done [10:57:23]execute_script returns [10:57:23]free content buf [10:57:23]Sock 9.Close socket [10:57:23]Sock 9.Thread stoped [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]accept exits with 7 [11:00:32]New connection [11:00:32]New thread 3067415908 created [11:00:32]Thread 3067559268 joined [11:00:32]Waiting for new connection... [11:00:32] Sock 7.Parse request [11:00:32]Sock 7.Check first char [11:00:32]Sock 7.First char is OK [11:00:32]request: POST /json_proto HTTP/1.0 [11:00:32]Method: POST [11:00:32]URL: /json_proto [11:00:32]Method is POST - this is cgi request [11:00:32]url: /json_proto [11:00:32]query_string will be loaded in cgi processing [11:00:32]execute_cgi json_proto POST (null) [11:00:32]execute_cgi path=json_proto method=POST [11:00:32]POST find Content-Length [11:00:32]Host: 172.17.96.67:8080 [11:00:32]Content-Length: 769 [11:00:32]Content-Type: application/json [11:00:32] [11:00:32]POST finish read [11:00:32]Found Content-Length = 769 [11:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:32]execute_script... [11:00: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)245822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:32]POST & json_proto [11:00:32]process_json_proto [11:00:32]json parsed OK: [11:00:32]protocol is kg_v1.0 [11:00:32]action value=close_receipt [11:00:32]process_action close_receipt [11:00:32]cmd_close_receipt [11:00:32]MH_GetDate [11:00:32]Write to MH i2c: F0 00 00 20 12 21 [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: F0 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: F0 09 00 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: F0 09 00 20 12 00 D1 11 22 67 47 6C 1F 67 CE [11:00:32]GetLastDocTimeStamp 1730285840 [11:00:32]current date 1730286033 [11:00:32]FM_GetShiftState [11:00:32]SAM_PROTO_GetShiftState [11:00:32]wFMCommunicate request_size=4 [11:00:32]MH_SAM_APDU [11:00:32]CAPDU: 80 13 01 00 [11:00:32]Write to MH i2c: E2 08 00 21 12 80 13 01 00 00 00 00 00 B0 [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:32]Read from MH i2c: E2 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: E2 0E 00 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: E2 0E 00 21 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 88 [11:00:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:00:32]wFMCommunicate OK [11:00:32]SAM_PROTO_GetShiftState done [11:00:32]FM_GetShiftState done [11:00:32]opened in 1730246605 [11:00:32]opened+sec_in_day 1730333005 [11:00:32]quantity*price = 100015 [11:00:32]sum+1 = 100017 [11:00:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 89 30.10.2024 11:00 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118029 ФПД: 93528782622844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110033&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118029&fm=93528782622844&tin=02508201610067®Number=0000000000091782&sum=100016 [11:00:33]StoreToDocumentArchive [11:00:33]shift 545 fd 118029 [11:00:33]save to /storage/0545/doc_00118029 [11:00:33]save last doc name /storage/0545/doc_00118029 to /storage/kkm_last_doc_name [11:00:33]save OK [11:00:33]Clear old archive folders... [11:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:33]tlvbuf is 00626B70 [11:00:33]SAM_PROTO_ClearQueue [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 09 00 00 [11:00:33]Write to MH i2c: E2 08 00 2E 12 80 09 00 00 00 00 00 00 B2 [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [11:00:33]RAPDU: 90 00 [11:00:33]wFMCommunicate OK [11:00:33]SAM_PROTO_ClearQueue done [11:00:33]KKMCreateOFDPacket [11:00:33]OFDProtocolAddRootSTLVToBuf [11:00:33]FM_MakeSignedData [11:00:33]FM_MakeSignedData [11:00:33]SAM_PROTO_SignData [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 0D 01 02 [11:00:33]Write to MH i2c: E2 08 00 2F 12 80 0D 01 02 00 00 00 00 BA [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 2F 12 00 90 00 B5 [11:00:33]RAPDU: 90 00 [11:00:33]wFMCommunicate OK [11:00:33]wFMCommunicate request_size=255 [11:00:33]MH_SAM_APDU [11:00: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 32 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 59 00 00 00 F4 03 04 00 D1 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CD 01 00 35 04 06 00 55 [11:00:33]Write to MH i2c: E2 02 01 30 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 D1 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CD 01 00 35 04 06 00 55 00 00 7D [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [11:00:34]RAPDU: 90 00 [11:00:34]wFMCommunicate OK [11:00:34]wFMCommunicate request_size=10 [11:00:34]MH_SAM_APDU [11:00:34]CAPDU: 80 0D 02 02 05 10 5D DD 50 7C [11:00:34]Write to MH i2c: E2 0D 00 31 12 80 0D 02 02 05 00 10 5D DD 50 7C 00 00 DD [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 31 12 00 90 00 B7 [11:00:34]RAPDU: 90 00 [11:00:34]wFMCommunicate OK [11:00:34]wFMCommunicate request_size=4 [11:00:34]MH_SAM_APDU [11:00:34]CAPDU: 80 0D 03 02 [11:00:34]Write to MH i2c: E2 08 00 32 12 80 0D 03 02 00 00 00 00 BF [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 0B 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 0B 00 32 12 00 34 D2 5D 30 70 49 3A 29 90 00 6F [11:00:34]RAPDU: 34 D2 5D 30 70 49 3A 29 90 00 [11:00:34]wFMCommunicate OK [11:00:34]SAM_PROTO_SignData done [11:00:34]FM_MakeSignedData done [11:00:34]CreateOFDProtocolMessage [11:00:34]wFMCommunicate request_size=4 [11:00:34]MH_SAM_APDU [11:00:34]CAPDU: 80 11 00 00 [11:00:34]Write to MH i2c: E2 08 00 33 12 80 11 00 00 00 00 00 00 BF [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 17 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 17 00 33 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 16 [11:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:00:34]wFMCommunicate OK [11:00:34]CreateOFDProtocolMessage done [11:00:34]OFDSenderStorePacket 118029 [11:00:34]StoreOFDPacket docnum=118029 [11:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 49 CA 07 01 1E 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 59 00 00 00 F4 03 04 00 D1 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CD 01 00 35 04 06 00 55 10 5D DD 50 7C 34 D2 5D 30 70 49 3A 29 [11:00:34]CheckFolder [11:00:34]dirname=/storage/ofd_packets [11:00:34]CheckFolder done [11:00:34]ProducePacketName [11:00:34]name=ofd_packets/00118029 [11:00:34]NVStorageSaveData ofd_packets/00118029 [11:00:34]File name is /storage/ofd_packets/00118029 [11:00:34]Write 301 bytes [11:00:34]NVStorageSaveData done [11:00:34]OFDSenderStorePacket done [11:00:34]KKMCreateOFDPacket done [11:00:34]NVStorageSaveData kkm_last_timestamp [11:00:34]File name is /storage/kkm_last_timestamp [11:00:34]Write 4 bytes [11:00:34]NVStorageSaveData done [11:00:34]ExternCall_PrintAddStr [11:00:34]wPrintStart [11:00:34]Write to MH i2c: 01 00 00 34 12 46 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 07 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 07 00 34 12 00 00 00 00 00 FF 0F 5B [11:00:34]RasterBufferAndPrint [11:00:34]line Счет N : (1)245822 [11:00:34]line ИНН: 02508201610067 [11:00:34]line Контрольно-Кассовый Чек [11:00:34]line ПРОДАЖА [11:00:34]line ТРК (МРК, ГНК) : 11 [11:00:34]line Товар: 2710124130 [11:00:34]line Аи-92-К-2 [11:00:34]line 14.950 * 66.90 [11:00:34]line = 1000.16 [11:00:34]line НДС 12% НСП 1% [11:00:34]line > о реализуемом товаре [11:00:34]line ИТОГО: 1000.16 [11:00:34]line НСП 1% : 8.85 [11:00:34]line НДС 12% : 106.21 [11:00:34]line Наличными: 0.00 [11:00:34]line Безнал.: 1000.16 [11:00:34]line Место: АЗС № 173 "Партнер Нефть" [11:00:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:00:34]line СНО: Общий режим [11:00:34]line Чек 89 30.10.2024 11:00 [11:00:34]line Смена: 545 ФФД: 1.0 [11:00:34]line ЗНМ: 0300000115 [11:00:34]line РНМ: 0000000000091782 [11:00:34]line Версия ККМ: 001 [11:00:34]line Платежная система: Mbank [11:00:34]line ФМ: 0000000000871767 [11:00:34]line ФД: 118029 [11:00:34]line ФПД: 93528782622844 [11:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110033&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118029&fm=93528782622844&tin=02508201610067®Number=0000000000091782&sum=100016 [11:00:34]written 0, free lines is 4095 [11:00:34]OFD Sender: Processing packet 118029 [packets to send 77, broken 76] [11:00:34]ProducePacketName [11:00:34]name=ofd_packets/00118029 [11:00:34]OFD Sender: To server: pG, [11:00:34]CommunicateWithHost lk.salyk.kg:30040 [11:00:34]ConnectInit lk.salyk.kg [11:00:34]Write to MH i2c: 01 00 00 5C 12 6E [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 07 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 07 00 5C 12 00 00 00 00 00 D8 0C 59 [11:00:34]RasterBufferAndPrint [11:00:34]line [11:00:34]line [11:00:34]line [11:00:34]line [11:00:34]line [11:00:34]written 0, free lines is 3293 [11:00:34]Connected sock=10 [11:00: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 36 37 0F 01 00 00 49 CA 07 01 1E 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 59 00 00 00 F4 03 04 00 D1 11 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CD 01 00 35 04 06 00 55 10 5D DD 50 7C 34 D2 5D 30 70 49 3A 29 [11:00:34]MH_Cut [11:00:34]Write to MH i2c: D1 01 00 63 12 01 47 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: D1 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: D1 01 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: D1 01 00 63 12 00 46 [11:00:34]Write to MH i2c: 01 00 00 64 12 76 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00: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 36 37 4F 00 00 00 92 E8 47 00 70 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0D CD 01 00 F4 03 04 00 89 BD 21 67 B6 04 01 00 00 D0 AF 22 F8 52 CA 84 C6 [11:00:35]CommunicateWithHost err = 0 [11:00:35]CheckOFDResponse [11:00:35]1017 (14) - 77093643461234 [11:00:35]1041 (16) - 0000000000871767 [11:00:35]1040 (4) - 118029 [11:00:35]1012 (4) - 30.10.2024 05:00 [11:00:35]1206 (1) - 0 [11:00:35]OFD Sender: Remove packet 118029 [11:00:35]ProducePacketName [11:00:35]name=ofd_packets/00118029 [11:00:35]NVStorageDeleteData [11:00:35]OFD Sender: No OFD packet to send [11:00:35]*** Cut start [11:00:35]*** Purtial cut [11:00:35]*** Stage 1: CUTSNS_PIN = 1 [11:00:35]Read from MH i2c: 01 [11:00:35]MH_I2C_Read... [11:00:35]*** Stop cut motor [11:00:35]*** Cut end [11:00:35]Read from MH i2c: 01 07 00 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: 01 07 00 64 12 00 00 00 00 00 FF 0F 8B [11:00:35]process_action close_receipt done [11:00:35]requested_data is exist [11:00:35]produce_requested_data [11:00:35]requested_item fm.sn is exist - process it [11:00:35]wFMCommunicate request_size=4 [11:00:35]MH_SAM_APDU [11:00:35]CAPDU: 80 11 00 00 [11:00:35]Write to MH i2c: E2 08 00 65 12 80 11 00 00 00 00 00 00 F1 [11:00:35]Write i2c OK [11:00:35]MH_I2C_Read... [11:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:36]Read from MH i2c: E2 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 17 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 17 00 65 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 48 [11:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:00:36]wFMCommunicate OK [11:00:36]requested_item fd.num is exist - process it [11:00:36]SAM_PROTO_GetFieldsCounters [11:00:36]wFMCommunicate request_size=4 [11:00:36]MH_SAM_APDU [11:00:36]CAPDU: 80 13 00 00 [11:00:36]Write to MH i2c: E2 08 00 66 12 80 13 00 00 00 00 00 00 F4 [11:00:36]Write i2c OK [11:00:36]MH_I2C_Read... [11:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:36]Read from MH i2c: E2 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 62 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 62 00 66 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [11:00: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:36]wFMCommunicate OK [11:00:36]SAM_PROTO_GetFieldsCounters done [11:00:36]requested_item shift.num is exist - process it [11:00:36]requested_item shift.opened is exist - process it [11:00:36]req_shift_opened [11:00:36]FM_GetShiftState [11:00:36]SAM_PROTO_GetShiftState [11:00:36]wFMCommunicate request_size=4 [11:00:36]MH_SAM_APDU [11:00:36]CAPDU: 80 13 01 00 [11:00:36]Write to MH i2c: E2 08 00 67 12 80 13 01 00 00 00 00 00 F6 [11:00:36]Write i2c OK [11:00:36]MH_I2C_Read... [11:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:36]Read from MH i2c: E2 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 0E 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 0E 00 67 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CE [11:00:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:00:36]wFMCommunicate OK [11:00:36]SAM_PROTO_GetShiftState done [11:00:36]FM_GetShiftState done [11:00:36]req_shift_opened done [11:00:36]requested_item shift.open_date is exist - process it [11:00:36]req_shift_open_date [11:00:36]req_shift_open_date done [11:00:36]produce_requested_data done [11:00:36]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118029,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:00:36]process_action_free close_receipt [11:00:36]json_value_free [11:00:36]json_value_free done [11:00:36]process_json_proto returns [11:00:36]Send response to host [11:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118029,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:00:36]free response buf [11:00:36]execute_script done [11:00:36]execute_script returns [11:00:36]free content buf [11:00:36]Sock 7.Close socket [11:00:36]Sock 7.Thread stoped [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:46]accept exits with 9 [11:01:46]New connection [11:01:46]New thread 3067559268 created [11:01:46]Thread 3067415908 joined [11:01:46]Waiting for new connection... [11:01:46] Sock 9.Parse request [11:01:46]Sock 9.Check first char [11:01:46]Sock 9.First char is OK [11:01:46]request: POST /json_proto HTTP/1.0 [11:01:46]Method: POST [11:01:46]URL: /json_proto [11:01:46]Method is POST - this is cgi request [11:01:46]url: /json_proto [11:01:46]query_string will be loaded in cgi processing [11:01:46]execute_cgi json_proto POST (null) [11:01:46]execute_cgi path=json_proto method=POST [11:01:46]POST find Content-Length [11:01:46]Host: 172.17.96.67:8080 [11:01:46]Content-Length: 677 [11:01:46]Content-Type: application/json [11:01:46] [11:01:46]POST finish read [11:01:46]Found Content-Length = 677 [11:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:01:46]execute_script... [11:01: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)245823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:01:46]POST & json_proto [11:01:46]process_json_proto [11:01:46]json parsed OK: [11:01:46]protocol is kg_v1.0 [11:01:46]action value=close_receipt [11:01:46]process_action close_receipt [11:01:46]cmd_close_receipt [11:01:46]MH_GetDate [11:01:46]Write to MH i2c: F0 00 00 68 12 69 [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: F0 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: F0 09 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: F0 09 00 68 12 00 1B 12 22 67 47 6C 1F 67 61 [11:01:46]GetLastDocTimeStamp 1730286033 [11:01:46]current date 1730286107 [11:01:46]FM_GetShiftState [11:01:46]SAM_PROTO_GetShiftState [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 13 01 00 [11:01:46]Write to MH i2c: E2 08 00 69 12 80 13 01 00 00 00 00 00 F8 [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:46]Read from MH i2c: E2 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 0E 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 0E 00 69 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D0 [11:01:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:01:46]wFMCommunicate OK [11:01:46]SAM_PROTO_GetShiftState done [11:01:46]FM_GetShiftState done [11:01:46]opened in 1730246605 [11:01:46]opened+sec_in_day 1730333005 [11:01:46]quantity*price = 30038 [11:01:46]sum+1 = 30039 [11:01:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 90 30.10.2024 11:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118030 ФПД: 50870232034282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110147&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118030&fm=50870232034282&tin=02508201610067®Number=0000000000091782&sum=30000 [11:01:47]StoreToDocumentArchive [11:01:47]shift 545 fd 118030 [11:01:47]save to /storage/0545/doc_00118030 [11:01:47]save last doc name /storage/0545/doc_00118030 to /storage/kkm_last_doc_name [11:01:47]save OK [11:01:47]Clear old archive folders... [11:01:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:47]tlvbuf is 00697430 [11:01:47]SAM_PROTO_ClearQueue [11:01:47]wFMCommunicate request_size=4 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 09 00 00 [11:01:47]Write to MH i2c: E2 08 00 76 12 80 09 00 00 00 00 00 00 FA [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [11:01:47]RAPDU: 90 00 [11:01:47]wFMCommunicate OK [11:01:47]SAM_PROTO_ClearQueue done [11:01:47]KKMCreateOFDPacket [11:01:47]OFDProtocolAddRootSTLVToBuf [11:01:47]FM_MakeSignedData [11:01:47]FM_MakeSignedData [11:01:47]SAM_PROTO_SignData [11:01:47]wFMCommunicate request_size=4 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 0D 01 02 [11:01:47]Write to MH i2c: E2 08 00 77 12 80 0D 01 02 00 00 00 00 02 [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [11:01:47]RAPDU: 90 00 [11:01:47]wFMCommunicate OK [11:01:47]wFMCommunicate request_size=255 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 1B 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CD 01 00 35 04 06 00 2E [11:01:47]Write to MH i2c: E2 02 01 78 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 1B 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CD 01 00 35 04 06 00 2E 00 00 C5 [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:48]Read from MH i2c: E2 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 03 00 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [11:01:48]RAPDU: 90 00 [11:01:48]wFMCommunicate OK [11:01:48]wFMCommunicate request_size=10 [11:01:48]MH_SAM_APDU [11:01:48]CAPDU: 80 0D 02 02 05 44 26 1C 2B EA [11:01:48]Write to MH i2c: E2 0D 00 79 12 80 0D 02 02 05 00 44 26 1C 2B EA 00 00 AA [11:01:48]Write i2c OK [11:01:48]MH_I2C_Read... [11:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:48]Read from MH i2c: E2 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 03 00 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [11:01:48]RAPDU: 90 00 [11:01:48]wFMCommunicate OK [11:01:48]wFMCommunicate request_size=4 [11:01:48]MH_SAM_APDU [11:01:48]CAPDU: 80 0D 03 02 [11:01:48]Write to MH i2c: E2 08 00 7A 12 80 0D 03 02 00 00 00 00 07 [11:01:48]Write i2c OK [11:01:48]MH_I2C_Read... [11:01:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:48]Read from MH i2c: E2 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 0B 00 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 0B 00 7A 12 00 A7 81 C7 7E FE 76 36 73 90 00 92 [11:01:48]RAPDU: A7 81 C7 7E FE 76 36 73 90 00 [11:01:48]wFMCommunicate OK [11:01:48]SAM_PROTO_SignData done [11:01:48]FM_MakeSignedData done [11:01:48]CreateOFDProtocolMessage [11:01:48]wFMCommunicate request_size=4 [11:01:48]MH_SAM_APDU [11:01:48]CAPDU: 80 11 00 00 [11:01:48]Write to MH i2c: E2 08 00 7B 12 80 11 00 00 00 00 00 00 07 [11:01:48]Write i2c OK [11:01:48]MH_I2C_Read... [11:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:48]Read from MH i2c: E2 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 17 00 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: E2 17 00 7B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5E [11:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:01:48]wFMCommunicate OK [11:01:48]CreateOFDProtocolMessage done [11:01:48]OFDSenderStorePacket 118030 [11:01:48]StoreOFDPacket docnum=118030 [11:01:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F6 46 07 01 50 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5A 00 00 00 F4 03 04 00 1B 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CD 01 00 35 04 06 00 2E 44 26 1C 2B EA A7 81 C7 7E FE 76 36 73 [11:01:48]CheckFolder [11:01:48]dirname=/storage/ofd_packets [11:01:48]CheckFolder done [11:01:48]ProducePacketName [11:01:48]name=ofd_packets/00118030 [11:01:48]NVStorageSaveData ofd_packets/00118030 [11:01:48]File name is /storage/ofd_packets/00118030 [11:01:48]Write 301 bytes [11:01:48]NVStorageSaveData done [11:01:48]OFDSenderStorePacket done [11:01:48]KKMCreateOFDPacket done [11:01:48]NVStorageSaveData kkm_last_timestamp [11:01:48]File name is /storage/kkm_last_timestamp [11:01:48]Write 4 bytes [11:01:48]NVStorageSaveData done [11:01:48]OFD Sender: Processing packet 118030 [packets to send 77, broken 76] [11:01:48]ProducePacketName [11:01:48]name=ofd_packets/00118030 [11:01:48]OFD Sender: To server: pG, [11:01:48]CommunicateWithHost lk.salyk.kg:30040 [11:01:48]ConnectInit lk.salyk.kg [11:01:48]ExternCall_PrintAddStr [11:01:48]wPrintStart [11:01:48]Write to MH i2c: 01 00 00 7C 12 8E [11:01:48]Write i2c OK [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: 01 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: 01 07 00 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: 01 07 00 7C 12 00 00 00 00 00 FF 0F A3 [11:01:48]RasterBufferAndPrint [11:01:48]line Счет N : (1)245823 [11:01:48]line ИНН: 02508201610067 [11:01:48]line Контрольно-Кассовый Чек [11:01:48]line ПРОДАЖА [11:01:48]line ТРК (МРК, ГНК) : 21 [11:01:48]line Товар: 2710124130 [11:01:48]line Аи-92-К-2 [11:01:48]line 4.490 * 66.90 [11:01:48]line = 300.38 [11:01:48]line НДС 12% НСП 1% [11:01:48]line > о реализуемом товаре [11:01:48]line ОКРУГЛЕНИЕ: -0.38 [11:01:48]line ИТОГО: 300.00 [11:01:48]line Внесено: 300.00 [11:01:48]line СДАЧА: 0.00 [11:01:48]line НСП 1% : 2.66 [11:01:48]line НДС 12% : 31.90 [11:01:48]line Наличными: 300.00 [11:01:48]line Безнал.: 0.00 [11:01:48]line Место: АЗС № 173 "Партнер Нефть" [11:01:48]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:01:48]line СНО: Общий режим [11:01:48]line Чек 90 30.10.2024 11:01 [11:01:48]line Смена: 545 ФФД: 1.0 [11:01:48]line ЗНМ: 0300000115 [11:01:48]line РНМ: 0000000000091782 [11:01:48]line Версия ККМ: 001 [11:01:48]line ФМ: 0000000000871767 [11:01:48]line ФД: 118030 [11:01:48]line ФПД: 50870232034282 [11:01:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110147&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118030&fm=50870232034282&tin=02508201610067®Number=0000000000091782&sum=30000 [11:01:48]Connected sock=11 [11:01: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 36 37 0F 01 00 00 F6 46 07 01 50 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5A 00 00 00 F4 03 04 00 1B 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0E CD 01 00 35 04 06 00 2E 44 26 1C 2B EA A7 81 C7 7E FE 76 36 73 [11:01:48]written 0, free lines is 4095 [11:01: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 36 37 4F 00 00 00 6A 0E 47 00 3E 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 36 37 10 04 04 00 0E CD 01 00 F4 03 04 00 D2 BD 21 67 B6 04 01 00 00 74 1B 32 42 EC 07 72 21 [11:01:48]CommunicateWithHost err = 0 [11:01:48]CheckOFDResponse [11:01:48]1017 (14) - 77093643461234 [11:01:48]1041 (16) - 0000000000871767 [11:01:48]1040 (4) - 118030 [11:01:48]1012 (4) - 30.10.2024 05:02 [11:01:48]1206 (1) - 0 [11:01:48]OFD Sender: Remove packet 118030 [11:01:48]ProducePacketName [11:01:48]name=ofd_packets/00118030 [11:01:48]NVStorageDeleteData [11:01:49]Write to MH i2c: 01 00 00 A6 12 B8 [11:01:49]Write i2c OK [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: 01 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: 01 07 00 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: 01 07 00 A6 12 00 00 00 00 00 AD 0C 78 [11:01:49]RasterBufferAndPrint [11:01:49]line [11:01:49]line [11:01:49]line [11:01:49]line [11:01:49]line [11:01:49]written 0, free lines is 3251 [11:01:49]MH_Cut [11:01:49]Write to MH i2c: D1 01 00 AD 12 01 91 [11:01:49]Write i2c OK [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: D1 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: D1 01 00 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: D1 01 00 AD 12 00 90 [11:01:49]Write to MH i2c: 01 00 00 AE 12 C0 [11:01:49]Write i2c OK [11:01:49]MH_I2C_Read... [11:01:49]OFD Sender: No OFD packet to send [11:01:49]*** Cut start [11:01:49]*** Purtial cut [11:01:49]*** Stage 1: CUTSNS_PIN = 1 [11:01:50]Read from MH i2c: 01 [11:01:50]MH_I2C_Read... [11:01:50]*** Stop cut motor [11:01:50]*** Cut end [11:01:50]Read from MH i2c: 01 07 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: 01 07 00 AE 12 00 00 00 00 00 FF 0F D5 [11:01:50]process_action close_receipt done [11:01:50]requested_data is exist [11:01:50]produce_requested_data [11:01:50]requested_item fm.sn is exist - process it [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 11 00 00 [11:01:50]Write to MH i2c: E2 08 00 AF 12 80 11 00 00 00 00 00 00 3B [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 17 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 17 00 AF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 92 [11:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:01:50]wFMCommunicate OK [11:01:50]requested_item fd.num is exist - process it [11:01:50]SAM_PROTO_GetFieldsCounters [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 13 00 00 [11:01:50]Write to MH i2c: E2 08 00 B0 12 80 13 00 00 00 00 00 00 3E [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 62 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 62 00 B0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [11:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:50]wFMCommunicate OK [11:01:50]SAM_PROTO_GetFieldsCounters done [11:01:50]requested_item shift.num is exist - process it [11:01:50]requested_item shift.opened is exist - process it [11:01:50]req_shift_opened [11:01:50]FM_GetShiftState [11:01:50]SAM_PROTO_GetShiftState [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 13 01 00 [11:01:50]Write to MH i2c: E2 08 00 B1 12 80 13 01 00 00 00 00 00 40 [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 0E 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 0E 00 B1 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 18 [11:01:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:01:50]wFMCommunicate OK [11:01:50]SAM_PROTO_GetShiftState done [11:01:50]FM_GetShiftState done [11:01:50]req_shift_opened done [11:01:50]requested_item shift.open_date is exist - process it [11:01:50]req_shift_open_date [11:01:50]req_shift_open_date done [11:01:50]produce_requested_data done [11:01:50]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118030,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:01:50]process_action_free close_receipt [11:01:50]json_value_free [11:01:50]json_value_free done [11:01:50]process_json_proto returns [11:01:50]Send response to host [11:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118030,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:01:50]free response buf [11:01:50]execute_script done [11:01:50]execute_script returns [11:01:50]free content buf [11:01:50]Sock 9.Close socket [11:01:50]Sock 9.Thread stoped [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]accept exits with 7 [11:04:24]New connection [11:04:24]New thread 3067415908 created [11:04:24]Thread 3067559268 joined [11:04:24]Waiting for new connection... [11:04:24] Sock 7.Parse request [11:04:24]Sock 7.Check first char [11:04:24]Sock 7.First char is OK [11:04:24]request: POST /json_proto HTTP/1.0 [11:04:24]Method: POST [11:04:24]URL: /json_proto [11:04:24]Method is POST - this is cgi request [11:04:24]url: /json_proto [11:04:24]query_string will be loaded in cgi processing [11:04:24]execute_cgi json_proto POST (null) [11:04:24]execute_cgi path=json_proto method=POST [11:04:24]POST find Content-Length [11:04:24]Host: 172.17.96.67:8080 [11:04:24]Content-Length: 677 [11:04:24]Content-Type: application/json [11:04:24] [11:04:24]POST finish read [11:04:24]Found Content-Length = 677 [11:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:04:24]execute_script... [11:04: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)245824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:04:24]POST & json_proto [11:04:24]process_json_proto [11:04:24]json parsed OK: [11:04:24]protocol is kg_v1.0 [11:04:24]action value=close_receipt [11:04:24]process_action close_receipt [11:04:24]cmd_close_receipt [11:04:24]MH_GetDate [11:04:24]Write to MH i2c: F0 00 00 B2 12 B3 [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: F0 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: F0 09 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: F0 09 00 B2 12 00 B8 12 22 67 47 6C 1F 67 48 [11:04:24]GetLastDocTimeStamp 1730286107 [11:04:24]current date 1730286264 [11:04:24]FM_GetShiftState [11:04:24]SAM_PROTO_GetShiftState [11:04:24]wFMCommunicate request_size=4 [11:04:24]MH_SAM_APDU [11:04:24]CAPDU: 80 13 01 00 [11:04:24]Write to MH i2c: E2 08 00 B3 12 80 13 01 00 00 00 00 00 42 [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]OFD Sender: No OFD packet to send [11:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:24]Read from MH i2c: E2 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: E2 0E 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: E2 0E 00 B3 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1A [11:04:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:04:24]wFMCommunicate OK [11:04:24]SAM_PROTO_GetShiftState done [11:04:24]FM_GetShiftState done [11:04:24]opened in 1730246605 [11:04:24]opened+sec_in_day 1730333005 [11:04:24]quantity*price = 20003 [11:04:24]sum+1 = 20004 [11:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 91 30.10.2024 11:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118031 ФПД: 112287133623692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118031&fm=112287133623692&tin=02508201610067®Number=0000000000091782&sum=20000 [11:04:25]StoreToDocumentArchive [11:04:25]shift 545 fd 118031 [11:04:25]save to /storage/0545/doc_00118031 [11:04:25]save last doc name /storage/0545/doc_00118031 to /storage/kkm_last_doc_name [11:04:25]save OK [11:04:25]Clear old archive folders... [11:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:25]tlvbuf is 006488F0 [11:04:25]SAM_PROTO_ClearQueue [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 09 00 00 [11:04:25]Write to MH i2c: E2 08 00 C0 12 80 09 00 00 00 00 00 00 44 [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [11:04:25]RAPDU: 90 00 [11:04:25]wFMCommunicate OK [11:04:25]SAM_PROTO_ClearQueue done [11:04:25]KKMCreateOFDPacket [11:04:25]OFDProtocolAddRootSTLVToBuf [11:04:25]FM_MakeSignedData [11:04:25]FM_MakeSignedData [11:04:25]SAM_PROTO_SignData [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 0D 01 02 [11:04:25]Write to MH i2c: E2 08 00 C1 12 80 0D 01 02 00 00 00 00 4C [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [11:04:25]RAPDU: 90 00 [11:04:25]wFMCommunicate OK [11:04:25]wFMCommunicate request_size=255 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5B 00 00 00 F4 03 04 00 B9 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CD 01 00 35 04 06 00 66 [11:04:25]Write to MH i2c: E2 02 01 C2 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5B 00 00 00 F4 03 04 00 B9 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CD 01 00 35 04 06 00 66 00 00 B5 [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:26]Read from MH i2c: E2 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [11:04:26]RAPDU: 90 00 [11:04:26]wFMCommunicate OK [11:04:26]wFMCommunicate request_size=10 [11:04:26]MH_SAM_APDU [11:04:26]CAPDU: 80 0D 02 02 05 1F E2 B6 65 8C [11:04:26]Write to MH i2c: E2 0D 00 C3 12 80 0D 02 02 05 00 1F E2 B6 65 8C 00 00 01 [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:26]Read from MH i2c: E2 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [11:04:26]RAPDU: 90 00 [11:04:26]wFMCommunicate OK [11:04:26]wFMCommunicate request_size=4 [11:04:26]MH_SAM_APDU [11:04:26]CAPDU: 80 0D 03 02 [11:04:26]Write to MH i2c: E2 08 00 C4 12 80 0D 03 02 00 00 00 00 51 [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:26]Read from MH i2c: E2 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 0B 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 0B 00 C4 12 00 3E 11 27 C7 9E 81 B9 1A 90 00 81 [11:04:26]RAPDU: 3E 11 27 C7 9E 81 B9 1A 90 00 [11:04:26]wFMCommunicate OK [11:04:26]SAM_PROTO_SignData done [11:04:26]FM_MakeSignedData done [11:04:26]CreateOFDProtocolMessage [11:04:26]wFMCommunicate request_size=4 [11:04:26]MH_SAM_APDU [11:04:26]CAPDU: 80 11 00 00 [11:04:26]Write to MH i2c: E2 08 00 C5 12 80 11 00 00 00 00 00 00 51 [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:26]Read from MH i2c: E2 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 17 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 17 00 C5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A8 [11:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:04:26]wFMCommunicate OK [11:04:26]CreateOFDProtocolMessage done [11:04:26]OFDSenderStorePacket 118031 [11:04:26]StoreOFDPacket docnum=118031 [11:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 25 24 07 01 9D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5B 00 00 00 F4 03 04 00 B9 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CD 01 00 35 04 06 00 66 1F E2 B6 65 8C 3E 11 27 C7 9E 81 B9 1A [11:04:26]CheckFolder [11:04:26]dirname=/storage/ofd_packets [11:04:26]CheckFolder done [11:04:26]ProducePacketName [11:04:26]name=ofd_packets/00118031 [11:04:26]NVStorageSaveData ofd_packets/00118031 [11:04:26]File name is /storage/ofd_packets/00118031 [11:04:26]Write 301 bytes [11:04:26]NVStorageSaveData done [11:04:26]OFDSenderStorePacket done [11:04:26]KKMCreateOFDPacket done [11:04:26]NVStorageSaveData kkm_last_timestamp [11:04:26]File name is /storage/kkm_last_timestamp [11:04:26]Write 4 bytes [11:04:26]NVStorageSaveData done [11:04:26]ExternCall_PrintAddStr [11:04:26]wPrintStart [11:04:26]Write to MH i2c: 01 00 00 C6 12 D8 [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 C6 12 00 00 00 00 00 FF 0F ED [11:04:26]RasterBufferAndPrint [11:04:26]line Счет N : (1)245824 [11:04:26]line ИНН: 02508201610067 [11:04:26]line Контрольно-Кассовый Чек [11:04:26]line ПРОДАЖА [11:04:26]line ТРК (МРК, ГНК) : 21 [11:04:26]line Товар: 2710124130 [11:04:26]line Аи-92-К-2 [11:04:26]line 2.990 * 66.90 [11:04:26]line = 200.03 [11:04:26]line НДС 12% НСП 1% [11:04:26]line > о реализуемом товаре [11:04:26]line ОКРУГЛЕНИЕ: -0.03 [11:04:26]line ИТОГО: 200.00 [11:04:26]line Внесено: 200.00 [11:04:26]line СДАЧА: 0.00 [11:04:26]line НСП 1% : 1.77 [11:04:26]line НДС 12% : 21.24 [11:04:26]line Наличными: 200.00 [11:04:26]line Безнал.: 0.00 [11:04:26]line Место: АЗС № 173 "Партнер Нефть" [11:04:26]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:04:26]line СНО: Общий режим [11:04:26]line Чек 91 30.10.2024 11:04 [11:04:26]line Смена: 545 ФФД: 1.0 [11:04:26]line ЗНМ: 0300000115 [11:04:26]line РНМ: 0000000000091782 [11:04:26]line Версия ККМ: 001 [11:04:26]line ФМ: 0000000000871767 [11:04:26]line ФД: 118031 [11:04:26]line ФПД: 112287133623692 [11:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110425&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118031&fm=112287133623692&tin=02508201610067®Number=0000000000091782&sum=20000 [11:04:26]OFD Sender: Processing packet 118031 [packets to send 77, broken 76] [11:04:26]ProducePacketName [11:04:26]name=ofd_packets/00118031 [11:04:26]OFD Sender: To server: pG, [11:04:26]CommunicateWithHost lk.salyk.kg:30040 [11:04:26]ConnectInit lk.salyk.kg [11:04:26]written 0, free lines is 4095 [11:04:26]Connected sock=10 [11:04: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 36 37 0F 01 00 00 25 24 07 01 9D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5B 00 00 00 F4 03 04 00 B9 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CD 01 00 35 04 06 00 66 1F E2 B6 65 8C 3E 11 27 C7 9E 81 B9 1A [11:04: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 36 37 4F 00 00 00 58 7E 47 00 1D E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 0F CD 01 00 F4 03 04 00 70 BE 21 67 B6 04 01 00 00 23 54 1C 8F 76 64 8E 62 [11:04:26]CommunicateWithHost err = 0 [11:04:26]CheckOFDResponse [11:04:26]1017 (14) - 77093643461234 [11:04:26]1041 (16) - 0000000000871767 [11:04:26]1040 (4) - 118031 [11:04:26]1012 (4) - 30.10.2024 05:04 [11:04:26]1206 (1) - 0 [11:04:26]OFD Sender: Remove packet 118031 [11:04:26]ProducePacketName [11:04:26]name=ofd_packets/00118031 [11:04:26]NVStorageDeleteData [11:04:26]Write to MH i2c: 01 00 00 F0 12 02 [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 F0 12 00 00 00 00 00 B3 0C C8 [11:04:26]RasterBufferAndPrint [11:04:26]line [11:04:26]line [11:04:26]line [11:04:26]line [11:04:26]line [11:04:26]written 0, free lines is 3257 [11:04:27]MH_Cut [11:04:27]Write to MH i2c: D1 01 00 F7 12 01 DB [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: D1 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: D1 01 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: D1 01 00 F7 12 00 DA [11:04:27]Write to MH i2c: 01 00 00 F8 12 0A [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]OFD Sender: No OFD packet to send [11:04:27]*** Cut start [11:04:27]*** Purtial cut [11:04:27]*** Stage 1: CUTSNS_PIN = 1 [11:04:28]Read from MH i2c: 01 [11:04:28]MH_I2C_Read... [11:04:28]*** Stop cut motor [11:04:28]*** Cut end [11:04:28]Read from MH i2c: 01 07 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 07 00 F8 12 00 00 00 00 00 FF 0F 1F [11:04:28]process_action close_receipt done [11:04:28]requested_data is exist [11:04:28]produce_requested_data [11:04:28]requested_item fm.sn is exist - process it [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 11 00 00 [11:04:28]Write to MH i2c: E2 08 00 F9 12 80 11 00 00 00 00 00 00 85 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 17 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 17 00 F9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DC [11:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:04:28]wFMCommunicate OK [11:04:28]requested_item fd.num is exist - process it [11:04:28]SAM_PROTO_GetFieldsCounters [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 13 00 00 [11:04:28]Write to MH i2c: E2 08 00 FA 12 80 13 00 00 00 00 00 00 88 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 62 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 62 00 FA 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [11:04: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 0F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:28]wFMCommunicate OK [11:04:28]SAM_PROTO_GetFieldsCounters done [11:04:28]requested_item shift.num is exist - process it [11:04:28]requested_item shift.opened is exist - process it [11:04:28]req_shift_opened [11:04:28]FM_GetShiftState [11:04:28]SAM_PROTO_GetShiftState [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 13 01 00 [11:04:28]Write to MH i2c: E2 08 00 FB 12 80 13 01 00 00 00 00 00 8A [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 0E 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 0E 00 FB 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 62 [11:04:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:04:28]wFMCommunicate OK [11:04:28]SAM_PROTO_GetShiftState done [11:04:28]FM_GetShiftState done [11:04:28]req_shift_opened done [11:04:28]requested_item shift.open_date is exist - process it [11:04:28]req_shift_open_date [11:04:28]req_shift_open_date done [11:04:28]produce_requested_data done [11:04:28]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118031,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:04:28]process_action_free close_receipt [11:04:28]json_value_free [11:04:28]json_value_free done [11:04:28]process_json_proto returns [11:04:28]Send response to host [11:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118031,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:04:28]free response buf [11:04:28]execute_script done [11:04:28]execute_script returns [11:04:28]free content buf [11:04:28]Sock 7.Close socket [11:04:28]Sock 7.Thread stoped [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:41]accept exits with 9 [11:04:41]New connection [11:04:41]New thread 3067559268 created [11:04:41]Thread 3067415908 joined [11:04:41]Waiting for new connection... [11:04:41] Sock 9.Parse request [11:04:41]Sock 9.Check first char [11:04:41]Sock 9.First char is OK [11:04:41]request: POST /json_proto HTTP/1.0 [11:04:41]Method: POST [11:04:41]URL: /json_proto [11:04:41]Method is POST - this is cgi request [11:04:41]url: /json_proto [11:04:41]query_string will be loaded in cgi processing [11:04:41]execute_cgi json_proto POST (null) [11:04:41]execute_cgi path=json_proto method=POST [11:04:41]POST find Content-Length [11:04:41]Host: 172.17.96.67:8080 [11:04:41]Content-Length: 677 [11:04:41]Content-Type: application/json [11:04:41] [11:04:41]POST finish read [11:04:41]Found Content-Length = 677 [11:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:04:41]execute_script... [11:04:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:04:41]POST & json_proto [11:04:41]process_json_proto [11:04:41]json parsed OK: [11:04:41]protocol is kg_v1.0 [11:04:41]action value=close_receipt [11:04:41]process_action close_receipt [11:04:41]cmd_close_receipt [11:04:41]MH_GetDate [11:04:41]Write to MH i2c: F0 00 00 FC 12 FD [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: F0 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: F0 09 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: F0 09 00 FC 12 00 CA 12 22 67 47 6C 1F 67 A4 [11:04:41]GetLastDocTimeStamp 1730286265 [11:04:41]current date 1730286282 [11:04:41]FM_GetShiftState [11:04:41]SAM_PROTO_GetShiftState [11:04:41]wFMCommunicate request_size=4 [11:04:41]MH_SAM_APDU [11:04:41]CAPDU: 80 13 01 00 [11:04:41]Write to MH i2c: E2 08 00 FD 12 80 13 01 00 00 00 00 00 8C [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:41]Read from MH i2c: E2 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 0E 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 0E 00 FD 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 64 [11:04:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:04:41]wFMCommunicate OK [11:04:41]SAM_PROTO_GetShiftState done [11:04:41]FM_GetShiftState done [11:04:41]opened in 1730246605 [11:04:41]opened+sec_in_day 1730333005 [11:04:41]quantity*price = 30038 [11:04:41]sum+1 = 30039 [11:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 92 30.10.2024 11:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118032 ФПД: 177366009118983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118032&fm=177366009118983&tin=02508201610067®Number=0000000000091782&sum=30000 [11:04:42]StoreToDocumentArchive [11:04:42]shift 545 fd 118032 [11:04:42]save to /storage/0545/doc_00118032 [11:04:42]save last doc name /storage/0545/doc_00118032 to /storage/kkm_last_doc_name [11:04:42]save OK [11:04:42]Clear old archive folders... [11:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:42]tlvbuf is 00627070 [11:04:42]SAM_PROTO_ClearQueue [11:04:42]wFMCommunicate request_size=4 [11:04:42]MH_SAM_APDU [11:04:42]CAPDU: 80 09 00 00 [11:04:42]Write to MH i2c: E2 08 00 0A 13 80 09 00 00 00 00 00 00 8F [11:04:42]Write i2c OK [11:04:42]MH_I2C_Read... [11:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:42]Read from MH i2c: E2 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: E2 03 00 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [11:04:42]RAPDU: 90 00 [11:04:42]wFMCommunicate OK [11:04:42]SAM_PROTO_ClearQueue done [11:04:42]KKMCreateOFDPacket [11:04:42]OFDProtocolAddRootSTLVToBuf [11:04:42]FM_MakeSignedData [11:04:42]FM_MakeSignedData [11:04:42]SAM_PROTO_SignData [11:04:42]wFMCommunicate request_size=4 [11:04:42]MH_SAM_APDU [11:04:42]CAPDU: 80 0D 01 02 [11:04:42]Write to MH i2c: E2 08 00 0B 13 80 0D 01 02 00 00 00 00 97 [11:04:42]Write i2c OK [11:04:42]MH_I2C_Read... [11:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:42]Read from MH i2c: E2 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: E2 03 00 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [11:04:42]RAPDU: 90 00 [11:04:42]wFMCommunicate OK [11:04:42]wFMCommunicate request_size=255 [11:04:42]MH_SAM_APDU [11:04:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5C 00 00 00 F4 03 04 00 CA 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CD 01 00 35 04 06 00 A1 [11:04:42]Write to MH i2c: E2 02 01 0C 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 CA 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CD 01 00 35 04 06 00 A1 00 00 80 [11:04:42]Write i2c OK [11:04:42]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 0C 13 00 90 00 93 [11:04:43]RAPDU: 90 00 [11:04:43]wFMCommunicate OK [11:04:43]wFMCommunicate request_size=10 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 0D 02 02 05 50 3D F8 01 07 [11:04:43]Write to MH i2c: E2 0D 00 0D 13 80 0D 02 02 05 00 50 3D F8 01 07 00 00 31 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 0D 13 00 90 00 94 [11:04:43]RAPDU: 90 00 [11:04:43]wFMCommunicate OK [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 0D 03 02 [11:04:43]Write to MH i2c: E2 08 00 0E 13 80 0D 03 02 00 00 00 00 9C [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 0B 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 0B 00 0E 13 00 56 C6 01 B7 DD BC EA 3A 90 00 2E [11:04:43]RAPDU: 56 C6 01 B7 DD BC EA 3A 90 00 [11:04:43]wFMCommunicate OK [11:04:43]SAM_PROTO_SignData done [11:04:43]FM_MakeSignedData done [11:04:43]CreateOFDProtocolMessage [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 11 00 00 [11:04:43]Write to MH i2c: E2 08 00 0F 13 80 11 00 00 00 00 00 00 9C [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 17 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 17 00 0F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F3 [11:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:04:43]wFMCommunicate OK [11:04:43]CreateOFDProtocolMessage done [11:04:43]OFDSenderStorePacket 118032 [11:04:43]StoreOFDPacket docnum=118032 [11:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9F 61 07 01 14 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 CA 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CD 01 00 35 04 06 00 A1 50 3D F8 01 07 56 C6 01 B7 DD BC EA 3A [11:04:43]CheckFolder [11:04:43]dirname=/storage/ofd_packets [11:04:43]CheckFolder done [11:04:43]ProducePacketName [11:04:43]name=ofd_packets/00118032 [11:04:43]NVStorageSaveData ofd_packets/00118032 [11:04:43]File name is /storage/ofd_packets/00118032 [11:04:43]Write 301 bytes [11:04:43]NVStorageSaveData done [11:04:43]OFDSenderStorePacket done [11:04:43]KKMCreateOFDPacket done [11:04:43]NVStorageSaveData kkm_last_timestamp [11:04:43]File name is /storage/kkm_last_timestamp [11:04:43]Write 4 bytes [11:04:43]NVStorageSaveData done [11:04:43]ExternCall_PrintAddStr [11:04:43]wPrintStart [11:04:43]Write to MH i2c: 01 00 00 10 13 23 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: 01 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: 01 07 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: 01 07 00 10 13 00 00 00 00 00 FF 0F 38 [11:04:43]RasterBufferAndPrint [11:04:43]line Счет N : (1)245825 [11:04:43]line ИНН: 02508201610067 [11:04:43]line Контрольно-Кассовый Чек [11:04:43]line ПРОДАЖА [11:04:43]line ТРК (МРК, ГНК) : 11 [11:04:43]line Товар: 2710124130 [11:04:43]line Аи-92-К-2 [11:04:43]line 4.490 * 66.90 [11:04:43]line = 300.38 [11:04:43]line НДС 12% НСП 1% [11:04:43]line > о реализуемом товаре [11:04:43]line ОКРУГЛЕНИЕ: -0.38 [11:04:43]line ИТОГО: 300.00 [11:04:43]line Внесено: 300.00 [11:04:43]line СДАЧА: 0.00 [11:04:43]line НСП 1% : 2.66 [11:04:43]line НДС 12% : 31.90 [11:04:43]line Наличными: 300.00 [11:04:43]line Безнал.: 0.00 [11:04:43]line Место: АЗС № 173 "Партнер Нефть" [11:04:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:04:43]line СНО: Общий режим [11:04:43]line Чек 92 30.10.2024 11:04 [11:04:43]line Смена: 545 ФФД: 1.0 [11:04:43]line ЗНМ: 0300000115 [11:04:43]line РНМ: 0000000000091782 [11:04:43]line Версия ККМ: 001 [11:04:43]line ФМ: 0000000000871767 [11:04:43]line ФД: 118032 [11:04:43]line ФПД: 177366009118983 [11:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118032&fm=177366009118983&tin=02508201610067®Number=0000000000091782&sum=30000 [11:04:43]OFD Sender: Processing packet 118032 [packets to send 77, broken 76] [11:04:43]ProducePacketName [11:04:43]name=ofd_packets/00118032 [11:04:43]OFD Sender: To server: pG, [11:04:43]CommunicateWithHost lk.salyk.kg:30040 [11:04:43]ConnectInit lk.salyk.kg [11:04:43]written 0, free lines is 4095 [11:04:43]Connected sock=10 [11:04:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9F 61 07 01 14 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 CA 12 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CD 01 00 35 04 06 00 A1 50 3D F8 01 07 56 C6 01 B7 DD BC EA 3A [11:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 07 B2 47 00 26 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 10 CD 01 00 F4 03 04 00 82 BE 21 67 B6 04 01 00 00 07 9F 00 23 66 14 04 73 [11:04:44]CommunicateWithHost err = 0 [11:04:44]CheckOFDResponse [11:04:44]1017 (14) - 77093643461234 [11:04:44]1041 (16) - 0000000000871767 [11:04:44]1040 (4) - 118032 [11:04:44]1012 (4) - 30.10.2024 05:05 [11:04:44]1206 (1) - 0 [11:04:44]OFD Sender: Remove packet 118032 [11:04:44]ProducePacketName [11:04:44]name=ofd_packets/00118032 [11:04:44]NVStorageDeleteData [11:04:44]Write to MH i2c: 01 00 00 3A 13 4D [11:04:44]Write i2c OK [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 07 00 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 B9 0C 19 [11:04:44]RasterBufferAndPrint [11:04:44]line [11:04:44]line [11:04:44]line [11:04:44]line [11:04:44]line [11:04:44]written 0, free lines is 3266 [11:04:44]MH_Cut [11:04:44]Write to MH i2c: D1 01 00 41 13 01 26 [11:04:44]Write i2c OK [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: D1 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: D1 01 00 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: D1 01 00 41 13 00 25 [11:04:44]Write to MH i2c: 01 00 00 42 13 55 [11:04:44]Write i2c OK [11:04:44]MH_I2C_Read... [11:04:44]OFD Sender: No OFD packet to send [11:04:45]*** Cut start [11:04:45]*** Purtial cut [11:04:45]*** Stage 1: CUTSNS_PIN = 1 [11:04:45]Read from MH i2c: 01 [11:04:45]MH_I2C_Read... [11:04:45]*** Stop cut motor [11:04:45]*** Cut end [11:04:45]Read from MH i2c: 01 07 00 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: 01 07 00 42 13 00 00 00 00 00 FF 0F 6A [11:04:45]process_action close_receipt done [11:04:45]requested_data is exist [11:04:45]produce_requested_data [11:04:45]requested_item fm.sn is exist - process it [11:04:45]wFMCommunicate request_size=4 [11:04:45]MH_SAM_APDU [11:04:45]CAPDU: 80 11 00 00 [11:04:45]Write to MH i2c: E2 08 00 43 13 80 11 00 00 00 00 00 00 D0 [11:04:45]Write i2c OK [11:04:45]MH_I2C_Read... [11:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:45]Read from MH i2c: E2 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 17 00 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 17 00 43 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 27 [11:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:04:45]wFMCommunicate OK [11:04:45]requested_item fd.num is exist - process it [11:04:45]SAM_PROTO_GetFieldsCounters [11:04:45]wFMCommunicate request_size=4 [11:04:45]MH_SAM_APDU [11:04:45]CAPDU: 80 13 00 00 [11:04:45]Write to MH i2c: E2 08 00 44 13 80 13 00 00 00 00 00 00 D3 [11:04:45]Write i2c OK [11:04:45]MH_I2C_Read... [11:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:45]Read from MH i2c: E2 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 62 00 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 62 00 44 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 10 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [11:04:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 10 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:45]wFMCommunicate OK [11:04:45]SAM_PROTO_GetFieldsCounters done [11:04:45]requested_item shift.num is exist - process it [11:04:45]requested_item shift.opened is exist - process it [11:04:45]req_shift_opened [11:04:45]FM_GetShiftState [11:04:45]SAM_PROTO_GetShiftState [11:04:45]wFMCommunicate request_size=4 [11:04:45]MH_SAM_APDU [11:04:45]CAPDU: 80 13 01 00 [11:04:45]Write to MH i2c: E2 08 00 45 13 80 13 01 00 00 00 00 00 D5 [11:04:45]Write i2c OK [11:04:45]MH_I2C_Read... [11:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:45]Read from MH i2c: E2 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 0E 00 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 0E 00 45 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AD [11:04:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:04:45]wFMCommunicate OK [11:04:45]SAM_PROTO_GetShiftState done [11:04:45]FM_GetShiftState done [11:04:45]req_shift_opened done [11:04:45]requested_item shift.open_date is exist - process it [11:04:45]req_shift_open_date [11:04:45]req_shift_open_date done [11:04:45]produce_requested_data done [11:04:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118032,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:04:45]process_action_free close_receipt [11:04:45]json_value_free [11:04:45]json_value_free done [11:04:45]process_json_proto returns [11:04:45]Send response to host [11:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118032,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:04:45]free response buf [11:04:45]execute_script done [11:04:45]execute_script returns [11:04:45]free content buf [11:04:45]Sock 9.Close socket [11:04:45]Sock 9.Thread stoped [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:35]accept exits with 7 [11:05:35]New connection [11:05:35]New thread 3067415908 created [11:05:35]Thread 3067559268 joined [11:05:35]Waiting for new connection... [11:05:35] Sock 7.Parse request [11:05:35]Sock 7.Check first char [11:05:35]Sock 7.First char is OK [11:05:35]request: POST /json_proto HTTP/1.0 [11:05:35]Method: POST [11:05:35]URL: /json_proto [11:05:35]Method is POST - this is cgi request [11:05:35]url: /json_proto [11:05:35]query_string will be loaded in cgi processing [11:05:35]execute_cgi json_proto POST (null) [11:05:35]execute_cgi path=json_proto method=POST [11:05:35]POST find Content-Length [11:05:35]Host: 172.17.96.67:8080 [11:05:35]Content-Length: 677 [11:05:35]Content-Type: application/json [11:05:35] [11:05:35]POST finish read [11:05:35]Found Content-Length = 677 [11:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:05:35]execute_script... [11:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:05:35]POST & json_proto [11:05:35]process_json_proto [11:05:35]json parsed OK: [11:05:35]protocol is kg_v1.0 [11:05:35]action value=close_receipt [11:05:35]process_action close_receipt [11:05:35]cmd_close_receipt [11:05:35]MH_GetDate [11:05:35]Write to MH i2c: F0 00 00 46 13 48 [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: F0 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: F0 09 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: F0 09 00 46 13 00 FF 12 22 67 47 6C 1F 67 24 [11:05:35]GetLastDocTimeStamp 1730286282 [11:05:35]current date 1730286335 [11:05:35]FM_GetShiftState [11:05:35]SAM_PROTO_GetShiftState [11:05:35]wFMCommunicate request_size=4 [11:05:35]MH_SAM_APDU [11:05:35]CAPDU: 80 13 01 00 [11:05:35]Write to MH i2c: E2 08 00 47 13 80 13 01 00 00 00 00 00 D7 [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:35]Read from MH i2c: E2 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: E2 0E 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: E2 0E 00 47 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AF [11:05:35]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:05:35]wFMCommunicate OK [11:05:35]SAM_PROTO_GetShiftState done [11:05:35]FM_GetShiftState done [11:05:35]opened in 1730246605 [11:05:35]opened+sec_in_day 1730333005 [11:05:35]quantity*price = 30038 [11:05:35]sum+1 = 30039 [11:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 93 30.10.2024 11:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118033 ФПД: 173135415511809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110536&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118033&fm=173135415511809&tin=02508201610067®Number=0000000000091782&sum=30000 [11:05:36]StoreToDocumentArchive [11:05:36]shift 545 fd 118033 [11:05:36]save to /storage/0545/doc_00118033 [11:05:36]save last doc name /storage/0545/doc_00118033 to /storage/kkm_last_doc_name [11:05:36]save OK [11:05:36]Clear old archive folders... [11:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:36]tlvbuf is 00697140 [11:05:36]SAM_PROTO_ClearQueue [11:05:36]wFMCommunicate request_size=4 [11:05:36]MH_SAM_APDU [11:05:36]CAPDU: 80 09 00 00 [11:05:36]Write to MH i2c: E2 08 00 54 13 80 09 00 00 00 00 00 00 D9 [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 54 13 00 90 00 DB [11:05:36]RAPDU: 90 00 [11:05:36]wFMCommunicate OK [11:05:36]SAM_PROTO_ClearQueue done [11:05:36]KKMCreateOFDPacket [11:05:36]OFDProtocolAddRootSTLVToBuf [11:05:36]FM_MakeSignedData [11:05:36]FM_MakeSignedData [11:05:36]SAM_PROTO_SignData [11:05:36]wFMCommunicate request_size=4 [11:05:36]MH_SAM_APDU [11:05:36]CAPDU: 80 0D 01 02 [11:05:36]Write to MH i2c: E2 08 00 55 13 80 0D 01 02 00 00 00 00 E1 [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 55 13 00 90 00 DC [11:05:36]RAPDU: 90 00 [11:05:36]wFMCommunicate OK [11:05:36]wFMCommunicate request_size=255 [11:05:36]MH_SAM_APDU [11:05:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5D 00 00 00 F4 03 04 00 00 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CD 01 00 35 04 06 00 9D [11:05:36]Write to MH i2c: E2 02 01 56 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5D 00 00 00 F4 03 04 00 00 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CD 01 00 35 04 06 00 9D 00 00 FF [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]wFMCommunicate request_size=10 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 0D 02 02 05 77 3A F0 8B 01 [11:05:37]Write to MH i2c: E2 0D 00 57 13 80 0D 02 02 05 00 77 3A F0 8B 01 00 00 1B [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 0D 03 02 [11:05:37]Write to MH i2c: E2 08 00 58 13 80 0D 03 02 00 00 00 00 E6 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 0B 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 0B 00 58 13 00 75 43 55 92 A0 9D 54 8F 90 00 A6 [11:05:37]RAPDU: 75 43 55 92 A0 9D 54 8F 90 00 [11:05:37]wFMCommunicate OK [11:05:37]SAM_PROTO_SignData done [11:05:37]FM_MakeSignedData done [11:05:37]CreateOFDProtocolMessage [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 11 00 00 [11:05:37]Write to MH i2c: E2 08 00 59 13 80 11 00 00 00 00 00 00 E6 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 17 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 17 00 59 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3D [11:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:05:37]wFMCommunicate OK [11:05:37]CreateOFDProtocolMessage done [11:05:37]OFDSenderStorePacket 118033 [11:05:37]StoreOFDPacket docnum=118033 [11:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5C 19 07 01 DD 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 32 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 5D 00 00 00 F4 03 04 00 00 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CD 01 00 35 04 06 00 9D 77 3A F0 8B 01 75 43 55 92 A0 9D 54 8F [11:05:37]CheckFolder [11:05:37]dirname=/storage/ofd_packets [11:05:37]CheckFolder done [11:05:37]ProducePacketName [11:05:37]name=ofd_packets/00118033 [11:05:37]NVStorageSaveData ofd_packets/00118033 [11:05:37]File name is /storage/ofd_packets/00118033 [11:05:37]Write 301 bytes [11:05:37]NVStorageSaveData done [11:05:37]OFDSenderStorePacket done [11:05:37]KKMCreateOFDPacket done [11:05:37]NVStorageSaveData kkm_last_timestamp [11:05:37]File name is /storage/kkm_last_timestamp [11:05:37]Write 4 bytes [11:05:37]NVStorageSaveData done [11:05:37]ExternCall_PrintAddStr [11:05:37]wPrintStart [11:05:37]Write to MH i2c: 01 00 00 5A 13 6D [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 5A 13 00 00 00 00 00 FF 0F 82 [11:05:37]RasterBufferAndPrint [11:05:37]line Счет N : (1)245826 [11:05:37]line ИНН: 02508201610067 [11:05:37]line Контрольно-Кассовый Чек [11:05:37]line ПРОДАЖА [11:05:37]line ТРК (МРК, ГНК) : 21 [11:05:37]line Товар: 2710124130 [11:05:37]line Аи-92-К-2 [11:05:37]line 4.490 * 66.90 [11:05:37]line = 300.38 [11:05:37]line НДС 12% НСП 1% [11:05:37]line > о реализуемом товаре [11:05:37]line ОКРУГЛЕНИЕ: -0.38 [11:05:37]line ИТОГО: 300.00 [11:05:37]line Внесено: 300.00 [11:05:37]line СДАЧА: 0.00 [11:05:37]line НСП 1% : 2.66 [11:05:37]line НДС 12% : 31.90 [11:05:37]line Наличными: 300.00 [11:05:37]line Безнал.: 0.00 [11:05:37]line Место: АЗС № 173 "Партнер Нефть" [11:05:37]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:05:37]line СНО: Общий режим [11:05:37]line Чек 93 30.10.2024 11:05 [11:05:37]line Смена: 545 ФФД: 1.0 [11:05:37]line ЗНМ: 0300000115 [11:05:37]line РНМ: 0000000000091782 [11:05:37]line Версия ККМ: 001 [11:05:37]line ФМ: 0000000000871767 [11:05:37]line ФД: 118033 [11:05:37]line ФПД: 173135415511809 [11:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110536&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118033&fm=173135415511809&tin=02508201610067®Number=0000000000091782&sum=30000 [11:05:37]written 0, free lines is 4095 [11:05:37]OFD Sender: Processing packet 118033 [packets to send 77, broken 76] [11:05:37]ProducePacketName [11:05:37]name=ofd_packets/00118033 [11:05:37]OFD Sender: To server: pG, [11:05:37]CommunicateWithHost lk.salyk.kg:30040 [11:05:37]ConnectInit lk.salyk.kg [11:05:37]Connected sock=10 [11:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5C 19 07 01 DD 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 32 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 5D 00 00 00 F4 03 04 00 00 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 11 CD 01 00 35 04 06 00 9D 77 3A F0 8B 01 75 43 55 92 A0 9D 54 8F [11:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 9C E0 47 00 34 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 36 37 10 04 04 00 11 CD 01 00 F4 03 04 00 B7 BE 21 67 B6 04 01 00 00 62 CE B6 D2 80 80 4C A4 [11:05:37]CommunicateWithHost err = 0 [11:05:37]CheckOFDResponse [11:05:37]1017 (14) - 77093643461234 [11:05:37]1041 (16) - 0000000000871767 [11:05:37]1040 (4) - 118033 [11:05:37]1012 (4) - 30.10.2024 05:05 [11:05:37]1206 (1) - 0 [11:05:37]OFD Sender: Remove packet 118033 [11:05:37]ProducePacketName [11:05:37]name=ofd_packets/00118033 [11:05:37]NVStorageDeleteData [11:05:37]Write to MH i2c: 01 00 00 84 13 97 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 84 13 00 00 00 00 00 AF 0C 59 [11:05:37]RasterBufferAndPrint [11:05:37]line [11:05:37]line [11:05:37]line [11:05:37]line [11:05:37]line [11:05:37]written 0, free lines is 3251 [11:05:37]MH_Cut [11:05:37]Write to MH i2c: D1 01 00 8B 13 01 70 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: D1 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: D1 01 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: D1 01 00 8B 13 00 6F [11:05:37]Write to MH i2c: 01 00 00 8C 13 9F [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:38]OFD Sender: No OFD packet to send [11:05:38]*** Cut start [11:05:38]*** Purtial cut [11:05:38]*** Stage 1: CUTSNS_PIN = 1 [11:05:39]Read from MH i2c: 01 [11:05:39]*** Stop cut motor [11:05:39]*** Cut end [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 07 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 07 00 8C 13 00 00 00 00 00 FF 0F B4 [11:05:39]process_action close_receipt done [11:05:39]requested_data is exist [11:05:39]produce_requested_data [11:05:39]requested_item fm.sn is exist - process it [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 11 00 00 [11:05:39]Write to MH i2c: E2 08 00 8D 13 80 11 00 00 00 00 00 00 1A [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 8D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 71 [11:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:05:39]wFMCommunicate OK [11:05:39]requested_item fd.num is exist - process it [11:05:39]SAM_PROTO_GetFieldsCounters [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 13 00 00 [11:05:39]Write to MH i2c: E2 08 00 8E 13 80 13 00 00 00 00 00 00 1D [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 62 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 62 00 8E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 11 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [11:05:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 11 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:39]wFMCommunicate OK [11:05:39]SAM_PROTO_GetFieldsCounters done [11:05:39]requested_item shift.num is exist - process it [11:05:39]requested_item shift.opened is exist - process it [11:05:39]req_shift_opened [11:05:39]FM_GetShiftState [11:05:39]SAM_PROTO_GetShiftState [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 13 01 00 [11:05:39]Write to MH i2c: E2 08 00 8F 13 80 13 01 00 00 00 00 00 1F [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 0E 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 0E 00 8F 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F7 [11:05:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:05:39]wFMCommunicate OK [11:05:39]SAM_PROTO_GetShiftState done [11:05:39]FM_GetShiftState done [11:05:39]req_shift_opened done [11:05:39]requested_item shift.open_date is exist - process it [11:05:39]req_shift_open_date [11:05:39]req_shift_open_date done [11:05:39]produce_requested_data done [11:05:39]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118033,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:05:39]process_action_free close_receipt [11:05:39]json_value_free [11:05:39]json_value_free done [11:05:39]process_json_proto returns [11:05:39]Send response to host [11:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118033,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:05:39]free response buf [11:05:39]execute_script done [11:05:39]execute_script returns [11:05:39]free content buf [11:05:39]Sock 7.Close socket [11:05:39]Sock 7.Thread stoped [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:28]accept exits with 9 [11:07:28]New connection [11:07:28]New thread 3067559268 created [11:07:28]Thread 3067415908 joined [11:07:28]Waiting for new connection... [11:07:28] Sock 9.Parse request [11:07:28]Sock 9.Check first char [11:07:28]Sock 9.First char is OK [11:07:28]request: POST /json_proto HTTP/1.0 [11:07:28]Method: POST [11:07:28]URL: /json_proto [11:07:28]Method is POST - this is cgi request [11:07:28]url: /json_proto [11:07:28]query_string will be loaded in cgi processing [11:07:28]execute_cgi json_proto POST (null) [11:07:28]execute_cgi path=json_proto method=POST [11:07:28]POST find Content-Length [11:07:28]Host: 172.17.96.67:8080 [11:07:28]Content-Length: 682 [11:07:28]Content-Type: application/json [11:07:28] [11:07:28]POST finish read [11:07:28]Found Content-Length = 682 [11:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:07:28]execute_script... [11:07: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)245827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:07:28]POST & json_proto [11:07:28]process_json_proto [11:07:28]json parsed OK: [11:07:28]protocol is kg_v1.0 [11:07:28]action value=close_receipt [11:07:28]process_action close_receipt [11:07:28]cmd_close_receipt [11:07:28]MH_GetDate [11:07:28]Write to MH i2c: F0 00 00 90 13 92 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: F0 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: F0 09 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: F0 09 00 90 13 00 71 13 22 67 47 6C 1F 67 E1 [11:07:28]GetLastDocTimeStamp 1730286336 [11:07:28]current date 1730286449 [11:07:28]FM_GetShiftState [11:07:28]SAM_PROTO_GetShiftState [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 13 01 00 [11:07:28]Write to MH i2c: E2 08 00 91 13 80 13 01 00 00 00 00 00 21 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0E 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0E 00 91 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F9 [11:07:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_GetShiftState done [11:07:28]FM_GetShiftState done [11:07:28]opened in 1730246605 [11:07:28]opened+sec_in_day 1730333005 [11:07:28]quantity*price = 120018 [11:07:28]sum+1 = 120020 [11:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 94 30.10.2024 11:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118034 ФПД: 74450013747261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110729&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118034&fm=74450013747261&tin=02508201610067®Number=0000000000091782&sum=120000 [11:07:29]StoreToDocumentArchive [11:07:29]shift 545 fd 118034 [11:07:29]save to /storage/0545/doc_00118034 [11:07:29]save last doc name /storage/0545/doc_00118034 to /storage/kkm_last_doc_name [11:07:29]save OK [11:07:29]Clear old archive folders... [11:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:29]tlvbuf is B6F3CD20 [11:07:29]SAM_PROTO_ClearQueue [11:07:29]wFMCommunicate request_size=4 [11:07:29]MH_SAM_APDU [11:07:29]CAPDU: 80 09 00 00 [11:07:29]Write to MH i2c: E2 08 00 9E 13 80 09 00 00 00 00 00 00 23 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:29]Read from MH i2c: E2 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 03 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 03 00 9E 13 00 90 00 25 [11:07:29]RAPDU: 90 00 [11:07:29]wFMCommunicate OK [11:07:29]SAM_PROTO_ClearQueue done [11:07:29]KKMCreateOFDPacket [11:07:29]OFDProtocolAddRootSTLVToBuf [11:07:29]FM_MakeSignedData [11:07:29]FM_MakeSignedData [11:07:29]SAM_PROTO_SignData [11:07:29]wFMCommunicate request_size=4 [11:07:29]MH_SAM_APDU [11:07:29]CAPDU: 80 0D 01 02 [11:07:29]Write to MH i2c: E2 08 00 9F 13 80 0D 01 02 00 00 00 00 2B [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:29]Read from MH i2c: E2 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 03 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [11:07:29]RAPDU: 90 00 [11:07:29]wFMCommunicate OK [11:07:29]wFMCommunicate request_size=255 [11:07:29]MH_SAM_APDU [11:07: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 32 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 5E 00 00 00 F4 03 04 00 71 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CD 01 00 35 04 06 00 43 [11:07:29]Write to MH i2c: E2 02 01 A0 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 71 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CD 01 00 35 04 06 00 43 00 00 75 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 03 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [11:07:30]RAPDU: 90 00 [11:07:30]wFMCommunicate OK [11:07:30]wFMCommunicate request_size=10 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 0D 02 02 05 B6 3E 9F 78 3D [11:07:30]Write to MH i2c: E2 0D 00 A1 13 80 0D 02 02 05 00 B6 3E 9F 78 3D 00 00 80 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 03 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [11:07:30]RAPDU: 90 00 [11:07:30]wFMCommunicate OK [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 0D 03 02 [11:07:30]Write to MH i2c: E2 08 00 A2 13 80 0D 03 02 00 00 00 00 30 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 0B 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 0B 00 A2 13 00 B5 19 0A 61 F5 8F BC F1 90 00 9B [11:07:30]RAPDU: B5 19 0A 61 F5 8F BC F1 90 00 [11:07:30]wFMCommunicate OK [11:07:30]SAM_PROTO_SignData done [11:07:30]FM_MakeSignedData done [11:07:30]CreateOFDProtocolMessage [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 11 00 00 [11:07:30]Write to MH i2c: E2 08 00 A3 13 80 11 00 00 00 00 00 00 30 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 A3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 87 [11:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:07:30]wFMCommunicate OK [11:07:30]CreateOFDProtocolMessage done [11:07:30]OFDSenderStorePacket 118034 [11:07:30]StoreOFDPacket docnum=118034 [11:07:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E4 54 07 01 64 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 32 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 5E 00 00 00 F4 03 04 00 71 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CD 01 00 35 04 06 00 43 B6 3E 9F 78 3D B5 19 0A 61 F5 8F BC F1 [11:07:30]CheckFolder [11:07:30]dirname=/storage/ofd_packets [11:07:30]CheckFolder done [11:07:30]ProducePacketName [11:07:30]name=ofd_packets/00118034 [11:07:30]NVStorageSaveData ofd_packets/00118034 [11:07:30]File name is /storage/ofd_packets/00118034 [11:07:30]Write 301 bytes [11:07:30]NVStorageSaveData done [11:07:30]OFDSenderStorePacket done [11:07:30]KKMCreateOFDPacket done [11:07:30]NVStorageSaveData kkm_last_timestamp [11:07:30]File name is /storage/kkm_last_timestamp [11:07:30]Write 4 bytes [11:07:30]NVStorageSaveData done [11:07:30]ExternCall_PrintAddStr [11:07:30]wPrintStart [11:07:30]Write to MH i2c: 01 00 00 A4 13 B7 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: 01 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: 01 07 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: 01 07 00 A4 13 00 00 00 00 00 FF 0F CC [11:07:30]RasterBufferAndPrint [11:07:30]line Счет N : (1)245827 [11:07:30]line ИНН: 02508201610067 [11:07:30]line Контрольно-Кассовый Чек [11:07:30]line ПРОДАЖА [11:07:30]line ТРК (МРК, ГНК) : 11 [11:07:30]line Товар: 2710124130 [11:07:30]line Аи-92-К-2 [11:07:30]line 17.940 * 66.90 [11:07:30]line = 1200.19 [11:07:30]line НДС 12% НСП 1% [11:07:30]line > о реализуемом товаре [11:07:30]line ОКРУГЛЕНИЕ: -0.19 [11:07:30]line ИТОГО: 1200.00 [11:07:30]line Внесено: 1200.00 [11:07:30]line СДАЧА: 0.00 [11:07:30]line НСП 1% : 10.62 [11:07:30]line НДС 12% : 127.45 [11:07:30]line Наличными: 1200.00 [11:07:30]line Безнал.: 0.00 [11:07:30]line Место: АЗС № 173 "Партнер Нефть" [11:07:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:07:30]line СНО: Общий режим [11:07:30]line Чек 94 30.10.2024 11:07 [11:07:30]line Смена: 545 ФФД: 1.0 [11:07:30]line ЗНМ: 0300000115 [11:07:30]line РНМ: 0000000000091782 [11:07:30]line Версия ККМ: 001 [11:07:30]line ФМ: 0000000000871767 [11:07:30]line ФД: 118034 [11:07:30]line ФПД: 74450013747261 [11:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110729&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118034&fm=74450013747261&tin=02508201610067®Number=0000000000091782&sum=120000 [11:07:30]OFD Sender: Processing packet 118034 [packets to send 77, broken 76] [11:07:30]ProducePacketName [11:07:30]name=ofd_packets/00118034 [11:07:30]OFD Sender: To server: pG, [11:07:30]CommunicateWithHost lk.salyk.kg:30040 [11:07:30]ConnectInit lk.salyk.kg [11:07:30]written 0, free lines is 4095 [11:07:30]Connected sock=10 [11:07: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 36 37 0F 01 00 00 E4 54 07 01 64 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 32 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 5E 00 00 00 F4 03 04 00 71 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CD 01 00 35 04 06 00 43 B6 3E 9F 78 3D B5 19 0A 61 F5 8F BC F1 [11:07: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 36 37 4F 00 00 00 10 41 47 00 B7 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 12 CD 01 00 F4 03 04 00 29 BF 21 67 B6 04 01 00 00 88 A2 A4 82 9F 64 A0 41 [11:07:30]CommunicateWithHost err = 0 [11:07:30]CheckOFDResponse [11:07:30]1017 (14) - 77093643461234 [11:07:30]1041 (16) - 0000000000871767 [11:07:30]1040 (4) - 118034 [11:07:30]1012 (4) - 30.10.2024 05:07 [11:07:30]1206 (1) - 0 [11:07:30]OFD Sender: Remove packet 118034 [11:07:30]ProducePacketName [11:07:30]name=ofd_packets/00118034 [11:07:30]NVStorageDeleteData [11:07:31]Write to MH i2c: 01 00 00 CE 13 E1 [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: 01 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: 01 07 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: 01 07 00 CE 13 00 00 00 00 00 B1 0C A5 [11:07:31]RasterBufferAndPrint [11:07:31]line [11:07:31]line [11:07:31]line [11:07:31]line [11:07:31]line [11:07:31]written 0, free lines is 3255 [11:07:31]MH_Cut [11:07:31]Write to MH i2c: D1 01 00 D5 13 01 BA [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: D1 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: D1 01 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: D1 01 00 D5 13 00 B9 [11:07:31]Write to MH i2c: 01 00 00 D6 13 E9 [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]OFD Sender: No OFD packet to send [11:07:31]*** Cut start [11:07:31]*** Purtial cut [11:07:31]*** Stage 1: CUTSNS_PIN = 1 [11:07:32]Read from MH i2c: 01 [11:07:32]MH_I2C_Read... [11:07:32]*** Stop cut motor [11:07:32]*** Cut end [11:07:32]Read from MH i2c: 01 07 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: 01 07 00 D6 13 00 00 00 00 00 FF 0F FE [11:07:32]process_action close_receipt done [11:07:32]requested_data is exist [11:07:32]produce_requested_data [11:07:32]requested_item fm.sn is exist - process it [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 11 00 00 [11:07:32]Write to MH i2c: E2 08 00 D7 13 80 11 00 00 00 00 00 00 64 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 17 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 17 00 D7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BB [11:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:07:32]wFMCommunicate OK [11:07:32]requested_item fd.num is exist - process it [11:07:32]SAM_PROTO_GetFieldsCounters [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 13 00 00 [11:07:32]Write to MH i2c: E2 08 00 D8 13 80 13 00 00 00 00 00 00 67 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 62 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 62 00 D8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 12 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 12 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:32]wFMCommunicate OK [11:07:32]SAM_PROTO_GetFieldsCounters done [11:07:32]requested_item shift.num is exist - process it [11:07:32]requested_item shift.opened is exist - process it [11:07:32]req_shift_opened [11:07:32]FM_GetShiftState [11:07:32]SAM_PROTO_GetShiftState [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 13 01 00 [11:07:32]Write to MH i2c: E2 08 00 D9 13 80 13 01 00 00 00 00 00 69 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 0E 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 0E 00 D9 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 41 [11:07:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:07:32]wFMCommunicate OK [11:07:32]SAM_PROTO_GetShiftState done [11:07:32]FM_GetShiftState done [11:07:32]req_shift_opened done [11:07:32]requested_item shift.open_date is exist - process it [11:07:32]req_shift_open_date [11:07:32]req_shift_open_date done [11:07:32]produce_requested_data done [11:07:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118034,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:07:32]process_action_free close_receipt [11:07:32]json_value_free [11:07:32]json_value_free done [11:07:32]process_json_proto returns [11:07:32]Send response to host [11:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118034,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:07:32]free response buf [11:07:32]execute_script done [11:07:32]execute_script returns [11:07:32]free content buf [11:07:32]Sock 9.Close socket [11:07:32]Sock 9.Thread stoped [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:38]accept exits with 7 [11:08:38]New connection [11:08:38]New thread 3067415908 created [11:08:38]Thread 3067559268 joined [11:08:38]Waiting for new connection... [11:08:38] Sock 7.Parse request [11:08:38]Sock 7.Check first char [11:08:38]Sock 7.First char is OK [11:08:38]request: POST /json_proto HTTP/1.0 [11:08:38]Method: POST [11:08:38]URL: /json_proto [11:08:38]Method is POST - this is cgi request [11:08:38]url: /json_proto [11:08:38]query_string will be loaded in cgi processing [11:08:38]execute_cgi json_proto POST (null) [11:08:38]execute_cgi path=json_proto method=POST [11:08:38]POST find Content-Length [11:08:38]Host: 172.17.96.67:8080 [11:08:38]Content-Length: 678 [11:08:38]Content-Type: application/json [11:08:38] [11:08:38]POST finish read [11:08:38]Found Content-Length = 678 [11:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:38]execute_script... [11:08: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)245828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:38]POST & json_proto [11:08:38]process_json_proto [11:08:38]json parsed OK: [11:08:38]protocol is kg_v1.0 [11:08:38]action value=close_receipt [11:08:38]process_action close_receipt [11:08:38]cmd_close_receipt [11:08:38]MH_GetDate [11:08:38]Write to MH i2c: F0 00 00 DA 13 DC [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: F0 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: F0 09 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: F0 09 00 DA 13 00 B7 13 22 67 47 6C 1F 67 71 [11:08:38]GetLastDocTimeStamp 1730286449 [11:08:38]current date 1730286519 [11:08:38]FM_GetShiftState [11:08:38]SAM_PROTO_GetShiftState [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 13 01 00 [11:08:38]Write to MH i2c: E2 08 00 DB 13 80 13 01 00 00 00 00 00 6B [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:39]Read from MH i2c: E2 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 0E 00 [11:08:39]MH_I2C_Read... [11:08:39]Read from MH i2c: E2 0E 00 DB 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 43 [11:08:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:08:39]wFMCommunicate OK [11:08:39]SAM_PROTO_GetShiftState done [11:08:39]FM_GetShiftState done [11:08:39]opened in 1730246605 [11:08:39]opened+sec_in_day 1730333005 [11:08:39]quantity*price = 70044 [11:08:39]sum+1 = 70045 [11:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 95 30.10.2024 11:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118035 ФПД: 57740904106041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110839&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118035&fm=57740904106041&tin=02508201610067®Number=0000000000091782&sum=70000 [11:08:40]StoreToDocumentArchive [11:08:40]shift 545 fd 118035 [11:08:40]save to /storage/0545/doc_00118035 [11:08:40]save last doc name /storage/0545/doc_00118035 to /storage/kkm_last_doc_name [11:08:40]save OK [11:08:40]Clear old archive folders... [11:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:40]tlvbuf is 00697010 [11:08:40]SAM_PROTO_ClearQueue [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 09 00 00 [11:08:40]Write to MH i2c: E2 08 00 E8 13 80 09 00 00 00 00 00 00 6D [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 E8 13 00 90 00 6F [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]SAM_PROTO_ClearQueue done [11:08:40]KKMCreateOFDPacket [11:08:40]OFDProtocolAddRootSTLVToBuf [11:08:40]FM_MakeSignedData [11:08:40]FM_MakeSignedData [11:08:40]SAM_PROTO_SignData [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 01 02 [11:08:40]Write to MH i2c: E2 08 00 E9 13 80 0D 01 02 00 00 00 00 75 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]wFMCommunicate request_size=255 [11:08:40]MH_SAM_APDU [11:08: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 32 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 5F 00 00 00 F4 03 04 00 B7 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 13 CD 01 00 35 04 06 00 34 [11:08:40]Write to MH i2c: E2 02 01 EA 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 B7 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 13 CD 01 00 35 04 06 00 34 00 00 01 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]wFMCommunicate request_size=10 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 02 02 05 83 DA 14 08 39 [11:08:40]Write to MH i2c: E2 0D 00 EB 13 80 0D 02 02 05 00 83 DA 14 08 39 00 00 34 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 03 02 [11:08:40]Write to MH i2c: E2 08 00 EC 13 80 0D 03 02 00 00 00 00 7A [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 0B 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 0B 00 EC 13 00 86 8C 0D 8B 34 03 A8 CB 90 00 CF [11:08:40]RAPDU: 86 8C 0D 8B 34 03 A8 CB 90 00 [11:08:40]wFMCommunicate OK [11:08:40]SAM_PROTO_SignData done [11:08:40]FM_MakeSignedData done [11:08:40]CreateOFDProtocolMessage [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 11 00 00 [11:08:40]Write to MH i2c: E2 08 00 ED 13 80 11 00 00 00 00 00 00 7A [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 17 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 17 00 ED 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D1 [11:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:08:40]wFMCommunicate OK [11:08:40]CreateOFDProtocolMessage done [11:08:40]OFDSenderStorePacket 118035 [11:08:40]StoreOFDPacket docnum=118035 [11:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8D 31 07 01 DD DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 B7 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 13 CD 01 00 35 04 06 00 34 83 DA 14 08 39 86 8C 0D 8B 34 03 A8 CB [11:08:40]CheckFolder [11:08:40]dirname=/storage/ofd_packets [11:08:40]CheckFolder done [11:08:40]ProducePacketName [11:08:40]name=ofd_packets/00118035 [11:08:40]NVStorageSaveData ofd_packets/00118035 [11:08:40]File name is /storage/ofd_packets/00118035 [11:08:40]Write 301 bytes [11:08:40]NVStorageSaveData done [11:08:40]OFDSenderStorePacket done [11:08:40]KKMCreateOFDPacket done [11:08:40]NVStorageSaveData kkm_last_timestamp [11:08:40]File name is /storage/kkm_last_timestamp [11:08:40]Write 4 bytes [11:08:40]NVStorageSaveData done [11:08:40]ExternCall_PrintAddStr [11:08:40]wPrintStart [11:08:40]Write to MH i2c: 01 00 00 EE 13 01 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: 01 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: 01 07 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: 01 07 00 EE 13 00 00 00 00 00 FF 0F 16 [11:08:40]RasterBufferAndPrint [11:08:40]line Счет N : (1)245828 [11:08:40]line ИНН: 02508201610067 [11:08:40]line Контрольно-Кассовый Чек [11:08:40]line ПРОДАЖА [11:08:40]line ТРК (МРК, ГНК) : 21 [11:08:40]line Товар: 2710124130 [11:08:40]line Аи-92-К-2 [11:08:40]line 10.470 * 66.90 [11:08:40]line = 700.44 [11:08:40]line НДС 12% НСП 1% [11:08:40]line > о реализуемом товаре [11:08:40]line ОКРУГЛЕНИЕ: -0.44 [11:08:40]line ИТОГО: 700.00 [11:08:40]line Внесено: 700.00 [11:08:40]line СДАЧА: 0.00 [11:08:40]line НСП 1% : 6.20 [11:08:40]line НДС 12% : 74.38 [11:08:40]line Наличными: 700.00 [11:08:40]line Безнал.: 0.00 [11:08:40]line Место: АЗС № 173 "Партнер Нефть" [11:08:40]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:08:40]line СНО: Общий режим [11:08:40]line Чек 95 30.10.2024 11:08 [11:08:40]line Смена: 545 ФФД: 1.0 [11:08:40]line ЗНМ: 0300000115 [11:08:40]line РНМ: 0000000000091782 [11:08:40]line Версия ККМ: 001 [11:08:40]line ФМ: 0000000000871767 [11:08:40]line ФД: 118035 [11:08:40]line ФПД: 57740904106041 [11:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110839&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118035&fm=57740904106041&tin=02508201610067®Number=0000000000091782&sum=70000 [11:08:41]written 0, free lines is 4095 [11:08:41]OFD Sender: Processing packet 118035 [packets to send 77, broken 76] [11:08:41]ProducePacketName [11:08:41]name=ofd_packets/00118035 [11:08:41]OFD Sender: To server: pG, [11:08:41]CommunicateWithHost lk.salyk.kg:30040 [11:08:41]ConnectInit lk.salyk.kg [11:08:41]Connected sock=10 [11:08: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 36 37 0F 01 00 00 8D 31 07 01 DD DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 B7 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 13 CD 01 00 35 04 06 00 34 83 DA 14 08 39 86 8C 0D 8B 34 03 A8 CB [11:08: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 36 37 4F 00 00 00 9F FB 47 00 52 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 13 CD 01 00 F4 03 04 00 6F BF 21 67 B6 04 01 00 00 38 FE B2 3E 28 87 4E A7 [11:08:41]CommunicateWithHost err = 0 [11:08:41]CheckOFDResponse [11:08:41]1017 (14) - 77093643461234 [11:08:41]1041 (16) - 0000000000871767 [11:08:41]1040 (4) - 118035 [11:08:41]1012 (4) - 30.10.2024 05:09 [11:08:41]1206 (1) - 0 [11:08:41]OFD Sender: Remove packet 118035 [11:08:41]ProducePacketName [11:08:41]name=ofd_packets/00118035 [11:08:41]NVStorageDeleteData [11:08:41]Write to MH i2c: 01 00 00 18 14 2C [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 07 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 B1 0C F0 [11:08:41]RasterBufferAndPrint [11:08:41]line [11:08:41]line [11:08:41]line [11:08:41]line [11:08:41]line [11:08:41]written 0, free lines is 3255 [11:08:41]MH_Cut [11:08:41]Write to MH i2c: D1 01 00 1F 14 01 05 [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: D1 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: D1 01 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: D1 01 00 1F 14 00 04 [11:08:41]Write to MH i2c: 01 00 00 20 14 34 [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]OFD Sender: No OFD packet to send [11:08:42]*** Cut start [11:08:42]*** Purtial cut [11:08:42]*** Stage 1: CUTSNS_PIN = 1 [11:08:42]Read from MH i2c: 01 [11:08:42]MH_I2C_Read... [11:08:42]*** Stop cut motor [11:08:42]*** Cut end [11:08:42]Read from MH i2c: 01 07 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [11:08:42]process_action close_receipt done [11:08:42]requested_data is exist [11:08:42]produce_requested_data [11:08:42]requested_item fm.sn is exist - process it [11:08:42]wFMCommunicate request_size=4 [11:08:42]MH_SAM_APDU [11:08:42]CAPDU: 80 11 00 00 [11:08:42]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:42]Read from MH i2c: E2 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 17 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 17 00 21 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 06 [11:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:08:42]wFMCommunicate OK [11:08:42]requested_item fd.num is exist - process it [11:08:42]SAM_PROTO_GetFieldsCounters [11:08:42]wFMCommunicate request_size=4 [11:08:42]MH_SAM_APDU [11:08:42]CAPDU: 80 13 00 00 [11:08:42]Write to MH i2c: E2 08 00 22 14 80 13 00 00 00 00 00 00 B2 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:42]Read from MH i2c: E2 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 62 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 62 00 22 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 13 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 13 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:42]wFMCommunicate OK [11:08:42]SAM_PROTO_GetFieldsCounters done [11:08:42]requested_item shift.num is exist - process it [11:08:42]requested_item shift.opened is exist - process it [11:08:42]req_shift_opened [11:08:42]FM_GetShiftState [11:08:42]SAM_PROTO_GetShiftState [11:08:42]wFMCommunicate request_size=4 [11:08:42]MH_SAM_APDU [11:08:42]CAPDU: 80 13 01 00 [11:08:42]Write to MH i2c: E2 08 00 23 14 80 13 01 00 00 00 00 00 B4 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:42]Read from MH i2c: E2 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 0E 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 0E 00 23 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8C [11:08:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:08:42]wFMCommunicate OK [11:08:42]SAM_PROTO_GetShiftState done [11:08:42]FM_GetShiftState done [11:08:42]req_shift_opened done [11:08:42]requested_item shift.open_date is exist - process it [11:08:42]req_shift_open_date [11:08:42]req_shift_open_date done [11:08:42]produce_requested_data done [11:08:42]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118035,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:08:42]process_action_free close_receipt [11:08:42]json_value_free [11:08:42]json_value_free done [11:08:42]process_json_proto returns [11:08:42]Send response to host [11:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118035,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:08:42]free response buf [11:08:42]execute_script done [11:08:42]execute_script returns [11:08:42]free content buf [11:08:42]Sock 7.Close socket [11:08:42]Sock 7.Thread stoped [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]accept exits with 9 [11:09:31]New connection [11:09:31]New thread 3067559268 created [11:09:31]Thread 3067415908 joined [11:09:31]Waiting for new connection... [11:09:31] Sock 9.Parse request [11:09:31]Sock 9.Check first char [11:09:31]Sock 9.First char is OK [11:09:31]request: POST /json_proto HTTP/1.0 [11:09:31]Method: POST [11:09:31]URL: /json_proto [11:09:31]Method is POST - this is cgi request [11:09:31]url: /json_proto [11:09:31]query_string will be loaded in cgi processing [11:09:31]execute_cgi json_proto POST (null) [11:09:31]execute_cgi path=json_proto method=POST [11:09:31]POST find Content-Length [11:09:31]Host: 172.17.96.67:8080 [11:09:31]Content-Length: 682 [11:09:31]Content-Type: application/json [11:09:31] [11:09:31]POST finish read [11:09:31]Found Content-Length = 682 [11:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:09:31]execute_script... [11:09: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)245829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:09:31]POST & json_proto [11:09:31]process_json_proto [11:09:31]json parsed OK: [11:09:31]protocol is kg_v1.0 [11:09:31]action value=close_receipt [11:09:31]process_action close_receipt [11:09:31]cmd_close_receipt [11:09:31]MH_GetDate [11:09:31]Write to MH i2c: F0 00 00 24 14 27 [11:09:31]Write i2c OK [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 09 00 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 09 00 24 14 00 EC 13 22 67 47 6C 1F 67 F1 [11:09:31]GetLastDocTimeStamp 1730286519 [11:09:31]current date 1730286572 [11:09:31]FM_GetShiftState [11:09:31]SAM_PROTO_GetShiftState [11:09:31]wFMCommunicate request_size=4 [11:09:31]MH_SAM_APDU [11:09:31]CAPDU: 80 13 01 00 [11:09:31]Write to MH i2c: E2 08 00 25 14 80 13 01 00 00 00 00 00 B6 [11:09:31]Write i2c OK [11:09:31]MH_I2C_Read... [11:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:31]Read from MH i2c: E2 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: E2 0E 00 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: E2 0E 00 25 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8E [11:09:31]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:09:31]wFMCommunicate OK [11:09:31]SAM_PROTO_GetShiftState done [11:09:31]FM_GetShiftState done [11:09:31]opened in 1730246605 [11:09:31]opened+sec_in_day 1730333005 [11:09:31]quantity*price = 100015 [11:09:31]sum+1 = 100017 [11:09: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 96 30.10.2024 11:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118036 ФПД: 260639142658610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110932&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118036&fm=260639142658610&tin=02508201610067®Number=0000000000091782&sum=100000 [11:09:32]StoreToDocumentArchive [11:09:32]shift 545 fd 118036 [11:09:32]save to /storage/0545/doc_00118036 [11:09:32]save last doc name /storage/0545/doc_00118036 to /storage/kkm_last_doc_name [11:09:32]save OK [11:09:32]Clear old archive folders... [11:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:32]tlvbuf is B6F55BA0 [11:09:32]SAM_PROTO_ClearQueue [11:09:32]wFMCommunicate request_size=4 [11:09:32]MH_SAM_APDU [11:09:32]CAPDU: 80 09 00 00 [11:09:32]Write to MH i2c: E2 08 00 32 14 80 09 00 00 00 00 00 00 B8 [11:09:32]Write i2c OK [11:09:32]MH_I2C_Read... [11:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:32]Read from MH i2c: E2 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [11:09:32]RAPDU: 90 00 [11:09:32]wFMCommunicate OK [11:09:32]SAM_PROTO_ClearQueue done [11:09:32]KKMCreateOFDPacket [11:09:32]OFDProtocolAddRootSTLVToBuf [11:09:32]FM_MakeSignedData [11:09:32]FM_MakeSignedData [11:09:32]SAM_PROTO_SignData [11:09:32]wFMCommunicate request_size=4 [11:09:32]MH_SAM_APDU [11:09:32]CAPDU: 80 0D 01 02 [11:09:32]Write to MH i2c: E2 08 00 33 14 80 0D 01 02 00 00 00 00 C0 [11:09:32]Write i2c OK [11:09:32]MH_I2C_Read... [11:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:32]Read from MH i2c: E2 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 33 14 00 90 00 BB [11:09:32]RAPDU: 90 00 [11:09:32]wFMCommunicate OK [11:09:32]wFMCommunicate request_size=255 [11:09:32]MH_SAM_APDU [11:09: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 32 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 60 00 00 00 F4 03 04 00 EC 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CD 01 00 35 04 06 00 ED [11:09:32]Write to MH i2c: E2 02 01 34 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 EC 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CD 01 00 35 04 06 00 ED 00 00 26 [11:09:32]Write i2c OK [11:09:32]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]wFMCommunicate request_size=10 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 02 02 05 0C C7 83 42 32 [11:09:33]Write to MH i2c: E2 0D 00 35 14 80 0D 02 02 05 00 0C C7 83 42 32 00 00 97 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 03 02 [11:09:33]Write to MH i2c: E2 08 00 36 14 80 0D 03 02 00 00 00 00 C5 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0B 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0B 00 36 14 00 04 E7 A1 0A 4B 68 B5 1D 90 00 E1 [11:09:33]RAPDU: 04 E7 A1 0A 4B 68 B5 1D 90 00 [11:09:33]wFMCommunicate OK [11:09:33]SAM_PROTO_SignData done [11:09:33]FM_MakeSignedData done [11:09:33]CreateOFDProtocolMessage [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 11 00 00 [11:09:33]Write to MH i2c: E2 08 00 37 14 80 11 00 00 00 00 00 00 C5 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 17 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 17 00 37 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1C [11:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:09:33]wFMCommunicate OK [11:09:33]CreateOFDProtocolMessage done [11:09:33]OFDSenderStorePacket 118036 [11:09:33]StoreOFDPacket docnum=118036 [11:09:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 81 9D 07 01 0D 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 32 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 60 00 00 00 F4 03 04 00 EC 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CD 01 00 35 04 06 00 ED 0C C7 83 42 32 04 E7 A1 0A 4B 68 B5 1D [11:09:33]CheckFolder [11:09:33]dirname=/storage/ofd_packets [11:09:33]CheckFolder done [11:09:33]ProducePacketName [11:09:33]name=ofd_packets/00118036 [11:09:33]NVStorageSaveData ofd_packets/00118036 [11:09:33]File name is /storage/ofd_packets/00118036 [11:09:33]Write 301 bytes [11:09:33]NVStorageSaveData done [11:09:33]OFDSenderStorePacket done [11:09:33]KKMCreateOFDPacket done [11:09:33]NVStorageSaveData kkm_last_timestamp [11:09:33]File name is /storage/kkm_last_timestamp [11:09:33]Write 4 bytes [11:09:33]NVStorageSaveData done [11:09:33]ExternCall_PrintAddStr [11:09:33]wPrintStart [11:09:33]Write to MH i2c: 01 00 00 38 14 4C [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 38 14 00 00 00 00 00 FF 0F 61 [11:09:33]RasterBufferAndPrint [11:09:33]line Счет N : (1)245829 [11:09:33]line ИНН: 02508201610067 [11:09:33]line Контрольно-Кассовый Чек [11:09:33]line ПРОДАЖА [11:09:33]line ТРК (МРК, ГНК) : 11 [11:09:33]line Товар: 2710124130 [11:09:33]line Аи-92-К-2 [11:09:33]line 14.950 * 66.90 [11:09:33]line = 1000.16 [11:09:33]line НДС 12% НСП 1% [11:09:33]line > о реализуемом товаре [11:09:33]line ОКРУГЛЕНИЕ: -0.16 [11:09:33]line ИТОГО: 1000.00 [11:09:33]line Внесено: 1000.00 [11:09:33]line СДАЧА: 0.00 [11:09:33]line НСП 1% : 8.85 [11:09:33]line НДС 12% : 106.21 [11:09:33]line Наличными: 1000.00 [11:09:33]line Безнал.: 0.00 [11:09:33]line Место: АЗС № 173 "Партнер Нефть" [11:09:33]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:09:33]line СНО: Общий режим [11:09:33]line Чек 96 30.10.2024 11:09 [11:09:33]line Смена: 545 ФФД: 1.0 [11:09:33]line ЗНМ: 0300000115 [11:09:33]line РНМ: 0000000000091782 [11:09:33]line Версия ККМ: 001 [11:09:33]line ФМ: 0000000000871767 [11:09:33]line ФД: 118036 [11:09:33]line ФПД: 260639142658610 [11:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110932&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118036&fm=260639142658610&tin=02508201610067®Number=0000000000091782&sum=100000 [11:09:33]OFD Sender: Processing packet 118036 [packets to send 77, broken 76] [11:09:33]ProducePacketName [11:09:33]name=ofd_packets/00118036 [11:09:33]OFD Sender: To server: pG, [11:09:33]CommunicateWithHost lk.salyk.kg:30040 [11:09:33]ConnectInit lk.salyk.kg [11:09:33]written 0, free lines is 4095 [11:09:33]Connected sock=10 [11:09: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 36 37 0F 01 00 00 81 9D 07 01 0D 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 32 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 60 00 00 00 F4 03 04 00 EC 13 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 14 CD 01 00 35 04 06 00 ED 0C C7 83 42 32 04 E7 A1 0A 4B 68 B5 1D [11:09: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 36 37 4F 00 00 00 DB C1 47 00 10 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 36 37 10 04 04 00 14 CD 01 00 F4 03 04 00 A4 BF 21 67 B6 04 01 00 00 F7 D8 E1 30 85 10 B1 20 [11:09:34]CommunicateWithHost err = 0 [11:09:34]CheckOFDResponse [11:09:34]1017 (14) - 77093643461234 [11:09:34]1041 (16) - 0000000000871767 [11:09:34]1040 (4) - 118036 [11:09:34]1012 (4) - 30.10.2024 05:09 [11:09:34]1206 (1) - 0 [11:09:34]OFD Sender: Remove packet 118036 [11:09:34]ProducePacketName [11:09:34]name=ofd_packets/00118036 [11:09:34]NVStorageDeleteData [11:09:34]Write to MH i2c: 01 00 00 62 14 76 [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 07 00 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 B7 0C 40 [11:09:34]RasterBufferAndPrint [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]written 0, free lines is 3262 [11:09:34]MH_Cut [11:09:34]Write to MH i2c: D1 01 00 69 14 01 4F [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 01 00 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 01 00 69 14 00 4E [11:09:34]Write to MH i2c: 01 00 00 6A 14 7E [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]OFD Sender: No OFD packet to send [11:09:34]*** Cut start [11:09:34]*** Purtial cut [11:09:34]*** Stage 1: CUTSNS_PIN = 1 [11:09:35]Read from MH i2c: 01 [11:09:35]MH_I2C_Read... [11:09:35]*** Stop cut motor [11:09:35]*** Cut end [11:09:35]Read from MH i2c: 01 07 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: 01 07 00 6A 14 00 00 00 00 00 FF 0F 93 [11:09:35]process_action close_receipt done [11:09:35]requested_data is exist [11:09:35]produce_requested_data [11:09:35]requested_item fm.sn is exist - process it [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 11 00 00 [11:09:35]Write to MH i2c: E2 08 00 6B 14 80 11 00 00 00 00 00 00 F9 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 17 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 17 00 6B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 50 [11:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:09:35]wFMCommunicate OK [11:09:35]requested_item fd.num is exist - process it [11:09:35]SAM_PROTO_GetFieldsCounters [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 13 00 00 [11:09:35]Write to MH i2c: E2 08 00 6C 14 80 13 00 00 00 00 00 00 FC [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 62 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 62 00 6C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 14 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [11:09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 14 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:35]wFMCommunicate OK [11:09:35]SAM_PROTO_GetFieldsCounters done [11:09:35]requested_item shift.num is exist - process it [11:09:35]requested_item shift.opened is exist - process it [11:09:35]req_shift_opened [11:09:35]FM_GetShiftState [11:09:35]SAM_PROTO_GetShiftState [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 13 01 00 [11:09:35]Write to MH i2c: E2 08 00 6D 14 80 13 01 00 00 00 00 00 FE [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0E 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0E 00 6D 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D6 [11:09:35]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:09:35]wFMCommunicate OK [11:09:35]SAM_PROTO_GetShiftState done [11:09:35]FM_GetShiftState done [11:09:35]req_shift_opened done [11:09:35]requested_item shift.open_date is exist - process it [11:09:35]req_shift_open_date [11:09:35]req_shift_open_date done [11:09:35]produce_requested_data done [11:09:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118036,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:09:35]process_action_free close_receipt [11:09:35]json_value_free [11:09:35]json_value_free done [11:09:35]process_json_proto returns [11:09:35]Send response to host [11:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118036,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:09:35]free response buf [11:09:35]execute_script done [11:09:35]execute_script returns [11:09:35]free content buf [11:09:35]Sock 9.Close socket [11:09:35]Sock 9.Thread stoped [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:20]accept exits with 7 [11:11:20]New connection [11:11:20]New thread 3067415908 created [11:11:20]Thread 3067559268 joined [11:11:20]Waiting for new connection... [11:11:20] Sock 7.Parse request [11:11:20]Sock 7.Check first char [11:11:20]Sock 7.First char is OK [11:11:20]request: POST /json_proto HTTP/1.0 [11:11:20]Method: POST [11:11:20]URL: /json_proto [11:11:20]Method is POST - this is cgi request [11:11:20]url: /json_proto [11:11:20]query_string will be loaded in cgi processing [11:11:20]execute_cgi json_proto POST (null) [11:11:20]execute_cgi path=json_proto method=POST [11:11:20]POST find Content-Length [11:11:20]Host: 172.17.96.67:8080 [11:11:20]Content-Length: 764 [11:11:20]Content-Type: application/json [11:11:20] [11:11:20]POST finish read [11:11:20]Found Content-Length = 764 [11:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.000, "sum" : 762.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" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:20]execute_script... [11:11: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)245830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.000, "sum" : 762.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" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:20]POST & json_proto [11:11:20]process_json_proto [11:11:20]json parsed OK: [11:11:20]protocol is kg_v1.0 [11:11:20]action value=close_receipt [11:11:20]process_action close_receipt [11:11:20]cmd_close_receipt [11:11:20]MH_GetDate [11:11:20]Write to MH i2c: F0 00 00 6E 14 71 [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: F0 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: F0 09 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: F0 09 00 6E 14 00 59 14 22 67 47 6C 1F 67 A9 [11:11:20]GetLastDocTimeStamp 1730286572 [11:11:20]current date 1730286681 [11:11:20]FM_GetShiftState [11:11:20]SAM_PROTO_GetShiftState [11:11:20]wFMCommunicate request_size=4 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 13 01 00 [11:11:20]Write to MH i2c: E2 08 00 6F 14 80 13 01 00 00 00 00 00 00 [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0E 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0E 00 6F 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D8 [11:11:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:11:20]wFMCommunicate OK [11:11:20]SAM_PROTO_GetShiftState done [11:11:20]FM_GetShiftState done [11:11:20]opened in 1730246605 [11:11:20]opened+sec_in_day 1730333005 [11:11:20]quantity*price = 76200 [11:11:20]sum+1 = 76201 [11:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 762.00 НСП 1% : 6.74 НДС 12% : 80.92 Наличными: 0.00 Безнал.: 762.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 97 30.10.2024 11:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118037 ФПД: 175293015168268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111121&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118037&fm=175293015168268&tin=02508201610067®Number=0000000000091782&sum=76200 [11:11:22]StoreToDocumentArchive [11:11:22]shift 545 fd 118037 [11:11:22]save to /storage/0545/doc_00118037 [11:11:22]save last doc name /storage/0545/doc_00118037 to /storage/kkm_last_doc_name [11:11:22]save OK [11:11:22]Clear old archive folders... [11:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:22]tlvbuf is 006271D0 [11:11:22]SAM_PROTO_ClearQueue [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 09 00 00 [11:11:22]Write to MH i2c: E2 08 00 7C 14 80 09 00 00 00 00 00 00 02 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]SAM_PROTO_ClearQueue done [11:11:22]KKMCreateOFDPacket [11:11:22]OFDProtocolAddRootSTLVToBuf [11:11:22]FM_MakeSignedData [11:11:22]FM_MakeSignedData [11:11:22]SAM_PROTO_SignData [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 01 02 [11:11:22]Write to MH i2c: E2 08 00 7D 14 80 0D 01 02 00 00 00 00 0A [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]wFMCommunicate request_size=255 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 29 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 59 14 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CD 01 00 35 04 06 00 9F 6D 95 E6 [11:11:22]Write to MH i2c: E2 02 01 7E 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 29 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 59 14 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CD 01 00 35 04 06 00 9F 6D 95 E6 00 00 3B [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]wFMCommunicate request_size=7 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 02 02 02 95 0C [11:11:22]Write to MH i2c: E2 0A 00 7F 14 80 0D 02 02 02 00 95 0C 00 00 B2 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 7F 14 00 90 00 07 [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 03 02 [11:11:22]Write to MH i2c: E2 08 00 80 14 80 0D 03 02 00 00 00 00 0F [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 0B 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 0B 00 80 14 00 B1 20 BC E0 D1 5C 9C F1 90 00 37 [11:11:22]RAPDU: B1 20 BC E0 D1 5C 9C F1 90 00 [11:11:22]wFMCommunicate OK [11:11:22]SAM_PROTO_SignData done [11:11:22]FM_MakeSignedData done [11:11:22]CreateOFDProtocolMessage [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 11 00 00 [11:11:22]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 17 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 66 [11:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:11:22]wFMCommunicate OK [11:11:22]CreateOFDProtocolMessage done [11:11:22]OFDSenderStorePacket 118037 [11:11:22]StoreOFDPacket docnum=118037 [11:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 24 3B 04 01 C0 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 29 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 59 14 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CD 01 00 35 04 06 00 9F 6D 95 E6 95 0C B1 20 BC E0 D1 5C 9C F1 [11:11:22]CheckFolder [11:11:22]dirname=/storage/ofd_packets [11:11:22]CheckFolder done [11:11:22]ProducePacketName [11:11:22]name=ofd_packets/00118037 [11:11:22]NVStorageSaveData ofd_packets/00118037 [11:11:22]File name is /storage/ofd_packets/00118037 [11:11:22]Write 298 bytes [11:11:22]NVStorageSaveData done [11:11:22]OFDSenderStorePacket done [11:11:22]KKMCreateOFDPacket done [11:11:22]NVStorageSaveData kkm_last_timestamp [11:11:22]File name is /storage/kkm_last_timestamp [11:11:22]Write 4 bytes [11:11:22]NVStorageSaveData done [11:11:22]ExternCall_PrintAddStr [11:11:22]wPrintStart [11:11:22]Write to MH i2c: 01 00 00 82 14 96 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 82 14 00 00 00 00 00 FF 0F AB [11:11:22]RasterBufferAndPrint [11:11:22]line Счет N : (1)245830 [11:11:22]line ИНН: 02508201610067 [11:11:22]line Контрольно-Кассовый Чек [11:11:22]line ПРОДАЖА [11:11:22]line ТРК (МРК, ГНК) : 13 [11:11:22]line Товар: 2710194210 [11:11:22]line ДТ-К-2 [11:11:22]line 10.000 * 76.20 [11:11:22]line = 762.00 [11:11:22]line НДС 12% НСП 1% [11:11:22]line > о реализуемом товаре [11:11:22]line ИТОГО: 762.00 [11:11:22]line НСП 1% : 6.74 [11:11:22]line НДС 12% : 80.92 [11:11:22]line Наличными: 0.00 [11:11:22]line Безнал.: 762.00 [11:11:22]line Место: АЗС № 173 "Партнер Нефть" [11:11:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:11:22]line СНО: Общий режим [11:11:22]line Чек 97 30.10.2024 11:11 [11:11:22]line Смена: 545 ФФД: 1.0 [11:11:22]line ЗНМ: 0300000115 [11:11:22]line РНМ: 0000000000091782 [11:11:22]line Версия ККМ: 001 [11:11:22]line Платежная система: Mbank [11:11:22]line ФМ: 0000000000871767 [11:11:22]line ФД: 118037 [11:11:22]line ФПД: 175293015168268 [11:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111121&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118037&fm=175293015168268&tin=02508201610067®Number=0000000000091782&sum=76200 [11:11:22]OFD Sender: Processing packet 118037 [packets to send 77, broken 76] [11:11:22]ProducePacketName [11:11:22]name=ofd_packets/00118037 [11:11:22]OFD Sender: To server: pG, [11:11:22]CommunicateWithHost lk.salyk.kg:30040 [11:11:22]ConnectInit lk.salyk.kg [11:11:22]written 0, free lines is 4095 [11:11:22]Connected sock=10 [11:11: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 36 37 0C 01 00 00 24 3B 04 01 C0 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 29 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 59 14 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CD 01 00 35 04 06 00 9F 6D 95 E6 95 0C B1 20 BC E0 D1 5C 9C F1 [11:11: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 36 37 4F 00 00 00 A0 C7 47 00 6D C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 15 CD 01 00 F4 03 04 00 11 C0 21 67 B6 04 01 00 00 13 FB B3 CE 16 D7 AB 77 [11:11:23]CommunicateWithHost err = 0 [11:11:23]CheckOFDResponse [11:11:23]1017 (14) - 77093643461234 [11:11:23]1041 (16) - 0000000000871767 [11:11:23]1040 (4) - 118037 [11:11:23]1012 (4) - 30.10.2024 05:11 [11:11:23]1206 (1) - 0 [11:11:23]OFD Sender: Remove packet 118037 [11:11:23]ProducePacketName [11:11:23]name=ofd_packets/00118037 [11:11:23]NVStorageDeleteData [11:11:23]Write to MH i2c: 01 00 00 AA 14 BE [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 07 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 E2 0C B3 [11:11:23]RasterBufferAndPrint [11:11:23]line [11:11:23]line [11:11:23]line [11:11:23]line [11:11:23]line [11:11:23]written 0, free lines is 3302 [11:11:23]MH_Cut [11:11:23]Write to MH i2c: D1 01 00 B1 14 01 97 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: D1 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: D1 01 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: D1 01 00 B1 14 00 96 [11:11:23]Write to MH i2c: 01 00 00 B2 14 C6 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]OFD Sender: No OFD packet to send [11:11:24]*** Cut start [11:11:24]*** Purtial cut [11:11:24]*** Stage 1: CUTSNS_PIN = 1 [11:11:24]Read from MH i2c: 01 [11:11:24]MH_I2C_Read... [11:11:24]*** Stop cut motor [11:11:24]*** Cut end [11:11:24]Read from MH i2c: 01 07 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: 01 07 00 B2 14 00 00 00 00 00 FF 0F DB [11:11:24]process_action close_receipt done [11:11:24]requested_data is exist [11:11:24]produce_requested_data [11:11:24]requested_item fm.sn is exist - process it [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 11 00 00 [11:11:24]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 17 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 98 [11:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:11:24]wFMCommunicate OK [11:11:24]requested_item fd.num is exist - process it [11:11:24]SAM_PROTO_GetFieldsCounters [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 13 00 00 [11:11:24]Write to MH i2c: E2 08 00 B4 14 80 13 00 00 00 00 00 00 44 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 62 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 62 00 B4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 15 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [11:11: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 15 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetFieldsCounters done [11:11:24]requested_item shift.num is exist - process it [11:11:24]requested_item shift.opened is exist - process it [11:11:24]req_shift_opened [11:11:24]FM_GetShiftState [11:11:24]SAM_PROTO_GetShiftState [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 13 01 00 [11:11:24]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1E [11:11:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetShiftState done [11:11:24]FM_GetShiftState done [11:11:24]req_shift_opened done [11:11:24]requested_item shift.open_date is exist - process it [11:11:24]req_shift_open_date [11:11:24]req_shift_open_date done [11:11:24]produce_requested_data done [11:11:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118037,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:11:24]process_action_free close_receipt [11:11:24]json_value_free [11:11:24]json_value_free done [11:11:24]process_json_proto returns [11:11:24]Send response to host [11:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118037,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:11:24]free response buf [11:11:24]execute_script done [11:11:24]execute_script returns [11:11:24]free content buf [11:11:24]Sock 7.Close socket [11:11:24]Sock 7.Thread stoped [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:15]accept exits with 9 [11:17:15]New connection [11:17:15]New thread 3067559268 created [11:17:15]Thread 3067415908 joined [11:17:15]Waiting for new connection... [11:17:15] Sock 9.Parse request [11:17:15]Sock 9.Check first char [11:17:15]Sock 9.First char is OK [11:17:15]request: POST /json_proto HTTP/1.0 [11:17:15]Method: POST [11:17:15]URL: /json_proto [11:17:15]Method is POST - this is cgi request [11:17:15]url: /json_proto [11:17:15]query_string will be loaded in cgi processing [11:17:15]execute_cgi json_proto POST (null) [11:17:15]execute_cgi path=json_proto method=POST [11:17:15]POST find Content-Length [11:17:15]Host: 172.17.96.67:8080 [11:17:15]Content-Length: 678 [11:17:15]Content-Type: application/json [11:17:15] [11:17:15]POST finish read [11:17:15]Found Content-Length = 678 [11:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:15]execute_script... [11:17: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)245832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:15]POST & json_proto [11:17:15]process_json_proto [11:17:15]json parsed OK: [11:17:15]protocol is kg_v1.0 [11:17:15]action value=close_receipt [11:17:15]process_action close_receipt [11:17:15]cmd_close_receipt [11:17:15]MH_GetDate [11:17:15]Write to MH i2c: F0 00 00 B6 14 B9 [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: F0 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: F0 09 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: F0 09 00 B6 14 00 BB 15 22 67 47 6C 1F 67 54 [11:17:15]GetLastDocTimeStamp 1730286681 [11:17:15]current date 1730287035 [11:17:15]FM_GetShiftState [11:17:15]SAM_PROTO_GetShiftState [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 13 01 00 [11:17:15]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 0E 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 20 [11:17:15]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:17:15]wFMCommunicate OK [11:17:15]SAM_PROTO_GetShiftState done [11:17:15]FM_GetShiftState done [11:17:15]opened in 1730246605 [11:17:15]opened+sec_in_day 1730333005 [11:17:15]quantity*price = 70044 [11:17:15]sum+1 = 70045 [11:17:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 98 30.10.2024 11:17 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118038 ФПД: 80830074399158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111715&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118038&fm=80830074399158&tin=02508201610067®Number=0000000000091782&sum=70000 [11:17:16]StoreToDocumentArchive [11:17:16]shift 545 fd 118038 [11:17:16]save to /storage/0545/doc_00118038 [11:17:16]save last doc name /storage/0545/doc_00118038 to /storage/kkm_last_doc_name [11:17:16]save OK [11:17:16]Clear old archive folders... [11:17:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:16]tlvbuf is B6F55B70 [11:17:16]SAM_PROTO_ClearQueue [11:17:16]wFMCommunicate request_size=4 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 09 00 00 [11:17:16]Write to MH i2c: E2 08 00 C4 14 80 09 00 00 00 00 00 00 4A [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [11:17:16]RAPDU: 90 00 [11:17:16]wFMCommunicate OK [11:17:16]SAM_PROTO_ClearQueue done [11:17:16]KKMCreateOFDPacket [11:17:16]OFDProtocolAddRootSTLVToBuf [11:17:16]FM_MakeSignedData [11:17:16]FM_MakeSignedData [11:17:16]SAM_PROTO_SignData [11:17:16]wFMCommunicate request_size=4 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 0D 01 02 [11:17:16]Write to MH i2c: E2 08 00 C5 14 80 0D 01 02 00 00 00 00 52 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [11:17:16]RAPDU: 90 00 [11:17:16]wFMCommunicate OK [11:17:16]wFMCommunicate request_size=255 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BB 15 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CD 01 00 35 04 06 00 49 [11:17:16]Write to MH i2c: E2 02 01 C6 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BB 15 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CD 01 00 35 04 06 00 49 00 00 FF [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [11:17:16]RAPDU: 90 00 [11:17:16]wFMCommunicate OK [11:17:16]wFMCommunicate request_size=10 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 0D 02 02 05 83 B7 DF 29 B6 [11:17:16]Write to MH i2c: E2 0D 00 C7 14 80 0D 02 02 05 00 83 B7 DF 29 B6 00 00 57 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [11:17:16]RAPDU: 90 00 [11:17:16]wFMCommunicate OK [11:17:16]wFMCommunicate request_size=4 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 0D 03 02 [11:17:16]Write to MH i2c: E2 08 00 C8 14 80 0D 03 02 00 00 00 00 57 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 0B 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 0B 00 C8 14 00 98 0B 81 C8 EC 88 F3 5F 90 00 0A [11:17:16]RAPDU: 98 0B 81 C8 EC 88 F3 5F 90 00 [11:17:16]wFMCommunicate OK [11:17:16]SAM_PROTO_SignData done [11:17:16]FM_MakeSignedData done [11:17:16]CreateOFDProtocolMessage [11:17:16]wFMCommunicate request_size=4 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 11 00 00 [11:17:16]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 C9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AE [11:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:17:17]wFMCommunicate OK [11:17:17]CreateOFDProtocolMessage done [11:17:17]OFDSenderStorePacket 118038 [11:17:17]StoreOFDPacket docnum=118038 [11:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F9 15 07 01 F1 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BB 15 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CD 01 00 35 04 06 00 49 83 B7 DF 29 B6 98 0B 81 C8 EC 88 F3 5F [11:17:17]CheckFolder [11:17:17]dirname=/storage/ofd_packets [11:17:17]CheckFolder done [11:17:17]ProducePacketName [11:17:17]name=ofd_packets/00118038 [11:17:17]NVStorageSaveData ofd_packets/00118038 [11:17:17]File name is /storage/ofd_packets/00118038 [11:17:17]Write 301 bytes [11:17:17]NVStorageSaveData done [11:17:17]OFDSenderStorePacket done [11:17:17]KKMCreateOFDPacket done [11:17:17]NVStorageSaveData kkm_last_timestamp [11:17:17]File name is /storage/kkm_last_timestamp [11:17:17]Write 4 bytes [11:17:17]NVStorageSaveData done [11:17:17]ExternCall_PrintAddStr [11:17:17]wPrintStart [11:17:17]Write to MH i2c: 01 00 00 CA 14 DE [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [11:17:17]RasterBufferAndPrint [11:17:17]line Счет N : (1)245832 [11:17:17]line ИНН: 02508201610067 [11:17:17]line Контрольно-Кассовый Чек [11:17:17]line ПРОДАЖА [11:17:17]line ТРК (МРК, ГНК) : 11 [11:17:17]line Товар: 2710124130 [11:17:17]line Аи-92-К-2 [11:17:17]line 10.470 * 66.90 [11:17:17]line = 700.44 [11:17:17]line НДС 12% НСП 1% [11:17:17]line > о реализуемом товаре [11:17:17]line ОКРУГЛЕНИЕ: -0.44 [11:17:17]line ИТОГО: 700.00 [11:17:17]line Внесено: 700.00 [11:17:17]line СДАЧА: 0.00 [11:17:17]line НСП 1% : 6.20 [11:17:17]line НДС 12% : 74.38 [11:17:17]line Наличными: 700.00 [11:17:17]line Безнал.: 0.00 [11:17:17]line Место: АЗС № 173 "Партнер Нефть" [11:17:17]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:17:17]line СНО: Общий режим [11:17:17]line Чек 98 30.10.2024 11:17 [11:17:17]line Смена: 545 ФФД: 1.0 [11:17:17]line ЗНМ: 0300000115 [11:17:17]line РНМ: 0000000000091782 [11:17:17]line Версия ККМ: 001 [11:17:17]line ФМ: 0000000000871767 [11:17:17]line ФД: 118038 [11:17:17]line ФПД: 80830074399158 [11:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111715&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118038&fm=80830074399158&tin=02508201610067®Number=0000000000091782&sum=70000 [11:17:17]written 0, free lines is 4095 [11:17:17]OFD Sender: Processing packet 118038 [packets to send 77, broken 76] [11:17:17]ProducePacketName [11:17:17]name=ofd_packets/00118038 [11:17:17]OFD Sender: To server: pG, [11:17:17]CommunicateWithHost lk.salyk.kg:30040 [11:17:17]ConnectInit lk.salyk.kg [11:17:17]Connected sock=7 [11:17:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F9 15 07 01 F1 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BB 15 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CD 01 00 35 04 06 00 49 83 B7 DF 29 B6 98 0B 81 C8 EC 88 F3 5F [11:17: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 36 37 4F 00 00 00 FE 39 47 00 B8 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 16 CD 01 00 F4 03 04 00 73 C1 21 67 B6 04 01 00 00 91 5F C3 7D 69 EB 22 97 [11:17:17]CommunicateWithHost err = 0 [11:17:17]CheckOFDResponse [11:17:17]1017 (14) - 77093643461234 [11:17:17]1041 (16) - 0000000000871767 [11:17:17]1040 (4) - 118038 [11:17:17]1012 (4) - 30.10.2024 05:17 [11:17:17]1206 (1) - 0 [11:17:17]OFD Sender: Remove packet 118038 [11:17:17]ProducePacketName [11:17:17]name=ofd_packets/00118038 [11:17:17]NVStorageDeleteData [11:17:17]Write to MH i2c: 01 00 00 F4 14 08 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 F4 14 00 00 00 00 00 AF 0C CA [11:17:17]RasterBufferAndPrint [11:17:17]line [11:17:17]line [11:17:17]line [11:17:17]line [11:17:17]line [11:17:17]written 0, free lines is 3253 [11:17:17]MH_Cut [11:17:17]Write to MH i2c: D1 01 00 FB 14 01 E1 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: D1 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: D1 01 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: D1 01 00 FB 14 00 E0 [11:17:17]Write to MH i2c: 01 00 00 FC 14 10 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:18]OFD Sender: No OFD packet to send [11:17:18]*** Cut start [11:17:18]*** Purtial cut [11:17:18]*** Stage 1: CUTSNS_PIN = 1 [11:17:18]Read from MH i2c: 01 [11:17:18]MH_I2C_Read... [11:17:18]*** Stop cut motor [11:17:18]*** Cut end [11:17:18]Read from MH i2c: 01 07 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: 01 07 00 FC 14 00 00 00 00 00 FF 0F 25 [11:17:18]process_action close_receipt done [11:17:18]requested_data is exist [11:17:18]produce_requested_data [11:17:18]requested_item fm.sn is exist - process it [11:17:18]wFMCommunicate request_size=4 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 11 00 00 [11:17:18]Write to MH i2c: E2 08 00 FD 14 80 11 00 00 00 00 00 00 8B [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:19]Read from MH i2c: E2 17 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 17 00 FD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E2 [11:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:17:19]wFMCommunicate OK [11:17:19]requested_item fd.num is exist - process it [11:17:19]SAM_PROTO_GetFieldsCounters [11:17:19]wFMCommunicate request_size=4 [11:17:19]MH_SAM_APDU [11:17:19]CAPDU: 80 13 00 00 [11:17:19]Write to MH i2c: E2 08 00 FE 14 80 13 00 00 00 00 00 00 8E [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:19]Read from MH i2c: E2 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 62 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 62 00 FE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 16 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:17: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 16 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:19]wFMCommunicate OK [11:17:19]SAM_PROTO_GetFieldsCounters done [11:17:19]requested_item shift.num is exist - process it [11:17:19]requested_item shift.opened is exist - process it [11:17:19]req_shift_opened [11:17:19]FM_GetShiftState [11:17:19]SAM_PROTO_GetShiftState [11:17:19]wFMCommunicate request_size=4 [11:17:19]MH_SAM_APDU [11:17:19]CAPDU: 80 13 01 00 [11:17:19]Write to MH i2c: E2 08 00 FF 14 80 13 01 00 00 00 00 00 90 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:19]Read from MH i2c: E2 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 0E 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 0E 00 FF 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 68 [11:17:19]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:17:19]wFMCommunicate OK [11:17:19]SAM_PROTO_GetShiftState done [11:17:19]FM_GetShiftState done [11:17:19]req_shift_opened done [11:17:19]requested_item shift.open_date is exist - process it [11:17:19]req_shift_open_date [11:17:19]req_shift_open_date done [11:17:19]produce_requested_data done [11:17:19]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118038,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:17:19]process_action_free close_receipt [11:17:19]json_value_free [11:17:19]json_value_free done [11:17:19]process_json_proto returns [11:17:19]Send response to host [11:17:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118038,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:17:19]free response buf [11:17:19]execute_script done [11:17:19]execute_script returns [11:17:19]free content buf [11:17:19]Sock 9.Close socket [11:17:19]Sock 9.Thread stoped [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:13]accept exits with 10 [11:19:13]New connection [11:19:13]New thread 3067415908 created [11:19:13]Thread 3067559268 joined [11:19:13]Waiting for new connection... [11:19:13] Sock 10.Parse request [11:19:13]Sock 10.Check first char [11:19:13]Sock 10.First char is OK [11:19:13]request: POST /json_proto HTTP/1.0 [11:19:13]Method: POST [11:19:13]URL: /json_proto [11:19:13]Method is POST - this is cgi request [11:19:13]url: /json_proto [11:19:13]query_string will be loaded in cgi processing [11:19:13]execute_cgi json_proto POST (null) [11:19:13]execute_cgi path=json_proto method=POST [11:19:13]POST find Content-Length [11:19:13]Host: 172.17.96.67:8080 [11:19:13]Content-Length: 677 [11:19:13]Content-Type: application/json [11:19:13] [11:19:13]POST finish read [11:19:13]Found Content-Length = 677 [11:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:19:13]execute_script... [11:19: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)245834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:19:13]POST & json_proto [11:19:13]process_json_proto [11:19:13]json parsed OK: [11:19:13]protocol is kg_v1.0 [11:19:13]action value=close_receipt [11:19:13]process_action close_receipt [11:19:13]cmd_close_receipt [11:19:13]MH_GetDate [11:19:13]Write to MH i2c: F0 00 00 00 15 04 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: F0 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: F0 09 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: F0 09 00 00 15 00 32 16 22 67 47 6C 1F 67 17 [11:19:13]GetLastDocTimeStamp 1730287035 [11:19:13]current date 1730287154 [11:19:13]FM_GetShiftState [11:19:13]SAM_PROTO_GetShiftState [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 13 01 00 [11:19:13]Write to MH i2c: E2 08 00 01 15 80 13 01 00 00 00 00 00 93 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0E 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0E 00 01 15 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6B [11:19:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_GetShiftState done [11:19:13]FM_GetShiftState done [11:19:13]opened in 1730246605 [11:19:13]opened+sec_in_day 1730333005 [11:19:13]quantity*price = 30038 [11:19:13]sum+1 = 30039 [11:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 99 30.10.2024 11:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118039 ФПД: 261231964251777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111914&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118039&fm=261231964251777&tin=02508201610067®Number=0000000000091782&sum=30000 [11:19:15]StoreToDocumentArchive [11:19:15]shift 545 fd 118039 [11:19:15]save to /storage/0545/doc_00118039 [11:19:15]save last doc name /storage/0545/doc_00118039 to /storage/kkm_last_doc_name [11:19:15]save OK [11:19:15]Clear old archive folders... [11:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:15]tlvbuf is 00697680 [11:19:15]SAM_PROTO_ClearQueue [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 09 00 00 [11:19:15]Write to MH i2c: E2 08 00 0E 15 80 09 00 00 00 00 00 00 95 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 0E 15 00 90 00 97 [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]SAM_PROTO_ClearQueue done [11:19:15]KKMCreateOFDPacket [11:19:15]OFDProtocolAddRootSTLVToBuf [11:19:15]FM_MakeSignedData [11:19:15]FM_MakeSignedData [11:19:15]SAM_PROTO_SignData [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 0D 01 02 [11:19:15]Write to MH i2c: E2 08 00 0F 15 80 0D 01 02 00 00 00 00 9D [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]wFMCommunicate request_size=255 [11:19:15]MH_SAM_APDU [11:19: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 32 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 63 00 00 00 F4 03 04 00 32 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CD 01 00 35 04 06 00 ED [11:19:15]Write to MH i2c: E2 02 01 10 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 32 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CD 01 00 35 04 06 00 ED 00 00 4C [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]wFMCommunicate request_size=10 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 0D 02 02 05 96 CE 6E E6 81 [11:19:15]Write to MH i2c: E2 0D 00 11 15 80 0D 02 02 05 00 96 CE 6E E6 81 00 00 E3 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 0D 03 02 [11:19:15]Write to MH i2c: E2 08 00 12 15 80 0D 03 02 00 00 00 00 A2 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0B 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0B 00 12 15 00 94 AE 8A 45 A3 82 11 F1 90 00 DB [11:19:15]RAPDU: 94 AE 8A 45 A3 82 11 F1 90 00 [11:19:15]wFMCommunicate OK [11:19:15]SAM_PROTO_SignData done [11:19:15]FM_MakeSignedData done [11:19:15]CreateOFDProtocolMessage [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 11 00 00 [11:19:15]Write to MH i2c: E2 08 00 13 15 80 11 00 00 00 00 00 00 A2 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 17 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 17 00 13 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F9 [11:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:19:15]wFMCommunicate OK [11:19:15]CreateOFDProtocolMessage done [11:19:15]OFDSenderStorePacket 118039 [11:19:15]StoreOFDPacket docnum=118039 [11:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FD 87 07 01 59 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 63 00 00 00 F4 03 04 00 32 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CD 01 00 35 04 06 00 ED 96 CE 6E E6 81 94 AE 8A 45 A3 82 11 F1 [11:19:15]CheckFolder [11:19:15]dirname=/storage/ofd_packets [11:19:15]CheckFolder done [11:19:15]ProducePacketName [11:19:15]name=ofd_packets/00118039 [11:19:15]NVStorageSaveData ofd_packets/00118039 [11:19:15]File name is /storage/ofd_packets/00118039 [11:19:15]Write 301 bytes [11:19:15]NVStorageSaveData done [11:19:15]OFDSenderStorePacket done [11:19:15]KKMCreateOFDPacket done [11:19:15]NVStorageSaveData kkm_last_timestamp [11:19:15]File name is /storage/kkm_last_timestamp [11:19:15]Write 4 bytes [11:19:15]NVStorageSaveData done [11:19:15]ExternCall_PrintAddStr [11:19:15]wPrintStart [11:19:15]Write to MH i2c: 01 00 00 14 15 29 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: 01 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: 01 07 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 FF 0F 3E [11:19:15]RasterBufferAndPrint [11:19:15]line Счет N : (1)245834 [11:19:15]line ИНН: 02508201610067 [11:19:15]line Контрольно-Кассовый Чек [11:19:15]line ПРОДАЖА [11:19:15]line ТРК (МРК, ГНК) : 11 [11:19:15]line Товар: 2710124130 [11:19:15]line Аи-92-К-2 [11:19:15]line 4.490 * 66.90 [11:19:15]line = 300.38 [11:19:15]line НДС 12% НСП 1% [11:19:15]line > о реализуемом товаре [11:19:15]line ОКРУГЛЕНИЕ: -0.38 [11:19:15]line ИТОГО: 300.00 [11:19:15]line Внесено: 300.00 [11:19:15]line СДАЧА: 0.00 [11:19:15]line НСП 1% : 2.66 [11:19:15]line НДС 12% : 31.90 [11:19:15]line Наличными: 300.00 [11:19:15]line Безнал.: 0.00 [11:19:15]line Место: АЗС № 173 "Партнер Нефть" [11:19:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:19:15]line СНО: Общий режим [11:19:15]line Чек 99 30.10.2024 11:19 [11:19:15]line Смена: 545 ФФД: 1.0 [11:19:15]line ЗНМ: 0300000115 [11:19:15]line РНМ: 0000000000091782 [11:19:15]line Версия ККМ: 001 [11:19:15]line ФМ: 0000000000871767 [11:19:15]line ФД: 118039 [11:19:15]line ФПД: 261231964251777 [11:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111914&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118039&fm=261231964251777&tin=02508201610067®Number=0000000000091782&sum=30000 [11:19:16]written 0, free lines is 4095 [11:19:16]OFD Sender: Processing packet 118039 [packets to send 77, broken 76] [11:19:16]ProducePacketName [11:19:16]name=ofd_packets/00118039 [11:19:16]OFD Sender: To server: pG, [11:19:16]CommunicateWithHost lk.salyk.kg:30040 [11:19:16]ConnectInit lk.salyk.kg [11:19:16]Connected sock=9 [11:19: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 36 37 0F 01 00 00 FD 87 07 01 59 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 63 00 00 00 F4 03 04 00 32 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 17 CD 01 00 35 04 06 00 ED 96 CE 6E E6 81 94 AE 8A 45 A3 82 11 F1 [11:19: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 36 37 4F 00 00 00 A1 ED 47 00 D0 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 36 37 10 04 04 00 17 CD 01 00 F4 03 04 00 EA C1 21 67 B6 04 01 00 00 3A 52 51 EE D3 33 B8 24 [11:19:16]CommunicateWithHost err = 0 [11:19:16]CheckOFDResponse [11:19:16]1017 (14) - 77093643461234 [11:19:16]1041 (16) - 0000000000871767 [11:19:16]1040 (4) - 118039 [11:19:16]1012 (4) - 30.10.2024 05:19 [11:19:16]1206 (1) - 0 [11:19:16]OFD Sender: Remove packet 118039 [11:19:16]ProducePacketName [11:19:16]name=ofd_packets/00118039 [11:19:16]NVStorageDeleteData [11:19:16]Write to MH i2c: 01 00 00 3E 15 53 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 07 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 07 00 3E 15 00 00 00 00 00 AB 0C 11 [11:19:16]RasterBufferAndPrint [11:19:16]line [11:19:16]line [11:19:16]line [11:19:16]line [11:19:16]line [11:19:16]written 0, free lines is 3249 [11:19:16]MH_Cut [11:19:16]Write to MH i2c: D1 01 00 45 15 01 2C [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: D1 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: D1 01 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: D1 01 00 45 15 00 2B [11:19:16]Write to MH i2c: 01 00 00 46 15 5B [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]OFD Sender: No OFD packet to send [11:19:17]*** Cut start [11:19:17]*** Purtial cut [11:19:17]*** Stage 1: CUTSNS_PIN = 1 [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]*** Stop cut motor [11:19:17]*** Cut end [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 FF 0F 70 [11:19:17]process_action close_receipt done [11:19:17]requested_data is exist [11:19:17]produce_requested_data [11:19:17]requested_item fm.sn is exist - process it [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 11 00 00 [11:19:17]Write to MH i2c: E2 08 00 47 15 80 11 00 00 00 00 00 00 D6 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 47 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2D [11:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:19:17]wFMCommunicate OK [11:19:17]requested_item fd.num is exist - process it [11:19:17]SAM_PROTO_GetFieldsCounters [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 13 00 00 [11:19:17]Write to MH i2c: E2 08 00 48 15 80 13 00 00 00 00 00 00 D9 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 62 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 62 00 48 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 17 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [11:19: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 17 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_GetFieldsCounters done [11:19:17]requested_item shift.num is exist - process it [11:19:17]requested_item shift.opened is exist - process it [11:19:17]req_shift_opened [11:19:17]FM_GetShiftState [11:19:17]SAM_PROTO_GetShiftState [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 13 01 00 [11:19:17]Write to MH i2c: E2 08 00 49 15 80 13 01 00 00 00 00 00 DB [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0E 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0E 00 49 15 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B3 [11:19:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_GetShiftState done [11:19:17]FM_GetShiftState done [11:19:17]req_shift_opened done [11:19:17]requested_item shift.open_date is exist - process it [11:19:17]req_shift_open_date [11:19:17]req_shift_open_date done [11:19:17]produce_requested_data done [11:19:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118039,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:19:17]process_action_free close_receipt [11:19:17]json_value_free [11:19:17]json_value_free done [11:19:17]process_json_proto returns [11:19:17]Send response to host [11:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118039,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:19:17]free response buf [11:19:17]execute_script done [11:19:17]execute_script returns [11:19:17]free content buf [11:19:17]Sock 10.Close socket [11:19:17]Sock 10.Thread stoped [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:19:59]accept exits with 7 [11:19:59]New connection [11:19:59]New thread 3067559268 created [11:19:59]Thread 3067415908 joined [11:19:59]Waiting for new connection... [11:19:59] Sock 7.Parse request [11:19:59]Sock 7.Check first char [11:19:59]Sock 7.First char is OK [11:19:59]request: POST /json_proto HTTP/1.0 [11:19:59]Method: POST [11:19:59]URL: /json_proto [11:19:59]Method is POST - this is cgi request [11:19:59]url: /json_proto [11:19:59]query_string will be loaded in cgi processing [11:19:59]execute_cgi json_proto POST (null) [11:19:59]execute_cgi path=json_proto method=POST [11:19:59]POST find Content-Length [11:19:59]Host: 172.17.96.67:8080 [11:19:59]Content-Length: 678 [11:19:59]Content-Type: application/json [11:19:59] [11:19:59]POST finish read [11:19:59]Found Content-Length = 678 [11:19:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:59]execute_script... [11:19: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)245833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:59]POST & json_proto [11:19:59]process_json_proto [11:19:59]json parsed OK: [11:19:59]protocol is kg_v1.0 [11:19:59]action value=close_receipt [11:19:59]process_action close_receipt [11:19:59]cmd_close_receipt [11:19:59]MH_GetDate [11:19:59]Write to MH i2c: F0 00 00 4A 15 4E [11:19:59]Write i2c OK [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: F0 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: F0 09 00 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: F0 09 00 4A 15 00 5F 16 22 67 47 6C 1F 67 8E [11:19:59]GetLastDocTimeStamp 1730287154 [11:19:59]current date 1730287199 [11:19:59]FM_GetShiftState [11:19:59]SAM_PROTO_GetShiftState [11:19:59]wFMCommunicate request_size=4 [11:19:59]MH_SAM_APDU [11:19:59]CAPDU: 80 13 01 00 [11:19:59]Write to MH i2c: E2 08 00 4B 15 80 13 01 00 00 00 00 00 DD [11:19:59]Write i2c OK [11:19:59]MH_I2C_Read... [11:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:59]Read from MH i2c: E2 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: E2 0E 00 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: E2 0E 00 4B 15 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B5 [11:19:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:19:59]wFMCommunicate OK [11:19:59]SAM_PROTO_GetShiftState done [11:19:59]FM_GetShiftState done [11:19:59]opened in 1730246605 [11:19:59]opened+sec_in_day 1730333005 [11:19:59]quantity*price = 70044 [11:19:59]sum+1 = 70045 [11:19:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 100 30.10.2024 11:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118040 ФПД: 37356342076964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111959&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118040&fm=37356342076964&tin=02508201610067®Number=0000000000091782&sum=70000 [11:20:00]StoreToDocumentArchive [11:20:00]shift 545 fd 118040 [11:20:00]save to /storage/0545/doc_00118040 [11:20:00]save last doc name /storage/0545/doc_00118040 to /storage/kkm_last_doc_name [11:20:00]save OK [11:20:00]Clear old archive folders... [11:20:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:00]tlvbuf is 006273A0 [11:20:00]SAM_PROTO_ClearQueue [11:20:00]wFMCommunicate request_size=4 [11:20:00]MH_SAM_APDU [11:20:00]CAPDU: 80 09 00 00 [11:20:00]Write to MH i2c: E2 08 00 58 15 80 09 00 00 00 00 00 00 DF [11:20:00]Write i2c OK [11:20:00]MH_I2C_Read... [11:20:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:00]Read from MH i2c: E2 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 58 15 00 90 00 E1 [11:20:00]RAPDU: 90 00 [11:20:00]wFMCommunicate OK [11:20:00]SAM_PROTO_ClearQueue done [11:20:00]KKMCreateOFDPacket [11:20:00]OFDProtocolAddRootSTLVToBuf [11:20:00]FM_MakeSignedData [11:20:00]FM_MakeSignedData [11:20:00]SAM_PROTO_SignData [11:20:00]wFMCommunicate request_size=4 [11:20:00]MH_SAM_APDU [11:20:00]CAPDU: 80 0D 01 02 [11:20:00]Write to MH i2c: E2 08 00 59 15 80 0D 01 02 00 00 00 00 E7 [11:20:00]Write i2c OK [11:20:00]MH_I2C_Read... [11:20:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:00]Read from MH i2c: E2 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [11:20:00]RAPDU: 90 00 [11:20:00]wFMCommunicate OK [11:20:00]wFMCommunicate request_size=255 [11:20:00]MH_SAM_APDU [11:20: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 32 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 64 00 00 00 F4 03 04 00 5F 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 18 CD 01 00 35 04 06 00 21 [11:20:00]Write to MH i2c: E2 02 01 5A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 5F 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 18 CD 01 00 35 04 06 00 21 00 00 15 [11:20:00]Write i2c OK [11:20:00]MH_I2C_Read... [11:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:00]Read from MH i2c: E2 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [11:20:00]RAPDU: 90 00 [11:20:00]wFMCommunicate OK [11:20:00]wFMCommunicate request_size=10 [11:20:00]MH_SAM_APDU [11:20:00]CAPDU: 80 0D 02 02 05 F9 B3 7F E6 24 [11:20:00]Write to MH i2c: E2 0D 00 5B 15 80 0D 02 02 05 00 F9 B3 7F E6 24 00 00 29 [11:20:00]Write i2c OK [11:20:00]MH_I2C_Read... [11:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:00]Read from MH i2c: E2 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [11:20:00]RAPDU: 90 00 [11:20:00]wFMCommunicate OK [11:20:00]wFMCommunicate request_size=4 [11:20:00]MH_SAM_APDU [11:20:00]CAPDU: 80 0D 03 02 [11:20:00]Write to MH i2c: E2 08 00 5C 15 80 0D 03 02 00 00 00 00 EC [11:20:00]Write i2c OK [11:20:00]MH_I2C_Read... [11:20:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:00]Read from MH i2c: E2 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 0B 00 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 0B 00 5C 15 00 92 A7 E0 4D 97 09 9B D3 90 00 61 [11:20:00]RAPDU: 92 A7 E0 4D 97 09 9B D3 90 00 [11:20:00]wFMCommunicate OK [11:20:00]SAM_PROTO_SignData done [11:20:00]FM_MakeSignedData done [11:20:00]CreateOFDProtocolMessage [11:20:00]wFMCommunicate request_size=4 [11:20:00]MH_SAM_APDU [11:20:00]CAPDU: 80 11 00 00 [11:20:00]Write to MH i2c: E2 08 00 5D 15 80 11 00 00 00 00 00 00 EC [11:20:00]Write i2c OK [11:20:00]MH_I2C_Read... [11:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:00]Read from MH i2c: E2 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 17 00 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: E2 17 00 5D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 43 [11:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:20:00]wFMCommunicate OK [11:20:00]CreateOFDProtocolMessage done [11:20:00]OFDSenderStorePacket 118040 [11:20:00]StoreOFDPacket docnum=118040 [11:20:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 41 9D 07 01 D8 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 32 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 64 00 00 00 F4 03 04 00 5F 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 18 CD 01 00 35 04 06 00 21 F9 B3 7F E6 24 92 A7 E0 4D 97 09 9B D3 [11:20:00]CheckFolder [11:20:00]dirname=/storage/ofd_packets [11:20:00]CheckFolder done [11:20:00]ProducePacketName [11:20:00]name=ofd_packets/00118040 [11:20:00]NVStorageSaveData ofd_packets/00118040 [11:20:00]File name is /storage/ofd_packets/00118040 [11:20:00]Write 301 bytes [11:20:00]NVStorageSaveData done [11:20:00]OFDSenderStorePacket done [11:20:00]KKMCreateOFDPacket done [11:20:00]NVStorageSaveData kkm_last_timestamp [11:20:00]File name is /storage/kkm_last_timestamp [11:20:00]Write 4 bytes [11:20:00]NVStorageSaveData done [11:20:00]ExternCall_PrintAddStr [11:20:00]wPrintStart [11:20:00]Write to MH i2c: 01 00 00 5E 15 73 [11:20:00]Write i2c OK [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: 01 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: 01 07 00 [11:20:00]MH_I2C_Read... [11:20:00]Read from MH i2c: 01 07 00 5E 15 00 00 00 00 00 FF 0F 88 [11:20:00]RasterBufferAndPrint [11:20:00]line Счет N : (1)245833 [11:20:00]line ИНН: 02508201610067 [11:20:00]line Контрольно-Кассовый Чек [11:20:00]line ПРОДАЖА [11:20:00]line ТРК (МРК, ГНК) : 21 [11:20:00]line Товар: 2710124130 [11:20:00]line Аи-92-К-2 [11:20:00]line 10.470 * 66.90 [11:20:00]line = 700.44 [11:20:00]line НДС 12% НСП 1% [11:20:00]line > о реализуемом товаре [11:20:00]line ОКРУГЛЕНИЕ: -0.44 [11:20:00]line ИТОГО: 700.00 [11:20:00]line Внесено: 700.00 [11:20:00]line СДАЧА: 0.00 [11:20:00]line НСП 1% : 6.20 [11:20:00]line НДС 12% : 74.38 [11:20:00]line Наличными: 700.00 [11:20:00]line Безнал.: 0.00 [11:20:00]line Место: АЗС № 173 "Партнер Нефть" [11:20:00]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:20:00]line СНО: Общий режим [11:20:00]line Чек 100 30.10.2024 11:19 [11:20:00]line Смена: 545 ФФД: 1.0 [11:20:00]line ЗНМ: 0300000115 [11:20:00]line РНМ: 0000000000091782 [11:20:00]line Версия ККМ: 001 [11:20:00]line ФМ: 0000000000871767 [11:20:00]line ФД: 118040 [11:20:00]line ФПД: 37356342076964 [11:20:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111959&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118040&fm=37356342076964&tin=02508201610067®Number=0000000000091782&sum=70000 [11:20:01]written 0, free lines is 4095 [11:20:01]OFD Sender: Processing packet 118040 [packets to send 77, broken 76] [11:20:01]ProducePacketName [11:20:01]name=ofd_packets/00118040 [11:20:01]OFD Sender: To server: pG, [11:20:01]CommunicateWithHost lk.salyk.kg:30040 [11:20:01]ConnectInit lk.salyk.kg [11:20:01]Connected sock=10 [11:20: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 36 37 0F 01 00 00 41 9D 07 01 D8 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 32 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 64 00 00 00 F4 03 04 00 5F 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 18 CD 01 00 35 04 06 00 21 F9 B3 7F E6 24 92 A7 E0 4D 97 09 9B D3 [11:20: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 36 37 4F 00 00 00 02 C0 47 00 B2 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 36 37 10 04 04 00 18 CD 01 00 F4 03 04 00 17 C2 21 67 B6 04 01 00 00 94 25 BB 87 1E 24 F3 B8 [11:20:01]CommunicateWithHost err = 0 [11:20:01]CheckOFDResponse [11:20:01]1017 (14) - 77093643461234 [11:20:01]1041 (16) - 0000000000871767 [11:20:01]1040 (4) - 118040 [11:20:01]1012 (4) - 30.10.2024 05:20 [11:20:01]1206 (1) - 0 [11:20:01]OFD Sender: Remove packet 118040 [11:20:01]ProducePacketName [11:20:01]name=ofd_packets/00118040 [11:20:01]NVStorageDeleteData [11:20:01]Write to MH i2c: 01 00 00 88 15 9D [11:20:01]Write i2c OK [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: 01 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: 01 07 00 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: 01 07 00 88 15 00 00 00 00 00 B1 0C 61 [11:20:01]RasterBufferAndPrint [11:20:01]line [11:20:01]line [11:20:01]line [11:20:01]line [11:20:01]line [11:20:01]written 0, free lines is 3255 [11:20:01]MH_Cut [11:20:01]Write to MH i2c: D1 01 00 8F 15 01 76 [11:20:01]Write i2c OK [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: D1 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: D1 01 00 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: D1 01 00 8F 15 00 75 [11:20:01]Write to MH i2c: 01 00 00 90 15 A5 [11:20:01]Write i2c OK [11:20:01]MH_I2C_Read... [11:20:01]OFD Sender: No OFD packet to send [11:20:02]*** Cut start [11:20:02]*** Purtial cut [11:20:02]*** Stage 1: CUTSNS_PIN = 1 [11:20:02]Read from MH i2c: 01 [11:20:02]MH_I2C_Read... [11:20:02]*** Stop cut motor [11:20:02]*** Cut end [11:20:02]Read from MH i2c: 01 07 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: 01 07 00 90 15 00 00 00 00 00 FF 0F BA [11:20:02]process_action close_receipt done [11:20:02]requested_data is exist [11:20:02]produce_requested_data [11:20:02]requested_item fm.sn is exist - process it [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 11 00 00 [11:20:02]Write to MH i2c: E2 08 00 91 15 80 11 00 00 00 00 00 00 20 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 17 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 17 00 91 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 77 [11:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:20:02]wFMCommunicate OK [11:20:02]requested_item fd.num is exist - process it [11:20:02]SAM_PROTO_GetFieldsCounters [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 13 00 00 [11:20:02]Write to MH i2c: E2 08 00 92 15 80 13 00 00 00 00 00 00 23 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 62 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 62 00 92 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 18 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [11:20: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 18 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:02]wFMCommunicate OK [11:20:02]SAM_PROTO_GetFieldsCounters done [11:20:02]requested_item shift.num is exist - process it [11:20:02]requested_item shift.opened is exist - process it [11:20:02]req_shift_opened [11:20:02]FM_GetShiftState [11:20:02]SAM_PROTO_GetShiftState [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 13 01 00 [11:20:02]Write to MH i2c: E2 08 00 93 15 80 13 01 00 00 00 00 00 25 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:03]Read from MH i2c: E2 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: E2 0E 00 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: E2 0E 00 93 15 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FD [11:20:03]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:20:03]wFMCommunicate OK [11:20:03]SAM_PROTO_GetShiftState done [11:20:03]FM_GetShiftState done [11:20:03]req_shift_opened done [11:20:03]requested_item shift.open_date is exist - process it [11:20:03]req_shift_open_date [11:20:03]req_shift_open_date done [11:20:03]produce_requested_data done [11:20:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118040,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:20:03]process_action_free close_receipt [11:20:03]json_value_free [11:20:03]json_value_free done [11:20:03]process_json_proto returns [11:20:03]Send response to host [11:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118040,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:20:03]free response buf [11:20:03]execute_script done [11:20:03]execute_script returns [11:20:03]free content buf [11:20:03]Sock 7.Close socket [11:20:03]Sock 7.Thread stoped [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:20:59]accept exits with 9 [11:20:59]New connection [11:20:59]New thread 3067415908 created [11:20:59]Thread 3067559268 joined [11:20:59]Waiting for new connection... [11:20:59] Sock 9.Parse request [11:20:59]Sock 9.Check first char [11:20:59]Sock 9.First char is OK [11:20:59]request: POST /json_proto HTTP/1.0 [11:20:59]Method: POST [11:20:59]URL: /json_proto [11:20:59]Method is POST - this is cgi request [11:20:59]url: /json_proto [11:20:59]query_string will be loaded in cgi processing [11:20:59]execute_cgi json_proto POST (null) [11:20:59]execute_cgi path=json_proto method=POST [11:20:59]POST find Content-Length [11:20:59]Host: 172.17.96.67:8080 [11:20:59]Content-Length: 677 [11:20:59]Content-Type: application/json [11:20:59] [11:20:59]POST finish read [11:20:59]Found Content-Length = 677 [11:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:59]execute_script... [11:20: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)245835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:59]POST & json_proto [11:20:59]process_json_proto [11:20:59]json parsed OK: [11:20:59]protocol is kg_v1.0 [11:20:59]action value=close_receipt [11:20:59]process_action close_receipt [11:20:59]cmd_close_receipt [11:20:59]MH_GetDate [11:20:59]Write to MH i2c: F0 00 00 94 15 98 [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: F0 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: F0 09 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: F0 09 00 94 15 00 9B 16 22 67 47 6C 1F 67 14 [11:20:59]GetLastDocTimeStamp 1730287199 [11:20:59]current date 1730287259 [11:20:59]FM_GetShiftState [11:20:59]SAM_PROTO_GetShiftState [11:20:59]wFMCommunicate request_size=4 [11:20:59]MH_SAM_APDU [11:20:59]CAPDU: 80 13 01 00 [11:20:59]Write to MH i2c: E2 08 00 95 15 80 13 01 00 00 00 00 00 27 [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:59]Read from MH i2c: E2 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 0E 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 0E 00 95 15 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FF [11:20:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:20:59]wFMCommunicate OK [11:20:59]SAM_PROTO_GetShiftState done [11:20:59]FM_GetShiftState done [11:20:59]opened in 1730246605 [11:20:59]opened+sec_in_day 1730333005 [11:20:59]quantity*price = 40006 [11:20:59]sum+1 = 40007 [11:20:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 101 30.10.2024 11:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118041 ФПД: 222857844446350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112059&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118041&fm=222857844446350&tin=02508201610067®Number=0000000000091782&sum=40000 [11:21:00]StoreToDocumentArchive [11:21:00]shift 545 fd 118041 [11:21:00]save to /storage/0545/doc_00118041 [11:21:00]save last doc name /storage/0545/doc_00118041 to /storage/kkm_last_doc_name [11:21:00]save OK [11:21:00]Clear old archive folders... [11:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:00]tlvbuf is 00697010 [11:21:00]SAM_PROTO_ClearQueue [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 09 00 00 [11:21:00]Write to MH i2c: E2 08 00 A2 15 80 09 00 00 00 00 00 00 29 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 A2 15 00 90 00 2B [11:21:00]RAPDU: 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_ClearQueue done [11:21:00]KKMCreateOFDPacket [11:21:00]OFDProtocolAddRootSTLVToBuf [11:21:00]FM_MakeSignedData [11:21:00]FM_MakeSignedData [11:21:00]SAM_PROTO_SignData [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 0D 01 02 [11:21:00]Write to MH i2c: E2 08 00 A3 15 80 0D 01 02 00 00 00 00 31 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 A3 15 00 90 00 2C [11:21:00]RAPDU: 90 00 [11:21:00]wFMCommunicate OK [11:21:00]wFMCommunicate request_size=255 [11:21:00]MH_SAM_APDU [11:21: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 32 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 65 00 00 00 F4 03 04 00 9B 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 19 CD 01 00 35 04 06 00 CA [11:21:00]Write to MH i2c: E2 02 01 A4 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 9B 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 19 CD 01 00 35 04 06 00 CA 00 00 05 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [11:21:00]RAPDU: 90 00 [11:21:00]wFMCommunicate OK [11:21:00]wFMCommunicate request_size=10 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 0D 02 02 05 B0 22 A7 54 8E [11:21:00]Write to MH i2c: E2 0D 00 A5 15 80 0D 02 02 05 00 B0 22 A7 54 8E 00 00 99 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [11:21:00]RAPDU: 90 00 [11:21:00]wFMCommunicate OK [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 0D 03 02 [11:21:00]Write to MH i2c: E2 08 00 A6 15 80 0D 03 02 00 00 00 00 36 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0B 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0B 00 A6 15 00 F2 11 7B EB 0D DA 3D B0 90 00 74 [11:21:01]RAPDU: F2 11 7B EB 0D DA 3D B0 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_SignData done [11:21:01]FM_MakeSignedData done [11:21:01]CreateOFDProtocolMessage [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 11 00 00 [11:21:01]Write to MH i2c: E2 08 00 A7 15 80 11 00 00 00 00 00 00 36 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 A7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8D [11:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:21:01]wFMCommunicate OK [11:21:01]CreateOFDProtocolMessage done [11:21:01]OFDSenderStorePacket 118041 [11:21:01]StoreOFDPacket docnum=118041 [11:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7D 46 07 01 E4 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 9B 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 19 CD 01 00 35 04 06 00 CA B0 22 A7 54 8E F2 11 7B EB 0D DA 3D B0 [11:21:01]CheckFolder [11:21:01]dirname=/storage/ofd_packets [11:21:01]CheckFolder done [11:21:01]ProducePacketName [11:21:01]name=ofd_packets/00118041 [11:21:01]NVStorageSaveData ofd_packets/00118041 [11:21:01]File name is /storage/ofd_packets/00118041 [11:21:01]Write 301 bytes [11:21:01]NVStorageSaveData done [11:21:01]OFDSenderStorePacket done [11:21:01]KKMCreateOFDPacket done [11:21:01]NVStorageSaveData kkm_last_timestamp [11:21:01]File name is /storage/kkm_last_timestamp [11:21:01]Write 4 bytes [11:21:01]NVStorageSaveData done [11:21:01]ExternCall_PrintAddStr [11:21:01]wPrintStart [11:21:01]Write to MH i2c: 01 00 00 A8 15 BD [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 A8 15 00 00 00 00 00 FF 0F D2 [11:21:01]RasterBufferAndPrint [11:21:01]line Счет N : (1)245835 [11:21:01]line ИНН: 02508201610067 [11:21:01]line Контрольно-Кассовый Чек [11:21:01]line ПРОДАЖА [11:21:01]line ТРК (МРК, ГНК) : 11 [11:21:01]line Товар: 2710124130 [11:21:01]line Аи-92-К-2 [11:21:01]line 5.980 * 66.90 [11:21:01]line = 400.06 [11:21:01]line НДС 12% НСП 1% [11:21:01]line > о реализуемом товаре [11:21:01]line ОКРУГЛЕНИЕ: -0.06 [11:21:01]line ИТОГО: 400.00 [11:21:01]line Внесено: 400.00 [11:21:01]line СДАЧА: 0.00 [11:21:01]line НСП 1% : 3.54 [11:21:01]line НДС 12% : 42.48 [11:21:01]line Наличными: 400.00 [11:21:01]line Безнал.: 0.00 [11:21:01]line Место: АЗС № 173 "Партнер Нефть" [11:21:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:21:01]line СНО: Общий режим [11:21:01]line Чек 101 30.10.2024 11:20 [11:21:01]line Смена: 545 ФФД: 1.0 [11:21:01]line ЗНМ: 0300000115 [11:21:01]line РНМ: 0000000000091782 [11:21:01]line Версия ККМ: 001 [11:21:01]line ФМ: 0000000000871767 [11:21:01]line ФД: 118041 [11:21:01]line ФПД: 222857844446350 [11:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112059&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118041&fm=222857844446350&tin=02508201610067®Number=0000000000091782&sum=40000 [11:21:01]written 0, free lines is 4095 [11:21:01]OFD Sender: Processing packet 118041 [packets to send 77, broken 76] [11:21:01]ProducePacketName [11:21:01]name=ofd_packets/00118041 [11:21:01]OFD Sender: To server: pG, [11:21:01]CommunicateWithHost lk.salyk.kg:30040 [11:21:01]ConnectInit lk.salyk.kg [11:21:01]Connected sock=10 [11:21: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 36 37 0F 01 00 00 7D 46 07 01 E4 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 9B 16 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 19 CD 01 00 35 04 06 00 CA B0 22 A7 54 8E F2 11 7B EB 0D DA 3D B0 [11:21: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 36 37 4F 00 00 00 50 5B 47 00 32 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 19 CD 01 00 F4 03 04 00 53 C2 21 67 B6 04 01 00 00 43 AB 86 3E 10 2D E1 BB [11:21:01]CommunicateWithHost err = 0 [11:21:01]CheckOFDResponse [11:21:01]1017 (14) - 77093643461234 [11:21:01]1041 (16) - 0000000000871767 [11:21:01]1040 (4) - 118041 [11:21:01]1012 (4) - 30.10.2024 05:21 [11:21:01]1206 (1) - 0 [11:21:01]OFD Sender: Remove packet 118041 [11:21:01]ProducePacketName [11:21:01]name=ofd_packets/00118041 [11:21:01]NVStorageDeleteData [11:21:01]Write to MH i2c: 01 00 00 D2 15 E7 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 D2 15 00 00 00 00 00 B1 0C AB [11:21:01]RasterBufferAndPrint [11:21:01]line [11:21:01]line [11:21:01]line [11:21:01]line [11:21:01]line [11:21:01]written 0, free lines is 3253 [11:21:01]MH_Cut [11:21:01]Write to MH i2c: D1 01 00 D9 15 01 C0 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: D1 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: D1 01 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: D1 01 00 D9 15 00 BF [11:21:01]Write to MH i2c: 01 00 00 DA 15 EF [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:02]OFD Sender: No OFD packet to send [11:21:02]*** Cut start [11:21:02]*** Purtial cut [11:21:02]*** Stage 1: CUTSNS_PIN = 1 [11:21:02]Read from MH i2c: 01 [11:21:02]MH_I2C_Read... [11:21:02]*** Stop cut motor [11:21:02]*** Cut end [11:21:02]Read from MH i2c: 01 07 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 FF 0F 04 [11:21:02]process_action close_receipt done [11:21:02]requested_data is exist [11:21:02]produce_requested_data [11:21:02]requested_item fm.sn is exist - process it [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 11 00 00 [11:21:02]Write to MH i2c: E2 08 00 DB 15 80 11 00 00 00 00 00 00 6A [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 17 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 17 00 DB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C1 [11:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:21:03]wFMCommunicate OK [11:21:03]requested_item fd.num is exist - process it [11:21:03]SAM_PROTO_GetFieldsCounters [11:21:03]wFMCommunicate request_size=4 [11:21:03]MH_SAM_APDU [11:21:03]CAPDU: 80 13 00 00 [11:21:03]Write to MH i2c: E2 08 00 DC 15 80 13 00 00 00 00 00 00 6D [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 62 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 62 00 DC 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 19 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [11:21: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 19 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:03]wFMCommunicate OK [11:21:03]SAM_PROTO_GetFieldsCounters done [11:21:03]requested_item shift.num is exist - process it [11:21:03]requested_item shift.opened is exist - process it [11:21:03]req_shift_opened [11:21:03]FM_GetShiftState [11:21:03]SAM_PROTO_GetShiftState [11:21:03]wFMCommunicate request_size=4 [11:21:03]MH_SAM_APDU [11:21:03]CAPDU: 80 13 01 00 [11:21:03]Write to MH i2c: E2 08 00 DD 15 80 13 01 00 00 00 00 00 6F [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 0E 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 0E 00 DD 15 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 47 [11:21:03]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:21:03]wFMCommunicate OK [11:21:03]SAM_PROTO_GetShiftState done [11:21:03]FM_GetShiftState done [11:21:03]req_shift_opened done [11:21:03]requested_item shift.open_date is exist - process it [11:21:03]req_shift_open_date [11:21:03]req_shift_open_date done [11:21:03]produce_requested_data done [11:21:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118041,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:21:03]process_action_free close_receipt [11:21:03]json_value_free [11:21:03]json_value_free done [11:21:03]process_json_proto returns [11:21:03]Send response to host [11:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118041,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:21:03]free response buf [11:21:03]execute_script done [11:21:03]execute_script returns [11:21:03]free content buf [11:21:03]Sock 9.Close socket [11:21:03]Sock 9.Thread stoped [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:13]accept exits with 7 [11:23:13]New connection [11:23:13]New thread 3067559268 created [11:23:13]Thread 3067415908 joined [11:23:13]Waiting for new connection... [11:23:13] Sock 7.Parse request [11:23:13]Sock 7.Check first char [11:23:13]Sock 7.First char is OK [11:23:13]request: POST /json_proto HTTP/1.0 [11:23:13]Method: POST [11:23:13]URL: /json_proto [11:23:13]Method is POST - this is cgi request [11:23:13]url: /json_proto [11:23:13]query_string will be loaded in cgi processing [11:23:13]execute_cgi json_proto POST (null) [11:23:13]execute_cgi path=json_proto method=POST [11:23:13]POST find Content-Length [11:23:13]Host: 172.17.96.67:8080 [11:23:13]Content-Length: 677 [11:23:13]Content-Type: application/json [11:23:13] [11:23:13]POST finish read [11:23:13]Found Content-Length = 677 [11:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:23:13]execute_script... [11:23: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)245836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:23:13]POST & json_proto [11:23:13]process_json_proto [11:23:13]json parsed OK: [11:23:13]protocol is kg_v1.0 [11:23:13]action value=close_receipt [11:23:13]process_action close_receipt [11:23:13]cmd_close_receipt [11:23:13]MH_GetDate [11:23:13]Write to MH i2c: F0 00 00 DE 15 E2 [11:23:13]Write i2c OK [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: F0 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: F0 09 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: F0 09 00 DE 15 00 21 17 22 67 47 6C 1F 67 E5 [11:23:13]GetLastDocTimeStamp 1730287259 [11:23:13]current date 1730287393 [11:23:13]FM_GetShiftState [11:23:13]SAM_PROTO_GetShiftState [11:23:13]wFMCommunicate request_size=4 [11:23:13]MH_SAM_APDU [11:23:13]CAPDU: 80 13 01 00 [11:23:13]Write to MH i2c: E2 08 00 DF 15 80 13 01 00 00 00 00 00 71 [11:23:13]Write i2c OK [11:23:13]MH_I2C_Read... [11:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:13]Read from MH i2c: E2 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 0E 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 0E 00 DF 15 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 49 [11:23:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:23:13]wFMCommunicate OK [11:23:13]SAM_PROTO_GetShiftState done [11:23:13]FM_GetShiftState done [11:23:13]opened in 1730246605 [11:23:13]opened+sec_in_day 1730333005 [11:23:13]quantity*price = 30038 [11:23:13]sum+1 = 30039 [11:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 102 30.10.2024 11:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118042 ФПД: 248115775709812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112313&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118042&fm=248115775709812&tin=02508201610067®Number=0000000000091782&sum=30000 [11:23:14]StoreToDocumentArchive [11:23:14]shift 545 fd 118042 [11:23:14]save to /storage/0545/doc_00118042 [11:23:14]save last doc name /storage/0545/doc_00118042 to /storage/kkm_last_doc_name [11:23:14]save OK [11:23:14]Clear old archive folders... [11:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:14]tlvbuf is 0063E950 [11:23:14]SAM_PROTO_ClearQueue [11:23:14]wFMCommunicate request_size=4 [11:23:14]MH_SAM_APDU [11:23:14]CAPDU: 80 09 00 00 [11:23:14]Write to MH i2c: E2 08 00 EC 15 80 09 00 00 00 00 00 00 73 [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:14]Read from MH i2c: E2 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [11:23:14]RAPDU: 90 00 [11:23:14]wFMCommunicate OK [11:23:14]SAM_PROTO_ClearQueue done [11:23:14]KKMCreateOFDPacket [11:23:14]OFDProtocolAddRootSTLVToBuf [11:23:14]FM_MakeSignedData [11:23:14]FM_MakeSignedData [11:23:14]SAM_PROTO_SignData [11:23:14]wFMCommunicate request_size=4 [11:23:14]MH_SAM_APDU [11:23:14]CAPDU: 80 0D 01 02 [11:23:14]Write to MH i2c: E2 08 00 ED 15 80 0D 01 02 00 00 00 00 7B [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:14]Read from MH i2c: E2 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [11:23:14]RAPDU: 90 00 [11:23:14]wFMCommunicate OK [11:23:14]wFMCommunicate request_size=255 [11:23:14]MH_SAM_APDU [11:23: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 32 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 66 00 00 00 F4 03 04 00 21 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1A CD 01 00 35 04 06 00 E1 [11:23:14]Write to MH i2c: E2 02 01 EE 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 21 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1A CD 01 00 35 04 06 00 E1 00 00 14 [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:14]Read from MH i2c: E2 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 EE 15 00 90 00 77 [11:23:14]RAPDU: 90 00 [11:23:14]wFMCommunicate OK [11:23:14]wFMCommunicate request_size=10 [11:23:14]MH_SAM_APDU [11:23:14]CAPDU: 80 0D 02 02 05 A8 F4 AC A2 74 [11:23:14]Write to MH i2c: E2 0D 00 EF 15 80 0D 02 02 05 00 A8 F4 AC A2 74 00 00 E6 [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:14]Read from MH i2c: E2 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [11:23:14]RAPDU: 90 00 [11:23:14]wFMCommunicate OK [11:23:14]wFMCommunicate request_size=4 [11:23:14]MH_SAM_APDU [11:23:14]CAPDU: 80 0D 03 02 [11:23:14]Write to MH i2c: E2 08 00 F0 15 80 0D 03 02 00 00 00 00 80 [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:14]Read from MH i2c: E2 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 0B 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 0B 00 F0 15 00 91 B3 2A A2 74 F0 55 C6 90 00 10 [11:23:14]RAPDU: 91 B3 2A A2 74 F0 55 C6 90 00 [11:23:14]wFMCommunicate OK [11:23:14]SAM_PROTO_SignData done [11:23:14]FM_MakeSignedData done [11:23:14]CreateOFDProtocolMessage [11:23:14]wFMCommunicate request_size=4 [11:23:14]MH_SAM_APDU [11:23:14]CAPDU: 80 11 00 00 [11:23:14]Write to MH i2c: E2 08 00 F1 15 80 11 00 00 00 00 00 00 80 [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:14]Read from MH i2c: E2 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 17 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 17 00 F1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D7 [11:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:23:14]wFMCommunicate OK [11:23:14]CreateOFDProtocolMessage done [11:23:14]OFDSenderStorePacket 118042 [11:23:14]StoreOFDPacket docnum=118042 [11:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 46 E8 07 01 2E AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 21 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1A CD 01 00 35 04 06 00 E1 A8 F4 AC A2 74 91 B3 2A A2 74 F0 55 C6 [11:23:14]CheckFolder [11:23:14]dirname=/storage/ofd_packets [11:23:14]CheckFolder done [11:23:14]ProducePacketName [11:23:14]name=ofd_packets/00118042 [11:23:14]NVStorageSaveData ofd_packets/00118042 [11:23:14]File name is /storage/ofd_packets/00118042 [11:23:14]Write 301 bytes [11:23:14]NVStorageSaveData done [11:23:14]OFDSenderStorePacket done [11:23:14]KKMCreateOFDPacket done [11:23:14]NVStorageSaveData kkm_last_timestamp [11:23:14]File name is /storage/kkm_last_timestamp [11:23:14]Write 4 bytes [11:23:14]NVStorageSaveData done [11:23:14]ExternCall_PrintAddStr [11:23:14]wPrintStart [11:23:14]Write to MH i2c: 01 00 00 F2 15 07 [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: 01 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: 01 07 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: 01 07 00 F2 15 00 00 00 00 00 FF 0F 1C [11:23:14]RasterBufferAndPrint [11:23:14]line Счет N : (1)245836 [11:23:14]line ИНН: 02508201610067 [11:23:14]line Контрольно-Кассовый Чек [11:23:14]line ПРОДАЖА [11:23:14]line ТРК (МРК, ГНК) : 11 [11:23:14]line Товар: 2710124130 [11:23:14]line Аи-92-К-2 [11:23:14]line 4.490 * 66.90 [11:23:14]line = 300.38 [11:23:14]line НДС 12% НСП 1% [11:23:14]line > о реализуемом товаре [11:23:14]line ОКРУГЛЕНИЕ: -0.38 [11:23:14]line ИТОГО: 300.00 [11:23:14]line Внесено: 300.00 [11:23:14]line СДАЧА: 0.00 [11:23:14]line НСП 1% : 2.66 [11:23:14]line НДС 12% : 31.90 [11:23:14]line Наличными: 300.00 [11:23:14]line Безнал.: 0.00 [11:23:14]line Место: АЗС № 173 "Партнер Нефть" [11:23:14]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:23:14]line СНО: Общий режим [11:23:14]line Чек 102 30.10.2024 11:23 [11:23:14]line Смена: 545 ФФД: 1.0 [11:23:14]line ЗНМ: 0300000115 [11:23:14]line РНМ: 0000000000091782 [11:23:14]line Версия ККМ: 001 [11:23:14]line ФМ: 0000000000871767 [11:23:14]line ФД: 118042 [11:23:14]line ФПД: 248115775709812 [11:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112313&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118042&fm=248115775709812&tin=02508201610067®Number=0000000000091782&sum=30000 [11:23:15]written 0, free lines is 4095 [11:23:15]OFD Sender: Processing packet 118042 [packets to send 77, broken 76] [11:23:15]ProducePacketName [11:23:15]name=ofd_packets/00118042 [11:23:15]OFD Sender: To server: pG, [11:23:15]CommunicateWithHost lk.salyk.kg:30040 [11:23:15]ConnectInit lk.salyk.kg [11:23:15]Connected sock=11 [11:23: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 36 37 0F 01 00 00 46 E8 07 01 2E AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 21 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1A CD 01 00 35 04 06 00 E1 A8 F4 AC A2 74 91 B3 2A A2 74 F0 55 C6 [11:23: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 36 37 4F 00 00 00 CC A8 47 00 55 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1A CD 01 00 F4 03 04 00 D9 C2 21 67 B6 04 01 00 00 F9 EA FC F7 D0 24 C5 F9 [11:23:15]CommunicateWithHost err = 0 [11:23:15]CheckOFDResponse [11:23:15]1017 (14) - 77093643461234 [11:23:15]1041 (16) - 0000000000871767 [11:23:15]1040 (4) - 118042 [11:23:15]1012 (4) - 30.10.2024 05:23 [11:23:15]1206 (1) - 0 [11:23:15]OFD Sender: Remove packet 118042 [11:23:15]ProducePacketName [11:23:15]name=ofd_packets/00118042 [11:23:15]NVStorageDeleteData [11:23:15]Write to MH i2c: 01 00 00 1C 16 32 [11:23:15]Write i2c OK [11:23:15]MH_I2C_Read... [11:23:15]Read from MH i2c: 01 [11:23:15]MH_I2C_Read... [11:23:15]Read from MH i2c: 01 07 00 [11:23:15]MH_I2C_Read... [11:23:15]Read from MH i2c: 01 07 00 1C 16 00 00 00 00 00 AF 0C F4 [11:23:15]RasterBufferAndPrint [11:23:15]line [11:23:15]line [11:23:15]line [11:23:15]line [11:23:15]line [11:23:15]written 0, free lines is 3251 [11:23:15]MH_Cut [11:23:15]Write to MH i2c: D1 01 00 23 16 01 0B [11:23:15]Write i2c OK [11:23:15]MH_I2C_Read... [11:23:15]Read from MH i2c: D1 [11:23:15]MH_I2C_Read... [11:23:15]Read from MH i2c: D1 01 00 [11:23:15]MH_I2C_Read... [11:23:15]Read from MH i2c: D1 01 00 23 16 00 0A [11:23:15]Write to MH i2c: 01 00 00 24 16 3A [11:23:15]Write i2c OK [11:23:15]MH_I2C_Read... [11:23:15]OFD Sender: No OFD packet to send [11:23:16]*** Cut start [11:23:16]*** Purtial cut [11:23:16]*** Stage 1: CUTSNS_PIN = 1 [11:23:16]Read from MH i2c: 01 [11:23:16]MH_I2C_Read... [11:23:16]*** Stop cut motor [11:23:16]*** Cut end [11:23:16]Read from MH i2c: 01 07 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 FF 0F 4F [11:23:16]process_action close_receipt done [11:23:16]requested_data is exist [11:23:16]produce_requested_data [11:23:16]requested_item fm.sn is exist - process it [11:23:16]wFMCommunicate request_size=4 [11:23:16]MH_SAM_APDU [11:23:16]CAPDU: 80 11 00 00 [11:23:16]Write to MH i2c: E2 08 00 25 16 80 11 00 00 00 00 00 00 B5 [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: E2 [11:23:16]MH_I2C_Read... [11:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:16]Read from MH i2c: E2 17 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: E2 17 00 25 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0C [11:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:23:16]wFMCommunicate OK [11:23:16]requested_item fd.num is exist - process it [11:23:16]SAM_PROTO_GetFieldsCounters [11:23:16]wFMCommunicate request_size=4 [11:23:16]MH_SAM_APDU [11:23:16]CAPDU: 80 13 00 00 [11:23:16]Write to MH i2c: E2 08 00 26 16 80 13 00 00 00 00 00 00 B8 [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:16]Read from MH i2c: E2 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: E2 62 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: E2 62 00 26 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [11:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:16]wFMCommunicate OK [11:23:16]SAM_PROTO_GetFieldsCounters done [11:23:16]requested_item shift.num is exist - process it [11:23:16]requested_item shift.opened is exist - process it [11:23:16]req_shift_opened [11:23:16]FM_GetShiftState [11:23:16]SAM_PROTO_GetShiftState [11:23:16]wFMCommunicate request_size=4 [11:23:16]MH_SAM_APDU [11:23:16]CAPDU: 80 13 01 00 [11:23:16]Write to MH i2c: E2 08 00 27 16 80 13 01 00 00 00 00 00 BA [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:17]Read from MH i2c: E2 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 0E 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 0E 00 27 16 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 92 [11:23:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:23:17]wFMCommunicate OK [11:23:17]SAM_PROTO_GetShiftState done [11:23:17]FM_GetShiftState done [11:23:17]req_shift_opened done [11:23:17]requested_item shift.open_date is exist - process it [11:23:17]req_shift_open_date [11:23:17]req_shift_open_date done [11:23:17]produce_requested_data done [11:23:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118042,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:23:17]process_action_free close_receipt [11:23:17]json_value_free [11:23:17]json_value_free done [11:23:17]process_json_proto returns [11:23:17]Send response to host [11:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118042,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:23:17]free response buf [11:23:17]execute_script done [11:23:17]execute_script returns [11:23:17]free content buf [11:23:17]Sock 7.Close socket [11:23:17]Sock 7.Thread stoped [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:50]accept exits with 9 [11:23:50]New connection [11:23:50]New thread 3067415908 created [11:23:50]Thread 3067559268 joined [11:23:50]Waiting for new connection... [11:23:50] Sock 9.Parse request [11:23:50]Sock 9.Check first char [11:23:50]Sock 9.First char is OK [11:23:50]request: POST /json_proto HTTP/1.0 [11:23:50]Method: POST [11:23:50]URL: /json_proto [11:23:50]Method is POST - this is cgi request [11:23:50]url: /json_proto [11:23:50]query_string will be loaded in cgi processing [11:23:50]execute_cgi json_proto POST (null) [11:23:50]execute_cgi path=json_proto method=POST [11:23:50]POST find Content-Length [11:23:50]Host: 172.17.96.67:8080 [11:23:50]Content-Length: 677 [11:23:50]Content-Type: application/json [11:23:50] [11:23:50]POST finish read [11:23:50]Found Content-Length = 677 [11:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:50]execute_script... [11:23: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)245837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:50]POST & json_proto [11:23:50]process_json_proto [11:23:50]json parsed OK: [11:23:50]protocol is kg_v1.0 [11:23:50]action value=close_receipt [11:23:50]process_action close_receipt [11:23:50]cmd_close_receipt [11:23:50]MH_GetDate [11:23:50]Write to MH i2c: F0 00 00 28 16 2D [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: F0 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: F0 09 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: F0 09 00 28 16 00 47 17 22 67 47 6C 1F 67 56 [11:23:50]GetLastDocTimeStamp 1730287393 [11:23:50]current date 1730287431 [11:23:50]FM_GetShiftState [11:23:50]SAM_PROTO_GetShiftState [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 13 01 00 [11:23:50]Write to MH i2c: E2 08 00 29 16 80 13 01 00 00 00 00 00 BC [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0E 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0E 00 29 16 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 94 [11:23:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:23:50]wFMCommunicate OK [11:23:50]SAM_PROTO_GetShiftState done [11:23:50]FM_GetShiftState done [11:23:50]opened in 1730246605 [11:23:50]opened+sec_in_day 1730333005 [11:23:50]quantity*price = 45023 [11:23:50]sum+1 = 45025 [11:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 103 30.10.2024 11:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118043 ФПД: 81098589581355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112351&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118043&fm=81098589581355&tin=02508201610067®Number=0000000000091782&sum=45000 [11:23:51]StoreToDocumentArchive [11:23:51]shift 545 fd 118043 [11:23:51]save to /storage/0545/doc_00118043 [11:23:51]save last doc name /storage/0545/doc_00118043 to /storage/kkm_last_doc_name [11:23:51]save OK [11:23:51]Clear old archive folders... [11:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:51]tlvbuf is 00626D10 [11:23:51]SAM_PROTO_ClearQueue [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 09 00 00 [11:23:51]Write to MH i2c: E2 08 00 36 16 80 09 00 00 00 00 00 00 BE [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 03 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [11:23:51]RAPDU: 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_ClearQueue done [11:23:51]KKMCreateOFDPacket [11:23:51]OFDProtocolAddRootSTLVToBuf [11:23:51]FM_MakeSignedData [11:23:51]FM_MakeSignedData [11:23:51]SAM_PROTO_SignData [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 0D 01 02 [11:23:51]Write to MH i2c: E2 08 00 37 16 80 0D 01 02 00 00 00 00 C6 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:51]Read from MH i2c: E2 03 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [11:23:51]RAPDU: 90 00 [11:23:51]wFMCommunicate OK [11:23:51]wFMCommunicate request_size=255 [11:23:51]MH_SAM_APDU [11:23: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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 47 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1B CD 01 00 35 04 06 00 49 [11:23:51]Write to MH i2c: E2 02 01 38 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 47 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1B CD 01 00 35 04 06 00 49 00 00 E1 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:52]Read from MH i2c: E2 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 03 00 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [11:23:52]RAPDU: 90 00 [11:23:52]wFMCommunicate OK [11:23:52]wFMCommunicate request_size=10 [11:23:52]MH_SAM_APDU [11:23:52]CAPDU: 80 0D 02 02 05 C2 3C 9F B0 2B [11:23:52]Write to MH i2c: E2 0D 00 39 16 80 0D 02 02 05 00 C2 3C 9F B0 2B 00 00 4B [11:23:52]Write i2c OK [11:23:52]MH_I2C_Read... [11:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:52]Read from MH i2c: E2 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 03 00 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 03 00 39 16 00 90 00 C3 [11:23:52]RAPDU: 90 00 [11:23:52]wFMCommunicate OK [11:23:52]wFMCommunicate request_size=4 [11:23:52]MH_SAM_APDU [11:23:52]CAPDU: 80 0D 03 02 [11:23:52]Write to MH i2c: E2 08 00 3A 16 80 0D 03 02 00 00 00 00 CB [11:23:52]Write i2c OK [11:23:52]MH_I2C_Read... [11:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:52]Read from MH i2c: E2 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 0B 00 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 0B 00 3A 16 00 C1 D6 AB 22 A2 C6 9F 46 90 00 7D [11:23:52]RAPDU: C1 D6 AB 22 A2 C6 9F 46 90 00 [11:23:52]wFMCommunicate OK [11:23:52]SAM_PROTO_SignData done [11:23:52]FM_MakeSignedData done [11:23:52]CreateOFDProtocolMessage [11:23:52]wFMCommunicate request_size=4 [11:23:52]MH_SAM_APDU [11:23:52]CAPDU: 80 11 00 00 [11:23:52]Write to MH i2c: E2 08 00 3B 16 80 11 00 00 00 00 00 00 CB [11:23:52]Write i2c OK [11:23:52]MH_I2C_Read... [11:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:52]Read from MH i2c: E2 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 17 00 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 17 00 3B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 22 [11:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:23:52]wFMCommunicate OK [11:23:52]CreateOFDProtocolMessage done [11:23:52]OFDSenderStorePacket 118043 [11:23:52]StoreOFDPacket docnum=118043 [11:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CE 72 07 01 01 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 47 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1B CD 01 00 35 04 06 00 49 C2 3C 9F B0 2B C1 D6 AB 22 A2 C6 9F 46 [11:23:52]CheckFolder [11:23:52]dirname=/storage/ofd_packets [11:23:52]CheckFolder done [11:23:52]ProducePacketName [11:23:52]name=ofd_packets/00118043 [11:23:52]NVStorageSaveData ofd_packets/00118043 [11:23:52]File name is /storage/ofd_packets/00118043 [11:23:52]Write 301 bytes [11:23:52]NVStorageSaveData done [11:23:52]OFDSenderStorePacket done [11:23:52]KKMCreateOFDPacket done [11:23:52]NVStorageSaveData kkm_last_timestamp [11:23:52]File name is /storage/kkm_last_timestamp [11:23:52]Write 4 bytes [11:23:52]NVStorageSaveData done [11:23:52]ExternCall_PrintAddStr [11:23:52]wPrintStart [11:23:52]Write to MH i2c: 01 00 00 3C 16 52 [11:23:52]Write i2c OK [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: 01 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: 01 07 00 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 FF 0F 67 [11:23:52]RasterBufferAndPrint [11:23:52]line Счет N : (1)245837 [11:23:52]line ИНН: 02508201610067 [11:23:52]line Контрольно-Кассовый Чек [11:23:52]line ПРОДАЖА [11:23:52]line ТРК (МРК, ГНК) : 21 [11:23:52]line Товар: 2710124130 [11:23:52]line Аи-92-К-2 [11:23:52]line 6.730 * 66.90 [11:23:52]line = 450.24 [11:23:52]line НДС 12% НСП 1% [11:23:52]line > о реализуемом товаре [11:23:52]line ОКРУГЛЕНИЕ: -0.24 [11:23:52]line ИТОГО: 450.00 [11:23:52]line Внесено: 450.00 [11:23:52]line СДАЧА: 0.00 [11:23:52]line НСП 1% : 3.98 [11:23:52]line НДС 12% : 47.81 [11:23:52]line Наличными: 450.00 [11:23:52]line Безнал.: 0.00 [11:23:52]line Место: АЗС № 173 "Партнер Нефть" [11:23:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:23:52]line СНО: Общий режим [11:23:52]line Чек 103 30.10.2024 11:23 [11:23:52]line Смена: 545 ФФД: 1.0 [11:23:52]line ЗНМ: 0300000115 [11:23:52]line РНМ: 0000000000091782 [11:23:52]line Версия ККМ: 001 [11:23:52]line ФМ: 0000000000871767 [11:23:52]line ФД: 118043 [11:23:52]line ФПД: 81098589581355 [11:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112351&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118043&fm=81098589581355&tin=02508201610067®Number=0000000000091782&sum=45000 [11:23:52]written 0, free lines is 4095 [11:23:52]OFD Sender: Processing packet 118043 [packets to send 77, broken 76] [11:23:52]ProducePacketName [11:23:52]name=ofd_packets/00118043 [11:23:52]OFD Sender: To server: pG, [11:23:52]CommunicateWithHost lk.salyk.kg:30040 [11:23:52]ConnectInit lk.salyk.kg [11:23:52]Connected sock=10 [11:23: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 36 37 0F 01 00 00 CE 72 07 01 01 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 47 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1B CD 01 00 35 04 06 00 49 C2 3C 9F B0 2B C1 D6 AB 22 A2 C6 9F 46 [11:23: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 36 37 4F 00 00 00 A1 5F 47 00 7D 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1B CD 01 00 F4 03 04 00 FF C2 21 67 B6 04 01 00 00 94 22 59 A5 01 60 DE 29 [11:23:53]CommunicateWithHost err = 0 [11:23:53]CheckOFDResponse [11:23:53]1017 (14) - 77093643461234 [11:23:53]1041 (16) - 0000000000871767 [11:23:53]1040 (4) - 118043 [11:23:53]1012 (4) - 30.10.2024 05:24 [11:23:53]1206 (1) - 0 [11:23:53]OFD Sender: Remove packet 118043 [11:23:53]ProducePacketName [11:23:53]name=ofd_packets/00118043 [11:23:53]NVStorageDeleteData [11:23:53]Write to MH i2c: 01 00 00 66 16 7C [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: 01 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: 01 07 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: 01 07 00 66 16 00 00 00 00 00 AD 0C 3C [11:23:53]RasterBufferAndPrint [11:23:53]line [11:23:53]line [11:23:53]line [11:23:53]line [11:23:53]line [11:23:53]written 0, free lines is 3249 [11:23:53]MH_Cut [11:23:53]Write to MH i2c: D1 01 00 6D 16 01 55 [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: D1 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: D1 01 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: D1 01 00 6D 16 00 54 [11:23:53]Write to MH i2c: 01 00 00 6E 16 84 [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]OFD Sender: No OFD packet to send [11:23:53]*** Cut start [11:23:53]*** Purtial cut [11:23:53]*** Stage 1: CUTSNS_PIN = 1 [11:23:54]Read from MH i2c: 01 [11:23:54]MH_I2C_Read... [11:23:54]*** Stop cut motor [11:23:54]*** Cut end [11:23:54]Read from MH i2c: 01 07 00 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: 01 07 00 6E 16 00 00 00 00 00 FF 0F 99 [11:23:54]process_action close_receipt done [11:23:54]requested_data is exist [11:23:54]produce_requested_data [11:23:54]requested_item fm.sn is exist - process it [11:23:54]wFMCommunicate request_size=4 [11:23:54]MH_SAM_APDU [11:23:54]CAPDU: 80 11 00 00 [11:23:54]Write to MH i2c: E2 08 00 6F 16 80 11 00 00 00 00 00 00 FF [11:23:54]Write i2c OK [11:23:54]MH_I2C_Read... [11:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:54]Read from MH i2c: E2 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 17 00 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 17 00 6F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 56 [11:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:23:54]wFMCommunicate OK [11:23:54]requested_item fd.num is exist - process it [11:23:54]SAM_PROTO_GetFieldsCounters [11:23:54]wFMCommunicate request_size=4 [11:23:54]MH_SAM_APDU [11:23:54]CAPDU: 80 13 00 00 [11:23:54]Write to MH i2c: E2 08 00 70 16 80 13 00 00 00 00 00 00 02 [11:23:54]Write i2c OK [11:23:54]MH_I2C_Read... [11:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:54]Read from MH i2c: E2 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 62 00 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 62 00 70 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [11:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:54]wFMCommunicate OK [11:23:54]SAM_PROTO_GetFieldsCounters done [11:23:54]requested_item shift.num is exist - process it [11:23:54]requested_item shift.opened is exist - process it [11:23:54]req_shift_opened [11:23:54]FM_GetShiftState [11:23:54]SAM_PROTO_GetShiftState [11:23:54]wFMCommunicate request_size=4 [11:23:54]MH_SAM_APDU [11:23:54]CAPDU: 80 13 01 00 [11:23:54]Write to MH i2c: E2 08 00 71 16 80 13 01 00 00 00 00 00 04 [11:23:54]Write i2c OK [11:23:54]MH_I2C_Read... [11:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:54]Read from MH i2c: E2 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 0E 00 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 0E 00 71 16 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DC [11:23:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:23:54]wFMCommunicate OK [11:23:54]SAM_PROTO_GetShiftState done [11:23:54]FM_GetShiftState done [11:23:54]req_shift_opened done [11:23:54]requested_item shift.open_date is exist - process it [11:23:54]req_shift_open_date [11:23:54]req_shift_open_date done [11:23:54]produce_requested_data done [11:23:54]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118043,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:23:54]process_action_free close_receipt [11:23:54]json_value_free [11:23:54]json_value_free done [11:23:54]process_json_proto returns [11:23:54]Send response to host [11:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118043,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:23:54]free response buf [11:23:54]execute_script done [11:23:54]execute_script returns [11:23:54]free content buf [11:23:54]Sock 9.Close socket [11:23:54]Sock 9.Thread stoped [11:23:54]accept exits with 7 [11:23:54]New connection [11:23:54]New thread 3067559268 created [11:23:54]Thread 3067415908 joined [11:23:54]Waiting for new connection... [11:23:54] Sock 7.Parse request [11:23:54]Sock 7.Check first char [11:23:54]Sock 7.First char is OK [11:23:54]request: POST /json_proto HTTP/1.0 [11:23:54]Method: POST [11:23:54]URL: /json_proto [11:23:54]Method is POST - this is cgi request [11:23:54]url: /json_proto [11:23:54]query_string will be loaded in cgi processing [11:23:54]execute_cgi json_proto POST (null) [11:23:54]execute_cgi path=json_proto method=POST [11:23:54]POST find Content-Length [11:23:54]Host: 172.17.96.67:8080 [11:23:54]Content-Length: 677 [11:23:54]Content-Type: application/json [11:23:54] [11:23:54]POST finish read [11:23:54]Found Content-Length = 677 [11:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:54]execute_script... [11:23: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)245838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:54]POST & json_proto [11:23:54]process_json_proto [11:23:54]json parsed OK: [11:23:54]protocol is kg_v1.0 [11:23:54]action value=close_receipt [11:23:54]process_action close_receipt [11:23:54]cmd_close_receipt [11:23:54]MH_GetDate [11:23:54]Write to MH i2c: F0 00 00 72 16 77 [11:23:54]Write i2c OK [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: F0 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: F0 09 00 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: F0 09 00 72 16 00 4B 17 22 67 47 6C 1F 67 A4 [11:23:54]GetLastDocTimeStamp 1730287431 [11:23:54]current date 1730287435 [11:23:54]FM_GetShiftState [11:23:54]SAM_PROTO_GetShiftState [11:23:54]wFMCommunicate request_size=4 [11:23:54]MH_SAM_APDU [11:23:54]CAPDU: 80 13 01 00 [11:23:54]Write to MH i2c: E2 08 00 73 16 80 13 01 00 00 00 00 00 06 [11:23:54]Write i2c OK [11:23:54]MH_I2C_Read... [11:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:54]Read from MH i2c: E2 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 0E 00 [11:23:54]MH_I2C_Read... [11:23:54]Read from MH i2c: E2 0E 00 73 16 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DE [11:23:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:23:54]wFMCommunicate OK [11:23:54]SAM_PROTO_GetShiftState done [11:23:54]FM_GetShiftState done [11:23:54]opened in 1730246605 [11:23:54]opened+sec_in_day 1730333005 [11:23:54]quantity*price = 21006 [11:23:54]sum+1 = 21008 [11:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 104 30.10.2024 11:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118044 ФПД: 160911896969312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112355&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118044&fm=160911896969312&tin=02508201610067®Number=0000000000091782&sum=21000 [11:23:56]StoreToDocumentArchive [11:23:56]shift 545 fd 118044 [11:23:56]save to /storage/0545/doc_00118044 [11:23:56]save last doc name /storage/0545/doc_00118044 to /storage/kkm_last_doc_name [11:23:56]save OK [11:23:56]Clear old archive folders... [11:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:56]tlvbuf is 006CC730 [11:23:56]SAM_PROTO_ClearQueue [11:23:56]wFMCommunicate request_size=4 [11:23:56]MH_SAM_APDU [11:23:56]CAPDU: 80 09 00 00 [11:23:56]Write to MH i2c: E2 08 00 80 16 80 09 00 00 00 00 00 00 08 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:56]Read from MH i2c: E2 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [11:23:56]RAPDU: 90 00 [11:23:56]wFMCommunicate OK [11:23:56]SAM_PROTO_ClearQueue done [11:23:56]KKMCreateOFDPacket [11:23:56]OFDProtocolAddRootSTLVToBuf [11:23:56]FM_MakeSignedData [11:23:56]FM_MakeSignedData [11:23:56]SAM_PROTO_SignData [11:23:56]wFMCommunicate request_size=4 [11:23:56]MH_SAM_APDU [11:23:56]CAPDU: 80 0D 01 02 [11:23:56]Write to MH i2c: E2 08 00 81 16 80 0D 01 02 00 00 00 00 10 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:56]Read from MH i2c: E2 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [11:23:56]RAPDU: 90 00 [11:23:56]wFMCommunicate OK [11:23:56]wFMCommunicate request_size=255 [11:23:56]MH_SAM_APDU [11:23: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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1C CD 01 00 35 04 06 00 92 [11:23:56]Write to MH i2c: E2 02 01 82 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1C CD 01 00 35 04 06 00 92 00 00 29 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:56]Read from MH i2c: E2 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [11:23:56]RAPDU: 90 00 [11:23:56]wFMCommunicate OK [11:23:56]wFMCommunicate request_size=10 [11:23:56]MH_SAM_APDU [11:23:56]CAPDU: 80 0D 02 02 05 59 38 75 80 60 [11:23:56]Write to MH i2c: E2 0D 00 83 16 80 0D 02 02 05 00 59 38 75 80 60 00 00 03 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:56]Read from MH i2c: E2 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 03 00 83 16 00 90 00 0D [11:23:56]RAPDU: 90 00 [11:23:56]wFMCommunicate OK [11:23:56]wFMCommunicate request_size=4 [11:23:56]MH_SAM_APDU [11:23:56]CAPDU: 80 0D 03 02 [11:23:56]Write to MH i2c: E2 08 00 84 16 80 0D 03 02 00 00 00 00 15 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:56]Read from MH i2c: E2 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 0B 00 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: E2 0B 00 84 16 00 23 F0 65 99 06 FC B9 57 90 00 39 [11:23:56]RAPDU: 23 F0 65 99 06 FC B9 57 90 00 [11:23:56]wFMCommunicate OK [11:23:56]SAM_PROTO_SignData done [11:23:56]FM_MakeSignedData done [11:23:56]CreateOFDProtocolMessage [11:23:56]wFMCommunicate request_size=4 [11:23:56]MH_SAM_APDU [11:23:56]CAPDU: 80 11 00 00 [11:23:56]Write to MH i2c: E2 08 00 85 16 80 11 00 00 00 00 00 00 15 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:57]Read from MH i2c: E2 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 17 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 17 00 85 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6C [11:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:23:57]wFMCommunicate OK [11:23:57]CreateOFDProtocolMessage done [11:23:57]OFDSenderStorePacket 118044 [11:23:57]StoreOFDPacket docnum=118044 [11:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B0 78 07 01 4A 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1C CD 01 00 35 04 06 00 92 59 38 75 80 60 23 F0 65 99 06 FC B9 57 [11:23:57]CheckFolder [11:23:57]dirname=/storage/ofd_packets [11:23:57]CheckFolder done [11:23:57]ProducePacketName [11:23:57]name=ofd_packets/00118044 [11:23:57]NVStorageSaveData ofd_packets/00118044 [11:23:57]File name is /storage/ofd_packets/00118044 [11:23:57]Write 301 bytes [11:23:57]NVStorageSaveData done [11:23:57]OFDSenderStorePacket done [11:23:57]KKMCreateOFDPacket done [11:23:57]NVStorageSaveData kkm_last_timestamp [11:23:57]File name is /storage/kkm_last_timestamp [11:23:57]Write 4 bytes [11:23:57]NVStorageSaveData done [11:23:57]ExternCall_PrintAddStr [11:23:57]wPrintStart [11:23:57]Write to MH i2c: 01 00 00 86 16 9C [11:23:57]Write i2c OK [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: 01 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: 01 07 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [11:23:57]RasterBufferAndPrint [11:23:57]line Счет N : (1)245838 [11:23:57]line ИНН: 02508201610067 [11:23:57]line Контрольно-Кассовый Чек [11:23:57]line ПРОДАЖА [11:23:57]line ТРК (МРК, ГНК) : 11 [11:23:57]line Товар: 2710124130 [11:23:57]line Аи-92-К-2 [11:23:57]line 3.140 * 66.90 [11:23:57]line = 210.07 [11:23:57]line НДС 12% НСП 1% [11:23:57]line > о реализуемом товаре [11:23:57]line ОКРУГЛЕНИЕ: -0.07 [11:23:57]line ИТОГО: 210.00 [11:23:57]line Внесено: 210.00 [11:23:57]line СДАЧА: 0.00 [11:23:57]line НСП 1% : 1.86 [11:23:57]line НДС 12% : 22.31 [11:23:57]line Наличными: 210.00 [11:23:57]line Безнал.: 0.00 [11:23:57]line Место: АЗС № 173 "Партнер Нефть" [11:23:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:23:57]line СНО: Общий режим [11:23:57]line Чек 104 30.10.2024 11:23 [11:23:57]line Смена: 545 ФФД: 1.0 [11:23:57]line ЗНМ: 0300000115 [11:23:57]line РНМ: 0000000000091782 [11:23:57]line Версия ККМ: 001 [11:23:57]line ФМ: 0000000000871767 [11:23:57]line ФД: 118044 [11:23:57]line ФПД: 160911896969312 [11:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112355&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118044&fm=160911896969312&tin=02508201610067®Number=0000000000091782&sum=21000 [11:23:57]OFD Sender: Processing packet 118044 [packets to send 77, broken 76] [11:23:57]ProducePacketName [11:23:57]name=ofd_packets/00118044 [11:23:57]OFD Sender: To server: pG, [11:23:57]CommunicateWithHost lk.salyk.kg:30040 [11:23:57]ConnectInit lk.salyk.kg [11:23:57]written 0, free lines is 4095 [11:23:57]Connected sock=10 [11:23: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 36 37 0F 01 00 00 B0 78 07 01 4A 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1C CD 01 00 35 04 06 00 92 59 38 75 80 60 23 F0 65 99 06 FC B9 57 [11:23: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 36 37 4F 00 00 00 57 77 47 00 2F D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1C CD 01 00 F4 03 04 00 03 C3 21 67 B6 04 01 00 00 61 5F DF 3E EB 49 99 E8 [11:23:57]CommunicateWithHost err = 0 [11:23:57]CheckOFDResponse [11:23:57]1017 (14) - 77093643461234 [11:23:57]1041 (16) - 0000000000871767 [11:23:57]1040 (4) - 118044 [11:23:57]1012 (4) - 30.10.2024 05:24 [11:23:57]1206 (1) - 0 [11:23:57]OFD Sender: Remove packet 118044 [11:23:57]ProducePacketName [11:23:57]name=ofd_packets/00118044 [11:23:57]NVStorageDeleteData [11:23:57]Write to MH i2c: 01 00 00 B0 16 C6 [11:23:57]Write i2c OK [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: 01 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: 01 07 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: 01 07 00 B0 16 00 00 00 00 00 C0 0C 99 [11:23:57]RasterBufferAndPrint [11:23:57]line [11:23:57]line [11:23:57]line [11:23:57]line [11:23:57]line [11:23:57]written 0, free lines is 3272 [11:23:57]MH_Cut [11:23:57]Write to MH i2c: D1 01 00 B7 16 01 9F [11:23:57]Write i2c OK [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: D1 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: D1 01 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: D1 01 00 B7 16 00 9E [11:23:57]Write to MH i2c: 01 00 00 B8 16 CE [11:23:57]Write i2c OK [11:23:57]MH_I2C_Read... [11:23:57]OFD Sender: No OFD packet to send [11:23:58]*** Cut start [11:23:58]*** Purtial cut [11:23:58]*** Stage 1: CUTSNS_PIN = 1 [11:23:58]Read from MH i2c: 01 [11:23:58]MH_I2C_Read... [11:23:58]*** Stop cut motor [11:23:58]*** Cut end [11:23:58]Read from MH i2c: 01 07 00 [11:23:58]MH_I2C_Read... [11:23:58]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 FF 0F E3 [11:23:58]process_action close_receipt done [11:23:58]requested_data is exist [11:23:58]produce_requested_data [11:23:58]requested_item fm.sn is exist - process it [11:23:58]wFMCommunicate request_size=4 [11:23:58]MH_SAM_APDU [11:23:58]CAPDU: 80 11 00 00 [11:23:58]Write to MH i2c: E2 08 00 B9 16 80 11 00 00 00 00 00 00 49 [11:23:58]Write i2c OK [11:23:58]MH_I2C_Read... [11:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:58]Read from MH i2c: E2 [11:23:58]MH_I2C_Read... [11:23:58]Read from MH i2c: E2 17 00 [11:23:58]MH_I2C_Read... [11:23:58]Read from MH i2c: E2 17 00 B9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A0 [11:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:23:58]wFMCommunicate OK [11:23:58]requested_item fd.num is exist - process it [11:23:58]SAM_PROTO_GetFieldsCounters [11:23:58]wFMCommunicate request_size=4 [11:23:58]MH_SAM_APDU [11:23:58]CAPDU: 80 13 00 00 [11:23:58]Write to MH i2c: E2 08 00 BA 16 80 13 00 00 00 00 00 00 4C [11:23:58]Write i2c OK [11:23:58]MH_I2C_Read... [11:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:58]Read from MH i2c: E2 [11:23:58]MH_I2C_Read... [11:23:58]Read from MH i2c: E2 62 00 [11:23:58]MH_I2C_Read... [11:23:58]Read from MH i2c: E2 62 00 BA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [11:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:58]wFMCommunicate OK [11:23:58]SAM_PROTO_GetFieldsCounters done [11:23:58]requested_item shift.num is exist - process it [11:23:58]requested_item shift.opened is exist - process it [11:23:58]req_shift_opened [11:23:58]FM_GetShiftState [11:23:58]SAM_PROTO_GetShiftState [11:23:58]wFMCommunicate request_size=4 [11:23:58]MH_SAM_APDU [11:23:58]CAPDU: 80 13 01 00 [11:23:58]Write to MH i2c: E2 08 00 BB 16 80 13 01 00 00 00 00 00 4E [11:23:58]Write i2c OK [11:23:58]MH_I2C_Read... [11:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:58]Read from MH i2c: E2 [11:23:58]MH_I2C_Read... [11:23:58]Read from MH i2c: E2 0E 00 [11:23:58]MH_I2C_Read... [11:23:58]Read from MH i2c: E2 0E 00 BB 16 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 26 [11:23:58]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:23:58]wFMCommunicate OK [11:23:58]SAM_PROTO_GetShiftState done [11:23:58]FM_GetShiftState done [11:23:58]req_shift_opened done [11:23:58]requested_item shift.open_date is exist - process it [11:23:58]req_shift_open_date [11:23:58]req_shift_open_date done [11:23:58]produce_requested_data done [11:23:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118044,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:23:58]process_action_free close_receipt [11:23:58]json_value_free [11:23:58]json_value_free done [11:23:58]process_json_proto returns [11:23:58]Send response to host [11:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118044,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:23:58]free response buf [11:23:58]execute_script done [11:23:58]execute_script returns [11:23:58]free content buf [11:23:58]Sock 7.Close socket [11:23:58]Sock 7.Thread stoped [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:09]accept exits with 9 [11:25:09]New connection [11:25:09]New thread 3067415908 created [11:25:09]Thread 3067559268 joined [11:25:09]Waiting for new connection... [11:25:09] Sock 9.Parse request [11:25:09]Sock 9.Check first char [11:25:09]Sock 9.First char is OK [11:25:09]request: POST /json_proto HTTP/1.0 [11:25:09]Method: POST [11:25:09]URL: /json_proto [11:25:09]Method is POST - this is cgi request [11:25:09]url: /json_proto [11:25:09]query_string will be loaded in cgi processing [11:25:09]execute_cgi json_proto POST (null) [11:25:09]execute_cgi path=json_proto method=POST [11:25:09]POST find Content-Length [11:25:09]Host: 172.17.96.67:8080 [11:25:09]Content-Length: 677 [11:25:09]Content-Type: application/json [11:25:09] [11:25:09]POST finish read [11:25:09]Found Content-Length = 677 [11:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:09]execute_script... [11:25: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)245839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:09]POST & json_proto [11:25:09]process_json_proto [11:25:09]json parsed OK: [11:25:09]protocol is kg_v1.0 [11:25:09]action value=close_receipt [11:25:09]process_action close_receipt [11:25:09]cmd_close_receipt [11:25:09]MH_GetDate [11:25:09]Write to MH i2c: F0 00 00 BC 16 C1 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 09 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 09 00 BC 16 00 95 17 22 67 47 6C 1F 67 38 [11:25:09]GetLastDocTimeStamp 1730287435 [11:25:09]current date 1730287509 [11:25:09]FM_GetShiftState [11:25:09]SAM_PROTO_GetShiftState [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 13 01 00 [11:25:09]Write to MH i2c: E2 08 00 BD 16 80 13 01 00 00 00 00 00 50 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 BD 16 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 28 [11:25:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:25:09]wFMCommunicate OK [11:25:09]SAM_PROTO_GetShiftState done [11:25:09]FM_GetShiftState done [11:25:09]opened in 1730246605 [11:25:09]opened+sec_in_day 1730333005 [11:25:09]quantity*price = 50041 [11:25:09]sum+1 = 50042 [11:25: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 105 30.10.2024 11:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118045 ФПД: 169352306875621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112509&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118045&fm=169352306875621&tin=02508201610067®Number=0000000000091782&sum=50000 [11:25:10]StoreToDocumentArchive [11:25:10]shift 545 fd 118045 [11:25:10]save to /storage/0545/doc_00118045 [11:25:10]save last doc name /storage/0545/doc_00118045 to /storage/kkm_last_doc_name [11:25:10]save OK [11:25:10]Clear old archive folders... [11:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:10]tlvbuf is 00648720 [11:25:10]SAM_PROTO_ClearQueue [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 09 00 00 [11:25:10]Write to MH i2c: E2 08 00 CA 16 80 09 00 00 00 00 00 00 52 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_ClearQueue done [11:25:10]KKMCreateOFDPacket [11:25:10]OFDProtocolAddRootSTLVToBuf [11:25:10]FM_MakeSignedData [11:25:10]FM_MakeSignedData [11:25:10]SAM_PROTO_SignData [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 01 02 [11:25:10]Write to MH i2c: E2 08 00 CB 16 80 0D 01 02 00 00 00 00 5A [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]wFMCommunicate request_size=255 [11:25:10]MH_SAM_APDU [11:25: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 32 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 69 00 00 00 F4 03 04 00 95 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1D CD 01 00 35 04 06 00 9A [11:25:10]Write to MH i2c: E2 02 01 CC 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 69 00 00 00 F4 03 04 00 95 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1D CD 01 00 35 04 06 00 9A 00 00 32 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]wFMCommunicate request_size=10 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 02 02 05 06 68 17 DC E5 [11:25:10]Write to MH i2c: E2 0D 00 CD 16 80 0D 02 02 05 00 06 68 17 DC E5 00 00 AD [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 03 02 [11:25:10]Write to MH i2c: E2 08 00 CE 16 80 0D 03 02 00 00 00 00 5F [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0B 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0B 00 CE 16 00 90 78 87 23 8D E8 1F E8 90 00 8E [11:25:10]RAPDU: 90 78 87 23 8D E8 1F E8 90 00 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_SignData done [11:25:10]FM_MakeSignedData done [11:25:10]CreateOFDProtocolMessage [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 11 00 00 [11:25:10]Write to MH i2c: E2 08 00 CF 16 80 11 00 00 00 00 00 00 5F [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 17 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 17 00 CF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B6 [11:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:25:10]wFMCommunicate OK [11:25:10]CreateOFDProtocolMessage done [11:25:10]OFDSenderStorePacket 118045 [11:25:10]StoreOFDPacket docnum=118045 [11:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4D B6 07 01 E2 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 32 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 69 00 00 00 F4 03 04 00 95 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1D CD 01 00 35 04 06 00 9A 06 68 17 DC E5 90 78 87 23 8D E8 1F E8 [11:25:10]CheckFolder [11:25:10]dirname=/storage/ofd_packets [11:25:10]CheckFolder done [11:25:10]ProducePacketName [11:25:10]name=ofd_packets/00118045 [11:25:10]NVStorageSaveData ofd_packets/00118045 [11:25:10]File name is /storage/ofd_packets/00118045 [11:25:10]Write 301 bytes [11:25:10]NVStorageSaveData done [11:25:10]OFDSenderStorePacket done [11:25:10]KKMCreateOFDPacket done [11:25:10]NVStorageSaveData kkm_last_timestamp [11:25:10]File name is /storage/kkm_last_timestamp [11:25:10]Write 4 bytes [11:25:10]NVStorageSaveData done [11:25:10]ExternCall_PrintAddStr [11:25:10]wPrintStart [11:25:10]Write to MH i2c: 01 00 00 D0 16 E6 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 07 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 07 00 D0 16 00 00 00 00 00 FF 0F FB [11:25:10]RasterBufferAndPrint [11:25:10]line Счет N : (1)245839 [11:25:10]line ИНН: 02508201610067 [11:25:10]line Контрольно-Кассовый Чек [11:25:10]line ПРОДАЖА [11:25:10]line ТРК (МРК, ГНК) : 21 [11:25:10]line Товар: 2710124130 [11:25:10]line Аи-92-К-2 [11:25:10]line 7.480 * 66.90 [11:25:10]line = 500.41 [11:25:10]line НДС 12% НСП 1% [11:25:10]line > о реализуемом товаре [11:25:10]line ОКРУГЛЕНИЕ: -0.41 [11:25:10]line ИТОГО: 500.00 [11:25:10]line Внесено: 500.00 [11:25:10]line СДАЧА: 0.00 [11:25:10]line НСП 1% : 4.43 [11:25:10]line НДС 12% : 53.14 [11:25:10]line Наличными: 500.00 [11:25:10]line Безнал.: 0.00 [11:25:10]line Место: АЗС № 173 "Партнер Нефть" [11:25:10]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:25:10]line СНО: Общий режим [11:25:10]line Чек 105 30.10.2024 11:25 [11:25:10]line Смена: 545 ФФД: 1.0 [11:25:10]line ЗНМ: 0300000115 [11:25:10]line РНМ: 0000000000091782 [11:25:10]line Версия ККМ: 001 [11:25:10]line ФМ: 0000000000871767 [11:25:10]line ФД: 118045 [11:25:10]line ФПД: 169352306875621 [11:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112509&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118045&fm=169352306875621&tin=02508201610067®Number=0000000000091782&sum=50000 [11:25:11]written 0, free lines is 4095 [11:25:11]OFD Sender: Processing packet 118045 [packets to send 77, broken 76] [11:25:11]ProducePacketName [11:25:11]name=ofd_packets/00118045 [11:25:11]OFD Sender: To server: pG, [11:25:11]CommunicateWithHost lk.salyk.kg:30040 [11:25:11]ConnectInit lk.salyk.kg [11:25:11]Connected sock=11 [11:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4D B6 07 01 E2 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 32 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 69 00 00 00 F4 03 04 00 95 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1D CD 01 00 35 04 06 00 9A 06 68 17 DC E5 90 78 87 23 8D E8 1F E8 [11:25: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 36 37 4F 00 00 00 0F 6E 47 00 94 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1D CD 01 00 F4 03 04 00 4D C3 21 67 B6 04 01 00 00 AF E4 A9 07 EB 56 B7 F1 [11:25:11]CommunicateWithHost err = 0 [11:25:11]CheckOFDResponse [11:25:11]1017 (14) - 77093643461234 [11:25:11]1041 (16) - 0000000000871767 [11:25:11]1040 (4) - 118045 [11:25:11]1012 (4) - 30.10.2024 05:25 [11:25:11]1206 (1) - 0 [11:25:11]OFD Sender: Remove packet 118045 [11:25:11]ProducePacketName [11:25:11]name=ofd_packets/00118045 [11:25:11]NVStorageDeleteData [11:25:11]Write to MH i2c: 01 00 00 FA 16 10 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 FA 16 00 00 00 00 00 B5 0C D8 [11:25:11]RasterBufferAndPrint [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]written 0, free lines is 3257 [11:25:11]MH_Cut [11:25:11]Write to MH i2c: D1 01 00 01 17 01 EA [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: D1 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: D1 01 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: D1 01 00 01 17 00 E9 [11:25:11]Write to MH i2c: 01 00 00 02 17 19 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:12]OFD Sender: No OFD packet to send [11:25:12]*** Cut start [11:25:12]*** Purtial cut [11:25:12]*** Stage 1: CUTSNS_PIN = 1 [11:25:12]Read from MH i2c: 01 [11:25:12]MH_I2C_Read... [11:25:12]*** Stop cut motor [11:25:12]*** Cut end [11:25:12]Read from MH i2c: 01 07 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: 01 07 00 02 17 00 00 00 00 00 FF 0F 2E [11:25:12]process_action close_receipt done [11:25:12]requested_data is exist [11:25:12]produce_requested_data [11:25:12]requested_item fm.sn is exist - process it [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 11 00 00 [11:25:12]Write to MH i2c: E2 08 00 03 17 80 11 00 00 00 00 00 00 94 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 17 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 17 00 03 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EB [11:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:25:12]wFMCommunicate OK [11:25:12]requested_item fd.num is exist - process it [11:25:12]SAM_PROTO_GetFieldsCounters [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 13 00 00 [11:25:12]Write to MH i2c: E2 08 00 04 17 80 13 00 00 00 00 00 00 97 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 62 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 62 00 04 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1D CD 01 00 0E 04 04 00 21 02 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 07 [11:25: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_GetFieldsCounters done [11:25:13]requested_item shift.num is exist - process it [11:25:13]requested_item shift.opened is exist - process it [11:25:13]req_shift_opened [11:25:13]FM_GetShiftState [11:25:13]SAM_PROTO_GetShiftState [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 13 01 00 [11:25:13]Write to MH i2c: E2 08 00 05 17 80 13 01 00 00 00 00 00 99 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 05 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 71 [11:25:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_GetShiftState done [11:25:13]FM_GetShiftState done [11:25:13]req_shift_opened done [11:25:13]requested_item shift.open_date is exist - process it [11:25:13]req_shift_open_date [11:25:13]req_shift_open_date done [11:25:13]produce_requested_data done [11:25:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118045,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:25:13]process_action_free close_receipt [11:25:13]json_value_free [11:25:13]json_value_free done [11:25:13]process_json_proto returns [11:25:13]Send response to host [11:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118045,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:25:13]free response buf [11:25:13]execute_script done [11:25:13]execute_script returns [11:25:13]free content buf [11:25:13]Sock 9.Close socket [11:25:13]Sock 9.Thread stoped [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:25]accept exits with 7 [11:26:25]New connection [11:26:25]New thread 3067559268 created [11:26:25]Thread 3067415908 joined [11:26:25]Waiting for new connection... [11:26:25] Sock 7.Parse request [11:26:25]Sock 7.Check first char [11:26:25]Sock 7.First char is OK [11:26:25]request: POST /json_proto HTTP/1.0 [11:26:25]Method: POST [11:26:25]URL: /json_proto [11:26:25]Method is POST - this is cgi request [11:26:25]url: /json_proto [11:26:25]query_string will be loaded in cgi processing [11:26:25]execute_cgi json_proto POST (null) [11:26:25]execute_cgi path=json_proto method=POST [11:26:25]POST find Content-Length [11:26:25]Host: 172.17.96.67:8080 [11:26:25]Content-Length: 677 [11:26:25]Content-Type: application/json [11:26:25] [11:26:25]POST finish read [11:26:25]Found Content-Length = 677 [11:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:26:25]execute_script... [11:26: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)245840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:26:25]POST & json_proto [11:26:25]process_json_proto [11:26:25]json parsed OK: [11:26:25]protocol is kg_v1.0 [11:26:25]action value=close_receipt [11:26:25]process_action close_receipt [11:26:25]cmd_close_receipt [11:26:25]MH_GetDate [11:26:25]Write to MH i2c: F0 00 00 06 17 0C [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 09 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 09 00 06 17 00 E2 17 22 67 47 6C 1F 67 D0 [11:26:25]GetLastDocTimeStamp 1730287509 [11:26:25]current date 1730287586 [11:26:25]FM_GetShiftState [11:26:25]SAM_PROTO_GetShiftState [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 13 01 00 [11:26:25]Write to MH i2c: E2 08 00 07 17 80 13 01 00 00 00 00 00 9B [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 07 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 73 [11:26:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetShiftState done [11:26:25]FM_GetShiftState done [11:26:25]opened in 1730246605 [11:26:25]opened+sec_in_day 1730333005 [11:26:25]quantity*price = 30038 [11:26:25]sum+1 = 30039 [11:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 106 30.10.2024 11:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118046 ФПД: 134169848838647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112626&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118046&fm=134169848838647&tin=02508201610067®Number=0000000000091782&sum=30000 [11:26:26]StoreToDocumentArchive [11:26:26]shift 545 fd 118046 [11:26:26]save to /storage/0545/doc_00118046 [11:26:26]save last doc name /storage/0545/doc_00118046 to /storage/kkm_last_doc_name [11:26:26]save OK [11:26:26]Clear old archive folders... [11:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:26]tlvbuf is 006484E0 [11:26:26]SAM_PROTO_ClearQueue [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 09 00 00 [11:26:26]Write to MH i2c: E2 08 00 14 17 80 09 00 00 00 00 00 00 9D [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_ClearQueue done [11:26:26]KKMCreateOFDPacket [11:26:26]OFDProtocolAddRootSTLVToBuf [11:26:26]FM_MakeSignedData [11:26:26]FM_MakeSignedData [11:26:26]SAM_PROTO_SignData [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 01 02 [11:26:26]Write to MH i2c: E2 08 00 15 17 80 0D 01 02 00 00 00 00 A5 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=255 [11:26:26]MH_SAM_APDU [11:26: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 32 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 6A 00 00 00 F4 03 04 00 E2 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1E CD 01 00 35 04 06 00 7A [11:26:26]Write to MH i2c: E2 02 01 16 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 E2 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1E CD 01 00 35 04 06 00 7A 00 00 A0 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [11:26:27]RAPDU: 90 00 [11:26:27]wFMCommunicate OK [11:26:27]wFMCommunicate request_size=10 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 0D 02 02 05 06 DA 2D F9 F7 [11:26:27]Write to MH i2c: E2 0D 00 17 17 80 0D 02 02 05 00 06 DA 2D F9 F7 00 00 AF [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]OFD Sender: No OFD packet to send [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:27]Read from MH i2c: E2 03 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [11:26:27]RAPDU: 90 00 [11:26:27]wFMCommunicate OK [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 0D 03 02 [11:26:27]Write to MH i2c: E2 08 00 18 17 80 0D 03 02 00 00 00 00 AA [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0B 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0B 00 18 17 00 CB 0A CF BE DA 8A 5D 34 90 00 02 [11:26:27]RAPDU: CB 0A CF BE DA 8A 5D 34 90 00 [11:26:27]wFMCommunicate OK [11:26:27]SAM_PROTO_SignData done [11:26:27]FM_MakeSignedData done [11:26:27]CreateOFDProtocolMessage [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 11 00 00 [11:26:27]Write to MH i2c: E2 08 00 19 17 80 11 00 00 00 00 00 00 AA [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 17 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 17 00 19 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 01 [11:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:26:27]wFMCommunicate OK [11:26:27]CreateOFDProtocolMessage done [11:26:27]OFDSenderStorePacket 118046 [11:26:27]StoreOFDPacket docnum=118046 [11:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 59 2A 07 01 B2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 00 00 00 F4 03 04 00 E2 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1E CD 01 00 35 04 06 00 7A 06 DA 2D F9 F7 CB 0A CF BE DA 8A 5D 34 [11:26:27]CheckFolder [11:26:27]dirname=/storage/ofd_packets [11:26:27]CheckFolder done [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00118046 [11:26:27]NVStorageSaveData ofd_packets/00118046 [11:26:27]File name is /storage/ofd_packets/00118046 [11:26:27]Write 301 bytes [11:26:27]NVStorageSaveData done [11:26:27]OFDSenderStorePacket done [11:26:27]KKMCreateOFDPacket done [11:26:27]NVStorageSaveData kkm_last_timestamp [11:26:27]File name is /storage/kkm_last_timestamp [11:26:27]Write 4 bytes [11:26:27]NVStorageSaveData done [11:26:27]ExternCall_PrintAddStr [11:26:27]wPrintStart [11:26:27]Write to MH i2c: 01 00 00 1A 17 31 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 1A 17 00 00 00 00 00 FF 0F 46 [11:26:27]RasterBufferAndPrint [11:26:27]line Счет N : (1)245840 [11:26:27]line ИНН: 02508201610067 [11:26:27]line Контрольно-Кассовый Чек [11:26:27]line ПРОДАЖА [11:26:27]line ТРК (МРК, ГНК) : 11 [11:26:27]line Товар: 2710124130 [11:26:27]line Аи-92-К-2 [11:26:27]line 4.490 * 66.90 [11:26:27]line = 300.38 [11:26:27]line НДС 12% НСП 1% [11:26:27]line > о реализуемом товаре [11:26:27]line ОКРУГЛЕНИЕ: -0.38 [11:26:27]line ИТОГО: 300.00 [11:26:27]line Внесено: 300.00 [11:26:27]line СДАЧА: 0.00 [11:26:27]line НСП 1% : 2.66 [11:26:27]line НДС 12% : 31.90 [11:26:27]line Наличными: 300.00 [11:26:27]line Безнал.: 0.00 [11:26:27]line Место: АЗС № 173 "Партнер Нефть" [11:26:27]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:26:27]line СНО: Общий режим [11:26:27]line Чек 106 30.10.2024 11:26 [11:26:27]line Смена: 545 ФФД: 1.0 [11:26:27]line ЗНМ: 0300000115 [11:26:27]line РНМ: 0000000000091782 [11:26:27]line Версия ККМ: 001 [11:26:27]line ФМ: 0000000000871767 [11:26:27]line ФД: 118046 [11:26:27]line ФПД: 134169848838647 [11:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112626&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118046&fm=134169848838647&tin=02508201610067®Number=0000000000091782&sum=30000 [11:26:27]written 0, free lines is 4095 [11:26:27]OFD Sender: Processing packet 118046 [packets to send 77, broken 76] [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00118046 [11:26:27]OFD Sender: To server: pG, [11:26:27]CommunicateWithHost lk.salyk.kg:30040 [11:26:27]ConnectInit lk.salyk.kg [11:26:27]Connected sock=9 [11:26: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 36 37 0F 01 00 00 59 2A 07 01 B2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 00 00 00 F4 03 04 00 E2 17 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1E CD 01 00 35 04 06 00 7A 06 DA 2D F9 F7 CB 0A CF BE DA 8A 5D 34 [11:26: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 36 37 4F 00 00 00 FB 0C 47 00 07 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1E CD 01 00 F4 03 04 00 99 C3 21 67 B6 04 01 00 00 2B C1 2E 98 71 EE 7E 58 [11:26:27]CommunicateWithHost err = 0 [11:26:27]CheckOFDResponse [11:26:27]1017 (14) - 77093643461234 [11:26:27]1041 (16) - 0000000000871767 [11:26:27]1040 (4) - 118046 [11:26:27]1012 (4) - 30.10.2024 05:26 [11:26:27]1206 (1) - 0 [11:26:27]OFD Sender: Remove packet 118046 [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00118046 [11:26:27]NVStorageDeleteData [11:26:27]Write to MH i2c: 01 00 00 44 17 5B [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 44 17 00 00 00 00 00 C1 0C 2F [11:26:27]RasterBufferAndPrint [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]written 0, free lines is 3272 [11:26:27]MH_Cut [11:26:27]Write to MH i2c: D1 01 00 4B 17 01 34 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 4B 17 00 33 [11:26:27]Write to MH i2c: 01 00 00 4C 17 63 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:28]OFD Sender: No OFD packet to send [11:26:28]*** Cut start [11:26:28]*** Purtial cut [11:26:28]*** Stage 1: CUTSNS_PIN = 1 [11:26:28]Read from MH i2c: 01 [11:26:28]MH_I2C_Read... [11:26:28]*** Stop cut motor [11:26:28]*** Cut end [11:26:28]Read from MH i2c: 01 07 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 4C 17 00 00 00 00 00 FF 0F 78 [11:26:28]process_action close_receipt done [11:26:28]requested_data is exist [11:26:28]produce_requested_data [11:26:28]requested_item fm.sn is exist - process it [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 11 00 00 [11:26:28]Write to MH i2c: E2 08 00 4D 17 80 11 00 00 00 00 00 00 DE [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 17 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 17 00 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 35 [11:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:26:29]wFMCommunicate OK [11:26:29]requested_item fd.num is exist - process it [11:26:29]SAM_PROTO_GetFieldsCounters [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 13 00 00 [11:26:29]Write to MH i2c: E2 08 00 4E 17 80 13 00 00 00 00 00 00 E1 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 62 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 62 00 4E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1E CD 01 00 0E 04 04 00 21 02 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 55 [11:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:29]wFMCommunicate OK [11:26:29]SAM_PROTO_GetFieldsCounters done [11:26:29]requested_item shift.num is exist - process it [11:26:29]requested_item shift.opened is exist - process it [11:26:29]req_shift_opened [11:26:29]FM_GetShiftState [11:26:29]SAM_PROTO_GetShiftState [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 13 01 00 [11:26:29]Write to MH i2c: E2 08 00 4F 17 80 13 01 00 00 00 00 00 E3 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 4F 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BB [11:26:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:26:29]wFMCommunicate OK [11:26:29]SAM_PROTO_GetShiftState done [11:26:29]FM_GetShiftState done [11:26:29]req_shift_opened done [11:26:29]requested_item shift.open_date is exist - process it [11:26:29]req_shift_open_date [11:26:29]req_shift_open_date done [11:26:29]produce_requested_data done [11:26:29]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118046,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:26:29]process_action_free close_receipt [11:26:29]json_value_free [11:26:29]json_value_free done [11:26:29]process_json_proto returns [11:26:29]Send response to host [11:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118046,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:26:29]free response buf [11:26:29]execute_script done [11:26:29]execute_script returns [11:26:29]free content buf [11:26:29]Sock 7.Close socket [11:26:29]Sock 7.Thread stoped [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:42]accept exits with 10 [11:27:42]New connection [11:27:42]New thread 3067415908 created [11:27:42]Thread 3067559268 joined [11:27:42]Waiting for new connection... [11:27:42] Sock 10.Parse request [11:27:42]Sock 10.Check first char [11:27:42]Sock 10.First char is OK [11:27:42]request: POST /json_proto HTTP/1.0 [11:27:42]Method: POST [11:27:42]URL: /json_proto [11:27:42]Method is POST - this is cgi request [11:27:42]url: /json_proto [11:27:42]query_string will be loaded in cgi processing [11:27:42]execute_cgi json_proto POST (null) [11:27:42]execute_cgi path=json_proto method=POST [11:27:42]POST find Content-Length [11:27:42]Host: 172.17.96.67:8080 [11:27:42]Content-Length: 677 [11:27:42]Content-Type: application/json [11:27:42] [11:27:42]POST finish read [11:27:42]Found Content-Length = 677 [11:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:27:42]execute_script... [11:27:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:27:42]POST & json_proto [11:27:42]process_json_proto [11:27:42]json parsed OK: [11:27:42]protocol is kg_v1.0 [11:27:42]action value=close_receipt [11:27:42]process_action close_receipt [11:27:42]cmd_close_receipt [11:27:42]MH_GetDate [11:27:42]Write to MH i2c: F0 00 00 50 17 56 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: F0 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: F0 09 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: F0 09 00 50 17 00 2E 18 22 67 47 6C 1F 67 67 [11:27:42]GetLastDocTimeStamp 1730287586 [11:27:42]current date 1730287662 [11:27:42]FM_GetShiftState [11:27:42]SAM_PROTO_GetShiftState [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 13 01 00 [11:27:42]Write to MH i2c: E2 08 00 51 17 80 13 01 00 00 00 00 00 E5 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0E 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0E 00 51 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BD [11:27:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:27:42]wFMCommunicate OK [11:27:42]SAM_PROTO_GetShiftState done [11:27:42]FM_GetShiftState done [11:27:42]opened in 1730246605 [11:27:42]opened+sec_in_day 1730333005 [11:27:42]quantity*price = 30038 [11:27:42]sum+1 = 30039 [11:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 107 30.10.2024 11:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118047 ФПД: 272831020788224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112742&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118047&fm=272831020788224&tin=02508201610067®Number=0000000000091782&sum=30000 [11:27:43]StoreToDocumentArchive [11:27:43]shift 545 fd 118047 [11:27:43]save to /storage/0545/doc_00118047 [11:27:43]save last doc name /storage/0545/doc_00118047 to /storage/kkm_last_doc_name [11:27:43]save OK [11:27:43]Clear old archive folders... [11:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:43]tlvbuf is 0067A430 [11:27:43]SAM_PROTO_ClearQueue [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 09 00 00 [11:27:43]Write to MH i2c: E2 08 00 5E 17 80 09 00 00 00 00 00 00 E7 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [11:27:43]RAPDU: 90 00 [11:27:43]wFMCommunicate OK [11:27:43]SAM_PROTO_ClearQueue done [11:27:43]KKMCreateOFDPacket [11:27:43]OFDProtocolAddRootSTLVToBuf [11:27:43]FM_MakeSignedData [11:27:43]FM_MakeSignedData [11:27:43]SAM_PROTO_SignData [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 0D 01 02 [11:27:43]Write to MH i2c: E2 08 00 5F 17 80 0D 01 02 00 00 00 00 EF [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:43]OFD Sender: No OFD packet to send [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [11:27:43]RAPDU: 90 00 [11:27:43]wFMCommunicate OK [11:27:43]wFMCommunicate request_size=255 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6B 00 00 00 F4 03 04 00 2E 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1F CD 01 00 35 04 06 00 F8 [11:27:43]Write to MH i2c: E2 02 01 60 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6B 00 00 00 F4 03 04 00 2E 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1F CD 01 00 35 04 06 00 F8 00 00 B7 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [11:27:43]RAPDU: 90 00 [11:27:43]wFMCommunicate OK [11:27:43]wFMCommunicate request_size=10 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 0D 02 02 05 23 6C 13 EA 00 [11:27:43]Write to MH i2c: E2 0D 00 61 17 80 0D 02 02 05 00 23 6C 13 EA 00 00 00 88 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [11:27:43]RAPDU: 90 00 [11:27:43]wFMCommunicate OK [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 0D 03 02 [11:27:43]Write to MH i2c: E2 08 00 62 17 80 0D 03 02 00 00 00 00 F4 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0B 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0B 00 62 17 00 3F FA 83 8E 55 1A 1A AB 90 00 73 [11:27:43]RAPDU: 3F FA 83 8E 55 1A 1A AB 90 00 [11:27:43]wFMCommunicate OK [11:27:43]SAM_PROTO_SignData done [11:27:43]FM_MakeSignedData done [11:27:43]CreateOFDProtocolMessage [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 11 00 00 [11:27:43]Write to MH i2c: E2 08 00 63 17 80 11 00 00 00 00 00 00 F4 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 17 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 17 00 63 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4B [11:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:27:43]wFMCommunicate OK [11:27:43]CreateOFDProtocolMessage done [11:27:43]OFDSenderStorePacket 118047 [11:27:43]StoreOFDPacket docnum=118047 [11:27:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C6 3B 07 01 D4 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6B 00 00 00 F4 03 04 00 2E 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1F CD 01 00 35 04 06 00 F8 23 6C 13 EA 00 3F FA 83 8E 55 1A 1A AB [11:27:43]CheckFolder [11:27:43]dirname=/storage/ofd_packets [11:27:43]CheckFolder done [11:27:43]ProducePacketName [11:27:43]name=ofd_packets/00118047 [11:27:43]NVStorageSaveData ofd_packets/00118047 [11:27:43]File name is /storage/ofd_packets/00118047 [11:27:43]Write 301 bytes [11:27:43]NVStorageSaveData done [11:27:43]OFDSenderStorePacket done [11:27:43]KKMCreateOFDPacket done [11:27:43]NVStorageSaveData kkm_last_timestamp [11:27:43]File name is /storage/kkm_last_timestamp [11:27:43]Write 4 bytes [11:27:43]NVStorageSaveData done [11:27:43]ExternCall_PrintAddStr [11:27:43]wPrintStart [11:27:43]Write to MH i2c: 01 00 00 64 17 7B [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 64 17 00 00 00 00 00 FF 0F 90 [11:27:43]RasterBufferAndPrint [11:27:43]line Счет N : (1)245841 [11:27:43]line ИНН: 02508201610067 [11:27:43]line Контрольно-Кассовый Чек [11:27:43]line ПРОДАЖА [11:27:43]line ТРК (МРК, ГНК) : 21 [11:27:43]line Товар: 2710124130 [11:27:43]line Аи-92-К-2 [11:27:43]line 4.490 * 66.90 [11:27:43]line = 300.38 [11:27:43]line НДС 12% НСП 1% [11:27:43]line > о реализуемом товаре [11:27:43]line ОКРУГЛЕНИЕ: -0.38 [11:27:43]line ИТОГО: 300.00 [11:27:43]line Внесено: 300.00 [11:27:43]line СДАЧА: 0.00 [11:27:43]line НСП 1% : 2.66 [11:27:43]line НДС 12% : 31.90 [11:27:43]line Наличными: 300.00 [11:27:43]line Безнал.: 0.00 [11:27:43]line Место: АЗС № 173 "Партнер Нефть" [11:27:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:27:43]line СНО: Общий режим [11:27:43]line Чек 107 30.10.2024 11:27 [11:27:43]line Смена: 545 ФФД: 1.0 [11:27:43]line ЗНМ: 0300000115 [11:27:43]line РНМ: 0000000000091782 [11:27:43]line Версия ККМ: 001 [11:27:43]line ФМ: 0000000000871767 [11:27:43]line ФД: 118047 [11:27:43]line ФПД: 272831020788224 [11:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112742&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118047&fm=272831020788224&tin=02508201610067®Number=0000000000091782&sum=30000 [11:27:44]OFD Sender: Processing packet 118047 [packets to send 77, broken 76] [11:27:44]ProducePacketName [11:27:44]name=ofd_packets/00118047 [11:27:44]OFD Sender: To server: pG, [11:27:44]CommunicateWithHost lk.salyk.kg:30040 [11:27:44]ConnectInit lk.salyk.kg [11:27:44]written 0, free lines is 4095 [11:27:44]Connected sock=9 [11:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C6 3B 07 01 D4 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6B 00 00 00 F4 03 04 00 2E 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1F CD 01 00 35 04 06 00 F8 23 6C 13 EA 00 3F FA 83 8E 55 1A 1A AB [11:27:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 92 87 47 00 22 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 1F CD 01 00 F4 03 04 00 E6 C3 21 67 B6 04 01 00 00 BA 4A 04 43 5A EB 52 D5 [11:27:44]CommunicateWithHost err = 0 [11:27:44]CheckOFDResponse [11:27:44]1017 (14) - 77093643461234 [11:27:44]1041 (16) - 0000000000871767 [11:27:44]1040 (4) - 118047 [11:27:44]1012 (4) - 30.10.2024 05:28 [11:27:44]1206 (1) - 0 [11:27:44]OFD Sender: Remove packet 118047 [11:27:44]ProducePacketName [11:27:44]name=ofd_packets/00118047 [11:27:44]NVStorageDeleteData [11:27:44]Write to MH i2c: 01 00 00 8E 17 A5 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 07 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 07 00 8E 17 00 00 00 00 00 B6 0C 6E [11:27:44]RasterBufferAndPrint [11:27:44]line [11:27:44]line [11:27:44]line [11:27:44]line [11:27:44]line [11:27:44]written 0, free lines is 3260 [11:27:44]MH_Cut [11:27:44]Write to MH i2c: D1 01 00 95 17 01 7E [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: D1 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: D1 01 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: D1 01 00 95 17 00 7D [11:27:44]Write to MH i2c: 01 00 00 96 17 AD [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]OFD Sender: No OFD packet to send [11:27:45]*** Cut start [11:27:45]*** Purtial cut [11:27:45]*** Stage 1: CUTSNS_PIN = 1 [11:27:45]Read from MH i2c: 01 [11:27:45]MH_I2C_Read... [11:27:45]*** Stop cut motor [11:27:45]*** Cut end [11:27:45]Read from MH i2c: 01 07 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 96 17 00 00 00 00 00 FF 0F C2 [11:27:45]process_action close_receipt done [11:27:45]requested_data is exist [11:27:45]produce_requested_data [11:27:45]requested_item fm.sn is exist - process it [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 11 00 00 [11:27:45]Write to MH i2c: E2 08 00 97 17 80 11 00 00 00 00 00 00 28 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 17 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 17 00 97 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7F [11:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:27:45]wFMCommunicate OK [11:27:45]requested_item fd.num is exist - process it [11:27:45]SAM_PROTO_GetFieldsCounters [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 13 00 00 [11:27:45]Write to MH i2c: E2 08 00 98 17 80 13 00 00 00 00 00 00 2B [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 62 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 62 00 98 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [11:27:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 1F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:45]wFMCommunicate OK [11:27:45]SAM_PROTO_GetFieldsCounters done [11:27:45]requested_item shift.num is exist - process it [11:27:45]requested_item shift.opened is exist - process it [11:27:45]req_shift_opened [11:27:45]FM_GetShiftState [11:27:45]SAM_PROTO_GetShiftState [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 13 01 00 [11:27:45]Write to MH i2c: E2 08 00 99 17 80 13 01 00 00 00 00 00 2D [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 0E 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 0E 00 99 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 05 [11:27:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:27:45]wFMCommunicate OK [11:27:45]SAM_PROTO_GetShiftState done [11:27:45]FM_GetShiftState done [11:27:45]req_shift_opened done [11:27:45]requested_item shift.open_date is exist - process it [11:27:45]req_shift_open_date [11:27:45]req_shift_open_date done [11:27:45]produce_requested_data done [11:27:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118047,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:27:45]process_action_free close_receipt [11:27:45]json_value_free [11:27:45]json_value_free done [11:27:45]process_json_proto returns [11:27:45]Send response to host [11:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118047,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:27:45]free response buf [11:27:45]execute_script done [11:27:45]execute_script returns [11:27:45]free content buf [11:27:45]Sock 10.Close socket [11:27:45]Sock 10.Thread stoped [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:28:57]accept exits with 7 [11:28:57]New connection [11:28:57]New thread 3067559268 created [11:28:57]Thread 3067415908 joined [11:28:57]Waiting for new connection... [11:28:57] Sock 7.Parse request [11:28:57]Sock 7.Check first char [11:28:57]Sock 7.First char is OK [11:28:57]request: POST /json_proto HTTP/1.0 [11:28:57]Method: POST [11:28:57]URL: /json_proto [11:28:57]Method is POST - this is cgi request [11:28:57]url: /json_proto [11:28:57]query_string will be loaded in cgi processing [11:28:57]execute_cgi json_proto POST (null) [11:28:57]execute_cgi path=json_proto method=POST [11:28:57]POST find Content-Length [11:28:57]Host: 172.17.96.67:8080 [11:28:57]Content-Length: 677 [11:28:57]Content-Type: application/json [11:28:57] [11:28:57]POST finish read [11:28:57]Found Content-Length = 677 [11:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:57]execute_script... [11:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:57]POST & json_proto [11:28:57]process_json_proto [11:28:57]json parsed OK: [11:28:57]protocol is kg_v1.0 [11:28:57]action value=close_receipt [11:28:57]process_action close_receipt [11:28:57]cmd_close_receipt [11:28:57]MH_GetDate [11:28:57]Write to MH i2c: F0 00 00 9A 17 A0 [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: F0 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: F0 09 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: F0 09 00 9A 17 00 79 18 22 67 47 6C 1F 67 FC [11:28:57]GetLastDocTimeStamp 1730287662 [11:28:57]current date 1730287737 [11:28:57]FM_GetShiftState [11:28:57]SAM_PROTO_GetShiftState [11:28:57]wFMCommunicate request_size=4 [11:28:57]MH_SAM_APDU [11:28:57]CAPDU: 80 13 01 00 [11:28:57]Write to MH i2c: E2 08 00 9B 17 80 13 01 00 00 00 00 00 2F [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:57]Read from MH i2c: E2 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 0E 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 0E 00 9B 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 07 [11:28:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:28:57]wFMCommunicate OK [11:28:57]SAM_PROTO_GetShiftState done [11:28:57]FM_GetShiftState done [11:28:57]opened in 1730246605 [11:28:57]opened+sec_in_day 1730333005 [11:28:57]quantity*price = 50041 [11:28:57]sum+1 = 50042 [11:28: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 108 30.10.2024 11:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118048 ФПД: 216998390239347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112857&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118048&fm=216998390239347&tin=02508201610067®Number=0000000000091782&sum=50000 [11:28:58]StoreToDocumentArchive [11:28:58]shift 545 fd 118048 [11:28:58]save to /storage/0545/doc_00118048 [11:28:58]save last doc name /storage/0545/doc_00118048 to /storage/kkm_last_doc_name [11:28:58]save OK [11:28:58]Clear old archive folders... [11:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:58]tlvbuf is 006606E0 [11:28:58]SAM_PROTO_ClearQueue [11:28:58]wFMCommunicate request_size=4 [11:28:58]MH_SAM_APDU [11:28:58]CAPDU: 80 09 00 00 [11:28:58]Write to MH i2c: E2 08 00 A8 17 80 09 00 00 00 00 00 00 31 [11:28:58]Write i2c OK [11:28:58]MH_I2C_Read... [11:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:58]Read from MH i2c: E2 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 A8 17 00 90 00 33 [11:28:58]RAPDU: 90 00 [11:28:58]wFMCommunicate OK [11:28:58]SAM_PROTO_ClearQueue done [11:28:58]KKMCreateOFDPacket [11:28:58]OFDProtocolAddRootSTLVToBuf [11:28:58]FM_MakeSignedData [11:28:58]FM_MakeSignedData [11:28:58]SAM_PROTO_SignData [11:28:58]wFMCommunicate request_size=4 [11:28:58]MH_SAM_APDU [11:28:58]CAPDU: 80 0D 01 02 [11:28:58]Write to MH i2c: E2 08 00 A9 17 80 0D 01 02 00 00 00 00 39 [11:28:58]Write i2c OK [11:28:58]MH_I2C_Read... [11:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:58]Read from MH i2c: E2 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [11:28:58]RAPDU: 90 00 [11:28:58]wFMCommunicate OK [11:28:58]wFMCommunicate request_size=255 [11:28:58]MH_SAM_APDU [11:28:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 79 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 20 CD 01 00 35 04 06 00 C5 [11:28:58]Write to MH i2c: E2 02 01 AA 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 79 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 20 CD 01 00 35 04 06 00 C5 00 00 27 [11:28:58]Write i2c OK [11:28:58]MH_I2C_Read... [11:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:58]Read from MH i2c: E2 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [11:28:58]RAPDU: 90 00 [11:28:58]wFMCommunicate OK [11:28:58]wFMCommunicate request_size=10 [11:28:58]MH_SAM_APDU [11:28:58]CAPDU: 80 0D 02 02 05 5B DF F7 90 73 [11:28:58]Write to MH i2c: E2 0D 00 AB 17 80 0D 02 02 05 00 5B DF F7 90 73 00 00 7A [11:28:58]Write i2c OK [11:28:58]MH_I2C_Read... [11:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:58]Read from MH i2c: E2 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [11:28:58]RAPDU: 90 00 [11:28:58]wFMCommunicate OK [11:28:58]wFMCommunicate request_size=4 [11:28:58]MH_SAM_APDU [11:28:58]CAPDU: 80 0D 03 02 [11:28:58]Write to MH i2c: E2 08 00 AC 17 80 0D 03 02 00 00 00 00 3E [11:28:58]Write i2c OK [11:28:58]MH_I2C_Read... [11:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:58]Read from MH i2c: E2 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 0B 00 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 0B 00 AC 17 00 DF 07 56 6F 39 22 0B 8B 90 00 DB [11:28:58]RAPDU: DF 07 56 6F 39 22 0B 8B 90 00 [11:28:58]wFMCommunicate OK [11:28:58]SAM_PROTO_SignData done [11:28:58]FM_MakeSignedData done [11:28:58]CreateOFDProtocolMessage [11:28:58]wFMCommunicate request_size=4 [11:28:58]MH_SAM_APDU [11:28:58]CAPDU: 80 11 00 00 [11:28:58]Write to MH i2c: E2 08 00 AD 17 80 11 00 00 00 00 00 00 3E [11:28:58]Write i2c OK [11:28:58]MH_I2C_Read... [11:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:58]Read from MH i2c: E2 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 17 00 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: E2 17 00 AD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 95 [11:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:28:58]wFMCommunicate OK [11:28:58]CreateOFDProtocolMessage done [11:28:58]OFDSenderStorePacket 118048 [11:28:58]StoreOFDPacket docnum=118048 [11:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 BA F5 07 01 CE BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 79 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 20 CD 01 00 35 04 06 00 C5 5B DF F7 90 73 DF 07 56 6F 39 22 0B 8B [11:28:58]CheckFolder [11:28:58]dirname=/storage/ofd_packets [11:28:58]CheckFolder done [11:28:58]ProducePacketName [11:28:58]name=ofd_packets/00118048 [11:28:58]NVStorageSaveData ofd_packets/00118048 [11:28:58]File name is /storage/ofd_packets/00118048 [11:28:58]Write 301 bytes [11:28:58]NVStorageSaveData done [11:28:58]OFDSenderStorePacket done [11:28:58]KKMCreateOFDPacket done [11:28:58]NVStorageSaveData kkm_last_timestamp [11:28:58]File name is /storage/kkm_last_timestamp [11:28:58]Write 4 bytes [11:28:58]NVStorageSaveData done [11:28:58]ExternCall_PrintAddStr [11:28:58]wPrintStart [11:28:58]Write to MH i2c: 01 00 00 AE 17 C5 [11:28:58]Write i2c OK [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: 01 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: 01 07 00 [11:28:58]MH_I2C_Read... [11:28:58]Read from MH i2c: 01 07 00 AE 17 00 00 00 00 00 FF 0F DA [11:28:58]RasterBufferAndPrint [11:28:58]line Счет N : (1)245842 [11:28:58]line ИНН: 02508201610067 [11:28:58]line Контрольно-Кассовый Чек [11:28:58]line ПРОДАЖА [11:28:58]line ТРК (МРК, ГНК) : 11 [11:28:58]line Товар: 2710124130 [11:28:58]line Аи-92-К-2 [11:28:58]line 7.480 * 66.90 [11:28:58]line = 500.41 [11:28:58]line НДС 12% НСП 1% [11:28:58]line > о реализуемом товаре [11:28:58]line ОКРУГЛЕНИЕ: -0.41 [11:28:58]line ИТОГО: 500.00 [11:28:58]line Внесено: 500.00 [11:28:58]line СДАЧА: 0.00 [11:28:58]line НСП 1% : 4.43 [11:28:58]line НДС 12% : 53.14 [11:28:58]line Наличными: 500.00 [11:28:58]line Безнал.: 0.00 [11:28:58]line Место: АЗС № 173 "Партнер Нефть" [11:28:58]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:28:58]line СНО: Общий режим [11:28:58]line Чек 108 30.10.2024 11:28 [11:28:58]line Смена: 545 ФФД: 1.0 [11:28:58]line ЗНМ: 0300000115 [11:28:58]line РНМ: 0000000000091782 [11:28:58]line Версия ККМ: 001 [11:28:58]line ФМ: 0000000000871767 [11:28:58]line ФД: 118048 [11:28:58]line ФПД: 216998390239347 [11:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112857&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118048&fm=216998390239347&tin=02508201610067®Number=0000000000091782&sum=50000 [11:28:59]written 0, free lines is 4095 [11:28:59]OFD Sender: Processing packet 118048 [packets to send 77, broken 76] [11:28:59]ProducePacketName [11:28:59]name=ofd_packets/00118048 [11:28:59]OFD Sender: To server: pG, [11:28:59]CommunicateWithHost lk.salyk.kg:30040 [11:28:59]ConnectInit lk.salyk.kg [11:28:59]Connected sock=10 [11:28: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 36 37 0F 01 00 00 BA F5 07 01 CE BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 79 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 20 CD 01 00 35 04 06 00 C5 5B DF F7 90 73 DF 07 56 6F 39 22 0B 8B [11:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 5B BB 47 00 15 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 20 CD 01 00 F4 03 04 00 31 C4 21 67 B6 04 01 00 00 B7 0F 8C 75 0A 98 17 A6 [11:28:59]CommunicateWithHost err = 0 [11:28:59]CheckOFDResponse [11:28:59]1017 (14) - 77093643461234 [11:28:59]1041 (16) - 0000000000871767 [11:28:59]1040 (4) - 118048 [11:28:59]1012 (4) - 30.10.2024 05:29 [11:28:59]1206 (1) - 0 [11:28:59]OFD Sender: Remove packet 118048 [11:28:59]ProducePacketName [11:28:59]name=ofd_packets/00118048 [11:28:59]NVStorageDeleteData [11:28:59]Write to MH i2c: 01 00 00 D8 17 EF [11:28:59]Write i2c OK [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: 01 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: 01 07 00 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: 01 07 00 D8 17 00 00 00 00 00 B3 0C B5 [11:28:59]RasterBufferAndPrint [11:28:59]line [11:28:59]line [11:28:59]line [11:28:59]line [11:28:59]line [11:28:59]written 0, free lines is 3255 [11:28:59]MH_Cut [11:28:59]Write to MH i2c: D1 01 00 DF 17 01 C8 [11:28:59]Write i2c OK [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: D1 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: D1 01 00 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: D1 01 00 DF 17 00 C7 [11:28:59]Write to MH i2c: 01 00 00 E0 17 F7 [11:28:59]Write i2c OK [11:28:59]MH_I2C_Read... [11:29:00]OFD Sender: No OFD packet to send [11:29:00]*** Cut start [11:29:00]*** Purtial cut [11:29:00]*** Stage 1: CUTSNS_PIN = 1 [11:29:00]Read from MH i2c: 01 [11:29:00]MH_I2C_Read... [11:29:00]*** Stop cut motor [11:29:00]*** Cut end [11:29:00]Read from MH i2c: 01 07 00 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 FF 0F 0C [11:29:00]process_action close_receipt done [11:29:00]requested_data is exist [11:29:00]produce_requested_data [11:29:00]requested_item fm.sn is exist - process it [11:29:00]wFMCommunicate request_size=4 [11:29:00]MH_SAM_APDU [11:29:00]CAPDU: 80 11 00 00 [11:29:00]Write to MH i2c: E2 08 00 E1 17 80 11 00 00 00 00 00 00 72 [11:29:00]Write i2c OK [11:29:00]MH_I2C_Read... [11:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:00]Read from MH i2c: E2 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 17 00 [11:29:00]MH_I2C_Read... [11:29:00]Read from MH i2c: E2 17 00 E1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C9 [11:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:29:00]wFMCommunicate OK [11:29:00]requested_item fd.num is exist - process it [11:29:00]SAM_PROTO_GetFieldsCounters [11:29:00]wFMCommunicate request_size=4 [11:29:00]MH_SAM_APDU [11:29:00]CAPDU: 80 13 00 00 [11:29:00]Write to MH i2c: E2 08 00 E2 17 80 13 00 00 00 00 00 00 75 [11:29:00]Write i2c OK [11:29:00]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 62 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 62 00 E2 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 20 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [11:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 20 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:01]wFMCommunicate OK [11:29:01]SAM_PROTO_GetFieldsCounters done [11:29:01]requested_item shift.num is exist - process it [11:29:01]requested_item shift.opened is exist - process it [11:29:01]req_shift_opened [11:29:01]FM_GetShiftState [11:29:01]SAM_PROTO_GetShiftState [11:29:01]wFMCommunicate request_size=4 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 13 01 00 [11:29:01]Write to MH i2c: E2 08 00 E3 17 80 13 01 00 00 00 00 00 77 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0E 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0E 00 E3 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4F [11:29:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:29:01]wFMCommunicate OK [11:29:01]SAM_PROTO_GetShiftState done [11:29:01]FM_GetShiftState done [11:29:01]req_shift_opened done [11:29:01]requested_item shift.open_date is exist - process it [11:29:01]req_shift_open_date [11:29:01]req_shift_open_date done [11:29:01]produce_requested_data done [11:29:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118048,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:29:01]process_action_free close_receipt [11:29:01]json_value_free [11:29:01]json_value_free done [11:29:01]process_json_proto returns [11:29:01]Send response to host [11:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118048,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:29:01]free response buf [11:29:01]execute_script done [11:29:01]execute_script returns [11:29:01]free content buf [11:29:01]Sock 7.Close socket [11:29:01]Sock 7.Thread stoped [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]accept exits with 9 [11:29:55]New connection [11:29:55]New thread 3067415908 created [11:29:55]Thread 3067559268 joined [11:29:55]Waiting for new connection... [11:29:55] Sock 9.Parse request [11:29:55]Sock 9.Check first char [11:29:55]Sock 9.First char is OK [11:29:55]request: POST /json_proto HTTP/1.0 [11:29:55]Method: POST [11:29:55]URL: /json_proto [11:29:55]Method is POST - this is cgi request [11:29:55]url: /json_proto [11:29:55]query_string will be loaded in cgi processing [11:29:55]execute_cgi json_proto POST (null) [11:29:55]execute_cgi path=json_proto method=POST [11:29:55]POST find Content-Length [11:29:55]Host: 172.17.96.67:8080 [11:29:55]Content-Length: 682 [11:29:55]Content-Type: application/json [11:29:55] [11:29:55]POST finish read [11:29:55]Found Content-Length = 682 [11:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:29:55]execute_script... [11:29: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)245843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:29:55]POST & json_proto [11:29:55]process_json_proto [11:29:55]json parsed OK: [11:29:55]protocol is kg_v1.0 [11:29:55]action value=close_receipt [11:29:55]process_action close_receipt [11:29:55]cmd_close_receipt [11:29:55]MH_GetDate [11:29:55]Write to MH i2c: F0 00 00 E4 17 EA [11:29:55]Write i2c OK [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: F0 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: F0 09 00 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: F0 09 00 E4 17 00 B3 18 22 67 47 6C 1F 67 80 [11:29:55]GetLastDocTimeStamp 1730287737 [11:29:55]current date 1730287795 [11:29:55]FM_GetShiftState [11:29:55]SAM_PROTO_GetShiftState [11:29:55]wFMCommunicate request_size=4 [11:29:55]MH_SAM_APDU [11:29:55]CAPDU: 80 13 01 00 [11:29:55]Write to MH i2c: E2 08 00 E5 17 80 13 01 00 00 00 00 00 79 [11:29:55]Write i2c OK [11:29:55]MH_I2C_Read... [11:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:55]Read from MH i2c: E2 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: E2 0E 00 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: E2 0E 00 E5 17 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 51 [11:29:55]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:29:55]wFMCommunicate OK [11:29:55]SAM_PROTO_GetShiftState done [11:29:55]FM_GetShiftState done [11:29:55]opened in 1730246605 [11:29:55]opened+sec_in_day 1730333005 [11:29:55]quantity*price = 100015 [11:29:55]sum+1 = 100017 [11:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 109 30.10.2024 11:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118049 ФПД: 116791243995248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112955&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118049&fm=116791243995248&tin=02508201610067®Number=0000000000091782&sum=100000 [11:29:56]StoreToDocumentArchive [11:29:56]shift 545 fd 118049 [11:29:56]save to /storage/0545/doc_00118049 [11:29:56]save last doc name /storage/0545/doc_00118049 to /storage/kkm_last_doc_name [11:29:56]save OK [11:29:56]Clear old archive folders... [11:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:56]tlvbuf is 00626D10 [11:29:56]SAM_PROTO_ClearQueue [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 09 00 00 [11:29:56]Write to MH i2c: E2 08 00 F2 17 80 09 00 00 00 00 00 00 7B [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 F2 17 00 90 00 7D [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_ClearQueue done [11:29:56]KKMCreateOFDPacket [11:29:56]OFDProtocolAddRootSTLVToBuf [11:29:56]FM_MakeSignedData [11:29:56]FM_MakeSignedData [11:29:56]SAM_PROTO_SignData [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 0D 01 02 [11:29:56]Write to MH i2c: E2 08 00 F3 17 80 0D 01 02 00 00 00 00 83 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 F3 17 00 90 00 7E [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]wFMCommunicate request_size=255 [11:29:56]MH_SAM_APDU [11:29: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 32 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 6D 00 00 00 F4 03 04 00 B3 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 21 CD 01 00 35 04 06 00 6A [11:29:56]Write to MH i2c: E2 02 01 F4 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 B3 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 21 CD 01 00 35 04 06 00 6A 00 00 4C [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 F4 17 00 90 00 7F [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]wFMCommunicate request_size=10 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 0D 02 02 05 38 94 9C 78 70 [11:29:56]Write to MH i2c: E2 0D 00 F5 17 80 0D 02 02 05 00 38 94 9C 78 70 00 00 E0 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 03 00 F5 17 00 90 00 80 [11:29:56]RAPDU: 90 00 [11:29:56]wFMCommunicate OK [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 0D 03 02 [11:29:56]Write to MH i2c: E2 08 00 F6 17 80 0D 03 02 00 00 00 00 88 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0B 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0B 00 F6 17 00 C5 5F 0C F9 02 D3 19 74 90 00 14 [11:29:56]RAPDU: C5 5F 0C F9 02 D3 19 74 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_SignData done [11:29:56]FM_MakeSignedData done [11:29:56]CreateOFDProtocolMessage [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 11 00 00 [11:29:56]Write to MH i2c: E2 08 00 F7 17 80 11 00 00 00 00 00 00 88 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 F7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DF [11:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:29:56]wFMCommunicate OK [11:29:56]CreateOFDProtocolMessage done [11:29:56]OFDSenderStorePacket 118049 [11:29:56]StoreOFDPacket docnum=118049 [11:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 22 A7 07 01 10 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 B3 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 21 CD 01 00 35 04 06 00 6A 38 94 9C 78 70 C5 5F 0C F9 02 D3 19 74 [11:29:56]CheckFolder [11:29:56]dirname=/storage/ofd_packets [11:29:56]CheckFolder done [11:29:56]ProducePacketName [11:29:56]name=ofd_packets/00118049 [11:29:56]NVStorageSaveData ofd_packets/00118049 [11:29:56]File name is /storage/ofd_packets/00118049 [11:29:56]Write 301 bytes [11:29:56]NVStorageSaveData done [11:29:56]OFDSenderStorePacket done [11:29:56]KKMCreateOFDPacket done [11:29:56]NVStorageSaveData kkm_last_timestamp [11:29:56]File name is /storage/kkm_last_timestamp [11:29:56]Write 4 bytes [11:29:56]NVStorageSaveData done [11:29:56]ExternCall_PrintAddStr [11:29:56]wPrintStart [11:29:56]Write to MH i2c: 01 00 00 F8 17 0F [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 07 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 07 00 F8 17 00 00 00 00 00 FF 0F 24 [11:29:56]RasterBufferAndPrint [11:29:56]line Счет N : (1)245843 [11:29:56]line ИНН: 02508201610067 [11:29:56]line Контрольно-Кассовый Чек [11:29:56]line ПРОДАЖА [11:29:56]line ТРК (МРК, ГНК) : 21 [11:29:56]line Товар: 2710124130 [11:29:56]line Аи-92-К-2 [11:29:56]line 14.950 * 66.90 [11:29:56]line = 1000.16 [11:29:56]line НДС 12% НСП 1% [11:29:56]line > о реализуемом товаре [11:29:56]line ОКРУГЛЕНИЕ: -0.16 [11:29:56]line ИТОГО: 1000.00 [11:29:56]line Внесено: 1000.00 [11:29:56]line СДАЧА: 0.00 [11:29:56]line НСП 1% : 8.85 [11:29:56]line НДС 12% : 106.21 [11:29:56]line Наличными: 1000.00 [11:29:56]line Безнал.: 0.00 [11:29:56]line Место: АЗС № 173 "Партнер Нефть" [11:29:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:29:56]line СНО: Общий режим [11:29:56]line Чек 109 30.10.2024 11:29 [11:29:56]line Смена: 545 ФФД: 1.0 [11:29:56]line ЗНМ: 0300000115 [11:29:56]line РНМ: 0000000000091782 [11:29:56]line Версия ККМ: 001 [11:29:56]line ФМ: 0000000000871767 [11:29:56]line ФД: 118049 [11:29:56]line ФПД: 116791243995248 [11:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112955&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118049&fm=116791243995248&tin=02508201610067®Number=0000000000091782&sum=100000 [11:29:57]written 0, free lines is 4095 [11:29:57]OFD Sender: Processing packet 118049 [packets to send 77, broken 76] [11:29:57]ProducePacketName [11:29:57]name=ofd_packets/00118049 [11:29:57]OFD Sender: To server: pG, [11:29:57]CommunicateWithHost lk.salyk.kg:30040 [11:29:57]ConnectInit lk.salyk.kg [11:29:57]Connected sock=11 [11:29: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 36 37 0F 01 00 00 22 A7 07 01 10 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 B3 18 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 21 CD 01 00 35 04 06 00 6A 38 94 9C 78 70 C5 5F 0C F9 02 D3 19 74 [11:29: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 36 37 4F 00 00 00 47 46 47 00 E7 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 21 CD 01 00 F4 03 04 00 6B C4 21 67 B6 04 01 00 00 7F 2A 02 FA FC E9 4C 20 [11:29:57]CommunicateWithHost err = 0 [11:29:57]CheckOFDResponse [11:29:57]1017 (14) - 77093643461234 [11:29:57]1041 (16) - 0000000000871767 [11:29:57]1040 (4) - 118049 [11:29:57]1012 (4) - 30.10.2024 05:30 [11:29:57]1206 (1) - 0 [11:29:57]OFD Sender: Remove packet 118049 [11:29:57]ProducePacketName [11:29:57]name=ofd_packets/00118049 [11:29:57]NVStorageDeleteData [11:29:57]Write to MH i2c: 01 00 00 22 18 3A [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: 01 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: 01 07 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: 01 07 00 22 18 00 00 00 00 00 B4 0C 01 [11:29:57]RasterBufferAndPrint [11:29:57]line [11:29:57]line [11:29:57]line [11:29:57]line [11:29:57]line [11:29:57]written 0, free lines is 3256 [11:29:57]MH_Cut [11:29:57]Write to MH i2c: D1 01 00 29 18 01 13 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: D1 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: D1 01 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: D1 01 00 29 18 00 12 [11:29:57]Write to MH i2c: 01 00 00 2A 18 42 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]OFD Sender: No OFD packet to send [11:29:58]*** Cut start [11:29:58]*** Purtial cut [11:29:58]*** Stage 1: CUTSNS_PIN = 1 [11:29:58]Read from MH i2c: 01 [11:29:58]MH_I2C_Read... [11:29:58]*** Stop cut motor [11:29:58]*** Cut end [11:29:58]Read from MH i2c: 01 07 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 2A 18 00 00 00 00 00 FF 0F 57 [11:29:58]process_action close_receipt done [11:29:58]requested_data is exist [11:29:58]produce_requested_data [11:29:58]requested_item fm.sn is exist - process it [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 11 00 00 [11:29:58]Write to MH i2c: E2 08 00 2B 18 80 11 00 00 00 00 00 00 BD [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 17 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 17 00 2B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 14 [11:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:29:58]wFMCommunicate OK [11:29:58]requested_item fd.num is exist - process it [11:29:58]SAM_PROTO_GetFieldsCounters [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 13 00 00 [11:29:58]Write to MH i2c: E2 08 00 2C 18 80 13 00 00 00 00 00 00 C0 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 62 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 62 00 2C 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 21 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [11:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 21 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:58]wFMCommunicate OK [11:29:58]SAM_PROTO_GetFieldsCounters done [11:29:58]requested_item shift.num is exist - process it [11:29:58]requested_item shift.opened is exist - process it [11:29:58]req_shift_opened [11:29:58]FM_GetShiftState [11:29:58]SAM_PROTO_GetShiftState [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 13 01 00 [11:29:58]Write to MH i2c: E2 08 00 2D 18 80 13 01 00 00 00 00 00 C2 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 0E 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 0E 00 2D 18 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9A [11:29:58]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:29:58]wFMCommunicate OK [11:29:58]SAM_PROTO_GetShiftState done [11:29:58]FM_GetShiftState done [11:29:58]req_shift_opened done [11:29:58]requested_item shift.open_date is exist - process it [11:29:58]req_shift_open_date [11:29:58]req_shift_open_date done [11:29:58]produce_requested_data done [11:29:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118049,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:29:58]process_action_free close_receipt [11:29:58]json_value_free [11:29:58]json_value_free done [11:29:58]process_json_proto returns [11:29:58]Send response to host [11:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118049,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:29:58]free response buf [11:29:58]execute_script done [11:29:58]execute_script returns [11:29:58]free content buf [11:29:58]Sock 9.Close socket [11:29:58]Sock 9.Thread stoped [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:35:59]accept exits with 7 [11:35:59]New connection [11:35:59]New thread 3067559268 created [11:35:59]Thread 3067415908 joined [11:35:59]Waiting for new connection... [11:35:59] Sock 7.Parse request [11:35:59]Sock 7.Check first char [11:35:59]Sock 7.First char is OK [11:35:59]request: POST /json_proto HTTP/1.0 [11:35:59]Method: POST [11:35:59]URL: /json_proto [11:35:59]Method is POST - this is cgi request [11:35:59]url: /json_proto [11:35:59]query_string will be loaded in cgi processing [11:35:59]execute_cgi json_proto POST (null) [11:35:59]execute_cgi path=json_proto method=POST [11:35:59]POST find Content-Length [11:35:59]Host: 172.17.96.67:8080 [11:35:59]Content-Length: 677 [11:35:59]Content-Type: application/json [11:35:59] [11:35:59]POST finish read [11:35:59]Found Content-Length = 677 [11:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:59]execute_script... [11:35: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)245844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:59]POST & json_proto [11:35:59]process_json_proto [11:35:59]json parsed OK: [11:35:59]protocol is kg_v1.0 [11:35:59]action value=close_receipt [11:35:59]process_action close_receipt [11:35:59]cmd_close_receipt [11:35:59]MH_GetDate [11:35:59]Write to MH i2c: F0 00 00 2E 18 35 [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: F0 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: F0 09 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: F0 09 00 2E 18 00 20 1A 22 67 47 6C 1F 67 3A [11:35:59]GetLastDocTimeStamp 1730287795 [11:35:59]current date 1730288160 [11:35:59]FM_GetShiftState [11:35:59]SAM_PROTO_GetShiftState [11:35:59]wFMCommunicate request_size=4 [11:35:59]MH_SAM_APDU [11:35:59]CAPDU: 80 13 01 00 [11:35:59]Write to MH i2c: E2 08 00 2F 18 80 13 01 00 00 00 00 00 C4 [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:59]Read from MH i2c: E2 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 0E 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 0E 00 2F 18 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9C [11:35:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:35:59]wFMCommunicate OK [11:35:59]SAM_PROTO_GetShiftState done [11:35:59]FM_GetShiftState done [11:35:59]opened in 1730246605 [11:35:59]opened+sec_in_day 1730333005 [11:35:59]quantity*price = 40006 [11:35:59]sum+1 = 40007 [11:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 110 30.10.2024 11:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118050 ФПД: 204267806751952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T113600&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118050&fm=204267806751952&tin=02508201610067®Number=0000000000091782&sum=40000 [11:36:00]StoreToDocumentArchive [11:36:00]shift 545 fd 118050 [11:36:00]save to /storage/0545/doc_00118050 [11:36:00]save last doc name /storage/0545/doc_00118050 to /storage/kkm_last_doc_name [11:36:00]save OK [11:36:00]Clear old archive folders... [11:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:00]tlvbuf is B6F3CBD0 [11:36:00]SAM_PROTO_ClearQueue [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 09 00 00 [11:36:00]Write to MH i2c: E2 08 00 3C 18 80 09 00 00 00 00 00 00 C6 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 03 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 03 00 3C 18 00 90 00 C8 [11:36:00]RAPDU: 90 00 [11:36:00]wFMCommunicate OK [11:36:00]SAM_PROTO_ClearQueue done [11:36:00]KKMCreateOFDPacket [11:36:00]OFDProtocolAddRootSTLVToBuf [11:36:00]FM_MakeSignedData [11:36:00]FM_MakeSignedData [11:36:00]SAM_PROTO_SignData [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 0D 01 02 [11:36:00]Write to MH i2c: E2 08 00 3D 18 80 0D 01 02 00 00 00 00 CE [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 03 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 03 00 3D 18 00 90 00 C9 [11:36:01]RAPDU: 90 00 [11:36:01]wFMCommunicate OK [11:36:01]wFMCommunicate request_size=255 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 20 1A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 22 CD 01 00 35 04 06 00 B9 [11:36:01]Write to MH i2c: E2 02 01 3E 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 20 1A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 22 CD 01 00 35 04 06 00 B9 00 00 2C [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 03 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 03 00 3E 18 00 90 00 CA [11:36:01]RAPDU: 90 00 [11:36:01]wFMCommunicate OK [11:36:01]wFMCommunicate request_size=10 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 0D 02 02 05 C7 CE 0F 7C D0 [11:36:01]Write to MH i2c: E2 0D 00 3F 18 80 0D 02 02 05 00 C7 CE 0F 7C D0 00 00 CB [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 03 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 03 00 3F 18 00 90 00 CB [11:36:01]RAPDU: 90 00 [11:36:01]wFMCommunicate OK [11:36:01]wFMCommunicate request_size=4 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 0D 03 02 [11:36:01]Write to MH i2c: E2 08 00 40 18 80 0D 03 02 00 00 00 00 D3 [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 0B 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 0B 00 40 18 00 3A C1 70 F4 DE C5 2C 35 90 00 37 [11:36:01]RAPDU: 3A C1 70 F4 DE C5 2C 35 90 00 [11:36:01]wFMCommunicate OK [11:36:01]SAM_PROTO_SignData done [11:36:01]FM_MakeSignedData done [11:36:01]CreateOFDProtocolMessage [11:36:01]wFMCommunicate request_size=4 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 11 00 00 [11:36:01]Write to MH i2c: E2 08 00 41 18 80 11 00 00 00 00 00 00 D3 [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 17 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 17 00 41 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2A [11:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:36:01]wFMCommunicate OK [11:36:01]CreateOFDProtocolMessage done [11:36:01]OFDSenderStorePacket 118050 [11:36:01]StoreOFDPacket docnum=118050 [11:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4C 4B 07 01 4C 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 32 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 6E 00 00 00 F4 03 04 00 20 1A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 22 CD 01 00 35 04 06 00 B9 C7 CE 0F 7C D0 3A C1 70 F4 DE C5 2C 35 [11:36:01]CheckFolder [11:36:01]dirname=/storage/ofd_packets [11:36:01]CheckFolder done [11:36:01]ProducePacketName [11:36:01]name=ofd_packets/00118050 [11:36:01]NVStorageSaveData ofd_packets/00118050 [11:36:01]File name is /storage/ofd_packets/00118050 [11:36:01]Write 301 bytes [11:36:01]NVStorageSaveData done [11:36:01]OFDSenderStorePacket done [11:36:01]KKMCreateOFDPacket done [11:36:01]NVStorageSaveData kkm_last_timestamp [11:36:01]File name is /storage/kkm_last_timestamp [11:36:01]Write 4 bytes [11:36:01]NVStorageSaveData done [11:36:01]ExternCall_PrintAddStr [11:36:01]wPrintStart [11:36:01]Write to MH i2c: 01 00 00 42 18 5A [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: 01 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: 01 07 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: 01 07 00 42 18 00 00 00 00 00 FF 0F 6F [11:36:01]RasterBufferAndPrint [11:36:01]line Счет N : (1)245844 [11:36:01]line ИНН: 02508201610067 [11:36:01]line Контрольно-Кассовый Чек [11:36:01]line ПРОДАЖА [11:36:01]line ТРК (МРК, ГНК) : 21 [11:36:01]line Товар: 2710124130 [11:36:01]line Аи-92-К-2 [11:36:01]line 5.980 * 66.90 [11:36:01]line = 400.06 [11:36:01]line НДС 12% НСП 1% [11:36:01]line > о реализуемом товаре [11:36:01]line ОКРУГЛЕНИЕ: -0.06 [11:36:01]line ИТОГО: 400.00 [11:36:01]line Внесено: 400.00 [11:36:01]line СДАЧА: 0.00 [11:36:01]line НСП 1% : 3.54 [11:36:01]line НДС 12% : 42.48 [11:36:01]line Наличными: 400.00 [11:36:01]line Безнал.: 0.00 [11:36:01]line Место: АЗС № 173 "Партнер Нефть" [11:36:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:36:01]line СНО: Общий режим [11:36:01]line Чек 110 30.10.2024 11:36 [11:36:01]line Смена: 545 ФФД: 1.0 [11:36:01]line ЗНМ: 0300000115 [11:36:01]line РНМ: 0000000000091782 [11:36:01]line Версия ККМ: 001 [11:36:01]line ФМ: 0000000000871767 [11:36:01]line ФД: 118050 [11:36:01]line ФПД: 204267806751952 [11:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T113600&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118050&fm=204267806751952&tin=02508201610067®Number=0000000000091782&sum=40000 [11:36:01]written 0, free lines is 4095 [11:36:01]OFD Sender: Processing packet 118050 [packets to send 77, broken 76] [11:36:01]ProducePacketName [11:36:01]name=ofd_packets/00118050 [11:36:01]OFD Sender: To server: pG, [11:36:01]CommunicateWithHost lk.salyk.kg:30040 [11:36:01]ConnectInit lk.salyk.kg [11:36:01]Connected sock=10 [11:36: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 36 37 0F 01 00 00 4C 4B 07 01 4C 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 32 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 6E 00 00 00 F4 03 04 00 20 1A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 22 CD 01 00 35 04 06 00 B9 C7 CE 0F 7C D0 3A C1 70 F4 DE C5 2C 35 [11:36: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 36 37 4F 00 00 00 B3 8D 47 00 5D 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 36 37 10 04 04 00 22 CD 01 00 F4 03 04 00 D8 C5 21 67 B6 04 01 00 00 DD 45 D8 27 40 4A 92 91 [11:36:02]CommunicateWithHost err = 0 [11:36:02]CheckOFDResponse [11:36:02]1017 (14) - 77093643461234 [11:36:02]1041 (16) - 0000000000871767 [11:36:02]1040 (4) - 118050 [11:36:02]1012 (4) - 30.10.2024 05:36 [11:36:02]1206 (1) - 0 [11:36:02]OFD Sender: Remove packet 118050 [11:36:02]ProducePacketName [11:36:02]name=ofd_packets/00118050 [11:36:02]NVStorageDeleteData [11:36:02]Write to MH i2c: 01 00 00 6C 18 84 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: 01 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: 01 07 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: 01 07 00 6C 18 00 00 00 00 00 AF 0C 46 [11:36:02]RasterBufferAndPrint [11:36:02]line [11:36:02]line [11:36:02]line [11:36:02]line [11:36:02]line [11:36:02]written 0, free lines is 3253 [11:36:02]MH_Cut [11:36:02]Write to MH i2c: D1 01 00 73 18 01 5D [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: D1 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: D1 01 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: D1 01 00 73 18 00 5C [11:36:02]Write to MH i2c: 01 00 00 74 18 8C [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]OFD Sender: No OFD packet to send [11:36:03]*** Cut start [11:36:03]*** Purtial cut [11:36:03]*** Stage 1: CUTSNS_PIN = 1 [11:36:03]Read from MH i2c: 01 [11:36:03]MH_I2C_Read... [11:36:03]*** Stop cut motor [11:36:03]*** Cut end [11:36:03]Read from MH i2c: 01 07 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 FF 0F A1 [11:36:03]process_action close_receipt done [11:36:03]requested_data is exist [11:36:03]produce_requested_data [11:36:03]requested_item fm.sn is exist - process it [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 11 00 00 [11:36:03]Write to MH i2c: E2 08 00 75 18 80 11 00 00 00 00 00 00 07 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 17 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 17 00 75 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5E [11:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:36:03]wFMCommunicate OK [11:36:03]requested_item fd.num is exist - process it [11:36:03]SAM_PROTO_GetFieldsCounters [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 13 00 00 [11:36:03]Write to MH i2c: E2 08 00 76 18 80 13 00 00 00 00 00 00 0A [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 62 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 62 00 76 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 22 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [11:36: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 22 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:03]wFMCommunicate OK [11:36:03]SAM_PROTO_GetFieldsCounters done [11:36:03]requested_item shift.num is exist - process it [11:36:03]requested_item shift.opened is exist - process it [11:36:03]req_shift_opened [11:36:03]FM_GetShiftState [11:36:03]SAM_PROTO_GetShiftState [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 13 01 00 [11:36:03]Write to MH i2c: E2 08 00 77 18 80 13 01 00 00 00 00 00 0C [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 0E 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 0E 00 77 18 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E4 [11:36:03]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:36:03]wFMCommunicate OK [11:36:03]SAM_PROTO_GetShiftState done [11:36:03]FM_GetShiftState done [11:36:03]req_shift_opened done [11:36:03]requested_item shift.open_date is exist - process it [11:36:03]req_shift_open_date [11:36:03]req_shift_open_date done [11:36:03]produce_requested_data done [11:36:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118050,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:36:03]process_action_free close_receipt [11:36:03]json_value_free [11:36:03]json_value_free done [11:36:03]process_json_proto returns [11:36:03]Send response to host [11:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118050,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:36:03]free response buf [11:36:03]execute_script done [11:36:03]execute_script returns [11:36:03]free content buf [11:36:03]Sock 7.Close socket [11:36:03]Sock 7.Thread stoped [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:39:57]accept exits with 9 [11:39:57]New connection [11:39:57]New thread 3067415908 created [11:39:57] Sock 9.Parse request [11:39:57]Thread 3067559268 joined [11:39:57]Sock 9.Check first char [11:39:57]Waiting for new connection... [11:39:57]Sock 9.First char is OK [11:39:57]request: POST /json_proto HTTP/1.0 [11:39:57]Method: POST [11:39:57]URL: /json_proto [11:39:57]Method is POST - this is cgi request [11:39:57]url: /json_proto [11:39:57]query_string will be loaded in cgi processing [11:39:57]execute_cgi json_proto POST (null) [11:39:57]execute_cgi path=json_proto method=POST [11:39:57]POST find Content-Length [11:39:57]Host: 172.17.96.67:8080 [11:39:57]Content-Length: 679 [11:39:57]Content-Type: application/json [11:39:57] [11:39:57]POST finish read [11:39:57]Found Content-Length = 679 [11:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 24.940, "sum" : 1900.43, "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" ] } } [11:39:57]execute_script... [11:39: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)245845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 24.940, "sum" : 1900.43, "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" ] } } [11:39:57]POST & json_proto [11:39:57]process_json_proto [11:39:57]json parsed OK: [11:39:57]protocol is kg_v1.0 [11:39:57]action value=close_receipt [11:39:57]process_action close_receipt [11:39:57]cmd_close_receipt [11:39:57]MH_GetDate [11:39:57]Write to MH i2c: F0 00 00 78 18 7F [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 09 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 09 00 78 18 00 0E 1B 22 67 47 6C 1F 67 73 [11:39:57]GetLastDocTimeStamp 1730288160 [11:39:57]current date 1730288398 [11:39:57]FM_GetShiftState [11:39:57]SAM_PROTO_GetShiftState [11:39:57]wFMCommunicate request_size=4 [11:39:57]MH_SAM_APDU [11:39:57]CAPDU: 80 13 01 00 [11:39:57]Write to MH i2c: E2 08 00 79 18 80 13 01 00 00 00 00 00 0E [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0E 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0E 00 79 18 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E6 [11:39:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:39:57]wFMCommunicate OK [11:39:57]SAM_PROTO_GetShiftState done [11:39:57]FM_GetShiftState done [11:39:57]opened in 1730246605 [11:39:57]opened+sec_in_day 1730333005 [11:39:57]quantity*price = 190042 [11:39:57]sum+1 = 190044 [11:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.82 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 111 30.10.2024 11:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118051 ФПД: 177159646876387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T113958&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118051&fm=177159646876387&tin=02508201610067®Number=0000000000091782&sum=190000 [11:39:59]StoreToDocumentArchive [11:39:59]shift 545 fd 118051 [11:39:59]save to /storage/0545/doc_00118051 [11:39:59]save last doc name /storage/0545/doc_00118051 to /storage/kkm_last_doc_name [11:39:59]save OK [11:39:59]Clear old archive folders... [11:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:59]tlvbuf is 0065FDF0 [11:39:59]SAM_PROTO_ClearQueue [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 09 00 00 [11:39:59]Write to MH i2c: E2 08 00 86 18 80 09 00 00 00 00 00 00 10 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 86 18 00 90 00 12 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]SAM_PROTO_ClearQueue done [11:39:59]KKMCreateOFDPacket [11:39:59]OFDProtocolAddRootSTLVToBuf [11:39:59]FM_MakeSignedData [11:39:59]FM_MakeSignedData [11:39:59]SAM_PROTO_SignData [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 01 02 [11:39:59]Write to MH i2c: E2 08 00 87 18 80 0D 01 02 00 00 00 00 18 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 87 18 00 90 00 13 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]wFMCommunicate request_size=255 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 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 D6 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 6F 00 00 00 F4 03 04 00 0E 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 23 CD 01 00 35 04 06 00 A1 20 31 D2 [11:39:59]Write to MH i2c: E2 02 01 88 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 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 D6 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 6F 00 00 00 F4 03 04 00 0E 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 23 CD 01 00 35 04 06 00 A1 20 31 D2 00 00 4E [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 88 18 00 90 00 14 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]wFMCommunicate request_size=7 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 02 02 02 12 E3 [11:39:59]Write to MH i2c: E2 0A 00 89 18 80 0D 02 02 02 00 12 E3 00 00 14 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 89 18 00 90 00 15 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 03 02 [11:39:59]Write to MH i2c: E2 08 00 8A 18 80 0D 03 02 00 00 00 00 1D [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 0B 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 0B 00 8A 18 00 AF 13 30 8A 5C 21 EF 3A 90 00 40 [11:39:59]RAPDU: AF 13 30 8A 5C 21 EF 3A 90 00 [11:39:59]wFMCommunicate OK [11:39:59]SAM_PROTO_SignData done [11:39:59]FM_MakeSignedData done [11:39:59]CreateOFDProtocolMessage [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 11 00 00 [11:39:59]Write to MH i2c: E2 08 00 8B 18 80 11 00 00 00 00 00 00 1D [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 17 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 17 00 8B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 74 [11:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:39:59]wFMCommunicate OK [11:39:59]CreateOFDProtocolMessage done [11:39:59]OFDSenderStorePacket 118051 [11:39:59]StoreOFDPacket docnum=118051 [11:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 1F 35 04 01 F0 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 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 D6 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 6F 00 00 00 F4 03 04 00 0E 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 23 CD 01 00 35 04 06 00 A1 20 31 D2 12 E3 AF 13 30 8A 5C 21 EF 3A [11:39:59]CheckFolder [11:39:59]dirname=/storage/ofd_packets [11:39:59]CheckFolder done [11:39:59]ProducePacketName [11:39:59]name=ofd_packets/00118051 [11:39:59]NVStorageSaveData ofd_packets/00118051 [11:39:59]File name is /storage/ofd_packets/00118051 [11:39:59]Write 298 bytes [11:39:59]NVStorageSaveData done [11:39:59]OFDSenderStorePacket done [11:39:59]KKMCreateOFDPacket done [11:39:59]NVStorageSaveData kkm_last_timestamp [11:39:59]File name is /storage/kkm_last_timestamp [11:39:59]Write 4 bytes [11:39:59]NVStorageSaveData done [11:39:59]ExternCall_PrintAddStr [11:39:59]wPrintStart [11:39:59]Write to MH i2c: 01 00 00 8C 18 A4 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 07 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 07 00 8C 18 00 00 00 00 00 FF 0F B9 [11:39:59]RasterBufferAndPrint [11:39:59]line Счет N : (1)245845 [11:39:59]line ИНН: 02508201610067 [11:39:59]line Контрольно-Кассовый Чек [11:39:59]line ПРОДАЖА [11:39:59]line ТРК (МРК, ГНК) : 23 [11:39:59]line Товар: 2710194210 [11:39:59]line ДТ-К-2 [11:39:59]line 24.940 * 76.20 [11:39:59]line = 1900.43 [11:39:59]line НДС 12% НСП 1% [11:39:59]line > о реализуемом товаре [11:39:59]line ОКРУГЛЕНИЕ: -0.43 [11:39:59]line ИТОГО: 1900.00 [11:39:59]line Внесено: 1900.00 [11:39:59]line СДАЧА: 0.00 [11:39:59]line НСП 1% : 16.82 [11:39:59]line НДС 12% : 201.82 [11:39:59]line Наличными: 1900.00 [11:39:59]line Безнал.: 0.00 [11:39:59]line Место: АЗС № 173 "Партнер Нефть" [11:39:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:39:59]line СНО: Общий режим [11:39:59]line Чек 111 30.10.2024 11:39 [11:39:59]line Смена: 545 ФФД: 1.0 [11:39:59]line ЗНМ: 0300000115 [11:39:59]line РНМ: 0000000000091782 [11:39:59]line Версия ККМ: 001 [11:39:59]line ФМ: 0000000000871767 [11:39:59]line ФД: 118051 [11:39:59]line ФПД: 177159646876387 [11:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T113958&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118051&fm=177159646876387&tin=02508201610067®Number=0000000000091782&sum=190000 [11:39:59]OFD Sender: Processing packet 118051 [packets to send 77, broken 76] [11:39:59]ProducePacketName [11:39:59]name=ofd_packets/00118051 [11:39:59]OFD Sender: To server: pG, [11:39:59]CommunicateWithHost lk.salyk.kg:30040 [11:39:59]ConnectInit lk.salyk.kg [11:39:59]written 0, free lines is 4095 [11:39:59]Connected sock=10 [11:39: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 36 37 0C 01 00 00 1F 35 04 01 F0 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 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 D6 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 6F 00 00 00 F4 03 04 00 0E 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 23 CD 01 00 35 04 06 00 A1 20 31 D2 12 E3 AF 13 30 8A 5C 21 EF 3A [11:40: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 36 37 4F 00 00 00 C6 32 47 00 1E 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 23 CD 01 00 F4 03 04 00 C6 C6 21 67 B6 04 01 00 00 7A BD 92 FB 48 BC 11 D7 [11:40:00]CommunicateWithHost err = 0 [11:40:00]CheckOFDResponse [11:40:00]1017 (14) - 77093643461234 [11:40:00]1041 (16) - 0000000000871767 [11:40:00]1040 (4) - 118051 [11:40:00]1012 (4) - 30.10.2024 05:40 [11:40:00]1206 (1) - 0 [11:40:00]OFD Sender: Remove packet 118051 [11:40:00]ProducePacketName [11:40:00]name=ofd_packets/00118051 [11:40:00]NVStorageDeleteData [11:40:00]Write to MH i2c: 01 00 00 B6 18 CE [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: 01 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: 01 07 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: 01 07 00 B6 18 00 00 00 00 00 AE 0C 8F [11:40:00]RasterBufferAndPrint [11:40:00]line [11:40:00]line [11:40:00]line [11:40:00]line [11:40:00]line [11:40:00]written 0, free lines is 3250 [11:40:00]MH_Cut [11:40:00]Write to MH i2c: D1 01 00 BD 18 01 A7 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: D1 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: D1 01 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: D1 01 00 BD 18 00 A6 [11:40:00]Write to MH i2c: 01 00 00 BE 18 D6 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]OFD Sender: No OFD packet to send [11:40:01]*** Cut start [11:40:01]*** Purtial cut [11:40:01]*** Stage 1: CUTSNS_PIN = 1 [11:40:01]Read from MH i2c: 01 [11:40:01]MH_I2C_Read... [11:40:01]*** Stop cut motor [11:40:01]*** Cut end [11:40:01]Read from MH i2c: 01 07 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 07 00 BE 18 00 00 00 00 00 FF 0F EB [11:40:01]process_action close_receipt done [11:40:01]requested_data is exist [11:40:01]produce_requested_data [11:40:01]requested_item fm.sn is exist - process it [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 11 00 00 [11:40:01]Write to MH i2c: E2 08 00 BF 18 80 11 00 00 00 00 00 00 51 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 BF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A8 [11:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:40:01]wFMCommunicate OK [11:40:01]requested_item fd.num is exist - process it [11:40:01]SAM_PROTO_GetFieldsCounters [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 00 00 [11:40:01]Write to MH i2c: E2 08 00 C0 18 80 13 00 00 00 00 00 00 54 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 C0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 23 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:40: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 23 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetFieldsCounters done [11:40:01]requested_item shift.num is exist - process it [11:40:01]requested_item shift.opened is exist - process it [11:40:01]req_shift_opened [11:40:01]FM_GetShiftState [11:40:01]SAM_PROTO_GetShiftState [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 01 00 [11:40:01]Write to MH i2c: E2 08 00 C1 18 80 13 01 00 00 00 00 00 56 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 C1 18 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2E [11:40:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetShiftState done [11:40:01]FM_GetShiftState done [11:40:01]req_shift_opened done [11:40:01]requested_item shift.open_date is exist - process it [11:40:01]req_shift_open_date [11:40:01]req_shift_open_date done [11:40:01]produce_requested_data done [11:40:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118051,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:40:01]process_action_free close_receipt [11:40:01]json_value_free [11:40:01]json_value_free done [11:40:01]process_json_proto returns [11:40:01]Send response to host [11:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118051,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:40:01]free response buf [11:40:01]execute_script done [11:40:01]execute_script returns [11:40:01]free content buf [11:40:01]Sock 9.Close socket [11:40:01]Sock 9.Thread stoped [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:21]accept exits with 7 [11:43:21]New connection [11:43:21]New thread 3067559268 created [11:43:21]Thread 3067415908 joined [11:43:21]Waiting for new connection... [11:43:21] Sock 7.Parse request [11:43:21]Sock 7.Check first char [11:43:21]Sock 7.First char is OK [11:43:21]request: POST /json_proto HTTP/1.0 [11:43:21]Method: POST [11:43:21]URL: /json_proto [11:43:21]Method is POST - this is cgi request [11:43:21]url: /json_proto [11:43:21]query_string will be loaded in cgi processing [11:43:21]execute_cgi json_proto POST (null) [11:43:21]execute_cgi path=json_proto method=POST [11:43:21]POST find Content-Length [11:43:21]Host: 172.17.96.67:8080 [11:43:21]Content-Length: 677 [11:43:21]Content-Type: application/json [11:43:21] [11:43:21]POST finish read [11:43:21]Found Content-Length = 677 [11:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:21]execute_script... [11:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:21]POST & json_proto [11:43:21]process_json_proto [11:43:21]json parsed OK: [11:43:21]protocol is kg_v1.0 [11:43:21]action value=close_receipt [11:43:21]process_action close_receipt [11:43:21]cmd_close_receipt [11:43:21]MH_GetDate [11:43:21]Write to MH i2c: F0 00 00 C2 18 C9 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: F0 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: F0 09 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: F0 09 00 C2 18 00 DA 1B 22 67 47 6C 1F 67 89 [11:43:21]GetLastDocTimeStamp 1730288398 [11:43:21]current date 1730288602 [11:43:21]FM_GetShiftState [11:43:21]SAM_PROTO_GetShiftState [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 13 01 00 [11:43:21]Write to MH i2c: E2 08 00 C3 18 80 13 01 00 00 00 00 00 58 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 0E 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 0E 00 C3 18 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 30 [11:43:21]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:43:21]wFMCommunicate OK [11:43:21]SAM_PROTO_GetShiftState done [11:43:21]FM_GetShiftState done [11:43:21]opened in 1730246605 [11:43:21]opened+sec_in_day 1730333005 [11:43:21]quantity*price = 50041 [11:43:21]sum+1 = 50042 [11:43: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 112 30.10.2024 11:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118052 ФПД: 41810553400899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114322&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118052&fm=41810553400899&tin=02508201610067®Number=0000000000091782&sum=50000 [11:43:23]StoreToDocumentArchive [11:43:23]shift 545 fd 118052 [11:43:23]save to /storage/0545/doc_00118052 [11:43:23]save last doc name /storage/0545/doc_00118052 to /storage/kkm_last_doc_name [11:43:23]save OK [11:43:23]Clear old archive folders... [11:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:23]tlvbuf is B6F3C380 [11:43:23]SAM_PROTO_ClearQueue [11:43:23]wFMCommunicate request_size=4 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 09 00 00 [11:43:23]Write to MH i2c: E2 08 00 D0 18 80 09 00 00 00 00 00 00 5A [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [11:43:23]RAPDU: 90 00 [11:43:23]wFMCommunicate OK [11:43:23]SAM_PROTO_ClearQueue done [11:43:23]KKMCreateOFDPacket [11:43:23]OFDProtocolAddRootSTLVToBuf [11:43:23]FM_MakeSignedData [11:43:23]FM_MakeSignedData [11:43:23]SAM_PROTO_SignData [11:43:23]wFMCommunicate request_size=4 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 0D 01 02 [11:43:23]Write to MH i2c: E2 08 00 D1 18 80 0D 01 02 00 00 00 00 62 [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 D1 18 00 90 00 5D [11:43:23]RAPDU: 90 00 [11:43:23]wFMCommunicate OK [11:43:23]wFMCommunicate request_size=255 [11:43:23]MH_SAM_APDU [11:43: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 32 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 70 00 00 00 F4 03 04 00 DA 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 24 CD 01 00 35 04 06 00 26 [11:43:23]Write to MH i2c: E2 02 01 D2 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 DA 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 24 CD 01 00 35 04 06 00 26 00 00 1D [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 D2 18 00 90 00 5E [11:43:23]RAPDU: 90 00 [11:43:23]wFMCommunicate OK [11:43:23]wFMCommunicate request_size=10 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 0D 02 02 05 06 C7 2E EE 43 [11:43:23]Write to MH i2c: E2 0D 00 D3 18 80 0D 02 02 05 00 06 C7 2E EE 43 00 00 9B [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 03 00 D3 18 00 90 00 5F [11:43:23]RAPDU: 90 00 [11:43:23]wFMCommunicate OK [11:43:23]wFMCommunicate request_size=4 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 0D 03 02 [11:43:23]Write to MH i2c: E2 08 00 D4 18 80 0D 03 02 00 00 00 00 67 [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 0B 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 0B 00 D4 18 00 E9 5D BC 07 70 8B 1D 5A 90 00 E3 [11:43:23]RAPDU: E9 5D BC 07 70 8B 1D 5A 90 00 [11:43:23]wFMCommunicate OK [11:43:23]SAM_PROTO_SignData done [11:43:23]FM_MakeSignedData done [11:43:23]CreateOFDProtocolMessage [11:43:23]wFMCommunicate request_size=4 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 11 00 00 [11:43:23]Write to MH i2c: E2 08 00 D5 18 80 11 00 00 00 00 00 00 67 [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 17 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 17 00 D5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BE [11:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:43:23]wFMCommunicate OK [11:43:23]CreateOFDProtocolMessage done [11:43:23]OFDSenderStorePacket 118052 [11:43:23]StoreOFDPacket docnum=118052 [11:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7A 6F 07 01 FC 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 70 00 00 00 F4 03 04 00 DA 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 24 CD 01 00 35 04 06 00 26 06 C7 2E EE 43 E9 5D BC 07 70 8B 1D 5A [11:43:23]CheckFolder [11:43:23]dirname=/storage/ofd_packets [11:43:23]CheckFolder done [11:43:23]ProducePacketName [11:43:23]name=ofd_packets/00118052 [11:43:23]NVStorageSaveData ofd_packets/00118052 [11:43:23]File name is /storage/ofd_packets/00118052 [11:43:23]Write 301 bytes [11:43:23]NVStorageSaveData done [11:43:23]OFDSenderStorePacket done [11:43:23]KKMCreateOFDPacket done [11:43:23]NVStorageSaveData kkm_last_timestamp [11:43:23]File name is /storage/kkm_last_timestamp [11:43:23]Write 4 bytes [11:43:23]NVStorageSaveData done [11:43:23]ExternCall_PrintAddStr [11:43:23]wPrintStart [11:43:23]Write to MH i2c: 01 00 00 D6 18 EE [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: 01 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: 01 07 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: 01 07 00 D6 18 00 00 00 00 00 FF 0F 03 [11:43:23]RasterBufferAndPrint [11:43:23]line Счет N : (1)245848 [11:43:23]line ИНН: 02508201610067 [11:43:23]line Контрольно-Кассовый Чек [11:43:23]line ПРОДАЖА [11:43:23]line ТРК (МРК, ГНК) : 21 [11:43:23]line Товар: 2710124130 [11:43:23]line Аи-92-К-2 [11:43:23]line 7.480 * 66.90 [11:43:23]line = 500.41 [11:43:23]line НДС 12% НСП 1% [11:43:23]line > о реализуемом товаре [11:43:23]line ОКРУГЛЕНИЕ: -0.41 [11:43:23]line ИТОГО: 500.00 [11:43:23]line Внесено: 500.00 [11:43:23]line СДАЧА: 0.00 [11:43:23]line НСП 1% : 4.43 [11:43:23]line НДС 12% : 53.14 [11:43:23]line Наличными: 500.00 [11:43:23]line Безнал.: 0.00 [11:43:23]line Место: АЗС № 173 "Партнер Нефть" [11:43:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:43:23]line СНО: Общий режим [11:43:23]line Чек 112 30.10.2024 11:43 [11:43:23]line Смена: 545 ФФД: 1.0 [11:43:23]line ЗНМ: 0300000115 [11:43:23]line РНМ: 0000000000091782 [11:43:23]line Версия ККМ: 001 [11:43:23]line ФМ: 0000000000871767 [11:43:23]line ФД: 118052 [11:43:23]line ФПД: 41810553400899 [11:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114322&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118052&fm=41810553400899&tin=02508201610067®Number=0000000000091782&sum=50000 [11:43:23]written 0, free lines is 4095 [11:43:23]OFD Sender: Processing packet 118052 [packets to send 77, broken 76] [11:43:23]ProducePacketName [11:43:23]name=ofd_packets/00118052 [11:43:23]OFD Sender: To server: pG, [11:43:23]CommunicateWithHost lk.salyk.kg:30040 [11:43:23]ConnectInit lk.salyk.kg [11:43:24]Connected sock=9 [11:43: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 36 37 0F 01 00 00 7A 6F 07 01 FC 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 70 00 00 00 F4 03 04 00 DA 1B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 24 CD 01 00 35 04 06 00 26 06 C7 2E EE 43 E9 5D BC 07 70 8B 1D 5A [11:43: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 36 37 4F 00 00 00 B0 28 47 00 E8 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 24 CD 01 00 F4 03 04 00 92 C7 21 67 B6 04 01 00 00 02 34 BC 36 78 C8 A4 D6 [11:43:24]CommunicateWithHost err = 0 [11:43:24]CheckOFDResponse [11:43:24]1017 (14) - 77093643461234 [11:43:24]1041 (16) - 0000000000871767 [11:43:24]1040 (4) - 118052 [11:43:24]1012 (4) - 30.10.2024 05:43 [11:43:24]1206 (1) - 0 [11:43:24]OFD Sender: Remove packet 118052 [11:43:24]ProducePacketName [11:43:24]name=ofd_packets/00118052 [11:43:24]NVStorageDeleteData [11:43:24]Write to MH i2c: 01 00 00 00 19 19 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: 01 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: 01 07 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: 01 07 00 00 19 00 00 00 00 00 B7 0C E3 [11:43:24]RasterBufferAndPrint [11:43:24]line [11:43:24]line [11:43:24]line [11:43:24]line [11:43:24]line [11:43:24]written 0, free lines is 3262 [11:43:24]MH_Cut [11:43:24]Write to MH i2c: D1 01 00 07 19 01 F2 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: D1 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: D1 01 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: D1 01 00 07 19 00 F1 [11:43:24]Write to MH i2c: 01 00 00 08 19 21 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]OFD Sender: No OFD packet to send [11:43:25]*** Cut start [11:43:25]*** Purtial cut [11:43:25]*** Stage 1: CUTSNS_PIN = 1 [11:43:25]Read from MH i2c: 01 [11:43:25]MH_I2C_Read... [11:43:25]*** Stop cut motor [11:43:25]*** Cut end [11:43:25]Read from MH i2c: 01 07 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: 01 07 00 08 19 00 00 00 00 00 FF 0F 36 [11:43:25]process_action close_receipt done [11:43:25]requested_data is exist [11:43:25]produce_requested_data [11:43:25]requested_item fm.sn is exist - process it [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 11 00 00 [11:43:25]Write to MH i2c: E2 08 00 09 19 80 11 00 00 00 00 00 00 9C [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 17 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 17 00 09 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F3 [11:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:43:25]wFMCommunicate OK [11:43:25]requested_item fd.num is exist - process it [11:43:25]SAM_PROTO_GetFieldsCounters [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 13 00 00 [11:43:25]Write to MH i2c: E2 08 00 0A 19 80 13 00 00 00 00 00 00 9F [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 62 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 62 00 0A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 24 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [11:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 24 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:25]wFMCommunicate OK [11:43:25]SAM_PROTO_GetFieldsCounters done [11:43:25]requested_item shift.num is exist - process it [11:43:25]requested_item shift.opened is exist - process it [11:43:25]req_shift_opened [11:43:25]FM_GetShiftState [11:43:25]SAM_PROTO_GetShiftState [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 13 01 00 [11:43:25]Write to MH i2c: E2 08 00 0B 19 80 13 01 00 00 00 00 00 A1 [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0E 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0E 00 0B 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 79 [11:43:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:43:25]wFMCommunicate OK [11:43:25]SAM_PROTO_GetShiftState done [11:43:25]FM_GetShiftState done [11:43:25]req_shift_opened done [11:43:25]requested_item shift.open_date is exist - process it [11:43:25]req_shift_open_date [11:43:25]req_shift_open_date done [11:43:25]produce_requested_data done [11:43:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118052,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:43:25]process_action_free close_receipt [11:43:25]json_value_free [11:43:25]json_value_free done [11:43:25]process_json_proto returns [11:43:25]Send response to host [11:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118052,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:43:25]free response buf [11:43:25]execute_script done [11:43:25]execute_script returns [11:43:25]free content buf [11:43:25]Sock 7.Close socket [11:43:25]Sock 7.Thread stoped [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:35]accept exits with 10 [11:44:35]New connection [11:44:35]New thread 3067415908 created [11:44:35]Thread 3067559268 joined [11:44:35]Waiting for new connection... [11:44:35] Sock 10.Parse request [11:44:35]Sock 10.Check first char [11:44:35]Sock 10.First char is OK [11:44:35]request: POST /json_proto HTTP/1.0 [11:44:35]Method: POST [11:44:35]URL: /json_proto [11:44:35]Method is POST - this is cgi request [11:44:35]url: /json_proto [11:44:35]query_string will be loaded in cgi processing [11:44:35]execute_cgi json_proto POST (null) [11:44:35]execute_cgi path=json_proto method=POST [11:44:35]POST find Content-Length [11:44:35]Host: 172.17.96.67:8080 [11:44:35]Content-Length: 677 [11:44:35]Content-Type: application/json [11:44:35] [11:44:35]POST finish read [11:44:35]Found Content-Length = 677 [11:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:44:35]execute_script... [11:44:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:44:35]POST & json_proto [11:44:35]process_json_proto [11:44:35]json parsed OK: [11:44:35]protocol is kg_v1.0 [11:44:35]action value=close_receipt [11:44:35]process_action close_receipt [11:44:35]cmd_close_receipt [11:44:35]MH_GetDate [11:44:35]Write to MH i2c: F0 00 00 0C 19 14 [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: F0 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: F0 09 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: F0 09 00 0C 19 00 23 1C 22 67 47 6C 1F 67 1E [11:44:35]GetLastDocTimeStamp 1730288602 [11:44:35]current date 1730288675 [11:44:35]FM_GetShiftState [11:44:35]SAM_PROTO_GetShiftState [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 13 01 00 [11:44:35]Write to MH i2c: E2 08 00 0D 19 80 13 01 00 00 00 00 00 A3 [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 0D 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 7B [11:44:35]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:44:35]wFMCommunicate OK [11:44:35]SAM_PROTO_GetShiftState done [11:44:35]FM_GetShiftState done [11:44:35]opened in 1730246605 [11:44:35]opened+sec_in_day 1730333005 [11:44:35]quantity*price = 60009 [11:44:35]sum+1 = 60010 [11:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 113 30.10.2024 11:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118053 ФПД: 54895631597958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114435&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118053&fm=54895631597958&tin=02508201610067®Number=0000000000091782&sum=60000 [11:44:36]StoreToDocumentArchive [11:44:36]shift 545 fd 118053 [11:44:36]save to /storage/0545/doc_00118053 [11:44:36]save last doc name /storage/0545/doc_00118053 to /storage/kkm_last_doc_name [11:44:36]save OK [11:44:36]Clear old archive folders... [11:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:36]tlvbuf is 0066F780 [11:44:36]SAM_PROTO_ClearQueue [11:44:36]wFMCommunicate request_size=4 [11:44:36]MH_SAM_APDU [11:44:36]CAPDU: 80 09 00 00 [11:44:36]Write to MH i2c: E2 08 00 1A 19 80 09 00 00 00 00 00 00 A5 [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:36]Read from MH i2c: E2 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 1A 19 00 90 00 A7 [11:44:36]RAPDU: 90 00 [11:44:36]wFMCommunicate OK [11:44:36]SAM_PROTO_ClearQueue done [11:44:36]KKMCreateOFDPacket [11:44:36]OFDProtocolAddRootSTLVToBuf [11:44:36]FM_MakeSignedData [11:44:36]FM_MakeSignedData [11:44:36]SAM_PROTO_SignData [11:44:36]wFMCommunicate request_size=4 [11:44:36]MH_SAM_APDU [11:44:36]CAPDU: 80 0D 01 02 [11:44:36]Write to MH i2c: E2 08 00 1B 19 80 0D 01 02 00 00 00 00 AD [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:36]Read from MH i2c: E2 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 1B 19 00 90 00 A8 [11:44:36]RAPDU: 90 00 [11:44:36]wFMCommunicate OK [11:44:36]wFMCommunicate request_size=255 [11:44:36]MH_SAM_APDU [11:44:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 71 00 00 00 F4 03 04 00 23 1C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 25 CD 01 00 35 04 06 00 31 [11:44:36]Write to MH i2c: E2 02 01 1C 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 71 00 00 00 F4 03 04 00 23 1C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 25 CD 01 00 35 04 06 00 31 00 00 9C [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:36]Read from MH i2c: E2 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 1C 19 00 90 00 A9 [11:44:36]RAPDU: 90 00 [11:44:36]wFMCommunicate OK [11:44:36]wFMCommunicate request_size=10 [11:44:36]MH_SAM_APDU [11:44:36]CAPDU: 80 0D 02 02 05 ED 62 9F 01 86 [11:44:36]Write to MH i2c: E2 0D 00 1D 19 80 0D 02 02 05 00 ED 62 9F 01 86 00 00 2F [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:36]Read from MH i2c: E2 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 03 00 1D 19 00 90 00 AA [11:44:36]RAPDU: 90 00 [11:44:36]wFMCommunicate OK [11:44:36]wFMCommunicate request_size=4 [11:44:36]MH_SAM_APDU [11:44:36]CAPDU: 80 0D 03 02 [11:44:36]Write to MH i2c: E2 08 00 1E 19 80 0D 03 02 00 00 00 00 B2 [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:36]Read from MH i2c: E2 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 0B 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 0B 00 1E 19 00 0B 68 70 A7 D6 47 62 66 90 00 22 [11:44:36]RAPDU: 0B 68 70 A7 D6 47 62 66 90 00 [11:44:36]wFMCommunicate OK [11:44:36]SAM_PROTO_SignData done [11:44:36]FM_MakeSignedData done [11:44:36]CreateOFDProtocolMessage [11:44:36]wFMCommunicate request_size=4 [11:44:36]MH_SAM_APDU [11:44:36]CAPDU: 80 11 00 00 [11:44:36]Write to MH i2c: E2 08 00 1F 19 80 11 00 00 00 00 00 00 B2 [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:36]Read from MH i2c: E2 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 17 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 17 00 1F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 09 [11:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:44:36]wFMCommunicate OK [11:44:36]CreateOFDProtocolMessage done [11:44:36]OFDSenderStorePacket 118053 [11:44:36]StoreOFDPacket docnum=118053 [11:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C0 1A 07 01 07 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 23 1C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 25 CD 01 00 35 04 06 00 31 ED 62 9F 01 86 0B 68 70 A7 D6 47 62 66 [11:44:36]CheckFolder [11:44:36]dirname=/storage/ofd_packets [11:44:36]CheckFolder done [11:44:36]ProducePacketName [11:44:36]name=ofd_packets/00118053 [11:44:36]NVStorageSaveData ofd_packets/00118053 [11:44:36]File name is /storage/ofd_packets/00118053 [11:44:36]Write 301 bytes [11:44:36]NVStorageSaveData done [11:44:36]OFDSenderStorePacket done [11:44:36]KKMCreateOFDPacket done [11:44:36]NVStorageSaveData kkm_last_timestamp [11:44:36]File name is /storage/kkm_last_timestamp [11:44:36]Write 4 bytes [11:44:36]NVStorageSaveData done [11:44:36]ExternCall_PrintAddStr [11:44:36]wPrintStart [11:44:36]Write to MH i2c: 01 00 00 20 19 39 [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: 01 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: 01 07 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: 01 07 00 20 19 00 00 00 00 00 FF 0F 4E [11:44:36]RasterBufferAndPrint [11:44:36]line Счет N : (1)245849 [11:44:36]line ИНН: 02508201610067 [11:44:36]line Контрольно-Кассовый Чек [11:44:36]line ПРОДАЖА [11:44:36]line ТРК (МРК, ГНК) : 21 [11:44:36]line Товар: 2710124130 [11:44:36]line Аи-92-К-2 [11:44:36]line 8.970 * 66.90 [11:44:36]line = 600.09 [11:44:36]line НДС 12% НСП 1% [11:44:36]line > о реализуемом товаре [11:44:36]line ОКРУГЛЕНИЕ: -0.09 [11:44:36]line ИТОГО: 600.00 [11:44:36]line Внесено: 600.00 [11:44:36]line СДАЧА: 0.00 [11:44:36]line НСП 1% : 5.31 [11:44:36]line НДС 12% : 63.73 [11:44:36]line Наличными: 600.00 [11:44:36]line Безнал.: 0.00 [11:44:36]line Место: АЗС № 173 "Партнер Нефть" [11:44:36]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:44:36]line СНО: Общий режим [11:44:36]line Чек 113 30.10.2024 11:44 [11:44:36]line Смена: 545 ФФД: 1.0 [11:44:36]line ЗНМ: 0300000115 [11:44:36]line РНМ: 0000000000091782 [11:44:36]line Версия ККМ: 001 [11:44:36]line ФМ: 0000000000871767 [11:44:36]line ФД: 118053 [11:44:36]line ФПД: 54895631597958 [11:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114435&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118053&fm=54895631597958&tin=02508201610067®Number=0000000000091782&sum=60000 [11:44:37]OFD Sender: Processing packet 118053 [packets to send 77, broken 76] [11:44:37]ProducePacketName [11:44:37]name=ofd_packets/00118053 [11:44:37]OFD Sender: To server: pG, [11:44:37]CommunicateWithHost lk.salyk.kg:30040 [11:44:37]ConnectInit lk.salyk.kg [11:44:37]written 0, free lines is 4095 [11:44:37]Connected sock=9 [11:44:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C0 1A 07 01 07 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 23 1C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 25 CD 01 00 35 04 06 00 31 ED 62 9F 01 86 0B 68 70 A7 D6 47 62 66 [11:44:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 C5 25 47 00 06 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 36 37 10 04 04 00 25 CD 01 00 F4 03 04 00 DB C7 21 67 B6 04 01 00 00 D7 EE 37 73 4E F6 68 B7 [11:44:37]CommunicateWithHost err = 0 [11:44:37]CheckOFDResponse [11:44:37]1017 (14) - 77093643461234 [11:44:37]1041 (16) - 0000000000871767 [11:44:37]1040 (4) - 118053 [11:44:37]1012 (4) - 30.10.2024 05:44 [11:44:37]1206 (1) - 0 [11:44:37]OFD Sender: Remove packet 118053 [11:44:37]ProducePacketName [11:44:37]name=ofd_packets/00118053 [11:44:37]NVStorageDeleteData [11:44:37]Write to MH i2c: 01 00 00 4A 19 63 [11:44:37]Write i2c OK [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: 01 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: 01 07 00 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: 01 07 00 4A 19 00 00 00 00 00 B7 0C 2D [11:44:37]RasterBufferAndPrint [11:44:37]line [11:44:37]line [11:44:37]line [11:44:37]line [11:44:37]line [11:44:37]written 0, free lines is 3262 [11:44:37]MH_Cut [11:44:37]Write to MH i2c: D1 01 00 51 19 01 3C [11:44:37]Write i2c OK [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: D1 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: D1 01 00 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: D1 01 00 51 19 00 3B [11:44:37]Write to MH i2c: 01 00 00 52 19 6B [11:44:37]Write i2c OK [11:44:37]MH_I2C_Read... [11:44:38]OFD Sender: No OFD packet to send [11:44:38]*** Cut start [11:44:38]*** Purtial cut [11:44:38]*** Stage 1: CUTSNS_PIN = 1 [11:44:38]Read from MH i2c: 01 [11:44:38]MH_I2C_Read... [11:44:38]*** Stop cut motor [11:44:38]*** Cut end [11:44:38]Read from MH i2c: 01 07 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: 01 07 00 52 19 00 00 00 00 00 FF 0F 80 [11:44:38]process_action close_receipt done [11:44:38]requested_data is exist [11:44:38]produce_requested_data [11:44:38]requested_item fm.sn is exist - process it [11:44:38]wFMCommunicate request_size=4 [11:44:38]MH_SAM_APDU [11:44:38]CAPDU: 80 11 00 00 [11:44:38]Write to MH i2c: E2 08 00 53 19 80 11 00 00 00 00 00 00 E6 [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:38]Read from MH i2c: E2 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 17 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 17 00 53 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3D [11:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:44:38]wFMCommunicate OK [11:44:38]requested_item fd.num is exist - process it [11:44:38]SAM_PROTO_GetFieldsCounters [11:44:38]wFMCommunicate request_size=4 [11:44:38]MH_SAM_APDU [11:44:38]CAPDU: 80 13 00 00 [11:44:38]Write to MH i2c: E2 08 00 54 19 80 13 00 00 00 00 00 00 E9 [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:39]Read from MH i2c: E2 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 62 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 62 00 54 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 25 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [11:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 25 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:39]wFMCommunicate OK [11:44:39]SAM_PROTO_GetFieldsCounters done [11:44:39]requested_item shift.num is exist - process it [11:44:39]requested_item shift.opened is exist - process it [11:44:39]req_shift_opened [11:44:39]FM_GetShiftState [11:44:39]SAM_PROTO_GetShiftState [11:44:39]wFMCommunicate request_size=4 [11:44:39]MH_SAM_APDU [11:44:39]CAPDU: 80 13 01 00 [11:44:39]Write to MH i2c: E2 08 00 55 19 80 13 01 00 00 00 00 00 EB [11:44:39]Write i2c OK [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 [11:44:39]MH_I2C_Read... [11:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:39]Read from MH i2c: E2 0E 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 0E 00 55 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C3 [11:44:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:44:39]wFMCommunicate OK [11:44:39]SAM_PROTO_GetShiftState done [11:44:39]FM_GetShiftState done [11:44:39]req_shift_opened done [11:44:39]requested_item shift.open_date is exist - process it [11:44:39]req_shift_open_date [11:44:39]req_shift_open_date done [11:44:39]produce_requested_data done [11:44:39]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118053,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:44:39]process_action_free close_receipt [11:44:39]json_value_free [11:44:39]json_value_free done [11:44:39]process_json_proto returns [11:44:39]Send response to host [11:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118053,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:44:39]free response buf [11:44:39]execute_script done [11:44:39]execute_script returns [11:44:39]free content buf [11:44:39]Sock 10.Close socket [11:44:39]Sock 10.Thread stoped [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:22]accept exits with 7 [11:50:22]New connection [11:50:22]New thread 3067559268 created [11:50:22]Thread 3067415908 joined [11:50:22]Waiting for new connection... [11:50:22] Sock 7.Parse request [11:50:22]Sock 7.Check first char [11:50:22]Sock 7.First char is OK [11:50:22]request: POST /json_proto HTTP/1.0 [11:50:22]Method: POST [11:50:22]URL: /json_proto [11:50:22]Method is POST - this is cgi request [11:50:22]url: /json_proto [11:50:22]query_string will be loaded in cgi processing [11:50:22]execute_cgi json_proto POST (null) [11:50:22]execute_cgi path=json_proto method=POST [11:50:22]POST find Content-Length [11:50:22]Host: 172.17.96.67:8080 [11:50:22]Content-Length: 677 [11:50:22]Content-Type: application/json [11:50:22] [11:50:22]POST finish read [11:50:22]Found Content-Length = 677 [11:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:22]execute_script... [11:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:22]POST & json_proto [11:50:22]process_json_proto [11:50:22]json parsed OK: [11:50:22]protocol is kg_v1.0 [11:50:22]action value=close_receipt [11:50:22]process_action close_receipt [11:50:22]cmd_close_receipt [11:50:22]MH_GetDate [11:50:22]Write to MH i2c: F0 00 00 56 19 5E [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: F0 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: F0 09 00 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: F0 09 00 56 19 00 7E 1D 22 67 47 6C 1F 67 C4 [11:50:22]GetLastDocTimeStamp 1730288675 [11:50:22]current date 1730289022 [11:50:22]FM_GetShiftState [11:50:22]SAM_PROTO_GetShiftState [11:50:22]wFMCommunicate request_size=4 [11:50:22]MH_SAM_APDU [11:50:22]CAPDU: 80 13 01 00 [11:50:22]Write to MH i2c: E2 08 00 57 19 80 13 01 00 00 00 00 00 ED [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:22]Read from MH i2c: E2 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: E2 0E 00 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: E2 0E 00 57 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C5 [11:50:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:50:22]wFMCommunicate OK [11:50:22]SAM_PROTO_GetShiftState done [11:50:22]FM_GetShiftState done [11:50:22]opened in 1730246605 [11:50:22]opened+sec_in_day 1730333005 [11:50:22]quantity*price = 50041 [11:50:22]sum+1 = 50042 [11:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 114 30.10.2024 11:50 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118054 ФПД: 83283810955085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115023&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118054&fm=83283810955085&tin=02508201610067®Number=0000000000091782&sum=50000 [11:50:23]StoreToDocumentArchive [11:50:23]shift 545 fd 118054 [11:50:23]save to /storage/0545/doc_00118054 [11:50:23]save last doc name /storage/0545/doc_00118054 to /storage/kkm_last_doc_name [11:50:23]save OK [11:50:23]Clear old archive folders... [11:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:23]tlvbuf is 00696F70 [11:50:23]SAM_PROTO_ClearQueue [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 09 00 00 [11:50:23]Write to MH i2c: E2 08 00 64 19 80 09 00 00 00 00 00 00 EF [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 64 19 00 90 00 F1 [11:50:23]RAPDU: 90 00 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_ClearQueue done [11:50:23]KKMCreateOFDPacket [11:50:23]OFDProtocolAddRootSTLVToBuf [11:50:23]FM_MakeSignedData [11:50:23]FM_MakeSignedData [11:50:23]SAM_PROTO_SignData [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 0D 01 02 [11:50:23]Write to MH i2c: E2 08 00 65 19 80 0D 01 02 00 00 00 00 F7 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 65 19 00 90 00 F2 [11:50:23]RAPDU: 90 00 [11:50:23]wFMCommunicate OK [11:50:23]wFMCommunicate request_size=255 [11:50:23]MH_SAM_APDU [11:50: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 32 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 72 00 00 00 F4 03 04 00 7F 1D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 26 CD 01 00 35 04 06 00 4B [11:50:23]Write to MH i2c: E2 02 01 66 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 72 00 00 00 F4 03 04 00 7F 1D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 26 CD 01 00 35 04 06 00 4B 00 00 82 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 66 19 00 90 00 F3 [11:50:23]RAPDU: 90 00 [11:50:23]wFMCommunicate OK [11:50:23]wFMCommunicate request_size=10 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 0D 02 02 05 BF 05 F7 AF 4D [11:50:23]Write to MH i2c: E2 0D 00 67 19 80 0D 02 02 05 00 BF 05 F7 AF 4D 00 00 BB [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 67 19 00 90 00 F4 [11:50:23]RAPDU: 90 00 [11:50:23]wFMCommunicate OK [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 0D 03 02 [11:50:23]Write to MH i2c: E2 08 00 68 19 80 0D 03 02 00 00 00 00 FC [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0B 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0B 00 68 19 00 B6 75 3F 1A 46 23 77 E1 90 00 42 [11:50:23]RAPDU: B6 75 3F 1A 46 23 77 E1 90 00 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_SignData done [11:50:23]FM_MakeSignedData done [11:50:23]CreateOFDProtocolMessage [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 11 00 00 [11:50:23]Write to MH i2c: E2 08 00 69 19 80 11 00 00 00 00 00 00 FC [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:24]Read from MH i2c: E2 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 17 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: E2 17 00 69 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 53 [11:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:50:24]wFMCommunicate OK [11:50:24]CreateOFDProtocolMessage done [11:50:24]OFDSenderStorePacket 118054 [11:50:24]StoreOFDPacket docnum=118054 [11:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F4 D2 07 01 3C 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 32 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 72 00 00 00 F4 03 04 00 7F 1D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 26 CD 01 00 35 04 06 00 4B BF 05 F7 AF 4D B6 75 3F 1A 46 23 77 E1 [11:50:24]CheckFolder [11:50:24]dirname=/storage/ofd_packets [11:50:24]CheckFolder done [11:50:24]ProducePacketName [11:50:24]name=ofd_packets/00118054 [11:50:24]NVStorageSaveData ofd_packets/00118054 [11:50:24]File name is /storage/ofd_packets/00118054 [11:50:24]Write 301 bytes [11:50:24]NVStorageSaveData done [11:50:24]OFDSenderStorePacket done [11:50:24]KKMCreateOFDPacket done [11:50:24]NVStorageSaveData kkm_last_timestamp [11:50:24]File name is /storage/kkm_last_timestamp [11:50:24]Write 4 bytes [11:50:24]NVStorageSaveData done [11:50:24]ExternCall_PrintAddStr [11:50:24]wPrintStart [11:50:24]Write to MH i2c: 01 00 00 6A 19 83 [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 07 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 07 00 6A 19 00 00 00 00 00 FF 0F 98 [11:50:24]RasterBufferAndPrint [11:50:24]line Счет N : (1)245850 [11:50:24]line ИНН: 02508201610067 [11:50:24]line Контрольно-Кассовый Чек [11:50:24]line ПРОДАЖА [11:50:24]line ТРК (МРК, ГНК) : 21 [11:50:24]line Товар: 2710124130 [11:50:24]line Аи-92-К-2 [11:50:24]line 7.480 * 66.90 [11:50:24]line = 500.41 [11:50:24]line НДС 12% НСП 1% [11:50:24]line > о реализуемом товаре [11:50:24]line ОКРУГЛЕНИЕ: -0.41 [11:50:24]line ИТОГО: 500.00 [11:50:24]line Внесено: 500.00 [11:50:24]line СДАЧА: 0.00 [11:50:24]line НСП 1% : 4.43 [11:50:24]line НДС 12% : 53.14 [11:50:24]line Наличными: 500.00 [11:50:24]line Безнал.: 0.00 [11:50:24]line Место: АЗС № 173 "Партнер Нефть" [11:50:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:50:24]line СНО: Общий режим [11:50:24]line Чек 114 30.10.2024 11:50 [11:50:24]line Смена: 545 ФФД: 1.0 [11:50:24]line ЗНМ: 0300000115 [11:50:24]line РНМ: 0000000000091782 [11:50:24]line Версия ККМ: 001 [11:50:24]line ФМ: 0000000000871767 [11:50:24]line ФД: 118054 [11:50:24]line ФПД: 83283810955085 [11:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115023&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118054&fm=83283810955085&tin=02508201610067®Number=0000000000091782&sum=50000 [11:50:24]OFD Sender: Processing packet 118054 [packets to send 77, broken 76] [11:50:24]ProducePacketName [11:50:24]name=ofd_packets/00118054 [11:50:24]OFD Sender: To server: pG, [11:50:24]CommunicateWithHost lk.salyk.kg:30040 [11:50:24]ConnectInit lk.salyk.kg [11:50:24]written 0, free lines is 4095 [11:50:24]Connected sock=10 [11:50: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 36 37 0F 01 00 00 F4 D2 07 01 3C 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 32 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 72 00 00 00 F4 03 04 00 7F 1D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 26 CD 01 00 35 04 06 00 4B BF 05 F7 AF 4D B6 75 3F 1A 46 23 77 E1 [11:50: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 36 37 4F 00 00 00 3A B3 47 00 FA 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 36 37 10 04 04 00 26 CD 01 00 F4 03 04 00 36 C9 21 67 B6 04 01 00 00 66 DD 09 C5 4F A1 1D AF [11:50:24]CommunicateWithHost err = 0 [11:50:24]CheckOFDResponse [11:50:24]1017 (14) - 77093643461234 [11:50:24]1041 (16) - 0000000000871767 [11:50:24]1040 (4) - 118054 [11:50:24]1012 (4) - 30.10.2024 05:50 [11:50:24]1206 (1) - 0 [11:50:24]OFD Sender: Remove packet 118054 [11:50:24]ProducePacketName [11:50:24]name=ofd_packets/00118054 [11:50:24]NVStorageDeleteData [11:50:24]Write to MH i2c: 01 00 00 94 19 AD [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 07 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 AB 0C 6B [11:50:24]RasterBufferAndPrint [11:50:24]line [11:50:24]line [11:50:24]line [11:50:24]line [11:50:24]line [11:50:24]written 0, free lines is 3249 [11:50:24]MH_Cut [11:50:24]Write to MH i2c: D1 01 00 9B 19 01 86 [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: D1 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: D1 01 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: D1 01 00 9B 19 00 85 [11:50:24]Write to MH i2c: 01 00 00 9C 19 B5 [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:25]OFD Sender: No OFD packet to send [11:50:25]*** Cut start [11:50:25]*** Purtial cut [11:50:25]*** Stage 1: CUTSNS_PIN = 1 [11:50:25]Read from MH i2c: 01 [11:50:25]MH_I2C_Read... [11:50:25]*** Stop cut motor [11:50:25]*** Cut end [11:50:25]Read from MH i2c: 01 07 00 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 FF 0F CA [11:50:25]process_action close_receipt done [11:50:25]requested_data is exist [11:50:25]produce_requested_data [11:50:25]requested_item fm.sn is exist - process it [11:50:25]wFMCommunicate request_size=4 [11:50:25]MH_SAM_APDU [11:50:25]CAPDU: 80 11 00 00 [11:50:25]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [11:50:25]Write i2c OK [11:50:25]MH_I2C_Read... [11:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:26]Read from MH i2c: E2 [11:50:26]MH_I2C_Read... [11:50:26]Read from MH i2c: E2 17 00 [11:50:26]MH_I2C_Read... [11:50:26]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 87 [11:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:50:26]wFMCommunicate OK [11:50:26]requested_item fd.num is exist - process it [11:50:26]SAM_PROTO_GetFieldsCounters [11:50:26]wFMCommunicate request_size=4 [11:50:26]MH_SAM_APDU [11:50:26]CAPDU: 80 13 00 00 [11:50:26]Write to MH i2c: E2 08 00 9E 19 80 13 00 00 00 00 00 00 33 [11:50:26]Write i2c OK [11:50:26]MH_I2C_Read... [11:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:26]Read from MH i2c: E2 [11:50:26]MH_I2C_Read... [11:50:26]Read from MH i2c: E2 62 00 [11:50:26]MH_I2C_Read... [11:50:26]Read from MH i2c: E2 62 00 9E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 26 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:50: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 26 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:26]wFMCommunicate OK [11:50:26]SAM_PROTO_GetFieldsCounters done [11:50:26]requested_item shift.num is exist - process it [11:50:26]requested_item shift.opened is exist - process it [11:50:26]req_shift_opened [11:50:26]FM_GetShiftState [11:50:26]SAM_PROTO_GetShiftState [11:50:26]wFMCommunicate request_size=4 [11:50:26]MH_SAM_APDU [11:50:26]CAPDU: 80 13 01 00 [11:50:26]Write to MH i2c: E2 08 00 9F 19 80 13 01 00 00 00 00 00 35 [11:50:26]Write i2c OK [11:50:26]MH_I2C_Read... [11:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:26]Read from MH i2c: E2 [11:50:26]MH_I2C_Read... [11:50:26]Read from MH i2c: E2 0E 00 [11:50:26]MH_I2C_Read... [11:50:26]Read from MH i2c: E2 0E 00 9F 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0D [11:50:26]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:50:26]wFMCommunicate OK [11:50:26]SAM_PROTO_GetShiftState done [11:50:26]FM_GetShiftState done [11:50:26]req_shift_opened done [11:50:26]requested_item shift.open_date is exist - process it [11:50:26]req_shift_open_date [11:50:26]req_shift_open_date done [11:50:26]produce_requested_data done [11:50:26]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118054,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:50:26]process_action_free close_receipt [11:50:26]json_value_free [11:50:26]json_value_free done [11:50:26]process_json_proto returns [11:50:26]Send response to host [11:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118054,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:50:26]free response buf [11:50:26]execute_script done [11:50:26]execute_script returns [11:50:26]free content buf [11:50:26]Sock 7.Close socket [11:50:26]Sock 7.Thread stoped [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:52:57]accept exits with 9 [11:52:57]New connection [11:52:57]New thread 3067415908 created [11:52:57]Thread 3067559268 joined [11:52:57]Waiting for new connection... [11:52:57] Sock 9.Parse request [11:52:57]Sock 9.Check first char [11:52:57]Sock 9.First char is OK [11:52:57]request: POST /json_proto HTTP/1.0 [11:52:57]Method: POST [11:52:57]URL: /json_proto [11:52:57]Method is POST - this is cgi request [11:52:57]url: /json_proto [11:52:57]query_string will be loaded in cgi processing [11:52:57]execute_cgi json_proto POST (null) [11:52:57]execute_cgi path=json_proto method=POST [11:52:57]POST find Content-Length [11:52:57]Host: 172.17.96.67:8080 [11:52:57]Content-Length: 677 [11:52:57]Content-Type: application/json [11:52:57] [11:52:57]POST finish read [11:52:57]Found Content-Length = 677 [11:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:57]execute_script... [11:52: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)245851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:57]POST & json_proto [11:52:57]process_json_proto [11:52:57]json parsed OK: [11:52:57]protocol is kg_v1.0 [11:52:57]action value=close_receipt [11:52:57]process_action close_receipt [11:52:57]cmd_close_receipt [11:52:57]MH_GetDate [11:52:57]Write to MH i2c: F0 00 00 A0 19 A8 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: F0 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: F0 09 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: F0 09 00 A0 19 00 1A 1E 22 67 47 6C 1F 67 AB [11:52:57]GetLastDocTimeStamp 1730289023 [11:52:57]current date 1730289178 [11:52:57]FM_GetShiftState [11:52:57]SAM_PROTO_GetShiftState [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 13 01 00 [11:52:57]Write to MH i2c: E2 08 00 A1 19 80 13 01 00 00 00 00 00 37 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 A1 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0F [11:52:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_GetShiftState done [11:52:57]FM_GetShiftState done [11:52:57]opened in 1730246605 [11:52:57]opened+sec_in_day 1730333005 [11:52:57]quantity*price = 50041 [11:52:57]sum+1 = 50042 [11:52: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 115 30.10.2024 11:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118055 ФПД: 228954659553713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118055&fm=228954659553713&tin=02508201610067®Number=0000000000091782&sum=50000 [11:52:58]StoreToDocumentArchive [11:52:58]shift 545 fd 118055 [11:52:58]save to /storage/0545/doc_00118055 [11:52:58]save last doc name /storage/0545/doc_00118055 to /storage/kkm_last_doc_name [11:52:58]save OK [11:52:58]Clear old archive folders... [11:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:58]tlvbuf is 0062AF20 [11:52:58]SAM_PROTO_ClearQueue [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 09 00 00 [11:52:58]Write to MH i2c: E2 08 00 AE 19 80 09 00 00 00 00 00 00 39 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 AE 19 00 90 00 3B [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]SAM_PROTO_ClearQueue done [11:52:58]KKMCreateOFDPacket [11:52:58]OFDProtocolAddRootSTLVToBuf [11:52:58]FM_MakeSignedData [11:52:58]FM_MakeSignedData [11:52:58]SAM_PROTO_SignData [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 01 02 [11:52:58]Write to MH i2c: E2 08 00 AF 19 80 0D 01 02 00 00 00 00 41 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 AF 19 00 90 00 3C [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=255 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 1A 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 27 CD 01 00 35 04 06 00 D0 [11:52:58]Write to MH i2c: E2 02 01 B0 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 73 00 00 00 F4 03 04 00 1A 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 27 CD 01 00 35 04 06 00 D0 00 00 EF [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 B0 19 00 90 00 3D [11:52:59]RAPDU: 90 00 [11:52:59]wFMCommunicate OK [11:52:59]wFMCommunicate request_size=10 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 0D 02 02 05 3B A9 27 01 B1 [11:52:59]Write to MH i2c: E2 0D 00 B1 19 80 0D 02 02 05 00 3B A9 27 01 B1 00 00 0B [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 B1 19 00 90 00 3E [11:52:59]RAPDU: 90 00 [11:52:59]wFMCommunicate OK [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 0D 03 02 [11:52:59]Write to MH i2c: E2 08 00 B2 19 80 0D 03 02 00 00 00 00 46 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0B 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0B 00 B2 19 00 DE C0 62 48 77 5B FD 58 90 00 B6 [11:52:59]RAPDU: DE C0 62 48 77 5B FD 58 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_SignData done [11:52:59]FM_MakeSignedData done [11:52:59]CreateOFDProtocolMessage [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 11 00 00 [11:52:59]Write to MH i2c: E2 08 00 B3 19 80 11 00 00 00 00 00 00 46 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 B3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9D [11:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:52:59]wFMCommunicate OK [11:52:59]CreateOFDProtocolMessage done [11:52:59]OFDSenderStorePacket 118055 [11:52:59]StoreOFDPacket docnum=118055 [11:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2D 8A 07 01 6A 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 32 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 73 00 00 00 F4 03 04 00 1A 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 27 CD 01 00 35 04 06 00 D0 3B A9 27 01 B1 DE C0 62 48 77 5B FD 58 [11:52:59]CheckFolder [11:52:59]dirname=/storage/ofd_packets [11:52:59]CheckFolder done [11:52:59]ProducePacketName [11:52:59]name=ofd_packets/00118055 [11:52:59]NVStorageSaveData ofd_packets/00118055 [11:52:59]File name is /storage/ofd_packets/00118055 [11:52:59]Write 301 bytes [11:52:59]NVStorageSaveData done [11:52:59]OFDSenderStorePacket done [11:52:59]KKMCreateOFDPacket done [11:52:59]NVStorageSaveData kkm_last_timestamp [11:52:59]File name is /storage/kkm_last_timestamp [11:52:59]Write 4 bytes [11:52:59]NVStorageSaveData done [11:52:59]ExternCall_PrintAddStr [11:52:59]wPrintStart [11:52:59]Write to MH i2c: 01 00 00 B4 19 CD [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 B4 19 00 00 00 00 00 FF 0F E2 [11:52:59]RasterBufferAndPrint [11:52:59]line Счет N : (1)245851 [11:52:59]line ИНН: 02508201610067 [11:52:59]line Контрольно-Кассовый Чек [11:52:59]line ПРОДАЖА [11:52:59]line ТРК (МРК, ГНК) : 21 [11:52:59]line Товар: 2710124130 [11:52:59]line Аи-92-К-2 [11:52:59]line 7.480 * 66.90 [11:52:59]line = 500.41 [11:52:59]line НДС 12% НСП 1% [11:52:59]line > о реализуемом товаре [11:52:59]line ОКРУГЛЕНИЕ: -0.41 [11:52:59]line ИТОГО: 500.00 [11:52:59]line Внесено: 500.00 [11:52:59]line СДАЧА: 0.00 [11:52:59]line НСП 1% : 4.43 [11:52:59]line НДС 12% : 53.14 [11:52:59]line Наличными: 500.00 [11:52:59]line Безнал.: 0.00 [11:52:59]line Место: АЗС № 173 "Партнер Нефть" [11:52:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:52:59]line СНО: Общий режим [11:52:59]line Чек 115 30.10.2024 11:52 [11:52:59]line Смена: 545 ФФД: 1.0 [11:52:59]line ЗНМ: 0300000115 [11:52:59]line РНМ: 0000000000091782 [11:52:59]line Версия ККМ: 001 [11:52:59]line ФМ: 0000000000871767 [11:52:59]line ФД: 118055 [11:52:59]line ФПД: 228954659553713 [11:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118055&fm=228954659553713&tin=02508201610067®Number=0000000000091782&sum=50000 [11:52:59]OFD Sender: Processing packet 118055 [packets to send 77, broken 76] [11:52:59]ProducePacketName [11:52:59]name=ofd_packets/00118055 [11:52:59]OFD Sender: To server: pG, [11:52:59]CommunicateWithHost lk.salyk.kg:30040 [11:52:59]ConnectInit lk.salyk.kg [11:52:59]written 0, free lines is 4095 [11:52:59]Connected sock=10 [11:52: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 36 37 0F 01 00 00 2D 8A 07 01 6A 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 32 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 73 00 00 00 F4 03 04 00 1A 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 27 CD 01 00 35 04 06 00 D0 3B A9 27 01 B1 DE C0 62 48 77 5B FD 58 [11:53: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 36 37 4F 00 00 00 40 C3 47 00 D3 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 27 CD 01 00 F4 03 04 00 D2 C9 21 67 B6 04 01 00 00 49 44 93 46 2D 15 B1 C4 [11:53:00]CommunicateWithHost err = 0 [11:53:00]CheckOFDResponse [11:53:00]1017 (14) - 77093643461234 [11:53:00]1041 (16) - 0000000000871767 [11:53:00]1040 (4) - 118055 [11:53:00]1012 (4) - 30.10.2024 05:53 [11:53:00]1206 (1) - 0 [11:53:00]OFD Sender: Remove packet 118055 [11:53:00]ProducePacketName [11:53:00]name=ofd_packets/00118055 [11:53:00]NVStorageDeleteData [11:53:00]Write to MH i2c: 01 00 00 DE 19 F7 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 DE 19 00 00 00 00 00 B5 0C BF [11:53:00]RasterBufferAndPrint [11:53:00]line [11:53:00]line [11:53:00]line [11:53:00]line [11:53:00]line [11:53:00]written 0, free lines is 3257 [11:53:00]MH_Cut [11:53:00]Write to MH i2c: D1 01 00 E5 19 01 D0 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: D1 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: D1 01 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: D1 01 00 E5 19 00 CF [11:53:00]Write to MH i2c: 01 00 00 E6 19 FF [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]OFD Sender: No OFD packet to send [11:53:00]*** Cut start [11:53:00]*** Purtial cut [11:53:00]*** Stage 1: CUTSNS_PIN = 1 [11:53:01]Read from MH i2c: 01 [11:53:01]MH_I2C_Read... [11:53:01]*** Stop cut motor [11:53:01]*** Cut end [11:53:01]Read from MH i2c: 01 07 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 FF 0F 14 [11:53:01]process_action close_receipt done [11:53:01]requested_data is exist [11:53:01]produce_requested_data [11:53:01]requested_item fm.sn is exist - process it [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 11 00 00 [11:53:01]Write to MH i2c: E2 08 00 E7 19 80 11 00 00 00 00 00 00 7A [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 17 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 17 00 E7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D1 [11:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:53:01]wFMCommunicate OK [11:53:01]requested_item fd.num is exist - process it [11:53:01]SAM_PROTO_GetFieldsCounters [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 13 00 00 [11:53:01]Write to MH i2c: E2 08 00 E8 19 80 13 00 00 00 00 00 00 7D [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 62 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 62 00 E8 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 27 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [11:53: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 27 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:01]wFMCommunicate OK [11:53:01]SAM_PROTO_GetFieldsCounters done [11:53:01]requested_item shift.num is exist - process it [11:53:01]requested_item shift.opened is exist - process it [11:53:01]req_shift_opened [11:53:01]FM_GetShiftState [11:53:01]SAM_PROTO_GetShiftState [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 13 01 00 [11:53:01]Write to MH i2c: E2 08 00 E9 19 80 13 01 00 00 00 00 00 7F [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 0E 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 0E 00 E9 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 57 [11:53:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:53:01]wFMCommunicate OK [11:53:01]SAM_PROTO_GetShiftState done [11:53:01]FM_GetShiftState done [11:53:01]req_shift_opened done [11:53:01]requested_item shift.open_date is exist - process it [11:53:01]req_shift_open_date [11:53:01]req_shift_open_date done [11:53:01]produce_requested_data done [11:53:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118055,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:53:01]process_action_free close_receipt [11:53:01]json_value_free [11:53:01]json_value_free done [11:53:01]process_json_proto returns [11:53:01]Send response to host [11:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118055,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:53:01]free response buf [11:53:01]execute_script done [11:53:01]execute_script returns [11:53:01]free content buf [11:53:01]Sock 9.Close socket [11:53:01]Sock 9.Thread stoped [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]accept exits with 7 [11:55:10]New connection [11:55:10]New thread 3067559268 created [11:55:10]Thread 3067415908 joined [11:55:10]Waiting for new connection... [11:55:10] Sock 7.Parse request [11:55:10]Sock 7.Check first char [11:55:10]Sock 7.First char is OK [11:55:10]request: POST /json_proto HTTP/1.0 [11:55:10]Method: POST [11:55:10]URL: /json_proto [11:55:10]Method is POST - this is cgi request [11:55:10]url: /json_proto [11:55:10]query_string will be loaded in cgi processing [11:55:10]execute_cgi json_proto POST (null) [11:55:10]execute_cgi path=json_proto method=POST [11:55:10]POST find Content-Length [11:55:10]Host: 172.17.96.67:8080 [11:55:10]Content-Length: 677 [11:55:10]Content-Type: application/json [11:55:10] [11:55:10]POST finish read [11:55:10]Found Content-Length = 677 [11:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:55:10]execute_script... [11:55: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)245852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:55:10]POST & json_proto [11:55:10]process_json_proto [11:55:10]json parsed OK: [11:55:10]protocol is kg_v1.0 [11:55:10]action value=close_receipt [11:55:10]process_action close_receipt [11:55:10]cmd_close_receipt [11:55:10]MH_GetDate [11:55:10]Write to MH i2c: F0 00 00 EA 19 F2 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: F0 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: F0 09 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: F0 09 00 EA 19 00 9E 1E 22 67 47 6C 1F 67 79 [11:55:10]GetLastDocTimeStamp 1730289178 [11:55:10]current date 1730289310 [11:55:10]FM_GetShiftState [11:55:10]SAM_PROTO_GetShiftState [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 13 01 00 [11:55:10]Write to MH i2c: E2 08 00 EB 19 80 13 01 00 00 00 00 00 81 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 EB 19 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 59 [11:55:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_GetShiftState done [11:55:10]FM_GetShiftState done [11:55:10]opened in 1730246605 [11:55:10]opened+sec_in_day 1730333005 [11:55:10]quantity*price = 20003 [11:55:10]sum+1 = 20004 [11:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 116 30.10.2024 11:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118056 ФПД: 56029508408902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115510&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118056&fm=56029508408902&tin=02508201610067®Number=0000000000091782&sum=20000 [11:55:11]StoreToDocumentArchive [11:55:11]shift 545 fd 118056 [11:55:11]save to /storage/0545/doc_00118056 [11:55:11]save last doc name /storage/0545/doc_00118056 to /storage/kkm_last_doc_name [11:55:11]save OK [11:55:11]Clear old archive folders... [11:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:11]tlvbuf is 00638780 [11:55:11]SAM_PROTO_ClearQueue [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 09 00 00 [11:55:11]Write to MH i2c: E2 08 00 F8 19 80 09 00 00 00 00 00 00 83 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 F8 19 00 90 00 85 [11:55:11]RAPDU: 90 00 [11:55:11]wFMCommunicate OK [11:55:11]SAM_PROTO_ClearQueue done [11:55:11]KKMCreateOFDPacket [11:55:11]OFDProtocolAddRootSTLVToBuf [11:55:11]FM_MakeSignedData [11:55:11]FM_MakeSignedData [11:55:11]SAM_PROTO_SignData [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 0D 01 02 [11:55:11]Write to MH i2c: E2 08 00 F9 19 80 0D 01 02 00 00 00 00 8B [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 F9 19 00 90 00 86 [11:55:11]RAPDU: 90 00 [11:55:11]wFMCommunicate OK [11:55:11]wFMCommunicate request_size=255 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 74 00 00 00 F4 03 04 00 9E 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 28 CD 01 00 35 04 06 00 32 [11:55:11]Write to MH i2c: E2 02 01 FA 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 74 00 00 00 F4 03 04 00 9E 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 28 CD 01 00 35 04 06 00 32 00 00 E3 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 FA 19 00 90 00 87 [11:55:11]RAPDU: 90 00 [11:55:11]wFMCommunicate OK [11:55:11]wFMCommunicate request_size=10 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 0D 02 02 05 F5 62 F2 16 46 [11:55:11]Write to MH i2c: E2 0D 00 FB 19 80 0D 02 02 05 00 F5 62 F2 16 46 00 00 3D [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 FB 19 00 90 00 88 [11:55:11]RAPDU: 90 00 [11:55:11]wFMCommunicate OK [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 0D 03 02 [11:55:11]Write to MH i2c: E2 08 00 FC 19 80 0D 03 02 00 00 00 00 90 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 0B 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 0B 00 FC 19 00 89 B5 96 0E DF 36 ED 4B 90 00 C0 [11:55:11]RAPDU: 89 B5 96 0E DF 36 ED 4B 90 00 [11:55:11]wFMCommunicate OK [11:55:11]SAM_PROTO_SignData done [11:55:11]FM_MakeSignedData done [11:55:11]CreateOFDProtocolMessage [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 11 00 00 [11:55:11]Write to MH i2c: E2 08 00 FD 19 80 11 00 00 00 00 00 00 90 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 17 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 17 00 FD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E7 [11:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:55:11]wFMCommunicate OK [11:55:11]CreateOFDProtocolMessage done [11:55:11]OFDSenderStorePacket 118056 [11:55:11]StoreOFDPacket docnum=118056 [11:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CD 00 07 01 F2 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 74 00 00 00 F4 03 04 00 9E 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 28 CD 01 00 35 04 06 00 32 F5 62 F2 16 46 89 B5 96 0E DF 36 ED 4B [11:55:11]CheckFolder [11:55:11]dirname=/storage/ofd_packets [11:55:11]CheckFolder done [11:55:11]ProducePacketName [11:55:11]name=ofd_packets/00118056 [11:55:11]NVStorageSaveData ofd_packets/00118056 [11:55:11]File name is /storage/ofd_packets/00118056 [11:55:11]Write 301 bytes [11:55:11]NVStorageSaveData done [11:55:11]OFDSenderStorePacket done [11:55:11]KKMCreateOFDPacket done [11:55:11]NVStorageSaveData kkm_last_timestamp [11:55:11]File name is /storage/kkm_last_timestamp [11:55:11]Write 4 bytes [11:55:11]NVStorageSaveData done [11:55:11]ExternCall_PrintAddStr [11:55:11]wPrintStart [11:55:11]Write to MH i2c: 01 00 00 FE 19 17 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: 01 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: 01 07 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 FF 0F 2C [11:55:11]RasterBufferAndPrint [11:55:11]line Счет N : (1)245852 [11:55:11]line ИНН: 02508201610067 [11:55:11]line Контрольно-Кассовый Чек [11:55:11]line ПРОДАЖА [11:55:11]line ТРК (МРК, ГНК) : 21 [11:55:11]line Товар: 2710124130 [11:55:11]line Аи-92-К-2 [11:55:11]line 2.990 * 66.90 [11:55:11]line = 200.03 [11:55:11]line НДС 12% НСП 1% [11:55:11]line > о реализуемом товаре [11:55:11]line ОКРУГЛЕНИЕ: -0.03 [11:55:11]line ИТОГО: 200.00 [11:55:11]line Внесено: 200.00 [11:55:11]line СДАЧА: 0.00 [11:55:11]line НСП 1% : 1.77 [11:55:11]line НДС 12% : 21.24 [11:55:11]line Наличными: 200.00 [11:55:11]line Безнал.: 0.00 [11:55:11]line Место: АЗС № 173 "Партнер Нефть" [11:55:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [11:55:11]line СНО: Общий режим [11:55:11]line Чек 116 30.10.2024 11:55 [11:55:11]line Смена: 545 ФФД: 1.0 [11:55:11]line ЗНМ: 0300000115 [11:55:11]line РНМ: 0000000000091782 [11:55:11]line Версия ККМ: 001 [11:55:11]line ФМ: 0000000000871767 [11:55:11]line ФД: 118056 [11:55:11]line ФПД: 56029508408902 [11:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115510&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118056&fm=56029508408902&tin=02508201610067®Number=0000000000091782&sum=20000 [11:55:12]OFD Sender: Processing packet 118056 [packets to send 77, broken 76] [11:55:12]ProducePacketName [11:55:12]name=ofd_packets/00118056 [11:55:12]OFD Sender: To server: pG, [11:55:12]CommunicateWithHost lk.salyk.kg:30040 [11:55:12]ConnectInit lk.salyk.kg [11:55:12]written 0, free lines is 4095 [11:55:12]Connected sock=10 [11:55: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 36 37 0F 01 00 00 CD 00 07 01 F2 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 74 00 00 00 F4 03 04 00 9E 1E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 28 CD 01 00 35 04 06 00 32 F5 62 F2 16 46 89 B5 96 0E DF 36 ED 4B [11:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 FB 99 47 00 7A 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 36 37 10 04 04 00 28 CD 01 00 F4 03 04 00 56 CA 21 67 B6 04 01 00 00 F1 35 DA FF 33 FD A5 4A [11:55:12]CommunicateWithHost err = 0 [11:55:12]CheckOFDResponse [11:55:12]1017 (14) - 77093643461234 [11:55:12]1041 (16) - 0000000000871767 [11:55:12]1040 (4) - 118056 [11:55:12]1012 (4) - 30.10.2024 05:55 [11:55:12]1206 (1) - 0 [11:55:12]OFD Sender: Remove packet 118056 [11:55:12]ProducePacketName [11:55:12]name=ofd_packets/00118056 [11:55:12]NVStorageDeleteData [11:55:12]Write to MH i2c: 01 00 00 28 1A 42 [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 07 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 B3 0C 08 [11:55:12]RasterBufferAndPrint [11:55:12]line [11:55:12]line [11:55:12]line [11:55:12]line [11:55:12]line [11:55:12]written 0, free lines is 3255 [11:55:12]MH_Cut [11:55:12]Write to MH i2c: D1 01 00 2F 1A 01 1B [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: D1 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: D1 01 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: D1 01 00 2F 1A 00 1A [11:55:12]Write to MH i2c: 01 00 00 30 1A 4A [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:13]OFD Sender: No OFD packet to send [11:55:13]*** Cut start [11:55:13]*** Purtial cut [11:55:13]*** Stage 1: CUTSNS_PIN = 1 [11:55:13]Read from MH i2c: 01 [11:55:13]MH_I2C_Read... [11:55:13]*** Stop cut motor [11:55:13]*** Cut end [11:55:13]Read from MH i2c: 01 07 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 FF 0F 5F [11:55:13]process_action close_receipt done [11:55:13]requested_data is exist [11:55:13]produce_requested_data [11:55:13]requested_item fm.sn is exist - process it [11:55:13]wFMCommunicate request_size=4 [11:55:13]MH_SAM_APDU [11:55:13]CAPDU: 80 11 00 00 [11:55:13]Write to MH i2c: E2 08 00 31 1A 80 11 00 00 00 00 00 00 C5 [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:13]Read from MH i2c: E2 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 17 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 17 00 31 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1C [11:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [11:55:13]wFMCommunicate OK [11:55:13]requested_item fd.num is exist - process it [11:55:13]SAM_PROTO_GetFieldsCounters [11:55:13]wFMCommunicate request_size=4 [11:55:13]MH_SAM_APDU [11:55:13]CAPDU: 80 13 00 00 [11:55:13]Write to MH i2c: E2 08 00 32 1A 80 13 00 00 00 00 00 00 C8 [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 62 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 62 00 32 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 28 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [11:55: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 28 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_GetFieldsCounters done [11:55:14]requested_item shift.num is exist - process it [11:55:14]requested_item shift.opened is exist - process it [11:55:14]req_shift_opened [11:55:14]FM_GetShiftState [11:55:14]SAM_PROTO_GetShiftState [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 13 01 00 [11:55:14]Write to MH i2c: E2 08 00 33 1A 80 13 01 00 00 00 00 00 CA [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:14]Read from MH i2c: E2 0E 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0E 00 33 1A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A2 [11:55:14]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_GetShiftState done [11:55:14]FM_GetShiftState done [11:55:14]req_shift_opened done [11:55:14]requested_item shift.open_date is exist - process it [11:55:14]req_shift_open_date [11:55:14]req_shift_open_date done [11:55:14]produce_requested_data done [11:55:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118056,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [11:55:14]process_action_free close_receipt [11:55:14]json_value_free [11:55:14]json_value_free done [11:55:14]process_json_proto returns [11:55:14]Send response to host [11:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118056,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [11:55:14]free response buf [11:55:14]execute_script done [11:55:14]execute_script returns [11:55:14]free content buf [11:55:14]Sock 7.Close socket [11:55:14]Sock 7.Thread stoped [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:29]accept exits with 9 [12:01:29]New connection [12:01:29]New thread 3067415908 created [12:01:29]Thread 3067559268 joined [12:01:29]Waiting for new connection... [12:01:29] Sock 9.Parse request [12:01:29]Sock 9.Check first char [12:01:29]Sock 9.First char is OK [12:01:29]request: POST /json_proto HTTP/1.0 [12:01:29]Method: POST [12:01:29]URL: /json_proto [12:01:29]Method is POST - this is cgi request [12:01:29]url: /json_proto [12:01:29]query_string will be loaded in cgi processing [12:01:29]execute_cgi json_proto POST (null) [12:01:29]execute_cgi path=json_proto method=POST [12:01:29]POST find Content-Length [12:01:29]Host: 172.17.96.67:8080 [12:01:29]Content-Length: 677 [12:01:29]Content-Type: application/json [12:01:29] [12:01:29]POST finish read [12:01:29]Found Content-Length = 677 [12:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:29]execute_script... [12:01: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)245853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:29]POST & json_proto [12:01:29]process_json_proto [12:01:29]json parsed OK: [12:01:29]protocol is kg_v1.0 [12:01:29]action value=close_receipt [12:01:29]process_action close_receipt [12:01:29]cmd_close_receipt [12:01:29]MH_GetDate [12:01:29]Write to MH i2c: F0 00 00 34 1A 3D [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: F0 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: F0 09 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: F0 09 00 34 1A 00 1A 20 22 67 47 6C 1F 67 42 [12:01:29]GetLastDocTimeStamp 1730289310 [12:01:29]current date 1730289690 [12:01:29]FM_GetShiftState [12:01:29]SAM_PROTO_GetShiftState [12:01:29]wFMCommunicate request_size=4 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 13 01 00 [12:01:29]Write to MH i2c: E2 08 00 35 1A 80 13 01 00 00 00 00 00 CC [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:29]Read from MH i2c: E2 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 0E 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 0E 00 35 1A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A4 [12:01:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:01:29]wFMCommunicate OK [12:01:29]SAM_PROTO_GetShiftState done [12:01:29]FM_GetShiftState done [12:01:29]opened in 1730246605 [12:01:29]opened+sec_in_day 1730333005 [12:01:29]quantity*price = 30038 [12:01:29]sum+1 = 30039 [12:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 117 30.10.2024 12:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118057 ФПД: 225356082282317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120130&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118057&fm=225356082282317&tin=02508201610067®Number=0000000000091782&sum=30000 [12:01:30]StoreToDocumentArchive [12:01:30]shift 545 fd 118057 [12:01:30]save to /storage/0545/doc_00118057 [12:01:30]save last doc name /storage/0545/doc_00118057 to /storage/kkm_last_doc_name [12:01:30]save OK [12:01:30]Clear old archive folders... [12:01:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:30]tlvbuf is 006F51D0 [12:01:30]SAM_PROTO_ClearQueue [12:01:30]wFMCommunicate request_size=4 [12:01:30]MH_SAM_APDU [12:01:30]CAPDU: 80 09 00 00 [12:01:30]Write to MH i2c: E2 08 00 42 1A 80 09 00 00 00 00 00 00 CE [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:30]Read from MH i2c: E2 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 03 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 03 00 42 1A 00 90 00 D0 [12:01:30]RAPDU: 90 00 [12:01:30]wFMCommunicate OK [12:01:30]SAM_PROTO_ClearQueue done [12:01:30]KKMCreateOFDPacket [12:01:30]OFDProtocolAddRootSTLVToBuf [12:01:30]FM_MakeSignedData [12:01:30]FM_MakeSignedData [12:01:30]SAM_PROTO_SignData [12:01:30]wFMCommunicate request_size=4 [12:01:30]MH_SAM_APDU [12:01:30]CAPDU: 80 0D 01 02 [12:01:30]Write to MH i2c: E2 08 00 43 1A 80 0D 01 02 00 00 00 00 D6 [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:30]Read from MH i2c: E2 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 03 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [12:01:30]RAPDU: 90 00 [12:01:30]wFMCommunicate OK [12:01:30]wFMCommunicate request_size=255 [12:01:30]MH_SAM_APDU [12:01: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 32 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 75 00 00 00 F4 03 04 00 1A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 29 CD 01 00 35 04 06 00 CC [12:01:30]Write to MH i2c: E2 02 01 44 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 75 00 00 00 F4 03 04 00 1A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 29 CD 01 00 35 04 06 00 CC 00 00 7A [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:30]Read from MH i2c: E2 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 03 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [12:01:30]RAPDU: 90 00 [12:01:30]wFMCommunicate OK [12:01:30]wFMCommunicate request_size=10 [12:01:30]MH_SAM_APDU [12:01:30]CAPDU: 80 0D 02 02 05 F5 CD 3B 7F 4D [12:01:30]Write to MH i2c: E2 0D 00 45 1A 80 0D 02 02 05 00 F5 CD 3B 7F 4D 00 00 AC [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 03 02 [12:01:31]Write to MH i2c: E2 08 00 46 1A 80 0D 03 02 00 00 00 00 DB [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0B 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0B 00 46 1A 00 17 DA 21 2C C4 52 8C CE 90 00 8A [12:01:31]RAPDU: 17 DA 21 2C C4 52 8C CE 90 00 [12:01:31]wFMCommunicate OK [12:01:31]SAM_PROTO_SignData done [12:01:31]FM_MakeSignedData done [12:01:31]CreateOFDProtocolMessage [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 11 00 00 [12:01:31]Write to MH i2c: E2 08 00 47 1A 80 11 00 00 00 00 00 00 DB [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 17 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 17 00 47 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 32 [12:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:01:31]wFMCommunicate OK [12:01:31]CreateOFDProtocolMessage done [12:01:31]OFDSenderStorePacket 118057 [12:01:31]StoreOFDPacket docnum=118057 [12:01:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 38 65 07 01 08 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 32 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 75 00 00 00 F4 03 04 00 1A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 29 CD 01 00 35 04 06 00 CC F5 CD 3B 7F 4D 17 DA 21 2C C4 52 8C CE [12:01:31]CheckFolder [12:01:31]dirname=/storage/ofd_packets [12:01:31]CheckFolder done [12:01:31]ProducePacketName [12:01:31]name=ofd_packets/00118057 [12:01:31]NVStorageSaveData ofd_packets/00118057 [12:01:31]File name is /storage/ofd_packets/00118057 [12:01:31]Write 301 bytes [12:01:31]NVStorageSaveData done [12:01:31]OFDSenderStorePacket done [12:01:31]KKMCreateOFDPacket done [12:01:31]NVStorageSaveData kkm_last_timestamp [12:01:31]File name is /storage/kkm_last_timestamp [12:01:31]Write 4 bytes [12:01:31]NVStorageSaveData done [12:01:31]ExternCall_PrintAddStr [12:01:31]wPrintStart [12:01:31]Write to MH i2c: 01 00 00 48 1A 62 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 07 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 07 00 48 1A 00 00 00 00 00 FF 0F 77 [12:01:31]RasterBufferAndPrint [12:01:31]line Счет N : (1)245853 [12:01:31]line ИНН: 02508201610067 [12:01:31]line Контрольно-Кассовый Чек [12:01:31]line ПРОДАЖА [12:01:31]line ТРК (МРК, ГНК) : 11 [12:01:31]line Товар: 2710124130 [12:01:31]line Аи-92-К-2 [12:01:31]line 4.490 * 66.90 [12:01:31]line = 300.38 [12:01:31]line НДС 12% НСП 1% [12:01:31]line > о реализуемом товаре [12:01:31]line ОКРУГЛЕНИЕ: -0.38 [12:01:31]line ИТОГО: 300.00 [12:01:31]line Внесено: 300.00 [12:01:31]line СДАЧА: 0.00 [12:01:31]line НСП 1% : 2.66 [12:01:31]line НДС 12% : 31.90 [12:01:31]line Наличными: 300.00 [12:01:31]line Безнал.: 0.00 [12:01:31]line Место: АЗС № 173 "Партнер Нефть" [12:01:31]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:01:31]line СНО: Общий режим [12:01:31]line Чек 117 30.10.2024 12:01 [12:01:31]line Смена: 545 ФФД: 1.0 [12:01:31]line ЗНМ: 0300000115 [12:01:31]line РНМ: 0000000000091782 [12:01:31]line Версия ККМ: 001 [12:01:31]line ФМ: 0000000000871767 [12:01:31]line ФД: 118057 [12:01:31]line ФПД: 225356082282317 [12:01:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120130&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118057&fm=225356082282317&tin=02508201610067®Number=0000000000091782&sum=30000 [12:01:31]written 0, free lines is 4095 [12:01:31]OFD Sender: Processing packet 118057 [packets to send 77, broken 76] [12:01:31]ProducePacketName [12:01:31]name=ofd_packets/00118057 [12:01:31]OFD Sender: To server: pG, [12:01:31]CommunicateWithHost lk.salyk.kg:30040 [12:01:31]ConnectInit lk.salyk.kg [12:01:31]Connected sock=10 [12:01: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 36 37 0F 01 00 00 38 65 07 01 08 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 32 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 75 00 00 00 F4 03 04 00 1A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 29 CD 01 00 35 04 06 00 CC F5 CD 3B 7F 4D 17 DA 21 2C C4 52 8C CE [12:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 39 D0 47 00 72 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 29 CD 01 00 F4 03 04 00 D1 CB 21 67 B6 04 01 00 00 EF 41 4D 4E 1D B6 59 59 [12:01:31]CommunicateWithHost err = 0 [12:01:31]CheckOFDResponse [12:01:31]1017 (14) - 77093643461234 [12:01:31]1041 (16) - 0000000000871767 [12:01:31]1040 (4) - 118057 [12:01:31]1012 (4) - 30.10.2024 06:01 [12:01:31]1206 (1) - 0 [12:01:31]OFD Sender: Remove packet 118057 [12:01:31]ProducePacketName [12:01:31]name=ofd_packets/00118057 [12:01:31]NVStorageDeleteData [12:01:31]Write to MH i2c: 01 00 00 72 1A 8C [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 07 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 07 00 72 1A 00 00 00 00 00 B1 0C 50 [12:01:31]RasterBufferAndPrint [12:01:31]line [12:01:31]line [12:01:31]line [12:01:31]line [12:01:31]line [12:01:31]written 0, free lines is 3255 [12:01:31]MH_Cut [12:01:31]Write to MH i2c: D1 01 00 79 1A 01 65 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: D1 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: D1 01 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: D1 01 00 79 1A 00 64 [12:01:31]Write to MH i2c: 01 00 00 7A 1A 94 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:32]OFD Sender: No OFD packet to send [12:01:32]*** Cut start [12:01:32]*** Purtial cut [12:01:32]*** Stage 1: CUTSNS_PIN = 1 [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]*** Stop cut motor [12:01:33]*** Cut end [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 7A 1A 00 00 00 00 00 FF 0F A9 [12:01:33]process_action close_receipt done [12:01:33]requested_data is exist [12:01:33]produce_requested_data [12:01:33]requested_item fm.sn is exist - process it [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 11 00 00 [12:01:33]Write to MH i2c: E2 08 00 7B 1A 80 11 00 00 00 00 00 00 0F [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 7B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 66 [12:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:01:33]wFMCommunicate OK [12:01:33]requested_item fd.num is exist - process it [12:01:33]SAM_PROTO_GetFieldsCounters [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 13 00 00 [12:01:33]Write to MH i2c: E2 08 00 7C 1A 80 13 00 00 00 00 00 00 12 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 62 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 62 00 7C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 29 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [12:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 29 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_GetFieldsCounters done [12:01:33]requested_item shift.num is exist - process it [12:01:33]requested_item shift.opened is exist - process it [12:01:33]req_shift_opened [12:01:33]FM_GetShiftState [12:01:33]SAM_PROTO_GetShiftState [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 13 01 00 [12:01:33]Write to MH i2c: E2 08 00 7D 1A 80 13 01 00 00 00 00 00 14 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 7D 1A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EC [12:01:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_GetShiftState done [12:01:33]FM_GetShiftState done [12:01:33]req_shift_opened done [12:01:33]requested_item shift.open_date is exist - process it [12:01:33]req_shift_open_date [12:01:33]req_shift_open_date done [12:01:33]produce_requested_data done [12:01:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118057,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:01:33]process_action_free close_receipt [12:01:33]json_value_free [12:01:33]json_value_free done [12:01:33]process_json_proto returns [12:01:33]Send response to host [12:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118057,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:01:33]free response buf [12:01:33]execute_script done [12:01:33]execute_script returns [12:01:33]free content buf [12:01:33]Sock 9.Close socket [12:01:33]Sock 9.Thread stoped [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]accept exits with 7 [12:03:22]New connection [12:03:22]New thread 3067559268 created [12:03:22]Thread 3067415908 joined [12:03:22]Waiting for new connection... [12:03:22] Sock 7.Parse request [12:03:22]Sock 7.Check first char [12:03:22]Sock 7.First char is OK [12:03:22]request: POST /json_proto HTTP/1.0 [12:03:22]Method: POST [12:03:22]URL: /json_proto [12:03:22]Method is POST - this is cgi request [12:03:22]url: /json_proto [12:03:22]query_string will be loaded in cgi processing [12:03:22]execute_cgi json_proto POST (null) [12:03:22]execute_cgi path=json_proto method=POST [12:03:22]POST find Content-Length [12:03:22]Host: 172.17.96.67:8080 [12:03:22]Content-Length: 674 [12:03:22]Content-Type: application/json [12:03:22] [12:03:22]POST finish read [12:03:22]Found Content-Length = 674 [12:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:03:22]execute_script... [12:03: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)245854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:03:22]POST & json_proto [12:03:22]process_json_proto [12:03:22]json parsed OK: [12:03:22]protocol is kg_v1.0 [12:03:22]action value=close_receipt [12:03:22]process_action close_receipt [12:03:22]cmd_close_receipt [12:03:22]MH_GetDate [12:03:22]Write to MH i2c: F0 00 00 7E 1A 87 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: F0 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: F0 09 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: F0 09 00 7E 1A 00 8A 20 22 67 47 6C 1F 67 FC [12:03:22]GetLastDocTimeStamp 1730289690 [12:03:22]current date 1730289802 [12:03:22]FM_GetShiftState [12:03:22]SAM_PROTO_GetShiftState [12:03:22]wFMCommunicate request_size=4 [12:03:22]MH_SAM_APDU [12:03:22]CAPDU: 80 13 01 00 [12:03:22]Write to MH i2c: E2 08 00 7F 1A 80 13 01 00 00 00 00 00 16 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:22]Read from MH i2c: E2 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 0E 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 0E 00 7F 1A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EE [12:03:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:03:22]wFMCommunicate OK [12:03:22]SAM_PROTO_GetShiftState done [12:03:22]FM_GetShiftState done [12:03:22]opened in 1730246605 [12:03:22]opened+sec_in_day 1730333005 [12:03:22]quantity*price = 50063 [12:03:22]sum+1 = 50064 [12:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 118 30.10.2024 12:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118058 ФПД: 252856620030479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120322&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118058&fm=252856620030479&tin=02508201610067®Number=0000000000091782&sum=50000 [12:03:23]StoreToDocumentArchive [12:03:23]shift 545 fd 118058 [12:03:23]save to /storage/0545/doc_00118058 [12:03:23]save last doc name /storage/0545/doc_00118058 to /storage/kkm_last_doc_name [12:03:23]save OK [12:03:23]Clear old archive folders... [12:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:03:23]tlvbuf is 00696F30 [12:03:23]SAM_PROTO_ClearQueue [12:03:23]wFMCommunicate request_size=4 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 09 00 00 [12:03:23]Write to MH i2c: E2 08 00 8C 1A 80 09 00 00 00 00 00 00 18 [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:23]Read from MH i2c: E2 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 8C 1A 00 90 00 1A [12:03:23]RAPDU: 90 00 [12:03:23]wFMCommunicate OK [12:03:23]SAM_PROTO_ClearQueue done [12:03:23]KKMCreateOFDPacket [12:03:23]OFDProtocolAddRootSTLVToBuf [12:03:23]FM_MakeSignedData [12:03:23]FM_MakeSignedData [12:03:23]SAM_PROTO_SignData [12:03:23]wFMCommunicate request_size=4 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 0D 01 02 [12:03:23]Write to MH i2c: E2 08 00 8D 1A 80 0D 01 02 00 00 00 00 20 [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:23]Read from MH i2c: E2 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 8D 1A 00 90 00 1B [12:03:23]RAPDU: 90 00 [12:03:23]wFMCommunicate OK [12:03:23]wFMCommunicate request_size=255 [12:03:23]MH_SAM_APDU [12:03: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 32 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 76 00 00 00 F4 03 04 00 8A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2A CD 01 00 35 04 06 00 E5 F8 C5 04 [12:03:23]Write to MH i2c: E2 02 01 8E 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 76 00 00 00 F4 03 04 00 8A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2A CD 01 00 35 04 06 00 E5 F8 C5 04 00 00 9A [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:23]Read from MH i2c: E2 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 8E 1A 00 90 00 1C [12:03:23]RAPDU: 90 00 [12:03:23]wFMCommunicate OK [12:03:23]wFMCommunicate request_size=7 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 0D 02 02 02 1A 0F [12:03:23]Write to MH i2c: E2 0A 00 8F 1A 80 0D 02 02 02 00 1A 0F 00 00 50 [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:23]Read from MH i2c: E2 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [12:03:23]RAPDU: 90 00 [12:03:23]wFMCommunicate OK [12:03:23]wFMCommunicate request_size=4 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 0D 03 02 [12:03:23]Write to MH i2c: E2 08 00 90 1A 80 0D 03 02 00 00 00 00 25 [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:23]Read from MH i2c: E2 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 0B 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 0B 00 90 1A 00 F1 FD 82 50 17 1F F9 58 90 00 6D [12:03:23]RAPDU: F1 FD 82 50 17 1F F9 58 90 00 [12:03:23]wFMCommunicate OK [12:03:23]SAM_PROTO_SignData done [12:03:23]FM_MakeSignedData done [12:03:23]CreateOFDProtocolMessage [12:03:23]wFMCommunicate request_size=4 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 11 00 00 [12:03:23]Write to MH i2c: E2 08 00 91 1A 80 11 00 00 00 00 00 00 25 [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:23]Read from MH i2c: E2 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 17 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: E2 17 00 91 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7C [12:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:03:23]wFMCommunicate OK [12:03:23]CreateOFDProtocolMessage done [12:03:23]OFDSenderStorePacket 118058 [12:03:23]StoreOFDPacket docnum=118058 [12:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 72 68 04 01 E4 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 76 00 00 00 F4 03 04 00 8A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2A CD 01 00 35 04 06 00 E5 F8 C5 04 1A 0F F1 FD 82 50 17 1F F9 58 [12:03:23]CheckFolder [12:03:23]dirname=/storage/ofd_packets [12:03:23]CheckFolder done [12:03:23]ProducePacketName [12:03:23]name=ofd_packets/00118058 [12:03:23]NVStorageSaveData ofd_packets/00118058 [12:03:23]File name is /storage/ofd_packets/00118058 [12:03:23]Write 298 bytes [12:03:23]NVStorageSaveData done [12:03:23]OFDSenderStorePacket done [12:03:23]KKMCreateOFDPacket done [12:03:23]NVStorageSaveData kkm_last_timestamp [12:03:23]File name is /storage/kkm_last_timestamp [12:03:23]Write 4 bytes [12:03:23]NVStorageSaveData done [12:03:23]ExternCall_PrintAddStr [12:03:23]wPrintStart [12:03:23]Write to MH i2c: 01 00 00 92 1A AC [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: 01 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: 01 07 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 FF 0F C1 [12:03:23]RasterBufferAndPrint [12:03:23]line Счет N : (1)245854 [12:03:23]line ИНН: 02508201610067 [12:03:23]line Контрольно-Кассовый Чек [12:03:23]line ПРОДАЖА [12:03:23]line ТРК (МРК, ГНК) : 13 [12:03:23]line Товар: 2710194210 [12:03:23]line ДТ-К-2 [12:03:23]line 6.570 * 76.20 [12:03:23]line = 500.63 [12:03:23]line НДС 12% НСП 1% [12:03:23]line > о реализуемом товаре [12:03:23]line ОКРУГЛЕНИЕ: -0.63 [12:03:23]line ИТОГО: 500.00 [12:03:23]line Внесено: 500.00 [12:03:23]line СДАЧА: 0.00 [12:03:23]line НСП 1% : 4.43 [12:03:23]line НДС 12% : 53.16 [12:03:23]line Наличными: 500.00 [12:03:23]line Безнал.: 0.00 [12:03:23]line Место: АЗС № 173 "Партнер Нефть" [12:03:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:03:23]line СНО: Общий режим [12:03:23]line Чек 118 30.10.2024 12:03 [12:03:23]line Смена: 545 ФФД: 1.0 [12:03:23]line ЗНМ: 0300000115 [12:03:23]line РНМ: 0000000000091782 [12:03:23]line Версия ККМ: 001 [12:03:23]line ФМ: 0000000000871767 [12:03:23]line ФД: 118058 [12:03:23]line ФПД: 252856620030479 [12:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120322&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118058&fm=252856620030479&tin=02508201610067®Number=0000000000091782&sum=50000 [12:03:23]written 0, free lines is 4095 [12:03:23]OFD Sender: Processing packet 118058 [packets to send 77, broken 76] [12:03:23]ProducePacketName [12:03:23]name=ofd_packets/00118058 [12:03:23]OFD Sender: To server: pG, [12:03:23]CommunicateWithHost lk.salyk.kg:30040 [12:03:23]ConnectInit lk.salyk.kg [12:03:23]Connected sock=10 [12:03:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 72 68 04 01 E4 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 76 00 00 00 F4 03 04 00 8A 20 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2A CD 01 00 35 04 06 00 E5 F8 C5 04 1A 0F F1 FD 82 50 17 1F F9 58 [12:03: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 36 37 4F 00 00 00 00 70 47 00 39 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 36 37 10 04 04 00 2A CD 01 00 F4 03 04 00 42 CC 21 67 B6 04 01 00 00 E9 42 22 26 A3 C1 C3 0B [12:03:24]CommunicateWithHost err = 0 [12:03:24]CheckOFDResponse [12:03:24]1017 (14) - 77093643461234 [12:03:24]1041 (16) - 0000000000871767 [12:03:24]1040 (4) - 118058 [12:03:24]1012 (4) - 30.10.2024 06:03 [12:03:24]1206 (1) - 0 [12:03:24]OFD Sender: Remove packet 118058 [12:03:24]ProducePacketName [12:03:24]name=ofd_packets/00118058 [12:03:24]NVStorageDeleteData [12:03:24]Write to MH i2c: 01 00 00 BC 1A D6 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: 01 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: 01 07 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: 01 07 00 BC 1A 00 00 00 00 00 B3 0C 9C [12:03:24]RasterBufferAndPrint [12:03:24]line [12:03:24]line [12:03:24]line [12:03:24]line [12:03:24]line [12:03:24]written 0, free lines is 3255 [12:03:24]MH_Cut [12:03:24]Write to MH i2c: D1 01 00 C3 1A 01 AF [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: D1 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: D1 01 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: D1 01 00 C3 1A 00 AE [12:03:24]Write to MH i2c: 01 00 00 C4 1A DE [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]OFD Sender: No OFD packet to send [12:03:25]*** Cut start [12:03:25]*** Purtial cut [12:03:25]*** Stage 1: CUTSNS_PIN = 1 [12:03:25]Read from MH i2c: 01 [12:03:25]MH_I2C_Read... [12:03:25]*** Stop cut motor [12:03:25]*** Cut end [12:03:25]Read from MH i2c: 01 07 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: 01 07 00 C4 1A 00 00 00 00 00 FF 0F F3 [12:03:25]process_action close_receipt done [12:03:25]requested_data is exist [12:03:25]produce_requested_data [12:03:25]requested_item fm.sn is exist - process it [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 11 00 00 [12:03:25]Write to MH i2c: E2 08 00 C5 1A 80 11 00 00 00 00 00 00 59 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 17 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 17 00 C5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B0 [12:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:03:25]wFMCommunicate OK [12:03:25]requested_item fd.num is exist - process it [12:03:25]SAM_PROTO_GetFieldsCounters [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 13 00 00 [12:03:25]Write to MH i2c: E2 08 00 C6 1A 80 13 00 00 00 00 00 00 5C [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 62 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 62 00 C6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:25]wFMCommunicate OK [12:03:25]SAM_PROTO_GetFieldsCounters done [12:03:25]requested_item shift.num is exist - process it [12:03:25]requested_item shift.opened is exist - process it [12:03:25]req_shift_opened [12:03:25]FM_GetShiftState [12:03:25]SAM_PROTO_GetShiftState [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 13 01 00 [12:03:25]Write to MH i2c: E2 08 00 C7 1A 80 13 01 00 00 00 00 00 5E [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 0E 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 0E 00 C7 1A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 36 [12:03:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:03:25]wFMCommunicate OK [12:03:25]SAM_PROTO_GetShiftState done [12:03:25]FM_GetShiftState done [12:03:25]req_shift_opened done [12:03:25]requested_item shift.open_date is exist - process it [12:03:25]req_shift_open_date [12:03:25]req_shift_open_date done [12:03:25]produce_requested_data done [12:03:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118058,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:03:25]process_action_free close_receipt [12:03:25]json_value_free [12:03:25]json_value_free done [12:03:25]process_json_proto returns [12:03:25]Send response to host [12:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118058,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:03:25]free response buf [12:03:25]execute_script done [12:03:25]execute_script returns [12:03:25]free content buf [12:03:25]Sock 7.Close socket [12:03:25]Sock 7.Thread stoped [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:18]accept exits with 9 [12:08:18]New connection [12:08:18]New thread 3067415908 created [12:08:18]Thread 3067559268 joined [12:08:18]Waiting for new connection... [12:08:18] Sock 9.Parse request [12:08:18]Sock 9.Check first char [12:08:18]Sock 9.First char is OK [12:08:18]request: POST /json_proto HTTP/1.0 [12:08:18]Method: POST [12:08:18]URL: /json_proto [12:08:18]Method is POST - this is cgi request [12:08:18]url: /json_proto [12:08:18]query_string will be loaded in cgi processing [12:08:18]execute_cgi json_proto POST (null) [12:08:18]execute_cgi path=json_proto method=POST [12:08:18]POST find Content-Length [12:08:18]Host: 172.17.96.67:8080 [12:08:18]Content-Length: 678 [12:08:18]Content-Type: application/json [12:08:18] [12:08:18]POST finish read [12:08:18]Found Content-Length = 678 [12:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:08:18]execute_script... [12:08: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)245855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:08:18]POST & json_proto [12:08:18]process_json_proto [12:08:18]json parsed OK: [12:08:18]protocol is kg_v1.0 [12:08:18]action value=close_receipt [12:08:18]process_action close_receipt [12:08:18]cmd_close_receipt [12:08:18]MH_GetDate [12:08:18]Write to MH i2c: F0 00 00 C8 1A D1 [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: F0 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: F0 09 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: F0 09 00 C8 1A 00 B3 21 22 67 47 6C 1F 67 70 [12:08:18]GetLastDocTimeStamp 1730289802 [12:08:18]current date 1730290099 [12:08:18]FM_GetShiftState [12:08:18]SAM_PROTO_GetShiftState [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 13 01 00 [12:08:18]Write to MH i2c: E2 08 00 C9 1A 80 13 01 00 00 00 00 00 60 [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 0E 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 0E 00 C9 1A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 38 [12:08:18]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:08:18]wFMCommunicate OK [12:08:18]SAM_PROTO_GetShiftState done [12:08:18]FM_GetShiftState done [12:08:18]opened in 1730246605 [12:08:18]opened+sec_in_day 1730333005 [12:08:18]quantity*price = 70044 [12:08:18]sum+1 = 70045 [12:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 119 30.10.2024 12:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118059 ФПД: 227299039016886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120819&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118059&fm=227299039016886&tin=02508201610067®Number=0000000000091782&sum=70000 [12:08:19]StoreToDocumentArchive [12:08:19]shift 545 fd 118059 [12:08:19]save to /storage/0545/doc_00118059 [12:08:19]save last doc name /storage/0545/doc_00118059 to /storage/kkm_last_doc_name [12:08:19]save OK [12:08:19]Clear old archive folders... [12:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:19]tlvbuf is 006F5090 [12:08:19]SAM_PROTO_ClearQueue [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 09 00 00 [12:08:19]Write to MH i2c: E2 08 00 D6 1A 80 09 00 00 00 00 00 00 62 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 D6 1A 00 90 00 64 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]SAM_PROTO_ClearQueue done [12:08:19]KKMCreateOFDPacket [12:08:19]OFDProtocolAddRootSTLVToBuf [12:08:19]FM_MakeSignedData [12:08:19]FM_MakeSignedData [12:08:19]SAM_PROTO_SignData [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 01 02 [12:08:19]Write to MH i2c: E2 08 00 D7 1A 80 0D 01 02 00 00 00 00 6A [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 D7 1A 00 90 00 65 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]wFMCommunicate request_size=255 [12:08:19]MH_SAM_APDU [12:08: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 32 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 77 00 00 00 F4 03 04 00 B3 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2B CD 01 00 35 04 06 00 CE [12:08:19]Write to MH i2c: E2 02 01 D8 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 77 00 00 00 F4 03 04 00 B3 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2B CD 01 00 35 04 06 00 CE 00 00 CA [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:20]Read from MH i2c: E2 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 03 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 03 00 D8 1A 00 90 00 66 [12:08:20]RAPDU: 90 00 [12:08:20]wFMCommunicate OK [12:08:20]wFMCommunicate request_size=10 [12:08:20]MH_SAM_APDU [12:08:20]CAPDU: 80 0D 02 02 05 BA 2E 7A 77 B6 [12:08:20]Write to MH i2c: E2 0D 00 D9 1A 80 0D 02 02 05 00 BA 2E 7A 77 B6 00 00 06 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]OFD Sender: No OFD packet to send [12:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:20]Read from MH i2c: E2 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 03 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 03 00 D9 1A 00 90 00 67 [12:08:20]RAPDU: 90 00 [12:08:20]wFMCommunicate OK [12:08:20]wFMCommunicate request_size=4 [12:08:20]MH_SAM_APDU [12:08:20]CAPDU: 80 0D 03 02 [12:08:20]Write to MH i2c: E2 08 00 DA 1A 80 0D 03 02 00 00 00 00 6F [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:20]Read from MH i2c: E2 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 0B 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 0B 00 DA 1A 00 BB EE BE 91 7D AE 7C 92 90 00 A1 [12:08:20]RAPDU: BB EE BE 91 7D AE 7C 92 90 00 [12:08:20]wFMCommunicate OK [12:08:20]SAM_PROTO_SignData done [12:08:20]FM_MakeSignedData done [12:08:20]CreateOFDProtocolMessage [12:08:20]wFMCommunicate request_size=4 [12:08:20]MH_SAM_APDU [12:08:20]CAPDU: 80 11 00 00 [12:08:20]Write to MH i2c: E2 08 00 DB 1A 80 11 00 00 00 00 00 00 6F [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:20]Read from MH i2c: E2 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 17 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 17 00 DB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C6 [12:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:08:20]wFMCommunicate OK [12:08:20]CreateOFDProtocolMessage done [12:08:20]OFDSenderStorePacket 118059 [12:08:20]StoreOFDPacket docnum=118059 [12:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 20 44 07 01 D1 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 32 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 77 00 00 00 F4 03 04 00 B3 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2B CD 01 00 35 04 06 00 CE BA 2E 7A 77 B6 BB EE BE 91 7D AE 7C 92 [12:08:20]CheckFolder [12:08:20]dirname=/storage/ofd_packets [12:08:20]CheckFolder done [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00118059 [12:08:20]NVStorageSaveData ofd_packets/00118059 [12:08:20]File name is /storage/ofd_packets/00118059 [12:08:20]Write 301 bytes [12:08:20]NVStorageSaveData done [12:08:20]OFDSenderStorePacket done [12:08:20]KKMCreateOFDPacket done [12:08:20]NVStorageSaveData kkm_last_timestamp [12:08:20]File name is /storage/kkm_last_timestamp [12:08:20]Write 4 bytes [12:08:20]NVStorageSaveData done [12:08:20]ExternCall_PrintAddStr [12:08:20]wPrintStart [12:08:20]Write to MH i2c: 01 00 00 DC 1A F6 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 FF 0F 0B [12:08:20]RasterBufferAndPrint [12:08:20]line Счет N : (1)245855 [12:08:20]line ИНН: 02508201610067 [12:08:20]line Контрольно-Кассовый Чек [12:08:20]line ПРОДАЖА [12:08:20]line ТРК (МРК, ГНК) : 11 [12:08:20]line Товар: 2710124130 [12:08:20]line Аи-92-К-2 [12:08:20]line 10.470 * 66.90 [12:08:20]line = 700.44 [12:08:20]line НДС 12% НСП 1% [12:08:20]line > о реализуемом товаре [12:08:20]line ОКРУГЛЕНИЕ: -0.44 [12:08:20]line ИТОГО: 700.00 [12:08:20]line Внесено: 700.00 [12:08:20]line СДАЧА: 0.00 [12:08:20]line НСП 1% : 6.20 [12:08:20]line НДС 12% : 74.38 [12:08:20]line Наличными: 700.00 [12:08:20]line Безнал.: 0.00 [12:08:20]line Место: АЗС № 173 "Партнер Нефть" [12:08:20]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:08:20]line СНО: Общий режим [12:08:20]line Чек 119 30.10.2024 12:08 [12:08:20]line Смена: 545 ФФД: 1.0 [12:08:20]line ЗНМ: 0300000115 [12:08:20]line РНМ: 0000000000091782 [12:08:20]line Версия ККМ: 001 [12:08:20]line ФМ: 0000000000871767 [12:08:20]line ФД: 118059 [12:08:20]line ФПД: 227299039016886 [12:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120819&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118059&fm=227299039016886&tin=02508201610067®Number=0000000000091782&sum=70000 [12:08:20]OFD Sender: Processing packet 118059 [packets to send 77, broken 76] [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00118059 [12:08:20]OFD Sender: To server: pG, [12:08:20]CommunicateWithHost lk.salyk.kg:30040 [12:08:20]ConnectInit lk.salyk.kg [12:08:20]written 0, free lines is 4095 [12:08:20]Connected sock=10 [12:08: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 36 37 0F 01 00 00 20 44 07 01 D1 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 32 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 77 00 00 00 F4 03 04 00 B3 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2B CD 01 00 35 04 06 00 CE BA 2E 7A 77 B6 BB EE BE 91 7D AE 7C 92 [12:08: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 36 37 4F 00 00 00 6F E6 47 00 38 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2B CD 01 00 F4 03 04 00 6A CD 21 67 B6 04 01 00 00 24 C9 39 B2 89 A9 0F 52 [12:08:20]CommunicateWithHost err = 0 [12:08:20]CheckOFDResponse [12:08:20]1017 (14) - 77093643461234 [12:08:20]1041 (16) - 0000000000871767 [12:08:20]1040 (4) - 118059 [12:08:20]1012 (4) - 30.10.2024 06:08 [12:08:20]1206 (1) - 0 [12:08:20]OFD Sender: Remove packet 118059 [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00118059 [12:08:20]NVStorageDeleteData [12:08:20]Write to MH i2c: 01 00 00 06 1B 21 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 06 1B 00 00 00 00 00 AD 0C E1 [12:08:20]RasterBufferAndPrint [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]written 0, free lines is 3249 [12:08:20]MH_Cut [12:08:20]Write to MH i2c: D1 01 00 0D 1B 01 FA [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 0D 1B 00 F9 [12:08:20]Write to MH i2c: 01 00 00 0E 1B 29 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:21]OFD Sender: No OFD packet to send [12:08:21]*** Cut start [12:08:21]*** Purtial cut [12:08:21]*** Stage 1: CUTSNS_PIN = 1 [12:08:22]Read from MH i2c: 01 [12:08:22]MH_I2C_Read... [12:08:22]*** Stop cut motor [12:08:22]*** Cut end [12:08:22]Read from MH i2c: 01 07 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: 01 07 00 0E 1B 00 00 00 00 00 FF 0F 3E [12:08:22]process_action close_receipt done [12:08:22]requested_data is exist [12:08:22]produce_requested_data [12:08:22]requested_item fm.sn is exist - process it [12:08:22]wFMCommunicate request_size=4 [12:08:22]MH_SAM_APDU [12:08:22]CAPDU: 80 11 00 00 [12:08:22]Write to MH i2c: E2 08 00 0F 1B 80 11 00 00 00 00 00 00 A4 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 [12:08:22]MH_I2C_Read... [12:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:22]Read from MH i2c: E2 17 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 17 00 0F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FB [12:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:08:22]wFMCommunicate OK [12:08:22]requested_item fd.num is exist - process it [12:08:22]SAM_PROTO_GetFieldsCounters [12:08:22]wFMCommunicate request_size=4 [12:08:22]MH_SAM_APDU [12:08:22]CAPDU: 80 13 00 00 [12:08:22]Write to MH i2c: E2 08 00 10 1B 80 13 00 00 00 00 00 00 A7 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:22]Read from MH i2c: E2 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 62 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 62 00 10 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:22]wFMCommunicate OK [12:08:22]SAM_PROTO_GetFieldsCounters done [12:08:22]requested_item shift.num is exist - process it [12:08:22]requested_item shift.opened is exist - process it [12:08:22]req_shift_opened [12:08:22]FM_GetShiftState [12:08:22]SAM_PROTO_GetShiftState [12:08:22]wFMCommunicate request_size=4 [12:08:22]MH_SAM_APDU [12:08:22]CAPDU: 80 13 01 00 [12:08:22]Write to MH i2c: E2 08 00 11 1B 80 13 01 00 00 00 00 00 A9 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:22]Read from MH i2c: E2 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 0E 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 0E 00 11 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 81 [12:08:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:08:22]wFMCommunicate OK [12:08:22]SAM_PROTO_GetShiftState done [12:08:22]FM_GetShiftState done [12:08:22]req_shift_opened done [12:08:22]requested_item shift.open_date is exist - process it [12:08:22]req_shift_open_date [12:08:22]req_shift_open_date done [12:08:22]produce_requested_data done [12:08:22]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118059,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:08:22]process_action_free close_receipt [12:08:22]json_value_free [12:08:22]json_value_free done [12:08:22]process_json_proto returns [12:08:22]Send response to host [12:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118059,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:08:22]free response buf [12:08:22]execute_script done [12:08:22]execute_script returns [12:08:22]free content buf [12:08:22]Sock 9.Close socket [12:08:22]Sock 9.Thread stoped [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:18]accept exits with 7 [12:09:18]New connection [12:09:18]New thread 3067559268 created [12:09:18]Thread 3067415908 joined [12:09:18]Waiting for new connection... [12:09:18] Sock 7.Parse request [12:09:18]Sock 7.Check first char [12:09:18]Sock 7.First char is OK [12:09:18]request: POST /json_proto HTTP/1.0 [12:09:18]Method: POST [12:09:18]URL: /json_proto [12:09:18]Method is POST - this is cgi request [12:09:18]url: /json_proto [12:09:18]query_string will be loaded in cgi processing [12:09:18]execute_cgi json_proto POST (null) [12:09:18]execute_cgi path=json_proto method=POST [12:09:18]POST find Content-Length [12:09:18]Host: 172.17.96.67:8080 [12:09:18]Content-Length: 766 [12:09:18]Content-Type: application/json [12:09:18] [12:09:18]POST finish read [12:09:18]Found Content-Length = 766 [12:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:09:18]execute_script... [12:09: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)245856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:09:18]POST & json_proto [12:09:18]process_json_proto [12:09:18]json parsed OK: [12:09:18]protocol is kg_v1.0 [12:09:18]action value=close_receipt [12:09:18]process_action close_receipt [12:09:18]cmd_close_receipt [12:09:18]MH_GetDate [12:09:18]Write to MH i2c: F0 00 00 12 1B 1C [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: F0 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: F0 09 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: F0 09 00 12 1B 00 EF 21 22 67 47 6C 1F 67 F7 [12:09:18]GetLastDocTimeStamp 1730290099 [12:09:18]current date 1730290159 [12:09:18]FM_GetShiftState [12:09:18]SAM_PROTO_GetShiftState [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 13 01 00 [12:09:18]Write to MH i2c: E2 08 00 13 1B 80 13 01 00 00 00 00 00 AB [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 0E 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 0E 00 13 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 83 [12:09:18]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:09:18]wFMCommunicate OK [12:09:18]SAM_PROTO_GetShiftState done [12:09:18]FM_GetShiftState done [12:09:18]opened in 1730246605 [12:09:18]opened+sec_in_day 1730333005 [12:09:18]quantity*price = 50041 [12:09:18]sum+1 = 50042 [12:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 120 30.10.2024 12:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118060 ФПД: 90648783482363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120919&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118060&fm=90648783482363&tin=02508201610067®Number=0000000000091782&sum=50041 [12:09:19]StoreToDocumentArchive [12:09:19]shift 545 fd 118060 [12:09:19]save to /storage/0545/doc_00118060 [12:09:19]save last doc name /storage/0545/doc_00118060 to /storage/kkm_last_doc_name [12:09:19]save OK [12:09:19]Clear old archive folders... [12:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:19]tlvbuf is B6F3C140 [12:09:19]SAM_PROTO_ClearQueue [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 09 00 00 [12:09:19]Write to MH i2c: E2 08 00 20 1B 80 09 00 00 00 00 00 00 AD [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 20 1B 00 90 00 AF [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]SAM_PROTO_ClearQueue done [12:09:19]KKMCreateOFDPacket [12:09:19]OFDProtocolAddRootSTLVToBuf [12:09:19]FM_MakeSignedData [12:09:19]FM_MakeSignedData [12:09:19]SAM_PROTO_SignData [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 0D 01 02 [12:09:19]Write to MH i2c: E2 08 00 21 1B 80 0D 01 02 00 00 00 00 B5 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 21 1B 00 90 00 B0 [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]wFMCommunicate request_size=255 [12:09:19]MH_SAM_APDU [12:09: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 32 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 78 00 00 00 F4 03 04 00 EF 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2C CD 01 00 35 04 06 00 52 [12:09:19]Write to MH i2c: E2 02 01 22 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 EF 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2C CD 01 00 35 04 06 00 52 00 00 19 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 22 1B 00 90 00 B1 [12:09:20]RAPDU: 90 00 [12:09:20]wFMCommunicate OK [12:09:20]wFMCommunicate request_size=10 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 0D 02 02 05 71 D0 89 ED FB [12:09:20]Write to MH i2c: E2 0D 00 23 1B 80 0D 02 02 05 00 71 D0 89 ED FB 00 00 74 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 23 1B 00 90 00 B2 [12:09:20]RAPDU: 90 00 [12:09:20]wFMCommunicate OK [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 0D 03 02 [12:09:20]Write to MH i2c: E2 08 00 24 1B 80 0D 03 02 00 00 00 00 BA [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 0B 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 0B 00 24 1B 00 FD 01 29 B3 39 8C 65 9D 90 00 5C [12:09:20]RAPDU: FD 01 29 B3 39 8C 65 9D 90 00 [12:09:20]wFMCommunicate OK [12:09:20]SAM_PROTO_SignData done [12:09:20]FM_MakeSignedData done [12:09:20]CreateOFDProtocolMessage [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 11 00 00 [12:09:20]Write to MH i2c: E2 08 00 25 1B 80 11 00 00 00 00 00 00 BA [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 17 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 17 00 25 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 11 [12:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:09:20]wFMCommunicate OK [12:09:20]CreateOFDProtocolMessage done [12:09:20]OFDSenderStorePacket 118060 [12:09:20]StoreOFDPacket docnum=118060 [12:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 60 C4 07 01 DD F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 EF 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2C CD 01 00 35 04 06 00 52 71 D0 89 ED FB FD 01 29 B3 39 8C 65 9D [12:09:20]CheckFolder [12:09:20]dirname=/storage/ofd_packets [12:09:20]CheckFolder done [12:09:20]ProducePacketName [12:09:20]name=ofd_packets/00118060 [12:09:20]NVStorageSaveData ofd_packets/00118060 [12:09:20]File name is /storage/ofd_packets/00118060 [12:09:20]Write 301 bytes [12:09:20]NVStorageSaveData done [12:09:20]OFDSenderStorePacket done [12:09:20]KKMCreateOFDPacket done [12:09:20]NVStorageSaveData kkm_last_timestamp [12:09:20]File name is /storage/kkm_last_timestamp [12:09:20]Write 4 bytes [12:09:20]NVStorageSaveData done [12:09:20]ExternCall_PrintAddStr [12:09:20]wPrintStart [12:09:20]Write to MH i2c: 01 00 00 26 1B 41 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 FF 0F 56 [12:09:20]RasterBufferAndPrint [12:09:20]line Счет N : (1)245856 [12:09:20]line ИНН: 02508201610067 [12:09:20]line Контрольно-Кассовый Чек [12:09:20]line ПРОДАЖА [12:09:20]line ТРК (МРК, ГНК) : 21 [12:09:20]line Товар: 2710124130 [12:09:20]line Аи-92-К-2 [12:09:20]line 7.480 * 66.90 [12:09:20]line = 500.41 [12:09:20]line НДС 12% НСП 1% [12:09:20]line > о реализуемом товаре [12:09:20]line ИТОГО: 500.41 [12:09:20]line НСП 1% : 4.43 [12:09:20]line НДС 12% : 53.14 [12:09:20]line Наличными: 0.00 [12:09:20]line Безнал.: 500.41 [12:09:20]line Место: АЗС № 173 "Партнер Нефть" [12:09:20]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:09:20]line СНО: Общий режим [12:09:20]line Чек 120 30.10.2024 12:09 [12:09:20]line Смена: 545 ФФД: 1.0 [12:09:20]line ЗНМ: 0300000115 [12:09:20]line РНМ: 0000000000091782 [12:09:20]line Версия ККМ: 001 [12:09:20]line Платежная система: Mbank [12:09:20]line ФМ: 0000000000871767 [12:09:20]line ФД: 118060 [12:09:20]line ФПД: 90648783482363 [12:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120919&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118060&fm=90648783482363&tin=02508201610067®Number=0000000000091782&sum=50041 [12:09:20]written 0, free lines is 4095 [12:09:20]OFD Sender: Processing packet 118060 [packets to send 77, broken 76] [12:09:20]ProducePacketName [12:09:20]name=ofd_packets/00118060 [12:09:20]OFD Sender: To server: pG, [12:09:20]CommunicateWithHost lk.salyk.kg:30040 [12:09:20]ConnectInit lk.salyk.kg [12:09:20]Write to MH i2c: 01 00 00 4E 1B 69 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 4E 1B 00 00 00 00 00 D8 0C 54 [12:09:20]RasterBufferAndPrint [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]written 0, free lines is 3293 [12:09:20]MH_Cut [12:09:20]Write to MH i2c: D1 01 00 55 1B 01 42 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Connected sock=10 [12:09: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 36 37 0F 01 00 00 60 C4 07 01 DD F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 EF 21 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2C CD 01 00 35 04 06 00 52 71 D0 89 ED FB FD 01 29 B3 39 8C 65 9D [12:09:20]Read from MH i2c: D1 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 01 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 01 00 55 1B 00 41 [12:09:20]Write to MH i2c: 01 00 00 56 1B 71 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09: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 36 37 4F 00 00 00 84 C4 47 00 9C 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 36 37 10 04 04 00 2C CD 01 00 F4 03 04 00 A7 CD 21 67 B6 04 01 00 00 B1 4C 89 A0 26 C2 71 3F [12:09:20]CommunicateWithHost err = 0 [12:09:20]CheckOFDResponse [12:09:20]1017 (14) - 77093643461234 [12:09:20]1041 (16) - 0000000000871767 [12:09:20]1040 (4) - 118060 [12:09:20]1012 (4) - 30.10.2024 06:09 [12:09:20]1206 (1) - 0 [12:09:20]OFD Sender: Remove packet 118060 [12:09:20]ProducePacketName [12:09:20]name=ofd_packets/00118060 [12:09:20]NVStorageDeleteData [12:09:21]OFD Sender: No OFD packet to send [12:09:21]*** Cut start [12:09:21]*** Purtial cut [12:09:21]*** Stage 1: CUTSNS_PIN = 1 [12:09:21]Read from MH i2c: 01 [12:09:21]MH_I2C_Read... [12:09:21]*** Stop cut motor [12:09:21]*** Cut end [12:09:21]Read from MH i2c: 01 07 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 FF 0F 86 [12:09:21]process_action close_receipt done [12:09:21]requested_data is exist [12:09:21]produce_requested_data [12:09:21]requested_item fm.sn is exist - process it [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 11 00 00 [12:09:21]Write to MH i2c: E2 08 00 57 1B 80 11 00 00 00 00 00 00 EC [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 57 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 43 [12:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:09:21]wFMCommunicate OK [12:09:21]requested_item fd.num is exist - process it [12:09:21]SAM_PROTO_GetFieldsCounters [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 13 00 00 [12:09:21]Write to MH i2c: E2 08 00 58 1B 80 13 00 00 00 00 00 00 EF [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 62 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 62 00 58 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetFieldsCounters done [12:09:22]requested_item shift.num is exist - process it [12:09:22]requested_item shift.opened is exist - process it [12:09:22]req_shift_opened [12:09:22]FM_GetShiftState [12:09:22]SAM_PROTO_GetShiftState [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 13 01 00 [12:09:22]Write to MH i2c: E2 08 00 59 1B 80 13 01 00 00 00 00 00 F1 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 59 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C9 [12:09:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetShiftState done [12:09:22]FM_GetShiftState done [12:09:22]req_shift_opened done [12:09:22]requested_item shift.open_date is exist - process it [12:09:22]req_shift_open_date [12:09:22]req_shift_open_date done [12:09:22]produce_requested_data done [12:09:22]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118060,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:09:22]process_action_free close_receipt [12:09:22]json_value_free [12:09:22]json_value_free done [12:09:22]process_json_proto returns [12:09:22]Send response to host [12:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118060,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:09:22]free response buf [12:09:22]execute_script done [12:09:22]execute_script returns [12:09:22]free content buf [12:09:22]Sock 7.Close socket [12:09:22]Sock 7.Thread stoped [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:07]accept exits with 9 [12:10:07]New connection [12:10:07]New thread 3067415908 created [12:10:07]Thread 3067559268 joined [12:10:07]Waiting for new connection... [12:10:07] Sock 9.Parse request [12:10:07]Sock 9.Check first char [12:10:07]Sock 9.First char is OK [12:10:07]request: POST /json_proto HTTP/1.0 [12:10:07]Method: POST [12:10:07]URL: /json_proto [12:10:07]Method is POST - this is cgi request [12:10:07]url: /json_proto [12:10:07]query_string will be loaded in cgi processing [12:10:07]execute_cgi json_proto POST (null) [12:10:07]execute_cgi path=json_proto method=POST [12:10:07]POST find Content-Length [12:10:07]Host: 172.17.96.67:8080 [12:10:07]Content-Length: 677 [12:10:07]Content-Type: application/json [12:10:07] [12:10:07]POST finish read [12:10:07]Found Content-Length = 677 [12:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:07]execute_script... [12:10: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)245857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:07]POST & json_proto [12:10:07]process_json_proto [12:10:07]json parsed OK: [12:10:07]protocol is kg_v1.0 [12:10:07]action value=close_receipt [12:10:07]process_action close_receipt [12:10:07]cmd_close_receipt [12:10:07]MH_GetDate [12:10:07]Write to MH i2c: F0 00 00 5A 1B 64 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 09 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 09 00 5A 1B 00 1F 22 22 67 47 6C 1F 67 70 [12:10:07]GetLastDocTimeStamp 1730290159 [12:10:07]current date 1730290207 [12:10:07]FM_GetShiftState [12:10:07]SAM_PROTO_GetShiftState [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 13 01 00 [12:10:07]Write to MH i2c: E2 08 00 5B 1B 80 13 01 00 00 00 00 00 F3 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 5B 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CB [12:10:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:10:07]wFMCommunicate OK [12:10:07]SAM_PROTO_GetShiftState done [12:10:07]FM_GetShiftState done [12:10:07]opened in 1730246605 [12:10:07]opened+sec_in_day 1730333005 [12:10:07]quantity*price = 50041 [12:10:07]sum+1 = 50042 [12:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 121 30.10.2024 12:10 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118061 ФПД: 237544869366831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121008&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118061&fm=237544869366831&tin=02508201610067®Number=0000000000091782&sum=50000 [12:10:08]StoreToDocumentArchive [12:10:08]shift 545 fd 118061 [12:10:08]save to /storage/0545/doc_00118061 [12:10:08]save last doc name /storage/0545/doc_00118061 to /storage/kkm_last_doc_name [12:10:08]save OK [12:10:08]Clear old archive folders... [12:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:08]tlvbuf is 00627350 [12:10:08]SAM_PROTO_ClearQueue [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 09 00 00 [12:10:08]Write to MH i2c: E2 08 00 68 1B 80 09 00 00 00 00 00 00 F5 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 68 1B 00 90 00 F7 [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_ClearQueue done [12:10:08]KKMCreateOFDPacket [12:10:08]OFDProtocolAddRootSTLVToBuf [12:10:08]FM_MakeSignedData [12:10:08]FM_MakeSignedData [12:10:08]SAM_PROTO_SignData [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 01 02 [12:10:08]Write to MH i2c: E2 08 00 69 1B 80 0D 01 02 00 00 00 00 FD [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 69 1B 00 90 00 F8 [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=255 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 20 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2D CD 01 00 35 04 06 00 D8 [12:10:08]Write to MH i2c: E2 02 01 6A 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 20 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2D CD 01 00 35 04 06 00 D8 00 00 C9 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 6A 1B 00 90 00 F9 [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=10 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 05 0B B9 8E 8C 2F [12:10:08]Write to MH i2c: E2 0D 00 6B 1B 80 0D 02 02 05 00 0B B9 8E 8C 2F 00 00 17 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 6B 1B 00 90 00 FA [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 03 02 [12:10:08]Write to MH i2c: E2 08 00 6C 1B 80 0D 03 02 00 00 00 00 02 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 6C 1B 00 5F AC 64 98 A5 84 55 4B 90 00 D3 [12:10:08]RAPDU: 5F AC 64 98 A5 84 55 4B 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_SignData done [12:10:08]FM_MakeSignedData done [12:10:08]CreateOFDProtocolMessage [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 11 00 00 [12:10:08]Write to MH i2c: E2 08 00 6D 1B 80 11 00 00 00 00 00 00 02 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 6D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 59 [12:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:10:08]wFMCommunicate OK [12:10:08]CreateOFDProtocolMessage done [12:10:08]OFDSenderStorePacket 118061 [12:10:08]StoreOFDPacket docnum=118061 [12:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2B FB 07 01 84 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 20 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2D CD 01 00 35 04 06 00 D8 0B B9 8E 8C 2F 5F AC 64 98 A5 84 55 4B [12:10:08]CheckFolder [12:10:08]dirname=/storage/ofd_packets [12:10:08]CheckFolder done [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00118061 [12:10:08]NVStorageSaveData ofd_packets/00118061 [12:10:08]File name is /storage/ofd_packets/00118061 [12:10:08]Write 301 bytes [12:10:08]NVStorageSaveData done [12:10:08]OFDSenderStorePacket done [12:10:08]KKMCreateOFDPacket done [12:10:08]NVStorageSaveData kkm_last_timestamp [12:10:08]File name is /storage/kkm_last_timestamp [12:10:08]Write 4 bytes [12:10:08]NVStorageSaveData done [12:10:08]ExternCall_PrintAddStr [12:10:08]wPrintStart [12:10:08]Write to MH i2c: 01 00 00 6E 1B 89 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 6E 1B 00 00 00 00 00 FF 0F 9E [12:10:08]RasterBufferAndPrint [12:10:08]line Счет N : (1)245857 [12:10:08]line ИНН: 02508201610067 [12:10:08]line Контрольно-Кассовый Чек [12:10:08]line ПРОДАЖА [12:10:08]line ТРК (МРК, ГНК) : 11 [12:10:08]line Товар: 2710124130 [12:10:08]line Аи-92-К-2 [12:10:08]line 7.480 * 66.90 [12:10:08]line = 500.41 [12:10:08]line НДС 12% НСП 1% [12:10:08]line > о реализуемом товаре [12:10:08]line ОКРУГЛЕНИЕ: -0.41 [12:10:08]line ИТОГО: 500.00 [12:10:08]line Внесено: 500.00 [12:10:08]line СДАЧА: 0.00 [12:10:08]line НСП 1% : 4.43 [12:10:08]line НДС 12% : 53.14 [12:10:08]line Наличными: 500.00 [12:10:08]line Безнал.: 0.00 [12:10:08]line Место: АЗС № 173 "Партнер Нефть" [12:10:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:10:08]line СНО: Общий режим [12:10:08]line Чек 121 30.10.2024 12:10 [12:10:08]line Смена: 545 ФФД: 1.0 [12:10:08]line ЗНМ: 0300000115 [12:10:08]line РНМ: 0000000000091782 [12:10:08]line Версия ККМ: 001 [12:10:08]line ФМ: 0000000000871767 [12:10:08]line ФД: 118061 [12:10:08]line ФПД: 237544869366831 [12:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121008&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118061&fm=237544869366831&tin=02508201610067®Number=0000000000091782&sum=50000 [12:10:09]written 0, free lines is 4095 [12:10:09]OFD Sender: Processing packet 118061 [packets to send 77, broken 76] [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00118061 [12:10:09]OFD Sender: To server: pG, [12:10:09]CommunicateWithHost lk.salyk.kg:30040 [12:10:09]ConnectInit lk.salyk.kg [12:10:09]Connected sock=10 [12:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2B FB 07 01 84 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 20 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2D CD 01 00 35 04 06 00 D8 0B B9 8E 8C 2F 5F AC 64 98 A5 84 55 4B [12:10: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 36 37 4F 00 00 00 29 A9 47 00 5D 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2D CD 01 00 F4 03 04 00 D7 CD 21 67 B6 04 01 00 00 77 72 D3 3A 78 97 05 01 [12:10:09]CommunicateWithHost err = 0 [12:10:09]CheckOFDResponse [12:10:09]1017 (14) - 77093643461234 [12:10:09]1041 (16) - 0000000000871767 [12:10:09]1040 (4) - 118061 [12:10:09]1012 (4) - 30.10.2024 06:10 [12:10:09]1206 (1) - 0 [12:10:09]OFD Sender: Remove packet 118061 [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00118061 [12:10:09]NVStorageDeleteData [12:10:09]Write to MH i2c: 01 00 00 98 1B B3 [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 98 1B 00 00 00 00 00 B1 0C 77 [12:10:09]RasterBufferAndPrint [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]written 0, free lines is 3255 [12:10:09]MH_Cut [12:10:09]Write to MH i2c: D1 01 00 9F 1B 01 8C [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 01 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 01 00 9F 1B 00 8B [12:10:09]Write to MH i2c: 01 00 00 A0 1B BB [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:10]OFD Sender: No OFD packet to send [12:10:10]*** Cut start [12:10:10]*** Purtial cut [12:10:10]*** Stage 1: CUTSNS_PIN = 1 [12:10:10]Read from MH i2c: 01 [12:10:10]MH_I2C_Read... [12:10:10]*** Stop cut motor [12:10:10]*** Cut end [12:10:10]Read from MH i2c: 01 07 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: 01 07 00 A0 1B 00 00 00 00 00 FF 0F D0 [12:10:10]process_action close_receipt done [12:10:10]requested_data is exist [12:10:10]produce_requested_data [12:10:10]requested_item fm.sn is exist - process it [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 11 00 00 [12:10:10]Write to MH i2c: E2 08 00 A1 1B 80 11 00 00 00 00 00 00 36 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:10]Read from MH i2c: E2 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 17 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 17 00 A1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8D [12:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:10:10]wFMCommunicate OK [12:10:10]requested_item fd.num is exist - process it [12:10:10]SAM_PROTO_GetFieldsCounters [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 13 00 00 [12:10:10]Write to MH i2c: E2 08 00 A2 1B 80 13 00 00 00 00 00 00 39 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:11]Read from MH i2c: E2 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 62 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 62 00 A2 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:11]wFMCommunicate OK [12:10:11]SAM_PROTO_GetFieldsCounters done [12:10:11]requested_item shift.num is exist - process it [12:10:11]requested_item shift.opened is exist - process it [12:10:11]req_shift_opened [12:10:11]FM_GetShiftState [12:10:11]SAM_PROTO_GetShiftState [12:10:11]wFMCommunicate request_size=4 [12:10:11]MH_SAM_APDU [12:10:11]CAPDU: 80 13 01 00 [12:10:11]Write to MH i2c: E2 08 00 A3 1B 80 13 01 00 00 00 00 00 3B [12:10:11]Write i2c OK [12:10:11]MH_I2C_Read... [12:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:11]Read from MH i2c: E2 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 0E 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 0E 00 A3 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 13 [12:10:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:10:11]wFMCommunicate OK [12:10:11]SAM_PROTO_GetShiftState done [12:10:11]FM_GetShiftState done [12:10:11]req_shift_opened done [12:10:11]requested_item shift.open_date is exist - process it [12:10:11]req_shift_open_date [12:10:11]req_shift_open_date done [12:10:11]produce_requested_data done [12:10:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118061,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:10:11]process_action_free close_receipt [12:10:11]json_value_free [12:10:11]json_value_free done [12:10:11]process_json_proto returns [12:10:11]Send response to host [12:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118061,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:10:11]free response buf [12:10:11]execute_script done [12:10:11]execute_script returns [12:10:11]free content buf [12:10:11]Sock 9.Close socket [12:10:11]Sock 9.Thread stoped [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:39]accept exits with 7 [12:11:39]New connection [12:11:39]New thread 3067559268 created [12:11:39]Thread 3067415908 joined [12:11:39]Waiting for new connection... [12:11:39] Sock 7.Parse request [12:11:39]Sock 7.Check first char [12:11:39]Sock 7.First char is OK [12:11:39]request: POST /json_proto HTTP/1.0 [12:11:39]Method: POST [12:11:39]URL: /json_proto [12:11:39]Method is POST - this is cgi request [12:11:39]url: /json_proto [12:11:39]query_string will be loaded in cgi processing [12:11:39]execute_cgi json_proto POST (null) [12:11:39]execute_cgi path=json_proto method=POST [12:11:39]POST find Content-Length [12:11:39]Host: 172.17.96.67:8080 [12:11:39]Content-Length: 677 [12:11:39]Content-Type: application/json [12:11:39] [12:11:39]POST finish read [12:11:39]Found Content-Length = 677 [12:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:39]execute_script... [12:11: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)245858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:39]POST & json_proto [12:11:39]process_json_proto [12:11:39]json parsed OK: [12:11:39]protocol is kg_v1.0 [12:11:39]action value=close_receipt [12:11:39]process_action close_receipt [12:11:39]cmd_close_receipt [12:11:39]MH_GetDate [12:11:39]Write to MH i2c: F0 00 00 A4 1B AE [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: F0 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: F0 09 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: F0 09 00 A4 1B 00 7C 22 22 67 47 6C 1F 67 17 [12:11:39]GetLastDocTimeStamp 1730290208 [12:11:39]current date 1730290300 [12:11:39]FM_GetShiftState [12:11:39]SAM_PROTO_GetShiftState [12:11:39]wFMCommunicate request_size=4 [12:11:39]MH_SAM_APDU [12:11:39]CAPDU: 80 13 01 00 [12:11:39]Write to MH i2c: E2 08 00 A5 1B 80 13 01 00 00 00 00 00 3D [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 0E 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 0E 00 A5 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 15 [12:11:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:11:39]wFMCommunicate OK [12:11:39]SAM_PROTO_GetShiftState done [12:11:39]FM_GetShiftState done [12:11:39]opened in 1730246605 [12:11:39]opened+sec_in_day 1730333005 [12:11:39]quantity*price = 12042 [12:11:39]sum+1 = 12043 [12:11:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 122 30.10.2024 12:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118062 ФПД: 90290972951450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121140&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118062&fm=90290972951450&tin=02508201610067®Number=0000000000091782&sum=12000 [12:11:40]StoreToDocumentArchive [12:11:40]shift 545 fd 118062 [12:11:40]save to /storage/0545/doc_00118062 [12:11:40]save last doc name /storage/0545/doc_00118062 to /storage/kkm_last_doc_name [12:11:40]save OK [12:11:40]Clear old archive folders... [12:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:40]tlvbuf is 006F4D40 [12:11:40]SAM_PROTO_ClearQueue [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 09 00 00 [12:11:40]Write to MH i2c: E2 08 00 B2 1B 80 09 00 00 00 00 00 00 3F [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 B2 1B 00 90 00 41 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]SAM_PROTO_ClearQueue done [12:11:40]KKMCreateOFDPacket [12:11:40]OFDProtocolAddRootSTLVToBuf [12:11:40]FM_MakeSignedData [12:11:40]FM_MakeSignedData [12:11:40]SAM_PROTO_SignData [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 01 02 [12:11:40]Write to MH i2c: E2 08 00 B3 1B 80 0D 01 02 00 00 00 00 47 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 B3 1B 00 90 00 42 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=255 [12:11:40]MH_SAM_APDU [12:11: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 32 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2E CD 01 00 35 04 06 00 52 [12:11:40]Write to MH i2c: E2 02 01 B4 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2E CD 01 00 35 04 06 00 52 00 00 74 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 B4 1B 00 90 00 43 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=10 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 02 02 05 1E 81 5E 83 9A [12:11:40]Write to MH i2c: E2 0D 00 B5 1B 80 0D 02 02 05 00 1E 81 5E 83 9A 00 00 6E [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 B5 1B 00 90 00 44 [12:11:41]RAPDU: 90 00 [12:11:41]wFMCommunicate OK [12:11:41]wFMCommunicate request_size=4 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 0D 03 02 [12:11:41]Write to MH i2c: E2 08 00 B6 1B 80 0D 03 02 00 00 00 00 4C [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 0B 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 0B 00 B6 1B 00 6B 2A 7C 1C D4 CE F1 45 90 00 52 [12:11:41]RAPDU: 6B 2A 7C 1C D4 CE F1 45 90 00 [12:11:41]wFMCommunicate OK [12:11:41]SAM_PROTO_SignData done [12:11:41]FM_MakeSignedData done [12:11:41]CreateOFDProtocolMessage [12:11:41]wFMCommunicate request_size=4 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 11 00 00 [12:11:41]Write to MH i2c: E2 08 00 B7 1B 80 11 00 00 00 00 00 00 4C [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 17 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 17 00 B7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A3 [12:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:11:41]wFMCommunicate OK [12:11:41]CreateOFDProtocolMessage done [12:11:41]OFDSenderStorePacket 118062 [12:11:41]StoreOFDPacket docnum=118062 [12:11:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0B E2 07 01 DF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2E CD 01 00 35 04 06 00 52 1E 81 5E 83 9A 6B 2A 7C 1C D4 CE F1 45 [12:11:41]CheckFolder [12:11:41]dirname=/storage/ofd_packets [12:11:41]CheckFolder done [12:11:41]ProducePacketName [12:11:41]name=ofd_packets/00118062 [12:11:41]NVStorageSaveData ofd_packets/00118062 [12:11:41]File name is /storage/ofd_packets/00118062 [12:11:41]Write 301 bytes [12:11:41]NVStorageSaveData done [12:11:41]OFDSenderStorePacket done [12:11:41]KKMCreateOFDPacket done [12:11:41]NVStorageSaveData kkm_last_timestamp [12:11:41]File name is /storage/kkm_last_timestamp [12:11:41]Write 4 bytes [12:11:41]NVStorageSaveData done [12:11:41]ExternCall_PrintAddStr [12:11:41]wPrintStart [12:11:41]Write to MH i2c: 01 00 00 B8 1B D3 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 B8 1B 00 00 00 00 00 FF 0F E8 [12:11:41]RasterBufferAndPrint [12:11:41]line Счет N : (1)245858 [12:11:41]line ИНН: 02508201610067 [12:11:41]line Контрольно-Кассовый Чек [12:11:41]line ПРОДАЖА [12:11:41]line ТРК (МРК, ГНК) : 11 [12:11:41]line Товар: 2710124130 [12:11:41]line Аи-92-К-2 [12:11:41]line 1.800 * 66.90 [12:11:41]line = 120.42 [12:11:41]line НДС 12% НСП 1% [12:11:41]line > о реализуемом товаре [12:11:41]line ОКРУГЛЕНИЕ: -0.42 [12:11:41]line ИТОГО: 120.00 [12:11:41]line Внесено: 120.00 [12:11:41]line СДАЧА: 0.00 [12:11:41]line НСП 1% : 1.07 [12:11:41]line НДС 12% : 12.79 [12:11:41]line Наличными: 120.00 [12:11:41]line Безнал.: 0.00 [12:11:41]line Место: АЗС № 173 "Партнер Нефть" [12:11:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:11:41]line СНО: Общий режим [12:11:41]line Чек 122 30.10.2024 12:11 [12:11:41]line Смена: 545 ФФД: 1.0 [12:11:41]line ЗНМ: 0300000115 [12:11:41]line РНМ: 0000000000091782 [12:11:41]line Версия ККМ: 001 [12:11:41]line ФМ: 0000000000871767 [12:11:41]line ФД: 118062 [12:11:41]line ФПД: 90290972951450 [12:11:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121140&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118062&fm=90290972951450&tin=02508201610067®Number=0000000000091782&sum=12000 [12:11:41]OFD Sender: Processing packet 118062 [packets to send 77, broken 76] [12:11:41]ProducePacketName [12:11:41]name=ofd_packets/00118062 [12:11:41]OFD Sender: To server: pG, [12:11:41]CommunicateWithHost lk.salyk.kg:30040 [12:11:41]ConnectInit lk.salyk.kg [12:11:41]written 0, free lines is 4095 [12:11:41]Connected sock=10 [12:11: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 36 37 0F 01 00 00 0B E2 07 01 DF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 22 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2E CD 01 00 35 04 06 00 52 1E 81 5E 83 9A 6B 2A 7C 1C D4 CE F1 45 [12:11: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 36 37 4F 00 00 00 88 2C 47 00 E7 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2E CD 01 00 F4 03 04 00 33 CE 21 67 B6 04 01 00 00 D5 27 FA D2 31 07 EE EC [12:11:41]CommunicateWithHost err = 0 [12:11:41]CheckOFDResponse [12:11:41]1017 (14) - 77093643461234 [12:11:41]1041 (16) - 0000000000871767 [12:11:41]1040 (4) - 118062 [12:11:41]1012 (4) - 30.10.2024 06:12 [12:11:41]1206 (1) - 0 [12:11:41]OFD Sender: Remove packet 118062 [12:11:41]ProducePacketName [12:11:41]name=ofd_packets/00118062 [12:11:41]NVStorageDeleteData [12:11:41]Write to MH i2c: 01 00 00 E2 1B FD [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 E2 1B 00 00 00 00 00 BE 0C CE [12:11:41]RasterBufferAndPrint [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]written 0, free lines is 3268 [12:11:41]MH_Cut [12:11:41]Write to MH i2c: D1 01 00 E9 1B 01 D6 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 01 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 01 00 E9 1B 00 D5 [12:11:41]Write to MH i2c: 01 00 00 EA 1B 05 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:42]OFD Sender: No OFD packet to send [12:11:42]*** Cut start [12:11:42]*** Purtial cut [12:11:42]*** Stage 1: CUTSNS_PIN = 1 [12:11:43]Read from MH i2c: 01 [12:11:43]MH_I2C_Read... [12:11:43]*** Stop cut motor [12:11:43]*** Cut end [12:11:43]Read from MH i2c: 01 07 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 FF 0F 1A [12:11:43]process_action close_receipt done [12:11:43]requested_data is exist [12:11:43]produce_requested_data [12:11:43]requested_item fm.sn is exist - process it [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 11 00 00 [12:11:43]Write to MH i2c: E2 08 00 EB 1B 80 11 00 00 00 00 00 00 80 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 EB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D7 [12:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:11:43]wFMCommunicate OK [12:11:43]requested_item fd.num is exist - process it [12:11:43]SAM_PROTO_GetFieldsCounters [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 13 00 00 [12:11:43]Write to MH i2c: E2 08 00 EC 1B 80 13 00 00 00 00 00 00 83 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 62 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 62 00 EC 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [12:11: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_GetFieldsCounters done [12:11:43]requested_item shift.num is exist - process it [12:11:43]requested_item shift.opened is exist - process it [12:11:43]req_shift_opened [12:11:43]FM_GetShiftState [12:11:43]SAM_PROTO_GetShiftState [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 13 01 00 [12:11:43]Write to MH i2c: E2 08 00 ED 1B 80 13 01 00 00 00 00 00 85 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0E 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0E 00 ED 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5D [12:11:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_GetShiftState done [12:11:43]FM_GetShiftState done [12:11:43]req_shift_opened done [12:11:43]requested_item shift.open_date is exist - process it [12:11:43]req_shift_open_date [12:11:43]req_shift_open_date done [12:11:43]produce_requested_data done [12:11:43]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118062,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:11:43]process_action_free close_receipt [12:11:43]json_value_free [12:11:43]json_value_free done [12:11:43]process_json_proto returns [12:11:43]Send response to host [12:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118062,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:11:43]free response buf [12:11:43]execute_script done [12:11:43]execute_script returns [12:11:43]free content buf [12:11:43]Sock 7.Close socket [12:11:43]Sock 7.Thread stoped [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:48]accept exits with 9 [12:15:48]New connection [12:15:48]New thread 3067415908 created [12:15:48]Thread 3067559268 joined [12:15:48]Waiting for new connection... [12:15:48] Sock 9.Parse request [12:15:48]Sock 9.Check first char [12:15:48]Sock 9.First char is OK [12:15:48]request: POST /json_proto HTTP/1.0 [12:15:48]Method: POST [12:15:48]URL: /json_proto [12:15:48]Method is POST - this is cgi request [12:15:48]url: /json_proto [12:15:48]query_string will be loaded in cgi processing [12:15:48]execute_cgi json_proto POST (null) [12:15:48]execute_cgi path=json_proto method=POST [12:15:48]POST find Content-Length [12:15:48]Host: 172.17.96.67:8080 [12:15:48]Content-Length: 677 [12:15:48]Content-Type: application/json [12:15:48] [12:15:48]POST finish read [12:15:48]Found Content-Length = 677 [12:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:15:48]execute_script... [12:15: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)245860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:15:48]POST & json_proto [12:15:48]process_json_proto [12:15:48]json parsed OK: [12:15:48]protocol is kg_v1.0 [12:15:48]action value=close_receipt [12:15:48]process_action close_receipt [12:15:48]cmd_close_receipt [12:15:48]MH_GetDate [12:15:48]Write to MH i2c: F0 00 00 EE 1B F8 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: F0 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: F0 09 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: F0 09 00 EE 1B 00 75 23 22 67 47 6C 1F 67 5B [12:15:48]GetLastDocTimeStamp 1730290300 [12:15:48]current date 1730290549 [12:15:48]FM_GetShiftState [12:15:48]SAM_PROTO_GetShiftState [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 13 01 00 [12:15:48]Write to MH i2c: E2 08 00 EF 1B 80 13 01 00 00 00 00 00 87 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0E 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0E 00 EF 1B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5F [12:15:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_GetShiftState done [12:15:48]FM_GetShiftState done [12:15:48]opened in 1730246605 [12:15:48]opened+sec_in_day 1730333005 [12:15:48]quantity*price = 20003 [12:15:48]sum+1 = 20004 [12:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 123 30.10.2024 12:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118063 ФПД: 255187219219749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121549&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118063&fm=255187219219749&tin=02508201610067®Number=0000000000091782&sum=20000 [12:15:49]StoreToDocumentArchive [12:15:49]shift 545 fd 118063 [12:15:49]save to /storage/0545/doc_00118063 [12:15:49]save last doc name /storage/0545/doc_00118063 to /storage/kkm_last_doc_name [12:15:49]save OK [12:15:49]Clear old archive folders... [12:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:49]tlvbuf is B6F55310 [12:15:49]SAM_PROTO_ClearQueue [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 09 00 00 [12:15:49]Write to MH i2c: E2 08 00 FC 1B 80 09 00 00 00 00 00 00 89 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 FC 1B 00 90 00 8B [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_ClearQueue done [12:15:49]KKMCreateOFDPacket [12:15:49]OFDProtocolAddRootSTLVToBuf [12:15:49]FM_MakeSignedData [12:15:49]FM_MakeSignedData [12:15:49]SAM_PROTO_SignData [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 01 02 [12:15:49]Write to MH i2c: E2 08 00 FD 1B 80 0D 01 02 00 00 00 00 91 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 FD 1B 00 90 00 8C [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=255 [12:15:49]MH_SAM_APDU [12:15: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 32 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 7B 00 00 00 F4 03 04 00 75 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2F CD 01 00 35 04 06 00 E8 [12:15:49]Write to MH i2c: E2 02 01 FE 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 75 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2F CD 01 00 35 04 06 00 E8 00 00 89 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 FE 1B 00 90 00 8D [12:15:50]RAPDU: 90 00 [12:15:50]wFMCommunicate OK [12:15:50]wFMCommunicate request_size=10 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 0D 02 02 05 17 67 8D 85 25 [12:15:50]Write to MH i2c: E2 0D 00 FF 1B 80 0D 02 02 05 00 17 67 8D 85 25 00 00 53 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 FF 1B 00 90 00 8E [12:15:50]RAPDU: 90 00 [12:15:50]wFMCommunicate OK [12:15:50]wFMCommunicate request_size=4 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 0D 03 02 [12:15:50]Write to MH i2c: E2 08 00 00 1C 80 0D 03 02 00 00 00 00 97 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 0B 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 0B 00 00 1C 00 6E A7 1C 0A 36 2B 14 12 90 00 5A [12:15:50]RAPDU: 6E A7 1C 0A 36 2B 14 12 90 00 [12:15:50]wFMCommunicate OK [12:15:50]SAM_PROTO_SignData done [12:15:50]FM_MakeSignedData done [12:15:50]CreateOFDProtocolMessage [12:15:50]wFMCommunicate request_size=4 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 11 00 00 [12:15:50]Write to MH i2c: E2 08 00 01 1C 80 11 00 00 00 00 00 00 97 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 17 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 17 00 01 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EE [12:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:15:50]wFMCommunicate OK [12:15:50]CreateOFDProtocolMessage done [12:15:50]OFDSenderStorePacket 118063 [12:15:50]StoreOFDPacket docnum=118063 [12:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F2 36 07 01 7F 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7B 00 00 00 F4 03 04 00 75 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2F CD 01 00 35 04 06 00 E8 17 67 8D 85 25 6E A7 1C 0A 36 2B 14 12 [12:15:50]CheckFolder [12:15:50]dirname=/storage/ofd_packets [12:15:50]CheckFolder done [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00118063 [12:15:50]NVStorageSaveData ofd_packets/00118063 [12:15:50]File name is /storage/ofd_packets/00118063 [12:15:50]Write 301 bytes [12:15:50]NVStorageSaveData done [12:15:50]OFDSenderStorePacket done [12:15:50]KKMCreateOFDPacket done [12:15:50]NVStorageSaveData kkm_last_timestamp [12:15:50]File name is /storage/kkm_last_timestamp [12:15:50]Write 4 bytes [12:15:50]NVStorageSaveData done [12:15:50]ExternCall_PrintAddStr [12:15:50]wPrintStart [12:15:50]Write to MH i2c: 01 00 00 02 1C 1E [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 02 1C 00 00 00 00 00 FF 0F 33 [12:15:50]RasterBufferAndPrint [12:15:50]line Счет N : (1)245860 [12:15:50]line ИНН: 02508201610067 [12:15:50]line Контрольно-Кассовый Чек [12:15:50]line ПРОДАЖА [12:15:50]line ТРК (МРК, ГНК) : 11 [12:15:50]line Товар: 2710124130 [12:15:50]line Аи-92-К-2 [12:15:50]line 2.990 * 66.90 [12:15:50]line = 200.03 [12:15:50]line НДС 12% НСП 1% [12:15:50]line > о реализуемом товаре [12:15:50]line ОКРУГЛЕНИЕ: -0.03 [12:15:50]line ИТОГО: 200.00 [12:15:50]line Внесено: 200.00 [12:15:50]line СДАЧА: 0.00 [12:15:50]line НСП 1% : 1.77 [12:15:50]line НДС 12% : 21.24 [12:15:50]line Наличными: 200.00 [12:15:50]line Безнал.: 0.00 [12:15:50]line Место: АЗС № 173 "Партнер Нефть" [12:15:50]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:15:50]line СНО: Общий режим [12:15:50]line Чек 123 30.10.2024 12:15 [12:15:50]line Смена: 545 ФФД: 1.0 [12:15:50]line ЗНМ: 0300000115 [12:15:50]line РНМ: 0000000000091782 [12:15:50]line Версия ККМ: 001 [12:15:50]line ФМ: 0000000000871767 [12:15:50]line ФД: 118063 [12:15:50]line ФПД: 255187219219749 [12:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121549&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118063&fm=255187219219749&tin=02508201610067®Number=0000000000091782&sum=20000 [12:15:50]OFD Sender: Processing packet 118063 [packets to send 77, broken 76] [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00118063 [12:15:50]OFD Sender: To server: pG, [12:15:50]CommunicateWithHost lk.salyk.kg:30040 [12:15:50]ConnectInit lk.salyk.kg [12:15:50]written 0, free lines is 4095 [12:15:50]Connected sock=7 [12:15: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 36 37 0F 01 00 00 F2 36 07 01 7F 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7B 00 00 00 F4 03 04 00 75 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2F CD 01 00 35 04 06 00 E8 17 67 8D 85 25 6E A7 1C 0A 36 2B 14 12 [12:15: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 36 37 4F 00 00 00 17 29 47 00 33 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 2F CD 01 00 F4 03 04 00 2D CF 21 67 B6 04 01 00 00 D0 58 35 D4 FB 6D 99 55 [12:15:51]CommunicateWithHost err = 0 [12:15:51]CheckOFDResponse [12:15:51]1017 (14) - 77093643461234 [12:15:51]1041 (16) - 0000000000871767 [12:15:51]1040 (4) - 118063 [12:15:51]1012 (4) - 30.10.2024 06:16 [12:15:51]1206 (1) - 0 [12:15:51]OFD Sender: Remove packet 118063 [12:15:51]ProducePacketName [12:15:51]name=ofd_packets/00118063 [12:15:51]NVStorageDeleteData [12:15:51]Write to MH i2c: 01 00 00 2C 1C 48 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 2C 1C 00 00 00 00 00 BE 0C 19 [12:15:51]RasterBufferAndPrint [12:15:51]line [12:15:51]line [12:15:51]line [12:15:51]line [12:15:51]line [12:15:51]written 0, free lines is 3271 [12:15:51]MH_Cut [12:15:51]Write to MH i2c: D1 01 00 33 1C 01 21 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: D1 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: D1 01 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: D1 01 00 33 1C 00 20 [12:15:51]Write to MH i2c: 01 00 00 34 1C 50 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]OFD Sender: No OFD packet to send [12:15:51]*** Cut start [12:15:51]*** Purtial cut [12:15:51]*** Stage 1: CUTSNS_PIN = 1 [12:15:52]Read from MH i2c: 01 [12:15:52]MH_I2C_Read... [12:15:52]*** Stop cut motor [12:15:52]*** Cut end [12:15:52]Read from MH i2c: 01 07 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: 01 07 00 34 1C 00 00 00 00 00 FF 0F 65 [12:15:52]process_action close_receipt done [12:15:52]requested_data is exist [12:15:52]produce_requested_data [12:15:52]requested_item fm.sn is exist - process it [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 11 00 00 [12:15:52]Write to MH i2c: E2 08 00 35 1C 80 11 00 00 00 00 00 00 CB [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 17 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 17 00 35 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 22 [12:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:15:52]wFMCommunicate OK [12:15:52]requested_item fd.num is exist - process it [12:15:52]SAM_PROTO_GetFieldsCounters [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 13 00 00 [12:15:52]Write to MH i2c: E2 08 00 36 1C 80 13 00 00 00 00 00 00 CE [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 62 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 62 00 36 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [12:15: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 2F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:52]wFMCommunicate OK [12:15:52]SAM_PROTO_GetFieldsCounters done [12:15:52]requested_item shift.num is exist - process it [12:15:52]requested_item shift.opened is exist - process it [12:15:52]req_shift_opened [12:15:52]FM_GetShiftState [12:15:52]SAM_PROTO_GetShiftState [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 13 01 00 [12:15:52]Write to MH i2c: E2 08 00 37 1C 80 13 01 00 00 00 00 00 D0 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 0E 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 0E 00 37 1C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A8 [12:15:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:15:52]wFMCommunicate OK [12:15:52]SAM_PROTO_GetShiftState done [12:15:52]FM_GetShiftState done [12:15:52]req_shift_opened done [12:15:52]requested_item shift.open_date is exist - process it [12:15:52]req_shift_open_date [12:15:52]req_shift_open_date done [12:15:52]produce_requested_data done [12:15:52]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118063,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:15:52]process_action_free close_receipt [12:15:52]json_value_free [12:15:52]json_value_free done [12:15:52]process_json_proto returns [12:15:52]Send response to host [12:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118063,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:15:52]free response buf [12:15:52]execute_script done [12:15:52]execute_script returns [12:15:52]free content buf [12:15:52]Sock 9.Close socket [12:15:52]Sock 9.Thread stoped [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:45]accept exits with 10 [12:17:45]New connection [12:17:45]New thread 3067559268 created [12:17:45]Thread 3067415908 joined [12:17:45]Waiting for new connection... [12:17:45] Sock 10.Parse request [12:17:45]Sock 10.Check first char [12:17:45]Sock 10.First char is OK [12:17:45]request: POST /json_proto HTTP/1.0 [12:17:45]Method: POST [12:17:45]URL: /json_proto [12:17:45]Method is POST - this is cgi request [12:17:45]url: /json_proto [12:17:45]query_string will be loaded in cgi processing [12:17:45]execute_cgi json_proto POST (null) [12:17:45]execute_cgi path=json_proto method=POST [12:17:45]POST find Content-Length [12:17:45]Host: 172.17.96.67:8080 [12:17:45]Content-Length: 978 [12:17:45]Content-Type: application/json [12:17:45] [12:17:45]POST finish read [12:17:45]Found Content-Length = 978 [12:17:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 60.510, "sum" : 4550.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.51 \u0441\u043E\u043C", "deposit" : 4550.00, "total" : 4550.00, "payments": [ { "type": 0, "sum" : 4550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:45]execute_script... [12:17: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)245859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 60.510, "sum" : 4550.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.51 \u0441\u043E\u043C", "deposit" : 4550.00, "total" : 4550.00, "payments": [ { "type": 0, "sum" : 4550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:45]POST & json_proto [12:17:45]process_json_proto [12:17:45]json parsed OK: [12:17:45]protocol is kg_v1.0 [12:17:45]action value=close_receipt [12:17:45]process_action close_receipt [12:17:45]cmd_close_receipt [12:17:45]MH_GetDate [12:17:45]Write to MH i2c: F0 00 00 38 1C 43 [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: F0 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: F0 09 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: F0 09 00 38 1C 00 EA 23 22 67 47 6C 1F 67 1B [12:17:45]GetLastDocTimeStamp 1730290549 [12:17:45]current date 1730290666 [12:17:45]FM_GetShiftState [12:17:45]SAM_PROTO_GetShiftState [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 13 01 00 [12:17:45]Write to MH i2c: E2 08 00 39 1C 80 13 01 00 00 00 00 00 D2 [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 0E 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 0E 00 39 1C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AA [12:17:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:17:45]wFMCommunicate OK [12:17:45]SAM_PROTO_GetShiftState done [12:17:45]FM_GetShiftState done [12:17:45]opened in 1730246605 [12:17:45]opened+sec_in_day 1730333005 [12:17:45]quantity*price = 455035 [12:17:45]sum+1 = 455036 [12:17:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 4550.00 Внесено: 4550.00 СДАЧА: 0.00 НСП 1% : 40.27 НДС 12% : 483.22 Наличными: 4550.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 124 30.10.2024 12:17 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа ДТ номер 173 сэкономлено 60.51 сом ФМ: 0000000000871767 ФД: 118064 ФПД: 223249280118260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121746&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118064&fm=223249280118260&tin=02508201610067®Number=0000000000091782&sum=455000 [12:17:46]StoreToDocumentArchive [12:17:46]shift 545 fd 118064 [12:17:46]save to /storage/0545/doc_00118064 [12:17:46]save last doc name /storage/0545/doc_00118064 to /storage/kkm_last_doc_name [12:17:46]save OK [12:17:46]Clear old archive folders... [12:17:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:46]tlvbuf is 0067A390 [12:17:46]SAM_PROTO_ClearQueue [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 09 00 00 [12:17:46]Write to MH i2c: E2 08 00 46 1C 80 09 00 00 00 00 00 00 D4 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 46 1C 00 90 00 D6 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]SAM_PROTO_ClearQueue done [12:17:46]KKMCreateOFDPacket [12:17:46]OFDProtocolAddRootSTLVToBuf [12:17:46]FM_MakeSignedData [12:17:46]FM_MakeSignedData [12:17:46]SAM_PROTO_SignData [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 01 02 [12:17:46]Write to MH i2c: E2 08 00 47 1C 80 0D 01 02 00 00 00 00 DC [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 47 1C 00 90 00 D7 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=255 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5E EC 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 BC 00 00 00 00 07 04 06 00 58 F1 06 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 EA 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 30 CD 01 00 35 04 06 00 CB 0B 46 09 [12:17:46]Write to MH i2c: E2 02 01 48 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5E EC 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 BC 00 00 00 00 07 04 06 00 58 F1 06 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 EA 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 30 CD 01 00 35 04 06 00 CB 0B 46 09 00 00 B3 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]OFD Sender: No OFD packet to send [12:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 48 1C 00 90 00 D8 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=7 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 02 02 02 AD F4 [12:17:46]Write to MH i2c: E2 0A 00 49 1C 80 0D 02 02 02 00 AD F4 00 00 84 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 49 1C 00 90 00 D9 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 03 02 [12:17:46]Write to MH i2c: E2 08 00 4A 1C 80 0D 03 02 00 00 00 00 E1 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0B 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0B 00 4A 1C 00 0E 33 2F DC 09 9D 87 7C 90 00 D7 [12:17:47]RAPDU: 0E 33 2F DC 09 9D 87 7C 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_SignData done [12:17:47]FM_MakeSignedData done [12:17:47]CreateOFDProtocolMessage [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 11 00 00 [12:17:47]Write to MH i2c: E2 08 00 4B 1C 80 11 00 00 00 00 00 00 E1 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 17 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 17 00 4B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 38 [12:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:17:47]wFMCommunicate OK [12:17:47]CreateOFDProtocolMessage done [12:17:47]OFDSenderStorePacket 118064 [12:17:47]StoreOFDPacket docnum=118064 [12:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 20 E2 04 01 F5 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5E EC 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 BC 00 00 00 00 07 04 06 00 58 F1 06 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 EA 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 30 CD 01 00 35 04 06 00 CB 0B 46 09 AD F4 0E 33 2F DC 09 9D 87 7C [12:17:47]CheckFolder [12:17:47]dirname=/storage/ofd_packets [12:17:47]CheckFolder done [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00118064 [12:17:47]NVStorageSaveData ofd_packets/00118064 [12:17:47]File name is /storage/ofd_packets/00118064 [12:17:47]Write 298 bytes [12:17:47]NVStorageSaveData done [12:17:47]OFDSenderStorePacket done [12:17:47]KKMCreateOFDPacket done [12:17:47]NVStorageSaveData kkm_last_timestamp [12:17:47]File name is /storage/kkm_last_timestamp [12:17:47]Write 4 bytes [12:17:47]NVStorageSaveData done [12:17:47]ExternCall_PrintAddStr [12:17:47]wPrintStart [12:17:47]Write to MH i2c: 01 00 00 4C 1C 68 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 4C 1C 00 00 00 00 00 FF 0F 7D [12:17:47]RasterBufferAndPrint [12:17:47]line Счет N : (1)245859 [12:17:47]line ИНН: 02508201610067 [12:17:47]line Контрольно-Кассовый Чек [12:17:47]line ПРОДАЖА [12:17:47]line ТРК (МРК, ГНК) : 23 [12:17:47]line Товар: 2710194210 [12:17:47]line ДТ-К-2 [12:17:47]line 60.510 * 75.20 [12:17:47]line = 4550.35 [12:17:47]line НДС 12% НСП 1% [12:17:47]line > о реализуемом товаре [12:17:47]line ОКРУГЛЕНИЕ: -0.35 [12:17:47]line ИТОГО: 4550.00 [12:17:47]line Внесено: 4550.00 [12:17:47]line СДАЧА: 0.00 [12:17:47]line НСП 1% : 40.27 [12:17:47]line НДС 12% : 483.22 [12:17:47]line Наличными: 4550.00 [12:17:47]line Безнал.: 0.00 [12:17:47]line Место: АЗС № 173 "Партнер Нефть" [12:17:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:17:47]line СНО: Общий режим [12:17:47]line Чек 124 30.10.2024 12:17 [12:17:47]line Смена: 545 ФФД: 1.0 [12:17:47]line ЗНМ: 0300000115 [12:17:47]line РНМ: 0000000000091782 [12:17:47]line Версия ККМ: 001 [12:17:47]line [12:17:47]line Дисконтная программа [12:17:47]line ДТ [12:17:47]line номер 173 [12:17:47]line сэкономлено 60.51 сом [12:17:47]line ФМ: 0000000000871767 [12:17:47]line ФД: 118064 [12:17:47]line ФПД: 223249280118260 [12:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121746&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118064&fm=223249280118260&tin=02508201610067®Number=0000000000091782&sum=455000 [12:17:47]OFD Sender: Processing packet 118064 [packets to send 77, broken 76] [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00118064 [12:17:47]OFD Sender: To server: pG, [12:17:47]CommunicateWithHost lk.salyk.kg:30040 [12:17:47]ConnectInit lk.salyk.kg [12:17:47]written 0, free lines is 4095 [12:17:47]Connected sock=9 [12:17: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 36 37 0C 01 00 00 20 E2 04 01 F5 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5E EC 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 BC 00 00 00 00 07 04 06 00 58 F1 06 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 EA 23 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 30 CD 01 00 35 04 06 00 CB 0B 46 09 AD F4 0E 33 2F DC 09 9D 87 7C [12:17: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 36 37 4F 00 00 00 2D B5 47 00 CE 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 30 CD 01 00 F4 03 04 00 A1 CF 21 67 B6 04 01 00 00 59 23 E2 C5 F8 47 57 4A [12:17:47]CommunicateWithHost err = 0 [12:17:47]CheckOFDResponse [12:17:47]1017 (14) - 77093643461234 [12:17:47]1041 (16) - 0000000000871767 [12:17:47]1040 (4) - 118064 [12:17:47]1012 (4) - 30.10.2024 06:18 [12:17:47]1206 (1) - 0 [12:17:47]OFD Sender: Remove packet 118064 [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00118064 [12:17:47]NVStorageDeleteData [12:17:47]Write to MH i2c: 01 00 00 7B 1C 97 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 7B 1C 00 00 00 00 00 5F 0C 09 [12:17:47]RasterBufferAndPrint [12:17:47]line [12:17:47]line [12:17:47]line [12:17:47]line [12:17:47]line [12:17:47]written 0, free lines is 3174 [12:17:47]MH_Cut [12:17:47]Write to MH i2c: D1 01 00 82 1C 01 70 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: D1 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: D1 01 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: D1 01 00 82 1C 00 6F [12:17:47]Write to MH i2c: 01 00 00 83 1C 9F [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:48]OFD Sender: No OFD packet to send [12:17:48]*** Cut start [12:17:48]*** Purtial cut [12:17:48]*** Stage 1: CUTSNS_PIN = 1 [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]*** Stop cut motor [12:17:49]*** Cut end [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 83 1C 00 00 00 00 00 FF 0F B4 [12:17:49]process_action close_receipt done [12:17:49]requested_data is exist [12:17:49]produce_requested_data [12:17:49]requested_item fm.sn is exist - process it [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 11 00 00 [12:17:49]Write to MH i2c: E2 08 00 84 1C 80 11 00 00 00 00 00 00 1A [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 84 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 71 [12:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:17:49]wFMCommunicate OK [12:17:49]requested_item fd.num is exist - process it [12:17:49]SAM_PROTO_GetFieldsCounters [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 13 00 00 [12:17:49]Write to MH i2c: E2 08 00 85 1C 80 13 00 00 00 00 00 00 1D [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 62 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 62 00 85 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 30 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [12:17: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 30 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_GetFieldsCounters done [12:17:49]requested_item shift.num is exist - process it [12:17:49]requested_item shift.opened is exist - process it [12:17:49]req_shift_opened [12:17:49]FM_GetShiftState [12:17:49]SAM_PROTO_GetShiftState [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 13 01 00 [12:17:49]Write to MH i2c: E2 08 00 86 1C 80 13 01 00 00 00 00 00 1F [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 86 1C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F7 [12:17:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_GetShiftState done [12:17:49]FM_GetShiftState done [12:17:49]req_shift_opened done [12:17:49]requested_item shift.open_date is exist - process it [12:17:49]req_shift_open_date [12:17:49]req_shift_open_date done [12:17:49]produce_requested_data done [12:17:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118064,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:17:49]process_action_free close_receipt [12:17:49]json_value_free [12:17:49]json_value_free done [12:17:49]process_json_proto returns [12:17:49]Send response to host [12:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118064,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:17:49]free response buf [12:17:49]execute_script done [12:17:49]execute_script returns [12:17:49]free content buf [12:17:49]Sock 10.Close socket [12:17:49]Sock 10.Thread stoped [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:42]accept exits with 7 [12:18:42]New connection [12:18:42]New thread 3067415908 created [12:18:42]Thread 3067559268 joined [12:18:42]Waiting for new connection... [12:18:42] Sock 7.Parse request [12:18:42]Sock 7.Check first char [12:18:42]Sock 7.First char is OK [12:18:42]request: POST /json_proto HTTP/1.0 [12:18:42]Method: POST [12:18:42]URL: /json_proto [12:18:42]Method is POST - this is cgi request [12:18:42]url: /json_proto [12:18:42]query_string will be loaded in cgi processing [12:18:42]execute_cgi json_proto POST (null) [12:18:42]execute_cgi path=json_proto method=POST [12:18:42]POST find Content-Length [12:18:42]Host: 172.17.96.67:8080 [12:18:42]Content-Length: 674 [12:18:42]Content-Type: application/json [12:18:42] [12:18:42]POST finish read [12:18:42]Found Content-Length = 674 [12:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:42]execute_script... [12:18: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)245861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:42]POST & json_proto [12:18:42]process_json_proto [12:18:42]json parsed OK: [12:18:42]protocol is kg_v1.0 [12:18:42]action value=close_receipt [12:18:42]process_action close_receipt [12:18:42]cmd_close_receipt [12:18:42]MH_GetDate [12:18:42]Write to MH i2c: F0 00 00 87 1C 92 [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: F0 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: F0 09 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: F0 09 00 87 1C 00 23 24 22 67 47 6C 1F 67 A4 [12:18:42]GetLastDocTimeStamp 1730290666 [12:18:42]current date 1730290723 [12:18:42]FM_GetShiftState [12:18:42]SAM_PROTO_GetShiftState [12:18:42]wFMCommunicate request_size=4 [12:18:42]MH_SAM_APDU [12:18:42]CAPDU: 80 13 01 00 [12:18:42]Write to MH i2c: E2 08 00 88 1C 80 13 01 00 00 00 00 00 21 [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:42]Read from MH i2c: E2 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 0E 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 0E 00 88 1C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F9 [12:18:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:18:42]wFMCommunicate OK [12:18:42]SAM_PROTO_GetShiftState done [12:18:42]FM_GetShiftState done [12:18:42]opened in 1730246605 [12:18:42]opened+sec_in_day 1730333005 [12:18:42]quantity*price = 38023 [12:18:42]sum+1 = 38025 [12:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.36 НДС 12% : 40.38 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 125 30.10.2024 12:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118065 ФПД: 167239667695460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121843&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118065&fm=167239667695460&tin=02508201610067®Number=0000000000091782&sum=38000 [12:18:43]StoreToDocumentArchive [12:18:43]shift 545 fd 118065 [12:18:43]save to /storage/0545/doc_00118065 [12:18:43]save last doc name /storage/0545/doc_00118065 to /storage/kkm_last_doc_name [12:18:43]save OK [12:18:43]Clear old archive folders... [12:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:18:43]tlvbuf is B6FEC4F0 [12:18:43]SAM_PROTO_ClearQueue [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 09 00 00 [12:18:43]Write to MH i2c: E2 08 00 95 1C 80 09 00 00 00 00 00 00 23 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 95 1C 00 90 00 25 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]SAM_PROTO_ClearQueue done [12:18:43]KKMCreateOFDPacket [12:18:43]OFDProtocolAddRootSTLVToBuf [12:18:43]FM_MakeSignedData [12:18:43]FM_MakeSignedData [12:18:43]SAM_PROTO_SignData [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 01 02 [12:18:43]Write to MH i2c: E2 08 00 96 1C 80 0D 01 02 00 00 00 00 2B [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 96 1C 00 90 00 26 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]wFMCommunicate request_size=255 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 31 CD 01 00 35 04 06 00 98 1A 84 FC [12:18:43]Write to MH i2c: E2 02 01 97 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 31 CD 01 00 35 04 06 00 98 1A 84 FC 00 00 E8 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 97 1C 00 90 00 27 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]wFMCommunicate request_size=7 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 02 02 02 3F 64 [12:18:43]Write to MH i2c: E2 0A 00 98 1C 80 0D 02 02 02 00 3F 64 00 00 D5 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 98 1C 00 90 00 28 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 03 02 [12:18:43]Write to MH i2c: E2 08 00 99 1C 80 0D 03 02 00 00 00 00 30 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 0B 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 0B 00 99 1C 00 E5 92 7A C2 10 C4 59 2B 90 00 3C [12:18:43]RAPDU: E5 92 7A C2 10 C4 59 2B 90 00 [12:18:43]wFMCommunicate OK [12:18:43]SAM_PROTO_SignData done [12:18:43]FM_MakeSignedData done [12:18:43]CreateOFDProtocolMessage [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 11 00 00 [12:18:43]Write to MH i2c: E2 08 00 9A 1C 80 11 00 00 00 00 00 00 30 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 17 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 17 00 9A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 87 [12:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:18:43]wFMCommunicate OK [12:18:43]CreateOFDProtocolMessage done [12:18:43]OFDSenderStorePacket 118065 [12:18:43]StoreOFDPacket docnum=118065 [12:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 A0 8A 04 01 E2 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 31 CD 01 00 35 04 06 00 98 1A 84 FC 3F 64 E5 92 7A C2 10 C4 59 2B [12:18:43]CheckFolder [12:18:43]dirname=/storage/ofd_packets [12:18:43]CheckFolder done [12:18:43]ProducePacketName [12:18:43]name=ofd_packets/00118065 [12:18:43]NVStorageSaveData ofd_packets/00118065 [12:18:43]File name is /storage/ofd_packets/00118065 [12:18:43]Write 298 bytes [12:18:43]NVStorageSaveData done [12:18:43]OFDSenderStorePacket done [12:18:43]KKMCreateOFDPacket done [12:18:43]NVStorageSaveData kkm_last_timestamp [12:18:43]File name is /storage/kkm_last_timestamp [12:18:43]Write 4 bytes [12:18:43]NVStorageSaveData done [12:18:43]ExternCall_PrintAddStr [12:18:43]wPrintStart [12:18:43]Write to MH i2c: 01 00 00 9B 1C B7 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: 01 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: 01 07 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: 01 07 00 9B 1C 00 00 00 00 00 FF 0F CC [12:18:43]RasterBufferAndPrint [12:18:43]line Счет N : (1)245861 [12:18:43]line ИНН: 02508201610067 [12:18:43]line Контрольно-Кассовый Чек [12:18:43]line ПРОДАЖА [12:18:43]line ТРК (МРК, ГНК) : 23 [12:18:43]line Товар: 2710194210 [12:18:43]line ДТ-К-2 [12:18:43]line 4.990 * 76.20 [12:18:43]line = 380.24 [12:18:43]line НДС 12% НСП 1% [12:18:43]line > о реализуемом товаре [12:18:43]line ОКРУГЛЕНИЕ: -0.24 [12:18:43]line ИТОГО: 380.00 [12:18:43]line Внесено: 380.00 [12:18:43]line СДАЧА: 0.00 [12:18:43]line НСП 1% : 3.36 [12:18:43]line НДС 12% : 40.38 [12:18:43]line Наличными: 380.00 [12:18:43]line Безнал.: 0.00 [12:18:43]line Место: АЗС № 173 "Партнер Нефть" [12:18:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:18:43]line СНО: Общий режим [12:18:43]line Чек 125 30.10.2024 12:18 [12:18:43]line Смена: 545 ФФД: 1.0 [12:18:43]line ЗНМ: 0300000115 [12:18:43]line РНМ: 0000000000091782 [12:18:43]line Версия ККМ: 001 [12:18:43]line ФМ: 0000000000871767 [12:18:43]line ФД: 118065 [12:18:43]line ФПД: 167239667695460 [12:18:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121843&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118065&fm=167239667695460&tin=02508201610067®Number=0000000000091782&sum=38000 [12:18:44]OFD Sender: Processing packet 118065 [packets to send 77, broken 76] [12:18:44]ProducePacketName [12:18:44]name=ofd_packets/00118065 [12:18:44]OFD Sender: To server: pG, [12:18:44]CommunicateWithHost lk.salyk.kg:30040 [12:18:44]ConnectInit lk.salyk.kg [12:18:44]written 0, free lines is 4095 [12:18:44]Connected sock=10 [12:18: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 36 37 0C 01 00 00 A0 8A 04 01 E2 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 31 CD 01 00 35 04 06 00 98 1A 84 FC 3F 64 E5 92 7A C2 10 C4 59 2B [12:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 A5 73 47 00 A1 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 36 37 10 04 04 00 31 CD 01 00 F4 03 04 00 DA CF 21 67 B6 04 01 00 00 04 76 8F 8C 05 93 A7 EB [12:18:44]CommunicateWithHost err = 0 [12:18:44]CheckOFDResponse [12:18:44]1017 (14) - 77093643461234 [12:18:44]1041 (16) - 0000000000871767 [12:18:44]1040 (4) - 118065 [12:18:44]1012 (4) - 30.10.2024 06:19 [12:18:44]1206 (1) - 0 [12:18:44]OFD Sender: Remove packet 118065 [12:18:44]ProducePacketName [12:18:44]name=ofd_packets/00118065 [12:18:44]NVStorageDeleteData [12:18:44]Write to MH i2c: 01 00 00 C5 1C E1 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: 01 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: 01 07 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: 01 07 00 C5 1C 00 00 00 00 00 B9 0C AD [12:18:44]RasterBufferAndPrint [12:18:44]line [12:18:44]line [12:18:44]line [12:18:44]line [12:18:44]line [12:18:44]written 0, free lines is 3264 [12:18:44]MH_Cut [12:18:44]Write to MH i2c: D1 01 00 CC 1C 01 BA [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: D1 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: D1 01 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: D1 01 00 CC 1C 00 B9 [12:18:44]Write to MH i2c: 01 00 00 CD 1C E9 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:45]OFD Sender: No OFD packet to send [12:18:45]*** Cut start [12:18:45]*** Purtial cut [12:18:45]*** Stage 1: CUTSNS_PIN = 1 [12:18:45]Read from MH i2c: 01 [12:18:45]MH_I2C_Read... [12:18:45]*** Stop cut motor [12:18:45]*** Cut end [12:18:45]Read from MH i2c: 01 07 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: 01 07 00 CD 1C 00 00 00 00 00 FF 0F FE [12:18:45]process_action close_receipt done [12:18:45]requested_data is exist [12:18:45]produce_requested_data [12:18:45]requested_item fm.sn is exist - process it [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 11 00 00 [12:18:45]Write to MH i2c: E2 08 00 CE 1C 80 11 00 00 00 00 00 00 64 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 17 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 17 00 CE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BB [12:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:18:45]wFMCommunicate OK [12:18:45]requested_item fd.num is exist - process it [12:18:45]SAM_PROTO_GetFieldsCounters [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 13 00 00 [12:18:45]Write to MH i2c: E2 08 00 CF 1C 80 13 00 00 00 00 00 00 67 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 62 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 62 00 CF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 31 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [12:18: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 31 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_GetFieldsCounters done [12:18:46]requested_item shift.num is exist - process it [12:18:46]requested_item shift.opened is exist - process it [12:18:46]req_shift_opened [12:18:46]FM_GetShiftState [12:18:46]SAM_PROTO_GetShiftState [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 13 01 00 [12:18:46]Write to MH i2c: E2 08 00 D0 1C 80 13 01 00 00 00 00 00 69 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0E 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0E 00 D0 1C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 41 [12:18:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_GetShiftState done [12:18:46]FM_GetShiftState done [12:18:46]req_shift_opened done [12:18:46]requested_item shift.open_date is exist - process it [12:18:46]req_shift_open_date [12:18:46]req_shift_open_date done [12:18:46]produce_requested_data done [12:18:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118065,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:18:46]process_action_free close_receipt [12:18:46]json_value_free [12:18:46]json_value_free done [12:18:46]process_json_proto returns [12:18:46]Send response to host [12:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118065,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:18:46]free response buf [12:18:46]execute_script done [12:18:46]execute_script returns [12:18:46]free content buf [12:18:46]Sock 7.Close socket [12:18:46]Sock 7.Thread stoped [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:28]accept exits with 9 [12:19:28]New connection [12:19:28]New thread 3067559268 created [12:19:28]Thread 3067415908 joined [12:19:28]Waiting for new connection... [12:19:28] Sock 9.Parse request [12:19:28]Sock 9.Check first char [12:19:28]Sock 9.First char is OK [12:19:28]request: POST /json_proto HTTP/1.0 [12:19:28]Method: POST [12:19:28]URL: /json_proto [12:19:28]Method is POST - this is cgi request [12:19:28]url: /json_proto [12:19:28]query_string will be loaded in cgi processing [12:19:28]execute_cgi json_proto POST (null) [12:19:28]execute_cgi path=json_proto method=POST [12:19:28]POST find Content-Length [12:19:28]Host: 172.17.96.67:8080 [12:19:28]Content-Length: 679 [12:19:28]Content-Type: application/json [12:19:28] [12:19:28]POST finish read [12:19:28]Found Content-Length = 679 [12:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:19:28]execute_script... [12:19: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)245862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:19:28]POST & json_proto [12:19:28]process_json_proto [12:19:28]json parsed OK: [12:19:28]protocol is kg_v1.0 [12:19:28]action value=close_receipt [12:19:28]process_action close_receipt [12:19:28]cmd_close_receipt [12:19:28]MH_GetDate [12:19:28]Write to MH i2c: F0 00 00 D1 1C DC [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: F0 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: F0 09 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: F0 09 00 D1 1C 00 51 24 22 67 47 6C 1F 67 1C [12:19:28]GetLastDocTimeStamp 1730290723 [12:19:28]current date 1730290769 [12:19:28]FM_GetShiftState [12:19:28]SAM_PROTO_GetShiftState [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 13 01 00 [12:19:28]Write to MH i2c: E2 08 00 D2 1C 80 13 01 00 00 00 00 00 6B [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0E 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0E 00 D2 1C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 43 [12:19:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_GetShiftState done [12:19:28]FM_GetShiftState done [12:19:28]opened in 1730246605 [12:19:28]opened+sec_in_day 1730333005 [12:19:28]quantity*price = 100050 [12:19:28]sum+1 = 100052 [12:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 126 30.10.2024 12:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118066 ФПД: 129145504881659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121929&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118066&fm=129145504881659&tin=02508201610067®Number=0000000000091782&sum=100000 [12:19:29]StoreToDocumentArchive [12:19:29]shift 545 fd 118066 [12:19:29]save to /storage/0545/doc_00118066 [12:19:29]save last doc name /storage/0545/doc_00118066 to /storage/kkm_last_doc_name [12:19:29]save OK [12:19:29]Clear old archive folders... [12:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:29]tlvbuf is 006971A0 [12:19:29]SAM_PROTO_ClearQueue [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 09 00 00 [12:19:29]Write to MH i2c: E2 08 00 DF 1C 80 09 00 00 00 00 00 00 6D [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 03 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 03 00 DF 1C 00 90 00 6F [12:19:29]RAPDU: 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_ClearQueue done [12:19:29]KKMCreateOFDPacket [12:19:29]OFDProtocolAddRootSTLVToBuf [12:19:29]FM_MakeSignedData [12:19:29]FM_MakeSignedData [12:19:29]SAM_PROTO_SignData [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 0D 01 02 [12:19:29]Write to MH i2c: E2 08 00 E0 1C 80 0D 01 02 00 00 00 00 75 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 03 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 03 00 E0 1C 00 90 00 70 [12:19:29]RAPDU: 90 00 [12:19:29]wFMCommunicate OK [12:19:29]wFMCommunicate request_size=255 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 51 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 32 CD 01 00 35 04 06 00 75 75 07 F1 [12:19:29]Write to MH i2c: E2 02 01 E1 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 51 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 32 CD 01 00 35 04 06 00 75 75 07 F1 00 00 7E [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:30]OFD Sender: No OFD packet to send [12:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 E1 1C 00 90 00 71 [12:19:30]RAPDU: 90 00 [12:19:30]wFMCommunicate OK [12:19:30]wFMCommunicate request_size=7 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 0D 02 02 02 5B FB [12:19:30]Write to MH i2c: E2 0A 00 E2 1C 80 0D 02 02 02 00 5B FB 00 00 D2 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 E2 1C 00 90 00 72 [12:19:30]RAPDU: 90 00 [12:19:30]wFMCommunicate OK [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 0D 03 02 [12:19:30]Write to MH i2c: E2 08 00 E3 1C 80 0D 03 02 00 00 00 00 7A [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0B 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0B 00 E3 1C 00 88 CB 41 3B DE 6F 21 81 90 00 39 [12:19:30]RAPDU: 88 CB 41 3B DE 6F 21 81 90 00 [12:19:30]wFMCommunicate OK [12:19:30]SAM_PROTO_SignData done [12:19:30]FM_MakeSignedData done [12:19:30]CreateOFDProtocolMessage [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 11 00 00 [12:19:30]Write to MH i2c: E2 08 00 E4 1C 80 11 00 00 00 00 00 00 7A [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 E4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D1 [12:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:19:30]wFMCommunicate OK [12:19:30]CreateOFDProtocolMessage done [12:19:30]OFDSenderStorePacket 118066 [12:19:30]StoreOFDPacket docnum=118066 [12:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 54 E1 04 01 28 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 51 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 32 CD 01 00 35 04 06 00 75 75 07 F1 5B FB 88 CB 41 3B DE 6F 21 81 [12:19:30]CheckFolder [12:19:30]dirname=/storage/ofd_packets [12:19:30]CheckFolder done [12:19:30]ProducePacketName [12:19:30]name=ofd_packets/00118066 [12:19:30]NVStorageSaveData ofd_packets/00118066 [12:19:30]File name is /storage/ofd_packets/00118066 [12:19:30]Write 298 bytes [12:19:30]NVStorageSaveData done [12:19:30]OFDSenderStorePacket done [12:19:30]KKMCreateOFDPacket done [12:19:30]NVStorageSaveData kkm_last_timestamp [12:19:30]File name is /storage/kkm_last_timestamp [12:19:30]Write 4 bytes [12:19:30]NVStorageSaveData done [12:19:30]ExternCall_PrintAddStr [12:19:30]wPrintStart [12:19:30]Write to MH i2c: 01 00 00 E5 1C 01 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 07 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 07 00 E5 1C 00 00 00 00 00 FF 0F 16 [12:19:30]RasterBufferAndPrint [12:19:30]line Счет N : (1)245862 [12:19:30]line ИНН: 02508201610067 [12:19:30]line Контрольно-Кассовый Чек [12:19:30]line ПРОДАЖА [12:19:30]line ТРК (МРК, ГНК) : 13 [12:19:30]line Товар: 2710194210 [12:19:30]line ДТ-К-2 [12:19:30]line 13.130 * 76.20 [12:19:30]line = 1000.51 [12:19:30]line НДС 12% НСП 1% [12:19:30]line > о реализуемом товаре [12:19:30]line ОКРУГЛЕНИЕ: -0.51 [12:19:30]line ИТОГО: 1000.00 [12:19:30]line Внесено: 1000.00 [12:19:30]line СДАЧА: 0.00 [12:19:30]line НСП 1% : 8.85 [12:19:30]line НДС 12% : 106.25 [12:19:30]line Наличными: 1000.00 [12:19:30]line Безнал.: 0.00 [12:19:30]line Место: АЗС № 173 "Партнер Нефть" [12:19:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:19:30]line СНО: Общий режим [12:19:30]line Чек 126 30.10.2024 12:19 [12:19:30]line Смена: 545 ФФД: 1.0 [12:19:30]line ЗНМ: 0300000115 [12:19:30]line РНМ: 0000000000091782 [12:19:30]line Версия ККМ: 001 [12:19:30]line ФМ: 0000000000871767 [12:19:30]line ФД: 118066 [12:19:30]line ФПД: 129145504881659 [12:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121929&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118066&fm=129145504881659&tin=02508201610067®Number=0000000000091782&sum=100000 [12:19:30]written 0, free lines is 4095 [12:19:30]OFD Sender: Processing packet 118066 [packets to send 77, broken 76] [12:19:30]ProducePacketName [12:19:30]name=ofd_packets/00118066 [12:19:30]OFD Sender: To server: pG, [12:19:30]CommunicateWithHost lk.salyk.kg:30040 [12:19:30]ConnectInit lk.salyk.kg [12:19:30]Connected sock=11 [12:19: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 36 37 0C 01 00 00 54 E1 04 01 28 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 51 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 32 CD 01 00 35 04 06 00 75 75 07 F1 5B FB 88 CB 41 3B DE 6F 21 81 [12:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 3B 81 47 00 37 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 32 CD 01 00 F4 03 04 00 09 D0 21 67 B6 04 01 00 00 F5 A7 0A 00 E1 1E C8 D6 [12:19:31]CommunicateWithHost err = 0 [12:19:31]CheckOFDResponse [12:19:31]1017 (14) - 77093643461234 [12:19:31]1041 (16) - 0000000000871767 [12:19:31]1040 (4) - 118066 [12:19:31]1012 (4) - 30.10.2024 06:19 [12:19:31]1206 (1) - 0 [12:19:31]OFD Sender: Remove packet 118066 [12:19:31]ProducePacketName [12:19:31]name=ofd_packets/00118066 [12:19:31]NVStorageDeleteData [12:19:31]Write to MH i2c: 01 00 00 0F 1D 2C [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 07 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 07 00 0F 1D 00 00 00 00 00 B6 0C F5 [12:19:31]RasterBufferAndPrint [12:19:31]line [12:19:31]line [12:19:31]line [12:19:31]line [12:19:31]line [12:19:31]written 0, free lines is 3260 [12:19:31]MH_Cut [12:19:31]Write to MH i2c: D1 01 00 16 1D 01 05 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: D1 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: D1 01 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: D1 01 00 16 1D 00 04 [12:19:31]Write to MH i2c: 01 00 00 17 1D 34 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]OFD Sender: No OFD packet to send [12:19:31]*** Cut start [12:19:31]*** Purtial cut [12:19:31]*** Stage 1: CUTSNS_PIN = 1 [12:19:32]Read from MH i2c: 01 [12:19:32]MH_I2C_Read... [12:19:32]*** Stop cut motor [12:19:32]*** Cut end [12:19:32]Read from MH i2c: 01 07 00 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: 01 07 00 17 1D 00 00 00 00 00 FF 0F 49 [12:19:32]process_action close_receipt done [12:19:32]requested_data is exist [12:19:32]produce_requested_data [12:19:32]requested_item fm.sn is exist - process it [12:19:32]wFMCommunicate request_size=4 [12:19:32]MH_SAM_APDU [12:19:32]CAPDU: 80 11 00 00 [12:19:32]Write to MH i2c: E2 08 00 18 1D 80 11 00 00 00 00 00 00 AF [12:19:32]Write i2c OK [12:19:32]MH_I2C_Read... [12:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:32]Read from MH i2c: E2 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 17 00 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 17 00 18 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 06 [12:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:19:32]wFMCommunicate OK [12:19:32]requested_item fd.num is exist - process it [12:19:32]SAM_PROTO_GetFieldsCounters [12:19:32]wFMCommunicate request_size=4 [12:19:32]MH_SAM_APDU [12:19:32]CAPDU: 80 13 00 00 [12:19:32]Write to MH i2c: E2 08 00 19 1D 80 13 00 00 00 00 00 00 B2 [12:19:32]Write i2c OK [12:19:32]MH_I2C_Read... [12:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:32]Read from MH i2c: E2 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 62 00 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 62 00 19 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 32 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [12:19: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 32 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:32]wFMCommunicate OK [12:19:32]SAM_PROTO_GetFieldsCounters done [12:19:32]requested_item shift.num is exist - process it [12:19:32]requested_item shift.opened is exist - process it [12:19:32]req_shift_opened [12:19:32]FM_GetShiftState [12:19:32]SAM_PROTO_GetShiftState [12:19:32]wFMCommunicate request_size=4 [12:19:32]MH_SAM_APDU [12:19:32]CAPDU: 80 13 01 00 [12:19:32]Write to MH i2c: E2 08 00 1A 1D 80 13 01 00 00 00 00 00 B4 [12:19:32]Write i2c OK [12:19:32]MH_I2C_Read... [12:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:32]Read from MH i2c: E2 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 0E 00 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: E2 0E 00 1A 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8C [12:19:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:19:32]wFMCommunicate OK [12:19:32]SAM_PROTO_GetShiftState done [12:19:32]FM_GetShiftState done [12:19:32]req_shift_opened done [12:19:32]requested_item shift.open_date is exist - process it [12:19:32]req_shift_open_date [12:19:32]req_shift_open_date done [12:19:32]produce_requested_data done [12:19:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118066,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:19:32]process_action_free close_receipt [12:19:32]json_value_free [12:19:32]json_value_free done [12:19:32]process_json_proto returns [12:19:32]Send response to host [12:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118066,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:19:32]free response buf [12:19:32]execute_script done [12:19:32]execute_script returns [12:19:32]free content buf [12:19:32]Sock 9.Close socket [12:19:32]Sock 9.Thread stoped [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:04]accept exits with 7 [12:21:04]New connection [12:21:04]New thread 3067415908 created [12:21:04]Thread 3067559268 joined [12:21:04]Waiting for new connection... [12:21:04] Sock 7.Parse request [12:21:04]Sock 7.Check first char [12:21:04]Sock 7.First char is OK [12:21:04]request: POST /json_proto HTTP/1.0 [12:21:04]Method: POST [12:21:04]URL: /json_proto [12:21:04]Method is POST - this is cgi request [12:21:04]url: /json_proto [12:21:04]query_string will be loaded in cgi processing [12:21:04]execute_cgi json_proto POST (null) [12:21:04]execute_cgi path=json_proto method=POST [12:21:04]POST find Content-Length [12:21:04]Host: 172.17.96.67:8080 [12:21:04]Content-Length: 677 [12:21:04]Content-Type: application/json [12:21:04] [12:21:04]POST finish read [12:21:04]Found Content-Length = 677 [12:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:21:04]execute_script... [12:21: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)245863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:21:04]POST & json_proto [12:21:04]process_json_proto [12:21:04]json parsed OK: [12:21:04]protocol is kg_v1.0 [12:21:04]action value=close_receipt [12:21:04]process_action close_receipt [12:21:04]cmd_close_receipt [12:21:04]MH_GetDate [12:21:04]Write to MH i2c: F0 00 00 1B 1D 27 [12:21:04]Write i2c OK [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: F0 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: F0 09 00 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: F0 09 00 1B 1D 00 B1 24 22 67 47 6C 1F 67 C7 [12:21:04]GetLastDocTimeStamp 1730290769 [12:21:04]current date 1730290865 [12:21:04]FM_GetShiftState [12:21:04]SAM_PROTO_GetShiftState [12:21:04]wFMCommunicate request_size=4 [12:21:04]MH_SAM_APDU [12:21:04]CAPDU: 80 13 01 00 [12:21:04]Write to MH i2c: E2 08 00 1C 1D 80 13 01 00 00 00 00 00 B6 [12:21:04]Write i2c OK [12:21:04]MH_I2C_Read... [12:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:04]Read from MH i2c: E2 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: E2 0E 00 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: E2 0E 00 1C 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8E [12:21:04]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:21:04]wFMCommunicate OK [12:21:04]SAM_PROTO_GetShiftState done [12:21:04]FM_GetShiftState done [12:21:04]opened in 1730246605 [12:21:04]opened+sec_in_day 1730333005 [12:21:04]quantity*price = 20003 [12:21:04]sum+1 = 20004 [12:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 127 30.10.2024 12:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118067 ФПД: 100393758678986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122105&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118067&fm=100393758678986&tin=02508201610067®Number=0000000000091782&sum=20000 [12:21:05]StoreToDocumentArchive [12:21:05]shift 545 fd 118067 [12:21:05]save to /storage/0545/doc_00118067 [12:21:05]save last doc name /storage/0545/doc_00118067 to /storage/kkm_last_doc_name [12:21:05]save OK [12:21:05]Clear old archive folders... [12:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:05]tlvbuf is 0067A230 [12:21:05]SAM_PROTO_ClearQueue [12:21:05]wFMCommunicate request_size=4 [12:21:05]MH_SAM_APDU [12:21:05]CAPDU: 80 09 00 00 [12:21:05]Write to MH i2c: E2 08 00 29 1D 80 09 00 00 00 00 00 00 B8 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:05]Read from MH i2c: E2 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 29 1D 00 90 00 BA [12:21:05]RAPDU: 90 00 [12:21:05]wFMCommunicate OK [12:21:05]SAM_PROTO_ClearQueue done [12:21:05]KKMCreateOFDPacket [12:21:05]OFDProtocolAddRootSTLVToBuf [12:21:05]FM_MakeSignedData [12:21:05]FM_MakeSignedData [12:21:05]SAM_PROTO_SignData [12:21:05]wFMCommunicate request_size=4 [12:21:05]MH_SAM_APDU [12:21:05]CAPDU: 80 0D 01 02 [12:21:05]Write to MH i2c: E2 08 00 2A 1D 80 0D 01 02 00 00 00 00 C0 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:05]Read from MH i2c: E2 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 2A 1D 00 90 00 BB [12:21:05]RAPDU: 90 00 [12:21:05]wFMCommunicate OK [12:21:05]wFMCommunicate request_size=255 [12:21:05]MH_SAM_APDU [12:21: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 32 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 7F 00 00 00 F4 03 04 00 B1 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 33 CD 01 00 35 04 06 00 5B [12:21:05]Write to MH i2c: E2 02 01 2B 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7F 00 00 00 F4 03 04 00 B1 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 33 CD 01 00 35 04 06 00 5B 00 00 70 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:05]Read from MH i2c: E2 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 2B 1D 00 90 00 BC [12:21:05]RAPDU: 90 00 [12:21:05]wFMCommunicate OK [12:21:05]wFMCommunicate request_size=10 [12:21:05]MH_SAM_APDU [12:21:05]CAPDU: 80 0D 02 02 05 4E BE 52 DF CA [12:21:05]Write to MH i2c: E2 0D 00 2C 1D 80 0D 02 02 05 00 4E BE 52 DF CA 00 00 D4 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:05]Read from MH i2c: E2 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 03 00 2C 1D 00 90 00 BD [12:21:05]RAPDU: 90 00 [12:21:05]wFMCommunicate OK [12:21:05]wFMCommunicate request_size=4 [12:21:05]MH_SAM_APDU [12:21:05]CAPDU: 80 0D 03 02 [12:21:05]Write to MH i2c: E2 08 00 2D 1D 80 0D 03 02 00 00 00 00 C5 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:05]Read from MH i2c: E2 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 0B 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 0B 00 2D 1D 00 B3 8E E6 06 BC 0A FB 72 90 00 26 [12:21:05]RAPDU: B3 8E E6 06 BC 0A FB 72 90 00 [12:21:05]wFMCommunicate OK [12:21:05]SAM_PROTO_SignData done [12:21:05]FM_MakeSignedData done [12:21:05]CreateOFDProtocolMessage [12:21:05]wFMCommunicate request_size=4 [12:21:05]MH_SAM_APDU [12:21:05]CAPDU: 80 11 00 00 [12:21:05]Write to MH i2c: E2 08 00 2E 1D 80 11 00 00 00 00 00 00 C5 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:05]Read from MH i2c: E2 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 17 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: E2 17 00 2E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1C [12:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:21:05]wFMCommunicate OK [12:21:05]CreateOFDProtocolMessage done [12:21:05]OFDSenderStorePacket 118067 [12:21:05]StoreOFDPacket docnum=118067 [12:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 BD 04 07 01 CC 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 B1 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 33 CD 01 00 35 04 06 00 5B 4E BE 52 DF CA B3 8E E6 06 BC 0A FB 72 [12:21:05]CheckFolder [12:21:05]dirname=/storage/ofd_packets [12:21:05]CheckFolder done [12:21:05]ProducePacketName [12:21:05]name=ofd_packets/00118067 [12:21:05]NVStorageSaveData ofd_packets/00118067 [12:21:05]File name is /storage/ofd_packets/00118067 [12:21:05]Write 301 bytes [12:21:05]NVStorageSaveData done [12:21:05]OFDSenderStorePacket done [12:21:05]KKMCreateOFDPacket done [12:21:05]NVStorageSaveData kkm_last_timestamp [12:21:05]File name is /storage/kkm_last_timestamp [12:21:05]Write 4 bytes [12:21:05]NVStorageSaveData done [12:21:05]ExternCall_PrintAddStr [12:21:05]wPrintStart [12:21:05]Write to MH i2c: 01 00 00 2F 1D 4C [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 07 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 07 00 2F 1D 00 00 00 00 00 FF 0F 61 [12:21:05]RasterBufferAndPrint [12:21:05]line Счет N : (1)245863 [12:21:05]line ИНН: 02508201610067 [12:21:05]line Контрольно-Кассовый Чек [12:21:05]line ПРОДАЖА [12:21:05]line ТРК (МРК, ГНК) : 11 [12:21:05]line Товар: 2710124130 [12:21:05]line Аи-92-К-2 [12:21:05]line 2.990 * 66.90 [12:21:05]line = 200.03 [12:21:05]line НДС 12% НСП 1% [12:21:05]line > о реализуемом товаре [12:21:05]line ОКРУГЛЕНИЕ: -0.03 [12:21:05]line ИТОГО: 200.00 [12:21:05]line Внесено: 200.00 [12:21:05]line СДАЧА: 0.00 [12:21:05]line НСП 1% : 1.77 [12:21:05]line НДС 12% : 21.24 [12:21:05]line Наличными: 200.00 [12:21:05]line Безнал.: 0.00 [12:21:05]line Место: АЗС № 173 "Партнер Нефть" [12:21:05]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:21:05]line СНО: Общий режим [12:21:05]line Чек 127 30.10.2024 12:21 [12:21:05]line Смена: 545 ФФД: 1.0 [12:21:05]line ЗНМ: 0300000115 [12:21:05]line РНМ: 0000000000091782 [12:21:05]line Версия ККМ: 001 [12:21:05]line ФМ: 0000000000871767 [12:21:05]line ФД: 118067 [12:21:05]line ФПД: 100393758678986 [12:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122105&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118067&fm=100393758678986&tin=02508201610067®Number=0000000000091782&sum=20000 [12:21:05]written 0, free lines is 4095 [12:21:05]OFD Sender: Processing packet 118067 [packets to send 77, broken 76] [12:21:05]ProducePacketName [12:21:05]name=ofd_packets/00118067 [12:21:05]OFD Sender: To server: pG, [12:21:05]CommunicateWithHost lk.salyk.kg:30040 [12:21:05]ConnectInit lk.salyk.kg [12:21:06]Connected sock=11 [12:21: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 36 37 0F 01 00 00 BD 04 07 01 CC 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 B1 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 33 CD 01 00 35 04 06 00 5B 4E BE 52 DF CA B3 8E E6 06 BC 0A FB 72 [12:21: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 36 37 4F 00 00 00 F0 9B 47 00 67 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 36 37 10 04 04 00 33 CD 01 00 F4 03 04 00 68 D0 21 67 B6 04 01 00 00 3F C9 BA 40 8A BE 2E 27 [12:21:06]CommunicateWithHost err = 0 [12:21:06]CheckOFDResponse [12:21:06]1017 (14) - 77093643461234 [12:21:06]1041 (16) - 0000000000871767 [12:21:06]1040 (4) - 118067 [12:21:06]1012 (4) - 30.10.2024 06:21 [12:21:06]1206 (1) - 0 [12:21:06]OFD Sender: Remove packet 118067 [12:21:06]ProducePacketName [12:21:06]name=ofd_packets/00118067 [12:21:06]NVStorageDeleteData [12:21:06]Write to MH i2c: 01 00 00 59 1D 76 [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: 01 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: 01 07 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: 01 07 00 59 1D 00 00 00 00 00 B2 0C 3B [12:21:06]RasterBufferAndPrint [12:21:06]line [12:21:06]line [12:21:06]line [12:21:06]line [12:21:06]line [12:21:06]written 0, free lines is 3254 [12:21:06]MH_Cut [12:21:06]Write to MH i2c: D1 01 00 60 1D 01 4F [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: D1 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: D1 01 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: D1 01 00 60 1D 00 4E [12:21:06]Write to MH i2c: 01 00 00 61 1D 7E [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]OFD Sender: No OFD packet to send [12:21:07]*** Cut start [12:21:07]*** Purtial cut [12:21:07]*** Stage 1: CUTSNS_PIN = 1 [12:21:07]Read from MH i2c: 01 [12:21:07]MH_I2C_Read... [12:21:07]*** Stop cut motor [12:21:07]*** Cut end [12:21:07]Read from MH i2c: 01 07 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: 01 07 00 61 1D 00 00 00 00 00 FF 0F 93 [12:21:07]process_action close_receipt done [12:21:07]requested_data is exist [12:21:07]produce_requested_data [12:21:07]requested_item fm.sn is exist - process it [12:21:07]wFMCommunicate request_size=4 [12:21:07]MH_SAM_APDU [12:21:07]CAPDU: 80 11 00 00 [12:21:07]Write to MH i2c: E2 08 00 62 1D 80 11 00 00 00 00 00 00 F9 [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:07]Read from MH i2c: E2 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 17 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 17 00 62 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 50 [12:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:21:07]wFMCommunicate OK [12:21:07]requested_item fd.num is exist - process it [12:21:07]SAM_PROTO_GetFieldsCounters [12:21:07]wFMCommunicate request_size=4 [12:21:07]MH_SAM_APDU [12:21:07]CAPDU: 80 13 00 00 [12:21:07]Write to MH i2c: E2 08 00 63 1D 80 13 00 00 00 00 00 00 FC [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:07]Read from MH i2c: E2 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 62 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 62 00 63 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 33 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12:21: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 33 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:07]wFMCommunicate OK [12:21:07]SAM_PROTO_GetFieldsCounters done [12:21:07]requested_item shift.num is exist - process it [12:21:07]requested_item shift.opened is exist - process it [12:21:07]req_shift_opened [12:21:07]FM_GetShiftState [12:21:07]SAM_PROTO_GetShiftState [12:21:07]wFMCommunicate request_size=4 [12:21:07]MH_SAM_APDU [12:21:07]CAPDU: 80 13 01 00 [12:21:07]Write to MH i2c: E2 08 00 64 1D 80 13 01 00 00 00 00 00 FE [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:07]Read from MH i2c: E2 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 0E 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 0E 00 64 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D6 [12:21:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:21:07]wFMCommunicate OK [12:21:07]SAM_PROTO_GetShiftState done [12:21:07]FM_GetShiftState done [12:21:07]req_shift_opened done [12:21:07]requested_item shift.open_date is exist - process it [12:21:07]req_shift_open_date [12:21:07]req_shift_open_date done [12:21:07]produce_requested_data done [12:21:07]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118067,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:21:07]process_action_free close_receipt [12:21:07]json_value_free [12:21:07]json_value_free done [12:21:07]process_json_proto returns [12:21:07]Send response to host [12:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118067,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:21:07]free response buf [12:21:07]execute_script done [12:21:07]execute_script returns [12:21:07]free content buf [12:21:07]Sock 7.Close socket [12:21:07]Sock 7.Thread stoped [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]accept exits with 9 [12:22:01]New connection [12:22:01]New thread 3067559268 created [12:22:01]Thread 3067415908 joined [12:22:01]Waiting for new connection... [12:22:01] Sock 9.Parse request [12:22:01]Sock 9.Check first char [12:22:01]Sock 9.First char is OK [12:22:01]request: POST /json_proto HTTP/1.0 [12:22:01]Method: POST [12:22:01]URL: /json_proto [12:22:01]Method is POST - this is cgi request [12:22:01]url: /json_proto [12:22:01]query_string will be loaded in cgi processing [12:22:01]execute_cgi json_proto POST (null) [12:22:01]execute_cgi path=json_proto method=POST [12:22:01]POST find Content-Length [12:22:01]Host: 172.17.96.67:8080 [12:22:01]Content-Length: 677 [12:22:01]Content-Type: application/json [12:22:01] [12:22:01]POST finish read [12:22:01]Found Content-Length = 677 [12:22:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:01]execute_script... [12:22: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)245864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:01]POST & json_proto [12:22:01]process_json_proto [12:22:01]json parsed OK: [12:22:01]protocol is kg_v1.0 [12:22:01]action value=close_receipt [12:22:01]process_action close_receipt [12:22:01]cmd_close_receipt [12:22:01]MH_GetDate [12:22:01]Write to MH i2c: F0 00 00 65 1D 71 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: F0 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: F0 09 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: F0 09 00 65 1D 00 EA 24 22 67 47 6C 1F 67 4A [12:22:01]GetLastDocTimeStamp 1730290865 [12:22:01]current date 1730290922 [12:22:01]FM_GetShiftState [12:22:01]SAM_PROTO_GetShiftState [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 13 01 00 [12:22:01]Write to MH i2c: E2 08 00 66 1D 80 13 01 00 00 00 00 00 00 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 66 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D8 [12:22:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_GetShiftState done [12:22:01]FM_GetShiftState done [12:22:01]opened in 1730246605 [12:22:01]opened+sec_in_day 1730333005 [12:22:01]quantity*price = 30038 [12:22:01]sum+1 = 30039 [12:22:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 128 30.10.2024 12:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118068 ФПД: 171376488319523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122202&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118068&fm=171376488319523&tin=02508201610067®Number=0000000000091782&sum=30000 [12:22:02]StoreToDocumentArchive [12:22:02]shift 545 fd 118068 [12:22:02]save to /storage/0545/doc_00118068 [12:22:02]save last doc name /storage/0545/doc_00118068 to /storage/kkm_last_doc_name [12:22:02]save OK [12:22:02]Clear old archive folders... [12:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:02]tlvbuf is 006C2C90 [12:22:02]SAM_PROTO_ClearQueue [12:22:02]wFMCommunicate request_size=4 [12:22:02]MH_SAM_APDU [12:22:02]CAPDU: 80 09 00 00 [12:22:02]Write to MH i2c: E2 08 00 73 1D 80 09 00 00 00 00 00 00 02 [12:22:02]Write i2c OK [12:22:02]MH_I2C_Read... [12:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:02]Read from MH i2c: E2 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: E2 03 00 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: E2 03 00 73 1D 00 90 00 04 [12:22:02]RAPDU: 90 00 [12:22:02]wFMCommunicate OK [12:22:02]SAM_PROTO_ClearQueue done [12:22:02]KKMCreateOFDPacket [12:22:02]OFDProtocolAddRootSTLVToBuf [12:22:02]FM_MakeSignedData [12:22:02]FM_MakeSignedData [12:22:02]SAM_PROTO_SignData [12:22:02]wFMCommunicate request_size=4 [12:22:02]MH_SAM_APDU [12:22:02]CAPDU: 80 0D 01 02 [12:22:02]Write to MH i2c: E2 08 00 74 1D 80 0D 01 02 00 00 00 00 0A [12:22:02]Write i2c OK [12:22:02]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 74 1D 00 90 00 05 [12:22:03]RAPDU: 90 00 [12:22:03]wFMCommunicate OK [12:22:03]wFMCommunicate request_size=255 [12:22:03]MH_SAM_APDU [12:22: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 32 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 80 00 00 00 F4 03 04 00 EA 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 34 CD 01 00 35 04 06 00 9B [12:22:03]Write to MH i2c: E2 02 01 75 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 80 00 00 00 F4 03 04 00 EA 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 34 CD 01 00 35 04 06 00 9B 00 00 67 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 75 1D 00 90 00 06 [12:22:03]RAPDU: 90 00 [12:22:03]wFMCommunicate OK [12:22:03]wFMCommunicate request_size=10 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 0D 02 02 05 DD B2 B5 8A 23 [12:22:03]Write to MH i2c: E2 0D 00 76 1D 80 0D 02 02 05 00 DD B2 B5 8A 23 00 00 08 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 76 1D 00 90 00 07 [12:22:03]RAPDU: 90 00 [12:22:03]wFMCommunicate OK [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 0D 03 02 [12:22:03]Write to MH i2c: E2 08 00 77 1D 80 0D 03 02 00 00 00 00 0F [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0B 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0B 00 77 1D 00 28 F5 9B DD D0 3E 40 58 90 00 4B [12:22:03]RAPDU: 28 F5 9B DD D0 3E 40 58 90 00 [12:22:03]wFMCommunicate OK [12:22:03]SAM_PROTO_SignData done [12:22:03]FM_MakeSignedData done [12:22:03]CreateOFDProtocolMessage [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 11 00 00 [12:22:03]Write to MH i2c: E2 08 00 78 1D 80 11 00 00 00 00 00 00 0F [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 17 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 17 00 78 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 66 [12:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:22:03]wFMCommunicate OK [12:22:03]CreateOFDProtocolMessage done [12:22:03]OFDSenderStorePacket 118068 [12:22:03]StoreOFDPacket docnum=118068 [12:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 69 0E 07 01 FA AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 80 00 00 00 F4 03 04 00 EA 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 34 CD 01 00 35 04 06 00 9B DD B2 B5 8A 23 28 F5 9B DD D0 3E 40 58 [12:22:03]CheckFolder [12:22:03]dirname=/storage/ofd_packets [12:22:03]CheckFolder done [12:22:03]ProducePacketName [12:22:03]name=ofd_packets/00118068 [12:22:03]NVStorageSaveData ofd_packets/00118068 [12:22:03]File name is /storage/ofd_packets/00118068 [12:22:03]Write 301 bytes [12:22:03]NVStorageSaveData done [12:22:03]OFDSenderStorePacket done [12:22:03]KKMCreateOFDPacket done [12:22:03]NVStorageSaveData kkm_last_timestamp [12:22:03]File name is /storage/kkm_last_timestamp [12:22:03]Write 4 bytes [12:22:03]NVStorageSaveData done [12:22:03]ExternCall_PrintAddStr [12:22:03]wPrintStart [12:22:03]Write to MH i2c: 01 00 00 79 1D 96 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: 01 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: 01 07 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: 01 07 00 79 1D 00 00 00 00 00 FF 0F AB [12:22:03]RasterBufferAndPrint [12:22:03]line Счет N : (1)245864 [12:22:03]line ИНН: 02508201610067 [12:22:03]line Контрольно-Кассовый Чек [12:22:03]line ПРОДАЖА [12:22:03]line ТРК (МРК, ГНК) : 21 [12:22:03]line Товар: 2710124130 [12:22:03]line Аи-92-К-2 [12:22:03]line 4.490 * 66.90 [12:22:03]line = 300.38 [12:22:03]line НДС 12% НСП 1% [12:22:03]line > о реализуемом товаре [12:22:03]line ОКРУГЛЕНИЕ: -0.38 [12:22:03]line ИТОГО: 300.00 [12:22:03]line Внесено: 300.00 [12:22:03]line СДАЧА: 0.00 [12:22:03]line НСП 1% : 2.66 [12:22:03]line НДС 12% : 31.90 [12:22:03]line Наличными: 300.00 [12:22:03]line Безнал.: 0.00 [12:22:03]line Место: АЗС № 173 "Партнер Нефть" [12:22:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:22:03]line СНО: Общий режим [12:22:03]line Чек 128 30.10.2024 12:22 [12:22:03]line Смена: 545 ФФД: 1.0 [12:22:03]line ЗНМ: 0300000115 [12:22:03]line РНМ: 0000000000091782 [12:22:03]line Версия ККМ: 001 [12:22:03]line ФМ: 0000000000871767 [12:22:03]line ФД: 118068 [12:22:03]line ФПД: 171376488319523 [12:22:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122202&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118068&fm=171376488319523&tin=02508201610067®Number=0000000000091782&sum=30000 [12:22:03]written 0, free lines is 4095 [12:22:03]OFD Sender: Processing packet 118068 [packets to send 77, broken 76] [12:22:03]ProducePacketName [12:22:03]name=ofd_packets/00118068 [12:22:03]OFD Sender: To server: pG, [12:22:03]CommunicateWithHost lk.salyk.kg:30040 [12:22:03]ConnectInit lk.salyk.kg [12:22:03]Connected sock=10 [12:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 69 0E 07 01 FA AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 80 00 00 00 F4 03 04 00 EA 24 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 34 CD 01 00 35 04 06 00 9B DD B2 B5 8A 23 28 F5 9B DD D0 3E 40 58 [12:22: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 36 37 4F 00 00 00 33 19 47 00 1C 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 36 37 10 04 04 00 34 CD 01 00 F4 03 04 00 A2 D0 21 67 B6 04 01 00 00 36 B6 F5 46 40 E4 62 1C [12:22:04]CommunicateWithHost err = 0 [12:22:04]CheckOFDResponse [12:22:04]1017 (14) - 77093643461234 [12:22:04]1041 (16) - 0000000000871767 [12:22:04]1040 (4) - 118068 [12:22:04]1012 (4) - 30.10.2024 06:22 [12:22:04]1206 (1) - 0 [12:22:04]OFD Sender: Remove packet 118068 [12:22:04]ProducePacketName [12:22:04]name=ofd_packets/00118068 [12:22:04]NVStorageDeleteData [12:22:04]Write to MH i2c: 01 00 00 A3 1D C0 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: 01 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: 01 07 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 B9 0C 8C [12:22:04]RasterBufferAndPrint [12:22:04]line [12:22:04]line [12:22:04]line [12:22:04]line [12:22:04]line [12:22:04]written 0, free lines is 3264 [12:22:04]MH_Cut [12:22:04]Write to MH i2c: D1 01 00 AA 1D 01 99 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: D1 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: D1 01 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: D1 01 00 AA 1D 00 98 [12:22:04]Write to MH i2c: 01 00 00 AB 1D C8 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]OFD Sender: No OFD packet to send [12:22:05]*** Cut start [12:22:05]*** Purtial cut [12:22:05]*** Stage 1: CUTSNS_PIN = 1 [12:22:05]Read from MH i2c: 01 [12:22:05]MH_I2C_Read... [12:22:05]*** Stop cut motor [12:22:05]*** Cut end [12:22:05]Read from MH i2c: 01 07 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 FF 0F DD [12:22:05]process_action close_receipt done [12:22:05]requested_data is exist [12:22:05]produce_requested_data [12:22:05]requested_item fm.sn is exist - process it [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 11 00 00 [12:22:05]Write to MH i2c: E2 08 00 AC 1D 80 11 00 00 00 00 00 00 43 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 AC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9A [12:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:22:05]wFMCommunicate OK [12:22:05]requested_item fd.num is exist - process it [12:22:05]SAM_PROTO_GetFieldsCounters [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 13 00 00 [12:22:05]Write to MH i2c: E2 08 00 AD 1D 80 13 00 00 00 00 00 00 46 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 62 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 62 00 AD 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 34 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:22: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 34 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:05]wFMCommunicate OK [12:22:05]SAM_PROTO_GetFieldsCounters done [12:22:05]requested_item shift.num is exist - process it [12:22:05]requested_item shift.opened is exist - process it [12:22:05]req_shift_opened [12:22:05]FM_GetShiftState [12:22:05]SAM_PROTO_GetShiftState [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 13 01 00 [12:22:05]Write to MH i2c: E2 08 00 AE 1D 80 13 01 00 00 00 00 00 48 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0E 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0E 00 AE 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 20 [12:22:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:22:05]wFMCommunicate OK [12:22:05]SAM_PROTO_GetShiftState done [12:22:05]FM_GetShiftState done [12:22:05]req_shift_opened done [12:22:05]requested_item shift.open_date is exist - process it [12:22:05]req_shift_open_date [12:22:05]req_shift_open_date done [12:22:05]produce_requested_data done [12:22:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118068,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:22:05]process_action_free close_receipt [12:22:05]json_value_free [12:22:05]json_value_free done [12:22:05]process_json_proto returns [12:22:05]Send response to host [12:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118068,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:22:05]free response buf [12:22:05]execute_script done [12:22:05]execute_script returns [12:22:05]free content buf [12:22:05]Sock 9.Close socket [12:22:05]Sock 9.Thread stoped [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:40]accept exits with 7 [12:24:40]New connection [12:24:40]New thread 3067415908 created [12:24:40]Thread 3067559268 joined [12:24:40]Waiting for new connection... [12:24:40] Sock 7.Parse request [12:24:40]Sock 7.Check first char [12:24:40]Sock 7.First char is OK [12:24:40]request: POST /json_proto HTTP/1.0 [12:24:40]Method: POST [12:24:40]URL: /json_proto [12:24:40]Method is POST - this is cgi request [12:24:40]url: /json_proto [12:24:40]query_string will be loaded in cgi processing [12:24:40]execute_cgi json_proto POST (null) [12:24:40]execute_cgi path=json_proto method=POST [12:24:40]POST find Content-Length [12:24:40]Host: 172.17.96.67:8080 [12:24:40]Content-Length: 677 [12:24:40]Content-Type: application/json [12:24:40] [12:24:40]POST finish read [12:24:40]Found Content-Length = 677 [12:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:40]execute_script... [12:24: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)245865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:40]POST & json_proto [12:24:40]process_json_proto [12:24:40]json parsed OK: [12:24:40]protocol is kg_v1.0 [12:24:40]action value=close_receipt [12:24:40]process_action close_receipt [12:24:40]cmd_close_receipt [12:24:40]MH_GetDate [12:24:40]Write to MH i2c: F0 00 00 AF 1D BB [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: F0 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: F0 09 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: F0 09 00 AF 1D 00 89 25 22 67 47 6C 1F 67 34 [12:24:40]GetLastDocTimeStamp 1730290922 [12:24:40]current date 1730291081 [12:24:40]FM_GetShiftState [12:24:40]SAM_PROTO_GetShiftState [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 13 01 00 [12:24:40]Write to MH i2c: E2 08 00 B0 1D 80 13 01 00 00 00 00 00 4A [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0E 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0E 00 B0 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 22 [12:24:40]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_GetShiftState done [12:24:40]FM_GetShiftState done [12:24:40]opened in 1730246605 [12:24:40]opened+sec_in_day 1730333005 [12:24:40]quantity*price = 30038 [12:24:40]sum+1 = 30039 [12:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 129 30.10.2024 12:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118069 ФПД: 57115770618176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122441&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118069&fm=57115770618176&tin=02508201610067®Number=0000000000091782&sum=30000 [12:24:42]StoreToDocumentArchive [12:24:42]shift 545 fd 118069 [12:24:42]save to /storage/0545/doc_00118069 [12:24:42]save last doc name /storage/0545/doc_00118069 to /storage/kkm_last_doc_name [12:24:42]save OK [12:24:42]Clear old archive folders... [12:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:42]tlvbuf is B6F3C2B0 [12:24:42]SAM_PROTO_ClearQueue [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 09 00 00 [12:24:42]Write to MH i2c: E2 08 00 BD 1D 80 09 00 00 00 00 00 00 4C [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [12:24:42]RAPDU: 90 00 [12:24:42]wFMCommunicate OK [12:24:42]SAM_PROTO_ClearQueue done [12:24:42]KKMCreateOFDPacket [12:24:42]OFDProtocolAddRootSTLVToBuf [12:24:42]FM_MakeSignedData [12:24:42]FM_MakeSignedData [12:24:42]SAM_PROTO_SignData [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 0D 01 02 [12:24:42]Write to MH i2c: E2 08 00 BE 1D 80 0D 01 02 00 00 00 00 54 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [12:24:42]RAPDU: 90 00 [12:24:42]wFMCommunicate OK [12:24:42]wFMCommunicate request_size=255 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 00 00 00 F4 03 04 00 89 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 35 CD 01 00 35 04 06 00 33 [12:24:42]Write to MH i2c: E2 02 01 BF 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 00 00 00 F4 03 04 00 89 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 35 CD 01 00 35 04 06 00 33 00 00 EB [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [12:24:42]RAPDU: 90 00 [12:24:42]wFMCommunicate OK [12:24:42]wFMCommunicate request_size=10 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 0D 02 02 05 F2 4D 38 01 40 [12:24:42]Write to MH i2c: E2 0D 00 C0 1D 80 0D 02 02 05 00 F2 4D 38 01 40 00 00 19 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [12:24:42]RAPDU: 90 00 [12:24:42]wFMCommunicate OK [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 0D 03 02 [12:24:42]Write to MH i2c: E2 08 00 C1 1D 80 0D 03 02 00 00 00 00 59 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 0B 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 0B 00 C1 1D 00 5E 10 7C AA B3 F0 51 78 90 00 5A [12:24:42]RAPDU: 5E 10 7C AA B3 F0 51 78 90 00 [12:24:42]wFMCommunicate OK [12:24:42]SAM_PROTO_SignData done [12:24:42]FM_MakeSignedData done [12:24:42]CreateOFDProtocolMessage [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 11 00 00 [12:24:42]Write to MH i2c: E2 08 00 C2 1D 80 11 00 00 00 00 00 00 59 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 17 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 17 00 C2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B0 [12:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:24:42]wFMCommunicate OK [12:24:42]CreateOFDProtocolMessage done [12:24:42]OFDSenderStorePacket 118069 [12:24:42]StoreOFDPacket docnum=118069 [12:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EE 20 07 01 56 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 89 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 35 CD 01 00 35 04 06 00 33 F2 4D 38 01 40 5E 10 7C AA B3 F0 51 78 [12:24:42]CheckFolder [12:24:42]dirname=/storage/ofd_packets [12:24:42]CheckFolder done [12:24:42]ProducePacketName [12:24:42]name=ofd_packets/00118069 [12:24:42]NVStorageSaveData ofd_packets/00118069 [12:24:42]File name is /storage/ofd_packets/00118069 [12:24:42]Write 301 bytes [12:24:42]NVStorageSaveData done [12:24:42]OFDSenderStorePacket done [12:24:42]KKMCreateOFDPacket done [12:24:42]NVStorageSaveData kkm_last_timestamp [12:24:42]File name is /storage/kkm_last_timestamp [12:24:42]Write 4 bytes [12:24:42]NVStorageSaveData done [12:24:42]ExternCall_PrintAddStr [12:24:42]wPrintStart [12:24:42]Write to MH i2c: 01 00 00 C3 1D E0 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 C3 1D 00 00 00 00 00 FF 0F F5 [12:24:42]RasterBufferAndPrint [12:24:42]line Счет N : (1)245865 [12:24:42]line ИНН: 02508201610067 [12:24:42]line Контрольно-Кассовый Чек [12:24:42]line ПРОДАЖА [12:24:42]line ТРК (МРК, ГНК) : 21 [12:24:42]line Товар: 2710124130 [12:24:42]line Аи-92-К-2 [12:24:42]line 4.490 * 66.90 [12:24:42]line = 300.38 [12:24:42]line НДС 12% НСП 1% [12:24:42]line > о реализуемом товаре [12:24:42]line ОКРУГЛЕНИЕ: -0.38 [12:24:42]line ИТОГО: 300.00 [12:24:42]line Внесено: 300.00 [12:24:42]line СДАЧА: 0.00 [12:24:42]line НСП 1% : 2.66 [12:24:42]line НДС 12% : 31.90 [12:24:42]line Наличными: 300.00 [12:24:42]line Безнал.: 0.00 [12:24:42]line Место: АЗС № 173 "Партнер Нефть" [12:24:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:24:42]line СНО: Общий режим [12:24:42]line Чек 129 30.10.2024 12:24 [12:24:42]line Смена: 545 ФФД: 1.0 [12:24:42]line ЗНМ: 0300000115 [12:24:42]line РНМ: 0000000000091782 [12:24:42]line Версия ККМ: 001 [12:24:42]line ФМ: 0000000000871767 [12:24:42]line ФД: 118069 [12:24:42]line ФПД: 57115770618176 [12:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122441&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118069&fm=57115770618176&tin=02508201610067®Number=0000000000091782&sum=30000 [12:24:42]written 0, free lines is 4095 [12:24:42]OFD Sender: Processing packet 118069 [packets to send 77, broken 76] [12:24:42]ProducePacketName [12:24:42]name=ofd_packets/00118069 [12:24:42]OFD Sender: To server: pG, [12:24:42]CommunicateWithHost lk.salyk.kg:30040 [12:24:42]ConnectInit lk.salyk.kg [12:24:43]Connected sock=11 [12:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EE 20 07 01 56 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 89 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 35 CD 01 00 35 04 06 00 33 F2 4D 38 01 40 5E 10 7C AA B3 F0 51 78 [12:24: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 36 37 4F 00 00 00 75 B4 47 00 05 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 35 CD 01 00 F4 03 04 00 41 D1 21 67 B6 04 01 00 00 39 71 B7 23 62 8F E9 C6 [12:24:43]CommunicateWithHost err = 0 [12:24:43]CheckOFDResponse [12:24:43]1017 (14) - 77093643461234 [12:24:43]1041 (16) - 0000000000871767 [12:24:43]1040 (4) - 118069 [12:24:43]1012 (4) - 30.10.2024 06:25 [12:24:43]1206 (1) - 0 [12:24:43]OFD Sender: Remove packet 118069 [12:24:43]ProducePacketName [12:24:43]name=ofd_packets/00118069 [12:24:43]NVStorageDeleteData [12:24:43]Write to MH i2c: 01 00 00 ED 1D 0A [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 07 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 07 00 ED 1D 00 00 00 00 00 D8 0C F5 [12:24:43]RasterBufferAndPrint [12:24:43]line [12:24:43]line [12:24:43]line [12:24:43]line [12:24:43]line [12:24:43]written 0, free lines is 3295 [12:24:43]MH_Cut [12:24:43]Write to MH i2c: D1 01 00 F4 1D 01 E3 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: D1 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: D1 01 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: D1 01 00 F4 1D 00 E2 [12:24:43]Write to MH i2c: 01 00 00 F5 1D 12 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]OFD Sender: No OFD packet to send [12:24:44]*** Cut start [12:24:44]*** Purtial cut [12:24:44]*** Stage 1: CUTSNS_PIN = 1 [12:24:44]Read from MH i2c: 01 [12:24:44]MH_I2C_Read... [12:24:44]*** Stop cut motor [12:24:44]*** Cut end [12:24:44]Read from MH i2c: 01 07 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 07 00 F5 1D 00 00 00 00 00 FF 0F 27 [12:24:44]process_action close_receipt done [12:24:44]requested_data is exist [12:24:44]produce_requested_data [12:24:44]requested_item fm.sn is exist - process it [12:24:44]wFMCommunicate request_size=4 [12:24:44]MH_SAM_APDU [12:24:44]CAPDU: 80 11 00 00 [12:24:44]Write to MH i2c: E2 08 00 F6 1D 80 11 00 00 00 00 00 00 8D [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 17 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 17 00 F6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E4 [12:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:24:44]wFMCommunicate OK [12:24:44]requested_item fd.num is exist - process it [12:24:44]SAM_PROTO_GetFieldsCounters [12:24:44]wFMCommunicate request_size=4 [12:24:44]MH_SAM_APDU [12:24:44]CAPDU: 80 13 00 00 [12:24:44]Write to MH i2c: E2 08 00 F7 1D 80 13 00 00 00 00 00 00 90 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 62 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 62 00 F7 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 35 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [12:24: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 35 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:44]wFMCommunicate OK [12:24:44]SAM_PROTO_GetFieldsCounters done [12:24:44]requested_item shift.num is exist - process it [12:24:44]requested_item shift.opened is exist - process it [12:24:44]req_shift_opened [12:24:44]FM_GetShiftState [12:24:44]SAM_PROTO_GetShiftState [12:24:44]wFMCommunicate request_size=4 [12:24:44]MH_SAM_APDU [12:24:44]CAPDU: 80 13 01 00 [12:24:44]Write to MH i2c: E2 08 00 F8 1D 80 13 01 00 00 00 00 00 92 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 0E 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 0E 00 F8 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6A [12:24:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:24:44]wFMCommunicate OK [12:24:44]SAM_PROTO_GetShiftState done [12:24:44]FM_GetShiftState done [12:24:44]req_shift_opened done [12:24:44]requested_item shift.open_date is exist - process it [12:24:44]req_shift_open_date [12:24:44]req_shift_open_date done [12:24:44]produce_requested_data done [12:24:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118069,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:24:44]process_action_free close_receipt [12:24:44]json_value_free [12:24:44]json_value_free done [12:24:44]process_json_proto returns [12:24:44]Send response to host [12:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118069,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:24:44]free response buf [12:24:44]execute_script done [12:24:44]execute_script returns [12:24:44]free content buf [12:24:44]Sock 7.Close socket [12:24:44]Sock 7.Thread stoped [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:09]accept exits with 9 [12:25:09]New connection [12:25:09]New thread 3067559268 created [12:25:09]Thread 3067415908 joined [12:25:09]Waiting for new connection... [12:25:09] Sock 9.Parse request [12:25:09]Sock 9.Check first char [12:25:09]Sock 9.First char is OK [12:25:09]request: POST /json_proto HTTP/1.0 [12:25:09]Method: POST [12:25:09]URL: /json_proto [12:25:09]Method is POST - this is cgi request [12:25:09]url: /json_proto [12:25:09]query_string will be loaded in cgi processing [12:25:09]execute_cgi json_proto POST (null) [12:25:09]execute_cgi path=json_proto method=POST [12:25:09]POST find Content-Length [12:25:09]Host: 172.17.96.67:8080 [12:25:09]Content-Length: 677 [12:25:09]Content-Type: application/json [12:25:09] [12:25:09]POST finish read [12:25:09]Found Content-Length = 677 [12:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:25:09]execute_script... [12:25: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)245866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:25:09]POST & json_proto [12:25:09]process_json_proto [12:25:09]json parsed OK: [12:25:09]protocol is kg_v1.0 [12:25:09]action value=close_receipt [12:25:09]process_action close_receipt [12:25:09]cmd_close_receipt [12:25:09]MH_GetDate [12:25:09]Write to MH i2c: F0 00 00 F9 1D 05 [12:25:09]Write i2c OK [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: F0 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: F0 09 00 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: F0 09 00 F9 1D 00 A6 25 22 67 47 6C 1F 67 9B [12:25:09]GetLastDocTimeStamp 1730291081 [12:25:09]current date 1730291110 [12:25:09]FM_GetShiftState [12:25:09]SAM_PROTO_GetShiftState [12:25:09]wFMCommunicate request_size=4 [12:25:09]MH_SAM_APDU [12:25:09]CAPDU: 80 13 01 00 [12:25:09]Write to MH i2c: E2 08 00 FA 1D 80 13 01 00 00 00 00 00 94 [12:25:09]Write i2c OK [12:25:09]MH_I2C_Read... [12:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:09]Read from MH i2c: E2 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: E2 0E 00 [12:25:09]MH_I2C_Read... [12:25:09]Read from MH i2c: E2 0E 00 FA 1D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6C [12:25:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:25:09]wFMCommunicate OK [12:25:09]SAM_PROTO_GetShiftState done [12:25:09]FM_GetShiftState done [12:25:09]opened in 1730246605 [12:25:09]opened+sec_in_day 1730333005 [12:25:09]quantity*price = 60009 [12:25:09]sum+1 = 60010 [12:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 130 30.10.2024 12:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118070 ФПД: 41355534327612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122510&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118070&fm=41355534327612&tin=02508201610067®Number=0000000000091782&sum=60000 [12:25:10]StoreToDocumentArchive [12:25:10]shift 545 fd 118070 [12:25:10]save to /storage/0545/doc_00118070 [12:25:10]save last doc name /storage/0545/doc_00118070 to /storage/kkm_last_doc_name [12:25:10]save OK [12:25:10]Clear old archive folders... [12:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:10]tlvbuf is B6F3C090 [12:25:10]SAM_PROTO_ClearQueue [12:25:10]wFMCommunicate request_size=4 [12:25:10]MH_SAM_APDU [12:25:10]CAPDU: 80 09 00 00 [12:25:10]Write to MH i2c: E2 08 00 07 1E 80 09 00 00 00 00 00 00 97 [12:25:10]Write i2c OK [12:25:10]MH_I2C_Read... [12:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:10]Read from MH i2c: E2 [12:25:10]MH_I2C_Read... [12:25:10]Read from MH i2c: E2 03 00 [12:25:10]MH_I2C_Read... [12:25:10]Read from MH i2c: E2 03 00 07 1E 00 90 00 99 [12:25:10]RAPDU: 90 00 [12:25:10]wFMCommunicate OK [12:25:10]SAM_PROTO_ClearQueue done [12:25:10]KKMCreateOFDPacket [12:25:10]OFDProtocolAddRootSTLVToBuf [12:25:10]FM_MakeSignedData [12:25:10]FM_MakeSignedData [12:25:10]SAM_PROTO_SignData [12:25:10]wFMCommunicate request_size=4 [12:25:10]MH_SAM_APDU [12:25:10]CAPDU: 80 0D 01 02 [12:25:10]Write to MH i2c: E2 08 00 08 1E 80 0D 01 02 00 00 00 00 9F [12:25:10]Write i2c OK [12:25:10]MH_I2C_Read... [12:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:10]Read from MH i2c: E2 [12:25:10]MH_I2C_Read... [12:25:10]Read from MH i2c: E2 03 00 [12:25:10]MH_I2C_Read... [12:25:10]Read from MH i2c: E2 03 00 08 1E 00 90 00 9A [12:25:10]RAPDU: 90 00 [12:25:10]wFMCommunicate OK [12:25:10]wFMCommunicate request_size=255 [12:25:10]MH_SAM_APDU [12:25: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 32 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 82 00 00 00 F4 03 04 00 A6 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 36 CD 01 00 35 04 06 00 25 [12:25:10]Write to MH i2c: E2 02 01 09 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 A6 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 36 CD 01 00 35 04 06 00 25 00 00 30 [12:25:10]Write i2c OK [12:25:10]MH_I2C_Read... [12:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:11]Read from MH i2c: E2 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 03 00 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 03 00 09 1E 00 90 00 9B [12:25:11]RAPDU: 90 00 [12:25:11]wFMCommunicate OK [12:25:11]wFMCommunicate request_size=10 [12:25:11]MH_SAM_APDU [12:25:11]CAPDU: 80 0D 02 02 05 9C D5 EE DF 3C [12:25:11]Write to MH i2c: E2 0D 00 0A 1E 80 0D 02 02 05 00 9C D5 EE DF 3C 00 00 26 [12:25:11]Write i2c OK [12:25:11]MH_I2C_Read... [12:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:11]Read from MH i2c: E2 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 03 00 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 03 00 0A 1E 00 90 00 9C [12:25:11]RAPDU: 90 00 [12:25:11]wFMCommunicate OK [12:25:11]wFMCommunicate request_size=4 [12:25:11]MH_SAM_APDU [12:25:11]CAPDU: 80 0D 03 02 [12:25:11]Write to MH i2c: E2 08 00 0B 1E 80 0D 03 02 00 00 00 00 A4 [12:25:11]Write i2c OK [12:25:11]MH_I2C_Read... [12:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:11]Read from MH i2c: E2 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 0B 00 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 0B 00 0B 1E 00 B0 C2 57 4E BF B9 FA BD 90 00 EB [12:25:11]RAPDU: B0 C2 57 4E BF B9 FA BD 90 00 [12:25:11]wFMCommunicate OK [12:25:11]SAM_PROTO_SignData done [12:25:11]FM_MakeSignedData done [12:25:11]CreateOFDProtocolMessage [12:25:11]wFMCommunicate request_size=4 [12:25:11]MH_SAM_APDU [12:25:11]CAPDU: 80 11 00 00 [12:25:11]Write to MH i2c: E2 08 00 0C 1E 80 11 00 00 00 00 00 00 A4 [12:25:11]Write i2c OK [12:25:11]MH_I2C_Read... [12:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:11]Read from MH i2c: E2 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 17 00 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: E2 17 00 0C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FB [12:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:25:11]wFMCommunicate OK [12:25:11]CreateOFDProtocolMessage done [12:25:11]OFDSenderStorePacket 118070 [12:25:11]StoreOFDPacket docnum=118070 [12:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 72 BA 07 01 75 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 82 00 00 00 F4 03 04 00 A6 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 36 CD 01 00 35 04 06 00 25 9C D5 EE DF 3C B0 C2 57 4E BF B9 FA BD [12:25:11]CheckFolder [12:25:11]dirname=/storage/ofd_packets [12:25:11]CheckFolder done [12:25:11]ProducePacketName [12:25:11]name=ofd_packets/00118070 [12:25:11]NVStorageSaveData ofd_packets/00118070 [12:25:11]File name is /storage/ofd_packets/00118070 [12:25:11]Write 301 bytes [12:25:11]NVStorageSaveData done [12:25:11]OFDSenderStorePacket done [12:25:11]KKMCreateOFDPacket done [12:25:11]NVStorageSaveData kkm_last_timestamp [12:25:11]File name is /storage/kkm_last_timestamp [12:25:11]Write 4 bytes [12:25:11]NVStorageSaveData done [12:25:11]ExternCall_PrintAddStr [12:25:11]wPrintStart [12:25:11]Write to MH i2c: 01 00 00 0D 1E 2B [12:25:11]Write i2c OK [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: 01 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: 01 07 00 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: 01 07 00 0D 1E 00 00 00 00 00 FF 0F 40 [12:25:11]RasterBufferAndPrint [12:25:11]line Счет N : (1)245866 [12:25:11]line ИНН: 02508201610067 [12:25:11]line Контрольно-Кассовый Чек [12:25:11]line ПРОДАЖА [12:25:11]line ТРК (МРК, ГНК) : 11 [12:25:11]line Товар: 2710124130 [12:25:11]line Аи-92-К-2 [12:25:11]line 8.970 * 66.90 [12:25:11]line = 600.09 [12:25:11]line НДС 12% НСП 1% [12:25:11]line > о реализуемом товаре [12:25:11]line ОКРУГЛЕНИЕ: -0.09 [12:25:11]line ИТОГО: 600.00 [12:25:11]line Внесено: 600.00 [12:25:11]line СДАЧА: 0.00 [12:25:11]line НСП 1% : 5.31 [12:25:11]line НДС 12% : 63.73 [12:25:11]line Наличными: 600.00 [12:25:11]line Безнал.: 0.00 [12:25:11]line Место: АЗС № 173 "Партнер Нефть" [12:25:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:25:11]line СНО: Общий режим [12:25:11]line Чек 130 30.10.2024 12:25 [12:25:11]line Смена: 545 ФФД: 1.0 [12:25:11]line ЗНМ: 0300000115 [12:25:11]line РНМ: 0000000000091782 [12:25:11]line Версия ККМ: 001 [12:25:11]line ФМ: 0000000000871767 [12:25:11]line ФД: 118070 [12:25:11]line ФПД: 41355534327612 [12:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122510&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118070&fm=41355534327612&tin=02508201610067®Number=0000000000091782&sum=60000 [12:25:11]written 0, free lines is 4095 [12:25:11]OFD Sender: Processing packet 118070 [packets to send 77, broken 76] [12:25:11]ProducePacketName [12:25:11]name=ofd_packets/00118070 [12:25:11]OFD Sender: To server: pG, [12:25:11]CommunicateWithHost lk.salyk.kg:30040 [12:25:11]ConnectInit lk.salyk.kg [12:25:11]Connected sock=7 [12:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 72 BA 07 01 75 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 82 00 00 00 F4 03 04 00 A6 25 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 36 CD 01 00 35 04 06 00 25 9C D5 EE DF 3C B0 C2 57 4E BF B9 FA BD [12:25: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 36 37 4F 00 00 00 78 D0 47 00 26 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 36 37 10 04 04 00 36 CD 01 00 F4 03 04 00 5E D1 21 67 B6 04 01 00 00 EE AC 5B 15 24 0E 41 38 [12:25:11]CommunicateWithHost err = 0 [12:25:11]CheckOFDResponse [12:25:11]1017 (14) - 77093643461234 [12:25:11]1041 (16) - 0000000000871767 [12:25:11]1040 (4) - 118070 [12:25:11]1012 (4) - 30.10.2024 06:25 [12:25:11]1206 (1) - 0 [12:25:11]OFD Sender: Remove packet 118070 [12:25:11]ProducePacketName [12:25:11]name=ofd_packets/00118070 [12:25:11]NVStorageDeleteData [12:25:11]Write to MH i2c: 01 00 00 37 1E 55 [12:25:11]Write i2c OK [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: 01 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: 01 07 00 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: 01 07 00 37 1E 00 00 00 00 00 BE 0C 26 [12:25:11]RasterBufferAndPrint [12:25:11]line [12:25:11]line [12:25:11]line [12:25:11]line [12:25:11]line [12:25:11]written 0, free lines is 3268 [12:25:11]MH_Cut [12:25:11]Write to MH i2c: D1 01 00 3E 1E 01 2E [12:25:11]Write i2c OK [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: D1 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: D1 01 00 [12:25:11]MH_I2C_Read... [12:25:11]Read from MH i2c: D1 01 00 3E 1E 00 2D [12:25:11]Write to MH i2c: 01 00 00 3F 1E 5D [12:25:11]Write i2c OK [12:25:11]MH_I2C_Read... [12:25:12]OFD Sender: No OFD packet to send [12:25:12]*** Cut start [12:25:12]*** Purtial cut [12:25:12]*** Stage 1: CUTSNS_PIN = 1 [12:25:13]Read from MH i2c: 01 [12:25:13]MH_I2C_Read... [12:25:13]*** Stop cut motor [12:25:13]*** Cut end [12:25:13]Read from MH i2c: 01 07 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: 01 07 00 3F 1E 00 00 00 00 00 FF 0F 72 [12:25:13]process_action close_receipt done [12:25:13]requested_data is exist [12:25:13]produce_requested_data [12:25:13]requested_item fm.sn is exist - process it [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 11 00 00 [12:25:13]Write to MH i2c: E2 08 00 40 1E 80 11 00 00 00 00 00 00 D8 [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 17 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 17 00 40 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2F [12:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:25:13]wFMCommunicate OK [12:25:13]requested_item fd.num is exist - process it [12:25:13]SAM_PROTO_GetFieldsCounters [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 13 00 00 [12:25:13]Write to MH i2c: E2 08 00 41 1E 80 13 00 00 00 00 00 00 DB [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 62 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 62 00 41 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 36 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:25: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 36 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:13]wFMCommunicate OK [12:25:13]SAM_PROTO_GetFieldsCounters done [12:25:13]requested_item shift.num is exist - process it [12:25:13]requested_item shift.opened is exist - process it [12:25:13]req_shift_opened [12:25:13]FM_GetShiftState [12:25:13]SAM_PROTO_GetShiftState [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 13 01 00 [12:25:13]Write to MH i2c: E2 08 00 42 1E 80 13 01 00 00 00 00 00 DD [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 0E 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 0E 00 42 1E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B5 [12:25:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:25:13]wFMCommunicate OK [12:25:13]SAM_PROTO_GetShiftState done [12:25:13]FM_GetShiftState done [12:25:13]req_shift_opened done [12:25:13]requested_item shift.open_date is exist - process it [12:25:13]req_shift_open_date [12:25:13]req_shift_open_date done [12:25:13]produce_requested_data done [12:25:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118070,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:25:13]process_action_free close_receipt [12:25:13]json_value_free [12:25:13]json_value_free done [12:25:13]process_json_proto returns [12:25:13]Send response to host [12:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118070,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:25:13]free response buf [12:25:13]execute_script done [12:25:13]execute_script returns [12:25:13]free content buf [12:25:13]Sock 9.Close socket [12:25:13]Sock 9.Thread stoped [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:30]accept exits with 10 [12:29:30]New connection [12:29:30]New thread 3067415908 created [12:29:30]Thread 3067559268 joined [12:29:30]Waiting for new connection... [12:29:30] Sock 10.Parse request [12:29:30]Sock 10.Check first char [12:29:30]Sock 10.First char is OK [12:29:30]request: POST /json_proto HTTP/1.0 [12:29:30]Method: POST [12:29:30]URL: /json_proto [12:29:30]Method is POST - this is cgi request [12:29:30]url: /json_proto [12:29:30]query_string will be loaded in cgi processing [12:29:30]execute_cgi json_proto POST (null) [12:29:30]execute_cgi path=json_proto method=POST [12:29:30]POST find Content-Length [12:29:30]Host: 172.17.96.67:8080 [12:29:30]Content-Length: 984 [12:29:30]Content-Type: application/json [12:29:30] [12:29:30]POST finish read [12:29:30]Found Content-Length = 984 [12:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:30]execute_script... [12:29: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)245867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:30]POST & json_proto [12:29:30]process_json_proto [12:29:30]json parsed OK: [12:29:30]protocol is kg_v1.0 [12:29:30]action value=close_receipt [12:29:30]process_action close_receipt [12:29:30]cmd_close_receipt [12:29:30]MH_GetDate [12:29:30]Write to MH i2c: F0 00 00 43 1E 50 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: F0 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: F0 09 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: F0 09 00 43 1E 00 AB 26 22 67 47 6C 1F 67 EC [12:29:30]GetLastDocTimeStamp 1730291110 [12:29:30]current date 1730291371 [12:29:30]FM_GetShiftState [12:29:30]SAM_PROTO_GetShiftState [12:29:30]wFMCommunicate request_size=4 [12:29:30]MH_SAM_APDU [12:29:30]CAPDU: 80 13 01 00 [12:29:30]Write to MH i2c: E2 08 00 44 1E 80 13 01 00 00 00 00 00 DF [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:30]Read from MH i2c: E2 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: E2 0E 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: E2 0E 00 44 1E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B7 [12:29:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:29:30]wFMCommunicate OK [12:29:30]SAM_PROTO_GetShiftState done [12:29:30]FM_GetShiftState done [12:29:30]opened in 1730246605 [12:29:30]opened+sec_in_day 1730333005 [12:29:30]quantity*price = 200006 [12:29:30]sum+1 = 200008 [12:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 131 30.10.2024 12:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 30.35 сом ФМ: 0000000000871767 ФД: 118071 ФПД: 208599769472313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122931&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118071&fm=208599769472313&tin=02508201610067®Number=0000000000091782&sum=200000 [12:29:31]StoreToDocumentArchive [12:29:31]shift 545 fd 118071 [12:29:31]save to /storage/0545/doc_00118071 [12:29:31]save last doc name /storage/0545/doc_00118071 to /storage/kkm_last_doc_name [12:29:31]save OK [12:29:31]Clear old archive folders... [12:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:31]tlvbuf is 0065FD00 [12:29:31]SAM_PROTO_ClearQueue [12:29:31]wFMCommunicate request_size=4 [12:29:31]MH_SAM_APDU [12:29:31]CAPDU: 80 09 00 00 [12:29:31]Write to MH i2c: E2 08 00 51 1E 80 09 00 00 00 00 00 00 E1 [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:31]Read from MH i2c: E2 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 03 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 03 00 51 1E 00 90 00 E3 [12:29:31]RAPDU: 90 00 [12:29:31]wFMCommunicate OK [12:29:31]SAM_PROTO_ClearQueue done [12:29:31]KKMCreateOFDPacket [12:29:31]OFDProtocolAddRootSTLVToBuf [12:29:31]FM_MakeSignedData [12:29:31]FM_MakeSignedData [12:29:31]SAM_PROTO_SignData [12:29:31]wFMCommunicate request_size=4 [12:29:31]MH_SAM_APDU [12:29:31]CAPDU: 80 0D 01 02 [12:29:31]Write to MH i2c: E2 08 00 52 1E 80 0D 01 02 00 00 00 00 E9 [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:31]Read from MH i2c: E2 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 03 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 03 00 52 1E 00 90 00 E4 [12:29:31]RAPDU: 90 00 [12:29:31]wFMCommunicate OK [12:29:31]wFMCommunicate request_size=255 [12:29:31]MH_SAM_APDU [12:29: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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AB 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CD 01 00 35 04 06 00 BD [12:29:31]Write to MH i2c: E2 02 01 53 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AB 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CD 01 00 35 04 06 00 BD 00 00 C4 [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 03 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 03 00 53 1E 00 90 00 E5 [12:29:32]RAPDU: 90 00 [12:29:32]wFMCommunicate OK [12:29:32]wFMCommunicate request_size=10 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 0D 02 02 05 B8 6B 28 DD 39 [12:29:32]Write to MH i2c: E2 0D 00 54 1E 80 0D 02 02 05 00 B8 6B 28 DD 39 00 00 57 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 03 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [12:29:32]RAPDU: 90 00 [12:29:32]wFMCommunicate OK [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 0D 03 02 [12:29:32]Write to MH i2c: E2 08 00 55 1E 80 0D 03 02 00 00 00 00 EE [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0B 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0B 00 55 1E 00 6D 9D D3 63 F0 55 57 4E 90 00 19 [12:29:32]RAPDU: 6D 9D D3 63 F0 55 57 4E 90 00 [12:29:32]wFMCommunicate OK [12:29:32]SAM_PROTO_SignData done [12:29:32]FM_MakeSignedData done [12:29:32]CreateOFDProtocolMessage [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 11 00 00 [12:29:32]Write to MH i2c: E2 08 00 56 1E 80 11 00 00 00 00 00 00 EE [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 17 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 17 00 56 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 45 [12:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:29:32]wFMCommunicate OK [12:29:32]CreateOFDProtocolMessage done [12:29:32]OFDSenderStorePacket 118071 [12:29:32]StoreOFDPacket docnum=118071 [12:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0D B2 07 01 9D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AB 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CD 01 00 35 04 06 00 BD B8 6B 28 DD 39 6D 9D D3 63 F0 55 57 4E [12:29:32]CheckFolder [12:29:32]dirname=/storage/ofd_packets [12:29:32]CheckFolder done [12:29:32]ProducePacketName [12:29:32]name=ofd_packets/00118071 [12:29:32]NVStorageSaveData ofd_packets/00118071 [12:29:32]File name is /storage/ofd_packets/00118071 [12:29:32]Write 301 bytes [12:29:32]NVStorageSaveData done [12:29:32]OFDSenderStorePacket done [12:29:32]KKMCreateOFDPacket done [12:29:32]NVStorageSaveData kkm_last_timestamp [12:29:32]File name is /storage/kkm_last_timestamp [12:29:32]Write 4 bytes [12:29:32]NVStorageSaveData done [12:29:32]ExternCall_PrintAddStr [12:29:32]wPrintStart [12:29:32]Write to MH i2c: 01 00 00 57 1E 75 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: 01 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: 01 07 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: 01 07 00 57 1E 00 00 00 00 00 FF 0F 8A [12:29:32]RasterBufferAndPrint [12:29:32]line Счет N : (1)245867 [12:29:32]line ИНН: 02508201610067 [12:29:32]line Контрольно-Кассовый Чек [12:29:32]line ПРОДАЖА [12:29:32]line ТРК (МРК, ГНК) : 21 [12:29:32]line Товар: 2710124130 [12:29:32]line Аи-92-К-2 [12:29:32]line 30.350 * 65.90 [12:29:32]line = 2000.07 [12:29:32]line НДС 12% НСП 1% [12:29:32]line > о реализуемом товаре [12:29:32]line ОКРУГЛЕНИЕ: -0.07 [12:29:32]line ИТОГО: 2000.00 [12:29:32]line Внесено: 2000.00 [12:29:32]line СДАЧА: 0.00 [12:29:32]line НСП 1% : 17.70 [12:29:32]line НДС 12% : 212.40 [12:29:32]line Наличными: 2000.00 [12:29:32]line Безнал.: 0.00 [12:29:32]line Место: АЗС № 173 "Партнер Нефть" [12:29:32]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:29:32]line СНО: Общий режим [12:29:32]line Чек 131 30.10.2024 12:29 [12:29:32]line Смена: 545 ФФД: 1.0 [12:29:32]line ЗНМ: 0300000115 [12:29:32]line РНМ: 0000000000091782 [12:29:32]line Версия ККМ: 001 [12:29:32]line [12:29:32]line Дисконтная программа [12:29:32]line АИ-92 [12:29:32]line номер 173 [12:29:32]line сэкономлено 30.35 сом [12:29:32]line ФМ: 0000000000871767 [12:29:32]line ФД: 118071 [12:29:32]line ФПД: 208599769472313 [12:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122931&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118071&fm=208599769472313&tin=02508201610067®Number=0000000000091782&sum=200000 [12:29:32]OFD Sender: Processing packet 118071 [packets to send 77, broken 76] [12:29:32]ProducePacketName [12:29:32]name=ofd_packets/00118071 [12:29:32]OFD Sender: To server: pG, [12:29:32]CommunicateWithHost lk.salyk.kg:30040 [12:29:32]ConnectInit lk.salyk.kg [12:29:32]written 0, free lines is 4095 [12:29:32]Connected sock=9 [12:29: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 36 37 0F 01 00 00 0D B2 07 01 9D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AB 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CD 01 00 35 04 06 00 BD B8 6B 28 DD 39 6D 9D D3 63 F0 55 57 4E [12:29: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 36 37 4F 00 00 00 EB A7 47 00 1B 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 37 CD 01 00 F4 03 04 00 63 D2 21 67 B6 04 01 00 00 8E D2 6E 62 CE 7E A9 7D [12:29:32]CommunicateWithHost err = 0 [12:29:32]CheckOFDResponse [12:29:32]1017 (14) - 77093643461234 [12:29:32]1041 (16) - 0000000000871767 [12:29:32]1040 (4) - 118071 [12:29:32]1012 (4) - 30.10.2024 06:29 [12:29:32]1206 (1) - 0 [12:29:32]OFD Sender: Remove packet 118071 [12:29:32]ProducePacketName [12:29:32]name=ofd_packets/00118071 [12:29:32]NVStorageDeleteData [12:29:33]Write to MH i2c: 01 00 00 86 1E A4 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: 01 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: 01 07 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: 01 07 00 86 1E 00 00 00 00 00 6C 0C 23 [12:29:33]RasterBufferAndPrint [12:29:33]line [12:29:33]line [12:29:33]line [12:29:33]line [12:29:33]line [12:29:33]written 0, free lines is 3188 [12:29:33]MH_Cut [12:29:33]Write to MH i2c: D1 01 00 8D 1E 01 7D [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: D1 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: D1 01 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: D1 01 00 8D 1E 00 7C [12:29:33]Write to MH i2c: 01 00 00 8E 1E AC [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]OFD Sender: No OFD packet to send [12:29:33]*** Cut start [12:29:33]*** Purtial cut [12:29:33]*** Stage 1: CUTSNS_PIN = 1 [12:29:34]Read from MH i2c: 01 [12:29:34]MH_I2C_Read... [12:29:34]*** Stop cut motor [12:29:34]*** Cut end [12:29:34]Read from MH i2c: 01 07 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 8E 1E 00 00 00 00 00 FF 0F C1 [12:29:34]process_action close_receipt done [12:29:34]requested_data is exist [12:29:34]produce_requested_data [12:29:34]requested_item fm.sn is exist - process it [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 11 00 00 [12:29:34]Write to MH i2c: E2 08 00 8F 1E 80 11 00 00 00 00 00 00 27 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 8F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7E [12:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:29:34]wFMCommunicate OK [12:29:34]requested_item fd.num is exist - process it [12:29:34]SAM_PROTO_GetFieldsCounters [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 13 00 00 [12:29:34]Write to MH i2c: E2 08 00 90 1E 80 13 00 00 00 00 00 00 2A [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 62 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 62 00 90 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 37 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [12:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 37 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:34]wFMCommunicate OK [12:29:34]SAM_PROTO_GetFieldsCounters done [12:29:34]requested_item shift.num is exist - process it [12:29:34]requested_item shift.opened is exist - process it [12:29:34]req_shift_opened [12:29:34]FM_GetShiftState [12:29:34]SAM_PROTO_GetShiftState [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 13 01 00 [12:29:34]Write to MH i2c: E2 08 00 91 1E 80 13 01 00 00 00 00 00 2C [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0E 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0E 00 91 1E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 04 [12:29:34]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:29:34]wFMCommunicate OK [12:29:34]SAM_PROTO_GetShiftState done [12:29:34]FM_GetShiftState done [12:29:34]req_shift_opened done [12:29:34]requested_item shift.open_date is exist - process it [12:29:34]req_shift_open_date [12:29:34]req_shift_open_date done [12:29:34]produce_requested_data done [12:29:34]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118071,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:29:34]process_action_free close_receipt [12:29:34]json_value_free [12:29:34]json_value_free done [12:29:34]process_json_proto returns [12:29:34]Send response to host [12:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118071,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:29:34]free response buf [12:29:34]execute_script done [12:29:34]execute_script returns [12:29:34]free content buf [12:29:34]Sock 10.Close socket [12:29:34]Sock 10.Thread stoped [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:06]accept exits with 7 [12:30:06]New connection [12:30:06]New thread 3067559268 created [12:30:06]Thread 3067415908 joined [12:30:06]Waiting for new connection... [12:30:06] Sock 7.Parse request [12:30:06]Sock 7.Check first char [12:30:06]Sock 7.First char is OK [12:30:06]request: POST /json_proto HTTP/1.0 [12:30:06]Method: POST [12:30:06]URL: /json_proto [12:30:06]Method is POST - this is cgi request [12:30:06]url: /json_proto [12:30:06]query_string will be loaded in cgi processing [12:30:06]execute_cgi json_proto POST (null) [12:30:06]execute_cgi path=json_proto method=POST [12:30:06]POST find Content-Length [12:30:06]Host: 172.17.96.67:8080 [12:30:06]Content-Length: 682 [12:30:06]Content-Type: application/json [12:30:06] [12:30:06]POST finish read [12:30:06]Found Content-Length = 682 [12:30:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:06]execute_script... [12:30: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)245868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:06]POST & json_proto [12:30:06]process_json_proto [12:30:06]json parsed OK: [12:30:06]protocol is kg_v1.0 [12:30:06]action value=close_receipt [12:30:06]process_action close_receipt [12:30:06]cmd_close_receipt [12:30:06]MH_GetDate [12:30:06]Write to MH i2c: F0 00 00 92 1E 9F [12:30:06]Write i2c OK [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: F0 [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: F0 09 00 [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: F0 09 00 92 1E 00 CF 26 22 67 47 6C 1F 67 5F [12:30:06]GetLastDocTimeStamp 1730291371 [12:30:06]current date 1730291407 [12:30:06]FM_GetShiftState [12:30:06]SAM_PROTO_GetShiftState [12:30:06]wFMCommunicate request_size=4 [12:30:06]MH_SAM_APDU [12:30:06]CAPDU: 80 13 01 00 [12:30:06]Write to MH i2c: E2 08 00 93 1E 80 13 01 00 00 00 00 00 2E [12:30:06]Write i2c OK [12:30:06]MH_I2C_Read... [12:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:06]Read from MH i2c: E2 [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: E2 0E 00 [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: E2 0E 00 93 1E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 06 [12:30:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:30:06]wFMCommunicate OK [12:30:06]SAM_PROTO_GetShiftState done [12:30:06]FM_GetShiftState done [12:30:06]opened in 1730246605 [12:30:06]opened+sec_in_day 1730333005 [12:30:06]quantity*price = 100015 [12:30:06]sum+1 = 100017 [12:30:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 132 30.10.2024 12:30 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118072 ФПД: 255128512183214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123007&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118072&fm=255128512183214&tin=02508201610067®Number=0000000000091782&sum=100000 [12:30:07]StoreToDocumentArchive [12:30:07]shift 545 fd 118072 [12:30:07]save to /storage/0545/doc_00118072 [12:30:07]save last doc name /storage/0545/doc_00118072 to /storage/kkm_last_doc_name [12:30:07]save OK [12:30:07]Clear old archive folders... [12:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:07]tlvbuf is 006D1120 [12:30:07]SAM_PROTO_ClearQueue [12:30:07]wFMCommunicate request_size=4 [12:30:07]MH_SAM_APDU [12:30:07]CAPDU: 80 09 00 00 [12:30:07]Write to MH i2c: E2 08 00 A0 1E 80 09 00 00 00 00 00 00 30 [12:30:07]Write i2c OK [12:30:07]MH_I2C_Read... [12:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:08]Read from MH i2c: E2 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 A0 1E 00 90 00 32 [12:30:08]RAPDU: 90 00 [12:30:08]wFMCommunicate OK [12:30:08]SAM_PROTO_ClearQueue done [12:30:08]KKMCreateOFDPacket [12:30:08]OFDProtocolAddRootSTLVToBuf [12:30:08]FM_MakeSignedData [12:30:08]FM_MakeSignedData [12:30:08]SAM_PROTO_SignData [12:30:08]wFMCommunicate request_size=4 [12:30:08]MH_SAM_APDU [12:30:08]CAPDU: 80 0D 01 02 [12:30:08]Write to MH i2c: E2 08 00 A1 1E 80 0D 01 02 00 00 00 00 38 [12:30:08]Write i2c OK [12:30:08]MH_I2C_Read... [12:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:08]Read from MH i2c: E2 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 A1 1E 00 90 00 33 [12:30:08]RAPDU: 90 00 [12:30:08]wFMCommunicate OK [12:30:08]wFMCommunicate request_size=255 [12:30:08]MH_SAM_APDU [12:30:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 84 00 00 00 F4 03 04 00 CF 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CD 01 00 35 04 06 00 E8 [12:30:08]Write to MH i2c: E2 02 01 A2 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 CF 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CD 01 00 35 04 06 00 E8 00 00 D7 [12:30:08]Write i2c OK [12:30:08]MH_I2C_Read... [12:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:08]Read from MH i2c: E2 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 A2 1E 00 90 00 34 [12:30:08]RAPDU: 90 00 [12:30:08]wFMCommunicate OK [12:30:08]wFMCommunicate request_size=10 [12:30:08]MH_SAM_APDU [12:30:08]CAPDU: 80 0D 02 02 05 09 BC 57 3B AE [12:30:08]Write to MH i2c: E2 0D 00 A3 1E 80 0D 02 02 05 00 09 BC 57 3B AE 00 00 4A [12:30:08]Write i2c OK [12:30:08]MH_I2C_Read... [12:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:08]Read from MH i2c: E2 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 03 00 A3 1E 00 90 00 35 [12:30:08]RAPDU: 90 00 [12:30:08]wFMCommunicate OK [12:30:08]wFMCommunicate request_size=4 [12:30:08]MH_SAM_APDU [12:30:08]CAPDU: 80 0D 03 02 [12:30:08]Write to MH i2c: E2 08 00 A4 1E 80 0D 03 02 00 00 00 00 3D [12:30:08]Write i2c OK [12:30:08]MH_I2C_Read... [12:30:08]OFD Sender: No OFD packet to send [12:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:08]Read from MH i2c: E2 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 0B 00 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 0B 00 A4 1E 00 95 7A 80 77 0C 49 D5 DC 90 00 4A [12:30:08]RAPDU: 95 7A 80 77 0C 49 D5 DC 90 00 [12:30:08]wFMCommunicate OK [12:30:08]SAM_PROTO_SignData done [12:30:08]FM_MakeSignedData done [12:30:08]CreateOFDProtocolMessage [12:30:08]wFMCommunicate request_size=4 [12:30:08]MH_SAM_APDU [12:30:08]CAPDU: 80 11 00 00 [12:30:08]Write to MH i2c: E2 08 00 A5 1E 80 11 00 00 00 00 00 00 3D [12:30:08]Write i2c OK [12:30:08]MH_I2C_Read... [12:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:08]Read from MH i2c: E2 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 17 00 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: E2 17 00 A5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 94 [12:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:30:08]wFMCommunicate OK [12:30:08]CreateOFDProtocolMessage done [12:30:08]OFDSenderStorePacket 118072 [12:30:08]StoreOFDPacket docnum=118072 [12:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3E C6 07 01 94 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 32 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 84 00 00 00 F4 03 04 00 CF 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CD 01 00 35 04 06 00 E8 09 BC 57 3B AE 95 7A 80 77 0C 49 D5 DC [12:30:08]CheckFolder [12:30:08]dirname=/storage/ofd_packets [12:30:08]CheckFolder done [12:30:08]ProducePacketName [12:30:08]name=ofd_packets/00118072 [12:30:08]NVStorageSaveData ofd_packets/00118072 [12:30:08]File name is /storage/ofd_packets/00118072 [12:30:08]Write 301 bytes [12:30:08]NVStorageSaveData done [12:30:08]OFDSenderStorePacket done [12:30:08]KKMCreateOFDPacket done [12:30:08]NVStorageSaveData kkm_last_timestamp [12:30:08]File name is /storage/kkm_last_timestamp [12:30:08]Write 4 bytes [12:30:08]NVStorageSaveData done [12:30:08]ExternCall_PrintAddStr [12:30:08]wPrintStart [12:30:08]Write to MH i2c: 01 00 00 A6 1E C4 [12:30:08]Write i2c OK [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: 01 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: 01 07 00 [12:30:08]MH_I2C_Read... [12:30:08]Read from MH i2c: 01 07 00 A6 1E 00 00 00 00 00 FF 0F D9 [12:30:08]RasterBufferAndPrint [12:30:08]line Счет N : (1)245868 [12:30:08]line ИНН: 02508201610067 [12:30:08]line Контрольно-Кассовый Чек [12:30:08]line ПРОДАЖА [12:30:08]line ТРК (МРК, ГНК) : 11 [12:30:08]line Товар: 2710124130 [12:30:08]line Аи-92-К-2 [12:30:08]line 14.950 * 66.90 [12:30:08]line = 1000.16 [12:30:08]line НДС 12% НСП 1% [12:30:08]line > о реализуемом товаре [12:30:08]line ОКРУГЛЕНИЕ: -0.16 [12:30:08]line ИТОГО: 1000.00 [12:30:08]line Внесено: 1000.00 [12:30:08]line СДАЧА: 0.00 [12:30:08]line НСП 1% : 8.85 [12:30:08]line НДС 12% : 106.21 [12:30:08]line Наличными: 1000.00 [12:30:08]line Безнал.: 0.00 [12:30:08]line Место: АЗС № 173 "Партнер Нефть" [12:30:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:30:08]line СНО: Общий режим [12:30:08]line Чек 132 30.10.2024 12:30 [12:30:08]line Смена: 545 ФФД: 1.0 [12:30:08]line ЗНМ: 0300000115 [12:30:08]line РНМ: 0000000000091782 [12:30:08]line Версия ККМ: 001 [12:30:08]line ФМ: 0000000000871767 [12:30:08]line ФД: 118072 [12:30:08]line ФПД: 255128512183214 [12:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123007&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118072&fm=255128512183214&tin=02508201610067®Number=0000000000091782&sum=100000 [12:30:08]OFD Sender: Processing packet 118072 [packets to send 77, broken 76] [12:30:08]ProducePacketName [12:30:08]name=ofd_packets/00118072 [12:30:08]OFD Sender: To server: pG, [12:30:08]CommunicateWithHost lk.salyk.kg:30040 [12:30:08]ConnectInit lk.salyk.kg [12:30:08]written 0, free lines is 4095 [12:30:08]Connected sock=10 [12: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 36 37 0F 01 00 00 3E C6 07 01 94 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 32 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 84 00 00 00 F4 03 04 00 CF 26 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CD 01 00 35 04 06 00 E8 09 BC 57 3B AE 95 7A 80 77 0C 49 D5 DC [12:30: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 36 37 4F 00 00 00 52 DB 47 00 93 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 38 CD 01 00 F4 03 04 00 87 D2 21 67 B6 04 01 00 00 DA FC A6 EA C2 9D CB 19 [12:30:09]CommunicateWithHost err = 0 [12:30:09]CheckOFDResponse [12:30:09]1017 (14) - 77093643461234 [12:30:09]1041 (16) - 0000000000871767 [12:30:09]1040 (4) - 118072 [12:30:09]1012 (4) - 30.10.2024 06:30 [12:30:09]1206 (1) - 0 [12:30:09]OFD Sender: Remove packet 118072 [12:30:09]ProducePacketName [12:30:09]name=ofd_packets/00118072 [12:30:09]NVStorageDeleteData [12:30:09]Write to MH i2c: 01 00 00 D0 1E EE [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: 01 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: 01 07 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: 01 07 00 D0 1E 00 00 00 00 00 C8 0C C9 [12:30:09]RasterBufferAndPrint [12:30:09]line [12:30:09]line [12:30:09]line [12:30:09]line [12:30:09]line [12:30:09]written 0, free lines is 3278 [12:30:09]MH_Cut [12:30:09]Write to MH i2c: D1 01 00 D7 1E 01 C7 [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: D1 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: D1 01 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: D1 01 00 D7 1E 00 C6 [12:30:09]Write to MH i2c: 01 00 00 D8 1E F6 [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]OFD Sender: No OFD packet to send [12:30:10]*** Cut start [12:30:10]*** Purtial cut [12:30:10]*** Stage 1: CUTSNS_PIN = 1 [12:30:10]Read from MH i2c: 01 [12:30:10]MH_I2C_Read... [12:30:10]*** Stop cut motor [12:30:10]*** Cut end [12:30:10]Read from MH i2c: 01 07 00 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: 01 07 00 D8 1E 00 00 00 00 00 FF 0F 0B [12:30:10]process_action close_receipt done [12:30:10]requested_data is exist [12:30:10]produce_requested_data [12:30:10]requested_item fm.sn is exist - process it [12:30:10]wFMCommunicate request_size=4 [12:30:10]MH_SAM_APDU [12:30:10]CAPDU: 80 11 00 00 [12:30:10]Write to MH i2c: E2 08 00 D9 1E 80 11 00 00 00 00 00 00 71 [12:30:10]Write i2c OK [12:30:10]MH_I2C_Read... [12:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:10]Read from MH i2c: E2 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: E2 17 00 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: E2 17 00 D9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C8 [12:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:30:10]wFMCommunicate OK [12:30:10]requested_item fd.num is exist - process it [12:30:10]SAM_PROTO_GetFieldsCounters [12:30:10]wFMCommunicate request_size=4 [12:30:10]MH_SAM_APDU [12:30:10]CAPDU: 80 13 00 00 [12:30:10]Write to MH i2c: E2 08 00 DA 1E 80 13 00 00 00 00 00 00 74 [12:30:10]Write i2c OK [12:30:10]MH_I2C_Read... [12:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:10]Read from MH i2c: E2 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: E2 62 00 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: E2 62 00 DA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 38 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [12:30: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 38 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:10]wFMCommunicate OK [12:30:10]SAM_PROTO_GetFieldsCounters done [12:30:10]requested_item shift.num is exist - process it [12:30:10]requested_item shift.opened is exist - process it [12:30:10]req_shift_opened [12:30:10]FM_GetShiftState [12:30:10]SAM_PROTO_GetShiftState [12:30:10]wFMCommunicate request_size=4 [12:30:10]MH_SAM_APDU [12:30:10]CAPDU: 80 13 01 00 [12:30:10]Write to MH i2c: E2 08 00 DB 1E 80 13 01 00 00 00 00 00 76 [12:30:10]Write i2c OK [12:30:10]MH_I2C_Read... [12:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:10]Read from MH i2c: E2 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: E2 0E 00 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: E2 0E 00 DB 1E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4E [12:30:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:30:10]wFMCommunicate OK [12:30:10]SAM_PROTO_GetShiftState done [12:30:10]FM_GetShiftState done [12:30:10]req_shift_opened done [12:30:10]requested_item shift.open_date is exist - process it [12:30:10]req_shift_open_date [12:30:10]req_shift_open_date done [12:30:10]produce_requested_data done [12:30:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118072,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:30:10]process_action_free close_receipt [12:30:10]json_value_free [12:30:10]json_value_free done [12:30:10]process_json_proto returns [12:30:10]Send response to host [12:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118072,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:30:10]free response buf [12:30:10]execute_script done [12:30:10]execute_script returns [12:30:10]free content buf [12:30:10]Sock 7.Close socket [12:30:10]Sock 7.Thread stoped [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:02]accept exits with 9 [12:31:02]New connection [12:31:02]New thread 3067415908 created [12:31:02]Thread 3067559268 joined [12:31:02]Waiting for new connection... [12:31:02] Sock 9.Parse request [12:31:02]Sock 9.Check first char [12:31:02]Sock 9.First char is OK [12:31:02]request: POST /json_proto HTTP/1.0 [12:31:02]Method: POST [12:31:02]URL: /json_proto [12:31:02]Method is POST - this is cgi request [12:31:02]url: /json_proto [12:31:02]query_string will be loaded in cgi processing [12:31:02]execute_cgi json_proto POST (null) [12:31:02]execute_cgi path=json_proto method=POST [12:31:02]POST find Content-Length [12:31:02]Host: 172.17.96.67:8080 [12:31:02]Content-Length: 677 [12:31:02]Content-Type: application/json [12:31:02] [12:31:02]POST finish read [12:31:02]Found Content-Length = 677 [12:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:31:02]execute_script... [12:31: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)245869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:31:02]POST & json_proto [12:31:02]process_json_proto [12:31:02]json parsed OK: [12:31:02]protocol is kg_v1.0 [12:31:02]action value=close_receipt [12:31:02]process_action close_receipt [12:31:02]cmd_close_receipt [12:31:02]MH_GetDate [12:31:02]Write to MH i2c: F0 00 00 DC 1E E9 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 09 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 09 00 DC 1E 00 07 27 22 67 47 6C 1F 67 E2 [12:31:02]GetLastDocTimeStamp 1730291407 [12:31:02]current date 1730291463 [12:31:02]FM_GetShiftState [12:31:02]SAM_PROTO_GetShiftState [12:31:02]wFMCommunicate request_size=4 [12:31:02]MH_SAM_APDU [12:31:02]CAPDU: 80 13 01 00 [12:31:02]Write to MH i2c: E2 08 00 DD 1E 80 13 01 00 00 00 00 00 78 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:02]Read from MH i2c: E2 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: E2 0E 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: E2 0E 00 DD 1E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 50 [12:31:02]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:31:02]wFMCommunicate OK [12:31:02]SAM_PROTO_GetShiftState done [12:31:02]FM_GetShiftState done [12:31:02]opened in 1730246605 [12:31:02]opened+sec_in_day 1730333005 [12:31:02]quantity*price = 25020 [12:31:02]sum+1 = 25022 [12:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 133 30.10.2024 12:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118073 ФПД: 106127418380581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123103&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118073&fm=106127418380581&tin=02508201610067®Number=0000000000091782&sum=25000 [12:31:04]StoreToDocumentArchive [12:31:04]shift 545 fd 118073 [12:31:04]save to /storage/0545/doc_00118073 [12:31:04]save last doc name /storage/0545/doc_00118073 to /storage/kkm_last_doc_name [12:31:04]save OK [12:31:04]Clear old archive folders... [12:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:04]tlvbuf is B6F3CEC0 [12:31:04]SAM_PROTO_ClearQueue [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 09 00 00 [12:31:04]Write to MH i2c: E2 08 00 EA 1E 80 09 00 00 00 00 00 00 7A [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 EA 1E 00 90 00 7C [12:31:04]RAPDU: 90 00 [12:31:04]wFMCommunicate OK [12:31:04]SAM_PROTO_ClearQueue done [12:31:04]KKMCreateOFDPacket [12:31:04]OFDProtocolAddRootSTLVToBuf [12:31:04]FM_MakeSignedData [12:31:04]FM_MakeSignedData [12:31:04]SAM_PROTO_SignData [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 0D 01 02 [12:31:04]Write to MH i2c: E2 08 00 EB 1E 80 0D 01 02 00 00 00 00 82 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 EB 1E 00 90 00 7D [12:31:04]RAPDU: 90 00 [12:31:04]wFMCommunicate OK [12:31:04]wFMCommunicate request_size=255 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 85 00 00 00 F4 03 04 00 07 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CD 01 00 35 04 06 00 60 [12:31:04]Write to MH i2c: E2 02 01 EC 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 07 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CD 01 00 35 04 06 00 60 00 00 B3 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 EC 1E 00 90 00 7E [12:31:04]RAPDU: 90 00 [12:31:04]wFMCommunicate OK [12:31:04]wFMCommunicate request_size=10 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 0D 02 02 05 85 B7 12 D1 25 [12:31:04]Write to MH i2c: E2 0D 00 ED 1E 80 0D 02 02 05 00 85 B7 12 D1 25 00 00 D3 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 ED 1E 00 90 00 7F [12:31:04]RAPDU: 90 00 [12:31:04]wFMCommunicate OK [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 0D 03 02 [12:31:04]Write to MH i2c: E2 08 00 EE 1E 80 0D 03 02 00 00 00 00 87 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 0B 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 0B 00 EE 1E 00 C2 AB 84 D4 98 05 CA 35 90 00 E9 [12:31:04]RAPDU: C2 AB 84 D4 98 05 CA 35 90 00 [12:31:04]wFMCommunicate OK [12:31:04]SAM_PROTO_SignData done [12:31:04]FM_MakeSignedData done [12:31:04]CreateOFDProtocolMessage [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 11 00 00 [12:31:04]Write to MH i2c: E2 08 00 EF 1E 80 11 00 00 00 00 00 00 87 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 17 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 17 00 EF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DE [12:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:31:04]wFMCommunicate OK [12:31:04]CreateOFDProtocolMessage done [12:31:04]OFDSenderStorePacket 118073 [12:31:04]StoreOFDPacket docnum=118073 [12:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5C 8F 07 01 E9 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 07 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CD 01 00 35 04 06 00 60 85 B7 12 D1 25 C2 AB 84 D4 98 05 CA 35 [12:31:04]CheckFolder [12:31:04]dirname=/storage/ofd_packets [12:31:04]CheckFolder done [12:31:04]ProducePacketName [12:31:04]name=ofd_packets/00118073 [12:31:04]NVStorageSaveData ofd_packets/00118073 [12:31:04]File name is /storage/ofd_packets/00118073 [12:31:04]Write 301 bytes [12:31:04]NVStorageSaveData done [12:31:04]OFDSenderStorePacket done [12:31:04]KKMCreateOFDPacket done [12:31:04]NVStorageSaveData kkm_last_timestamp [12:31:04]File name is /storage/kkm_last_timestamp [12:31:04]Write 4 bytes [12:31:04]NVStorageSaveData done [12:31:04]ExternCall_PrintAddStr [12:31:04]wPrintStart [12:31:04]Write to MH i2c: 01 00 00 F0 1E 0E [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 07 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 07 00 F0 1E 00 00 00 00 00 FF 0F 23 [12:31:04]RasterBufferAndPrint [12:31:04]line Счет N : (1)245869 [12:31:04]line ИНН: 02508201610067 [12:31:04]line Контрольно-Кассовый Чек [12:31:04]line ПРОДАЖА [12:31:04]line ТРК (МРК, ГНК) : 21 [12:31:04]line Товар: 2710124130 [12:31:04]line Аи-92-К-2 [12:31:04]line 3.740 * 66.90 [12:31:04]line = 250.21 [12:31:04]line НДС 12% НСП 1% [12:31:04]line > о реализуемом товаре [12:31:04]line ОКРУГЛЕНИЕ: -0.21 [12:31:04]line ИТОГО: 250.00 [12:31:04]line Внесено: 250.00 [12:31:04]line СДАЧА: 0.00 [12:31:04]line НСП 1% : 2.21 [12:31:04]line НДС 12% : 26.57 [12:31:04]line Наличными: 250.00 [12:31:04]line Безнал.: 0.00 [12:31:04]line Место: АЗС № 173 "Партнер Нефть" [12:31:04]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:31:04]line СНО: Общий режим [12:31:04]line Чек 133 30.10.2024 12:31 [12:31:04]line Смена: 545 ФФД: 1.0 [12:31:04]line ЗНМ: 0300000115 [12:31:04]line РНМ: 0000000000091782 [12:31:04]line Версия ККМ: 001 [12:31:04]line ФМ: 0000000000871767 [12:31:04]line ФД: 118073 [12:31:04]line ФПД: 106127418380581 [12:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123103&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118073&fm=106127418380581&tin=02508201610067®Number=0000000000091782&sum=25000 [12:31:04]OFD Sender: Processing packet 118073 [packets to send 77, broken 76] [12:31:04]ProducePacketName [12:31:04]name=ofd_packets/00118073 [12:31:04]OFD Sender: To server: pG, [12:31:04]CommunicateWithHost lk.salyk.kg:30040 [12:31:04]ConnectInit lk.salyk.kg [12:31:04]written 0, free lines is 4095 [12:31:04]Connected sock=10 [12:31: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 36 37 0F 01 00 00 5C 8F 07 01 E9 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 07 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CD 01 00 35 04 06 00 60 85 B7 12 D1 25 C2 AB 84 D4 98 05 CA 35 [12:31: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 36 37 4F 00 00 00 AD A3 47 00 2B A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 39 CD 01 00 F4 03 04 00 BF D2 21 67 B6 04 01 00 00 12 08 75 52 02 C0 24 64 [12:31:05]CommunicateWithHost err = 0 [12:31:05]CheckOFDResponse [12:31:05]1017 (14) - 77093643461234 [12:31:05]1041 (16) - 0000000000871767 [12:31:05]1040 (4) - 118073 [12:31:05]1012 (4) - 30.10.2024 06:31 [12:31:05]1206 (1) - 0 [12:31:05]OFD Sender: Remove packet 118073 [12:31:05]ProducePacketName [12:31:05]name=ofd_packets/00118073 [12:31:05]NVStorageDeleteData [12:31:05]Write to MH i2c: 01 00 00 1A 1F 39 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: 01 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: 01 07 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: 01 07 00 1A 1F 00 00 00 00 00 BB 0C 07 [12:31:05]RasterBufferAndPrint [12:31:05]line [12:31:05]line [12:31:05]line [12:31:05]line [12:31:05]line [12:31:05]written 0, free lines is 3265 [12:31:05]MH_Cut [12:31:05]Write to MH i2c: D1 01 00 21 1F 01 12 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: D1 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: D1 01 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: D1 01 00 21 1F 00 11 [12:31:05]Write to MH i2c: 01 00 00 22 1F 41 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]OFD Sender: No OFD packet to send [12:31:06]*** Cut start [12:31:06]*** Purtial cut [12:31:06]*** Stage 1: CUTSNS_PIN = 1 [12:31:06]Read from MH i2c: 01 [12:31:06]MH_I2C_Read... [12:31:06]*** Stop cut motor [12:31:06]*** Cut end [12:31:06]Read from MH i2c: 01 07 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: 01 07 00 22 1F 00 00 00 00 00 FF 0F 56 [12:31:06]process_action close_receipt done [12:31:06]requested_data is exist [12:31:06]produce_requested_data [12:31:06]requested_item fm.sn is exist - process it [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 11 00 00 [12:31:06]Write to MH i2c: E2 08 00 23 1F 80 11 00 00 00 00 00 00 BC [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:06]Read from MH i2c: E2 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 17 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 17 00 23 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 13 [12:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:31:06]wFMCommunicate OK [12:31:06]requested_item fd.num is exist - process it [12:31:06]SAM_PROTO_GetFieldsCounters [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 13 00 00 [12:31:06]Write to MH i2c: E2 08 00 24 1F 80 13 00 00 00 00 00 00 BF [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:06]Read from MH i2c: E2 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 62 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 62 00 24 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 39 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [12:31: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 39 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:06]wFMCommunicate OK [12:31:06]SAM_PROTO_GetFieldsCounters done [12:31:06]requested_item shift.num is exist - process it [12:31:06]requested_item shift.opened is exist - process it [12:31:06]req_shift_opened [12:31:06]FM_GetShiftState [12:31:06]SAM_PROTO_GetShiftState [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 13 01 00 [12:31:06]Write to MH i2c: E2 08 00 25 1F 80 13 01 00 00 00 00 00 C1 [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:06]Read from MH i2c: E2 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 0E 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 0E 00 25 1F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 99 [12:31:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:31:06]wFMCommunicate OK [12:31:06]SAM_PROTO_GetShiftState done [12:31:06]FM_GetShiftState done [12:31:06]req_shift_opened done [12:31:06]requested_item shift.open_date is exist - process it [12:31:06]req_shift_open_date [12:31:06]req_shift_open_date done [12:31:06]produce_requested_data done [12:31:06]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118073,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:31:06]process_action_free close_receipt [12:31:06]json_value_free [12:31:06]json_value_free done [12:31:06]process_json_proto returns [12:31:06]Send response to host [12:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118073,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:31:06]free response buf [12:31:06]execute_script done [12:31:06]execute_script returns [12:31:06]free content buf [12:31:06]Sock 9.Close socket [12:31:06]Sock 9.Thread stoped [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:51]accept exits with 7 [12:32:51]New connection [12:32:51]New thread 3067559268 created [12:32:51]Thread 3067415908 joined [12:32:51]Waiting for new connection... [12:32:51] Sock 7.Parse request [12:32:51]Sock 7.Check first char [12:32:51]Sock 7.First char is OK [12:32:51]request: POST /json_proto HTTP/1.0 [12:32:51]Method: POST [12:32:51]URL: /json_proto [12:32:51]Method is POST - this is cgi request [12:32:51]url: /json_proto [12:32:51]query_string will be loaded in cgi processing [12:32:51]execute_cgi json_proto POST (null) [12:32:51]execute_cgi path=json_proto method=POST [12:32:51]POST find Content-Length [12:32:51]Host: 172.17.96.67:8080 [12:32:51]Content-Length: 677 [12:32:51]Content-Type: application/json [12:32:51] [12:32:51]POST finish read [12:32:51]Found Content-Length = 677 [12:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:51]execute_script... [12:32: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)245870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:51]POST & json_proto [12:32:51]process_json_proto [12:32:51]json parsed OK: [12:32:51]protocol is kg_v1.0 [12:32:51]action value=close_receipt [12:32:51]process_action close_receipt [12:32:51]cmd_close_receipt [12:32:51]MH_GetDate [12:32:51]Write to MH i2c: F0 00 00 26 1F 34 [12:32:51]Write i2c OK [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: F0 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: F0 09 00 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: F0 09 00 26 1F 00 74 27 22 67 47 6C 1F 67 9A [12:32:51]GetLastDocTimeStamp 1730291463 [12:32:51]current date 1730291572 [12:32:51]FM_GetShiftState [12:32:51]SAM_PROTO_GetShiftState [12:32:51]wFMCommunicate request_size=4 [12:32:51]MH_SAM_APDU [12:32:51]CAPDU: 80 13 01 00 [12:32:51]Write to MH i2c: E2 08 00 27 1F 80 13 01 00 00 00 00 00 C3 [12:32:51]Write i2c OK [12:32:51]MH_I2C_Read... [12:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:51]Read from MH i2c: E2 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: E2 0E 00 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: E2 0E 00 27 1F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9B [12:32:51]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:32:51]wFMCommunicate OK [12:32:51]SAM_PROTO_GetShiftState done [12:32:51]FM_GetShiftState done [12:32:51]opened in 1730246605 [12:32:51]opened+sec_in_day 1730333005 [12:32:51]quantity*price = 30038 [12:32:51]sum+1 = 30039 [12:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 134 30.10.2024 12:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118074 ФПД: 36858849354844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123252&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118074&fm=36858849354844&tin=02508201610067®Number=0000000000091782&sum=30000 [12:32:52]StoreToDocumentArchive [12:32:52]shift 545 fd 118074 [12:32:52]save to /storage/0545/doc_00118074 [12:32:52]save last doc name /storage/0545/doc_00118074 to /storage/kkm_last_doc_name [12:32:52]save OK [12:32:52]Clear old archive folders... [12:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:52]tlvbuf is 006D1270 [12:32:52]SAM_PROTO_ClearQueue [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 09 00 00 [12:32:52]Write to MH i2c: E2 08 00 34 1F 80 09 00 00 00 00 00 00 C5 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 34 1F 00 90 00 C7 [12:32:52]RAPDU: 90 00 [12:32:52]wFMCommunicate OK [12:32:52]SAM_PROTO_ClearQueue done [12:32:52]KKMCreateOFDPacket [12:32:52]OFDProtocolAddRootSTLVToBuf [12:32:52]FM_MakeSignedData [12:32:52]FM_MakeSignedData [12:32:52]SAM_PROTO_SignData [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 0D 01 02 [12:32:52]Write to MH i2c: E2 08 00 35 1F 80 0D 01 02 00 00 00 00 CD [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 03 00 35 1F 00 90 00 C8 [12:32:52]RAPDU: 90 00 [12:32:52]wFMCommunicate OK [12:32:52]wFMCommunicate request_size=255 [12:32:52]MH_SAM_APDU [12:32: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 32 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 86 00 00 00 F4 03 04 00 74 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CD 01 00 35 04 06 00 21 [12:32:52]Write to MH i2c: E2 02 01 36 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 86 00 00 00 F4 03 04 00 74 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CD 01 00 35 04 06 00 21 00 00 49 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 36 1F 00 90 00 C9 [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=10 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 02 02 05 85 DE 9F 64 5C [12:32:53]Write to MH i2c: E2 0D 00 37 1F 80 0D 02 02 05 00 85 DE 9F 64 5C 00 00 9C [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 37 1F 00 90 00 CA [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 03 02 [12:32:53]Write to MH i2c: E2 08 00 38 1F 80 0D 03 02 00 00 00 00 D2 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0B 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0B 00 38 1F 00 BB AE C4 A7 36 16 30 E1 90 00 04 [12:32:53]RAPDU: BB AE C4 A7 36 16 30 E1 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_SignData done [12:32:53]FM_MakeSignedData done [12:32:53]CreateOFDProtocolMessage [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 11 00 00 [12:32:53]Write to MH i2c: E2 08 00 39 1F 80 11 00 00 00 00 00 00 D2 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 39 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 29 [12:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:32:53]wFMCommunicate OK [12:32:53]CreateOFDProtocolMessage done [12:32:53]OFDSenderStorePacket 118074 [12:32:53]StoreOFDPacket docnum=118074 [12:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E9 0C 07 01 6C AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 86 00 00 00 F4 03 04 00 74 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CD 01 00 35 04 06 00 21 85 DE 9F 64 5C BB AE C4 A7 36 16 30 E1 [12:32:53]CheckFolder [12:32:53]dirname=/storage/ofd_packets [12:32:53]CheckFolder done [12:32:53]ProducePacketName [12:32:53]name=ofd_packets/00118074 [12:32:53]NVStorageSaveData ofd_packets/00118074 [12:32:53]File name is /storage/ofd_packets/00118074 [12:32:53]Write 301 bytes [12:32:53]NVStorageSaveData done [12:32:53]OFDSenderStorePacket done [12:32:53]KKMCreateOFDPacket done [12:32:53]NVStorageSaveData kkm_last_timestamp [12:32:53]File name is /storage/kkm_last_timestamp [12:32:53]Write 4 bytes [12:32:53]NVStorageSaveData done [12:32:53]ExternCall_PrintAddStr [12:32:53]wPrintStart [12:32:53]Write to MH i2c: 01 00 00 3A 1F 59 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 3A 1F 00 00 00 00 00 FF 0F 6E [12:32:53]RasterBufferAndPrint [12:32:53]line Счет N : (1)245870 [12:32:53]line ИНН: 02508201610067 [12:32:53]line Контрольно-Кассовый Чек [12:32:53]line ПРОДАЖА [12:32:53]line ТРК (МРК, ГНК) : 21 [12:32:53]line Товар: 2710124130 [12:32:53]line Аи-92-К-2 [12:32:53]line 4.490 * 66.90 [12:32:53]line = 300.38 [12:32:53]line НДС 12% НСП 1% [12:32:53]line > о реализуемом товаре [12:32:53]line ОКРУГЛЕНИЕ: -0.38 [12:32:53]line ИТОГО: 300.00 [12:32:53]line Внесено: 300.00 [12:32:53]line СДАЧА: 0.00 [12:32:53]line НСП 1% : 2.66 [12:32:53]line НДС 12% : 31.90 [12:32:53]line Наличными: 300.00 [12:32:53]line Безнал.: 0.00 [12:32:53]line Место: АЗС № 173 "Партнер Нефть" [12:32:53]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:32:53]line СНО: Общий режим [12:32:53]line Чек 134 30.10.2024 12:32 [12:32:53]line Смена: 545 ФФД: 1.0 [12:32:53]line ЗНМ: 0300000115 [12:32:53]line РНМ: 0000000000091782 [12:32:53]line Версия ККМ: 001 [12:32:53]line ФМ: 0000000000871767 [12:32:53]line ФД: 118074 [12:32:53]line ФПД: 36858849354844 [12:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123252&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118074&fm=36858849354844&tin=02508201610067®Number=0000000000091782&sum=30000 [12:32:53]written 0, free lines is 4095 [12:32:53]OFD Sender: Processing packet 118074 [packets to send 77, broken 76] [12:32:53]ProducePacketName [12:32:53]name=ofd_packets/00118074 [12:32:53]OFD Sender: To server: pG, [12:32:53]CommunicateWithHost lk.salyk.kg:30040 [12:32:53]ConnectInit lk.salyk.kg [12:32:53]Connected sock=10 [12:32: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 36 37 0F 01 00 00 E9 0C 07 01 6C AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 86 00 00 00 F4 03 04 00 74 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CD 01 00 35 04 06 00 21 85 DE 9F 64 5C BB AE C4 A7 36 16 30 E1 [12:32: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 36 37 4F 00 00 00 AA 32 47 00 74 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3A CD 01 00 F4 03 04 00 2C D3 21 67 B6 04 01 00 00 F0 17 A6 52 93 52 5E 74 [12:32:54]CommunicateWithHost err = 0 [12:32:54]CheckOFDResponse [12:32:54]1017 (14) - 77093643461234 [12:32:54]1041 (16) - 0000000000871767 [12:32:54]1040 (4) - 118074 [12:32:54]1012 (4) - 30.10.2024 06:33 [12:32:54]1206 (1) - 0 [12:32:54]OFD Sender: Remove packet 118074 [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00118074 [12:32:54]NVStorageDeleteData [12:32:54]Write to MH i2c: 01 00 00 64 1F 83 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 64 1F 00 00 00 00 00 BB 0C 51 [12:32:54]RasterBufferAndPrint [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]written 0, free lines is 3267 [12:32:54]MH_Cut [12:32:54]Write to MH i2c: D1 01 00 6B 1F 01 5C [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 01 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 01 00 6B 1F 00 5B [12:32:54]Write to MH i2c: 01 00 00 6C 1F 8B [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]OFD Sender: No OFD packet to send [12:32:54]*** Cut start [12:32:54]*** Purtial cut [12:32:54]*** Stage 1: CUTSNS_PIN = 1 [12:32:55]Read from MH i2c: 01 [12:32:55]MH_I2C_Read... [12:32:55]*** Stop cut motor [12:32:55]*** Cut end [12:32:55]Read from MH i2c: 01 07 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: 01 07 00 6C 1F 00 00 00 00 00 FF 0F A0 [12:32:55]process_action close_receipt done [12:32:55]requested_data is exist [12:32:55]produce_requested_data [12:32:55]requested_item fm.sn is exist - process it [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 11 00 00 [12:32:55]Write to MH i2c: E2 08 00 6D 1F 80 11 00 00 00 00 00 00 06 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 6D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5D [12:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:32:55]wFMCommunicate OK [12:32:55]requested_item fd.num is exist - process it [12:32:55]SAM_PROTO_GetFieldsCounters [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 13 00 00 [12:32:55]Write to MH i2c: E2 08 00 6E 1F 80 13 00 00 00 00 00 00 09 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 62 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 62 00 6E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [12:32: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:55]wFMCommunicate OK [12:32:55]SAM_PROTO_GetFieldsCounters done [12:32:55]requested_item shift.num is exist - process it [12:32:55]requested_item shift.opened is exist - process it [12:32:55]req_shift_opened [12:32:55]FM_GetShiftState [12:32:55]SAM_PROTO_GetShiftState [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 13 01 00 [12:32:55]Write to MH i2c: E2 08 00 6F 1F 80 13 01 00 00 00 00 00 0B [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 0E 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 0E 00 6F 1F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E3 [12:32:55]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:32:55]wFMCommunicate OK [12:32:55]SAM_PROTO_GetShiftState done [12:32:55]FM_GetShiftState done [12:32:55]req_shift_opened done [12:32:55]requested_item shift.open_date is exist - process it [12:32:55]req_shift_open_date [12:32:55]req_shift_open_date done [12:32:55]produce_requested_data done [12:32:55]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118074,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:32:55]process_action_free close_receipt [12:32:55]json_value_free [12:32:55]json_value_free done [12:32:55]process_json_proto returns [12:32:55]Send response to host [12:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118074,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:32:55]free response buf [12:32:55]execute_script done [12:32:55]execute_script returns [12:32:55]free content buf [12:32:55]Sock 7.Close socket [12:32:55]Sock 7.Thread stoped [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]accept exits with 9 [12:34:59]New connection [12:34:59]New thread 3067415908 created [12:34:59]Thread 3067559268 joined [12:34:59]Waiting for new connection... [12:34:59] Sock 9.Parse request [12:34:59]Sock 9.Check first char [12:34:59]Sock 9.First char is OK [12:34:59]request: POST /json_proto HTTP/1.0 [12:34:59]Method: POST [12:34:59]URL: /json_proto [12:34:59]Method is POST - this is cgi request [12:34:59]url: /json_proto [12:34:59]query_string will be loaded in cgi processing [12:34:59]execute_cgi json_proto POST (null) [12:34:59]execute_cgi path=json_proto method=POST [12:34:59]POST find Content-Length [12:34:59]Host: 172.17.96.67:8080 [12:34:59]Content-Length: 677 [12:34:59]Content-Type: application/json [12:34:59] [12:34:59]POST finish read [12:34:59]Found Content-Length = 677 [12:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:59]execute_script... [12:34: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)245871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:59]POST & json_proto [12:34:59]process_json_proto [12:34:59]json parsed OK: [12:34:59]protocol is kg_v1.0 [12:34:59]action value=close_receipt [12:34:59]process_action close_receipt [12:34:59]cmd_close_receipt [12:34:59]MH_GetDate [12:34:59]Write to MH i2c: F0 00 00 70 1F 7E [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: F0 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: F0 09 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: F0 09 00 70 1F 00 F3 27 22 67 47 6C 1F 67 63 [12:34:59]GetLastDocTimeStamp 1730291572 [12:34:59]current date 1730291699 [12:34:59]FM_GetShiftState [12:34:59]SAM_PROTO_GetShiftState [12:34:59]wFMCommunicate request_size=4 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 13 01 00 [12:34:59]Write to MH i2c: E2 08 00 71 1F 80 13 01 00 00 00 00 00 0D [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 0E 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 0E 00 71 1F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E5 [12:34:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:34:59]wFMCommunicate OK [12:34:59]SAM_PROTO_GetShiftState done [12:34:59]FM_GetShiftState done [12:34:59]opened in 1730246605 [12:34:59]opened+sec_in_day 1730333005 [12:34:59]quantity*price = 30038 [12:34:59]sum+1 = 30039 [12:34: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 135 30.10.2024 12:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118075 ФПД: 249973140875898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123459&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118075&fm=249973140875898&tin=02508201610067®Number=0000000000091782&sum=30000 [12:35:00]StoreToDocumentArchive [12:35:00]shift 545 fd 118075 [12:35:00]save to /storage/0545/doc_00118075 [12:35:00]save last doc name /storage/0545/doc_00118075 to /storage/kkm_last_doc_name [12:35:00]save OK [12:35:00]Clear old archive folders... [12:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:00]tlvbuf is 00626A20 [12:35:00]SAM_PROTO_ClearQueue [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 09 00 00 [12:35:00]Write to MH i2c: E2 08 00 7E 1F 80 09 00 00 00 00 00 00 0F [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 7E 1F 00 90 00 11 [12:35:00]RAPDU: 90 00 [12:35:00]wFMCommunicate OK [12:35:00]SAM_PROTO_ClearQueue done [12:35:00]KKMCreateOFDPacket [12:35:00]OFDProtocolAddRootSTLVToBuf [12:35:00]FM_MakeSignedData [12:35:00]FM_MakeSignedData [12:35:00]SAM_PROTO_SignData [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 0D 01 02 [12:35:00]Write to MH i2c: E2 08 00 7F 1F 80 0D 01 02 00 00 00 00 17 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 7F 1F 00 90 00 12 [12:35:00]RAPDU: 90 00 [12:35:00]wFMCommunicate OK [12:35:00]wFMCommunicate request_size=255 [12:35:00]MH_SAM_APDU [12:35: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 32 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 87 00 00 00 F4 03 04 00 F3 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CD 01 00 35 04 06 00 E3 [12:35:00]Write to MH i2c: E2 02 01 80 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 00 00 00 F4 03 04 00 F3 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CD 01 00 35 04 06 00 E3 00 00 D6 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 80 1F 00 90 00 13 [12:35:00]RAPDU: 90 00 [12:35:00]wFMCommunicate OK [12:35:00]wFMCommunicate request_size=10 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 0D 02 02 05 59 68 43 EA 7A [12:35:00]Write to MH i2c: E2 0D 00 81 1F 80 0D 02 02 05 00 59 68 43 EA 7A 00 00 8C [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 81 1F 00 90 00 14 [12:35:00]RAPDU: 90 00 [12:35:00]wFMCommunicate OK [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 0D 03 02 [12:35:00]Write to MH i2c: E2 08 00 82 1F 80 0D 03 02 00 00 00 00 1C [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 0B 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 0B 00 82 1F 00 D2 76 2F A9 BD 7A 75 FE 90 00 E7 [12:35:00]RAPDU: D2 76 2F A9 BD 7A 75 FE 90 00 [12:35:00]wFMCommunicate OK [12:35:00]SAM_PROTO_SignData done [12:35:00]FM_MakeSignedData done [12:35:00]CreateOFDProtocolMessage [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 11 00 00 [12:35:00]Write to MH i2c: E2 08 00 83 1F 80 11 00 00 00 00 00 00 1C [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 17 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 17 00 83 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 73 [12:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:35:00]wFMCommunicate OK [12:35:00]CreateOFDProtocolMessage done [12:35:00]OFDSenderStorePacket 118075 [12:35:00]StoreOFDPacket docnum=118075 [12:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 81 85 07 01 A5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 F3 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CD 01 00 35 04 06 00 E3 59 68 43 EA 7A D2 76 2F A9 BD 7A 75 FE [12:35:00]CheckFolder [12:35:00]dirname=/storage/ofd_packets [12:35:00]CheckFolder done [12:35:00]ProducePacketName [12:35:00]name=ofd_packets/00118075 [12:35:00]NVStorageSaveData ofd_packets/00118075 [12:35:00]File name is /storage/ofd_packets/00118075 [12:35:00]Write 301 bytes [12:35:00]NVStorageSaveData done [12:35:00]OFDSenderStorePacket done [12:35:00]KKMCreateOFDPacket done [12:35:00]NVStorageSaveData kkm_last_timestamp [12:35:00]File name is /storage/kkm_last_timestamp [12:35:00]Write 4 bytes [12:35:00]NVStorageSaveData done [12:35:00]ExternCall_PrintAddStr [12:35:00]wPrintStart [12:35:00]Write to MH i2c: 01 00 00 84 1F A3 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 84 1F 00 00 00 00 00 FF 0F B8 [12:35:00]RasterBufferAndPrint [12:35:00]line Счет N : (1)245871 [12:35:00]line ИНН: 02508201610067 [12:35:00]line Контрольно-Кассовый Чек [12:35:00]line ПРОДАЖА [12:35:00]line ТРК (МРК, ГНК) : 21 [12:35:00]line Товар: 2710124130 [12:35:00]line Аи-92-К-2 [12:35:00]line 4.490 * 66.90 [12:35:00]line = 300.38 [12:35:00]line НДС 12% НСП 1% [12:35:00]line > о реализуемом товаре [12:35:00]line ОКРУГЛЕНИЕ: -0.38 [12:35:00]line ИТОГО: 300.00 [12:35:00]line Внесено: 300.00 [12:35:00]line СДАЧА: 0.00 [12:35:00]line НСП 1% : 2.66 [12:35:00]line НДС 12% : 31.90 [12:35:00]line Наличными: 300.00 [12:35:00]line Безнал.: 0.00 [12:35:00]line Место: АЗС № 173 "Партнер Нефть" [12:35:00]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:35:00]line СНО: Общий режим [12:35:00]line Чек 135 30.10.2024 12:34 [12:35:00]line Смена: 545 ФФД: 1.0 [12:35:00]line ЗНМ: 0300000115 [12:35:00]line РНМ: 0000000000091782 [12:35:00]line Версия ККМ: 001 [12:35:00]line ФМ: 0000000000871767 [12:35:00]line ФД: 118075 [12:35:00]line ФПД: 249973140875898 [12:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123459&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118075&fm=249973140875898&tin=02508201610067®Number=0000000000091782&sum=30000 [12:35:01]written 0, free lines is 4095 [12:35:01]OFD Sender: Processing packet 118075 [packets to send 77, broken 76] [12:35:01]ProducePacketName [12:35:01]name=ofd_packets/00118075 [12:35:01]OFD Sender: To server: pG, [12:35:01]CommunicateWithHost lk.salyk.kg:30040 [12:35:01]ConnectInit lk.salyk.kg [12:35:01]Connected sock=10 [12:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 81 85 07 01 A5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 F3 27 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3B CD 01 00 35 04 06 00 E3 59 68 43 EA 7A D2 76 2F A9 BD 7A 75 FE [12:35: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 36 37 4F 00 00 00 7C 39 47 00 33 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 36 37 10 04 04 00 3B CD 01 00 F4 03 04 00 AB D3 21 67 B6 04 01 00 00 CC 31 3B 32 CA 09 0E 2B [12:35:01]CommunicateWithHost err = 0 [12:35:01]CheckOFDResponse [12:35:01]1017 (14) - 77093643461234 [12:35:01]1041 (16) - 0000000000871767 [12:35:01]1040 (4) - 118075 [12:35:01]1012 (4) - 30.10.2024 06:35 [12:35:01]1206 (1) - 0 [12:35:01]OFD Sender: Remove packet 118075 [12:35:01]ProducePacketName [12:35:01]name=ofd_packets/00118075 [12:35:01]NVStorageDeleteData [12:35:01]Write to MH i2c: 01 00 00 AE 1F CD [12:35:01]Write i2c OK [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: 01 [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: 01 07 00 [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: 01 07 00 AE 1F 00 00 00 00 00 C2 0C A2 [12:35:01]RasterBufferAndPrint [12:35:01]line [12:35:01]line [12:35:01]line [12:35:01]line [12:35:01]line [12:35:01]written 0, free lines is 3273 [12:35:01]MH_Cut [12:35:01]Write to MH i2c: D1 01 00 B5 1F 01 A6 [12:35:01]Write i2c OK [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: D1 [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: D1 01 00 [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: D1 01 00 B5 1F 00 A5 [12:35:01]Write to MH i2c: 01 00 00 B6 1F D5 [12:35:01]Write i2c OK [12:35:01]MH_I2C_Read... [12:35:01]OFD Sender: No OFD packet to send [12:35:02]*** Cut start [12:35:02]*** Purtial cut [12:35:02]*** Stage 1: CUTSNS_PIN = 1 [12:35:02]Read from MH i2c: 01 [12:35:02]MH_I2C_Read... [12:35:02]*** Stop cut motor [12:35:02]*** Cut end [12:35:02]Read from MH i2c: 01 07 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: 01 07 00 B6 1F 00 00 00 00 00 FF 0F EA [12:35:02]process_action close_receipt done [12:35:02]requested_data is exist [12:35:02]produce_requested_data [12:35:02]requested_item fm.sn is exist - process it [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 11 00 00 [12:35:02]Write to MH i2c: E2 08 00 B7 1F 80 11 00 00 00 00 00 00 50 [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 17 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 17 00 B7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A7 [12:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:35:02]wFMCommunicate OK [12:35:02]requested_item fd.num is exist - process it [12:35:02]SAM_PROTO_GetFieldsCounters [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 13 00 00 [12:35:02]Write to MH i2c: E2 08 00 B8 1F 80 13 00 00 00 00 00 00 53 [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 62 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 62 00 B8 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [12:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:02]wFMCommunicate OK [12:35:02]SAM_PROTO_GetFieldsCounters done [12:35:02]requested_item shift.num is exist - process it [12:35:02]requested_item shift.opened is exist - process it [12:35:02]req_shift_opened [12:35:02]FM_GetShiftState [12:35:02]SAM_PROTO_GetShiftState [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 13 01 00 [12:35:02]Write to MH i2c: E2 08 00 B9 1F 80 13 01 00 00 00 00 00 55 [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:03]Read from MH i2c: E2 [12:35:03]MH_I2C_Read... [12:35:03]Read from MH i2c: E2 0E 00 [12:35:03]MH_I2C_Read... [12:35:03]Read from MH i2c: E2 0E 00 B9 1F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2D [12:35:03]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:35:03]wFMCommunicate OK [12:35:03]SAM_PROTO_GetShiftState done [12:35:03]FM_GetShiftState done [12:35:03]req_shift_opened done [12:35:03]requested_item shift.open_date is exist - process it [12:35:03]req_shift_open_date [12:35:03]req_shift_open_date done [12:35:03]produce_requested_data done [12:35:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118075,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:35:03]process_action_free close_receipt [12:35:03]json_value_free [12:35:03]json_value_free done [12:35:03]process_json_proto returns [12:35:03]Send response to host [12:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118075,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:35:03]free response buf [12:35:03]execute_script done [12:35:03]execute_script returns [12:35:03]free content buf [12:35:03]Sock 9.Close socket [12:35:03]Sock 9.Thread stoped [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:05]accept exits with 7 [12:36:05]New connection [12:36:05]New thread 3067559268 created [12:36:05]Thread 3067415908 joined [12:36:05]Waiting for new connection... [12:36:05] Sock 7.Parse request [12:36:05]Sock 7.Check first char [12:36:05]Sock 7.First char is OK [12:36:05]request: POST /json_proto HTTP/1.0 [12:36:05]Method: POST [12:36:05]URL: /json_proto [12:36:05]Method is POST - this is cgi request [12:36:05]url: /json_proto [12:36:05]query_string will be loaded in cgi processing [12:36:05]execute_cgi json_proto POST (null) [12:36:05]execute_cgi path=json_proto method=POST [12:36:05]POST find Content-Length [12:36:05]Host: 172.17.96.67:8080 [12:36:05]Content-Length: 677 [12:36:05]Content-Type: application/json [12:36:05] [12:36:05]POST finish read [12:36:05]Found Content-Length = 677 [12:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:36:05]execute_script... [12:36:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:36:05]POST & json_proto [12:36:05]process_json_proto [12:36:05]json parsed OK: [12:36:05]protocol is kg_v1.0 [12:36:05]action value=close_receipt [12:36:05]process_action close_receipt [12:36:05]cmd_close_receipt [12:36:05]MH_GetDate [12:36:05]Write to MH i2c: F0 00 00 BA 1F C8 [12:36:05]Write i2c OK [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: F0 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: F0 09 00 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: F0 09 00 BA 1F 00 36 28 22 67 47 6C 1F 67 F1 [12:36:05]GetLastDocTimeStamp 1730291699 [12:36:05]current date 1730291766 [12:36:05]FM_GetShiftState [12:36:05]SAM_PROTO_GetShiftState [12:36:05]wFMCommunicate request_size=4 [12:36:05]MH_SAM_APDU [12:36:05]CAPDU: 80 13 01 00 [12:36:05]Write to MH i2c: E2 08 00 BB 1F 80 13 01 00 00 00 00 00 57 [12:36:05]Write i2c OK [12:36:05]MH_I2C_Read... [12:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:05]Read from MH i2c: E2 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: E2 0E 00 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: E2 0E 00 BB 1F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2F [12:36:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:36:05]wFMCommunicate OK [12:36:05]SAM_PROTO_GetShiftState done [12:36:05]FM_GetShiftState done [12:36:05]opened in 1730246605 [12:36:05]opened+sec_in_day 1730333005 [12:36:05]quantity*price = 60009 [12:36:05]sum+1 = 60010 [12:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 136 30.10.2024 12:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118076 ФПД: 112643368328309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123606&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118076&fm=112643368328309&tin=02508201610067®Number=0000000000091782&sum=60000 [12:36:06]StoreToDocumentArchive [12:36:06]shift 545 fd 118076 [12:36:06]save to /storage/0545/doc_00118076 [12:36:06]save last doc name /storage/0545/doc_00118076 to /storage/kkm_last_doc_name [12:36:06]save OK [12:36:06]Clear old archive folders... [12:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:06]tlvbuf is 006D1160 [12:36:06]SAM_PROTO_ClearQueue [12:36:06]wFMCommunicate request_size=4 [12:36:06]MH_SAM_APDU [12:36:06]CAPDU: 80 09 00 00 [12:36:06]Write to MH i2c: E2 08 00 C8 1F 80 09 00 00 00 00 00 00 59 [12:36:06]Write i2c OK [12:36:06]MH_I2C_Read... [12:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:06]Read from MH i2c: E2 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: E2 03 00 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: E2 03 00 C8 1F 00 90 00 5B [12:36:06]RAPDU: 90 00 [12:36:06]wFMCommunicate OK [12:36:06]SAM_PROTO_ClearQueue done [12:36:06]KKMCreateOFDPacket [12:36:06]OFDProtocolAddRootSTLVToBuf [12:36:06]FM_MakeSignedData [12:36:06]FM_MakeSignedData [12:36:06]SAM_PROTO_SignData [12:36:06]wFMCommunicate request_size=4 [12:36:06]MH_SAM_APDU [12:36:06]CAPDU: 80 0D 01 02 [12:36:06]Write to MH i2c: E2 08 00 C9 1F 80 0D 01 02 00 00 00 00 61 [12:36:06]Write i2c OK [12:36:06]MH_I2C_Read... [12:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:06]Read from MH i2c: E2 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: E2 03 00 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: E2 03 00 C9 1F 00 90 00 5C [12:36:06]RAPDU: 90 00 [12:36:06]wFMCommunicate OK [12:36:06]wFMCommunicate request_size=255 [12:36:06]MH_SAM_APDU [12:36:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 88 00 00 00 F4 03 04 00 36 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CD 01 00 35 04 06 00 66 [12:36:06]Write to MH i2c: E2 02 01 CA 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 88 00 00 00 F4 03 04 00 36 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CD 01 00 35 04 06 00 66 00 00 D2 [12:36:06]Write i2c OK [12:36:06]MH_I2C_Read... [12:36:07]OFD Sender: No OFD packet to send [12:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 CA 1F 00 90 00 5D [12:36:07]RAPDU: 90 00 [12:36:07]wFMCommunicate OK [12:36:07]wFMCommunicate request_size=10 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 0D 02 02 05 72 D3 F4 9C 75 [12:36:07]Write to MH i2c: E2 0D 00 CB 1F 80 0D 02 02 05 00 72 D3 F4 9C 75 00 00 B8 [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 CB 1F 00 90 00 5E [12:36:07]RAPDU: 90 00 [12:36:07]wFMCommunicate OK [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 0D 03 02 [12:36:07]Write to MH i2c: E2 08 00 CC 1F 80 0D 03 02 00 00 00 00 66 [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 0B 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 0B 00 CC 1F 00 95 6B 68 64 9E 6F 3A 01 90 00 7B [12:36:07]RAPDU: 95 6B 68 64 9E 6F 3A 01 90 00 [12:36:07]wFMCommunicate OK [12:36:07]SAM_PROTO_SignData done [12:36:07]FM_MakeSignedData done [12:36:07]CreateOFDProtocolMessage [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 11 00 00 [12:36:07]Write to MH i2c: E2 08 00 CD 1F 80 11 00 00 00 00 00 00 66 [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 17 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 17 00 CD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BD [12:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:36:07]wFMCommunicate OK [12:36:07]CreateOFDProtocolMessage done [12:36:07]OFDSenderStorePacket 118076 [12:36:07]StoreOFDPacket docnum=118076 [12:36:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EE 58 07 01 B1 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 88 00 00 00 F4 03 04 00 36 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CD 01 00 35 04 06 00 66 72 D3 F4 9C 75 95 6B 68 64 9E 6F 3A 01 [12:36:07]CheckFolder [12:36:07]dirname=/storage/ofd_packets [12:36:07]CheckFolder done [12:36:07]ProducePacketName [12:36:07]name=ofd_packets/00118076 [12:36:07]NVStorageSaveData ofd_packets/00118076 [12:36:07]File name is /storage/ofd_packets/00118076 [12:36:07]Write 301 bytes [12:36:07]NVStorageSaveData done [12:36:07]OFDSenderStorePacket done [12:36:07]KKMCreateOFDPacket done [12:36:07]NVStorageSaveData kkm_last_timestamp [12:36:07]File name is /storage/kkm_last_timestamp [12:36:07]Write 4 bytes [12:36:07]NVStorageSaveData done [12:36:07]ExternCall_PrintAddStr [12:36:07]wPrintStart [12:36:07]Write to MH i2c: 01 00 00 CE 1F ED [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: 01 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: 01 07 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: 01 07 00 CE 1F 00 00 00 00 00 FF 0F 02 [12:36:07]RasterBufferAndPrint [12:36:07]line Счет N : (1)245872 [12:36:07]line ИНН: 02508201610067 [12:36:07]line Контрольно-Кассовый Чек [12:36:07]line ПРОДАЖА [12:36:07]line ТРК (МРК, ГНК) : 11 [12:36:07]line Товар: 2710124130 [12:36:07]line Аи-92-К-2 [12:36:07]line 8.970 * 66.90 [12:36:07]line = 600.09 [12:36:07]line НДС 12% НСП 1% [12:36:07]line > о реализуемом товаре [12:36:07]line ОКРУГЛЕНИЕ: -0.09 [12:36:07]line ИТОГО: 600.00 [12:36:07]line Внесено: 600.00 [12:36:07]line СДАЧА: 0.00 [12:36:07]line НСП 1% : 5.31 [12:36:07]line НДС 12% : 63.73 [12:36:07]line Наличными: 600.00 [12:36:07]line Безнал.: 0.00 [12:36:07]line Место: АЗС № 173 "Партнер Нефть" [12:36:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:36:07]line СНО: Общий режим [12:36:07]line Чек 136 30.10.2024 12:36 [12:36:07]line Смена: 545 ФФД: 1.0 [12:36:07]line ЗНМ: 0300000115 [12:36:07]line РНМ: 0000000000091782 [12:36:07]line Версия ККМ: 001 [12:36:07]line ФМ: 0000000000871767 [12:36:07]line ФД: 118076 [12:36:07]line ФПД: 112643368328309 [12:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123606&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118076&fm=112643368328309&tin=02508201610067®Number=0000000000091782&sum=60000 [12:36:07]OFD Sender: Processing packet 118076 [packets to send 77, broken 76] [12:36:07]ProducePacketName [12:36:07]name=ofd_packets/00118076 [12:36:07]OFD Sender: To server: pG, [12:36:07]CommunicateWithHost lk.salyk.kg:30040 [12:36:07]ConnectInit lk.salyk.kg [12:36:07]written 0, free lines is 4095 [12:36:07]Connected sock=10 [12:36: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 36 37 0F 01 00 00 EE 58 07 01 B1 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 88 00 00 00 F4 03 04 00 36 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CD 01 00 35 04 06 00 66 72 D3 F4 9C 75 95 6B 68 64 9E 6F 3A 01 [12:36: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 36 37 4F 00 00 00 03 EA 47 00 6A F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3C CD 01 00 F4 03 04 00 EE D3 21 67 B6 04 01 00 00 53 3D BD D7 AA 69 6E 42 [12:36:08]CommunicateWithHost err = 0 [12:36:08]CheckOFDResponse [12:36:08]1017 (14) - 77093643461234 [12:36:08]1041 (16) - 0000000000871767 [12:36:08]1040 (4) - 118076 [12:36:08]1012 (4) - 30.10.2024 06:36 [12:36:08]1206 (1) - 0 [12:36:08]OFD Sender: Remove packet 118076 [12:36:08]ProducePacketName [12:36:08]name=ofd_packets/00118076 [12:36:08]NVStorageDeleteData [12:36:08]Write to MH i2c: 01 00 00 F8 1F 17 [12:36:08]Write i2c OK [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 07 00 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 07 00 F8 1F 00 00 00 00 00 C9 0C F3 [12:36:08]RasterBufferAndPrint [12:36:08]line [12:36:08]line [12:36:08]line [12:36:08]line [12:36:08]line [12:36:08]written 0, free lines is 3281 [12:36:08]MH_Cut [12:36:08]Write to MH i2c: D1 01 00 FF 1F 01 F0 [12:36:08]Write i2c OK [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: D1 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: D1 01 00 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: D1 01 00 FF 1F 00 EF [12:36:08]Write to MH i2c: 01 00 00 00 20 20 [12:36:08]Write i2c OK [12:36:08]MH_I2C_Read... [12:36:08]OFD Sender: No OFD packet to send [12:36:08]*** Cut start [12:36:08]*** Purtial cut [12:36:08]*** Stage 1: CUTSNS_PIN = 1 [12:36:09]Read from MH i2c: 01 [12:36:09]MH_I2C_Read... [12:36:09]*** Stop cut motor [12:36:09]*** Cut end [12:36:09]Read from MH i2c: 01 07 00 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: 01 07 00 00 20 00 00 00 00 00 FF 0F 35 [12:36:09]process_action close_receipt done [12:36:09]requested_data is exist [12:36:09]produce_requested_data [12:36:09]requested_item fm.sn is exist - process it [12:36:09]wFMCommunicate request_size=4 [12:36:09]MH_SAM_APDU [12:36:09]CAPDU: 80 11 00 00 [12:36:09]Write to MH i2c: E2 08 00 01 20 80 11 00 00 00 00 00 00 9B [12:36:09]Write i2c OK [12:36:09]MH_I2C_Read... [12:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:09]Read from MH i2c: E2 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 17 00 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 17 00 01 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F2 [12:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:36:09]wFMCommunicate OK [12:36:09]requested_item fd.num is exist - process it [12:36:09]SAM_PROTO_GetFieldsCounters [12:36:09]wFMCommunicate request_size=4 [12:36:09]MH_SAM_APDU [12:36:09]CAPDU: 80 13 00 00 [12:36:09]Write to MH i2c: E2 08 00 02 20 80 13 00 00 00 00 00 00 9E [12:36:09]Write i2c OK [12:36:09]MH_I2C_Read... [12:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:09]Read from MH i2c: E2 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 62 00 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 62 00 02 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [12:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:09]wFMCommunicate OK [12:36:09]SAM_PROTO_GetFieldsCounters done [12:36:09]requested_item shift.num is exist - process it [12:36:09]requested_item shift.opened is exist - process it [12:36:09]req_shift_opened [12:36:09]FM_GetShiftState [12:36:09]SAM_PROTO_GetShiftState [12:36:09]wFMCommunicate request_size=4 [12:36:09]MH_SAM_APDU [12:36:09]CAPDU: 80 13 01 00 [12:36:09]Write to MH i2c: E2 08 00 03 20 80 13 01 00 00 00 00 00 A0 [12:36:09]Write i2c OK [12:36:09]MH_I2C_Read... [12:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:09]Read from MH i2c: E2 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 0E 00 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 0E 00 03 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 78 [12:36:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:36:09]wFMCommunicate OK [12:36:09]SAM_PROTO_GetShiftState done [12:36:09]FM_GetShiftState done [12:36:09]req_shift_opened done [12:36:09]requested_item shift.open_date is exist - process it [12:36:09]req_shift_open_date [12:36:09]req_shift_open_date done [12:36:09]produce_requested_data done [12:36:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118076,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:36:09]process_action_free close_receipt [12:36:09]json_value_free [12:36:09]json_value_free done [12:36:09]process_json_proto returns [12:36:09]Send response to host [12:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118076,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:36:09]free response buf [12:36:09]execute_script done [12:36:09]execute_script returns [12:36:09]free content buf [12:36:09]Sock 7.Close socket [12:36:09]Sock 7.Thread stoped [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:52]accept exits with 9 [12:37:52]New connection [12:37:52]New thread 3067415908 created [12:37:52]Thread 3067559268 joined [12:37:52]Waiting for new connection... [12:37:52] Sock 9.Parse request [12:37:52]Sock 9.Check first char [12:37:52]Sock 9.First char is OK [12:37:52]request: POST /json_proto HTTP/1.0 [12:37:52]Method: POST [12:37:52]URL: /json_proto [12:37:52]Method is POST - this is cgi request [12:37:52]url: /json_proto [12:37:52]query_string will be loaded in cgi processing [12:37:52]execute_cgi json_proto POST (null) [12:37:52]execute_cgi path=json_proto method=POST [12:37:52]POST find Content-Length [12:37:52]Host: 172.17.96.67:8080 [12:37:52]Content-Length: 677 [12:37:52]Content-Type: application/json [12:37:52] [12:37:52]POST finish read [12:37:52]Found Content-Length = 677 [12:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:52]execute_script... [12:37: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)245873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:52]POST & json_proto [12:37:52]process_json_proto [12:37:52]json parsed OK: [12:37:52]protocol is kg_v1.0 [12:37:52]action value=close_receipt [12:37:52]process_action close_receipt [12:37:52]cmd_close_receipt [12:37:52]MH_GetDate [12:37:52]Write to MH i2c: F0 00 00 04 20 13 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: F0 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: F0 09 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: F0 09 00 04 20 00 A1 28 22 67 47 6C 1F 67 A7 [12:37:52]GetLastDocTimeStamp 1730291766 [12:37:52]current date 1730291873 [12:37:52]FM_GetShiftState [12:37:52]SAM_PROTO_GetShiftState [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 13 01 00 [12:37:52]Write to MH i2c: E2 08 00 05 20 80 13 01 00 00 00 00 00 A2 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0E 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0E 00 05 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 7A [12:37:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:37:52]wFMCommunicate OK [12:37:52]SAM_PROTO_GetShiftState done [12:37:52]FM_GetShiftState done [12:37:52]opened in 1730246605 [12:37:52]opened+sec_in_day 1730333005 [12:37:52]quantity*price = 30038 [12:37:52]sum+1 = 30039 [12:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 137 30.10.2024 12:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118077 ФПД: 198984785765789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123753&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118077&fm=198984785765789&tin=02508201610067®Number=0000000000091782&sum=30000 [12:37:53]StoreToDocumentArchive [12:37:53]shift 545 fd 118077 [12:37:53]save to /storage/0545/doc_00118077 [12:37:53]save last doc name /storage/0545/doc_00118077 to /storage/kkm_last_doc_name [12:37:53]save OK [12:37:53]Clear old archive folders... [12:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:53]tlvbuf is 006D1140 [12:37:53]SAM_PROTO_ClearQueue [12:37:53]wFMCommunicate request_size=4 [12:37:53]MH_SAM_APDU [12:37:53]CAPDU: 80 09 00 00 [12:37:53]Write to MH i2c: E2 08 00 12 20 80 09 00 00 00 00 00 00 A4 [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:53]Read from MH i2c: E2 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 12 20 00 90 00 A6 [12:37:53]RAPDU: 90 00 [12:37:53]wFMCommunicate OK [12:37:53]SAM_PROTO_ClearQueue done [12:37:53]KKMCreateOFDPacket [12:37:53]OFDProtocolAddRootSTLVToBuf [12:37:53]FM_MakeSignedData [12:37:53]FM_MakeSignedData [12:37:53]SAM_PROTO_SignData [12:37:53]wFMCommunicate request_size=4 [12:37:53]MH_SAM_APDU [12:37:53]CAPDU: 80 0D 01 02 [12:37:53]Write to MH i2c: E2 08 00 13 20 80 0D 01 02 00 00 00 00 AC [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:53]Read from MH i2c: E2 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 13 20 00 90 00 A7 [12:37:53]RAPDU: 90 00 [12:37:53]wFMCommunicate OK [12:37:53]wFMCommunicate request_size=255 [12:37:53]MH_SAM_APDU [12:37: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 32 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 89 00 00 00 F4 03 04 00 A1 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CD 01 00 35 04 06 00 B4 [12:37:53]Write to MH i2c: E2 02 01 14 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 00 00 00 F4 03 04 00 A1 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CD 01 00 35 04 06 00 B4 00 00 EF [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]OFD Sender: No OFD packet to send [12:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:53]Read from MH i2c: E2 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 14 20 00 90 00 A8 [12:37:53]RAPDU: 90 00 [12:37:53]wFMCommunicate OK [12:37:53]wFMCommunicate request_size=10 [12:37:53]MH_SAM_APDU [12:37:53]CAPDU: 80 0D 02 02 05 F9 C1 78 A5 9D [12:37:53]Write to MH i2c: E2 0D 00 15 20 80 0D 02 02 05 00 F9 C1 78 A5 9D 00 00 2D [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:53]Read from MH i2c: E2 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 03 00 15 20 00 90 00 A9 [12:37:53]RAPDU: 90 00 [12:37:53]wFMCommunicate OK [12:37:53]wFMCommunicate request_size=4 [12:37:53]MH_SAM_APDU [12:37:53]CAPDU: 80 0D 03 02 [12:37:53]Write to MH i2c: E2 08 00 16 20 80 0D 03 02 00 00 00 00 B1 [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:53]Read from MH i2c: E2 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 0B 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: E2 0B 00 16 20 00 82 51 0A 83 34 76 6A C2 90 00 E8 [12:37:53]RAPDU: 82 51 0A 83 34 76 6A C2 90 00 [12:37:53]wFMCommunicate OK [12:37:53]SAM_PROTO_SignData done [12:37:53]FM_MakeSignedData done [12:37:53]CreateOFDProtocolMessage [12:37:53]wFMCommunicate request_size=4 [12:37:53]MH_SAM_APDU [12:37:53]CAPDU: 80 11 00 00 [12:37:53]Write to MH i2c: E2 08 00 17 20 80 11 00 00 00 00 00 00 B1 [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 17 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 17 00 17 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 08 [12:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:37:54]wFMCommunicate OK [12:37:54]CreateOFDProtocolMessage done [12:37:54]OFDSenderStorePacket 118077 [12:37:54]StoreOFDPacket docnum=118077 [12:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 68 D4 07 01 43 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 00 00 00 F4 03 04 00 A1 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CD 01 00 35 04 06 00 B4 F9 C1 78 A5 9D 82 51 0A 83 34 76 6A C2 [12:37:54]CheckFolder [12:37:54]dirname=/storage/ofd_packets [12:37:54]CheckFolder done [12:37:54]ProducePacketName [12:37:54]name=ofd_packets/00118077 [12:37:54]NVStorageSaveData ofd_packets/00118077 [12:37:54]File name is /storage/ofd_packets/00118077 [12:37:54]Write 301 bytes [12:37:54]NVStorageSaveData done [12:37:54]OFDSenderStorePacket done [12:37:54]KKMCreateOFDPacket done [12:37:54]NVStorageSaveData kkm_last_timestamp [12:37:54]File name is /storage/kkm_last_timestamp [12:37:54]Write 4 bytes [12:37:54]NVStorageSaveData done [12:37:54]ExternCall_PrintAddStr [12:37:54]wPrintStart [12:37:54]Write to MH i2c: 01 00 00 18 20 38 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 07 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 07 00 18 20 00 00 00 00 00 FF 0F 4D [12:37:54]RasterBufferAndPrint [12:37:54]line Счет N : (1)245873 [12:37:54]line ИНН: 02508201610067 [12:37:54]line Контрольно-Кассовый Чек [12:37:54]line ПРОДАЖА [12:37:54]line ТРК (МРК, ГНК) : 21 [12:37:54]line Товар: 2710124130 [12:37:54]line Аи-92-К-2 [12:37:54]line 4.490 * 66.90 [12:37:54]line = 300.38 [12:37:54]line НДС 12% НСП 1% [12:37:54]line > о реализуемом товаре [12:37:54]line ОКРУГЛЕНИЕ: -0.38 [12:37:54]line ИТОГО: 300.00 [12:37:54]line Внесено: 300.00 [12:37:54]line СДАЧА: 0.00 [12:37:54]line НСП 1% : 2.66 [12:37:54]line НДС 12% : 31.90 [12:37:54]line Наличными: 300.00 [12:37:54]line Безнал.: 0.00 [12:37:54]line Место: АЗС № 173 "Партнер Нефть" [12:37:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:37:54]line СНО: Общий режим [12:37:54]line Чек 137 30.10.2024 12:37 [12:37:54]line Смена: 545 ФФД: 1.0 [12:37:54]line ЗНМ: 0300000115 [12:37:54]line РНМ: 0000000000091782 [12:37:54]line Версия ККМ: 001 [12:37:54]line ФМ: 0000000000871767 [12:37:54]line ФД: 118077 [12:37:54]line ФПД: 198984785765789 [12:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123753&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118077&fm=198984785765789&tin=02508201610067®Number=0000000000091782&sum=30000 [12:37:54]OFD Sender: Processing packet 118077 [packets to send 77, broken 76] [12:37:54]ProducePacketName [12:37:54]name=ofd_packets/00118077 [12:37:54]OFD Sender: To server: pG, [12:37:54]CommunicateWithHost lk.salyk.kg:30040 [12:37:54]ConnectInit lk.salyk.kg [12:37:54]written 0, free lines is 4095 [12:37:54]Connected sock=10 [12:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 68 D4 07 01 43 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 00 00 00 F4 03 04 00 A1 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CD 01 00 35 04 06 00 B4 F9 C1 78 A5 9D 82 51 0A 83 34 76 6A C2 [12:37: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 36 37 4F 00 00 00 42 D9 47 00 A6 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3D CD 01 00 F4 03 04 00 58 D4 21 67 B6 04 01 00 00 80 D3 A4 C3 44 A1 25 DA [12:37:54]CommunicateWithHost err = 0 [12:37:54]CheckOFDResponse [12:37:54]1017 (14) - 77093643461234 [12:37:54]1041 (16) - 0000000000871767 [12:37:54]1040 (4) - 118077 [12:37:54]1012 (4) - 30.10.2024 06:38 [12:37:54]1206 (1) - 0 [12:37:54]OFD Sender: Remove packet 118077 [12:37:54]ProducePacketName [12:37:54]name=ofd_packets/00118077 [12:37:54]NVStorageDeleteData [12:37:54]Write to MH i2c: 01 00 00 42 20 62 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 07 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 07 00 42 20 00 00 00 00 00 C8 0C 3D [12:37:54]RasterBufferAndPrint [12:37:54]line [12:37:54]line [12:37:54]line [12:37:54]line [12:37:54]line [12:37:54]written 0, free lines is 3278 [12:37:54]MH_Cut [12:37:54]Write to MH i2c: D1 01 00 49 20 01 3B [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: D1 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: D1 01 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: D1 01 00 49 20 00 3A [12:37:54]Write to MH i2c: 01 00 00 4A 20 6A [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:55]OFD Sender: No OFD packet to send [12:37:55]*** Cut start [12:37:55]*** Purtial cut [12:37:55]*** Stage 1: CUTSNS_PIN = 1 [12:37:55]Read from MH i2c: 01 [12:37:55]MH_I2C_Read... [12:37:55]*** Stop cut motor [12:37:55]*** Cut end [12:37:55]Read from MH i2c: 01 07 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: 01 07 00 4A 20 00 00 00 00 00 FF 0F 7F [12:37:55]process_action close_receipt done [12:37:55]requested_data is exist [12:37:55]produce_requested_data [12:37:55]requested_item fm.sn is exist - process it [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 11 00 00 [12:37:55]Write to MH i2c: E2 08 00 4B 20 80 11 00 00 00 00 00 00 E5 [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 17 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 17 00 4B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3C [12:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:37:56]wFMCommunicate OK [12:37:56]requested_item fd.num is exist - process it [12:37:56]SAM_PROTO_GetFieldsCounters [12:37:56]wFMCommunicate request_size=4 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 13 00 00 [12:37:56]Write to MH i2c: E2 08 00 4C 20 80 13 00 00 00 00 00 00 E8 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 62 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 62 00 4C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:37: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:56]wFMCommunicate OK [12:37:56]SAM_PROTO_GetFieldsCounters done [12:37:56]requested_item shift.num is exist - process it [12:37:56]requested_item shift.opened is exist - process it [12:37:56]req_shift_opened [12:37:56]FM_GetShiftState [12:37:56]SAM_PROTO_GetShiftState [12:37:56]wFMCommunicate request_size=4 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 13 01 00 [12:37:56]Write to MH i2c: E2 08 00 4D 20 80 13 01 00 00 00 00 00 EA [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 0E 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 0E 00 4D 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C2 [12:37:56]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:37:56]wFMCommunicate OK [12:37:56]SAM_PROTO_GetShiftState done [12:37:56]FM_GetShiftState done [12:37:56]req_shift_opened done [12:37:56]requested_item shift.open_date is exist - process it [12:37:56]req_shift_open_date [12:37:56]req_shift_open_date done [12:37:56]produce_requested_data done [12:37:56]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118077,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:37:56]process_action_free close_receipt [12:37:56]json_value_free [12:37:56]json_value_free done [12:37:56]process_json_proto returns [12:37:56]Send response to host [12:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118077,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:37:56]free response buf [12:37:56]execute_script done [12:37:56]execute_script returns [12:37:56]free content buf [12:37:56]Sock 9.Close socket [12:37:56]Sock 9.Thread stoped [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:43]accept exits with 7 [12:38:43]New connection [12:38:43]New thread 3067559268 created [12:38:43]Thread 3067415908 joined [12:38:43]Waiting for new connection... [12:38:43] Sock 7.Parse request [12:38:43]Sock 7.Check first char [12:38:43]Sock 7.First char is OK [12:38:43]request: POST /json_proto HTTP/1.0 [12:38:43]Method: POST [12:38:43]URL: /json_proto [12:38:43]Method is POST - this is cgi request [12:38:43]url: /json_proto [12:38:43]query_string will be loaded in cgi processing [12:38:43]execute_cgi json_proto POST (null) [12:38:43]execute_cgi path=json_proto method=POST [12:38:43]POST find Content-Length [12:38:43]Host: 172.17.96.67:8080 [12:38:43]Content-Length: 677 [12:38:43]Content-Type: application/json [12:38:43] [12:38:43]POST finish read [12:38:43]Found Content-Length = 677 [12:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:38:43]execute_script... [12:38: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)245874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:38:43]POST & json_proto [12:38:43]process_json_proto [12:38:43]json parsed OK: [12:38:43]protocol is kg_v1.0 [12:38:43]action value=close_receipt [12:38:43]process_action close_receipt [12:38:43]cmd_close_receipt [12:38:43]MH_GetDate [12:38:43]Write to MH i2c: F0 00 00 4E 20 5D [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 09 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 09 00 4E 20 00 D4 28 22 67 47 6C 1F 67 24 [12:38:43]GetLastDocTimeStamp 1730291873 [12:38:43]current date 1730291924 [12:38:43]FM_GetShiftState [12:38:43]SAM_PROTO_GetShiftState [12:38:43]wFMCommunicate request_size=4 [12:38:43]MH_SAM_APDU [12:38:43]CAPDU: 80 13 01 00 [12:38:43]Write to MH i2c: E2 08 00 4F 20 80 13 01 00 00 00 00 00 EC [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:43]Read from MH i2c: E2 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: E2 0E 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: E2 0E 00 4F 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C4 [12:38:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:38:43]wFMCommunicate OK [12:38:43]SAM_PROTO_GetShiftState done [12:38:43]FM_GetShiftState done [12:38:43]opened in 1730246605 [12:38:43]opened+sec_in_day 1730333005 [12:38:43]quantity*price = 60009 [12:38:43]sum+1 = 60010 [12:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 138 30.10.2024 12:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118078 ФПД: 23968448962022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123844&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118078&fm=23968448962022&tin=02508201610067®Number=0000000000091782&sum=60000 [12:38:44]StoreToDocumentArchive [12:38:44]shift 545 fd 118078 [12:38:44]save to /storage/0545/doc_00118078 [12:38:44]save last doc name /storage/0545/doc_00118078 to /storage/kkm_last_doc_name [12:38:44]save OK [12:38:44]Clear old archive folders... [12:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:44]tlvbuf is B6FEC280 [12:38:44]SAM_PROTO_ClearQueue [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 09 00 00 [12:38:44]Write to MH i2c: E2 08 00 5C 20 80 09 00 00 00 00 00 00 EE [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]SAM_PROTO_ClearQueue done [12:38:44]KKMCreateOFDPacket [12:38:44]OFDProtocolAddRootSTLVToBuf [12:38:44]FM_MakeSignedData [12:38:44]FM_MakeSignedData [12:38:44]SAM_PROTO_SignData [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 0D 01 02 [12:38:44]Write to MH i2c: E2 08 00 5D 20 80 0D 01 02 00 00 00 00 F6 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 5D 20 00 90 00 F1 [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]wFMCommunicate request_size=255 [12:38:44]MH_SAM_APDU [12:38: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 32 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 8A 00 00 00 F4 03 04 00 D4 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CD 01 00 35 04 06 00 15 [12:38:44]Write to MH i2c: E2 02 01 5E 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8A 00 00 00 F4 03 04 00 D4 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CD 01 00 35 04 06 00 15 00 00 B8 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 5E 20 00 90 00 F2 [12:38:45]RAPDU: 90 00 [12:38:45]wFMCommunicate OK [12:38:45]wFMCommunicate request_size=10 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 0D 02 02 05 CC 96 E2 DD E6 [12:38:45]Write to MH i2c: E2 0D 00 5F 20 80 0D 02 02 05 00 CC 96 E2 DD E6 00 00 0A [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 5F 20 00 90 00 F3 [12:38:45]RAPDU: 90 00 [12:38:45]wFMCommunicate OK [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 0D 03 02 [12:38:45]Write to MH i2c: E2 08 00 60 20 80 0D 03 02 00 00 00 00 FB [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0B 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0B 00 60 20 00 1A FF 38 BB 0B D5 04 8B 90 00 77 [12:38:45]RAPDU: 1A FF 38 BB 0B D5 04 8B 90 00 [12:38:45]wFMCommunicate OK [12:38:45]SAM_PROTO_SignData done [12:38:45]FM_MakeSignedData done [12:38:45]CreateOFDProtocolMessage [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 11 00 00 [12:38:45]Write to MH i2c: E2 08 00 61 20 80 11 00 00 00 00 00 00 FB [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 17 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 17 00 61 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 52 [12:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:38:45]wFMCommunicate OK [12:38:45]CreateOFDProtocolMessage done [12:38:45]OFDSenderStorePacket 118078 [12:38:45]StoreOFDPacket docnum=118078 [12:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C3 D3 07 01 38 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8A 00 00 00 F4 03 04 00 D4 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CD 01 00 35 04 06 00 15 CC 96 E2 DD E6 1A FF 38 BB 0B D5 04 8B [12:38:45]CheckFolder [12:38:45]dirname=/storage/ofd_packets [12:38:45]CheckFolder done [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00118078 [12:38:45]NVStorageSaveData ofd_packets/00118078 [12:38:45]File name is /storage/ofd_packets/00118078 [12:38:45]Write 301 bytes [12:38:45]NVStorageSaveData done [12:38:45]OFDSenderStorePacket done [12:38:45]KKMCreateOFDPacket done [12:38:45]NVStorageSaveData kkm_last_timestamp [12:38:45]File name is /storage/kkm_last_timestamp [12:38:45]Write 4 bytes [12:38:45]NVStorageSaveData done [12:38:45]ExternCall_PrintAddStr [12:38:45]wPrintStart [12:38:45]Write to MH i2c: 01 00 00 62 20 82 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 62 20 00 00 00 00 00 FF 0F 97 [12:38:45]RasterBufferAndPrint [12:38:45]line Счет N : (1)245874 [12:38:45]line ИНН: 02508201610067 [12:38:45]line Контрольно-Кассовый Чек [12:38:45]line ПРОДАЖА [12:38:45]line ТРК (МРК, ГНК) : 11 [12:38:45]line Товар: 2710124130 [12:38:45]line Аи-92-К-2 [12:38:45]line 8.970 * 66.90 [12:38:45]line = 600.09 [12:38:45]line НДС 12% НСП 1% [12:38:45]line > о реализуемом товаре [12:38:45]line ОКРУГЛЕНИЕ: -0.09 [12:38:45]line ИТОГО: 600.00 [12:38:45]line Внесено: 600.00 [12:38:45]line СДАЧА: 0.00 [12:38:45]line НСП 1% : 5.31 [12:38:45]line НДС 12% : 63.73 [12:38:45]line Наличными: 600.00 [12:38:45]line Безнал.: 0.00 [12:38:45]line Место: АЗС № 173 "Партнер Нефть" [12:38:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:38:45]line СНО: Общий режим [12:38:45]line Чек 138 30.10.2024 12:38 [12:38:45]line Смена: 545 ФФД: 1.0 [12:38:45]line ЗНМ: 0300000115 [12:38:45]line РНМ: 0000000000091782 [12:38:45]line Версия ККМ: 001 [12:38:45]line ФМ: 0000000000871767 [12:38:45]line ФД: 118078 [12:38:45]line ФПД: 23968448962022 [12:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123844&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118078&fm=23968448962022&tin=02508201610067®Number=0000000000091782&sum=60000 [12:38:45]OFD Sender: Processing packet 118078 [packets to send 77, broken 76] [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00118078 [12:38:45]OFD Sender: To server: pG, [12:38:45]CommunicateWithHost lk.salyk.kg:30040 [12:38:45]ConnectInit lk.salyk.kg [12:38:45]written 0, free lines is 4095 [12:38:45]Connected sock=10 [12:38: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 36 37 0F 01 00 00 C3 D3 07 01 38 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8A 00 00 00 F4 03 04 00 D4 28 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CD 01 00 35 04 06 00 15 CC 96 E2 DD E6 1A FF 38 BB 0B D5 04 8B [12:38: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 36 37 4F 00 00 00 57 D2 47 00 5B B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3E CD 01 00 F4 03 04 00 8C D4 21 67 B6 04 01 00 00 2E CD 11 F0 6B DC 56 B1 [12:38:45]CommunicateWithHost err = 0 [12:38:45]CheckOFDResponse [12:38:45]1017 (14) - 77093643461234 [12:38:45]1041 (16) - 0000000000871767 [12:38:45]1040 (4) - 118078 [12:38:45]1012 (4) - 30.10.2024 06:39 [12:38:45]1206 (1) - 0 [12:38:45]OFD Sender: Remove packet 118078 [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00118078 [12:38:45]NVStorageDeleteData [12:38:46]Write to MH i2c: 01 00 00 8C 20 AC [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 07 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 BE 0C 7D [12:38:46]RasterBufferAndPrint [12:38:46]line [12:38:46]line [12:38:46]line [12:38:46]line [12:38:46]line [12:38:46]written 0, free lines is 3268 [12:38:46]MH_Cut [12:38:46]Write to MH i2c: D1 01 00 93 20 01 85 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: D1 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: D1 01 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: D1 01 00 93 20 00 84 [12:38:46]Write to MH i2c: 01 00 00 94 20 B4 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]OFD Sender: No OFD packet to send [12:38:46]*** Cut start [12:38:46]*** Purtial cut [12:38:46]*** Stage 1: CUTSNS_PIN = 1 [12:38:47]Read from MH i2c: 01 [12:38:47]MH_I2C_Read... [12:38:47]*** Stop cut motor [12:38:47]*** Cut end [12:38:47]Read from MH i2c: 01 07 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 07 00 94 20 00 00 00 00 00 FF 0F C9 [12:38:47]process_action close_receipt done [12:38:47]requested_data is exist [12:38:47]produce_requested_data [12:38:47]requested_item fm.sn is exist - process it [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 11 00 00 [12:38:47]Write to MH i2c: E2 08 00 95 20 80 11 00 00 00 00 00 00 2F [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 95 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 86 [12:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:38:47]wFMCommunicate OK [12:38:47]requested_item fd.num is exist - process it [12:38:47]SAM_PROTO_GetFieldsCounters [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 13 00 00 [12:38:47]Write to MH i2c: E2 08 00 96 20 80 13 00 00 00 00 00 00 32 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 62 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 62 00 96 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:38: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_GetFieldsCounters done [12:38:47]requested_item shift.num is exist - process it [12:38:47]requested_item shift.opened is exist - process it [12:38:47]req_shift_opened [12:38:47]FM_GetShiftState [12:38:47]SAM_PROTO_GetShiftState [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 13 01 00 [12:38:47]Write to MH i2c: E2 08 00 97 20 80 13 01 00 00 00 00 00 34 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0E 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0E 00 97 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0C [12:38:47]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_GetShiftState done [12:38:47]FM_GetShiftState done [12:38:47]req_shift_opened done [12:38:47]requested_item shift.open_date is exist - process it [12:38:47]req_shift_open_date [12:38:47]req_shift_open_date done [12:38:47]produce_requested_data done [12:38:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118078,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:38:47]process_action_free close_receipt [12:38:47]json_value_free [12:38:47]json_value_free done [12:38:47]process_json_proto returns [12:38:47]Send response to host [12:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118078,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:38:47]free response buf [12:38:47]execute_script done [12:38:47]execute_script returns [12:38:47]free content buf [12:38:47]Sock 7.Close socket [12:38:47]Sock 7.Thread stoped [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:40:59]accept exits with 9 [12:40:59]New connection [12:40:59]New thread 3067415908 created [12:40:59]Thread 3067559268 joined [12:40:59]Waiting for new connection... [12:40:59] Sock 9.Parse request [12:40:59]Sock 9.Check first char [12:40:59]Sock 9.First char is OK [12:40:59]request: POST /json_proto HTTP/1.0 [12:40:59]Method: POST [12:40:59]URL: /json_proto [12:40:59]Method is POST - this is cgi request [12:40:59]url: /json_proto [12:40:59]query_string will be loaded in cgi processing [12:40:59]execute_cgi json_proto POST (null) [12:40:59]execute_cgi path=json_proto method=POST [12:40:59]POST find Content-Length [12:40:59]Host: 172.17.96.67:8080 [12:40:59]Content-Length: 677 [12:40:59]Content-Type: application/json [12:40:59] [12:40:59]POST finish read [12:40:59]Found Content-Length = 677 [12:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:59]execute_script... [12:40: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)245875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:59]POST & json_proto [12:40:59]process_json_proto [12:40:59]json parsed OK: [12:40:59]protocol is kg_v1.0 [12:40:59]action value=close_receipt [12:40:59]process_action close_receipt [12:40:59]cmd_close_receipt [12:40:59]MH_GetDate [12:40:59]Write to MH i2c: F0 00 00 98 20 A7 [12:40:59]Write i2c OK [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: F0 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: F0 09 00 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: F0 09 00 98 20 00 5C 29 22 67 47 6C 1F 67 F7 [12:40:59]GetLastDocTimeStamp 1730291924 [12:40:59]current date 1730292060 [12:40:59]FM_GetShiftState [12:40:59]SAM_PROTO_GetShiftState [12:40:59]wFMCommunicate request_size=4 [12:40:59]MH_SAM_APDU [12:40:59]CAPDU: 80 13 01 00 [12:40:59]Write to MH i2c: E2 08 00 99 20 80 13 01 00 00 00 00 00 36 [12:40:59]Write i2c OK [12:40:59]MH_I2C_Read... [12:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:59]Read from MH i2c: E2 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 0E 00 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 0E 00 99 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0E [12:40:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:40:59]wFMCommunicate OK [12:40:59]SAM_PROTO_GetShiftState done [12:40:59]FM_GetShiftState done [12:40:59]opened in 1730246605 [12:40:59]opened+sec_in_day 1730333005 [12:40:59]quantity*price = 21006 [12:40:59]sum+1 = 21008 [12:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 139 30.10.2024 12:41 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118079 ФПД: 233966350314218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124100&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118079&fm=233966350314218&tin=02508201610067®Number=0000000000091782&sum=21000 [12:41:00]StoreToDocumentArchive [12:41:00]shift 545 fd 118079 [12:41:00]save to /storage/0545/doc_00118079 [12:41:00]save last doc name /storage/0545/doc_00118079 to /storage/kkm_last_doc_name [12:41:00]save OK [12:41:00]Clear old archive folders... [12:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:00]tlvbuf is 006D1BB0 [12:41:00]SAM_PROTO_ClearQueue [12:41:00]wFMCommunicate request_size=4 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 09 00 00 [12:41:00]Write to MH i2c: E2 08 00 A6 20 80 09 00 00 00 00 00 00 38 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 A6 20 00 90 00 3A [12:41:00]RAPDU: 90 00 [12:41:00]wFMCommunicate OK [12:41:00]SAM_PROTO_ClearQueue done [12:41:00]KKMCreateOFDPacket [12:41:00]OFDProtocolAddRootSTLVToBuf [12:41:00]FM_MakeSignedData [12:41:00]FM_MakeSignedData [12:41:00]SAM_PROTO_SignData [12:41:00]wFMCommunicate request_size=4 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 0D 01 02 [12:41:00]Write to MH i2c: E2 08 00 A7 20 80 0D 01 02 00 00 00 00 40 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 A7 20 00 90 00 3B [12:41:00]RAPDU: 90 00 [12:41:00]wFMCommunicate OK [12:41:00]wFMCommunicate request_size=255 [12:41:00]MH_SAM_APDU [12:41: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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C 29 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CD 01 00 35 04 06 00 D4 [12:41:00]Write to MH i2c: E2 02 01 A8 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C 29 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CD 01 00 35 04 06 00 D4 00 00 04 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 A8 20 00 90 00 3C [12:41:00]RAPDU: 90 00 [12:41:00]wFMCommunicate OK [12:41:00]wFMCommunicate request_size=10 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 0D 02 02 05 CA 89 33 2A EA [12:41:00]Write to MH i2c: E2 0D 00 A9 20 80 0D 02 02 05 00 CA 89 33 2A EA 00 00 E7 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:01]Read from MH i2c: E2 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 03 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 03 00 A9 20 00 90 00 3D [12:41:01]RAPDU: 90 00 [12:41:01]wFMCommunicate OK [12:41:01]wFMCommunicate request_size=4 [12:41:01]MH_SAM_APDU [12:41:01]CAPDU: 80 0D 03 02 [12:41:01]Write to MH i2c: E2 08 00 AA 20 80 0D 03 02 00 00 00 00 45 [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:01]Read from MH i2c: E2 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 0B 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 0B 00 AA 20 00 71 B4 73 80 32 37 5E AC 90 00 D1 [12:41:01]RAPDU: 71 B4 73 80 32 37 5E AC 90 00 [12:41:01]wFMCommunicate OK [12:41:01]SAM_PROTO_SignData done [12:41:01]FM_MakeSignedData done [12:41:01]CreateOFDProtocolMessage [12:41:01]wFMCommunicate request_size=4 [12:41:01]MH_SAM_APDU [12:41:01]CAPDU: 80 11 00 00 [12:41:01]Write to MH i2c: E2 08 00 AB 20 80 11 00 00 00 00 00 00 45 [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:01]Read from MH i2c: E2 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 17 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 17 00 AB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9C [12:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:41:01]wFMCommunicate OK [12:41:01]CreateOFDProtocolMessage done [12:41:01]OFDSenderStorePacket 118079 [12:41:01]StoreOFDPacket docnum=118079 [12:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4C 39 07 01 44 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C 29 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CD 01 00 35 04 06 00 D4 CA 89 33 2A EA 71 B4 73 80 32 37 5E AC [12:41:01]CheckFolder [12:41:01]dirname=/storage/ofd_packets [12:41:01]CheckFolder done [12:41:01]ProducePacketName [12:41:01]name=ofd_packets/00118079 [12:41:01]NVStorageSaveData ofd_packets/00118079 [12:41:01]File name is /storage/ofd_packets/00118079 [12:41:01]Write 301 bytes [12:41:01]NVStorageSaveData done [12:41:01]OFDSenderStorePacket done [12:41:01]KKMCreateOFDPacket done [12:41:01]NVStorageSaveData kkm_last_timestamp [12:41:01]File name is /storage/kkm_last_timestamp [12:41:01]Write 4 bytes [12:41:01]NVStorageSaveData done [12:41:01]ExternCall_PrintAddStr [12:41:01]wPrintStart [12:41:01]Write to MH i2c: 01 00 00 AC 20 CC [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 AC 20 00 00 00 00 00 FF 0F E1 [12:41:01]RasterBufferAndPrint [12:41:01]line Счет N : (1)245875 [12:41:01]line ИНН: 02508201610067 [12:41:01]line Контрольно-Кассовый Чек [12:41:01]line ПРОДАЖА [12:41:01]line ТРК (МРК, ГНК) : 21 [12:41:01]line Товар: 2710124130 [12:41:01]line Аи-92-К-2 [12:41:01]line 3.140 * 66.90 [12:41:01]line = 210.07 [12:41:01]line НДС 12% НСП 1% [12:41:01]line > о реализуемом товаре [12:41:01]line ОКРУГЛЕНИЕ: -0.07 [12:41:01]line ИТОГО: 210.00 [12:41:01]line Внесено: 210.00 [12:41:01]line СДАЧА: 0.00 [12:41:01]line НСП 1% : 1.86 [12:41:01]line НДС 12% : 22.31 [12:41:01]line Наличными: 210.00 [12:41:01]line Безнал.: 0.00 [12:41:01]line Место: АЗС № 173 "Партнер Нефть" [12:41:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:41:01]line СНО: Общий режим [12:41:01]line Чек 139 30.10.2024 12:41 [12:41:01]line Смена: 545 ФФД: 1.0 [12:41:01]line ЗНМ: 0300000115 [12:41:01]line РНМ: 0000000000091782 [12:41:01]line Версия ККМ: 001 [12:41:01]line ФМ: 0000000000871767 [12:41:01]line ФД: 118079 [12:41:01]line ФПД: 233966350314218 [12:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124100&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118079&fm=233966350314218&tin=02508201610067®Number=0000000000091782&sum=21000 [12:41:01]written 0, free lines is 4095 [12:41:01]OFD Sender: Processing packet 118079 [packets to send 77, broken 76] [12:41:01]ProducePacketName [12:41:01]name=ofd_packets/00118079 [12:41:01]OFD Sender: To server: pG, [12:41:01]CommunicateWithHost lk.salyk.kg:30040 [12:41:01]ConnectInit lk.salyk.kg [12:41:01]Write to MH i2c: 01 00 00 D6 20 F6 [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 D6 20 00 00 00 00 00 B1 0C BA [12:41:01]RasterBufferAndPrint [12:41:01]line [12:41:01]line [12:41:01]line [12:41:01]line [12:41:01]line [12:41:01]written 0, free lines is 3253 [12:41:01]MH_Cut [12:41:01]Write to MH i2c: D1 01 00 DD 20 01 CF [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: D1 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: D1 01 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: D1 01 00 DD 20 00 CE [12:41:01]Write to MH i2c: 01 00 00 DE 20 FE [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:02]*** Cut start [12:41:02]*** Purtial cut [12:41:02]*** Stage 1: CUTSNS_PIN = 1 [12:41:03]Read from MH i2c: 01 [12:41:03]MH_I2C_Read... [12:41:03]*** Stop cut motor [12:41:03]*** Cut end [12:41:03]Read from MH i2c: 01 07 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: 01 07 00 DE 20 00 00 00 00 00 FF 0F 13 [12:41:03]process_action close_receipt done [12:41:03]requested_data is exist [12:41:03]produce_requested_data [12:41:03]requested_item fm.sn is exist - process it [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 11 00 00 [12:41:03]Write to MH i2c: E2 08 00 DF 20 80 11 00 00 00 00 00 00 79 [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 17 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 17 00 DF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D0 [12:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:41:03]wFMCommunicate OK [12:41:03]requested_item fd.num is exist - process it [12:41:03]SAM_PROTO_GetFieldsCounters [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 13 00 00 [12:41:03]Write to MH i2c: E2 08 00 E0 20 80 13 00 00 00 00 00 00 7C [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 62 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 62 00 E0 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12:41: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 3F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_GetFieldsCounters done [12:41:03]requested_item shift.num is exist - process it [12:41:03]requested_item shift.opened is exist - process it [12:41:03]req_shift_opened [12:41:03]FM_GetShiftState [12:41:03]SAM_PROTO_GetShiftState [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 13 01 00 [12:41:03]Write to MH i2c: E2 08 00 E1 20 80 13 01 00 00 00 00 00 7E [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 E1 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 56 [12:41:03]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_GetShiftState done [12:41:03]FM_GetShiftState done [12:41:03]req_shift_opened done [12:41:03]requested_item shift.open_date is exist - process it [12:41:03]req_shift_open_date [12:41:03]req_shift_open_date done [12:41:03]produce_requested_data done [12:41:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118079,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:41:03]process_action_free close_receipt [12:41:03]json_value_free [12:41:03]json_value_free done [12:41:03]process_json_proto returns [12:41:03]Send response to host [12:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118079,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:41:03]free response buf [12:41:03]execute_script done [12:41:03]execute_script returns [12:41:03]free content buf [12:41:03]Sock 9.Close socket [12:41:03]Sock 9.Thread stoped [12:41:16]int [12:41:16]Write to MH i2c: 01 00 00 E2 20 02 [12:41:16]*** FLAG_PRN_PAP1 set [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 E2 20 00 01 00 00 00 FF 0F 18 [12:41:16]state=0 [12:41:16]No paper [12:41:16]int [12:41:16]Write to MH i2c: 01 00 00 E3 20 03 [12:41:16]*** FLAG_PRN_PAP2 set [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 E3 20 00 03 00 00 00 FF 0F 1B [12:41:16]state=0 [12:41:16]No paper [12:41:16]Cover opened [12:41:21]Write to MH i2c: 01 00 00 E4 20 04 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 E4 20 00 03 00 00 00 FF 0F 1C [12:41:21]state=3 [12:41:21]No paper [12:41:21]Cover opened [12:41:26]Write to MH i2c: 01 00 00 E5 20 05 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 07 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 07 00 E5 20 00 03 00 00 00 FF 0F 1D [12:41:26]state=3 [12:41:26]No paper [12:41:26]Cover opened [12:41:31]Write to MH i2c: 01 00 00 E6 20 06 [12:41:31]Write i2c OK [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: 01 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: 01 07 00 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: 01 07 00 E6 20 00 03 00 00 00 FF 0F 1E [12:41:31]state=3 [12:41:31]No paper [12:41:31]Cover opened [12:41:36]Write to MH i2c: 01 00 00 E7 20 07 [12:41:36]Write i2c OK [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: 01 [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: 01 07 00 [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: 01 07 00 E7 20 00 03 00 00 00 FF 0F 1F [12:41:36]state=3 [12:41:36]No paper [12:41:36]Cover opened [12:41:41]Write to MH i2c: 01 00 00 E8 20 08 [12:41:41]Write i2c OK [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: 01 [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: 01 07 00 [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: 01 07 00 E8 20 00 03 00 00 00 FF 0F 20 [12:41:41]state=3 [12:41:41]No paper [12:41:41]Cover opened [12:41:43]int [12:41:43]Write to MH i2c: 01 00 00 E9 20 09 [12:41:43]*** FLAG_PRN_PAP1 reset [12:41:43]*** FLAG_PRN_PAP2 reset [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: 01 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: 01 07 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: 01 07 00 E9 20 00 00 00 00 00 FF 0F 1E [12:41:43]state=3 [12:41:43]Cover closed [12:43:11]ConnectInit Can't connect to host [12:43:11]CommunicateWithHost connect error [12:43:11]CommunicateWithHost err = -1 [12:43:11]OFD Sender: Server communicate error [12:43:16]OFD Sender: Processing packet 118079 [packets to send 77, broken 76] [12:43:16]ProducePacketName [12:43:16]name=ofd_packets/00118079 [12:43:16]OFD Sender: To server: pG, [12:43:16]CommunicateWithHost lk.salyk.kg:30040 [12:43:16]ConnectInit lk.salyk.kg [12:43:16]Connected sock=9 [12:43: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 36 37 0F 01 00 00 4C 39 07 01 44 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C 29 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CD 01 00 35 04 06 00 D4 CA 89 33 2A EA 71 B4 73 80 32 37 5E AC [12:43: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 36 37 4F 00 00 00 7E DA 47 00 DB 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 3F CD 01 00 F4 03 04 00 9A D5 21 67 B6 04 01 00 00 C0 D9 53 31 92 E8 B0 CC [12:43:16]CommunicateWithHost err = 0 [12:43:16]CheckOFDResponse [12:43:16]1017 (14) - 77093643461234 [12:43:16]1041 (16) - 0000000000871767 [12:43:16]1040 (4) - 118079 [12:43:16]1012 (4) - 30.10.2024 06:43 [12:43:16]1206 (1) - 0 [12:43:16]OFD Sender: Remove packet 118079 [12:43:16]ProducePacketName [12:43:16]name=ofd_packets/00118079 [12:43:16]NVStorageDeleteData [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:32]accept exits with 7 [12:44:32]New connection [12:44:32]New thread 3067559268 created [12:44:32]Thread 3067415908 joined [12:44:32]Waiting for new connection... [12:44:32] Sock 7.Parse request [12:44:32]Sock 7.Check first char [12:44:32]Sock 7.First char is OK [12:44:32]request: POST /json_proto HTTP/1.0 [12:44:32]Method: POST [12:44:32]URL: /json_proto [12:44:32]Method is POST - this is cgi request [12:44:32]url: /json_proto [12:44:32]query_string will be loaded in cgi processing [12:44:32]execute_cgi json_proto POST (null) [12:44:32]execute_cgi path=json_proto method=POST [12:44:32]POST find Content-Length [12:44:32]Host: 172.17.96.67:8080 [12:44:32]Content-Length: 679 [12:44:32]Content-Type: application/json [12:44:32] [12:44:32]POST finish read [12:44:32]Found Content-Length = 679 [12:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:44:32]execute_script... [12:44: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)245876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:44:32]POST & json_proto [12:44:32]process_json_proto [12:44:32]json parsed OK: [12:44:32]protocol is kg_v1.0 [12:44:32]action value=close_receipt [12:44:32]process_action close_receipt [12:44:32]cmd_close_receipt [12:44:32]MH_GetDate [12:44:32]Write to MH i2c: F0 00 00 EA 20 F9 [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: F0 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: F0 09 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: F0 09 00 EA 20 00 31 2A 22 67 47 6C 1F 67 1F [12:44:32]GetLastDocTimeStamp 1730292060 [12:44:32]current date 1730292273 [12:44:32]FM_GetShiftState [12:44:32]SAM_PROTO_GetShiftState [12:44:32]wFMCommunicate request_size=4 [12:44:32]MH_SAM_APDU [12:44:32]CAPDU: 80 13 01 00 [12:44:32]Write to MH i2c: E2 08 00 EB 20 80 13 01 00 00 00 00 00 88 [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:32]Read from MH i2c: E2 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 0E 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 0E 00 EB 20 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 60 [12:44:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:44:32]wFMCommunicate OK [12:44:32]SAM_PROTO_GetShiftState done [12:44:32]FM_GetShiftState done [12:44:32]opened in 1730246605 [12:44:32]opened+sec_in_day 1730333005 [12:44:32]quantity*price = 100050 [12:44:32]sum+1 = 100052 [12:44:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 140 30.10.2024 12:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118080 ФПД: 202660705025322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124433&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118080&fm=202660705025322&tin=02508201610067®Number=0000000000091782&sum=100000 [12:44:33]StoreToDocumentArchive [12:44:33]shift 545 fd 118080 [12:44:33]save to /storage/0545/doc_00118080 [12:44:33]save last doc name /storage/0545/doc_00118080 to /storage/kkm_last_doc_name [12:44:33]save OK [12:44:33]Clear old archive folders... [12:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:44:33]tlvbuf is 00669AA0 [12:44:33]SAM_PROTO_ClearQueue [12:44:33]wFMCommunicate request_size=4 [12:44:33]MH_SAM_APDU [12:44:33]CAPDU: 80 09 00 00 [12:44:33]Write to MH i2c: E2 08 00 F8 20 80 09 00 00 00 00 00 00 8A [12:44:33]Write i2c OK [12:44:33]MH_I2C_Read... [12:44:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:33]Read from MH i2c: E2 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 03 00 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 03 00 F8 20 00 90 00 8C [12:44:33]RAPDU: 90 00 [12:44:33]wFMCommunicate OK [12:44:33]SAM_PROTO_ClearQueue done [12:44:33]KKMCreateOFDPacket [12:44:33]OFDProtocolAddRootSTLVToBuf [12:44:33]FM_MakeSignedData [12:44:33]FM_MakeSignedData [12:44:33]SAM_PROTO_SignData [12:44:33]wFMCommunicate request_size=4 [12:44:33]MH_SAM_APDU [12:44:33]CAPDU: 80 0D 01 02 [12:44:33]Write to MH i2c: E2 08 00 F9 20 80 0D 01 02 00 00 00 00 92 [12:44:33]Write i2c OK [12:44:33]MH_I2C_Read... [12:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:33]Read from MH i2c: E2 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 03 00 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 03 00 F9 20 00 90 00 8D [12:44:33]RAPDU: 90 00 [12:44:33]wFMCommunicate OK [12:44:33]wFMCommunicate request_size=255 [12:44:33]MH_SAM_APDU [12:44:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 31 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CD 01 00 35 04 06 00 B8 51 9F 55 [12:44:33]Write to MH i2c: E2 02 01 FA 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 31 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CD 01 00 35 04 06 00 B8 51 9F 55 00 00 B8 [12:44:33]Write i2c OK [12:44:33]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 FA 20 00 90 00 8E [12:44:34]RAPDU: 90 00 [12:44:34]wFMCommunicate OK [12:44:34]wFMCommunicate request_size=7 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 0D 02 02 02 3D 2A [12:44:34]Write to MH i2c: E2 0A 00 FB 20 80 0D 02 02 02 00 3D 2A 00 00 00 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 FB 20 00 90 00 8F [12:44:34]RAPDU: 90 00 [12:44:34]wFMCommunicate OK [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 0D 03 02 [12:44:34]Write to MH i2c: E2 08 00 FC 20 80 0D 03 02 00 00 00 00 97 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 0B 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 0B 00 FC 20 00 33 30 C0 2F E4 3D 62 BC 90 00 29 [12:44:34]RAPDU: 33 30 C0 2F E4 3D 62 BC 90 00 [12:44:34]wFMCommunicate OK [12:44:34]SAM_PROTO_SignData done [12:44:34]FM_MakeSignedData done [12:44:34]CreateOFDProtocolMessage [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 11 00 00 [12:44:34]Write to MH i2c: E2 08 00 FD 20 80 11 00 00 00 00 00 00 97 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 17 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 17 00 FD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EE [12:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:44:34]wFMCommunicate OK [12:44:34]CreateOFDProtocolMessage done [12:44:34]OFDSenderStorePacket 118080 [12:44:34]StoreOFDPacket docnum=118080 [12:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 A5 7C 04 01 5A 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 31 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CD 01 00 35 04 06 00 B8 51 9F 55 3D 2A 33 30 C0 2F E4 3D 62 BC [12:44:34]CheckFolder [12:44:34]dirname=/storage/ofd_packets [12:44:34]CheckFolder done [12:44:34]ProducePacketName [12:44:34]name=ofd_packets/00118080 [12:44:34]NVStorageSaveData ofd_packets/00118080 [12:44:34]File name is /storage/ofd_packets/00118080 [12:44:34]Write 298 bytes [12:44:34]NVStorageSaveData done [12:44:34]OFDSenderStorePacket done [12:44:34]KKMCreateOFDPacket done [12:44:34]NVStorageSaveData kkm_last_timestamp [12:44:34]File name is /storage/kkm_last_timestamp [12:44:34]Write 4 bytes [12:44:34]NVStorageSaveData done [12:44:34]ExternCall_PrintAddStr [12:44:34]wPrintStart [12:44:34]Write to MH i2c: 01 00 00 FE 20 1E [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: 01 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: 01 07 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: 01 07 00 FE 20 00 00 00 00 00 FF 0F 33 [12:44:34]RasterBufferAndPrint [12:44:34]line Счет N : (1)245876 [12:44:34]line ИНН: 02508201610067 [12:44:34]line Контрольно-Кассовый Чек [12:44:34]line ПРОДАЖА [12:44:34]line ТРК (МРК, ГНК) : 13 [12:44:34]line Товар: 2710194210 [12:44:34]line ДТ-К-2 [12:44:34]line 13.130 * 76.20 [12:44:34]line = 1000.51 [12:44:34]line НДС 12% НСП 1% [12:44:34]line > о реализуемом товаре [12:44:34]line ОКРУГЛЕНИЕ: -0.51 [12:44:34]line ИТОГО: 1000.00 [12:44:34]line Внесено: 1000.00 [12:44:34]line СДАЧА: 0.00 [12:44:34]line НСП 1% : 8.85 [12:44:34]line НДС 12% : 106.25 [12:44:34]line Наличными: 1000.00 [12:44:34]line Безнал.: 0.00 [12:44:34]line Место: АЗС № 173 "Партнер Нефть" [12:44:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:44:34]line СНО: Общий режим [12:44:34]line Чек 140 30.10.2024 12:44 [12:44:34]line Смена: 545 ФФД: 1.0 [12:44:34]line ЗНМ: 0300000115 [12:44:34]line РНМ: 0000000000091782 [12:44:34]line Версия ККМ: 001 [12:44:34]line ФМ: 0000000000871767 [12:44:34]line ФД: 118080 [12:44:34]line ФПД: 202660705025322 [12:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124433&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118080&fm=202660705025322&tin=02508201610067®Number=0000000000091782&sum=100000 [12:44:34]OFD Sender: Processing packet 118080 [packets to send 77, broken 76] [12:44:34]ProducePacketName [12:44:34]name=ofd_packets/00118080 [12:44:34]OFD Sender: To server: pG, [12:44:34]CommunicateWithHost lk.salyk.kg:30040 [12:44:34]ConnectInit lk.salyk.kg [12:44:34]written 0, free lines is 4095 [12:44:34]Connected sock=10 [12:44: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 36 37 0C 01 00 00 A5 7C 04 01 5A 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 31 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CD 01 00 35 04 06 00 B8 51 9F 55 3D 2A 33 30 C0 2F E4 3D 62 BC [12:44: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 36 37 4F 00 00 00 26 22 47 00 8D E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 40 CD 01 00 F4 03 04 00 E9 D5 21 67 B6 04 01 00 00 5F CD FA 55 2F 2A 9F AC [12:44:34]CommunicateWithHost err = 0 [12:44:34]CheckOFDResponse [12:44:34]1017 (14) - 77093643461234 [12:44:34]1041 (16) - 0000000000871767 [12:44:34]1040 (4) - 118080 [12:44:34]1012 (4) - 30.10.2024 06:44 [12:44:34]1206 (1) - 0 [12:44:34]OFD Sender: Remove packet 118080 [12:44:34]ProducePacketName [12:44:34]name=ofd_packets/00118080 [12:44:34]NVStorageDeleteData [12:44:35]Write to MH i2c: 01 00 00 28 21 49 [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: 01 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: 01 07 00 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: 01 07 00 28 21 00 00 00 00 00 BF 0C 1B [12:44:35]RasterBufferAndPrint [12:44:35]line [12:44:35]line [12:44:35]line [12:44:35]line [12:44:35]line [12:44:35]written 0, free lines is 3267 [12:44:35]MH_Cut [12:44:35]Write to MH i2c: D1 01 00 2F 21 01 22 [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: D1 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: D1 01 00 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: D1 01 00 2F 21 00 21 [12:44:35]Write to MH i2c: 01 00 00 30 21 51 [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]OFD Sender: No OFD packet to send [12:44:35]*** Cut start [12:44:35]*** Purtial cut [12:44:35]*** Stage 1: CUTSNS_PIN = 1 [12:44:36]Read from MH i2c: 01 [12:44:36]MH_I2C_Read... [12:44:36]*** Stop cut motor [12:44:36]*** Cut end [12:44:36]Read from MH i2c: 01 07 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: 01 07 00 30 21 00 00 00 00 00 FF 0F 66 [12:44:36]process_action close_receipt done [12:44:36]requested_data is exist [12:44:36]produce_requested_data [12:44:36]requested_item fm.sn is exist - process it [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 11 00 00 [12:44:36]Write to MH i2c: E2 08 00 31 21 80 11 00 00 00 00 00 00 CC [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 17 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 17 00 31 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 23 [12:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:44:36]wFMCommunicate OK [12:44:36]requested_item fd.num is exist - process it [12:44:36]SAM_PROTO_GetFieldsCounters [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 13 00 00 [12:44:36]Write to MH i2c: E2 08 00 32 21 80 13 00 00 00 00 00 00 CF [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 62 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 62 00 32 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 40 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [12:44: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 40 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:36]wFMCommunicate OK [12:44:36]SAM_PROTO_GetFieldsCounters done [12:44:36]requested_item shift.num is exist - process it [12:44:36]requested_item shift.opened is exist - process it [12:44:36]req_shift_opened [12:44:36]FM_GetShiftState [12:44:36]SAM_PROTO_GetShiftState [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 13 01 00 [12:44:36]Write to MH i2c: E2 08 00 33 21 80 13 01 00 00 00 00 00 D1 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0E 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0E 00 33 21 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A9 [12:44:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:44:36]wFMCommunicate OK [12:44:36]SAM_PROTO_GetShiftState done [12:44:36]FM_GetShiftState done [12:44:36]req_shift_opened done [12:44:36]requested_item shift.open_date is exist - process it [12:44:36]req_shift_open_date [12:44:36]req_shift_open_date done [12:44:36]produce_requested_data done [12:44:36]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118080,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:44:36]process_action_free close_receipt [12:44:36]json_value_free [12:44:36]json_value_free done [12:44:36]process_json_proto returns [12:44:36]Send response to host [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 3A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005724FF (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 179720+1730112583=1730292303 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 3B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 4F 2A 22 67 47 6C 1F 67 3A [12:45:03]Current date/time: 30.10.2024 12:45 [12:45:03]FM_Init [12:45:03]wFMConnect [12:45:03]MH_SAM_On [12:45:03]Write to MH i2c: E0 00 00 08 00 E7 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_init finished! [12:45:03]*** atr: [12:45:03]*** 0F 3B D5 18 FF 81 91 FE [12:45:03]*** 1F C3 80 73 C8 21 10 0A [12:45:03]*** 00 00 00 00 00 00 00 00 [12:45:03]*** 00 00 00 00 00 00 00 00 [12:45:03]*** 00 00 00 00 00 00 00 00 [12:45:03]*** 00 00 00 00 00 00 00 00 [12:45:03]*** 00 00 00 00 00 00 00 00 [12:45:03]*** 00 00 00 00 00 00 00 00 [12:45:03]Read from MH i2c: E0 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E0 10 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:45:03]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:45:03]wFMCommunicate request_size=10 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:45:03]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 11 00 00 [12:45:03]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DB [12:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:45:03]wFMCommunicate OK [12:45:03]Detected FM SN is 0000000000871767 [12:45:03]Stored FM SN is 0000000000871767 [12:45:03]wFMCommunicate request_size=9 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 16 00 00 04 5E 2D 01 00 [12:45:03]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 5E 2D 01 00 00 00 1E [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]FM PIN OK [12:45:03]wFMCommunicate request_size=8 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 14 04 00 03 02 00 01 [12:45:03]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=13 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:45:03]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 11 00 00 [12:45:03]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DF [12:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:45:03]wFMCommunicate OK [12:45:03]DocumentArchiveInit [12:45:03]Start Httpd... [12:45:03]Httpd thread 3066981732 created [12:45:03]Write to MH i2c: 01 00 00 0F 00 0F [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:45:03]MH Int Process started [12:45:03]Allocated Socket 8 [12:45:03]Bind OK [12:45:03]Listen OK [12:45:03]httpd running on port 8080 [12:45:03]Waiting for new connection... [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]accept exits with 9 [12:46:53]New connection [12:46:53]New thread 3066695012 created [12:46:53]Waiting for new connection... [12:46:53] Sock 9.Parse request [12:46:53]Sock 9.Check first char [12:46:53]Sock 9.First char is OK [12:46:53]request: POST /json_proto HTTP/1.0 [12:46:53]Method: POST [12:46:53]URL: /json_proto [12:46:53]Method is POST - this is cgi request [12:46:53]url: /json_proto [12:46:53]query_string will be loaded in cgi processing [12:46:53]execute_cgi json_proto POST (null) [12:46:53]execute_cgi path=json_proto method=POST [12:46:53]POST find Content-Length [12:46:53]Host: 172.17.96.67:8080 [12:46:53]Content-Length: 677 [12:46:53]Content-Type: application/json [12:46:53] [12:46:53]POST finish read [12:46:53]Found Content-Length = 677 [12:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:53]execute_script... [12:46: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)245877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:53]POST & json_proto [12:46:53]process_json_proto [12:46:53]json parsed OK: [12:46:53]protocol is kg_v1.0 [12:46:53]action value=close_receipt [12:46:53]process_action close_receipt [12:46:53]cmd_close_receipt [12:46:53]MH_GetDate [12:46:53]Write to MH i2c: F0 00 00 10 00 FF [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: F0 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: F0 09 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: F0 09 00 10 00 00 BE 2A 22 67 47 6C 1F 67 B2 [12:46:53]GetLastDocTimeStamp 97 [12:46:53]current date 1730292414 [12:46:53]FM_GetShiftState [12:46:53]SAM_PROTO_GetShiftState [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 13 01 00 [12:46:53]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]OFD Sender: No OFD packet to send [12:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 66 [12:46:53]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_GetShiftState done [12:46:53]FM_GetShiftState done [12:46:53]opened in 1730246605 [12:46:53]opened+sec_in_day 1730333005 [12:46:53]quantity*price = 30038 [12:46:53]sum+1 = 30039 [12:46: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 141 30.10.2024 12:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118081 ФПД: 247241126772078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124654&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118081&fm=247241126772078&tin=02508201610067®Number=0000000000091782&sum=30000 [12:46:54]StoreToDocumentArchive [12:46:54]shift 545 fd 118081 [12:46:54]save to /storage/0545/doc_00118081 [12:46:54]save last doc name /storage/0545/doc_00118081 to /storage/kkm_last_doc_name [12:46:54]save OK [12:46:54]Clear old archive folders... [12:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:54]tlvbuf is B6E823B0 [12:46:54]SAM_PROTO_ClearQueue [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 09 00 00 [12:46:54]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]SAM_PROTO_ClearQueue done [12:46:54]KKMCreateOFDPacket [12:46:54]OFDProtocolAddRootSTLVToBuf [12:46:54]FM_MakeSignedData [12:46:54]FM_MakeSignedData [12:46:54]SAM_PROTO_SignData [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 0D 01 02 [12:46:54]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=255 [12:46:54]MH_SAM_APDU [12:46: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 32 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 8D 00 00 00 F4 03 04 00 BE 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CD 01 00 35 04 06 00 E0 [12:46:54]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8D 00 00 00 F4 03 04 00 BE 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CD 01 00 35 04 06 00 E0 00 00 2E [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 03 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [12:46:55]RAPDU: 90 00 [12:46:55]wFMCommunicate OK [12:46:55]wFMCommunicate request_size=10 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 0D 02 02 05 DD 4F 88 FD 6E [12:46:55]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 DD 4F 88 FD 6E 00 00 C4 [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 03 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [12:46:55]RAPDU: 90 00 [12:46:55]wFMCommunicate OK [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 0D 03 02 [12:46:55]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0B 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0B 00 22 00 00 AD A7 6E D8 8C 60 36 C0 90 00 1A [12:46:55]RAPDU: AD A7 6E D8 8C 60 36 C0 90 00 [12:46:55]wFMCommunicate OK [12:46:55]SAM_PROTO_SignData done [12:46:55]FM_MakeSignedData done [12:46:55]CreateOFDProtocolMessage [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 11 00 00 [12:46:55]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 17 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F4 [12:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:46:55]wFMCommunicate OK [12:46:55]CreateOFDProtocolMessage done [12:46:55]OFDSenderStorePacket 118081 [12:46:55]StoreOFDPacket docnum=118081 [12:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F1 27 07 01 DD 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 BE 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CD 01 00 35 04 06 00 E0 DD 4F 88 FD 6E AD A7 6E D8 8C 60 36 C0 [12:46:55]CheckFolder [12:46:55]dirname=/storage/ofd_packets [12:46:55]CheckFolder done [12:46:55]ProducePacketName [12:46:55]name=ofd_packets/00118081 [12:46:55]NVStorageSaveData ofd_packets/00118081 [12:46:55]File name is /storage/ofd_packets/00118081 [12:46:55]Write 301 bytes [12:46:55]NVStorageSaveData done [12:46:55]OFDSenderStorePacket done [12:46:55]KKMCreateOFDPacket done [12:46:55]NVStorageSaveData kkm_last_timestamp [12:46:55]File name is /storage/kkm_last_timestamp [12:46:55]Write 4 bytes [12:46:55]NVStorageSaveData done [12:46:55]ExternCall_PrintAddStr [12:46:55]wPrintStart [12:46:55]Write to MH i2c: 01 00 00 24 00 24 [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [12:46:55]RasterBufferAndPrint [12:46:55]line Счет N : (1)245877 [12:46:55]line ИНН: 02508201610067 [12:46:55]line Контрольно-Кассовый Чек [12:46:55]line ПРОДАЖА [12:46:55]line ТРК (МРК, ГНК) : 11 [12:46:55]line Товар: 2710124130 [12:46:55]line Аи-92-К-2 [12:46:55]line 4.490 * 66.90 [12:46:55]line = 300.38 [12:46:55]line НДС 12% НСП 1% [12:46:55]line > о реализуемом товаре [12:46:55]line ОКРУГЛЕНИЕ: -0.38 [12:46:55]line ИТОГО: 300.00 [12:46:55]line Внесено: 300.00 [12:46:55]line СДАЧА: 0.00 [12:46:55]line НСП 1% : 2.66 [12:46:55]line НДС 12% : 31.90 [12:46:55]line Наличными: 300.00 [12:46:55]line Безнал.: 0.00 [12:46:55]line Место: АЗС № 173 "Партнер Нефть" [12:46:55]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:46:55]line СНО: Общий режим [12:46:55]line Чек 141 30.10.2024 12:46 [12:46:55]line Смена: 545 ФФД: 1.0 [12:46:55]line ЗНМ: 0300000115 [12:46:55]line РНМ: 0000000000091782 [12:46:55]line Версия ККМ: 001 [12:46:55]line ФМ: 0000000000871767 [12:46:55]line ФД: 118081 [12:46:55]line ФПД: 247241126772078 [12:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124654&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118081&fm=247241126772078&tin=02508201610067®Number=0000000000091782&sum=30000 [12:46:55]OFD Sender: Processing packet 118081 [packets to send 77, broken 76] [12:46:55]ProducePacketName [12:46:55]name=ofd_packets/00118081 [12:46:55]OFD Sender: To server: pG, [12:46:55]CommunicateWithHost lk.salyk.kg:30040 [12:46:55]ConnectInit lk.salyk.kg [12:46:55]written 0, free lines is 4095 [12:46:55]Connected sock=10 [12:46: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 36 37 0F 01 00 00 F1 27 07 01 DD 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 BE 2A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CD 01 00 35 04 06 00 E0 DD 4F 88 FD 6E AD A7 6E D8 8C 60 36 C0 [12:46: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 36 37 4F 00 00 00 4F A5 47 00 B3 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 41 CD 01 00 F4 03 04 00 76 D6 21 67 B6 04 01 00 00 63 E4 2F 78 6E EE 60 59 [12:46:55]CommunicateWithHost err = 0 [12:46:55]CheckOFDResponse [12:46:55]1017 (14) - 77093643461234 [12:46:55]1041 (16) - 0000000000871767 [12:46:55]1040 (4) - 118081 [12:46:55]1012 (4) - 30.10.2024 06:47 [12:46:55]1206 (1) - 0 [12:46:55]OFD Sender: Remove packet 118081 [12:46:55]ProducePacketName [12:46:55]name=ofd_packets/00118081 [12:46:55]NVStorageDeleteData [12:46:56]Write to MH i2c: 01 00 00 4E 00 4E [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: 01 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: 01 07 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 BB 0C 1C [12:46:56]RasterBufferAndPrint [12:46:56]line [12:46:56]line [12:46:56]line [12:46:56]line [12:46:56]line [12:46:56]written 0, free lines is 3264 [12:46:56]MH_Cut [12:46:56]Write to MH i2c: D1 01 00 55 00 01 27 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: D1 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: D1 01 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: D1 01 00 55 00 00 26 [12:46:56]Write to MH i2c: 01 00 00 56 00 56 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]OFD Sender: No OFD packet to send [12:46:56]*** Cut start [12:46:56]*** Purtial cut [12:46:56]*** Stage 1: CUTSNS_PIN = 1 [12:46:57]Read from MH i2c: 01 [12:46:57]MH_I2C_Read... [12:46:57]*** Stop cut motor [12:46:57]*** Cut end [12:46:57]Read from MH i2c: 01 07 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [12:46:57]process_action close_receipt done [12:46:57]requested_data is exist [12:46:57]produce_requested_data [12:46:57]requested_item fm.sn is exist - process it [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 11 00 00 [12:46:57]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 28 [12:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:46:57]wFMCommunicate OK [12:46:57]requested_item fd.num is exist - process it [12:46:57]SAM_PROTO_GetFieldsCounters [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 13 00 00 [12:46:57]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 62 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 41 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 41 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetFieldsCounters done [12:46:57]requested_item shift.num is exist - process it [12:46:57]requested_item shift.opened is exist - process it [12:46:57]req_shift_opened [12:46:57]FM_GetShiftState [12:46:57]SAM_PROTO_GetShiftState [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 13 01 00 [12:46:57]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AE [12:46:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetShiftState done [12:46:57]FM_GetShiftState done [12:46:57]req_shift_opened done [12:46:57]requested_item shift.open_date is exist - process it [12:46:57]req_shift_open_date [12:46:57]req_shift_open_date done [12:46:57]produce_requested_data done [12:46:57]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118081,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:46:57]process_action_free close_receipt [12:46:57]json_value_free [12:46:57]json_value_free done [12:46:57]process_json_proto returns [12:46:57]Send response to host [12:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118081,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:46:57]free response buf [12:46:57]execute_script done [12:46:57]execute_script returns [12:46:57]free content buf [12:46:57]Sock 9.Close socket [12:46:57]Sock 9.Thread stoped [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:05]accept exits with 7 [12:50:05]New connection [12:50:05]New thread 3066551652 created [12:50:05]Thread 3066695012 joined [12:50:05]Waiting for new connection... [12:50:05] Sock 7.Parse request [12:50:05]Sock 7.Check first char [12:50:05]Sock 7.First char is OK [12:50:05]request: POST /json_proto HTTP/1.0 [12:50:05]Method: POST [12:50:05]URL: /json_proto [12:50:05]Method is POST - this is cgi request [12:50:05]url: /json_proto [12:50:05]query_string will be loaded in cgi processing [12:50:05]execute_cgi json_proto POST (null) [12:50:05]execute_cgi path=json_proto method=POST [12:50:05]POST find Content-Length [12:50:05]Host: 172.17.96.67:8080 [12:50:05]Content-Length: 677 [12:50:05]Content-Type: application/json [12:50:05] [12:50:05]POST finish read [12:50:05]Found Content-Length = 677 [12:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:05]execute_script... [12:50: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)245878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:05]POST & json_proto [12:50:05]process_json_proto [12:50:05]json parsed OK: [12:50:05]protocol is kg_v1.0 [12:50:05]action value=close_receipt [12:50:05]process_action close_receipt [12:50:05]cmd_close_receipt [12:50:05]MH_GetDate [12:50:05]Write to MH i2c: F0 00 00 5A 00 49 [12:50:05]Write i2c OK [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: F0 [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: F0 09 00 [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: F0 09 00 5A 00 00 7E 2B 22 67 47 6C 1F 67 BD [12:50:05]GetLastDocTimeStamp 1730292414 [12:50:05]current date 1730292606 [12:50:05]FM_GetShiftState [12:50:05]SAM_PROTO_GetShiftState [12:50:05]wFMCommunicate request_size=4 [12:50:05]MH_SAM_APDU [12:50:05]CAPDU: 80 13 01 00 [12:50:05]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [12:50:05]Write i2c OK [12:50:05]MH_I2C_Read... [12:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:05]Read from MH i2c: E2 [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: E2 0E 00 [12:50:05]MH_I2C_Read... [12:50:05]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B0 [12:50:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:50:05]wFMCommunicate OK [12:50:05]SAM_PROTO_GetShiftState done [12:50:05]FM_GetShiftState done [12:50:05]opened in 1730246605 [12:50:05]opened+sec_in_day 1730333005 [12:50:05]quantity*price = 50041 [12:50:05]sum+1 = 50042 [12:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 142 30.10.2024 12:50 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118082 ФПД: 21549667501193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125006&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118082&fm=21549667501193&tin=02508201610067®Number=0000000000091782&sum=50000 [12:50:06]StoreToDocumentArchive [12:50:06]shift 545 fd 118082 [12:50:06]save to /storage/0545/doc_00118082 [12:50:06]save last doc name /storage/0545/doc_00118082 to /storage/kkm_last_doc_name [12:50:06]save OK [12:50:06]Clear old archive folders... [12:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:06]tlvbuf is 000FFD60 [12:50:06]SAM_PROTO_ClearQueue [12:50:06]wFMCommunicate request_size=4 [12:50:06]MH_SAM_APDU [12:50:06]CAPDU: 80 09 00 00 [12:50:06]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:06]Read from MH i2c: E2 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 03 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [12:50:06]RAPDU: 90 00 [12:50:06]wFMCommunicate OK [12:50:06]SAM_PROTO_ClearQueue done [12:50:06]KKMCreateOFDPacket [12:50:06]OFDProtocolAddRootSTLVToBuf [12:50:06]FM_MakeSignedData [12:50:06]FM_MakeSignedData [12:50:06]SAM_PROTO_SignData [12:50:06]wFMCommunicate request_size=4 [12:50:06]MH_SAM_APDU [12:50:06]CAPDU: 80 0D 01 02 [12:50:06]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:06]Read from MH i2c: E2 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 03 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [12:50:06]RAPDU: 90 00 [12:50:06]wFMCommunicate OK [12:50:06]wFMCommunicate request_size=255 [12:50:06]MH_SAM_APDU [12:50: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 32 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 8E 00 00 00 F4 03 04 00 7E 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CD 01 00 35 04 06 00 13 [12:50:06]Write to MH i2c: E2 02 01 6A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8E 00 00 00 F4 03 04 00 7E 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CD 01 00 35 04 06 00 13 00 00 7A [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]wFMCommunicate request_size=10 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 0D 02 02 05 99 6C 46 C4 89 [12:50:07]Write to MH i2c: E2 0D 00 6B 00 80 0D 02 02 05 00 99 6C 46 C4 89 00 00 87 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [12:50:07]RAPDU: 90 00 [12:50:07]wFMCommunicate OK [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 0D 03 02 [12:50:07]Write to MH i2c: E2 08 00 6C 00 80 0D 03 02 00 00 00 00 E7 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 0B 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 0B 00 6C 00 00 3A 4D 36 73 92 25 B8 D3 90 00 5A [12:50:07]RAPDU: 3A 4D 36 73 92 25 B8 D3 90 00 [12:50:07]wFMCommunicate OK [12:50:07]SAM_PROTO_SignData done [12:50:07]FM_MakeSignedData done [12:50:07]CreateOFDProtocolMessage [12:50:07]wFMCommunicate request_size=4 [12:50:07]MH_SAM_APDU [12:50:07]CAPDU: 80 11 00 00 [12:50:07]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:07]Read from MH i2c: E2 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 17 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3E [12:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:50:07]wFMCommunicate OK [12:50:07]CreateOFDProtocolMessage done [12:50:07]OFDSenderStorePacket 118082 [12:50:07]StoreOFDPacket docnum=118082 [12:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E3 F6 07 01 45 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 7E 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CD 01 00 35 04 06 00 13 99 6C 46 C4 89 3A 4D 36 73 92 25 B8 D3 [12:50:07]CheckFolder [12:50:07]dirname=/storage/ofd_packets [12:50:07]CheckFolder done [12:50:07]ProducePacketName [12:50:07]name=ofd_packets/00118082 [12:50:07]NVStorageSaveData ofd_packets/00118082 [12:50:07]File name is /storage/ofd_packets/00118082 [12:50:07]Write 301 bytes [12:50:07]NVStorageSaveData done [12:50:07]OFDSenderStorePacket done [12:50:07]KKMCreateOFDPacket done [12:50:07]NVStorageSaveData kkm_last_timestamp [12:50:07]File name is /storage/kkm_last_timestamp [12:50:07]Write 4 bytes [12:50:07]NVStorageSaveData done [12:50:07]ExternCall_PrintAddStr [12:50:07]wPrintStart [12:50:07]Write to MH i2c: 01 00 00 6E 00 6E [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 07 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [12:50:07]RasterBufferAndPrint [12:50:07]line Счет N : (1)245878 [12:50:07]line ИНН: 02508201610067 [12:50:07]line Контрольно-Кассовый Чек [12:50:07]line ПРОДАЖА [12:50:07]line ТРК (МРК, ГНК) : 11 [12:50:07]line Товар: 2710124130 [12:50:07]line Аи-92-К-2 [12:50:07]line 7.480 * 66.90 [12:50:07]line = 500.41 [12:50:07]line НДС 12% НСП 1% [12:50:07]line > о реализуемом товаре [12:50:07]line ОКРУГЛЕНИЕ: -0.41 [12:50:07]line ИТОГО: 500.00 [12:50:07]line Внесено: 500.00 [12:50:07]line СДАЧА: 0.00 [12:50:07]line НСП 1% : 4.43 [12:50:07]line НДС 12% : 53.14 [12:50:07]line Наличными: 500.00 [12:50:07]line Безнал.: 0.00 [12:50:07]line Место: АЗС № 173 "Партнер Нефть" [12:50:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:50:07]line СНО: Общий режим [12:50:07]line Чек 142 30.10.2024 12:50 [12:50:07]line Смена: 545 ФФД: 1.0 [12:50:07]line ЗНМ: 0300000115 [12:50:07]line РНМ: 0000000000091782 [12:50:07]line Версия ККМ: 001 [12:50:07]line ФМ: 0000000000871767 [12:50:07]line ФД: 118082 [12:50:07]line ФПД: 21549667501193 [12:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125006&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118082&fm=21549667501193&tin=02508201610067®Number=0000000000091782&sum=50000 [12:50:07]OFD Sender: Processing packet 118082 [packets to send 77, broken 76] [12:50:07]ProducePacketName [12:50:07]name=ofd_packets/00118082 [12:50:07]OFD Sender: To server: pG, [12:50:07]CommunicateWithHost lk.salyk.kg:30040 [12:50:07]ConnectInit lk.salyk.kg [12:50:07]written 0, free lines is 4095 [12:50:07]Connected sock=10 [12:50: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 36 37 0F 01 00 00 E3 F6 07 01 45 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 7E 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 42 CD 01 00 35 04 06 00 13 99 6C 46 C4 89 3A 4D 36 73 92 25 B8 D3 [12:50: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 36 37 4F 00 00 00 D2 2C 47 00 B8 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 36 37 10 04 04 00 42 CD 01 00 F4 03 04 00 35 D7 21 67 B6 04 01 00 00 7A 29 66 52 37 70 B1 8D [12:50:07]CommunicateWithHost err = 0 [12:50:07]CheckOFDResponse [12:50:07]1017 (14) - 77093643461234 [12:50:07]1041 (16) - 0000000000871767 [12:50:07]1040 (4) - 118082 [12:50:07]1012 (4) - 30.10.2024 06:50 [12:50:07]1206 (1) - 0 [12:50:07]OFD Sender: Remove packet 118082 [12:50:07]ProducePacketName [12:50:07]name=ofd_packets/00118082 [12:50:07]NVStorageDeleteData [12:50:07]Write to MH i2c: 01 00 00 98 00 98 [12:50:07]Write i2c OK [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 07 00 [12:50:07]MH_I2C_Read... [12:50:07]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 AB 0C 56 [12:50:07]RasterBufferAndPrint [12:50:07]line [12:50:07]line [12:50:07]line [12:50:07]line [12:50:07]line [12:50:07]written 0, free lines is 3249 [12:50:08]MH_Cut [12:50:08]Write to MH i2c: D1 01 00 9F 00 01 71 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 01 00 [12:50:08]MH_I2C_Read... [12:50:08]Read from MH i2c: D1 01 00 9F 00 00 70 [12:50:08]Write to MH i2c: 01 00 00 A0 00 A0 [12:50:08]Write i2c OK [12:50:08]MH_I2C_Read... [12:50:08]OFD Sender: No OFD packet to send [12:50:08]*** Cut start [12:50:08]*** Purtial cut [12:50:08]*** Stage 1: CUTSNS_PIN = 1 [12:50:09]Read from MH i2c: 01 [12:50:09]MH_I2C_Read... [12:50:09]*** Stop cut motor [12:50:09]*** Cut end [12:50:09]Read from MH i2c: 01 07 00 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 FF 0F B5 [12:50:09]process_action close_receipt done [12:50:09]requested_data is exist [12:50:09]produce_requested_data [12:50:09]requested_item fm.sn is exist - process it [12:50:09]wFMCommunicate request_size=4 [12:50:09]MH_SAM_APDU [12:50:09]CAPDU: 80 11 00 00 [12:50:09]Write to MH i2c: E2 08 00 A1 00 80 11 00 00 00 00 00 00 1B [12:50:09]Write i2c OK [12:50:09]MH_I2C_Read... [12:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:09]Read from MH i2c: E2 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 17 00 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 17 00 A1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 72 [12:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:50:09]wFMCommunicate OK [12:50:09]requested_item fd.num is exist - process it [12:50:09]SAM_PROTO_GetFieldsCounters [12:50:09]wFMCommunicate request_size=4 [12:50:09]MH_SAM_APDU [12:50:09]CAPDU: 80 13 00 00 [12:50:09]Write to MH i2c: E2 08 00 A2 00 80 13 00 00 00 00 00 00 1E [12:50:09]Write i2c OK [12:50:09]MH_I2C_Read... [12:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:09]Read from MH i2c: E2 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 62 00 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 62 00 A2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 42 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [12:50: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 42 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:09]wFMCommunicate OK [12:50:09]SAM_PROTO_GetFieldsCounters done [12:50:09]requested_item shift.num is exist - process it [12:50:09]requested_item shift.opened is exist - process it [12:50:09]req_shift_opened [12:50:09]FM_GetShiftState [12:50:09]SAM_PROTO_GetShiftState [12:50:09]wFMCommunicate request_size=4 [12:50:09]MH_SAM_APDU [12:50:09]CAPDU: 80 13 01 00 [12:50:09]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [12:50:09]Write i2c OK [12:50:09]MH_I2C_Read... [12:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:09]Read from MH i2c: E2 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 0E 00 [12:50:09]MH_I2C_Read... [12:50:09]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F8 [12:50:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:50:09]wFMCommunicate OK [12:50:09]SAM_PROTO_GetShiftState done [12:50:09]FM_GetShiftState done [12:50:09]req_shift_opened done [12:50:09]requested_item shift.open_date is exist - process it [12:50:09]req_shift_open_date [12:50:09]req_shift_open_date done [12:50:09]produce_requested_data done [12:50:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118082,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:50:09]process_action_free close_receipt [12:50:09]json_value_free [12:50:09]json_value_free done [12:50:09]process_json_proto returns [12:50:09]Send response to host [12:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118082,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:50:09]free response buf [12:50:09]execute_script done [12:50:09]execute_script returns [12:50:09]free content buf [12:50:09]Sock 7.Close socket [12:50:09]Sock 7.Thread stoped [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:54]accept exits with 9 [12:51:54]New connection [12:51:54]New thread 3066695012 created [12:51:54]Thread 3066551652 joined [12:51:54]Waiting for new connection... [12:51:54] Sock 9.Parse request [12:51:54]Sock 9.Check first char [12:51:54]Sock 9.First char is OK [12:51:54]request: POST /json_proto HTTP/1.0 [12:51:54]Method: POST [12:51:54]URL: /json_proto [12:51:54]Method is POST - this is cgi request [12:51:54]url: /json_proto [12:51:54]query_string will be loaded in cgi processing [12:51:54]execute_cgi json_proto POST (null) [12:51:54]execute_cgi path=json_proto method=POST [12:51:54]POST find Content-Length [12:51:54]Host: 172.17.96.67:8080 [12:51:54]Content-Length: 674 [12:51:54]Content-Type: application/json [12:51:54] [12:51:54]POST finish read [12:51:54]Found Content-Length = 674 [12:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:51:54]execute_script... [12:51: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)245879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:51:54]POST & json_proto [12:51:54]process_json_proto [12:51:54]json parsed OK: [12:51:54]protocol is kg_v1.0 [12:51:54]action value=close_receipt [12:51:54]process_action close_receipt [12:51:54]cmd_close_receipt [12:51:54]MH_GetDate [12:51:54]Write to MH i2c: F0 00 00 A4 00 93 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: F0 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: F0 09 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: F0 09 00 A4 00 00 EA 2B 22 67 47 6C 1F 67 73 [12:51:54]GetLastDocTimeStamp 1730292606 [12:51:54]current date 1730292714 [12:51:54]FM_GetShiftState [12:51:54]SAM_PROTO_GetShiftState [12:51:54]wFMCommunicate request_size=4 [12:51:54]MH_SAM_APDU [12:51:54]CAPDU: 80 13 01 00 [12:51:54]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 0E 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FA [12:51:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:51:54]wFMCommunicate OK [12:51:54]SAM_PROTO_GetShiftState done [12:51:54]FM_GetShiftState done [12:51:54]opened in 1730246605 [12:51:54]opened+sec_in_day 1730333005 [12:51:54]quantity*price = 30022 [12:51:54]sum+1 = 30024 [12:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 143 30.10.2024 12:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118083 ФПД: 139956419873231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125154&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118083&fm=139956419873231&tin=02508201610067®Number=0000000000091782&sum=30000 [12:51:55]StoreToDocumentArchive [12:51:55]shift 545 fd 118083 [12:51:55]save to /storage/0545/doc_00118083 [12:51:55]save last doc name /storage/0545/doc_00118083 to /storage/kkm_last_doc_name [12:51:55]save OK [12:51:55]Clear old archive folders... [12:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:55]tlvbuf is 000F2740 [12:51:55]SAM_PROTO_ClearQueue [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 09 00 00 [12:51:55]Write to MH i2c: E2 08 00 B2 00 80 09 00 00 00 00 00 00 24 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [12:51:55]RAPDU: 90 00 [12:51:55]wFMCommunicate OK [12:51:55]SAM_PROTO_ClearQueue done [12:51:55]KKMCreateOFDPacket [12:51:55]OFDProtocolAddRootSTLVToBuf [12:51:55]FM_MakeSignedData [12:51:55]FM_MakeSignedData [12:51:55]SAM_PROTO_SignData [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 0D 01 02 [12:51:55]Write to MH i2c: E2 08 00 B3 00 80 0D 01 02 00 00 00 00 2C [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [12:51:55]RAPDU: 90 00 [12:51:55]wFMCommunicate OK [12:51:55]wFMCommunicate request_size=255 [12:51:55]MH_SAM_APDU [12:51: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 32 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 8F 00 00 00 F4 03 04 00 EA 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CD 01 00 35 04 06 00 7F 4A 24 B0 [12:51:55]Write to MH i2c: E2 02 01 B4 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 8F 00 00 00 F4 03 04 00 EA 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CD 01 00 35 04 06 00 7F 4A 24 B0 00 00 6F [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [12:51:55]RAPDU: 90 00 [12:51:55]wFMCommunicate OK [12:51:55]wFMCommunicate request_size=7 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 0D 02 02 02 C9 CF [12:51:55]Write to MH i2c: E2 0A 00 B5 00 80 0D 02 02 02 00 C9 CF 00 00 CB [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [12:51:55]RAPDU: 90 00 [12:51:55]wFMCommunicate OK [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 0D 03 02 [12:51:55]Write to MH i2c: E2 08 00 B6 00 80 0D 03 02 00 00 00 00 31 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0B 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0B 00 B6 00 00 5B 6B EB DE 62 13 06 51 90 00 8D [12:51:55]RAPDU: 5B 6B EB DE 62 13 06 51 90 00 [12:51:55]wFMCommunicate OK [12:51:55]SAM_PROTO_SignData done [12:51:55]FM_MakeSignedData done [12:51:55]CreateOFDProtocolMessage [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 11 00 00 [12:51:55]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 17 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 88 [12:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:51:55]wFMCommunicate OK [12:51:55]CreateOFDProtocolMessage done [12:51:55]OFDSenderStorePacket 118083 [12:51:55]StoreOFDPacket docnum=118083 [12:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 21 B6 04 01 4A 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 EA 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CD 01 00 35 04 06 00 7F 4A 24 B0 C9 CF 5B 6B EB DE 62 13 06 51 [12:51:55]CheckFolder [12:51:55]dirname=/storage/ofd_packets [12:51:55]CheckFolder done [12:51:55]ProducePacketName [12:51:55]name=ofd_packets/00118083 [12:51:55]NVStorageSaveData ofd_packets/00118083 [12:51:55]File name is /storage/ofd_packets/00118083 [12:51:55]Write 298 bytes [12:51:55]NVStorageSaveData done [12:51:55]OFDSenderStorePacket done [12:51:55]KKMCreateOFDPacket done [12:51:55]NVStorageSaveData kkm_last_timestamp [12:51:55]File name is /storage/kkm_last_timestamp [12:51:55]Write 4 bytes [12:51:55]NVStorageSaveData done [12:51:55]ExternCall_PrintAddStr [12:51:55]wPrintStart [12:51:55]Write to MH i2c: 01 00 00 B8 00 B8 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 FF 0F CD [12:51:55]RasterBufferAndPrint [12:51:55]line Счет N : (1)245879 [12:51:55]line ИНН: 02508201610067 [12:51:55]line Контрольно-Кассовый Чек [12:51:55]line ПРОДАЖА [12:51:55]line ТРК (МРК, ГНК) : 23 [12:51:55]line Товар: 2710194210 [12:51:55]line ДТ-К-2 [12:51:55]line 3.940 * 76.20 [12:51:55]line = 300.23 [12:51:55]line НДС 12% НСП 1% [12:51:55]line > о реализуемом товаре [12:51:55]line ОКРУГЛЕНИЕ: -0.23 [12:51:55]line ИТОГО: 300.00 [12:51:55]line Внесено: 300.00 [12:51:55]line СДАЧА: 0.00 [12:51:55]line НСП 1% : 2.66 [12:51:55]line НДС 12% : 31.88 [12:51:55]line Наличными: 300.00 [12:51:55]line Безнал.: 0.00 [12:51:55]line Место: АЗС № 173 "Партнер Нефть" [12:51:55]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:51:55]line СНО: Общий режим [12:51:55]line Чек 143 30.10.2024 12:51 [12:51:55]line Смена: 545 ФФД: 1.0 [12:51:55]line ЗНМ: 0300000115 [12:51:55]line РНМ: 0000000000091782 [12:51:55]line Версия ККМ: 001 [12:51:55]line ФМ: 0000000000871767 [12:51:55]line ФД: 118083 [12:51:55]line ФПД: 139956419873231 [12:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125154&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118083&fm=139956419873231&tin=02508201610067®Number=0000000000091782&sum=30000 [12:51:56]OFD Sender: Processing packet 118083 [packets to send 77, broken 76] [12:51:56]ProducePacketName [12:51:56]name=ofd_packets/00118083 [12:51:56]OFD Sender: To server: pG, [12:51:56]CommunicateWithHost lk.salyk.kg:30040 [12:51:56]ConnectInit lk.salyk.kg [12:51:56]written 0, free lines is 4095 [12:51:56]Connected sock=11 [12:51: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 36 37 0C 01 00 00 21 B6 04 01 4A 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 EA 2B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 43 CD 01 00 35 04 06 00 7F 4A 24 B0 C9 CF 5B 6B EB DE 62 13 06 51 [12:51: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 36 37 4F 00 00 00 CD B2 47 00 A7 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 36 37 10 04 04 00 43 CD 01 00 F4 03 04 00 A2 D7 21 67 B6 04 01 00 00 18 1E 30 45 9F 19 80 2C [12:51:56]CommunicateWithHost err = 0 [12:51:56]CheckOFDResponse [12:51:56]1017 (14) - 77093643461234 [12:51:56]1041 (16) - 0000000000871767 [12:51:56]1040 (4) - 118083 [12:51:56]1012 (4) - 30.10.2024 06:52 [12:51:56]1206 (1) - 0 [12:51:56]OFD Sender: Remove packet 118083 [12:51:56]ProducePacketName [12:51:56]name=ofd_packets/00118083 [12:51:56]NVStorageDeleteData [12:51:56]Write to MH i2c: 01 00 00 E2 00 E2 [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 B7 0C AC [12:51:56]RasterBufferAndPrint [12:51:56]line [12:51:56]line [12:51:56]line [12:51:56]line [12:51:56]line [12:51:56]written 0, free lines is 3259 [12:51:56]MH_Cut [12:51:56]Write to MH i2c: D1 01 00 E9 00 01 BB [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: D1 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: D1 01 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: D1 01 00 E9 00 00 BA [12:51:56]Write to MH i2c: 01 00 00 EA 00 EA [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]OFD Sender: No OFD packet to send [12:51:57]*** Cut start [12:51:57]*** Purtial cut [12:51:57]*** Stage 1: CUTSNS_PIN = 1 [12:51:57]Read from MH i2c: 01 [12:51:57]MH_I2C_Read... [12:51:57]*** Stop cut motor [12:51:57]*** Cut end [12:51:57]Read from MH i2c: 01 07 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: 01 07 00 EA 00 00 00 00 00 00 FF 0F FF [12:51:57]process_action close_receipt done [12:51:57]requested_data is exist [12:51:57]produce_requested_data [12:51:57]requested_item fm.sn is exist - process it [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 11 00 00 [12:51:57]Write to MH i2c: E2 08 00 EB 00 80 11 00 00 00 00 00 00 65 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 17 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 17 00 EB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BC [12:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:51:57]wFMCommunicate OK [12:51:57]requested_item fd.num is exist - process it [12:51:57]SAM_PROTO_GetFieldsCounters [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 13 00 00 [12:51:57]Write to MH i2c: E2 08 00 EC 00 80 13 00 00 00 00 00 00 68 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 62 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 62 00 EC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 43 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [12:51: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 43 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:57]wFMCommunicate OK [12:51:57]SAM_PROTO_GetFieldsCounters done [12:51:57]requested_item shift.num is exist - process it [12:51:57]requested_item shift.opened is exist - process it [12:51:57]req_shift_opened [12:51:57]FM_GetShiftState [12:51:57]SAM_PROTO_GetShiftState [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 13 01 00 [12:51:57]Write to MH i2c: E2 08 00 ED 00 80 13 01 00 00 00 00 00 6A [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 0E 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 0E 00 ED 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 42 [12:51:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:51:57]wFMCommunicate OK [12:51:57]SAM_PROTO_GetShiftState done [12:51:57]FM_GetShiftState done [12:51:57]req_shift_opened done [12:51:57]requested_item shift.open_date is exist - process it [12:51:57]req_shift_open_date [12:51:57]req_shift_open_date done [12:51:57]produce_requested_data done [12:51:57]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118083,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:51:57]process_action_free close_receipt [12:51:57]json_value_free [12:51:57]json_value_free done [12:51:57]process_json_proto returns [12:51:57]Send response to host [12:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118083,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:51:57]free response buf [12:51:57]execute_script done [12:51:57]execute_script returns [12:51:57]free content buf [12:51:57]Sock 9.Close socket [12:51:57]Sock 9.Thread stoped [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:21]accept exits with 7 [12:52:21]New connection [12:52:21]New thread 3066551652 created [12:52:21]Thread 3066695012 joined [12:52:21]Waiting for new connection... [12:52:21] Sock 7.Parse request [12:52:21]Sock 7.Check first char [12:52:21]Sock 7.First char is OK [12:52:21]request: POST /json_proto HTTP/1.0 [12:52:21]Method: POST [12:52:21]URL: /json_proto [12:52:21]Method is POST - this is cgi request [12:52:21]url: /json_proto [12:52:21]query_string will be loaded in cgi processing [12:52:21]execute_cgi json_proto POST (null) [12:52:21]execute_cgi path=json_proto method=POST [12:52:21]POST find Content-Length [12:52:21]Host: 172.17.96.67:8080 [12:52:21]Content-Length: 677 [12:52:21]Content-Type: application/json [12:52:21] [12:52:21]POST finish read [12:52:21]Found Content-Length = 677 [12:52:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:52:21]execute_script... [12:52: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)245880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:52:21]POST & json_proto [12:52:21]process_json_proto [12:52:21]json parsed OK: [12:52:21]protocol is kg_v1.0 [12:52:21]action value=close_receipt [12:52:21]process_action close_receipt [12:52:21]cmd_close_receipt [12:52:21]MH_GetDate [12:52:21]Write to MH i2c: F0 00 00 EE 00 DD [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: F0 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: F0 09 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: F0 09 00 EE 00 00 06 2C 22 67 47 6C 1F 67 DA [12:52:21]GetLastDocTimeStamp 1730292714 [12:52:21]current date 1730292742 [12:52:21]FM_GetShiftState [12:52:21]SAM_PROTO_GetShiftState [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 13 01 00 [12:52:21]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0E 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 44 [12:52:21]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:52:21]wFMCommunicate OK [12:52:21]SAM_PROTO_GetShiftState done [12:52:21]FM_GetShiftState done [12:52:21]opened in 1730246605 [12:52:21]opened+sec_in_day 1730333005 [12:52:21]quantity*price = 20003 [12:52:21]sum+1 = 20004 [12:52:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 144 30.10.2024 12:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118084 ФПД: 110081487765586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125222&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118084&fm=110081487765586&tin=02508201610067®Number=0000000000091782&sum=20000 [12:52:22]StoreToDocumentArchive [12:52:22]shift 545 fd 118084 [12:52:22]save to /storage/0545/doc_00118084 [12:52:22]save last doc name /storage/0545/doc_00118084 to /storage/kkm_last_doc_name [12:52:22]save OK [12:52:22]Clear old archive folders... [12:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:22]tlvbuf is B6D696E0 [12:52:22]SAM_PROTO_ClearQueue [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 09 00 00 [12:52:22]Write to MH i2c: E2 08 00 FC 00 80 09 00 00 00 00 00 00 6E [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]SAM_PROTO_ClearQueue done [12:52:22]KKMCreateOFDPacket [12:52:22]OFDProtocolAddRootSTLVToBuf [12:52:22]FM_MakeSignedData [12:52:22]FM_MakeSignedData [12:52:22]SAM_PROTO_SignData [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 0D 01 02 [12:52:22]Write to MH i2c: E2 08 00 FD 00 80 0D 01 02 00 00 00 00 76 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]wFMCommunicate request_size=255 [12:52:22]MH_SAM_APDU [12:52: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 32 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 90 00 00 00 F4 03 04 00 06 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CD 01 00 35 04 06 00 64 [12:52:22]Write to MH i2c: E2 02 01 FE 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 90 00 00 00 F4 03 04 00 06 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CD 01 00 35 04 06 00 64 00 00 AE [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]wFMCommunicate request_size=10 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 0D 02 02 05 1E 57 F9 80 52 [12:52:22]Write to MH i2c: E2 0D 00 FF 00 80 0D 02 02 05 00 1E 57 F9 80 52 00 00 C3 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [12:52:22]RAPDU: 90 00 [12:52:22]wFMCommunicate OK [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 0D 03 02 [12:52:22]Write to MH i2c: E2 08 00 00 01 80 0D 03 02 00 00 00 00 7C [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 0B 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 0B 00 00 01 00 D9 DC A7 AE 64 D1 07 5A 90 00 1D [12:52:23]RAPDU: D9 DC A7 AE 64 D1 07 5A 90 00 [12:52:23]wFMCommunicate OK [12:52:23]SAM_PROTO_SignData done [12:52:23]FM_MakeSignedData done [12:52:23]CreateOFDProtocolMessage [12:52:23]wFMCommunicate request_size=4 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 11 00 00 [12:52:23]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 17 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D3 [12:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:52:23]wFMCommunicate OK [12:52:23]CreateOFDProtocolMessage done [12:52:23]OFDSenderStorePacket 118084 [12:52:23]StoreOFDPacket docnum=118084 [12:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CD 5C 07 01 1C 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 32 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 90 00 00 00 F4 03 04 00 06 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CD 01 00 35 04 06 00 64 1E 57 F9 80 52 D9 DC A7 AE 64 D1 07 5A [12:52:23]CheckFolder [12:52:23]dirname=/storage/ofd_packets [12:52:23]CheckFolder done [12:52:23]ProducePacketName [12:52:23]name=ofd_packets/00118084 [12:52:23]NVStorageSaveData ofd_packets/00118084 [12:52:23]File name is /storage/ofd_packets/00118084 [12:52:23]Write 301 bytes [12:52:23]NVStorageSaveData done [12:52:23]OFDSenderStorePacket done [12:52:23]KKMCreateOFDPacket done [12:52:23]NVStorageSaveData kkm_last_timestamp [12:52:23]File name is /storage/kkm_last_timestamp [12:52:23]Write 4 bytes [12:52:23]NVStorageSaveData done [12:52:23]ExternCall_PrintAddStr [12:52:23]wPrintStart [12:52:23]Write to MH i2c: 01 00 00 02 01 03 [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 07 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [12:52:23]RasterBufferAndPrint [12:52:23]line Счет N : (1)245880 [12:52:23]line ИНН: 02508201610067 [12:52:23]line Контрольно-Кассовый Чек [12:52:23]line ПРОДАЖА [12:52:23]line ТРК (МРК, ГНК) : 21 [12:52:23]line Товар: 2710124130 [12:52:23]line Аи-92-К-2 [12:52:23]line 2.990 * 66.90 [12:52:23]line = 200.03 [12:52:23]line НДС 12% НСП 1% [12:52:23]line > о реализуемом товаре [12:52:23]line ОКРУГЛЕНИЕ: -0.03 [12:52:23]line ИТОГО: 200.00 [12:52:23]line Внесено: 200.00 [12:52:23]line СДАЧА: 0.00 [12:52:23]line НСП 1% : 1.77 [12:52:23]line НДС 12% : 21.24 [12:52:23]line Наличными: 200.00 [12:52:23]line Безнал.: 0.00 [12:52:23]line Место: АЗС № 173 "Партнер Нефть" [12:52:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:52:23]line СНО: Общий режим [12:52:23]line Чек 144 30.10.2024 12:52 [12:52:23]line Смена: 545 ФФД: 1.0 [12:52:23]line ЗНМ: 0300000115 [12:52:23]line РНМ: 0000000000091782 [12:52:23]line Версия ККМ: 001 [12:52:23]line ФМ: 0000000000871767 [12:52:23]line ФД: 118084 [12:52:23]line ФПД: 110081487765586 [12:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125222&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118084&fm=110081487765586&tin=02508201610067®Number=0000000000091782&sum=20000 [12:52:23]OFD Sender: Processing packet 118084 [packets to send 77, broken 76] [12:52:23]ProducePacketName [12:52:23]name=ofd_packets/00118084 [12:52:23]OFD Sender: To server: pG, [12:52:23]CommunicateWithHost lk.salyk.kg:30040 [12:52:23]ConnectInit lk.salyk.kg [12:52:23]written 0, free lines is 4095 [12:52:23]Connected sock=10 [12:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CD 5C 07 01 1C 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 32 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 90 00 00 00 F4 03 04 00 06 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 44 CD 01 00 35 04 06 00 64 1E 57 F9 80 52 D9 DC A7 AE 64 D1 07 5A [12:52: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 36 37 4F 00 00 00 B0 74 47 00 01 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 36 37 10 04 04 00 44 CD 01 00 F4 03 04 00 BD D7 21 67 B6 04 01 00 00 6F DC 08 B5 FD B7 D4 7B [12:52:23]CommunicateWithHost err = 0 [12:52:23]CheckOFDResponse [12:52:23]1017 (14) - 77093643461234 [12:52:23]1041 (16) - 0000000000871767 [12:52:23]1040 (4) - 118084 [12:52:23]1012 (4) - 30.10.2024 06:52 [12:52:23]1206 (1) - 0 [12:52:23]OFD Sender: Remove packet 118084 [12:52:23]ProducePacketName [12:52:23]name=ofd_packets/00118084 [12:52:23]NVStorageDeleteData [12:52:23]Write to MH i2c: 01 00 00 2C 01 2D [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 07 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 BB 0C FB [12:52:23]RasterBufferAndPrint [12:52:23]line [12:52:23]line [12:52:23]line [12:52:23]line [12:52:23]line [12:52:23]written 0, free lines is 3264 [12:52:23]MH_Cut [12:52:23]Write to MH i2c: D1 01 00 33 01 01 06 [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: D1 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: D1 01 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: D1 01 00 33 01 00 05 [12:52:23]Write to MH i2c: 01 00 00 34 01 35 [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:24]OFD Sender: No OFD packet to send [12:52:24]*** Cut start [12:52:24]*** Purtial cut [12:52:24]*** Stage 1: CUTSNS_PIN = 1 [12:52:24]Read from MH i2c: 01 [12:52:24]MH_I2C_Read... [12:52:24]*** Stop cut motor [12:52:25]*** Cut end [12:52:25]Read from MH i2c: 01 07 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 FF 0F 4A [12:52:25]process_action close_receipt done [12:52:25]requested_data is exist [12:52:25]produce_requested_data [12:52:25]requested_item fm.sn is exist - process it [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 11 00 00 [12:52:25]Write to MH i2c: E2 08 00 35 01 80 11 00 00 00 00 00 00 B0 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 17 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 17 00 35 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 07 [12:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:52:25]wFMCommunicate OK [12:52:25]requested_item fd.num is exist - process it [12:52:25]SAM_PROTO_GetFieldsCounters [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 13 00 00 [12:52:25]Write to MH i2c: E2 08 00 36 01 80 13 00 00 00 00 00 00 B3 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 62 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 62 00 36 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 44 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [12:52: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 44 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:25]wFMCommunicate OK [12:52:25]SAM_PROTO_GetFieldsCounters done [12:52:25]requested_item shift.num is exist - process it [12:52:25]requested_item shift.opened is exist - process it [12:52:25]req_shift_opened [12:52:25]FM_GetShiftState [12:52:25]SAM_PROTO_GetShiftState [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 13 01 00 [12:52:25]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 0E 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8D [12:52:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:52:25]wFMCommunicate OK [12:52:25]SAM_PROTO_GetShiftState done [12:52:25]FM_GetShiftState done [12:52:25]req_shift_opened done [12:52:25]requested_item shift.open_date is exist - process it [12:52:25]req_shift_open_date [12:52:25]req_shift_open_date done [12:52:25]produce_requested_data done [12:52:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118084,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:52:25]process_action_free close_receipt [12:52:25]json_value_free [12:52:25]json_value_free done [12:52:25]process_json_proto returns [12:52:25]Send response to host [12:52:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118084,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:52:25]free response buf [12:52:25]execute_script done [12:52:25]execute_script returns [12:52:25]free content buf [12:52:25]Sock 7.Close socket [12:52:25]Sock 7.Thread stoped [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:23]accept exits with 9 [12:54:23]New connection [12:54:23]New thread 3066695012 created [12:54:23]Thread 3066551652 joined [12:54:23]Waiting for new connection... [12:54:23] Sock 9.Parse request [12:54:23]Sock 9.Check first char [12:54:23]Sock 9.First char is OK [12:54:23]request: POST /json_proto HTTP/1.0 [12:54:23]Method: POST [12:54:23]URL: /json_proto [12:54:23]Method is POST - this is cgi request [12:54:23]url: /json_proto [12:54:23]query_string will be loaded in cgi processing [12:54:23]execute_cgi json_proto POST (null) [12:54:23]execute_cgi path=json_proto method=POST [12:54:23]POST find Content-Length [12:54:23]Host: 172.17.96.67:8080 [12:54:23]Content-Length: 674 [12:54:23]Content-Type: application/json [12:54:23] [12:54:23]POST finish read [12:54:23]Found Content-Length = 674 [12:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "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" ] } } [12:54:23]execute_script... [12:54: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)245881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "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" ] } } [12:54:23]POST & json_proto [12:54:23]process_json_proto [12:54:23]json parsed OK: [12:54:23]protocol is kg_v1.0 [12:54:23]action value=close_receipt [12:54:23]process_action close_receipt [12:54:23]cmd_close_receipt [12:54:23]MH_GetDate [12:54:23]Write to MH i2c: F0 00 00 38 01 28 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: F0 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: F0 09 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: F0 09 00 38 01 00 7F 2C 22 67 47 6C 1F 67 9E [12:54:23]GetLastDocTimeStamp 1730292742 [12:54:23]current date 1730292863 [12:54:23]FM_GetShiftState [12:54:23]SAM_PROTO_GetShiftState [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 13 01 00 [12:54:23]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 0E 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8F [12:54:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:54:23]wFMCommunicate OK [12:54:23]SAM_PROTO_GetShiftState done [12:54:23]FM_GetShiftState done [12:54:23]opened in 1730246605 [12:54:23]opened+sec_in_day 1730333005 [12:54:23]quantity*price = 35052 [12:54:23]sum+1 = 35053 [12:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 145 30.10.2024 12:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118085 ФПД: 30164190645858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125423&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118085&fm=30164190645858&tin=02508201610067®Number=0000000000091782&sum=35000 [12:54:24]StoreToDocumentArchive [12:54:24]shift 545 fd 118085 [12:54:24]save to /storage/0545/doc_00118085 [12:54:24]save last doc name /storage/0545/doc_00118085 to /storage/kkm_last_doc_name [12:54:24]save OK [12:54:24]Clear old archive folders... [12:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:54:24]tlvbuf is B6D69410 [12:54:24]SAM_PROTO_ClearQueue [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 09 00 00 [12:54:24]Write to MH i2c: E2 08 00 46 01 80 09 00 00 00 00 00 00 B9 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_ClearQueue done [12:54:24]KKMCreateOFDPacket [12:54:24]OFDProtocolAddRootSTLVToBuf [12:54:24]FM_MakeSignedData [12:54:24]FM_MakeSignedData [12:54:24]SAM_PROTO_SignData [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 01 02 [12:54:24]Write to MH i2c: E2 08 00 47 01 80 0D 01 02 00 00 00 00 C1 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]OFD Sender: No OFD packet to send [12:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=255 [12:54:24]MH_SAM_APDU [12:54: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 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 91 00 00 00 F4 03 04 00 7F 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CD 01 00 35 04 06 00 1B 6F 25 DE [12:54:24]Write to MH i2c: E2 02 01 48 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 91 00 00 00 F4 03 04 00 7F 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CD 01 00 35 04 06 00 1B 6F 25 DE 00 00 56 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=7 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 02 02 02 4E 62 [12:54:24]Write to MH i2c: E2 0A 00 49 01 80 0D 02 02 02 00 4E 62 00 00 78 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 03 02 [12:54:24]Write to MH i2c: E2 08 00 4A 01 80 0D 03 02 00 00 00 00 C6 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0B 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0B 00 4A 01 00 AA 8B 2F 28 0C C9 59 34 90 00 B5 [12:54:24]RAPDU: AA 8B 2F 28 0C C9 59 34 90 00 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_SignData done [12:54:24]FM_MakeSignedData done [12:54:24]CreateOFDProtocolMessage [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 11 00 00 [12:54:24]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1D [12:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:54:24]wFMCommunicate OK [12:54:24]CreateOFDProtocolMessage done [12:54:24]OFDSenderStorePacket 118085 [12:54:24]StoreOFDPacket docnum=118085 [12:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 E9 AA 04 01 F5 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 91 00 00 00 F4 03 04 00 7F 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CD 01 00 35 04 06 00 1B 6F 25 DE 4E 62 AA 8B 2F 28 0C C9 59 34 [12:54:24]CheckFolder [12:54:24]dirname=/storage/ofd_packets [12:54:24]CheckFolder done [12:54:24]ProducePacketName [12:54:24]name=ofd_packets/00118085 [12:54:24]NVStorageSaveData ofd_packets/00118085 [12:54:24]File name is /storage/ofd_packets/00118085 [12:54:24]Write 298 bytes [12:54:24]NVStorageSaveData done [12:54:24]OFDSenderStorePacket done [12:54:24]KKMCreateOFDPacket done [12:54:24]NVStorageSaveData kkm_last_timestamp [12:54:24]File name is /storage/kkm_last_timestamp [12:54:24]Write 4 bytes [12:54:24]NVStorageSaveData done [12:54:24]ExternCall_PrintAddStr [12:54:24]wPrintStart [12:54:24]Write to MH i2c: 01 00 00 4C 01 4D [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [12:54:24]RasterBufferAndPrint [12:54:24]line Счет N : (1)245881 [12:54:24]line ИНН: 02508201610067 [12:54:24]line Контрольно-Кассовый Чек [12:54:24]line ПРОДАЖА [12:54:24]line ТРК (МРК, ГНК) : 23 [12:54:24]line Товар: 2710194210 [12:54:24]line ДТ-К-2 [12:54:24]line 4.600 * 76.20 [12:54:24]line = 350.52 [12:54:24]line НДС 12% НСП 1% [12:54:24]line > о реализуемом товаре [12:54:24]line ОКРУГЛЕНИЕ: -0.52 [12:54:24]line ИТОГО: 350.00 [12:54:24]line Внесено: 350.00 [12:54:24]line СДАЧА: 0.00 [12:54:24]line НСП 1% : 3.10 [12:54:24]line НДС 12% : 37.22 [12:54:24]line Наличными: 350.00 [12:54:24]line Безнал.: 0.00 [12:54:24]line Место: АЗС № 173 "Партнер Нефть" [12:54:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:54:24]line СНО: Общий режим [12:54:24]line Чек 145 30.10.2024 12:54 [12:54:24]line Смена: 545 ФФД: 1.0 [12:54:24]line ЗНМ: 0300000115 [12:54:24]line РНМ: 0000000000091782 [12:54:24]line Версия ККМ: 001 [12:54:24]line ФМ: 0000000000871767 [12:54:24]line ФД: 118085 [12:54:25]line ФПД: 30164190645858 [12:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125423&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118085&fm=30164190645858&tin=02508201610067®Number=0000000000091782&sum=35000 [12:54:25]OFD Sender: Processing packet 118085 [packets to send 77, broken 76] [12:54:25]ProducePacketName [12:54:25]name=ofd_packets/00118085 [12:54:25]OFD Sender: To server: pG, [12:54:25]CommunicateWithHost lk.salyk.kg:30040 [12:54:25]ConnectInit lk.salyk.kg [12:54:25]written 0, free lines is 4095 [12:54:25]Connected sock=10 [12:54: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 36 37 0C 01 00 00 E9 AA 04 01 F5 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 91 00 00 00 F4 03 04 00 7F 2C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CD 01 00 35 04 06 00 1B 6F 25 DE 4E 62 AA 8B 2F 28 0C C9 59 34 [12:54: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 36 37 4F 00 00 00 2B 5D 47 00 09 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 45 CD 01 00 F4 03 04 00 37 D8 21 67 B6 04 01 00 00 14 BD 55 92 3D 36 2D B5 [12:54:25]CommunicateWithHost err = 0 [12:54:25]CheckOFDResponse [12:54:25]1017 (14) - 77093643461234 [12:54:25]1041 (16) - 0000000000871767 [12:54:25]1040 (4) - 118085 [12:54:25]1012 (4) - 30.10.2024 06:54 [12:54:25]1206 (1) - 0 [12:54:25]OFD Sender: Remove packet 118085 [12:54:25]ProducePacketName [12:54:25]name=ofd_packets/00118085 [12:54:25]NVStorageDeleteData [12:54:25]Write to MH i2c: 01 00 00 76 01 77 [12:54:25]Write i2c OK [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: 01 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: 01 07 00 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 AD 0C 37 [12:54:25]RasterBufferAndPrint [12:54:25]line [12:54:25]line [12:54:25]line [12:54:25]line [12:54:25]line [12:54:25]written 0, free lines is 3249 [12:54:25]MH_Cut [12:54:25]Write to MH i2c: D1 01 00 7D 01 01 50 [12:54:25]Write i2c OK [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: D1 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: D1 01 00 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: D1 01 00 7D 01 00 4F [12:54:25]Write to MH i2c: 01 00 00 7E 01 7F [12:54:25]Write i2c OK [12:54:25]MH_I2C_Read... [12:54:25]OFD Sender: No OFD packet to send [12:54:26]*** Cut start [12:54:26]*** Purtial cut [12:54:26]*** Stage 1: CUTSNS_PIN = 1 [12:54:26]Read from MH i2c: 01 [12:54:26]MH_I2C_Read... [12:54:26]*** Stop cut motor [12:54:26]*** Cut end [12:54:26]Read from MH i2c: 01 07 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0F 94 [12:54:26]process_action close_receipt done [12:54:26]requested_data is exist [12:54:26]produce_requested_data [12:54:26]requested_item fm.sn is exist - process it [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 11 00 00 [12:54:26]Write to MH i2c: E2 08 00 7F 01 80 11 00 00 00 00 00 00 FA [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 7F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 51 [12:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:54:26]wFMCommunicate OK [12:54:26]requested_item fd.num is exist - process it [12:54:26]SAM_PROTO_GetFieldsCounters [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 00 00 [12:54:26]Write to MH i2c: E2 08 00 80 01 80 13 00 00 00 00 00 00 FD [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 80 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 45 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [12:54: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 45 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:26]wFMCommunicate OK [12:54:26]SAM_PROTO_GetFieldsCounters done [12:54:26]requested_item shift.num is exist - process it [12:54:26]requested_item shift.opened is exist - process it [12:54:26]req_shift_opened [12:54:26]FM_GetShiftState [12:54:26]SAM_PROTO_GetShiftState [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 01 00 [12:54:26]Write to MH i2c: E2 08 00 81 01 80 13 01 00 00 00 00 00 FF [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:27]Read from MH i2c: E2 [12:54:27]MH_I2C_Read... [12:54:27]Read from MH i2c: E2 0E 00 [12:54:27]MH_I2C_Read... [12:54:27]Read from MH i2c: E2 0E 00 81 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D7 [12:54:27]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:54:27]wFMCommunicate OK [12:54:27]SAM_PROTO_GetShiftState done [12:54:27]FM_GetShiftState done [12:54:27]req_shift_opened done [12:54:27]requested_item shift.open_date is exist - process it [12:54:27]req_shift_open_date [12:54:27]req_shift_open_date done [12:54:27]produce_requested_data done [12:54:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118085,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:54:27]process_action_free close_receipt [12:54:27]json_value_free [12:54:27]json_value_free done [12:54:27]process_json_proto returns [12:54:27]Send response to host [12:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118085,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:54:27]free response buf [12:54:27]execute_script done [12:54:27]execute_script returns [12:54:27]free content buf [12:54:27]Sock 9.Close socket [12:54:27]Sock 9.Thread stoped [12:54:30]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]accept exits with 7 [12:57:46]New connection [12:57:46]New thread 3066551652 created [12:57:46]Thread 3066695012 joined [12:57:46]Waiting for new connection... [12:57:46] Sock 7.Parse request [12:57:46]Sock 7.Check first char [12:57:46]Sock 7.First char is OK [12:57:46]request: POST /json_proto HTTP/1.0 [12:57:46]Method: POST [12:57:46]URL: /json_proto [12:57:46]Method is POST - this is cgi request [12:57:46]url: /json_proto [12:57:46]query_string will be loaded in cgi processing [12:57:46]execute_cgi json_proto POST (null) [12:57:46]execute_cgi path=json_proto method=POST [12:57:46]POST find Content-Length [12:57:46]Host: 172.17.96.67:8080 [12:57:46]Content-Length: 674 [12:57:46]Content-Type: application/json [12:57:46] [12:57:46]POST finish read [12:57:46]Found Content-Length = 674 [12:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.890, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:46]execute_script... [12:57: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)245882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.890, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:46]POST & json_proto [12:57:46]process_json_proto [12:57:46]json parsed OK: [12:57:46]protocol is kg_v1.0 [12:57:46]action value=close_receipt [12:57:46]process_action close_receipt [12:57:46]cmd_close_receipt [12:57:46]MH_GetDate [12:57:46]Write to MH i2c: F0 00 00 82 01 72 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 09 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 09 00 82 01 00 4A 2D 22 67 47 6C 1F 67 B4 [12:57:46]GetLastDocTimeStamp 1730292863 [12:57:46]current date 1730293066 [12:57:46]FM_GetShiftState [12:57:46]SAM_PROTO_GetShiftState [12:57:46]wFMCommunicate request_size=4 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 13 01 00 [12:57:46]Write to MH i2c: E2 08 00 83 01 80 13 01 00 00 00 00 00 01 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0E 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0E 00 83 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D9 [12:57:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:57:46]wFMCommunicate OK [12:57:46]SAM_PROTO_GetShiftState done [12:57:46]FM_GetShiftState done [12:57:46]opened in 1730246605 [12:57:46]opened+sec_in_day 1730333005 [12:57:46]quantity*price = 22021 [12:57:46]sum+1 = 22023 [12:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.39 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 146 30.10.2024 12:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118086 ФПД: 186130387815147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125746&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118086&fm=186130387815147&tin=02508201610067®Number=0000000000091782&sum=22000 [12:57:47]StoreToDocumentArchive [12:57:47]shift 545 fd 118086 [12:57:47]save to /storage/0545/doc_00118086 [12:57:47]save last doc name /storage/0545/doc_00118086 to /storage/kkm_last_doc_name [12:57:47]save OK [12:57:47]Clear old archive folders... [12:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:57:47]tlvbuf is 000ED160 [12:57:47]SAM_PROTO_ClearQueue [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 09 00 00 [12:57:47]Write to MH i2c: E2 08 00 90 01 80 09 00 00 00 00 00 00 03 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]SAM_PROTO_ClearQueue done [12:57:47]KKMCreateOFDPacket [12:57:47]OFDProtocolAddRootSTLVToBuf [12:57:47]FM_MakeSignedData [12:57:47]FM_MakeSignedData [12:57:47]SAM_PROTO_SignData [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 0D 01 02 [12:57:47]Write to MH i2c: E2 08 00 91 01 80 0D 01 02 00 00 00 00 0B [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]wFMCommunicate request_size=255 [12:57:47]MH_SAM_APDU [12:57: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 32 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 2D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CD 01 00 35 04 06 00 A9 48 DB A5 [12:57:47]Write to MH i2c: E2 02 01 92 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 2D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CD 01 00 35 04 06 00 A9 48 DB A5 00 00 B0 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]wFMCommunicate request_size=7 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 0D 02 02 02 CA EB [12:57:47]Write to MH i2c: E2 0A 00 93 01 80 0D 02 02 02 00 CA EB 00 00 C7 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 0D 03 02 [12:57:47]Write to MH i2c: E2 08 00 94 01 80 0D 03 02 00 00 00 00 10 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 0B 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 0B 00 94 01 00 65 9B 40 C9 08 82 53 4F 90 00 46 [12:57:47]RAPDU: 65 9B 40 C9 08 82 53 4F 90 00 [12:57:47]wFMCommunicate OK [12:57:47]SAM_PROTO_SignData done [12:57:47]FM_MakeSignedData done [12:57:47]CreateOFDProtocolMessage [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 11 00 00 [12:57:47]Write to MH i2c: E2 08 00 95 01 80 11 00 00 00 00 00 00 10 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 17 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 17 00 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 67 [12:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:57:47]wFMCommunicate OK [12:57:47]CreateOFDProtocolMessage done [12:57:47]OFDSenderStorePacket 118086 [12:57:47]StoreOFDPacket docnum=118086 [12:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 D5 65 04 01 43 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 2D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CD 01 00 35 04 06 00 A9 48 DB A5 CA EB 65 9B 40 C9 08 82 53 4F [12:57:47]CheckFolder [12:57:47]dirname=/storage/ofd_packets [12:57:47]CheckFolder done [12:57:47]ProducePacketName [12:57:47]name=ofd_packets/00118086 [12:57:47]NVStorageSaveData ofd_packets/00118086 [12:57:47]File name is /storage/ofd_packets/00118086 [12:57:47]Write 298 bytes [12:57:47]NVStorageSaveData done [12:57:47]OFDSenderStorePacket done [12:57:47]KKMCreateOFDPacket done [12:57:47]NVStorageSaveData kkm_last_timestamp [12:57:47]File name is /storage/kkm_last_timestamp [12:57:47]Write 4 bytes [12:57:47]NVStorageSaveData done [12:57:47]ExternCall_PrintAddStr [12:57:47]wPrintStart [12:57:47]Write to MH i2c: 01 00 00 96 01 97 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: 01 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: 01 07 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 FF 0F AC [12:57:47]RasterBufferAndPrint [12:57:47]line Счет N : (1)245882 [12:57:47]line ИНН: 02508201610067 [12:57:47]line Контрольно-Кассовый Чек [12:57:47]line ПРОДАЖА [12:57:47]line ТРК (МРК, ГНК) : 13 [12:57:47]line Товар: 2710194210 [12:57:47]line ДТ-К-2 [12:57:47]line 2.890 * 76.20 [12:57:47]line = 220.22 [12:57:47]line НДС 12% НСП 1% [12:57:47]line > о реализуемом товаре [12:57:47]line ОКРУГЛЕНИЕ: -0.22 [12:57:47]line ИТОГО: 220.00 [12:57:47]line Внесено: 220.00 [12:57:47]line СДАЧА: 0.00 [12:57:47]line НСП 1% : 1.95 [12:57:47]line НДС 12% : 23.39 [12:57:47]line Наличными: 220.00 [12:57:47]line Безнал.: 0.00 [12:57:47]line Место: АЗС № 173 "Партнер Нефть" [12:57:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [12:57:47]line СНО: Общий режим [12:57:47]line Чек 146 30.10.2024 12:57 [12:57:47]line Смена: 545 ФФД: 1.0 [12:57:47]line ЗНМ: 0300000115 [12:57:47]line РНМ: 0000000000091782 [12:57:47]line Версия ККМ: 001 [12:57:47]line ФМ: 0000000000871767 [12:57:47]line ФД: 118086 [12:57:47]line ФПД: 186130387815147 [12:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125746&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118086&fm=186130387815147&tin=02508201610067®Number=0000000000091782&sum=22000 [12:57:48]OFD Sender: Processing packet 118086 [packets to send 77, broken 76] [12:57:48]ProducePacketName [12:57:48]name=ofd_packets/00118086 [12:57:48]OFD Sender: To server: pG, [12:57:48]CommunicateWithHost lk.salyk.kg:30040 [12:57:48]ConnectInit lk.salyk.kg [12:57:48]written 0, free lines is 4095 [12:57:48]Connected sock=10 [12:57: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 36 37 0C 01 00 00 D5 65 04 01 43 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 2D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CD 01 00 35 04 06 00 A9 48 DB A5 CA EB 65 9B 40 C9 08 82 53 4F [12:57: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 36 37 4F 00 00 00 F5 7F 47 00 59 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 46 CD 01 00 F4 03 04 00 02 D9 21 67 B6 04 01 00 00 52 96 BD 46 74 A3 B0 BD [12:57:48]CommunicateWithHost err = 0 [12:57:48]CheckOFDResponse [12:57:48]1017 (14) - 77093643461234 [12:57:48]1041 (16) - 0000000000871767 [12:57:48]1040 (4) - 118086 [12:57:48]1012 (4) - 30.10.2024 06:58 [12:57:48]1206 (1) - 0 [12:57:48]OFD Sender: Remove packet 118086 [12:57:48]ProducePacketName [12:57:48]name=ofd_packets/00118086 [12:57:48]NVStorageDeleteData [12:57:48]Write to MH i2c: 01 00 00 C0 01 C1 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 B7 0C 8B [12:57:48]RasterBufferAndPrint [12:57:48]line [12:57:48]line [12:57:48]line [12:57:48]line [12:57:48]line [12:57:48]written 0, free lines is 3262 [12:57:48]MH_Cut [12:57:48]Write to MH i2c: D1 01 00 C7 01 01 9A [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: D1 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: D1 01 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: D1 01 00 C7 01 00 99 [12:57:48]Write to MH i2c: 01 00 00 C8 01 C9 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]OFD Sender: No OFD packet to send [12:57:49]*** Cut start [12:57:49]*** Purtial cut [12:57:49]*** Stage 1: CUTSNS_PIN = 1 [12:57:49]Read from MH i2c: 01 [12:57:49]MH_I2C_Read... [12:57:49]*** Stop cut motor [12:57:49]*** Cut end [12:57:49]Read from MH i2c: 01 07 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [12:57:49]process_action close_receipt done [12:57:49]requested_data is exist [12:57:49]produce_requested_data [12:57:49]requested_item fm.sn is exist - process it [12:57:49]wFMCommunicate request_size=4 [12:57:49]MH_SAM_APDU [12:57:49]CAPDU: 80 11 00 00 [12:57:49]Write to MH i2c: E2 08 00 C9 01 80 11 00 00 00 00 00 00 44 [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:49]Read from MH i2c: E2 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: E2 17 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: E2 17 00 C9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9B [12:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [12:57:49]wFMCommunicate OK [12:57:49]requested_item fd.num is exist - process it [12:57:49]SAM_PROTO_GetFieldsCounters [12:57:49]wFMCommunicate request_size=4 [12:57:49]MH_SAM_APDU [12:57:49]CAPDU: 80 13 00 00 [12:57:49]Write to MH i2c: E2 08 00 CA 01 80 13 00 00 00 00 00 00 47 [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:49]Read from MH i2c: E2 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: E2 62 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: E2 62 00 CA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 46 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [12:57: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 46 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:49]wFMCommunicate OK [12:57:49]SAM_PROTO_GetFieldsCounters done [12:57:49]requested_item shift.num is exist - process it [12:57:49]requested_item shift.opened is exist - process it [12:57:49]req_shift_opened [12:57:49]FM_GetShiftState [12:57:49]SAM_PROTO_GetShiftState [12:57:49]wFMCommunicate request_size=4 [12:57:49]MH_SAM_APDU [12:57:49]CAPDU: 80 13 01 00 [12:57:49]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: E2 [12:57:49]MH_I2C_Read... [12:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:49]Read from MH i2c: E2 0E 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 21 [12:57:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [12:57:49]wFMCommunicate OK [12:57:49]SAM_PROTO_GetShiftState done [12:57:49]FM_GetShiftState done [12:57:49]req_shift_opened done [12:57:49]requested_item shift.open_date is exist - process it [12:57:49]req_shift_open_date [12:57:49]req_shift_open_date done [12:57:49]produce_requested_data done [12:57:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118086,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [12:57:49]process_action_free close_receipt [12:57:49]json_value_free [12:57:49]json_value_free done [12:57:49]process_json_proto returns [12:57:49]Send response to host [12:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118086,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [12:57:49]free response buf [12:57:49]execute_script done [12:57:49]execute_script returns [12:57:49]free content buf [12:57:49]Sock 7.Close socket [12:57:49]Sock 7.Thread stoped [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:29]accept exits with 9 [13:01:29]New connection [13:01:29]New thread 3066695012 created [13:01:29]Thread 3066551652 joined [13:01:29]Waiting for new connection... [13:01:29] Sock 9.Parse request [13:01:29]Sock 9.Check first char [13:01:29]Sock 9.First char is OK [13:01:29]request: POST /json_proto HTTP/1.0 [13:01:29]Method: POST [13:01:29]URL: /json_proto [13:01:29]Method is POST - this is cgi request [13:01:29]url: /json_proto [13:01:29]query_string will be loaded in cgi processing [13:01:29]execute_cgi json_proto POST (null) [13:01:29]execute_cgi path=json_proto method=POST [13:01:29]POST find Content-Length [13:01:29]Host: 172.17.96.67:8080 [13:01:29]Content-Length: 678 [13:01:29]Content-Type: application/json [13:01:29] [13:01:29]POST finish read [13:01:29]Found Content-Length = 678 [13:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:29]execute_script... [13:01: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)245883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:29]POST & json_proto [13:01:29]process_json_proto [13:01:29]json parsed OK: [13:01:29]protocol is kg_v1.0 [13:01:29]action value=close_receipt [13:01:29]process_action close_receipt [13:01:29]cmd_close_receipt [13:01:29]MH_GetDate [13:01:29]Write to MH i2c: F0 00 00 CC 01 BC [13:01:29]Write i2c OK [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: F0 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: F0 09 00 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: F0 09 00 CC 01 00 29 2E 22 67 47 6C 1F 67 DE [13:01:29]GetLastDocTimeStamp 1730293066 [13:01:29]current date 1730293289 [13:01:29]FM_GetShiftState [13:01:29]SAM_PROTO_GetShiftState [13:01:29]wFMCommunicate request_size=4 [13:01:29]MH_SAM_APDU [13:01:29]CAPDU: 80 13 01 00 [13:01:29]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [13:01:29]Write i2c OK [13:01:29]MH_I2C_Read... [13:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:29]Read from MH i2c: E2 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: E2 0E 00 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 23 [13:01:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:01:29]wFMCommunicate OK [13:01:29]SAM_PROTO_GetShiftState done [13:01:29]FM_GetShiftState done [13:01:29]opened in 1730246605 [13:01:29]opened+sec_in_day 1730333005 [13:01:29]quantity*price = 70044 [13:01:29]sum+1 = 70045 [13:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 147 30.10.2024 13:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118087 ФПД: 180814318872197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130130&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118087&fm=180814318872197&tin=02508201610067®Number=0000000000091782&sum=70000 [13:01:30]StoreToDocumentArchive [13:01:30]shift 545 fd 118087 [13:01:30]save to /storage/0545/doc_00118087 [13:01:30]save last doc name /storage/0545/doc_00118087 to /storage/kkm_last_doc_name [13:01:30]save OK [13:01:30]Clear old archive folders... [13:01:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:30]tlvbuf is 000E39F0 [13:01:30]SAM_PROTO_ClearQueue [13:01:30]wFMCommunicate request_size=4 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 09 00 00 [13:01:30]Write to MH i2c: E2 08 00 DA 01 80 09 00 00 00 00 00 00 4D [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [13:01:30]RAPDU: 90 00 [13:01:30]wFMCommunicate OK [13:01:30]SAM_PROTO_ClearQueue done [13:01:30]KKMCreateOFDPacket [13:01:30]OFDProtocolAddRootSTLVToBuf [13:01:30]FM_MakeSignedData [13:01:30]FM_MakeSignedData [13:01:30]SAM_PROTO_SignData [13:01:30]wFMCommunicate request_size=4 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 0D 01 02 [13:01:30]Write to MH i2c: E2 08 00 DB 01 80 0D 01 02 00 00 00 00 55 [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [13:01:30]RAPDU: 90 00 [13:01:30]wFMCommunicate OK [13:01:30]wFMCommunicate request_size=255 [13:01:30]MH_SAM_APDU [13:01: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 32 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 93 00 00 00 F4 03 04 00 2A 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CD 01 00 35 04 06 00 A4 [13:01:30]Write to MH i2c: E2 02 01 DC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 93 00 00 00 F4 03 04 00 2A 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CD 01 00 35 04 06 00 A4 00 00 47 [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [13:01:30]RAPDU: 90 00 [13:01:30]wFMCommunicate OK [13:01:30]wFMCommunicate request_size=10 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 0D 02 02 05 73 1D 3F 26 85 [13:01:30]Write to MH i2c: E2 0D 00 DD 01 80 0D 02 02 05 00 73 1D 3F 26 85 00 00 DC [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [13:01:30]RAPDU: 90 00 [13:01:30]wFMCommunicate OK [13:01:30]wFMCommunicate request_size=4 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 0D 03 02 [13:01:30]Write to MH i2c: E2 08 00 DE 01 80 0D 03 02 00 00 00 00 5A [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 0B 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 0B 00 DE 01 00 5E BB 45 0A 2A 3C E7 45 90 00 55 [13:01:30]RAPDU: 5E BB 45 0A 2A 3C E7 45 90 00 [13:01:30]wFMCommunicate OK [13:01:30]SAM_PROTO_SignData done [13:01:30]FM_MakeSignedData done [13:01:30]CreateOFDProtocolMessage [13:01:30]wFMCommunicate request_size=4 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 11 00 00 [13:01:30]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 17 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B1 [13:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:01:30]wFMCommunicate OK [13:01:30]CreateOFDProtocolMessage done [13:01:30]OFDSenderStorePacket 118087 [13:01:30]StoreOFDPacket docnum=118087 [13:01:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 15 95 07 01 78 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 93 00 00 00 F4 03 04 00 2A 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CD 01 00 35 04 06 00 A4 73 1D 3F 26 85 5E BB 45 0A 2A 3C E7 45 [13:01:30]CheckFolder [13:01:30]dirname=/storage/ofd_packets [13:01:30]CheckFolder done [13:01:30]ProducePacketName [13:01:30]name=ofd_packets/00118087 [13:01:30]NVStorageSaveData ofd_packets/00118087 [13:01:30]File name is /storage/ofd_packets/00118087 [13:01:30]Write 301 bytes [13:01:30]NVStorageSaveData done [13:01:30]OFDSenderStorePacket done [13:01:30]KKMCreateOFDPacket done [13:01:30]NVStorageSaveData kkm_last_timestamp [13:01:30]File name is /storage/kkm_last_timestamp [13:01:30]Write 4 bytes [13:01:30]NVStorageSaveData done [13:01:30]ExternCall_PrintAddStr [13:01:30]wPrintStart [13:01:30]Write to MH i2c: 01 00 00 E0 01 E1 [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: 01 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: 01 07 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [13:01:30]RasterBufferAndPrint [13:01:30]line Счет N : (1)245883 [13:01:30]line ИНН: 02508201610067 [13:01:30]line Контрольно-Кассовый Чек [13:01:30]line ПРОДАЖА [13:01:30]line ТРК (МРК, ГНК) : 11 [13:01:30]line Товар: 2710124130 [13:01:30]line Аи-92-К-2 [13:01:30]line 10.470 * 66.90 [13:01:30]line = 700.44 [13:01:30]line НДС 12% НСП 1% [13:01:30]line > о реализуемом товаре [13:01:30]line ОКРУГЛЕНИЕ: -0.44 [13:01:30]line ИТОГО: 700.00 [13:01:30]line Внесено: 700.00 [13:01:30]line СДАЧА: 0.00 [13:01:30]line НСП 1% : 6.20 [13:01:30]line НДС 12% : 74.38 [13:01:30]line Наличными: 700.00 [13:01:30]line Безнал.: 0.00 [13:01:30]line Место: АЗС № 173 "Партнер Нефть" [13:01:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:01:30]line СНО: Общий режим [13:01:30]line Чек 147 30.10.2024 13:01 [13:01:30]line Смена: 545 ФФД: 1.0 [13:01:30]line ЗНМ: 0300000115 [13:01:30]line РНМ: 0000000000091782 [13:01:30]line Версия ККМ: 001 [13:01:30]line ФМ: 0000000000871767 [13:01:30]line ФД: 118087 [13:01:30]line ФПД: 180814318872197 [13:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130130&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118087&fm=180814318872197&tin=02508201610067®Number=0000000000091782&sum=70000 [13:01:31]written 0, free lines is 4095 [13:01:31]OFD Sender: Processing packet 118087 [packets to send 77, broken 76] [13:01:31]ProducePacketName [13:01:31]name=ofd_packets/00118087 [13:01:31]OFD Sender: To server: pG, [13:01:31]CommunicateWithHost lk.salyk.kg:30040 [13:01:31]ConnectInit lk.salyk.kg [13:01:31]Connected sock=10 [13:01: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 36 37 0F 01 00 00 15 95 07 01 78 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 93 00 00 00 F4 03 04 00 2A 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CD 01 00 35 04 06 00 A4 73 1D 3F 26 85 5E BB 45 0A 2A 3C E7 45 [13:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 41 7C 47 00 55 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 47 CD 01 00 F4 03 04 00 E1 D9 21 67 B6 04 01 00 00 F8 FA C6 46 09 35 35 5E [13:01:31]CommunicateWithHost err = 0 [13:01:31]CheckOFDResponse [13:01:31]1017 (14) - 77093643461234 [13:01:31]1041 (16) - 0000000000871767 [13:01:31]1040 (4) - 118087 [13:01:31]1012 (4) - 30.10.2024 07:01 [13:01:31]1206 (1) - 0 [13:01:31]OFD Sender: Remove packet 118087 [13:01:31]ProducePacketName [13:01:31]name=ofd_packets/00118087 [13:01:31]NVStorageDeleteData [13:01:31]Write to MH i2c: 01 00 00 0A 02 0C [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: 01 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: 01 07 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 B3 0C D2 [13:01:31]RasterBufferAndPrint [13:01:31]line [13:01:31]line [13:01:31]line [13:01:31]line [13:01:31]line [13:01:31]written 0, free lines is 3257 [13:01:31]MH_Cut [13:01:31]Write to MH i2c: D1 01 00 11 02 01 E5 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: D1 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: D1 01 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: D1 01 00 11 02 00 E4 [13:01:31]Write to MH i2c: 01 00 00 12 02 14 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:32]OFD Sender: No OFD packet to send [13:01:32]*** Cut start [13:01:32]*** Purtial cut [13:01:32]*** Stage 1: CUTSNS_PIN = 1 [13:01:32]Read from MH i2c: 01 [13:01:32]MH_I2C_Read... [13:01:32]*** Stop cut motor [13:01:32]*** Cut end [13:01:32]Read from MH i2c: 01 07 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 12 02 00 00 00 00 00 FF 0F 29 [13:01:32]process_action close_receipt done [13:01:32]requested_data is exist [13:01:32]produce_requested_data [13:01:32]requested_item fm.sn is exist - process it [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 11 00 00 [13:01:32]Write to MH i2c: E2 08 00 13 02 80 11 00 00 00 00 00 00 8F [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 13 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E6 [13:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:01:32]wFMCommunicate OK [13:01:32]requested_item fd.num is exist - process it [13:01:32]SAM_PROTO_GetFieldsCounters [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 13 00 00 [13:01:32]Write to MH i2c: E2 08 00 14 02 80 13 00 00 00 00 00 00 92 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:33]Read from MH i2c: E2 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 62 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 62 00 14 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 47 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [13:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 47 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:33]wFMCommunicate OK [13:01:33]SAM_PROTO_GetFieldsCounters done [13:01:33]requested_item shift.num is exist - process it [13:01:33]requested_item shift.opened is exist - process it [13:01:33]req_shift_opened [13:01:33]FM_GetShiftState [13:01:33]SAM_PROTO_GetShiftState [13:01:33]wFMCommunicate request_size=4 [13:01:33]MH_SAM_APDU [13:01:33]CAPDU: 80 13 01 00 [13:01:33]Write to MH i2c: E2 08 00 15 02 80 13 01 00 00 00 00 00 94 [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:33]Read from MH i2c: E2 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0E 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0E 00 15 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6C [13:01:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:01:33]wFMCommunicate OK [13:01:33]SAM_PROTO_GetShiftState done [13:01:33]FM_GetShiftState done [13:01:33]req_shift_opened done [13:01:33]requested_item shift.open_date is exist - process it [13:01:33]req_shift_open_date [13:01:33]req_shift_open_date done [13:01:33]produce_requested_data done [13:01:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118087,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:01:33]process_action_free close_receipt [13:01:33]json_value_free [13:01:33]json_value_free done [13:01:33]process_json_proto returns [13:01:33]Send response to host [13:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118087,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:01:33]free response buf [13:01:33]execute_script done [13:01:33]execute_script returns [13:01:33]free content buf [13:01:33]Sock 9.Close socket [13:01:33]Sock 9.Thread stoped [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:08]accept exits with 7 [13:04:08]New connection [13:04:08]New thread 3066551652 created [13:04:08]Thread 3066695012 joined [13:04:08]Waiting for new connection... [13:04:08] Sock 7.Parse request [13:04:08]Sock 7.Check first char [13:04:08]Sock 7.First char is OK [13:04:08]request: POST /json_proto HTTP/1.0 [13:04:08]Method: POST [13:04:08]URL: /json_proto [13:04:08]Method is POST - this is cgi request [13:04:08]url: /json_proto [13:04:08]query_string will be loaded in cgi processing [13:04:08]execute_cgi json_proto POST (null) [13:04:08]execute_cgi path=json_proto method=POST [13:04:08]POST find Content-Length [13:04:08]Host: 172.17.96.67:8080 [13:04:08]Content-Length: 677 [13:04:08]Content-Type: application/json [13:04:08] [13:04:08]POST finish read [13:04:08]Found Content-Length = 677 [13:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:04:08]execute_script... [13: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)245884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:04:08]POST & json_proto [13:04:08]process_json_proto [13:04:08]json parsed OK: [13:04:08]protocol is kg_v1.0 [13:04:08]action value=close_receipt [13:04:08]process_action close_receipt [13:04:08]cmd_close_receipt [13:04:08]MH_GetDate [13:04:08]Write to MH i2c: F0 00 00 16 02 07 [13:04:08]Write i2c OK [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: F0 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: F0 09 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: F0 09 00 16 02 00 C9 2E 22 67 47 6C 1F 67 C9 [13:04:08]GetLastDocTimeStamp 1730293290 [13:04:08]current date 1730293449 [13:04:08]FM_GetShiftState [13:04:08]SAM_PROTO_GetShiftState [13:04:08]wFMCommunicate request_size=4 [13:04:08]MH_SAM_APDU [13:04:08]CAPDU: 80 13 01 00 [13:04:08]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [13:04:08]Write i2c OK [13:04:08]MH_I2C_Read... [13:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:08]Read from MH i2c: E2 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 0E 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6E [13:04:08]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:04:08]wFMCommunicate OK [13:04:08]SAM_PROTO_GetShiftState done [13:04:08]FM_GetShiftState done [13:04:08]opened in 1730246605 [13:04:08]opened+sec_in_day 1730333005 [13:04:08]quantity*price = 40006 [13:04:08]sum+1 = 40007 [13:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 148 30.10.2024 13:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118088 ФПД: 235658786925682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130409&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118088&fm=235658786925682&tin=02508201610067®Number=0000000000091782&sum=40000 [13:04:09]StoreToDocumentArchive [13:04:09]shift 545 fd 118088 [13:04:09]save to /storage/0545/doc_00118088 [13:04:09]save last doc name /storage/0545/doc_00118088 to /storage/kkm_last_doc_name [13:04:09]save OK [13:04:09]Clear old archive folders... [13:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:09]tlvbuf is 000F6460 [13:04:09]SAM_PROTO_ClearQueue [13:04:09]wFMCommunicate request_size=4 [13:04:09]MH_SAM_APDU [13:04:09]CAPDU: 80 09 00 00 [13:04:09]Write to MH i2c: E2 08 00 24 02 80 09 00 00 00 00 00 00 98 [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [13:04:10]RAPDU: 90 00 [13:04:10]wFMCommunicate OK [13:04:10]SAM_PROTO_ClearQueue done [13:04:10]KKMCreateOFDPacket [13:04:10]OFDProtocolAddRootSTLVToBuf [13:04:10]FM_MakeSignedData [13:04:10]FM_MakeSignedData [13:04:10]SAM_PROTO_SignData [13:04:10]wFMCommunicate request_size=4 [13:04:10]MH_SAM_APDU [13:04:10]CAPDU: 80 0D 01 02 [13:04:10]Write to MH i2c: E2 08 00 25 02 80 0D 01 02 00 00 00 00 A0 [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [13:04:10]RAPDU: 90 00 [13:04:10]wFMCommunicate OK [13:04:10]wFMCommunicate request_size=255 [13:04:10]MH_SAM_APDU [13:04: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 32 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 94 00 00 00 F4 03 04 00 C9 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CD 01 00 35 04 06 00 D6 [13:04:10]Write to MH i2c: E2 02 01 26 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 94 00 00 00 F4 03 04 00 C9 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CD 01 00 35 04 06 00 D6 00 00 24 [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [13:04:10]RAPDU: 90 00 [13:04:10]wFMCommunicate OK [13:04:10]wFMCommunicate request_size=10 [13:04:10]MH_SAM_APDU [13:04:10]CAPDU: 80 0D 02 02 05 54 96 48 6C 72 [13:04:10]Write to MH i2c: E2 0D 00 27 02 80 0D 02 02 05 00 54 96 48 6C 72 00 00 BD [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [13:04:10]RAPDU: 90 00 [13:04:10]wFMCommunicate OK [13:04:10]wFMCommunicate request_size=4 [13:04:10]MH_SAM_APDU [13:04:10]CAPDU: 80 0D 03 02 [13:04:10]Write to MH i2c: E2 08 00 28 02 80 0D 03 02 00 00 00 00 A5 [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 0B 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 0B 00 28 02 00 B0 E3 B8 E1 77 73 31 A6 90 00 93 [13:04:10]RAPDU: B0 E3 B8 E1 77 73 31 A6 90 00 [13:04:10]wFMCommunicate OK [13:04:10]SAM_PROTO_SignData done [13:04:10]FM_MakeSignedData done [13:04:10]CreateOFDProtocolMessage [13:04:10]wFMCommunicate request_size=4 [13:04:10]MH_SAM_APDU [13:04:10]CAPDU: 80 11 00 00 [13:04:10]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 17 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FC [13:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:04:10]wFMCommunicate OK [13:04:10]CreateOFDProtocolMessage done [13:04:10]OFDSenderStorePacket 118088 [13:04:10]StoreOFDPacket docnum=118088 [13:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CD 84 07 01 06 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 94 00 00 00 F4 03 04 00 C9 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CD 01 00 35 04 06 00 D6 54 96 48 6C 72 B0 E3 B8 E1 77 73 31 A6 [13:04:10]CheckFolder [13:04:10]dirname=/storage/ofd_packets [13:04:10]CheckFolder done [13:04:10]ProducePacketName [13:04:10]name=ofd_packets/00118088 [13:04:10]NVStorageSaveData ofd_packets/00118088 [13:04:10]File name is /storage/ofd_packets/00118088 [13:04:10]Write 301 bytes [13:04:10]NVStorageSaveData done [13:04:10]OFDSenderStorePacket done [13:04:10]KKMCreateOFDPacket done [13:04:10]NVStorageSaveData kkm_last_timestamp [13:04:10]File name is /storage/kkm_last_timestamp [13:04:10]Write 4 bytes [13:04:10]NVStorageSaveData done [13:04:10]OFD Sender: Processing packet 118088 [packets to send 77, broken 76] [13:04:10]ProducePacketName [13:04:10]name=ofd_packets/00118088 [13:04:10]OFD Sender: To server: pG, [13:04:10]CommunicateWithHost lk.salyk.kg:30040 [13:04:10]ConnectInit lk.salyk.kg [13:04:10]ExternCall_PrintAddStr [13:04:10]wPrintStart [13:04:10]Write to MH i2c: 01 00 00 2A 02 2C [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: 01 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: 01 07 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [13:04:10]RasterBufferAndPrint [13:04:10]line Счет N : (1)245884 [13:04:10]line ИНН: 02508201610067 [13:04:10]line Контрольно-Кассовый Чек [13:04:10]line ПРОДАЖА [13:04:10]line ТРК (МРК, ГНК) : 21 [13:04:10]line Товар: 2710124130 [13:04:10]line Аи-92-К-2 [13:04:10]line 5.980 * 66.90 [13:04:10]line = 400.06 [13:04:10]line НДС 12% НСП 1% [13:04:10]line > о реализуемом товаре [13:04:10]line ОКРУГЛЕНИЕ: -0.06 [13:04:10]line ИТОГО: 400.00 [13:04:10]line Внесено: 400.00 [13:04:10]line СДАЧА: 0.00 [13:04:10]line НСП 1% : 3.54 [13:04:10]line НДС 12% : 42.48 [13:04:10]line Наличными: 400.00 [13:04:10]line Безнал.: 0.00 [13:04:10]line Место: АЗС № 173 "Партнер Нефть" [13:04:10]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:04:10]line СНО: Общий режим [13:04:10]line Чек 148 30.10.2024 13:04 [13:04:10]line Смена: 545 ФФД: 1.0 [13:04:10]line ЗНМ: 0300000115 [13:04:10]line РНМ: 0000000000091782 [13:04:10]line Версия ККМ: 001 [13:04:10]line ФМ: 0000000000871767 [13:04:10]line ФД: 118088 [13:04:10]line ФПД: 235658786925682 [13:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130409&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118088&fm=235658786925682&tin=02508201610067®Number=0000000000091782&sum=40000 [13:04:10]Connected sock=11 [13: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 36 37 0F 01 00 00 CD 84 07 01 06 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 94 00 00 00 F4 03 04 00 C9 2E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CD 01 00 35 04 06 00 D6 54 96 48 6C 72 B0 E3 B8 E1 77 73 31 A6 [13:04:10]written 0, free lines is 4095 [13:04: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 36 37 4F 00 00 00 0F 3D 47 00 F7 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 48 CD 01 00 F4 03 04 00 81 DA 21 67 B6 04 01 00 00 65 5E 03 06 7B 05 21 B8 [13:04:11]CommunicateWithHost err = 0 [13:04:11]CheckOFDResponse [13:04:11]1017 (14) - 77093643461234 [13:04:11]1041 (16) - 0000000000871767 [13:04:11]1040 (4) - 118088 [13:04:11]1012 (4) - 30.10.2024 07:04 [13:04:11]1206 (1) - 0 [13:04:11]OFD Sender: Remove packet 118088 [13:04:11]ProducePacketName [13:04:11]name=ofd_packets/00118088 [13:04:11]NVStorageDeleteData [13:04:11]Write to MH i2c: 01 00 00 54 02 56 [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: 01 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: 01 07 00 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 BF 0C 28 [13:04:11]RasterBufferAndPrint [13:04:11]line [13:04:11]line [13:04:11]line [13:04:11]line [13:04:11]line [13:04:11]written 0, free lines is 3271 [13:04:11]MH_Cut [13:04:11]Write to MH i2c: D1 01 00 5B 02 01 2F [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: D1 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: D1 01 00 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: D1 01 00 5B 02 00 2E [13:04:11]Write to MH i2c: 01 00 00 5C 02 5E [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:11]OFD Sender: No OFD packet to send [13:04:12]*** Cut start [13:04:12]*** Purtial cut [13:04:12]*** Stage 1: CUTSNS_PIN = 1 [13:04:12]Read from MH i2c: 01 [13:04:12]MH_I2C_Read... [13:04:12]*** Stop cut motor [13:04:12]*** Cut end [13:04:12]Read from MH i2c: 01 07 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 FF 0F 73 [13:04:12]process_action close_receipt done [13:04:12]requested_data is exist [13:04:12]produce_requested_data [13:04:12]requested_item fm.sn is exist - process it [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 11 00 00 [13:04:12]Write to MH i2c: E2 08 00 5D 02 80 11 00 00 00 00 00 00 D9 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 5D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 30 [13:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:04:12]wFMCommunicate OK [13:04:12]requested_item fd.num is exist - process it [13:04:12]SAM_PROTO_GetFieldsCounters [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 13 00 00 [13:04:12]Write to MH i2c: E2 08 00 5E 02 80 13 00 00 00 00 00 00 DC [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 62 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 62 00 5E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 48 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [13: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 48 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_GetFieldsCounters done [13:04:12]requested_item shift.num is exist - process it [13:04:12]requested_item shift.opened is exist - process it [13:04:12]req_shift_opened [13:04:12]FM_GetShiftState [13:04:12]SAM_PROTO_GetShiftState [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 13 01 00 [13:04:12]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0E 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B6 [13:04:12]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_GetShiftState done [13:04:12]FM_GetShiftState done [13:04:12]req_shift_opened done [13:04:12]requested_item shift.open_date is exist - process it [13:04:12]req_shift_open_date [13:04:12]req_shift_open_date done [13:04:12]produce_requested_data done [13:04:12]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118088,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:04:12]process_action_free close_receipt [13:04:12]json_value_free [13:04:12]json_value_free done [13:04:12]process_json_proto returns [13:04:12]Send response to host [13:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118088,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:04:12]free response buf [13:04:12]execute_script done [13:04:12]execute_script returns [13:04:12]free content buf [13:04:12]Sock 7.Close socket [13:04:12]Sock 7.Thread stoped [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:32]accept exits with 9 [13:06:32]New connection [13:06:32]New thread 3066695012 created [13:06:32]Thread 3066551652 joined [13:06:32]Waiting for new connection... [13:06:32] Sock 9.Parse request [13:06:32]Sock 9.Check first char [13:06:32]Sock 9.First char is OK [13:06:32]request: POST /json_proto HTTP/1.0 [13:06:32]Method: POST [13:06:32]URL: /json_proto [13:06:32]Method is POST - this is cgi request [13:06:32]url: /json_proto [13:06:32]query_string will be loaded in cgi processing [13:06:32]execute_cgi json_proto POST (null) [13:06:32]execute_cgi path=json_proto method=POST [13:06:32]POST find Content-Length [13:06:32]Host: 172.17.96.67:8080 [13:06:32]Content-Length: 677 [13:06:32]Content-Type: application/json [13:06:32] [13:06:32]POST finish read [13:06:32]Found Content-Length = 677 [13:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:32]execute_script... [13:06: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)245886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:32]POST & json_proto [13:06:32]process_json_proto [13:06:32]json parsed OK: [13:06:32]protocol is kg_v1.0 [13:06:32]action value=close_receipt [13:06:32]process_action close_receipt [13:06:32]cmd_close_receipt [13:06:32]MH_GetDate [13:06:32]Write to MH i2c: F0 00 00 60 02 51 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: F0 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: F0 09 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: F0 09 00 60 02 00 59 2F 22 67 47 6C 1F 67 A4 [13:06:32]GetLastDocTimeStamp 1730293449 [13:06:32]current date 1730293593 [13:06:32]FM_GetShiftState [13:06:32]SAM_PROTO_GetShiftState [13:06:32]wFMCommunicate request_size=4 [13:06:32]MH_SAM_APDU [13:06:32]CAPDU: 80 13 01 00 [13:06:32]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:32]Read from MH i2c: E2 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 0E 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B8 [13:06:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:06:32]wFMCommunicate OK [13:06:32]SAM_PROTO_GetShiftState done [13:06:32]FM_GetShiftState done [13:06:32]opened in 1730246605 [13:06:32]opened+sec_in_day 1730333005 [13:06:32]quantity*price = 16056 [13:06:32]sum+1 = 16057 [13:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 149 30.10.2024 13:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118089 ФПД: 177682143976529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130633&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118089&fm=177682143976529&tin=02508201610067®Number=0000000000091782&sum=16000 [13:06:34]StoreToDocumentArchive [13:06:34]shift 545 fd 118089 [13:06:34]save to /storage/0545/doc_00118089 [13:06:34]save last doc name /storage/0545/doc_00118089 to /storage/kkm_last_doc_name [13:06:34]save OK [13:06:34]Clear old archive folders... [13:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:34]tlvbuf is 000F7C50 [13:06:34]SAM_PROTO_ClearQueue [13:06:34]wFMCommunicate request_size=4 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 09 00 00 [13:06:34]Write to MH i2c: E2 08 00 6E 02 80 09 00 00 00 00 00 00 E2 [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [13:06:34]RAPDU: 90 00 [13:06:34]wFMCommunicate OK [13:06:34]SAM_PROTO_ClearQueue done [13:06:34]KKMCreateOFDPacket [13:06:34]OFDProtocolAddRootSTLVToBuf [13:06:34]FM_MakeSignedData [13:06:34]FM_MakeSignedData [13:06:34]SAM_PROTO_SignData [13:06:34]wFMCommunicate request_size=4 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 0D 01 02 [13:06:34]Write to MH i2c: E2 08 00 6F 02 80 0D 01 02 00 00 00 00 EA [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [13:06:34]RAPDU: 90 00 [13:06:34]wFMCommunicate OK [13:06:34]wFMCommunicate request_size=255 [13:06:34]MH_SAM_APDU [13:06: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 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 59 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CD 01 00 35 04 06 00 A1 [13:06:34]Write to MH i2c: E2 02 01 70 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 59 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CD 01 00 35 04 06 00 A1 00 00 CC [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [13:06:34]RAPDU: 90 00 [13:06:34]wFMCommunicate OK [13:06:34]wFMCommunicate request_size=10 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 0D 02 02 05 99 D9 13 1C 51 [13:06:34]Write to MH i2c: E2 0D 00 71 02 80 0D 02 02 05 00 99 D9 13 1C 51 00 00 E9 [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [13:06:34]RAPDU: 90 00 [13:06:34]wFMCommunicate OK [13:06:34]wFMCommunicate request_size=4 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 0D 03 02 [13:06:34]Write to MH i2c: E2 08 00 72 02 80 0D 03 02 00 00 00 00 EF [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 0B 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 0B 00 72 02 00 4D AD BD 41 CC 5E 37 86 90 00 CF [13:06:34]RAPDU: 4D AD BD 41 CC 5E 37 86 90 00 [13:06:34]wFMCommunicate OK [13:06:34]SAM_PROTO_SignData done [13:06:34]FM_MakeSignedData done [13:06:34]CreateOFDProtocolMessage [13:06:34]wFMCommunicate request_size=4 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 11 00 00 [13:06:34]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 17 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 46 [13:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:06:34]wFMCommunicate OK [13:06:34]CreateOFDProtocolMessage done [13:06:34]OFDSenderStorePacket 118089 [13:06:34]StoreOFDPacket docnum=118089 [13:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 17 04 07 01 B1 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 59 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CD 01 00 35 04 06 00 A1 99 D9 13 1C 51 4D AD BD 41 CC 5E 37 86 [13:06:34]CheckFolder [13:06:34]dirname=/storage/ofd_packets [13:06:34]CheckFolder done [13:06:34]ProducePacketName [13:06:34]name=ofd_packets/00118089 [13:06:34]NVStorageSaveData ofd_packets/00118089 [13:06:34]File name is /storage/ofd_packets/00118089 [13:06:34]Write 301 bytes [13:06:34]NVStorageSaveData done [13:06:34]OFDSenderStorePacket done [13:06:34]KKMCreateOFDPacket done [13:06:34]NVStorageSaveData kkm_last_timestamp [13:06:34]File name is /storage/kkm_last_timestamp [13:06:34]Write 4 bytes [13:06:34]NVStorageSaveData done [13:06:34]ExternCall_PrintAddStr [13:06:34]wPrintStart [13:06:34]Write to MH i2c: 01 00 00 74 02 76 [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: 01 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: 01 07 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [13:06:34]RasterBufferAndPrint [13:06:34]line Счет N : (1)245886 [13:06:34]line ИНН: 02508201610067 [13:06:34]line Контрольно-Кассовый Чек [13:06:34]line ПРОДАЖА [13:06:34]line ТРК (МРК, ГНК) : 21 [13:06:34]line Товар: 2710124130 [13:06:34]line Аи-92-К-2 [13:06:34]line 2.400 * 66.90 [13:06:34]line = 160.56 [13:06:34]line НДС 12% НСП 1% [13:06:34]line > о реализуемом товаре [13:06:34]line ОКРУГЛЕНИЕ: -0.56 [13:06:34]line ИТОГО: 160.00 [13:06:34]line Внесено: 160.00 [13:06:34]line СДАЧА: 0.00 [13:06:34]line НСП 1% : 1.42 [13:06:34]line НДС 12% : 17.05 [13:06:34]line Наличными: 160.00 [13:06:34]line Безнал.: 0.00 [13:06:34]line Место: АЗС № 173 "Партнер Нефть" [13:06:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:06:34]line СНО: Общий режим [13:06:34]line Чек 149 30.10.2024 13:06 [13:06:34]line Смена: 545 ФФД: 1.0 [13:06:34]line ЗНМ: 0300000115 [13:06:34]line РНМ: 0000000000091782 [13:06:34]line Версия ККМ: 001 [13:06:34]line ФМ: 0000000000871767 [13:06:34]line ФД: 118089 [13:06:34]line ФПД: 177682143976529 [13:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130633&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118089&fm=177682143976529&tin=02508201610067®Number=0000000000091782&sum=16000 [13:06:34]written 0, free lines is 4095 [13:06:34]OFD Sender: Processing packet 118089 [packets to send 77, broken 76] [13:06:34]ProducePacketName [13:06:34]name=ofd_packets/00118089 [13:06:34]OFD Sender: To server: pG, [13:06:34]CommunicateWithHost lk.salyk.kg:30040 [13:06:34]ConnectInit lk.salyk.kg [13:06:34]Connected sock=11 [13:06: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 36 37 0F 01 00 00 17 04 07 01 B1 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 59 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 49 CD 01 00 35 04 06 00 A1 99 D9 13 1C 51 4D AD BD 41 CC 5E 37 86 [13:06: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 36 37 4F 00 00 00 9C 01 47 00 9F 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 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 36 37 10 04 04 00 49 CD 01 00 F4 03 04 00 11 DB 21 67 B6 04 01 00 00 1E EC 55 12 DE 2A 21 92 [13:06:35]CommunicateWithHost err = 0 [13:06:35]CheckOFDResponse [13:06:35]1017 (14) - 77093643461234 [13:06:35]1041 (16) - 0000000000871767 [13:06:35]1040 (4) - 118089 [13:06:35]1012 (4) - 30.10.2024 07:06 [13:06:35]1206 (1) - 0 [13:06:35]OFD Sender: Remove packet 118089 [13:06:35]ProducePacketName [13:06:35]name=ofd_packets/00118089 [13:06:35]NVStorageDeleteData [13:06:35]Write to MH i2c: 01 00 00 9E 02 A0 [13:06:35]Write i2c OK [13:06:35]MH_I2C_Read... [13:06:35]Read from MH i2c: 01 [13:06:35]MH_I2C_Read... [13:06:35]Read from MH i2c: 01 07 00 [13:06:35]MH_I2C_Read... [13:06:35]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 B6 0C 69 [13:06:35]RasterBufferAndPrint [13:06:35]line [13:06:35]line [13:06:35]line [13:06:35]line [13:06:35]line [13:06:35]written 0, free lines is 3258 [13:06:35]MH_Cut [13:06:35]Write to MH i2c: D1 01 00 A5 02 01 79 [13:06:35]Write i2c OK [13:06:35]MH_I2C_Read... [13:06:35]Read from MH i2c: D1 [13:06:35]MH_I2C_Read... [13:06:35]Read from MH i2c: D1 01 00 [13:06:35]MH_I2C_Read... [13:06:35]Read from MH i2c: D1 01 00 A5 02 00 78 [13:06:35]Write to MH i2c: 01 00 00 A6 02 A8 [13:06:35]Write i2c OK [13:06:35]MH_I2C_Read... [13:06:35]OFD Sender: No OFD packet to send [13:06:36]*** Cut start [13:06:36]*** Purtial cut [13:06:36]*** Stage 1: CUTSNS_PIN = 1 [13:06:36]Read from MH i2c: 01 [13:06:36]MH_I2C_Read... [13:06:36]*** Stop cut motor [13:06:36]Read from MH i2c: 01 07 00 [13:06:36]MH_I2C_Read... [13:06:36]*** Cut end [13:06:36]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 FF 0F BD [13:06:36]process_action close_receipt done [13:06:36]requested_data is exist [13:06:36]produce_requested_data [13:06:36]requested_item fm.sn is exist - process it [13:06:36]wFMCommunicate request_size=4 [13:06:36]MH_SAM_APDU [13:06:36]CAPDU: 80 11 00 00 [13:06:36]Write to MH i2c: E2 08 00 A7 02 80 11 00 00 00 00 00 00 23 [13:06:36]Write i2c OK [13:06:36]MH_I2C_Read... [13:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:36]Read from MH i2c: E2 [13:06:36]MH_I2C_Read... [13:06:36]Read from MH i2c: E2 17 00 [13:06:36]MH_I2C_Read... [13:06:36]Read from MH i2c: E2 17 00 A7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7A [13:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:06:36]wFMCommunicate OK [13:06:36]requested_item fd.num is exist - process it [13:06:36]SAM_PROTO_GetFieldsCounters [13:06:36]wFMCommunicate request_size=4 [13:06:36]MH_SAM_APDU [13:06:36]CAPDU: 80 13 00 00 [13:06:36]Write to MH i2c: E2 08 00 A8 02 80 13 00 00 00 00 00 00 26 [13:06:36]Write i2c OK [13:06:36]MH_I2C_Read... [13:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:36]Read from MH i2c: E2 [13:06:36]MH_I2C_Read... [13:06:36]Read from MH i2c: E2 62 00 [13:06:36]MH_I2C_Read... [13:06:36]Read from MH i2c: E2 62 00 A8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 49 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [13:06: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 49 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:36]wFMCommunicate OK [13:06:36]SAM_PROTO_GetFieldsCounters done [13:06:36]requested_item shift.num is exist - process it [13:06:36]requested_item shift.opened is exist - process it [13:06:36]req_shift_opened [13:06:36]FM_GetShiftState [13:06:36]SAM_PROTO_GetShiftState [13:06:36]wFMCommunicate request_size=4 [13:06:36]MH_SAM_APDU [13:06:36]CAPDU: 80 13 01 00 [13:06:36]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [13:06:36]Write i2c OK [13:06:36]MH_I2C_Read... [13:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:36]Read from MH i2c: E2 [13:06:36]MH_I2C_Read... [13:06:36]Read from MH i2c: E2 0E 00 [13:06:36]MH_I2C_Read... [13:06:36]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 00 [13:06:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:06:36]wFMCommunicate OK [13:06:36]SAM_PROTO_GetShiftState done [13:06:36]FM_GetShiftState done [13:06:36]req_shift_opened done [13:06:36]requested_item shift.open_date is exist - process it [13:06:36]req_shift_open_date [13:06:36]req_shift_open_date done [13:06:36]produce_requested_data done [13:06:36]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118089,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:06:36]process_action_free close_receipt [13:06:36]json_value_free [13:06:36]json_value_free done [13:06:36]process_json_proto returns [13:06:36]Send response to host [13:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118089,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:06:36]free response buf [13:06:36]execute_script done [13:06:36]execute_script returns [13:06:36]free content buf [13:06:36]Sock 9.Close socket [13:06:36]Sock 9.Thread stoped [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:51]accept exits with 7 [13:06:51]New connection [13:06:51]New thread 3066551652 created [13:06:51]Thread 3066695012 joined [13:06:51]Waiting for new connection... [13:06:51] Sock 7.Parse request [13:06:51]Sock 7.Check first char [13:06:51]Sock 7.First char is OK [13:06:51]request: POST /json_proto HTTP/1.0 [13:06:51]Method: POST [13:06:51]URL: /json_proto [13:06:51]Method is POST - this is cgi request [13:06:51]url: /json_proto [13:06:51]query_string will be loaded in cgi processing [13:06:51]execute_cgi json_proto POST (null) [13:06:51]execute_cgi path=json_proto method=POST [13:06:51]POST find Content-Length [13:06:51]Host: 172.17.96.67:8080 [13:06:51]Content-Length: 766 [13:06:51]Content-Type: application/json [13:06:51] [13:06:51]POST finish read [13:06:51]Found Content-Length = 766 [13:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:06:51]execute_script... [13: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)245885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:06:51]POST & json_proto [13:06:51]process_json_proto [13:06:51]json parsed OK: [13:06:51]protocol is kg_v1.0 [13:06:51]action value=close_receipt [13:06:51]process_action close_receipt [13:06:51]cmd_close_receipt [13:06:51]MH_GetDate [13:06:51]Write to MH i2c: F0 00 00 AA 02 9B [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: F0 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: F0 09 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: F0 09 00 AA 02 00 6C 2F 22 67 47 6C 1F 67 01 [13:06:51]GetLastDocTimeStamp 1730293593 [13:06:51]current date 1730293612 [13:06:51]FM_GetShiftState [13:06:51]SAM_PROTO_GetShiftState [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 13 01 00 [13:06:51]Write to MH i2c: E2 08 00 AB 02 80 13 01 00 00 00 00 00 2A [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 AB 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 02 [13:06:51]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_GetShiftState done [13:06:51]FM_GetShiftState done [13:06:51]opened in 1730246605 [13:06:51]opened+sec_in_day 1730333005 [13:06:51]quantity*price = 50041 [13:06:51]sum+1 = 50042 [13:06:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 150 30.10.2024 13:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118090 ФПД: 117813398163481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130652&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118090&fm=117813398163481&tin=02508201610067®Number=0000000000091782&sum=50041 [13:06:52]StoreToDocumentArchive [13:06:52]shift 545 fd 118090 [13:06:52]save to /storage/0545/doc_00118090 [13:06:52]save last doc name /storage/0545/doc_00118090 to /storage/kkm_last_doc_name [13:06:52]save OK [13:06:52]Clear old archive folders... [13:06:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:52]tlvbuf is 000F23F0 [13:06:52]SAM_PROTO_ClearQueue [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 09 00 00 [13:06:52]Write to MH i2c: E2 08 00 B8 02 80 09 00 00 00 00 00 00 2C [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [13:06:52]RAPDU: 90 00 [13:06:52]wFMCommunicate OK [13:06:52]SAM_PROTO_ClearQueue done [13:06:52]KKMCreateOFDPacket [13:06:52]OFDProtocolAddRootSTLVToBuf [13:06:52]FM_MakeSignedData [13:06:52]FM_MakeSignedData [13:06:52]SAM_PROTO_SignData [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 0D 01 02 [13:06:52]Write to MH i2c: E2 08 00 B9 02 80 0D 01 02 00 00 00 00 34 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [13:06:52]RAPDU: 90 00 [13:06:52]wFMCommunicate OK [13:06:52]wFMCommunicate request_size=255 [13:06:52]MH_SAM_APDU [13: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 32 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 96 00 00 00 F4 03 04 00 6C 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CD 01 00 35 04 06 00 6B [13:06:52]Write to MH i2c: E2 02 01 BA 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 96 00 00 00 F4 03 04 00 6C 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CD 01 00 35 04 06 00 6B 00 00 78 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [13:06:52]RAPDU: 90 00 [13:06:52]wFMCommunicate OK [13:06:52]wFMCommunicate request_size=10 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 0D 02 02 05 26 91 BF 50 19 [13:06:52]Write to MH i2c: E2 0D 00 BB 02 80 0D 02 02 05 00 26 91 BF 50 19 00 00 20 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [13:06:52]RAPDU: 90 00 [13:06:52]wFMCommunicate OK [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 0D 03 02 [13:06:52]Write to MH i2c: E2 08 00 BC 02 80 0D 03 02 00 00 00 00 39 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 0B 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 0B 00 BC 02 00 E5 1D 5F 79 65 EA E5 62 90 00 AA [13:06:52]RAPDU: E5 1D 5F 79 65 EA E5 62 90 00 [13:06:52]wFMCommunicate OK [13:06:52]SAM_PROTO_SignData done [13:06:52]FM_MakeSignedData done [13:06:52]CreateOFDProtocolMessage [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 11 00 00 [13:06:52]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:53]Read from MH i2c: E2 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 17 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 90 [13:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:06:53]wFMCommunicate OK [13:06:53]CreateOFDProtocolMessage done [13:06:53]OFDSenderStorePacket 118090 [13:06:53]StoreOFDPacket docnum=118090 [13:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 04 5F 07 01 AD 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 96 00 00 00 F4 03 04 00 6C 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CD 01 00 35 04 06 00 6B 26 91 BF 50 19 E5 1D 5F 79 65 EA E5 62 [13:06:53]CheckFolder [13:06:53]dirname=/storage/ofd_packets [13:06:53]CheckFolder done [13:06:53]ProducePacketName [13:06:53]name=ofd_packets/00118090 [13:06:53]NVStorageSaveData ofd_packets/00118090 [13:06:53]File name is /storage/ofd_packets/00118090 [13:06:53]Write 301 bytes [13:06:53]NVStorageSaveData done [13:06:53]OFDSenderStorePacket done [13:06:53]KKMCreateOFDPacket done [13:06:53]NVStorageSaveData kkm_last_timestamp [13:06:53]File name is /storage/kkm_last_timestamp [13:06:53]Write 4 bytes [13:06:53]NVStorageSaveData done [13:06:53]ExternCall_PrintAddStr [13:06:53]wPrintStart [13:06:53]Write to MH i2c: 01 00 00 BE 02 C0 [13:06:53]Write i2c OK [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: 01 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: 01 07 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FF 0F D5 [13:06:53]RasterBufferAndPrint [13:06:53]line Счет N : (1)245885 [13:06:53]line ИНН: 02508201610067 [13:06:53]line Контрольно-Кассовый Чек [13:06:53]line ПРОДАЖА [13:06:53]line ТРК (МРК, ГНК) : 11 [13:06:53]line Товар: 2710124130 [13:06:53]line Аи-92-К-2 [13:06:53]line 7.480 * 66.90 [13:06:53]line = 500.41 [13:06:53]line НДС 12% НСП 1% [13:06:53]line > о реализуемом товаре [13:06:53]line ИТОГО: 500.41 [13:06:53]line НСП 1% : 4.43 [13:06:53]line НДС 12% : 53.14 [13:06:53]line Наличными: 0.00 [13:06:53]line Безнал.: 500.41 [13:06:53]line Место: АЗС № 173 "Партнер Нефть" [13:06:53]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:06:53]line СНО: Общий режим [13:06:53]line Чек 150 30.10.2024 13:06 [13:06:53]line Смена: 545 ФФД: 1.0 [13:06:53]line ЗНМ: 0300000115 [13:06:53]line РНМ: 0000000000091782 [13:06:53]line Версия ККМ: 001 [13:06:53]line Платежная система: Mbank [13:06:53]line ФМ: 0000000000871767 [13:06:53]line ФД: 118090 [13:06:53]line ФПД: 117813398163481 [13:06:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130652&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118090&fm=117813398163481&tin=02508201610067®Number=0000000000091782&sum=50041 [13:06:53]written 0, free lines is 4095 [13:06:53]OFD Sender: Processing packet 118090 [packets to send 77, broken 76] [13:06:53]ProducePacketName [13:06:53]name=ofd_packets/00118090 [13:06:53]OFD Sender: To server: pG, [13:06:53]CommunicateWithHost lk.salyk.kg:30040 [13:06:53]ConnectInit lk.salyk.kg [13:06:53]Write to MH i2c: 01 00 00 E6 02 E8 [13:06:53]Write i2c OK [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: 01 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: 01 07 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 DA 0C D5 [13:06:53]RasterBufferAndPrint [13:06:53]line [13:06:53]line [13:06:53]line [13:06:53]line [13:06:53]line [13:06:53]written 0, free lines is 3295 [13:06:53]MH_Cut [13:06:53]Write to MH i2c: D1 01 00 ED 02 01 C1 [13:06:53]Connected sock=10 [13: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 36 37 0F 01 00 00 04 5F 07 01 AD 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 96 00 00 00 F4 03 04 00 6C 2F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CD 01 00 35 04 06 00 6B 26 91 BF 50 19 E5 1D 5F 79 65 EA E5 62 [13:06:53]Write i2c OK [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: D1 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: D1 01 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: D1 01 00 ED 02 00 C0 [13:06:53]Write to MH i2c: 01 00 00 EE 02 F0 [13:06:53]Write i2c OK [13:06:53]MH_I2C_Read... [13: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 36 37 4F 00 00 00 01 21 47 00 D8 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4A CD 01 00 F4 03 04 00 23 DB 21 67 B6 04 01 00 00 DC AF 82 7A F3 28 96 08 [13:06:53]CommunicateWithHost err = 0 [13:06:53]CheckOFDResponse [13:06:53]1017 (14) - 77093643461234 [13:06:53]1041 (16) - 0000000000871767 [13:06:53]1040 (4) - 118090 [13:06:53]1012 (4) - 30.10.2024 07:07 [13:06:53]1206 (1) - 0 [13:06:53]OFD Sender: Remove packet 118090 [13:06:53]ProducePacketName [13:06:53]name=ofd_packets/00118090 [13:06:53]NVStorageDeleteData [13:06:54]OFD Sender: No OFD packet to send [13:06:54]*** Cut start [13:06:54]*** Purtial cut [13:06:54]*** Stage 1: CUTSNS_PIN = 1 [13:06:54]Read from MH i2c: 01 [13:06:54]MH_I2C_Read... [13:06:54]*** Stop cut motor [13:06:54]*** Cut end [13:06:54]Read from MH i2c: 01 07 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: 01 07 00 EE 02 00 00 00 00 00 FF 0F 05 [13:06:54]process_action close_receipt done [13:06:54]requested_data is exist [13:06:54]produce_requested_data [13:06:54]requested_item fm.sn is exist - process it [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 11 00 00 [13:06:54]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 17 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C2 [13:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:06:54]wFMCommunicate OK [13:06:54]requested_item fd.num is exist - process it [13:06:54]SAM_PROTO_GetFieldsCounters [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 13 00 00 [13:06:54]Write to MH i2c: E2 08 00 F0 02 80 13 00 00 00 00 00 00 6E [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 62 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 62 00 F0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:54]wFMCommunicate OK [13:06:54]SAM_PROTO_GetFieldsCounters done [13:06:54]requested_item shift.num is exist - process it [13:06:54]requested_item shift.opened is exist - process it [13:06:54]req_shift_opened [13:06:54]FM_GetShiftState [13:06:54]SAM_PROTO_GetShiftState [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 13 01 00 [13:06:54]Write to MH i2c: E2 08 00 F1 02 80 13 01 00 00 00 00 00 70 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 F1 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 48 [13:06:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:06:54]wFMCommunicate OK [13:06:54]SAM_PROTO_GetShiftState done [13:06:54]FM_GetShiftState done [13:06:54]req_shift_opened done [13:06:54]requested_item shift.open_date is exist - process it [13:06:54]req_shift_open_date [13:06:54]req_shift_open_date done [13:06:54]produce_requested_data done [13:06:54]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118090,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:06:54]process_action_free close_receipt [13:06:54]json_value_free [13:06:54]json_value_free done [13:06:54]process_json_proto returns [13:06:54]Send response to host [13:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118090,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:06:54]free response buf [13:06:54]execute_script done [13:06:54]execute_script returns [13:06:54]free content buf [13:06:54]Sock 7.Close socket [13:06:54]Sock 7.Thread stoped [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:27]accept exits with 9 [13:09:27]New connection [13:09:27]New thread 3066695012 created [13:09:27]Thread 3066551652 joined [13:09:27]Waiting for new connection... [13:09:27] Sock 9.Parse request [13:09:27]Sock 9.Check first char [13:09:27]Sock 9.First char is OK [13:09:27]request: POST /json_proto HTTP/1.0 [13:09:27]Method: POST [13:09:27]URL: /json_proto [13:09:27]Method is POST - this is cgi request [13:09:27]url: /json_proto [13:09:27]query_string will be loaded in cgi processing [13:09:27]execute_cgi json_proto POST (null) [13:09:27]execute_cgi path=json_proto method=POST [13:09:27]POST find Content-Length [13:09:27]Host: 172.17.96.67:8080 [13:09:27]Content-Length: 679 [13:09:27]Content-Type: application/json [13:09:27] [13:09:27]POST finish read [13:09:27]Found Content-Length = 679 [13:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:09:27]execute_script... [13:09:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:09:27]POST & json_proto [13:09:27]process_json_proto [13:09:27]json parsed OK: [13:09:27]protocol is kg_v1.0 [13:09:27]action value=close_receipt [13:09:27]process_action close_receipt [13:09:27]cmd_close_receipt [13:09:27]MH_GetDate [13:09:27]Write to MH i2c: F0 00 00 F2 02 E3 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: F0 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: F0 09 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: F0 09 00 F2 02 00 08 30 22 67 47 6C 1F 67 E6 [13:09:27]GetLastDocTimeStamp 1730293612 [13:09:27]current date 1730293768 [13:09:27]FM_GetShiftState [13:09:27]SAM_PROTO_GetShiftState [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 13 01 00 [13:09:27]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0E 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4A [13:09:27]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:09:27]wFMCommunicate OK [13:09:27]SAM_PROTO_GetShiftState done [13:09:27]FM_GetShiftState done [13:09:27]opened in 1730246605 [13:09:27]opened+sec_in_day 1730333005 [13:09:27]quantity*price = 200025 [13:09:27]sum+1 = 200026 [13:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 151 30.10.2024 13:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118091 ФПД: 68309472605687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130928&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118091&fm=68309472605687&tin=02508201610067®Number=0000000000091782&sum=200000 [13:09:28]StoreToDocumentArchive [13:09:28]shift 545 fd 118091 [13:09:28]save to /storage/0545/doc_00118091 [13:09:28]save last doc name /storage/0545/doc_00118091 to /storage/kkm_last_doc_name [13:09:28]save OK [13:09:28]Clear old archive folders... [13:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:09:28]tlvbuf is 000F62F0 [13:09:28]SAM_PROTO_ClearQueue [13:09:28]wFMCommunicate request_size=4 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 09 00 00 [13:09:28]Write to MH i2c: E2 08 00 00 03 80 09 00 00 00 00 00 00 75 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [13:09:28]RAPDU: 90 00 [13:09:28]wFMCommunicate OK [13:09:28]SAM_PROTO_ClearQueue done [13:09:28]KKMCreateOFDPacket [13:09:28]OFDProtocolAddRootSTLVToBuf [13:09:28]FM_MakeSignedData [13:09:28]FM_MakeSignedData [13:09:28]SAM_PROTO_SignData [13:09:28]wFMCommunicate request_size=4 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 0D 01 02 [13:09:28]Write to MH i2c: E2 08 00 01 03 80 0D 01 02 00 00 00 00 7D [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [13:09:28]RAPDU: 90 00 [13:09:28]wFMCommunicate OK [13:09:28]wFMCommunicate request_size=255 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 97 00 00 00 F4 03 04 00 08 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CD 01 00 35 04 06 00 3E 20 89 D9 [13:09:28]Write to MH i2c: E2 02 01 02 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 97 00 00 00 F4 03 04 00 08 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CD 01 00 35 04 06 00 3E 20 89 D9 00 00 47 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [13:09:28]RAPDU: 90 00 [13:09:28]wFMCommunicate OK [13:09:28]wFMCommunicate request_size=7 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 0D 02 02 02 75 F7 [13:09:28]Write to MH i2c: E2 0A 00 03 03 80 0D 02 02 02 00 75 F7 00 00 F0 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [13:09:28]RAPDU: 90 00 [13:09:28]wFMCommunicate OK [13:09:28]wFMCommunicate request_size=4 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 0D 03 02 [13:09:28]Write to MH i2c: E2 08 00 04 03 80 0D 03 02 00 00 00 00 82 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 0B 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 0B 00 04 03 00 4B 8B EE FF EF 7E 8E FE 90 00 3F [13:09:28]RAPDU: 4B 8B EE FF EF 7E 8E FE 90 00 [13:09:28]wFMCommunicate OK [13:09:28]SAM_PROTO_SignData done [13:09:28]FM_MakeSignedData done [13:09:28]CreateOFDProtocolMessage [13:09:28]wFMCommunicate request_size=4 [13:09:28]MH_SAM_APDU [13:09:28]CAPDU: 80 11 00 00 [13:09:28]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 17 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D9 [13:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:09:29]wFMCommunicate OK [13:09:29]CreateOFDProtocolMessage done [13:09:29]OFDSenderStorePacket 118091 [13:09:29]StoreOFDPacket docnum=118091 [13:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 F4 7E 04 01 3E 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 32 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 97 00 00 00 F4 03 04 00 08 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CD 01 00 35 04 06 00 3E 20 89 D9 75 F7 4B 8B EE FF EF 7E 8E FE [13:09:29]CheckFolder [13:09:29]dirname=/storage/ofd_packets [13:09:29]CheckFolder done [13:09:29]ProducePacketName [13:09:29]name=ofd_packets/00118091 [13:09:29]NVStorageSaveData ofd_packets/00118091 [13:09:29]File name is /storage/ofd_packets/00118091 [13:09:29]Write 298 bytes [13:09:29]NVStorageSaveData done [13:09:29]OFDSenderStorePacket done [13:09:29]KKMCreateOFDPacket done [13:09:29]NVStorageSaveData kkm_last_timestamp [13:09:29]File name is /storage/kkm_last_timestamp [13:09:29]Write 4 bytes [13:09:29]NVStorageSaveData done [13:09:29]ExternCall_PrintAddStr [13:09:29]wPrintStart [13:09:29]Write to MH i2c: 01 00 00 06 03 09 [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 07 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [13:09:29]RasterBufferAndPrint [13:09:29]line Счет N : (1)245887 [13:09:29]line ИНН: 02508201610067 [13:09:29]line Контрольно-Кассовый Чек [13:09:29]line ПРОДАЖА [13:09:29]line ТРК (МРК, ГНК) : 13 [13:09:29]line Товар: 2710194210 [13:09:29]line ДТ-К-2 [13:09:29]line 26.250 * 76.20 [13:09:29]line = 2000.25 [13:09:29]line НДС 12% НСП 1% [13:09:29]line > о реализуемом товаре [13:09:29]line ОКРУГЛЕНИЕ: -0.25 [13:09:29]line ИТОГО: 2000.00 [13:09:29]line Внесено: 2000.00 [13:09:29]line СДАЧА: 0.00 [13:09:29]line НСП 1% : 17.70 [13:09:29]line НДС 12% : 212.42 [13:09:29]line Наличными: 2000.00 [13:09:29]line Безнал.: 0.00 [13:09:29]line Место: АЗС № 173 "Партнер Нефть" [13:09:29]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:09:29]line СНО: Общий режим [13:09:29]line Чек 151 30.10.2024 13:09 [13:09:29]line Смена: 545 ФФД: 1.0 [13:09:29]line ЗНМ: 0300000115 [13:09:29]line РНМ: 0000000000091782 [13:09:29]line Версия ККМ: 001 [13:09:29]line ФМ: 0000000000871767 [13:09:29]line ФД: 118091 [13:09:29]line ФПД: 68309472605687 [13:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130928&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118091&fm=68309472605687&tin=02508201610067®Number=0000000000091782&sum=200000 [13:09:29]written 0, free lines is 4095 [13:09:29]OFD Sender: Processing packet 118091 [packets to send 77, broken 76] [13:09:29]ProducePacketName [13:09:29]name=ofd_packets/00118091 [13:09:29]OFD Sender: To server: pG, [13:09:29]CommunicateWithHost lk.salyk.kg:30040 [13:09:29]ConnectInit lk.salyk.kg [13:09:29]Write to MH i2c: 01 00 00 30 03 33 [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 07 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 B6 0C FC [13:09:29]RasterBufferAndPrint [13:09:29]line [13:09:29]line [13:09:29]line [13:09:29]line [13:09:29]line [13:09:29]written 0, free lines is 3258 [13:09:29]MH_Cut [13:09:29]Write to MH i2c: D1 01 00 37 03 01 0C [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: D1 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: D1 01 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: D1 01 00 37 03 00 0B [13:09:29]Write to MH i2c: 01 00 00 38 03 3B [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:30]*** Cut start [13:09:30]*** Purtial cut [13:09:30]*** Stage 1: CUTSNS_PIN = 1 [13:09:30]Read from MH i2c: 01 [13:09:30]MH_I2C_Read... [13:09:30]*** Stop cut motor [13:09:30]*** Cut end [13:09:30]Read from MH i2c: 01 07 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 FF 0F 50 [13:09:30]process_action close_receipt done [13:09:30]requested_data is exist [13:09:30]produce_requested_data [13:09:30]requested_item fm.sn is exist - process it [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 11 00 00 [13:09:30]Write to MH i2c: E2 08 00 39 03 80 11 00 00 00 00 00 00 B6 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 17 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 17 00 39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0D [13:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:09:30]wFMCommunicate OK [13:09:30]requested_item fd.num is exist - process it [13:09:30]SAM_PROTO_GetFieldsCounters [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 13 00 00 [13:09:30]Write to MH i2c: E2 08 00 3A 03 80 13 00 00 00 00 00 00 B9 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 62 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 62 00 3A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [13:09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_GetFieldsCounters done [13:09:30]requested_item shift.num is exist - process it [13:09:30]requested_item shift.opened is exist - process it [13:09:30]req_shift_opened [13:09:30]FM_GetShiftState [13:09:30]SAM_PROTO_GetShiftState [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 13 01 00 [13:09:30]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0E 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 93 [13:09:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_GetShiftState done [13:09:30]FM_GetShiftState done [13:09:30]req_shift_opened done [13:09:30]requested_item shift.open_date is exist - process it [13:09:30]req_shift_open_date [13:09:30]req_shift_open_date done [13:09:30]produce_requested_data done [13:09:30]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118091,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:09:30]process_action_free close_receipt [13:09:30]json_value_free [13:09:30]json_value_free done [13:09:30]process_json_proto returns [13:09:30]Send response to host [13:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118091,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:09:30]free response buf [13:09:30]execute_script done [13:09:30]execute_script returns [13:09:30]free content buf [13:09:30]Sock 9.Close socket [13:09:30]Sock 9.Thread stoped [13:11:05]accept exits with 7 [13:11:05]New connection [13:11:05]New thread 3066551652 created [13:11:05]Thread 3066695012 joined [13:11:05]Waiting for new connection... [13:11:05] Sock 7.Parse request [13:11:05]Sock 7.Check first char [13:11:05]Sock 7.First char is OK [13:11:05]request: POST /json_proto HTTP/1.0 [13:11:05]Method: POST [13:11:05]URL: /json_proto [13:11:05]Method is POST - this is cgi request [13:11:05]url: /json_proto [13:11:05]query_string will be loaded in cgi processing [13:11:05]execute_cgi json_proto POST (null) [13:11:05]execute_cgi path=json_proto method=POST [13:11:05]POST find Content-Length [13:11:05]Host: 172.17.96.67:8080 [13:11:05]Content-Length: 677 [13:11:05]Content-Type: application/json [13:11:05] [13:11:05]POST finish read [13:11:05]Found Content-Length = 677 [13:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:11:05]execute_script... [13:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:11:05]POST & json_proto [13:11:05]process_json_proto [13:11:05]json parsed OK: [13:11:05]protocol is kg_v1.0 [13:11:05]action value=close_receipt [13:11:05]process_action close_receipt [13:11:05]cmd_close_receipt [13:11:05]MH_GetDate [13:11:05]Write to MH i2c: F0 00 00 3C 03 2E [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 09 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 09 00 3C 03 00 6A 30 22 67 47 6C 1F 67 93 [13:11:05]GetLastDocTimeStamp 1730293768 [13:11:05]current date 1730293866 [13:11:05]FM_GetShiftState [13:11:05]SAM_PROTO_GetShiftState [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 13 01 00 [13:11:05]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 95 [13:11:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:11:05]wFMCommunicate OK [13:11:05]SAM_PROTO_GetShiftState done [13:11:05]FM_GetShiftState done [13:11:05]opened in 1730246605 [13:11:05]opened+sec_in_day 1730333005 [13:11:05]quantity*price = 50041 [13:11:05]sum+1 = 50042 [13:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 152 30.10.2024 13:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118092 ФПД: 211047722340585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T131106&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118092&fm=211047722340585&tin=02508201610067®Number=0000000000091782&sum=50000 [13:11:06]StoreToDocumentArchive [13:11:06]shift 545 fd 118092 [13:11:06]save to /storage/0545/doc_00118092 [13:11:06]save last doc name /storage/0545/doc_00118092 to /storage/kkm_last_doc_name [13:11:06]save OK [13:11:06]Clear old archive folders... [13:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:06]tlvbuf is 000F7EF0 [13:11:06]SAM_PROTO_ClearQueue [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 09 00 00 [13:11:06]Write to MH i2c: E2 08 00 4A 03 80 09 00 00 00 00 00 00 BF [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_ClearQueue done [13:11:06]KKMCreateOFDPacket [13:11:06]OFDProtocolAddRootSTLVToBuf [13:11:06]FM_MakeSignedData [13:11:06]FM_MakeSignedData [13:11:06]SAM_PROTO_SignData [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 01 02 [13:11:06]Write to MH i2c: E2 08 00 4B 03 80 0D 01 02 00 00 00 00 C7 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]wFMCommunicate request_size=255 [13:11:06]MH_SAM_APDU [13:11: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 32 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 98 00 00 00 F4 03 04 00 6A 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CD 01 00 35 04 06 00 BF [13:11:06]Write to MH i2c: E2 02 01 4C 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 98 00 00 00 F4 03 04 00 6A 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CD 01 00 35 04 06 00 BF 00 00 10 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]wFMCommunicate request_size=10 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 0D 02 02 05 F2 60 85 50 E9 [13:11:07]Write to MH i2c: E2 0D 00 4D 03 80 0D 02 02 05 00 F2 60 85 50 E9 00 00 E4 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 0D 03 02 [13:11:07]Write to MH i2c: E2 08 00 4E 03 80 0D 03 02 00 00 00 00 CC [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 0B 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 0B 00 4E 03 00 45 86 CB 6D 45 FA D0 DA 90 00 B9 [13:11:07]RAPDU: 45 86 CB 6D 45 FA D0 DA 90 00 [13:11:07]wFMCommunicate OK [13:11:07]SAM_PROTO_SignData done [13:11:07]FM_MakeSignedData done [13:11:07]CreateOFDProtocolMessage [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 11 00 00 [13:11:07]Write to MH i2c: E2 08 00 4F 03 80 11 00 00 00 00 00 00 CC [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 17 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 17 00 4F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 23 [13:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:11:07]wFMCommunicate OK [13:11:07]CreateOFDProtocolMessage done [13:11:07]OFDSenderStorePacket 118092 [13:11:07]StoreOFDPacket docnum=118092 [13:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FE C9 07 01 0B 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 98 00 00 00 F4 03 04 00 6A 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CD 01 00 35 04 06 00 BF F2 60 85 50 E9 45 86 CB 6D 45 FA D0 DA [13:11:07]CheckFolder [13:11:07]dirname=/storage/ofd_packets [13:11:07]CheckFolder done [13:11:07]ProducePacketName [13:11:07]name=ofd_packets/00118092 [13:11:07]NVStorageSaveData ofd_packets/00118092 [13:11:07]File name is /storage/ofd_packets/00118092 [13:11:07]Write 301 bytes [13:11:07]NVStorageSaveData done [13:11:07]OFDSenderStorePacket done [13:11:07]KKMCreateOFDPacket done [13:11:07]NVStorageSaveData kkm_last_timestamp [13:11:07]File name is /storage/kkm_last_timestamp [13:11:07]Write 4 bytes [13:11:07]NVStorageSaveData done [13:11:07]ExternCall_PrintAddStr [13:11:07]wPrintStart [13:11:07]Write to MH i2c: 01 00 00 50 03 53 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [13:11:07]RasterBufferAndPrint [13:11:07]line Счет N : (1)245888 [13:11:07]line ИНН: 02508201610067 [13:11:07]line Контрольно-Кассовый Чек [13:11:07]line ПРОДАЖА [13:11:07]line ТРК (МРК, ГНК) : 11 [13:11:07]line Товар: 2710124130 [13:11:07]line Аи-92-К-2 [13:11:07]line 7.480 * 66.90 [13:11:07]line = 500.41 [13:11:07]line НДС 12% НСП 1% [13:11:07]line > о реализуемом товаре [13:11:07]line ОКРУГЛЕНИЕ: -0.41 [13:11:07]line ИТОГО: 500.00 [13:11:07]line Внесено: 500.00 [13:11:07]line СДАЧА: 0.00 [13:11:07]line НСП 1% : 4.43 [13:11:07]line НДС 12% : 53.14 [13:11:07]line Наличными: 500.00 [13:11:07]line Безнал.: 0.00 [13:11:07]line Место: АЗС № 173 "Партнер Нефть" [13:11:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:11:07]line СНО: Общий режим [13:11:07]line Чек 152 30.10.2024 13:11 [13:11:07]line Смена: 545 ФФД: 1.0 [13:11:07]line ЗНМ: 0300000115 [13:11:07]line РНМ: 0000000000091782 [13:11:07]line Версия ККМ: 001 [13:11:07]line ФМ: 0000000000871767 [13:11:07]line ФД: 118092 [13:11:07]line ФПД: 211047722340585 [13:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T131106&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118092&fm=211047722340585&tin=02508201610067®Number=0000000000091782&sum=50000 [13:11:07]written 0, free lines is 4095 [13:11:08]Write to MH i2c: 01 00 00 7A 03 7D [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 AF 0C 3F [13:11:08]RasterBufferAndPrint [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]written 0, free lines is 3253 [13:11:08]MH_Cut [13:11:08]Write to MH i2c: D1 01 00 81 03 01 56 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 01 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 01 00 81 03 00 55 [13:11:08]Write to MH i2c: 01 00 00 82 03 85 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** Cut start [13:11:08]*** Purtial cut [13:11:08]*** Stage 1: CUTSNS_PIN = 1 [13:11:09]Read from MH i2c: 01 [13:11:09]MH_I2C_Read... [13:11:09]*** Stop cut motor [13:11:09]*** Cut end [13:11:09]Read from MH i2c: 01 07 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 FF 0F 9A [13:11:09]process_action close_receipt done [13:11:09]requested_data is exist [13:11:09]produce_requested_data [13:11:09]requested_item fm.sn is exist - process it [13:11:09]wFMCommunicate request_size=4 [13:11:09]MH_SAM_APDU [13:11:09]CAPDU: 80 11 00 00 [13:11:09]Write to MH i2c: E2 08 00 83 03 80 11 00 00 00 00 00 00 00 [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:09]Read from MH i2c: E2 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 17 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 17 00 83 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 57 [13:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:11:09]wFMCommunicate OK [13:11:09]requested_item fd.num is exist - process it [13:11:09]SAM_PROTO_GetFieldsCounters [13:11:09]wFMCommunicate request_size=4 [13:11:09]MH_SAM_APDU [13:11:09]CAPDU: 80 13 00 00 [13:11:09]Write to MH i2c: E2 08 00 84 03 80 13 00 00 00 00 00 00 03 [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:09]Read from MH i2c: E2 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 62 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 62 00 84 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [13:11: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:09]wFMCommunicate OK [13:11:09]SAM_PROTO_GetFieldsCounters done [13:11:09]requested_item shift.num is exist - process it [13:11:09]requested_item shift.opened is exist - process it [13:11:09]req_shift_opened [13:11:09]FM_GetShiftState [13:11:09]SAM_PROTO_GetShiftState [13:11:09]wFMCommunicate request_size=4 [13:11:09]MH_SAM_APDU [13:11:09]CAPDU: 80 13 01 00 [13:11:09]Write to MH i2c: E2 08 00 85 03 80 13 01 00 00 00 00 00 05 [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:09]Read from MH i2c: E2 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 0E 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 0E 00 85 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DD [13:11:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:11:09]wFMCommunicate OK [13:11:09]SAM_PROTO_GetShiftState done [13:11:09]FM_GetShiftState done [13:11:09]req_shift_opened done [13:11:09]requested_item shift.open_date is exist - process it [13:11:09]req_shift_open_date [13:11:09]req_shift_open_date done [13:11:09]produce_requested_data done [13:11:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118092,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:11:09]process_action_free close_receipt [13:11:09]json_value_free [13:11:09]json_value_free done [13:11:09]process_json_proto returns [13:11:09]Send response to host [13:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118092,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:11:09]free response buf [13:11:09]execute_script done [13:11:09]execute_script returns [13:11:09]free content buf [13:11:09]Sock 7.Close socket [13:11:09]Sock 7.Thread stoped [13:11:39]ConnectInit Can't connect to host [13:11:39]CommunicateWithHost connect error [13:11:39]CommunicateWithHost err = -1 [13:11:39]OFD Sender: Server communicate error [13:11:39]OFD Sender: Processing packet 118091 [packets to send 78, broken 76] [13:11:39]ProducePacketName [13:11:39]name=ofd_packets/00118091 [13:11:39]OFD Sender: To server: pG, [13:11:39]CommunicateWithHost lk.salyk.kg:30040 [13:11:39]ConnectInit lk.salyk.kg [13:11:40]Connected sock=7 [13:11: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 36 37 0C 01 00 00 F4 7E 04 01 3E 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 32 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 97 00 00 00 F4 03 04 00 08 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4B CD 01 00 35 04 06 00 3E 20 89 D9 75 F7 4B 8B EE FF EF 7E 8E FE [13:11: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 36 37 4F 00 00 00 05 6E 47 00 0B 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 36 37 10 04 04 00 4B CD 01 00 F4 03 04 00 42 DC 21 67 B6 04 01 00 00 AA 35 E2 AC B5 FC F3 2C [13:11:40]CommunicateWithHost err = 0 [13:11:40]CheckOFDResponse [13:11:40]1017 (14) - 77093643461234 [13:11:40]1041 (16) - 0000000000871767 [13:11:40]1040 (4) - 118091 [13:11:40]1012 (4) - 30.10.2024 07:12 [13:11:40]1206 (1) - 0 [13:11:40]OFD Sender: Remove packet 118091 [13:11:40]ProducePacketName [13:11:40]name=ofd_packets/00118091 [13:11:40]NVStorageDeleteData [13:11:40]OFD Sender: Processing packet 118092 [packets to send 77, broken 76] [13:11:40]ProducePacketName [13:11:40]name=ofd_packets/00118092 [13:11:40]OFD Sender: To server: pG, [13:11:40]CommunicateWithHost lk.salyk.kg:30040 [13:11:40]ConnectInit lk.salyk.kg [13:13:53]ConnectInit Can't connect to host [13:13:53]CommunicateWithHost connect error [13:13:53]CommunicateWithHost err = -1 [13:13:53]OFD Sender: Server communicate error [13:13:58]OFD Sender: Processing packet 118092 [packets to send 77, broken 76] [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00118092 [13:13:58]OFD Sender: To server: pG, [13:13:58]CommunicateWithHost lk.salyk.kg:30040 [13:13:58]ConnectInit lk.salyk.kg [13:13:58]Connected sock=7 [13:13: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 36 37 0F 01 00 00 FE C9 07 01 0B 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 98 00 00 00 F4 03 04 00 6A 30 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4C CD 01 00 35 04 06 00 BF F2 60 85 50 E9 45 86 CB 6D 45 FA D0 DA [13:13: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 36 37 4F 00 00 00 5E FA 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 36 37 10 04 04 00 4C CD 01 00 F4 03 04 00 CC DC 21 67 B6 04 01 00 00 CD 38 5D F5 1D FE 40 65 [13:13:58]CommunicateWithHost err = 0 [13:13:58]CheckOFDResponse [13:13:58]1017 (14) - 77093643461234 [13:13:58]1041 (16) - 0000000000871767 [13:13:58]1040 (4) - 118092 [13:13:58]1012 (4) - 30.10.2024 07:14 [13:13:58]1206 (1) - 0 [13:13:58]OFD Sender: Remove packet 118092 [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00118092 [13:13:58]NVStorageDeleteData [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:12]accept exits with 9 [13:15:12]New connection [13:15:12]New thread 3066695012 created [13:15:12]Thread 3066551652 joined [13:15:12]Waiting for new connection... [13:15:12] Sock 9.Parse request [13:15:12]Sock 9.Check first char [13:15:12]Sock 9.First char is OK [13:15:12]request: POST /json_proto HTTP/1.0 [13:15:12]Method: POST [13:15:12]URL: /json_proto [13:15:12]Method is POST - this is cgi request [13:15:12]url: /json_proto [13:15:12]query_string will be loaded in cgi processing [13:15:12]execute_cgi json_proto POST (null) [13:15:12]execute_cgi path=json_proto method=POST [13:15:12]POST find Content-Length [13:15:12]Host: 172.17.96.67:8080 [13:15:12]Content-Length: 677 [13:15:12]Content-Type: application/json [13:15:12] [13:15:12]POST finish read [13:15:12]Found Content-Length = 677 [13:15:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:15:12]execute_script... [13:15: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)245889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:15:12]POST & json_proto [13:15:12]process_json_proto [13:15:12]json parsed OK: [13:15:12]protocol is kg_v1.0 [13:15:12]action value=close_receipt [13:15:12]process_action close_receipt [13:15:12]cmd_close_receipt [13:15:12]MH_GetDate [13:15:12]Write to MH i2c: F0 00 00 86 03 78 [13:15:12]Write i2c OK [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: F0 [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: F0 09 00 [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: F0 09 00 86 03 00 61 31 22 67 47 6C 1F 67 D5 [13:15:12]GetLastDocTimeStamp 1730293866 [13:15:12]current date 1730294113 [13:15:12]FM_GetShiftState [13:15:12]SAM_PROTO_GetShiftState [13:15:12]wFMCommunicate request_size=4 [13:15:12]MH_SAM_APDU [13:15:12]CAPDU: 80 13 01 00 [13:15:12]Write to MH i2c: E2 08 00 87 03 80 13 01 00 00 00 00 00 07 [13:15:12]Write i2c OK [13:15:12]MH_I2C_Read... [13:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:12]Read from MH i2c: E2 [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: E2 0E 00 [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: E2 0E 00 87 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DF [13:15:12]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:15:12]wFMCommunicate OK [13:15:12]SAM_PROTO_GetShiftState done [13:15:12]FM_GetShiftState done [13:15:12]opened in 1730246605 [13:15:12]opened+sec_in_day 1730333005 [13:15:12]quantity*price = 20003 [13:15:12]sum+1 = 20004 [13:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 153 30.10.2024 13:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118093 ФПД: 234609519057362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T131513&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118093&fm=234609519057362&tin=02508201610067®Number=0000000000091782&sum=20000 [13:15:13]StoreToDocumentArchive [13:15:13]shift 545 fd 118093 [13:15:13]save to /storage/0545/doc_00118093 [13:15:13]save last doc name /storage/0545/doc_00118093 to /storage/kkm_last_doc_name [13:15:13]save OK [13:15:13]Clear old archive folders... [13:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:13]tlvbuf is 000EC180 [13:15:13]SAM_PROTO_ClearQueue [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 09 00 00 [13:15:13]Write to MH i2c: E2 08 00 94 03 80 09 00 00 00 00 00 00 09 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [13:15:13]RAPDU: 90 00 [13:15:13]wFMCommunicate OK [13:15:13]SAM_PROTO_ClearQueue done [13:15:13]KKMCreateOFDPacket [13:15:13]OFDProtocolAddRootSTLVToBuf [13:15:13]FM_MakeSignedData [13:15:13]FM_MakeSignedData [13:15:13]SAM_PROTO_SignData [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 0D 01 02 [13:15:13]Write to MH i2c: E2 08 00 95 03 80 0D 01 02 00 00 00 00 11 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [13:15:13]RAPDU: 90 00 [13:15:13]wFMCommunicate OK [13:15:13]wFMCommunicate request_size=255 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 31 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CD 01 00 35 04 06 00 D5 [13:15:13]Write to MH i2c: E2 02 01 96 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 31 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CD 01 00 35 04 06 00 D5 00 00 2C [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [13:15:13]RAPDU: 90 00 [13:15:13]wFMCommunicate OK [13:15:13]wFMCommunicate request_size=10 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 0D 02 02 05 60 49 0B 59 D2 [13:15:13]Write to MH i2c: E2 0D 00 97 03 80 0D 02 02 05 00 60 49 0B 59 D2 00 00 FD [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [13:15:13]RAPDU: 90 00 [13:15:13]wFMCommunicate OK [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 0D 03 02 [13:15:13]Write to MH i2c: E2 08 00 98 03 80 0D 03 02 00 00 00 00 16 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]OFD Sender: No OFD packet to send [13:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0B 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0B 00 98 03 00 C9 DF 2A 50 DD 91 E5 28 90 00 B4 [13:15:13]RAPDU: C9 DF 2A 50 DD 91 E5 28 90 00 [13:15:13]wFMCommunicate OK [13:15:13]SAM_PROTO_SignData done [13:15:13]FM_MakeSignedData done [13:15:13]CreateOFDProtocolMessage [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 11 00 00 [13:15:13]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 17 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6D [13:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:15:14]wFMCommunicate OK [13:15:14]CreateOFDProtocolMessage done [13:15:14]OFDSenderStorePacket 118093 [13:15:14]StoreOFDPacket docnum=118093 [13:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FF 8C 07 01 F0 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 31 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CD 01 00 35 04 06 00 D5 60 49 0B 59 D2 C9 DF 2A 50 DD 91 E5 28 [13:15:14]CheckFolder [13:15:14]dirname=/storage/ofd_packets [13:15:14]CheckFolder done [13:15:14]ProducePacketName [13:15:14]name=ofd_packets/00118093 [13:15:14]NVStorageSaveData ofd_packets/00118093 [13:15:14]File name is /storage/ofd_packets/00118093 [13:15:14]Write 301 bytes [13:15:14]NVStorageSaveData done [13:15:14]OFDSenderStorePacket done [13:15:14]KKMCreateOFDPacket done [13:15:14]NVStorageSaveData kkm_last_timestamp [13:15:14]File name is /storage/kkm_last_timestamp [13:15:14]Write 4 bytes [13:15:14]NVStorageSaveData done [13:15:14]ExternCall_PrintAddStr [13:15:14]wPrintStart [13:15:14]Write to MH i2c: 01 00 00 9A 03 9D [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [13:15:14]RasterBufferAndPrint [13:15:14]line Счет N : (1)245889 [13:15:14]line ИНН: 02508201610067 [13:15:14]line Контрольно-Кассовый Чек [13:15:14]line ПРОДАЖА [13:15:14]line ТРК (МРК, ГНК) : 21 [13:15:14]line Товар: 2710124130 [13:15:14]line Аи-92-К-2 [13:15:14]line 2.990 * 66.90 [13:15:14]line = 200.03 [13:15:14]line НДС 12% НСП 1% [13:15:14]line > о реализуемом товаре [13:15:14]line ОКРУГЛЕНИЕ: -0.03 [13:15:14]line ИТОГО: 200.00 [13:15:14]OFD Sender: Processing packet 118093 [packets to send 77, broken 76] [13:15:14]ProducePacketName [13:15:14]name=ofd_packets/00118093 [13:15:14]OFD Sender: To server: pG, [13:15:14]CommunicateWithHost lk.salyk.kg:30040 [13:15:14]ConnectInit lk.salyk.kg [13:15:14]line Внесено: 200.00 [13:15:14]line СДАЧА: 0.00 [13:15:14]line НСП 1% : 1.77 [13:15:14]line НДС 12% : 21.24 [13:15:14]line Наличными: 200.00 [13:15:14]line Безнал.: 0.00 [13:15:14]line Место: АЗС № 173 "Партнер Нефть" [13:15:14]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:15:14]line СНО: Общий режим [13:15:14]line Чек 153 30.10.2024 13:15 [13:15:14]line Смена: 545 ФФД: 1.0 [13:15:14]line ЗНМ: 0300000115 [13:15:14]line РНМ: 0000000000091782 [13:15:14]line Версия ККМ: 001 [13:15:14]line ФМ: 0000000000871767 [13:15:14]line ФД: 118093 [13:15:14]line ФПД: 234609519057362 [13:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T131513&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118093&fm=234609519057362&tin=02508201610067®Number=0000000000091782&sum=20000 [13:15:14]Connected sock=10 [13:15: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 36 37 0F 01 00 00 FF 8C 07 01 F0 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 31 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CD 01 00 35 04 06 00 D5 60 49 0B 59 D2 C9 DF 2A 50 DD 91 E5 28 [13:15:14]written 0, free lines is 4095 [13:15: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 36 37 4F 00 00 00 94 8E 47 00 08 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4D CD 01 00 F4 03 04 00 18 DD 21 67 B6 04 01 00 00 B8 F6 5B 28 8E 5C D7 51 [13:15:14]CommunicateWithHost err = 0 [13:15:14]CheckOFDResponse [13:15:14]1017 (14) - 77093643461234 [13:15:14]1041 (16) - 0000000000871767 [13:15:14]1040 (4) - 118093 [13:15:14]1012 (4) - 30.10.2024 07:15 [13:15:14]1206 (1) - 0 [13:15:14]OFD Sender: Remove packet 118093 [13:15:14]ProducePacketName [13:15:14]name=ofd_packets/00118093 [13:15:14]NVStorageDeleteData [13:15:14]Write to MH i2c: 01 00 00 C4 03 C7 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 B6 0C 90 [13:15:14]RasterBufferAndPrint [13:15:14]line [13:15:14]line [13:15:14]line [13:15:14]line [13:15:14]line [13:15:14]written 0, free lines is 3260 [13:15:14]MH_Cut [13:15:14]Write to MH i2c: D1 01 00 CB 03 01 A0 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: D1 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: D1 01 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: D1 01 00 CB 03 00 9F [13:15:14]Write to MH i2c: 01 00 00 CC 03 CF [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:15]OFD Sender: No OFD packet to send [13:15:15]*** Cut start [13:15:15]*** Purtial cut [13:15:15]*** Stage 1: CUTSNS_PIN = 1 [13:15:15]Read from MH i2c: 01 [13:15:15]MH_I2C_Read... [13:15:15]*** Stop cut motor [13:15:15]*** Cut end [13:15:15]Read from MH i2c: 01 07 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 FF 0F E4 [13:15:15]process_action close_receipt done [13:15:15]requested_data is exist [13:15:15]produce_requested_data [13:15:15]requested_item fm.sn is exist - process it [13:15:15]wFMCommunicate request_size=4 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 11 00 00 [13:15:15]Write to MH i2c: E2 08 00 CD 03 80 11 00 00 00 00 00 00 4A [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 17 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 17 00 CD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A1 [13:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:15:16]wFMCommunicate OK [13:15:16]requested_item fd.num is exist - process it [13:15:16]SAM_PROTO_GetFieldsCounters [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 13 00 00 [13:15:16]Write to MH i2c: E2 08 00 CE 03 80 13 00 00 00 00 00 00 4D [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 62 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 62 00 CE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [13:15: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:16]wFMCommunicate OK [13:15:16]SAM_PROTO_GetFieldsCounters done [13:15:16]requested_item shift.num is exist - process it [13:15:16]requested_item shift.opened is exist - process it [13:15:16]req_shift_opened [13:15:16]FM_GetShiftState [13:15:16]SAM_PROTO_GetShiftState [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 13 01 00 [13:15:16]Write to MH i2c: E2 08 00 CF 03 80 13 01 00 00 00 00 00 4F [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 0E 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 0E 00 CF 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 27 [13:15:16]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:15:16]wFMCommunicate OK [13:15:16]SAM_PROTO_GetShiftState done [13:15:16]FM_GetShiftState done [13:15:16]req_shift_opened done [13:15:16]requested_item shift.open_date is exist - process it [13:15:16]req_shift_open_date [13:15:16]req_shift_open_date done [13:15:16]produce_requested_data done [13:15:16]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118093,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:15:16]process_action_free close_receipt [13:15:16]json_value_free [13:15:16]json_value_free done [13:15:16]process_json_proto returns [13:15:16]Send response to host [13:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118093,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:15:16]free response buf [13:15:16]execute_script done [13:15:16]execute_script returns [13:15:16]free content buf [13:15:16]Sock 9.Close socket [13:15:16]Sock 9.Thread stoped [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:28]accept exits with 7 [13:21:28]New connection [13:21:28]New thread 3066551652 created [13:21:28]Thread 3066695012 joined [13:21:28]Waiting for new connection... [13:21:28] Sock 7.Parse request [13:21:28]Sock 7.Check first char [13:21:28]Sock 7.First char is OK [13:21:28]request: POST /json_proto HTTP/1.0 [13:21:28]Method: POST [13:21:28]URL: /json_proto [13:21:28]Method is POST - this is cgi request [13:21:28]url: /json_proto [13:21:28]query_string will be loaded in cgi processing [13:21:28]execute_cgi json_proto POST (null) [13:21:28]execute_cgi path=json_proto method=POST [13:21:28]POST find Content-Length [13:21:28]Host: 172.17.96.67:8080 [13:21:28]Content-Length: 984 [13:21:28]Content-Type: application/json [13:21:28] [13:21:28]POST finish read [13:21:28]Found Content-Length = 984 [13:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:28]execute_script... [13:21: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)245890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:28]POST & json_proto [13:21:28]process_json_proto [13:21:28]json parsed OK: [13:21:28]protocol is kg_v1.0 [13:21:28]action value=close_receipt [13:21:28]process_action close_receipt [13:21:28]cmd_close_receipt [13:21:28]MH_GetDate [13:21:28]Write to MH i2c: F0 00 00 D0 03 C2 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 09 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 09 00 D0 03 00 D9 32 22 67 47 6C 1F 67 98 [13:21:28]GetLastDocTimeStamp 1730294113 [13:21:28]current date 1730294489 [13:21:28]FM_GetShiftState [13:21:28]SAM_PROTO_GetShiftState [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 13 01 00 [13:21:28]Write to MH i2c: E2 08 00 D1 03 80 13 01 00 00 00 00 00 51 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 D1 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 29 [13:21:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:21:28]wFMCommunicate OK [13:21:28]SAM_PROTO_GetShiftState done [13:21:28]FM_GetShiftState done [13:21:28]opened in 1730246605 [13:21:28]opened+sec_in_day 1730333005 [13:21:28]quantity*price = 150054 [13:21:28]sum+1 = 150055 [13:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 154 30.10.2024 13:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 22.77 сом ФМ: 0000000000871767 ФД: 118094 ФПД: 115324042899205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132129&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118094&fm=115324042899205&tin=02508201610067®Number=0000000000091782&sum=150000 [13:21:29]StoreToDocumentArchive [13:21:29]shift 545 fd 118094 [13:21:29]save to /storage/0545/doc_00118094 [13:21:29]save last doc name /storage/0545/doc_00118094 to /storage/kkm_last_doc_name [13:21:29]save OK [13:21:29]Clear old archive folders... [13:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:29]tlvbuf is 000F4AF0 [13:21:29]SAM_PROTO_ClearQueue [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 09 00 00 [13:21:29]Write to MH i2c: E2 08 00 DE 03 80 09 00 00 00 00 00 00 53 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]SAM_PROTO_ClearQueue done [13:21:29]KKMCreateOFDPacket [13:21:29]OFDProtocolAddRootSTLVToBuf [13:21:29]FM_MakeSignedData [13:21:29]FM_MakeSignedData [13:21:29]SAM_PROTO_SignData [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 0D 01 02 [13:21:29]Write to MH i2c: E2 08 00 DF 03 80 0D 01 02 00 00 00 00 5B [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]wFMCommunicate request_size=255 [13:21:29]MH_SAM_APDU [13:21: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 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 9A 00 00 00 F4 03 04 00 D9 32 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CD 01 00 35 04 06 00 68 [13:21:29]Write to MH i2c: E2 02 01 E0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 9A 00 00 00 F4 03 04 00 D9 32 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CD 01 00 35 04 06 00 68 00 00 F8 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]wFMCommunicate request_size=10 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 0D 02 02 05 E2 F8 9C 6F 05 [13:21:29]Write to MH i2c: E2 0D 00 E1 03 80 0D 02 02 05 00 E2 F8 9C 6F 05 00 00 52 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 0D 03 02 [13:21:29]Write to MH i2c: E2 08 00 E2 03 80 0D 03 02 00 00 00 00 60 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 0B 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 0B 00 E2 03 00 AB 0E 78 37 04 B6 B5 80 90 00 B8 [13:21:29]RAPDU: AB 0E 78 37 04 B6 B5 80 90 00 [13:21:29]wFMCommunicate OK [13:21:29]SAM_PROTO_SignData done [13:21:29]FM_MakeSignedData done [13:21:29]CreateOFDProtocolMessage [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 11 00 00 [13:21:29]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 17 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B7 [13:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:21:29]wFMCommunicate OK [13:21:29]CreateOFDProtocolMessage done [13:21:29]OFDSenderStorePacket 118094 [13:21:29]StoreOFDPacket docnum=118094 [13:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3B 6C 07 01 02 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 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 9A 00 00 00 F4 03 04 00 D9 32 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CD 01 00 35 04 06 00 68 E2 F8 9C 6F 05 AB 0E 78 37 04 B6 B5 80 [13:21:29]CheckFolder [13:21:29]dirname=/storage/ofd_packets [13:21:29]CheckFolder done [13:21:29]ProducePacketName [13:21:29]name=ofd_packets/00118094 [13:21:29]NVStorageSaveData ofd_packets/00118094 [13:21:29]File name is /storage/ofd_packets/00118094 [13:21:29]Write 301 bytes [13:21:29]NVStorageSaveData done [13:21:29]OFDSenderStorePacket done [13:21:29]KKMCreateOFDPacket done [13:21:29]NVStorageSaveData kkm_last_timestamp [13:21:29]File name is /storage/kkm_last_timestamp [13:21:29]Write 4 bytes [13:21:29]NVStorageSaveData done [13:21:29]ExternCall_PrintAddStr [13:21:29]wPrintStart [13:21:29]Write to MH i2c: 01 00 00 E4 03 E7 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 07 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [13:21:29]RasterBufferAndPrint [13:21:29]line Счет N : (1)245890 [13:21:29]line ИНН: 02508201610067 [13:21:29]line Контрольно-Кассовый Чек [13:21:29]line ПРОДАЖА [13:21:29]line ТРК (МРК, ГНК) : 11 [13:21:29]line Товар: 2710124130 [13:21:29]line Аи-92-К-2 [13:21:29]line 22.770 * 65.90 [13:21:29]line = 1500.54 [13:21:29]line НДС 12% НСП 1% [13:21:29]line > о реализуемом товаре [13:21:29]line ОКРУГЛЕНИЕ: -0.54 [13:21:29]line ИТОГО: 1500.00 [13:21:29]line Внесено: 1500.00 [13:21:29]line СДАЧА: 0.00 [13:21:29]line НСП 1% : 13.28 [13:21:29]line НДС 12% : 159.35 [13:21:29]line Наличными: 1500.00 [13:21:29]line Безнал.: 0.00 [13:21:29]line Место: АЗС № 173 "Партнер Нефть" [13:21:29]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:21:29]line СНО: Общий режим [13:21:29]line Чек 154 30.10.2024 13:21 [13:21:29]line Смена: 545 ФФД: 1.0 [13:21:29]line ЗНМ: 0300000115 [13:21:29]line РНМ: 0000000000091782 [13:21:29]line Версия ККМ: 001 [13:21:29]line [13:21:29]line Дисконтная программа [13:21:29]line АИ-92 [13:21:29]line номер 173 [13:21:29]line сэкономлено 22.77 сом [13:21:29]line ФМ: 0000000000871767 [13:21:29]line ФД: 118094 [13:21:29]line ФПД: 115324042899205 [13:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132129&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118094&fm=115324042899205&tin=02508201610067®Number=0000000000091782&sum=150000 [13:21:30]OFD Sender: Processing packet 118094 [packets to send 77, broken 76] [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00118094 [13:21:30]OFD Sender: To server: pG, [13:21:30]CommunicateWithHost lk.salyk.kg:30040 [13:21:30]ConnectInit lk.salyk.kg [13:21:30]written 0, free lines is 4095 [13:21:30]Connected sock=10 [13:21: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 36 37 0F 01 00 00 3B 6C 07 01 02 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 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 9A 00 00 00 F4 03 04 00 D9 32 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4E CD 01 00 35 04 06 00 68 E2 F8 9C 6F 05 AB 0E 78 37 04 B6 B5 80 [13:21: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 36 37 4F 00 00 00 C7 0F 47 00 3C 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 36 37 10 04 04 00 4E CD 01 00 F4 03 04 00 90 DE 21 67 B6 04 01 00 00 16 B8 90 9D 8F 59 FE BF [13:21:30]CommunicateWithHost err = 0 [13:21:30]CheckOFDResponse [13:21:30]1017 (14) - 77093643461234 [13:21:30]1041 (16) - 0000000000871767 [13:21:30]1040 (4) - 118094 [13:21:30]1012 (4) - 30.10.2024 07:21 [13:21:30]1206 (1) - 0 [13:21:30]OFD Sender: Remove packet 118094 [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00118094 [13:21:30]NVStorageDeleteData [13:21:30]Write to MH i2c: 01 00 00 13 04 17 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 07 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 68 0C 92 [13:21:30]RasterBufferAndPrint [13:21:30]line [13:21:30]line [13:21:30]line [13:21:30]line [13:21:30]line [13:21:30]written 0, free lines is 3182 [13:21:30]MH_Cut [13:21:30]Write to MH i2c: D1 01 00 1A 04 01 F0 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: D1 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: D1 01 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: D1 01 00 1A 04 00 EF [13:21:30]Write to MH i2c: 01 00 00 1B 04 1F [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:31]OFD Sender: No OFD packet to send [13:21:31]*** Cut start [13:21:31]*** Purtial cut [13:21:31]*** Stage 1: CUTSNS_PIN = 1 [13:21:31]Read from MH i2c: 01 [13:21:31]MH_I2C_Read... [13:21:31]*** Stop cut motor [13:21:31]*** Cut end [13:21:31]Read from MH i2c: 01 07 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [13:21:31]process_action close_receipt done [13:21:31]requested_data is exist [13:21:31]produce_requested_data [13:21:31]requested_item fm.sn is exist - process it [13:21:31]wFMCommunicate request_size=4 [13:21:31]MH_SAM_APDU [13:21:31]CAPDU: 80 11 00 00 [13:21:31]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:31]Read from MH i2c: E2 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 17 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F1 [13:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:21:31]wFMCommunicate OK [13:21:31]requested_item fd.num is exist - process it [13:21:31]SAM_PROTO_GetFieldsCounters [13:21:31]wFMCommunicate request_size=4 [13:21:31]MH_SAM_APDU [13:21:31]CAPDU: 80 13 00 00 [13:21:31]Write to MH i2c: E2 08 00 1D 04 80 13 00 00 00 00 00 00 9D [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 62 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 62 00 1D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [13:21: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_GetFieldsCounters done [13:21:32]requested_item shift.num is exist - process it [13:21:32]requested_item shift.opened is exist - process it [13:21:32]req_shift_opened [13:21:32]FM_GetShiftState [13:21:32]SAM_PROTO_GetShiftState [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 13 01 00 [13:21:32]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0E 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 77 [13:21:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_GetShiftState done [13:21:32]FM_GetShiftState done [13:21:32]req_shift_opened done [13:21:32]requested_item shift.open_date is exist - process it [13:21:32]req_shift_open_date [13:21:32]req_shift_open_date done [13:21:32]produce_requested_data done [13:21:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118094,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:21:32]process_action_free close_receipt [13:21:32]json_value_free [13:21:32]json_value_free done [13:21:32]process_json_proto returns [13:21:32]Send response to host [13:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118094,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:21:32]free response buf [13:21:32]execute_script done [13:21:32]execute_script returns [13:21:32]free content buf [13:21:32]Sock 7.Close socket [13:21:32]Sock 7.Thread stoped [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]accept exits with 9 [13:23:11]New connection [13:23:11]New thread 3066695012 created [13:23:11]Thread 3066551652 joined [13:23:11]Waiting for new connection... [13:23:11] Sock 9.Parse request [13:23:11]Sock 9.Check first char [13:23:11]Sock 9.First char is OK [13:23:11]request: POST /json_proto HTTP/1.0 [13:23:11]Method: POST [13:23:11]URL: /json_proto [13:23:11]Method is POST - this is cgi request [13:23:11]url: /json_proto [13:23:11]query_string will be loaded in cgi processing [13:23:11]execute_cgi json_proto POST (null) [13:23:11]execute_cgi path=json_proto method=POST [13:23:11]POST find Content-Length [13:23:11]Host: 172.17.96.67:8080 [13:23:11]Content-Length: 679 [13:23:11]Content-Type: application/json [13:23:11] [13:23:11]POST finish read [13:23:11]Found Content-Length = 679 [13:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:23:11]execute_script... [13: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)245891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:23:11]POST & json_proto [13:23:11]process_json_proto [13:23:11]json parsed OK: [13:23:11]protocol is kg_v1.0 [13:23:11]action value=close_receipt [13:23:11]process_action close_receipt [13:23:11]cmd_close_receipt [13:23:11]MH_GetDate [13:23:11]Write to MH i2c: F0 00 00 1F 04 12 [13:23:11]Write i2c OK [13:23:11]MH_I2C_Read... [13:23:11]Read from MH i2c: F0 [13:23:11]MH_I2C_Read... [13:23:11]Read from MH i2c: F0 09 00 [13:23:11]MH_I2C_Read... [13:23:11]Read from MH i2c: F0 09 00 1F 04 00 3F 33 22 67 47 6C 1F 67 4F [13:23:11]GetLastDocTimeStamp 1730294489 [13:23:11]current date 1730294591 [13:23:11]FM_GetShiftState [13:23:11]SAM_PROTO_GetShiftState [13:23:11]wFMCommunicate request_size=4 [13:23:11]MH_SAM_APDU [13:23:11]CAPDU: 80 13 01 00 [13:23:11]Write to MH i2c: E2 08 00 20 04 80 13 01 00 00 00 00 00 A1 [13:23:11]Write i2c OK [13:23:11]MH_I2C_Read... [13:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:11]Read from MH i2c: E2 [13:23:11]MH_I2C_Read... [13:23:11]Read from MH i2c: E2 0E 00 [13:23:11]MH_I2C_Read... [13:23:11]Read from MH i2c: E2 0E 00 20 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 79 [13:23:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:23:11]wFMCommunicate OK [13:23:11]SAM_PROTO_GetShiftState done [13:23:11]FM_GetShiftState done [13:23:11]opened in 1730246605 [13:23:11]opened+sec_in_day 1730333005 [13:23:11]quantity*price = 150037 [13:23:11]sum+1 = 150039 [13:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 155 30.10.2024 13:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118095 ФПД: 172763674598387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132311&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118095&fm=172763674598387&tin=02508201610067®Number=0000000000091782&sum=150000 [13:23:12]StoreToDocumentArchive [13:23:12]shift 545 fd 118095 [13:23:12]save to /storage/0545/doc_00118095 [13:23:12]save last doc name /storage/0545/doc_00118095 to /storage/kkm_last_doc_name [13:23:12]save OK [13:23:12]Clear old archive folders... [13:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:23:12]tlvbuf is 00106E10 [13:23:12]SAM_PROTO_ClearQueue [13:23:12]wFMCommunicate request_size=4 [13:23:12]MH_SAM_APDU [13:23:12]CAPDU: 80 09 00 00 [13:23:12]Write to MH i2c: E2 08 00 2D 04 80 09 00 00 00 00 00 00 A3 [13:23:12]Write i2c OK [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 [13:23:12]MH_I2C_Read... [13:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:12]Read from MH i2c: E2 03 00 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [13:23:12]RAPDU: 90 00 [13:23:12]wFMCommunicate OK [13:23:12]SAM_PROTO_ClearQueue done [13:23:12]KKMCreateOFDPacket [13:23:12]OFDProtocolAddRootSTLVToBuf [13:23:12]FM_MakeSignedData [13:23:12]FM_MakeSignedData [13:23:12]SAM_PROTO_SignData [13:23:12]wFMCommunicate request_size=4 [13:23:12]MH_SAM_APDU [13:23:12]CAPDU: 80 0D 01 02 [13:23:12]Write to MH i2c: E2 08 00 2E 04 80 0D 01 02 00 00 00 00 AB [13:23:12]Write i2c OK [13:23:12]MH_I2C_Read... [13:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:12]Read from MH i2c: E2 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 03 00 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [13:23:12]RAPDU: 90 00 [13:23:12]wFMCommunicate OK [13:23:12]wFMCommunicate request_size=255 [13:23:12]MH_SAM_APDU [13:23:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 9B 00 00 00 F4 03 04 00 3F 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CD 01 00 35 04 06 00 9D 20 AD 74 [13:23:12]Write to MH i2c: E2 02 01 2F 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 9B 00 00 00 F4 03 04 00 3F 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CD 01 00 35 04 06 00 9D 20 AD 74 00 00 5E [13:23:12]Write i2c OK [13:23:12]MH_I2C_Read... [13:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:12]Read from MH i2c: E2 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 03 00 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [13:23:12]RAPDU: 90 00 [13:23:12]wFMCommunicate OK [13:23:12]wFMCommunicate request_size=7 [13:23:12]MH_SAM_APDU [13:23:12]CAPDU: 80 0D 02 02 02 5B F3 [13:23:12]Write to MH i2c: E2 0A 00 30 04 80 0D 02 02 02 00 5B F3 00 00 00 [13:23:12]Write i2c OK [13:23:12]MH_I2C_Read... [13:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:12]Read from MH i2c: E2 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 03 00 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [13:23:12]RAPDU: 90 00 [13:23:12]wFMCommunicate OK [13:23:12]wFMCommunicate request_size=4 [13:23:12]MH_SAM_APDU [13:23:12]CAPDU: 80 0D 03 02 [13:23:12]Write to MH i2c: E2 08 00 31 04 80 0D 03 02 00 00 00 00 B0 [13:23:12]Write i2c OK [13:23:12]MH_I2C_Read... [13:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:12]Read from MH i2c: E2 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 0B 00 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 0B 00 31 04 00 CC 80 99 14 91 9D D4 C7 90 00 73 [13:23:12]RAPDU: CC 80 99 14 91 9D D4 C7 90 00 [13:23:12]wFMCommunicate OK [13:23:12]SAM_PROTO_SignData done [13:23:12]FM_MakeSignedData done [13:23:12]CreateOFDProtocolMessage [13:23:12]wFMCommunicate request_size=4 [13:23:12]MH_SAM_APDU [13:23:12]CAPDU: 80 11 00 00 [13:23:12]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [13:23:12]Write i2c OK [13:23:12]MH_I2C_Read... [13:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:12]Read from MH i2c: E2 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 17 00 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 07 [13:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:23:12]wFMCommunicate OK [13:23:12]CreateOFDProtocolMessage done [13:23:12]OFDSenderStorePacket 118095 [13:23:12]StoreOFDPacket docnum=118095 [13:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 2C 71 04 01 72 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9B 00 00 00 F4 03 04 00 3F 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CD 01 00 35 04 06 00 9D 20 AD 74 5B F3 CC 80 99 14 91 9D D4 C7 [13:23:12]CheckFolder [13:23:12]dirname=/storage/ofd_packets [13:23:12]CheckFolder done [13:23:12]ProducePacketName [13:23:12]name=ofd_packets/00118095 [13:23:12]NVStorageSaveData ofd_packets/00118095 [13:23:12]File name is /storage/ofd_packets/00118095 [13:23:12]Write 298 bytes [13:23:12]NVStorageSaveData done [13:23:12]OFDSenderStorePacket done [13:23:12]KKMCreateOFDPacket done [13:23:12]NVStorageSaveData kkm_last_timestamp [13:23:12]File name is /storage/kkm_last_timestamp [13:23:12]Write 4 bytes [13:23:12]NVStorageSaveData done [13:23:12]ExternCall_PrintAddStr [13:23:12]wPrintStart [13:23:12]Write to MH i2c: 01 00 00 33 04 37 [13:23:12]Write i2c OK [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: 01 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: 01 07 00 [13:23:12]MH_I2C_Read... [13:23:12]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [13:23:12]RasterBufferAndPrint [13:23:12]line Счет N : (1)245891 [13:23:12]line ИНН: 02508201610067 [13:23:12]line Контрольно-Кассовый Чек [13:23:12]line ПРОДАЖА [13:23:12]line ТРК (МРК, ГНК) : 13 [13:23:12]line Товар: 2710194210 [13:23:12]line ДТ-К-2 [13:23:12]line 19.690 * 76.20 [13:23:12]line = 1500.38 [13:23:12]line НДС 12% НСП 1% [13:23:12]line > о реализуемом товаре [13:23:12]line ОКРУГЛЕНИЕ: -0.38 [13:23:12]line ИТОГО: 1500.00 [13:23:12]line Внесено: 1500.00 [13:23:12]line СДАЧА: 0.00 [13:23:12]line НСП 1% : 13.28 [13:23:12]line НДС 12% : 159.33 [13:23:12]line Наличными: 1500.00 [13:23:12]line Безнал.: 0.00 [13:23:12]line Место: АЗС № 173 "Партнер Нефть" [13:23:12]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:23:12]line СНО: Общий режим [13:23:12]line Чек 155 30.10.2024 13:23 [13:23:12]line Смена: 545 ФФД: 1.0 [13:23:12]line ЗНМ: 0300000115 [13:23:12]line РНМ: 0000000000091782 [13:23:13]line Версия ККМ: 001 [13:23:13]line ФМ: 0000000000871767 [13:23:13]line ФД: 118095 [13:23:13]line ФПД: 172763674598387 [13:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132311&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118095&fm=172763674598387&tin=02508201610067®Number=0000000000091782&sum=150000 [13:23:13]OFD Sender: Processing packet 118095 [packets to send 77, broken 76] [13:23:13]ProducePacketName [13:23:13]name=ofd_packets/00118095 [13:23:13]OFD Sender: To server: pG, [13:23:13]CommunicateWithHost lk.salyk.kg:30040 [13:23:13]ConnectInit lk.salyk.kg [13:23:13]written 0, free lines is 4095 [13:23:13]Connected sock=10 [13: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 36 37 0C 01 00 00 2C 71 04 01 72 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9B 00 00 00 F4 03 04 00 3F 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CD 01 00 35 04 06 00 9D 20 AD 74 5B F3 CC 80 99 14 91 9D D4 C7 [13: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 36 37 4F 00 00 00 91 05 47 00 22 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 4F CD 01 00 F4 03 04 00 F7 DE 21 67 B6 04 01 00 00 D2 E8 92 D0 49 37 44 97 [13:23:13]CommunicateWithHost err = 0 [13:23:13]CheckOFDResponse [13:23:13]1017 (14) - 77093643461234 [13:23:13]1041 (16) - 0000000000871767 [13:23:13]1040 (4) - 118095 [13:23:13]1012 (4) - 30.10.2024 07:23 [13:23:13]1206 (1) - 0 [13:23:13]OFD Sender: Remove packet 118095 [13:23:13]ProducePacketName [13:23:13]name=ofd_packets/00118095 [13:23:13]NVStorageDeleteData [13:23:13]Write to MH i2c: 01 00 00 5D 04 61 [13:23:13]Write i2c OK [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: 01 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: 01 07 00 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 BA 0C 2E [13:23:13]RasterBufferAndPrint [13:23:13]line [13:23:13]line [13:23:13]line [13:23:13]line [13:23:13]line [13:23:13]written 0, free lines is 3264 [13:23:13]MH_Cut [13:23:13]Write to MH i2c: D1 01 00 64 04 01 3A [13:23:13]Write i2c OK [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: D1 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: D1 01 00 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: D1 01 00 64 04 00 39 [13:23:13]Write to MH i2c: 01 00 00 65 04 69 [13:23:13]Write i2c OK [13:23:13]MH_I2C_Read... [13:23:13]OFD Sender: No OFD packet to send [13:23:14]*** Cut start [13:23:14]*** Purtial cut [13:23:14]*** Stage 1: CUTSNS_PIN = 1 [13:23:14]Read from MH i2c: 01 [13:23:14]MH_I2C_Read... [13:23:14]*** Stop cut motor [13:23:14]*** Cut end [13:23:14]Read from MH i2c: 01 07 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [13:23:14]process_action close_receipt done [13:23:14]requested_data is exist [13:23:14]produce_requested_data [13:23:14]requested_item fm.sn is exist - process it [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 11 00 00 [13:23:14]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 17 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3B [13:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:23:14]wFMCommunicate OK [13:23:14]requested_item fd.num is exist - process it [13:23:14]SAM_PROTO_GetFieldsCounters [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 13 00 00 [13:23:14]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 62 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4F CD 01 00 0E 04 04 00 21 02 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 1F [13:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 4F CD 01 00 0E 04 04 00 21 02 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 [13:23:14]wFMCommunicate OK [13:23:14]SAM_PROTO_GetFieldsCounters done [13:23:14]requested_item shift.num is exist - process it [13:23:14]requested_item shift.opened is exist - process it [13:23:14]req_shift_opened [13:23:14]FM_GetShiftState [13:23:14]SAM_PROTO_GetShiftState [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 13 01 00 [13:23:14]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 0E 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C1 [13:23:14]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:23:14]wFMCommunicate OK [13:23:14]SAM_PROTO_GetShiftState done [13:23:14]FM_GetShiftState done [13:23:14]req_shift_opened done [13:23:14]requested_item shift.open_date is exist - process it [13:23:14]req_shift_open_date [13:23:14]req_shift_open_date done [13:23:14]produce_requested_data done [13:23:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118095,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:23:14]process_action_free close_receipt [13:23:14]json_value_free [13:23:14]json_value_free done [13:23:14]process_json_proto returns [13:23:14]Send response to host [13:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118095,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:23:14]free response buf [13:23:14]execute_script done [13:23:14]execute_script returns [13:23:14]free content buf [13:23:14]Sock 9.Close socket [13:23:14]Sock 9.Thread stoped [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:05]accept exits with 7 [13:26:05]New connection [13:26:05]New thread 3066551652 created [13:26:05]Thread 3066695012 joined [13:26:05]Waiting for new connection... [13:26:05] Sock 7.Parse request [13:26:05]Sock 7.Check first char [13:26:05]Sock 7.First char is OK [13:26:05]request: POST /json_proto HTTP/1.0 [13:26:05]Method: POST [13:26:05]URL: /json_proto [13:26:05]Method is POST - this is cgi request [13:26:05]url: /json_proto [13:26:05]query_string will be loaded in cgi processing [13:26:05]execute_cgi json_proto POST (null) [13:26:05]execute_cgi path=json_proto method=POST [13:26:05]POST find Content-Length [13:26:05]Host: 172.17.96.67:8080 [13:26:05]Content-Length: 769 [13:26:05]Content-Type: application/json [13:26:05] [13:26:05]POST finish read [13:26:05]Found Content-Length = 769 [13:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:05]execute_script... [13:26: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)245892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:05]POST & json_proto [13:26:05]process_json_proto [13:26:05]json parsed OK: [13:26:05]protocol is kg_v1.0 [13:26:05]action value=close_receipt [13:26:05]process_action close_receipt [13:26:05]cmd_close_receipt [13:26:05]MH_GetDate [13:26:05]Write to MH i2c: F0 00 00 69 04 5C [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: F0 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: F0 09 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: F0 09 00 69 04 00 EE 33 22 67 47 6C 1F 67 48 [13:26:05]GetLastDocTimeStamp 1730294591 [13:26:05]current date 1730294766 [13:26:05]FM_GetShiftState [13:26:05]SAM_PROTO_GetShiftState [13:26:05]wFMCommunicate request_size=4 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 13 01 00 [13:26:05]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0E 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C3 [13:26:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:26:05]wFMCommunicate OK [13:26:05]SAM_PROTO_GetShiftState done [13:26:05]FM_GetShiftState done [13:26:05]opened in 1730246605 [13:26:05]opened+sec_in_day 1730333005 [13:26:05]quantity*price = 100015 [13:26:05]sum+1 = 100017 [13:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 156 30.10.2024 13:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118096 ФПД: 244335471642530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132606&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118096&fm=244335471642530&tin=02508201610067®Number=0000000000091782&sum=100016 [13:26:06]StoreToDocumentArchive [13:26:06]shift 545 fd 118096 [13:26:06]save to /storage/0545/doc_00118096 [13:26:06]save last doc name /storage/0545/doc_00118096 to /storage/kkm_last_doc_name [13:26:06]save OK [13:26:06]Clear old archive folders... [13:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:06]tlvbuf is 000B6F60 [13:26:06]SAM_PROTO_ClearQueue [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 09 00 00 [13:26:06]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:06]Read from MH i2c: E2 03 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [13:26:06]RAPDU: 90 00 [13:26:06]wFMCommunicate OK [13:26:06]SAM_PROTO_ClearQueue done [13:26:06]KKMCreateOFDPacket [13:26:06]OFDProtocolAddRootSTLVToBuf [13:26:06]FM_MakeSignedData [13:26:06]FM_MakeSignedData [13:26:06]SAM_PROTO_SignData [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 0D 01 02 [13:26:06]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [13:26:06]RAPDU: 90 00 [13:26:06]wFMCommunicate OK [13:26:06]wFMCommunicate request_size=255 [13:26:06]MH_SAM_APDU [13:26: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 32 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 9C 00 00 00 F4 03 04 00 EE 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CD 01 00 35 04 06 00 DE [13:26:06]Write to MH i2c: E2 02 01 79 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9C 00 00 00 F4 03 04 00 EE 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CD 01 00 35 04 06 00 DE 00 00 06 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:07]Read from MH i2c: E2 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 03 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [13:26:07]RAPDU: 90 00 [13:26:07]wFMCommunicate OK [13:26:07]wFMCommunicate request_size=10 [13:26:07]MH_SAM_APDU [13:26:07]CAPDU: 80 0D 02 02 05 38 C8 FE 47 A2 [13:26:07]Write to MH i2c: E2 0D 00 7A 04 80 0D 02 02 05 00 38 C8 FE 47 A2 00 00 E9 [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:07]Read from MH i2c: E2 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 03 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [13:26:07]RAPDU: 90 00 [13:26:07]wFMCommunicate OK [13:26:07]wFMCommunicate request_size=4 [13:26:07]MH_SAM_APDU [13:26:07]CAPDU: 80 0D 03 02 [13:26:07]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:07]Read from MH i2c: E2 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 0B 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 0B 00 7B 04 00 72 7B CA 94 5D 12 C3 05 90 00 7D [13:26:07]RAPDU: 72 7B CA 94 5D 12 C3 05 90 00 [13:26:07]wFMCommunicate OK [13:26:07]SAM_PROTO_SignData done [13:26:07]FM_MakeSignedData done [13:26:07]CreateOFDProtocolMessage [13:26:07]wFMCommunicate request_size=4 [13:26:07]MH_SAM_APDU [13:26:07]CAPDU: 80 11 00 00 [13:26:07]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:07]Read from MH i2c: E2 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 17 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 51 [13:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:26:07]wFMCommunicate OK [13:26:07]CreateOFDProtocolMessage done [13:26:07]OFDSenderStorePacket 118096 [13:26:07]StoreOFDPacket docnum=118096 [13:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5D 39 07 01 CC 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 32 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 9C 00 00 00 F4 03 04 00 EE 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CD 01 00 35 04 06 00 DE 38 C8 FE 47 A2 72 7B CA 94 5D 12 C3 05 [13:26:07]CheckFolder [13:26:07]dirname=/storage/ofd_packets [13:26:07]CheckFolder done [13:26:07]ProducePacketName [13:26:07]name=ofd_packets/00118096 [13:26:07]NVStorageSaveData ofd_packets/00118096 [13:26:07]File name is /storage/ofd_packets/00118096 [13:26:07]Write 301 bytes [13:26:07]NVStorageSaveData done [13:26:07]OFDSenderStorePacket done [13:26:07]KKMCreateOFDPacket done [13:26:07]NVStorageSaveData kkm_last_timestamp [13:26:07]File name is /storage/kkm_last_timestamp [13:26:07]Write 4 bytes [13:26:07]NVStorageSaveData done [13:26:07]ExternCall_PrintAddStr [13:26:07]wPrintStart [13:26:07]Write to MH i2c: 01 00 00 7D 04 81 [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 07 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [13:26:07]RasterBufferAndPrint [13:26:07]line Счет N : (1)245892 [13:26:07]line ИНН: 02508201610067 [13:26:07]line Контрольно-Кассовый Чек [13:26:07]line ПРОДАЖА [13:26:07]line ТРК (МРК, ГНК) : 21 [13:26:07]line Товар: 2710124130 [13:26:07]line Аи-92-К-2 [13:26:07]line 14.950 * 66.90 [13:26:07]line = 1000.16 [13:26:07]line НДС 12% НСП 1% [13:26:07]line > о реализуемом товаре [13:26:07]line ИТОГО: 1000.16 [13:26:07]line НСП 1% : 8.85 [13:26:07]line НДС 12% : 106.21 [13:26:07]line Наличными: 0.00 [13:26:07]line Безнал.: 1000.16 [13:26:07]line Место: АЗС № 173 "Партнер Нефть" [13:26:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:26:07]line СНО: Общий режим [13:26:07]line Чек 156 30.10.2024 13:26 [13:26:07]line Смена: 545 ФФД: 1.0 [13:26:07]line ЗНМ: 0300000115 [13:26:07]line РНМ: 0000000000091782 [13:26:07]line Версия ККМ: 001 [13:26:07]line Платежная система: Mbank [13:26:07]line ФМ: 0000000000871767 [13:26:07]line ФД: 118096 [13:26:07]line ФПД: 244335471642530 [13:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132606&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118096&fm=244335471642530&tin=02508201610067®Number=0000000000091782&sum=100016 [13:26:07]OFD Sender: Processing packet 118096 [packets to send 77, broken 76] [13:26:07]ProducePacketName [13:26:07]name=ofd_packets/00118096 [13:26:07]OFD Sender: To server: pG, [13:26:07]CommunicateWithHost lk.salyk.kg:30040 [13:26:07]ConnectInit lk.salyk.kg [13:26:07]written 0, free lines is 4095 [13:26:07]Connected sock=10 [13:26: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 36 37 0F 01 00 00 5D 39 07 01 CC 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 32 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 9C 00 00 00 F4 03 04 00 EE 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 50 CD 01 00 35 04 06 00 DE 38 C8 FE 47 A2 72 7B CA 94 5D 12 C3 05 [13:26: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 36 37 4F 00 00 00 BD 6B 47 00 38 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 36 37 10 04 04 00 50 CD 01 00 F4 03 04 00 A6 DF 21 67 B6 04 01 00 00 82 51 6D 44 D0 20 44 7F [13:26:07]CommunicateWithHost err = 0 [13:26:07]CheckOFDResponse [13:26:07]1017 (14) - 77093643461234 [13:26:07]1041 (16) - 0000000000871767 [13:26:07]1040 (4) - 118096 [13:26:07]1012 (4) - 30.10.2024 07:26 [13:26:07]1206 (1) - 0 [13:26:07]OFD Sender: Remove packet 118096 [13:26:07]ProducePacketName [13:26:07]name=ofd_packets/00118096 [13:26:07]NVStorageDeleteData [13:26:07]Write to MH i2c: 01 00 00 A5 04 A9 [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 07 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 EC 0C A8 [13:26:07]RasterBufferAndPrint [13:26:07]line [13:26:07]line [13:26:07]line [13:26:07]line [13:26:07]line [13:26:07]written 0, free lines is 3314 [13:26:08]MH_Cut [13:26:08]Write to MH i2c: D1 01 00 AC 04 01 82 [13:26:08]Write i2c OK [13:26:08]MH_I2C_Read... [13:26:08]Read from MH i2c: D1 [13:26:08]MH_I2C_Read... [13:26:08]Read from MH i2c: D1 01 00 [13:26:08]MH_I2C_Read... [13:26:08]Read from MH i2c: D1 01 00 AC 04 00 81 [13:26:08]Write to MH i2c: 01 00 00 AD 04 B1 [13:26:08]Write i2c OK [13:26:08]MH_I2C_Read... [13:26:08]OFD Sender: No OFD packet to send [13:26:08]*** Cut start [13:26:08]*** Purtial cut [13:26:08]*** Stage 1: CUTSNS_PIN = 1 [13:26:09]Read from MH i2c: 01 [13:26:09]MH_I2C_Read... [13:26:09]*** Stop cut motor [13:26:09]*** Cut end [13:26:09]Read from MH i2c: 01 07 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 FF 0F C6 [13:26:09]process_action close_receipt done [13:26:09]requested_data is exist [13:26:09]produce_requested_data [13:26:09]requested_item fm.sn is exist - process it [13:26:09]wFMCommunicate request_size=4 [13:26:09]MH_SAM_APDU [13:26:09]CAPDU: 80 11 00 00 [13:26:09]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:09]Read from MH i2c: E2 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 17 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 83 [13:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:26:09]wFMCommunicate OK [13:26:09]requested_item fd.num is exist - process it [13:26:09]SAM_PROTO_GetFieldsCounters [13:26:09]wFMCommunicate request_size=4 [13:26:09]MH_SAM_APDU [13:26:09]CAPDU: 80 13 00 00 [13:26:09]Write to MH i2c: E2 08 00 AF 04 80 13 00 00 00 00 00 00 2F [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:09]Read from MH i2c: E2 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 62 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 62 00 AF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 50 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 50 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:09]wFMCommunicate OK [13:26:09]SAM_PROTO_GetFieldsCounters done [13:26:09]requested_item shift.num is exist - process it [13:26:09]requested_item shift.opened is exist - process it [13:26:09]req_shift_opened [13:26:09]FM_GetShiftState [13:26:09]SAM_PROTO_GetShiftState [13:26:09]wFMCommunicate request_size=4 [13:26:09]MH_SAM_APDU [13:26:09]CAPDU: 80 13 01 00 [13:26:09]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:09]Read from MH i2c: E2 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 09 [13:26:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:26:09]wFMCommunicate OK [13:26:09]SAM_PROTO_GetShiftState done [13:26:09]FM_GetShiftState done [13:26:09]req_shift_opened done [13:26:09]requested_item shift.open_date is exist - process it [13:26:09]req_shift_open_date [13:26:09]req_shift_open_date done [13:26:09]produce_requested_data done [13:26:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118096,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:26:09]process_action_free close_receipt [13:26:09]json_value_free [13:26:09]json_value_free done [13:26:09]process_json_proto returns [13:26:09]Send response to host [13:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118096,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:26:09]free response buf [13:26:09]execute_script done [13:26:09]execute_script returns [13:26:09]free content buf [13:26:09]Sock 7.Close socket [13:26:09]Sock 7.Thread stoped [13:26:11]accept exits with 9 [13:26:11]New connection [13:26:11]New thread 3066695012 created [13:26:11]Thread 3066551652 joined [13:26:11]Waiting for new connection... [13:26:11] Sock 9.Parse request [13:26:11]Sock 9.Check first char [13:26:11]Sock 9.First char is OK [13:26:11]request: POST /json_proto HTTP/1.0 [13:26:11]Method: POST [13:26:11]URL: /json_proto [13:26:11]Method is POST - this is cgi request [13:26:11]url: /json_proto [13:26:11]query_string will be loaded in cgi processing [13:26:11]execute_cgi json_proto POST (null) [13:26:11]execute_cgi path=json_proto method=POST [13:26:11]POST find Content-Length [13:26:11]Host: 172.17.96.67:8080 [13:26:11]Content-Length: 674 [13:26:11]Content-Type: application/json [13:26:11] [13:26:11]POST finish read [13:26:11]Found Content-Length = 674 [13:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:26:11]execute_script... [13:26: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)245893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:26:11]POST & json_proto [13:26:11]process_json_proto [13:26:11]json parsed OK: [13:26:11]protocol is kg_v1.0 [13:26:11]action value=close_receipt [13:26:11]process_action close_receipt [13:26:11]cmd_close_receipt [13:26:11]MH_GetDate [13:26:11]Write to MH i2c: F0 00 00 B1 04 A4 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 09 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 09 00 B1 04 00 F4 33 22 67 47 6C 1F 67 96 [13:26:11]GetLastDocTimeStamp 1730294766 [13:26:11]current date 1730294772 [13:26:11]FM_GetShiftState [13:26:11]SAM_PROTO_GetShiftState [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 13 01 00 [13:26:11]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0E 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0B [13:26:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_GetShiftState done [13:26:11]FM_GetShiftState done [13:26:11]opened in 1730246605 [13:26:11]opened+sec_in_day 1730333005 [13:26:11]quantity*price = 50063 [13:26:11]sum+1 = 50064 [13:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 157 30.10.2024 13:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118097 ФПД: 210396374685107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132612&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118097&fm=210396374685107&tin=02508201610067®Number=0000000000091782&sum=50000 [13:26:13]StoreToDocumentArchive [13:26:13]shift 545 fd 118097 [13:26:13]save to /storage/0545/doc_00118097 [13:26:13]save last doc name /storage/0545/doc_00118097 to /storage/kkm_last_doc_name [13:26:13]save OK [13:26:13]Clear old archive folders... [13:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:13]tlvbuf is 000E3910 [13:26:13]SAM_PROTO_ClearQueue [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 09 00 00 [13:26:13]Write to MH i2c: E2 08 00 BF 04 80 09 00 00 00 00 00 00 35 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [13:26:13]RAPDU: 90 00 [13:26:13]wFMCommunicate OK [13:26:13]SAM_PROTO_ClearQueue done [13:26:13]KKMCreateOFDPacket [13:26:13]OFDProtocolAddRootSTLVToBuf [13:26:13]FM_MakeSignedData [13:26:13]FM_MakeSignedData [13:26:13]SAM_PROTO_SignData [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 0D 01 02 [13:26:13]Write to MH i2c: E2 08 00 C0 04 80 0D 01 02 00 00 00 00 3D [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [13:26:13]RAPDU: 90 00 [13:26:13]wFMCommunicate OK [13:26:13]wFMCommunicate request_size=255 [13:26:13]MH_SAM_APDU [13:26: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 32 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 9D 00 00 00 F4 03 04 00 F4 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CD 01 00 35 04 06 00 BF 5A B9 2C [13:26:13]Write to MH i2c: E2 02 01 C1 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 9D 00 00 00 F4 03 04 00 F4 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CD 01 00 35 04 06 00 BF 5A B9 2C 00 00 DA [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]OFD Sender: No OFD packet to send [13:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [13:26:13]RAPDU: 90 00 [13:26:13]wFMCommunicate OK [13:26:13]wFMCommunicate request_size=7 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 0D 02 02 02 D5 B3 [13:26:13]Write to MH i2c: E2 0A 00 C2 04 80 0D 02 02 02 00 D5 B3 00 00 CC [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [13:26:13]RAPDU: 90 00 [13:26:13]wFMCommunicate OK [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 0D 03 02 [13:26:13]Write to MH i2c: E2 08 00 C3 04 80 0D 03 02 00 00 00 00 42 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0B 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0B 00 C3 04 00 97 E7 5D A6 BD 93 1E 93 90 00 C5 [13:26:13]RAPDU: 97 E7 5D A6 BD 93 1E 93 90 00 [13:26:13]wFMCommunicate OK [13:26:13]SAM_PROTO_SignData done [13:26:13]FM_MakeSignedData done [13:26:13]CreateOFDProtocolMessage [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 11 00 00 [13:26:13]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 99 [13:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:26:13]wFMCommunicate OK [13:26:13]CreateOFDProtocolMessage done [13:26:13]OFDSenderStorePacket 118097 [13:26:13]StoreOFDPacket docnum=118097 [13:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 E1 C8 04 01 87 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9D 00 00 00 F4 03 04 00 F4 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CD 01 00 35 04 06 00 BF 5A B9 2C D5 B3 97 E7 5D A6 BD 93 1E 93 [13:26:13]CheckFolder [13:26:13]dirname=/storage/ofd_packets [13:26:13]CheckFolder done [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00118097 [13:26:13]NVStorageSaveData ofd_packets/00118097 [13:26:13]File name is /storage/ofd_packets/00118097 [13:26:13]Write 298 bytes [13:26:13]NVStorageSaveData done [13:26:13]OFDSenderStorePacket done [13:26:13]KKMCreateOFDPacket done [13:26:13]NVStorageSaveData kkm_last_timestamp [13:26:13]File name is /storage/kkm_last_timestamp [13:26:13]Write 4 bytes [13:26:13]NVStorageSaveData done [13:26:13]ExternCall_PrintAddStr [13:26:13]wPrintStart [13:26:13]Write to MH i2c: 01 00 00 C5 04 C9 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [13:26:13]RasterBufferAndPrint [13:26:13]line Счет N : (1)245893 [13:26:13]line ИНН: 02508201610067 [13:26:13]line Контрольно-Кассовый Чек [13:26:13]line ПРОДАЖА [13:26:13]line ТРК (МРК, ГНК) : 13 [13:26:13]line Товар: 2710194210 [13:26:13]line ДТ-К-2 [13:26:13]line 6.570 * 76.20 [13:26:13]line = 500.63 [13:26:13]line НДС 12% НСП 1% [13:26:13]line > о реализуемом товаре [13:26:13]line ОКРУГЛЕНИЕ: -0.63 [13:26:13]line ИТОГО: 500.00 [13:26:13]line Внесено: 500.00 [13:26:13]line СДАЧА: 0.00 [13:26:13]line НСП 1% : 4.43 [13:26:13]line НДС 12% : 53.16 [13:26:13]line Наличными: 500.00 [13:26:13]line Безнал.: 0.00 [13:26:13]line Место: АЗС № 173 "Партнер Нефть" [13:26:13]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:26:13]line СНО: Общий режим [13:26:13]line Чек 157 30.10.2024 13:26 [13:26:13]line Смена: 545 ФФД: 1.0 [13:26:13]line ЗНМ: 0300000115 [13:26:13]line РНМ: 0000000000091782 [13:26:13]line Версия ККМ: 001 [13:26:13]line ФМ: 0000000000871767 [13:26:13]line ФД: 118097 [13:26:13]line ФПД: 210396374685107 [13:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132612&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118097&fm=210396374685107&tin=02508201610067®Number=0000000000091782&sum=50000 [13:26:13]OFD Sender: Processing packet 118097 [packets to send 77, broken 76] [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00118097 [13:26:13]OFD Sender: To server: pG, [13:26:13]CommunicateWithHost lk.salyk.kg:30040 [13:26:13]ConnectInit lk.salyk.kg [13:26:13]written 0, free lines is 4095 [13:26:13]Connected sock=10 [13:26: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 36 37 0C 01 00 00 E1 C8 04 01 87 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9D 00 00 00 F4 03 04 00 F4 33 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CD 01 00 35 04 06 00 BF 5A B9 2C D5 B3 97 E7 5D A6 BD 93 1E 93 [13:26: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 36 37 4F 00 00 00 8D EF 47 00 2A FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 51 CD 01 00 F4 03 04 00 AC DF 21 67 B6 04 01 00 00 55 01 E0 3A FB D4 07 54 [13:26:13]CommunicateWithHost err = 0 [13:26:13]CheckOFDResponse [13:26:13]1017 (14) - 77093643461234 [13:26:13]1041 (16) - 0000000000871767 [13:26:13]1040 (4) - 118097 [13:26:13]1012 (4) - 30.10.2024 07:26 [13:26:13]1206 (1) - 0 [13:26:13]OFD Sender: Remove packet 118097 [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00118097 [13:26:13]NVStorageDeleteData [13:26:14]Write to MH i2c: 01 00 00 EF 04 F3 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 07 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 D8 0C DE [13:26:14]RasterBufferAndPrint [13:26:14]line [13:26:14]line [13:26:14]line [13:26:14]line [13:26:14]line [13:26:14]written 0, free lines is 3298 [13:26:14]MH_Cut [13:26:14]Write to MH i2c: D1 01 00 F6 04 01 CC [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: D1 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: D1 01 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: D1 01 00 F6 04 00 CB [13:26:14]Write to MH i2c: 01 00 00 F7 04 FB [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]OFD Sender: No OFD packet to send [13:26:14]*** Cut start [13:26:14]*** Purtial cut [13:26:14]*** Stage 1: CUTSNS_PIN = 1 [13:26:15]Read from MH i2c: 01 [13:26:15]MH_I2C_Read... [13:26:15]*** Stop cut motor [13:26:15]*** Cut end [13:26:15]Read from MH i2c: 01 07 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 FF 0F 10 [13:26:15]process_action close_receipt done [13:26:15]requested_data is exist [13:26:15]produce_requested_data [13:26:15]requested_item fm.sn is exist - process it [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 11 00 00 [13:26:15]Write to MH i2c: E2 08 00 F8 04 80 11 00 00 00 00 00 00 76 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 F8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CD [13:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:26:15]wFMCommunicate OK [13:26:15]requested_item fd.num is exist - process it [13:26:15]SAM_PROTO_GetFieldsCounters [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 00 00 [13:26:15]Write to MH i2c: E2 08 00 F9 04 80 13 00 00 00 00 00 00 79 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 62 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 62 00 F9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 51 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [13:26: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 51 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetFieldsCounters done [13:26:15]requested_item shift.num is exist - process it [13:26:15]requested_item shift.opened is exist - process it [13:26:15]req_shift_opened [13:26:15]FM_GetShiftState [13:26:15]SAM_PROTO_GetShiftState [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 01 00 [13:26:15]Write to MH i2c: E2 08 00 FA 04 80 13 01 00 00 00 00 00 7B [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 FA 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 53 [13:26:15]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetShiftState done [13:26:15]FM_GetShiftState done [13:26:15]req_shift_opened done [13:26:15]requested_item shift.open_date is exist - process it [13:26:15]req_shift_open_date [13:26:15]req_shift_open_date done [13:26:15]produce_requested_data done [13:26:15]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118097,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:26:15]process_action_free close_receipt [13:26:15]json_value_free [13:26:15]json_value_free done [13:26:15]process_json_proto returns [13:26:15]Send response to host [13:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118097,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:26:15]free response buf [13:26:15]execute_script done [13:26:15]execute_script returns [13:26:15]free content buf [13:26:15]Sock 9.Close socket [13:26:15]Sock 9.Thread stoped [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]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:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:21]ConnectInit Can't connect to host [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:16]accept exits with 7 [13:38:16]New connection [13:38:16]New thread 3066551652 created [13:38:16]Thread 3066695012 joined [13:38:16]Waiting for new connection... [13:38:16] Sock 7.Parse request [13:38:16]Sock 7.Check first char [13:38:16]Sock 7.First char is OK [13:38:16]request: POST /json_proto HTTP/1.0 [13:38:16]Method: POST [13:38:16]URL: /json_proto [13:38:16]Method is POST - this is cgi request [13:38:16]url: /json_proto [13:38:16]query_string will be loaded in cgi processing [13:38:16]execute_cgi json_proto POST (null) [13:38:16]execute_cgi path=json_proto method=POST [13:38:16]POST find Content-Length [13:38:16]Host: 172.17.96.67:8080 [13:38:16]Content-Length: 677 [13:38:16]Content-Type: application/json [13:38:16] [13:38:16]POST finish read [13:38:16]Found Content-Length = 677 [13:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:38:16]execute_script... [13:38: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)245894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:38:16]POST & json_proto [13:38:16]process_json_proto [13:38:16]json parsed OK: [13:38:16]protocol is kg_v1.0 [13:38:16]action value=close_receipt [13:38:16]process_action close_receipt [13:38:16]cmd_close_receipt [13:38:16]MH_GetDate [13:38:16]Write to MH i2c: F0 00 00 FB 04 EE [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: F0 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: F0 09 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: F0 09 00 FB 04 00 C9 36 22 67 47 6C 1F 67 B8 [13:38:16]GetLastDocTimeStamp 1730294772 [13:38:16]current date 1730295497 [13:38:16]FM_GetShiftState [13:38:16]SAM_PROTO_GetShiftState [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 13 01 00 [13:38:16]Write to MH i2c: E2 08 00 FC 04 80 13 01 00 00 00 00 00 7D [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0E 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0E 00 FC 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 55 [13:38:16]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_GetShiftState done [13:38:16]FM_GetShiftState done [13:38:16]opened in 1730246605 [13:38:16]opened+sec_in_day 1730333005 [13:38:16]quantity*price = 50041 [13:38:16]sum+1 = 50042 [13:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 158 30.10.2024 13:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118098 ФПД: 188167962177919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133817&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118098&fm=188167962177919&tin=02508201610067®Number=0000000000091782&sum=50000 [13:38:17]StoreToDocumentArchive [13:38:17]shift 545 fd 118098 [13:38:17]save to /storage/0545/doc_00118098 [13:38:17]save last doc name /storage/0545/doc_00118098 to /storage/kkm_last_doc_name [13:38:17]save OK [13:38:17]Clear old archive folders... [13:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:17]tlvbuf is 000F1CC0 [13:38:17]SAM_PROTO_ClearQueue [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 09 00 00 [13:38:17]Write to MH i2c: E2 08 00 09 05 80 09 00 00 00 00 00 00 80 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]SAM_PROTO_ClearQueue done [13:38:17]KKMCreateOFDPacket [13:38:17]OFDProtocolAddRootSTLVToBuf [13:38:17]FM_MakeSignedData [13:38:17]FM_MakeSignedData [13:38:17]SAM_PROTO_SignData [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 01 02 [13:38:17]Write to MH i2c: E2 08 00 0A 05 80 0D 01 02 00 00 00 00 88 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=255 [13:38:17]MH_SAM_APDU [13:38: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 32 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 C9 36 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CD 01 00 35 04 06 00 AB [13:38:17]Write to MH i2c: E2 02 01 0B 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C9 36 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CD 01 00 35 04 06 00 AB 00 00 2E [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=10 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 02 02 05 23 44 8B 31 7F [13:38:17]Write to MH i2c: E2 0D 00 0C 05 80 0D 02 02 05 00 23 44 8B 31 7F 00 00 37 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 03 02 [13:38:17]Write to MH i2c: E2 08 00 0D 05 80 0D 03 02 00 00 00 00 8D [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 0D 05 00 8B D1 A2 2A CD 60 EC 24 90 00 F3 [13:38:17]RAPDU: 8B D1 A2 2A CD 60 EC 24 90 00 [13:38:17]wFMCommunicate OK [13:38:17]SAM_PROTO_SignData done [13:38:17]FM_MakeSignedData done [13:38:17]CreateOFDProtocolMessage [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 11 00 00 [13:38:17]Write to MH i2c: E2 08 00 0E 05 80 11 00 00 00 00 00 00 8D [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:18]Read from MH i2c: E2 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 17 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: E2 17 00 0E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E4 [13:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:38:18]wFMCommunicate OK [13:38:18]CreateOFDProtocolMessage done [13:38:18]OFDSenderStorePacket 118098 [13:38:18]StoreOFDPacket docnum=118098 [13:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7C F5 07 01 64 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C9 36 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CD 01 00 35 04 06 00 AB 23 44 8B 31 7F 8B D1 A2 2A CD 60 EC 24 [13:38:18]CheckFolder [13:38:18]dirname=/storage/ofd_packets [13:38:18]CheckFolder done [13:38:18]ProducePacketName [13:38:18]name=ofd_packets/00118098 [13:38:18]NVStorageSaveData ofd_packets/00118098 [13:38:18]File name is /storage/ofd_packets/00118098 [13:38:18]Write 301 bytes [13:38:18]NVStorageSaveData done [13:38:18]OFDSenderStorePacket done [13:38:18]KKMCreateOFDPacket done [13:38:18]NVStorageSaveData kkm_last_timestamp [13:38:18]File name is /storage/kkm_last_timestamp [13:38:18]Write 4 bytes [13:38:18]NVStorageSaveData done [13:38:18]OFD Sender: Processing packet 118098 [packets to send 77, broken 76] [13:38:18]ProducePacketName [13:38:18]name=ofd_packets/00118098 [13:38:18]OFD Sender: To server: pG, [13:38:18]CommunicateWithHost lk.salyk.kg:30040 [13:38:18]ConnectInit lk.salyk.kg [13:38:18]ExternCall_PrintAddStr [13:38:18]wPrintStart [13:38:18]Write to MH i2c: 01 00 00 0F 05 14 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [13:38:18]RasterBufferAndPrint [13:38:18]line Счет N : (1)245894 [13:38:18]line ИНН: 02508201610067 [13:38:18]line Контрольно-Кассовый Чек [13:38:18]line ПРОДАЖА [13:38:18]line ТРК (МРК, ГНК) : 21 [13:38:18]line Товар: 2710124130 [13:38:18]line Аи-92-К-2 [13:38:18]line 7.480 * 66.90 [13:38:18]line = 500.41 [13:38:18]line НДС 12% НСП 1% [13:38:18]line > о реализуемом товаре [13:38:18]line ОКРУГЛЕНИЕ: -0.41 [13:38:18]line ИТОГО: 500.00 [13:38:18]line Внесено: 500.00 [13:38:18]line СДАЧА: 0.00 [13:38:18]line НСП 1% : 4.43 [13:38:18]line НДС 12% : 53.14 [13:38:18]line Наличными: 500.00 [13:38:18]line Безнал.: 0.00 [13:38:18]line Место: АЗС № 173 "Партнер Нефть" [13:38:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:38:18]line СНО: Общий режим [13:38:18]line Чек 158 30.10.2024 13:38 [13:38:18]line Смена: 545 ФФД: 1.0 [13:38:18]line ЗНМ: 0300000115 [13:38:18]line РНМ: 0000000000091782 [13:38:18]line Версия ККМ: 001 [13:38:18]line ФМ: 0000000000871767 [13:38:18]line ФД: 118098 [13:38:18]line ФПД: 188167962177919 [13:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133817&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118098&fm=188167962177919&tin=02508201610067®Number=0000000000091782&sum=50000 [13:38:18]Connected sock=12 [13:38: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 36 37 0F 01 00 00 7C F5 07 01 64 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C9 36 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CD 01 00 35 04 06 00 AB 23 44 8B 31 7F 8B D1 A2 2A CD 60 EC 24 [13:38:18]written 0, free lines is 4095 [13:38: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 36 37 4F 00 00 00 6D A0 47 00 C1 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 52 CD 01 00 F4 03 04 00 80 E2 21 67 B6 04 01 00 00 A5 A2 F5 82 01 47 F2 1D [13:38:18]CommunicateWithHost err = 0 [13:38:18]CheckOFDResponse [13:38:18]1017 (14) - 77093643461234 [13:38:18]1041 (16) - 0000000000871767 [13:38:18]1040 (4) - 118098 [13:38:18]1012 (4) - 30.10.2024 07:38 [13:38:18]1206 (1) - 0 [13:38:18]OFD Sender: Remove packet 118098 [13:38:18]ProducePacketName [13:38:18]name=ofd_packets/00118098 [13:38:18]NVStorageDeleteData [13:38:18]Write to MH i2c: 01 00 00 39 05 3E [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 B6 0C 07 [13:38:18]RasterBufferAndPrint [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]written 0, free lines is 3260 [13:38:18]MH_Cut [13:38:18]Write to MH i2c: D1 01 00 40 05 01 17 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 01 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 01 00 40 05 00 16 [13:38:18]Write to MH i2c: 01 00 00 41 05 46 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:19]OFD Sender: No OFD packet to send [13:38:19]*** Cut start [13:38:19]*** Purtial cut [13:38:19]*** Stage 1: CUTSNS_PIN = 1 [13:38:19]Read from MH i2c: 01 [13:38:19]MH_I2C_Read... [13:38:19]*** Stop cut motor [13:38:19]*** Cut end [13:38:19]Read from MH i2c: 01 07 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: 01 07 00 41 05 00 00 00 00 00 FF 0F 5B [13:38:19]process_action close_receipt done [13:38:19]requested_data is exist [13:38:19]produce_requested_data [13:38:19]requested_item fm.sn is exist - process it [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 11 00 00 [13:38:19]Write to MH i2c: E2 08 00 42 05 80 11 00 00 00 00 00 00 C1 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 17 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 17 00 42 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 18 [13:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:38:20]wFMCommunicate OK [13:38:20]requested_item fd.num is exist - process it [13:38:20]SAM_PROTO_GetFieldsCounters [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 13 00 00 [13:38:20]Write to MH i2c: E2 08 00 43 05 80 13 00 00 00 00 00 00 C4 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 62 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 62 00 43 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 52 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [13:38: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 52 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:20]wFMCommunicate OK [13:38:20]SAM_PROTO_GetFieldsCounters done [13:38:20]requested_item shift.num is exist - process it [13:38:20]requested_item shift.opened is exist - process it [13:38:20]req_shift_opened [13:38:20]FM_GetShiftState [13:38:20]SAM_PROTO_GetShiftState [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 13 01 00 [13:38:20]Write to MH i2c: E2 08 00 44 05 80 13 01 00 00 00 00 00 C6 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 0E 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 0E 00 44 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9E [13:38:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:38:20]wFMCommunicate OK [13:38:20]SAM_PROTO_GetShiftState done [13:38:20]FM_GetShiftState done [13:38:20]req_shift_opened done [13:38:20]requested_item shift.open_date is exist - process it [13:38:20]req_shift_open_date [13:38:20]req_shift_open_date done [13:38:20]produce_requested_data done [13:38:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118098,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:38:20]process_action_free close_receipt [13:38:20]json_value_free [13:38:20]json_value_free done [13:38:20]process_json_proto returns [13:38:20]Send response to host [13:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118098,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:38:20]free response buf [13:38:20]execute_script done [13:38:20]execute_script returns [13:38:20]free content buf [13:38:20]Sock 7.Close socket [13:38:20]Sock 7.Thread stoped [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:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [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:32]accept exits with 10 [13:43:32]New connection [13:43:32]New thread 3066695012 created [13:43:32]Thread 3066551652 joined [13:43:32]Waiting for new connection... [13:43:32] Sock 10.Parse request [13:43:32]Sock 10.Check first char [13:43:32]Sock 10.First char is OK [13:43:32]request: POST /json_proto HTTP/1.0 [13:43:32]Method: POST [13:43:32]URL: /json_proto [13:43:32]Method is POST - this is cgi request [13:43:32]url: /json_proto [13:43:32]query_string will be loaded in cgi processing [13:43:32]execute_cgi json_proto POST (null) [13:43:32]execute_cgi path=json_proto method=POST [13:43:32]POST find Content-Length [13:43:32]Host: 172.17.96.67:8080 [13:43:32]Content-Length: 679 [13:43:32]Content-Type: application/json [13:43:32] [13:43:32]POST finish read [13:43:32]Found Content-Length = 679 [13:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:43:32]execute_script... [13:43: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)245895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:43:32]POST & json_proto [13:43:32]process_json_proto [13:43:32]json parsed OK: [13:43:32]protocol is kg_v1.0 [13:43:32]action value=close_receipt [13:43:32]process_action close_receipt [13:43:32]cmd_close_receipt [13:43:32]MH_GetDate [13:43:32]Write to MH i2c: F0 00 00 45 05 39 [13:43:32]Write i2c OK [13:43:32]MH_I2C_Read... [13:43:32]Read from MH i2c: F0 [13:43:32]MH_I2C_Read... [13:43:32]Read from MH i2c: F0 09 00 [13:43:32]MH_I2C_Read... [13:43:32]Read from MH i2c: F0 09 00 45 05 00 05 38 22 67 47 6C 1F 67 41 [13:43:32]GetLastDocTimeStamp 1730295497 [13:43:32]current date 1730295813 [13:43:32]FM_GetShiftState [13:43:32]SAM_PROTO_GetShiftState [13:43:32]wFMCommunicate request_size=4 [13:43:32]MH_SAM_APDU [13:43:32]CAPDU: 80 13 01 00 [13:43:32]Write to MH i2c: E2 08 00 46 05 80 13 01 00 00 00 00 00 C8 [13:43:32]Write i2c OK [13:43:32]MH_I2C_Read... [13:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:32]Read from MH i2c: E2 [13:43:32]MH_I2C_Read... [13:43:32]Read from MH i2c: E2 0E 00 [13:43:32]MH_I2C_Read... [13:43:32]Read from MH i2c: E2 0E 00 46 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A0 [13:43:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:43:32]wFMCommunicate OK [13:43:32]SAM_PROTO_GetShiftState done [13:43:32]FM_GetShiftState done [13:43:32]opened in 1730246605 [13:43:32]opened+sec_in_day 1730333005 [13:43:32]quantity*price = 100050 [13:43:32]sum+1 = 100052 [13:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 159 30.10.2024 13:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118099 ФПД: 46243205000202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T134333&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118099&fm=46243205000202&tin=02508201610067®Number=0000000000091782&sum=100000 [13:43:33]StoreToDocumentArchive [13:43:33]shift 545 fd 118099 [13:43:33]save to /storage/0545/doc_00118099 [13:43:33]save last doc name /storage/0545/doc_00118099 to /storage/kkm_last_doc_name [13:43:33]save OK [13:43:33]Clear old archive folders... [13:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:33]tlvbuf is 000DD510 [13:43:33]SAM_PROTO_ClearQueue [13:43:33]wFMCommunicate request_size=4 [13:43:33]MH_SAM_APDU [13:43:33]CAPDU: 80 09 00 00 [13:43:33]Write to MH i2c: E2 08 00 53 05 80 09 00 00 00 00 00 00 CA [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:33]Read from MH i2c: E2 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [13:43:33]RAPDU: 90 00 [13:43:33]wFMCommunicate OK [13:43:33]SAM_PROTO_ClearQueue done [13:43:33]KKMCreateOFDPacket [13:43:33]OFDProtocolAddRootSTLVToBuf [13:43:33]FM_MakeSignedData [13:43:33]FM_MakeSignedData [13:43:33]SAM_PROTO_SignData [13:43:33]wFMCommunicate request_size=4 [13:43:33]MH_SAM_APDU [13:43:33]CAPDU: 80 0D 01 02 [13:43:33]Write to MH i2c: E2 08 00 54 05 80 0D 01 02 00 00 00 00 D2 [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:33]Read from MH i2c: E2 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [13:43:33]RAPDU: 90 00 [13:43:33]wFMCommunicate OK [13:43:33]wFMCommunicate request_size=255 [13:43:33]MH_SAM_APDU [13:43:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 9F 00 00 00 F4 03 04 00 05 38 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CD 01 00 35 04 06 00 2A 0E D5 CE [13:43:33]Write to MH i2c: E2 02 01 55 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 9F 00 00 00 F4 03 04 00 05 38 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CD 01 00 35 04 06 00 2A 0E D5 CE 00 00 DE [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:33]Read from MH i2c: E2 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [13:43:33]RAPDU: 90 00 [13:43:33]wFMCommunicate OK [13:43:33]wFMCommunicate request_size=7 [13:43:33]MH_SAM_APDU [13:43:33]CAPDU: 80 0D 02 02 02 AC 0A [13:43:33]Write to MH i2c: E2 0A 00 56 05 80 0D 02 02 02 00 AC 0A 00 00 8F [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:33]Read from MH i2c: E2 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [13:43:33]RAPDU: 90 00 [13:43:33]wFMCommunicate OK [13:43:33]wFMCommunicate request_size=4 [13:43:33]MH_SAM_APDU [13:43:33]CAPDU: 80 0D 03 02 [13:43:33]Write to MH i2c: E2 08 00 57 05 80 0D 03 02 00 00 00 00 D7 [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:33]Read from MH i2c: E2 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 0B 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 0B 00 57 05 00 F2 64 29 53 46 BA 02 CF 90 00 7B [13:43:33]RAPDU: F2 64 29 53 46 BA 02 CF 90 00 [13:43:33]wFMCommunicate OK [13:43:33]SAM_PROTO_SignData done [13:43:33]FM_MakeSignedData done [13:43:33]CreateOFDProtocolMessage [13:43:33]wFMCommunicate request_size=4 [13:43:33]MH_SAM_APDU [13:43:33]CAPDU: 80 11 00 00 [13:43:33]Write to MH i2c: E2 08 00 58 05 80 11 00 00 00 00 00 00 D7 [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:33]Read from MH i2c: E2 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 17 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 17 00 58 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2E [13:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:43:33]wFMCommunicate OK [13:43:33]CreateOFDProtocolMessage done [13:43:33]OFDSenderStorePacket 118099 [13:43:33]StoreOFDPacket docnum=118099 [13:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 56 83 04 01 5B 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 05 38 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CD 01 00 35 04 06 00 2A 0E D5 CE AC 0A F2 64 29 53 46 BA 02 CF [13:43:33]CheckFolder [13:43:33]dirname=/storage/ofd_packets [13:43:33]CheckFolder done [13:43:33]ProducePacketName [13:43:33]name=ofd_packets/00118099 [13:43:33]NVStorageSaveData ofd_packets/00118099 [13:43:33]File name is /storage/ofd_packets/00118099 [13:43:33]Write 298 bytes [13:43:33]NVStorageSaveData done [13:43:33]OFDSenderStorePacket done [13:43:33]KKMCreateOFDPacket done [13:43:33]NVStorageSaveData kkm_last_timestamp [13:43:33]File name is /storage/kkm_last_timestamp [13:43:33]Write 4 bytes [13:43:33]NVStorageSaveData done [13:43:33]ExternCall_PrintAddStr [13:43:33]wPrintStart [13:43:33]Write to MH i2c: 01 00 00 59 05 5E [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: 01 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: 01 07 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [13:43:33]RasterBufferAndPrint [13:43:33]line Счет N : (1)245895 [13:43:33]line ИНН: 02508201610067 [13:43:33]line Контрольно-Кассовый Чек [13:43:33]line ПРОДАЖА [13:43:33]line ТРК (МРК, ГНК) : 23 [13:43:33]line Товар: 2710194210 [13:43:33]line ДТ-К-2 [13:43:33]line 13.130 * 76.20 [13:43:33]line = 1000.51 [13:43:33]line НДС 12% НСП 1% [13:43:33]line > о реализуемом товаре [13:43:33]line ОКРУГЛЕНИЕ: -0.51 [13:43:33]line ИТОГО: 1000.00 [13:43:33]line Внесено: 1000.00 [13:43:33]line СДАЧА: 0.00 [13:43:33]line НСП 1% : 8.85 [13:43:33]line НДС 12% : 106.25 [13:43:33]line Наличными: 1000.00 [13:43:33]line Безнал.: 0.00 [13:43:33]line Место: АЗС № 173 "Партнер Нефть" [13:43:33]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:43:33]line СНО: Общий режим [13:43:33]line Чек 159 30.10.2024 13:43 [13:43:33]line Смена: 545 ФФД: 1.0 [13:43:33]line ЗНМ: 0300000115 [13:43:33]line РНМ: 0000000000091782 [13:43:33]line Версия ККМ: 001 [13:43:33]line ФМ: 0000000000871767 [13:43:33]line ФД: 118099 [13:43:33]line ФПД: 46243205000202 [13:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T134333&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118099&fm=46243205000202&tin=02508201610067®Number=0000000000091782&sum=100000 [13:43:34]OFD Sender: Processing packet 118099 [packets to send 77, broken 76] [13:43:34]ProducePacketName [13:43:34]name=ofd_packets/00118099 [13:43:34]OFD Sender: To server: pG, [13:43:34]CommunicateWithHost lk.salyk.kg:30040 [13:43:34]ConnectInit lk.salyk.kg [13:43:34]written 0, free lines is 4095 [13:43:34]Connected sock=9 [13:43: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 36 37 0C 01 00 00 56 83 04 01 5B 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 05 38 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CD 01 00 35 04 06 00 2A 0E D5 CE AC 0A F2 64 29 53 46 BA 02 CF [13:43: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 36 37 4F 00 00 00 79 D1 47 00 16 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 53 CD 01 00 F4 03 04 00 BC E3 21 67 B6 04 01 00 00 CF C6 54 F3 12 34 32 77 [13:43:34]CommunicateWithHost err = 0 [13:43:34]CheckOFDResponse [13:43:34]1017 (14) - 77093643461234 [13:43:34]1041 (16) - 0000000000871767 [13:43:34]1040 (4) - 118099 [13:43:34]1012 (4) - 30.10.2024 07:43 [13:43:34]1206 (1) - 0 [13:43:34]OFD Sender: Remove packet 118099 [13:43:34]ProducePacketName [13:43:34]name=ofd_packets/00118099 [13:43:34]NVStorageDeleteData [13:43:34]Write to MH i2c: 01 00 00 83 05 88 [13:43:34]Write i2c OK [13:43:34]MH_I2C_Read... [13:43:34]Read from MH i2c: 01 [13:43:34]MH_I2C_Read... [13:43:34]Read from MH i2c: 01 07 00 [13:43:34]MH_I2C_Read... [13:43:34]Read from MH i2c: 01 07 00 83 05 00 00 00 00 00 B0 0C 4B [13:43:34]RasterBufferAndPrint [13:43:34]line [13:43:34]line [13:43:34]line [13:43:34]line [13:43:34]line [13:43:34]written 0, free lines is 3252 [13:43:34]MH_Cut [13:43:34]Write to MH i2c: D1 01 00 8A 05 01 61 [13:43:34]Write i2c OK [13:43:34]MH_I2C_Read... [13:43:34]Read from MH i2c: D1 [13:43:34]MH_I2C_Read... [13:43:34]Read from MH i2c: D1 01 00 [13:43:34]MH_I2C_Read... [13:43:34]Read from MH i2c: D1 01 00 8A 05 00 60 [13:43:34]Write to MH i2c: 01 00 00 8B 05 90 [13:43:34]Write i2c OK [13:43:34]MH_I2C_Read... [13:43:35]OFD Sender: No OFD packet to send [13:43:35]*** Cut start [13:43:35]*** Purtial cut [13:43:35]*** Stage 1: CUTSNS_PIN = 1 [13:43:35]Read from MH i2c: 01 [13:43:35]MH_I2C_Read... [13:43:35]*** Stop cut motor [13:43:35]*** Cut end [13:43:35]Read from MH i2c: 01 07 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: 01 07 00 8B 05 00 00 00 00 00 FF 0F A5 [13:43:35]process_action close_receipt done [13:43:35]requested_data is exist [13:43:35]produce_requested_data [13:43:35]requested_item fm.sn is exist - process it [13:43:35]wFMCommunicate request_size=4 [13:43:35]MH_SAM_APDU [13:43:35]CAPDU: 80 11 00 00 [13:43:35]Write to MH i2c: E2 08 00 8C 05 80 11 00 00 00 00 00 00 0B [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:35]Read from MH i2c: E2 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 17 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 17 00 8C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 62 [13:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:43:35]wFMCommunicate OK [13:43:35]requested_item fd.num is exist - process it [13:43:35]SAM_PROTO_GetFieldsCounters [13:43:35]wFMCommunicate request_size=4 [13:43:35]MH_SAM_APDU [13:43:35]CAPDU: 80 13 00 00 [13:43:35]Write to MH i2c: E2 08 00 8D 05 80 13 00 00 00 00 00 00 0E [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 62 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 62 00 8D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 53 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 53 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetFieldsCounters done [13:43:36]requested_item shift.num is exist - process it [13:43:36]requested_item shift.opened is exist - process it [13:43:36]req_shift_opened [13:43:36]FM_GetShiftState [13:43:36]SAM_PROTO_GetShiftState [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 01 00 [13:43:36]Write to MH i2c: E2 08 00 8E 05 80 13 01 00 00 00 00 00 10 [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 8E 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E8 [13:43:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetShiftState done [13:43:36]FM_GetShiftState done [13:43:36]req_shift_opened done [13:43:36]requested_item shift.open_date is exist - process it [13:43:36]req_shift_open_date [13:43:36]req_shift_open_date done [13:43:36]produce_requested_data done [13:43:36]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118099,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:43:36]process_action_free close_receipt [13:43:36]json_value_free [13:43:36]json_value_free done [13:43:36]process_json_proto returns [13:43:36]Send response to host [13:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118099,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:43:36]free response buf [13:43:36]execute_script done [13:43:36]execute_script returns [13:43:36]free content buf [13:43:36]Sock 10.Close socket [13:43:36]Sock 10.Thread stoped [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]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: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:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [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:28]accept exits with 7 [13:54:28]New connection [13:54:28]New thread 3066551652 created [13:54:28]Thread 3066695012 joined [13:54:28]Waiting for new connection... [13:54:28] Sock 7.Parse request [13:54:28]Sock 7.Check first char [13:54:28]Sock 7.First char is OK [13:54:28]request: POST /json_proto HTTP/1.0 [13:54:28]Method: POST [13:54:28]URL: /json_proto [13:54:28]Method is POST - this is cgi request [13:54:28]url: /json_proto [13:54:28]query_string will be loaded in cgi processing [13:54:28]execute_cgi json_proto POST (null) [13:54:28]execute_cgi path=json_proto method=POST [13:54:28]POST find Content-Length [13:54:28]Host: 172.17.96.67:8080 [13:54:28]Content-Length: 984 [13:54:28]Content-Type: application/json [13:54:28] [13:54:28]POST finish read [13:54:28]Found Content-Length = 984 [13:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 159.580, "sum" : 12000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 159.58 \u0441\u043E\u043C", "deposit" : 12000.00, "total" : 12000.00, "payments": [ { "type": 0, "sum" : 12000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:28]execute_script... [13:54: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)245896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 159.580, "sum" : 12000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 159.58 \u0441\u043E\u043C", "deposit" : 12000.00, "total" : 12000.00, "payments": [ { "type": 0, "sum" : 12000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:28]POST & json_proto [13:54:28]process_json_proto [13:54:28]json parsed OK: [13:54:28]protocol is kg_v1.0 [13:54:28]action value=close_receipt [13:54:28]process_action close_receipt [13:54:28]cmd_close_receipt [13:54:28]MH_GetDate [13:54:28]Write to MH i2c: F0 00 00 8F 05 83 [13:54:28]Write i2c OK [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: F0 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: F0 09 00 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: F0 09 00 8F 05 00 95 3A 22 67 47 6C 1F 67 1D [13:54:28]GetLastDocTimeStamp 1730295813 [13:54:28]current date 1730296469 [13:54:28]FM_GetShiftState [13:54:28]SAM_PROTO_GetShiftState [13:54:28]wFMCommunicate request_size=4 [13:54:28]MH_SAM_APDU [13:54:28]CAPDU: 80 13 01 00 [13:54:28]Write to MH i2c: E2 08 00 90 05 80 13 01 00 00 00 00 00 12 [13:54:28]Write i2c OK [13:54:28]MH_I2C_Read... [13:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:28]Read from MH i2c: E2 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 0E 00 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 0E 00 90 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EA [13:54:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:54:28]wFMCommunicate OK [13:54:28]SAM_PROTO_GetShiftState done [13:54:28]FM_GetShiftState done [13:54:28]opened in 1730246605 [13:54:28]opened+sec_in_day 1730333005 [13:54:28]quantity*price = 1200041 [13:54:28]sum+1 = 1200043 [13:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 12000.00 Внесено: 12000.00 СДАЧА: 0.00 НСП 1% : 106.20 НДС 12% : 1274.38 Наличными: 12000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 160 30.10.2024 13:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа ДТ номер 173 сэкономлено 159.58 сом ФМ: 0000000000871767 ФД: 118100 ФПД: 149752214916582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135429&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118100&fm=149752214916582&tin=02508201610067®Number=0000000000091782&sum=1200000 [13:54:29]StoreToDocumentArchive [13:54:29]shift 545 fd 118100 [13:54:29]save to /storage/0545/doc_00118100 [13:54:29]save last doc name /storage/0545/doc_00118100 to /storage/kkm_last_doc_name [13:54:29]save OK [13:54:29]Clear old archive folders... [13:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:29]tlvbuf is 000DD3E0 [13:54:29]SAM_PROTO_ClearQueue [13:54:29]wFMCommunicate request_size=4 [13:54:29]MH_SAM_APDU [13:54:29]CAPDU: 80 09 00 00 [13:54:29]Write to MH i2c: E2 08 00 9D 05 80 09 00 00 00 00 00 00 14 [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:29]Read from MH i2c: E2 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 03 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [13:54:29]RAPDU: 90 00 [13:54:29]wFMCommunicate OK [13:54:29]SAM_PROTO_ClearQueue done [13:54:29]KKMCreateOFDPacket [13:54:29]OFDProtocolAddRootSTLVToBuf [13:54:29]FM_MakeSignedData [13:54:29]FM_MakeSignedData [13:54:29]SAM_PROTO_SignData [13:54:29]wFMCommunicate request_size=4 [13:54:29]MH_SAM_APDU [13:54:29]CAPDU: 80 0D 01 02 [13:54:29]Write to MH i2c: E2 08 00 9E 05 80 0D 01 02 00 00 00 00 1C [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:29]Read from MH i2c: E2 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 03 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [13:54:29]RAPDU: 90 00 [13:54:29]wFMCommunicate OK [13:54:29]wFMCommunicate request_size=255 [13:54:29]MH_SAM_APDU [13:54:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5C 6F 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 AA 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE F1 01 00 00 00 07 04 06 00 80 4F 12 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 95 3A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CD 01 00 35 04 06 00 88 32 E7 93 [13:54:29]Write to MH i2c: E2 02 01 9F 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5C 6F 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 AA 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE F1 01 00 00 00 07 04 06 00 80 4F 12 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 95 3A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CD 01 00 35 04 06 00 88 32 E7 93 00 00 69 [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [13:54:30]RAPDU: 90 00 [13:54:30]wFMCommunicate OK [13:54:30]wFMCommunicate request_size=7 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 0D 02 02 02 0D E6 [13:54:30]Write to MH i2c: E2 0A 00 A0 05 80 0D 02 02 02 00 0D E6 00 00 16 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [13:54:30]RAPDU: 90 00 [13:54:30]wFMCommunicate OK [13:54:30]wFMCommunicate request_size=4 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 0D 03 02 [13:54:30]Write to MH i2c: E2 08 00 A1 05 80 0D 03 02 00 00 00 00 21 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 0B 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 0B 00 A1 05 00 9B 0C 52 E0 B1 A1 E3 01 90 00 31 [13:54:30]RAPDU: 9B 0C 52 E0 B1 A1 E3 01 90 00 [13:54:30]wFMCommunicate OK [13:54:30]SAM_PROTO_SignData done [13:54:30]FM_MakeSignedData done [13:54:30]CreateOFDProtocolMessage [13:54:30]wFMCommunicate request_size=4 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 11 00 00 [13:54:30]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 17 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 78 [13:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:54:30]wFMCommunicate OK [13:54:30]CreateOFDProtocolMessage done [13:54:30]OFDSenderStorePacket 118100 [13:54:30]StoreOFDPacket docnum=118100 [13:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 20 33 04 01 1E C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5C 6F 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 AA 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE F1 01 00 00 00 07 04 06 00 80 4F 12 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 95 3A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CD 01 00 35 04 06 00 88 32 E7 93 0D E6 9B 0C 52 E0 B1 A1 E3 01 [13:54:30]CheckFolder [13:54:30]dirname=/storage/ofd_packets [13:54:30]CheckFolder done [13:54:30]ProducePacketName [13:54:30]name=ofd_packets/00118100 [13:54:30]NVStorageSaveData ofd_packets/00118100 [13:54:30]File name is /storage/ofd_packets/00118100 [13:54:30]Write 298 bytes [13:54:30]NVStorageSaveData done [13:54:30]OFDSenderStorePacket done [13:54:30]KKMCreateOFDPacket done [13:54:30]NVStorageSaveData kkm_last_timestamp [13:54:30]File name is /storage/kkm_last_timestamp [13:54:30]Write 4 bytes [13:54:30]NVStorageSaveData done [13:54:30]ExternCall_PrintAddStr [13:54:30]wPrintStart [13:54:30]Write to MH i2c: 01 00 00 A3 05 A8 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: 01 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: 01 07 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 FF 0F BD [13:54:30]RasterBufferAndPrint [13:54:30]line Счет N : (1)245896 [13:54:30]line ИНН: 02508201610067 [13:54:30]line Контрольно-Кассовый Чек [13:54:30]line ПРОДАЖА [13:54:30]line ТРК (МРК, ГНК) : 13 [13:54:30]line Товар: 2710194210 [13:54:30]line ДТ-К-2 [13:54:30]line 159.580 * 75.20 [13:54:30]line = 12000.42 [13:54:30]line НДС 12% НСП 1% [13:54:30]line > о реализуемом товаре [13:54:30]line ОКРУГЛЕНИЕ: -0.42 [13:54:30]line ИТОГО: 12000.00 [13:54:30]line Внесено: 12000.00 [13:54:30]line СДАЧА: 0.00 [13:54:30]line НСП 1% : 106.20 [13:54:30]line НДС 12% : 1274.38 [13:54:30]line Наличными: 12000.00 [13:54:30]line Безнал.: 0.00 [13:54:30]line Место: АЗС № 173 "Партнер Нефть" [13:54:30]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:54:30]line СНО: Общий режим [13:54:30]line Чек 160 30.10.2024 13:54 [13:54:30]line Смена: 545 ФФД: 1.0 [13:54:30]line ЗНМ: 0300000115 [13:54:30]line РНМ: 0000000000091782 [13:54:30]line Версия ККМ: 001 [13:54:30]line [13:54:30]line Дисконтная программа [13:54:30]line ДТ [13:54:30]line номер 173 [13:54:30]line сэкономлено 159.58 сом [13:54:30]line ФМ: 0000000000871767 [13:54:30]line ФД: 118100 [13:54:30]line ФПД: 149752214916582 [13:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135429&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118100&fm=149752214916582&tin=02508201610067®Number=0000000000091782&sum=1200000 [13:54:30]OFD Sender: Processing packet 118100 [packets to send 77, broken 76] [13:54:30]ProducePacketName [13:54:30]name=ofd_packets/00118100 [13:54:30]OFD Sender: To server: pG, [13:54:30]CommunicateWithHost lk.salyk.kg:30040 [13:54:30]ConnectInit lk.salyk.kg [13:54:30]written 0, free lines is 4095 [13:54:30]Connected sock=10 [13:54: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 36 37 0C 01 00 00 20 33 04 01 1E C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 5C 6F 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 AA 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE F1 01 00 00 00 07 04 06 00 80 4F 12 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 95 3A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CD 01 00 35 04 06 00 88 32 E7 93 0D E6 9B 0C 52 E0 B1 A1 E3 01 [13:54: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 36 37 4F 00 00 00 02 05 47 00 3D 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 54 CD 01 00 F4 03 04 00 4C E6 21 67 B6 04 01 00 00 E8 3D AE D7 27 B9 54 87 [13:54:30]CommunicateWithHost err = 0 [13:54:30]CheckOFDResponse [13:54:30]1017 (14) - 77093643461234 [13:54:30]1041 (16) - 0000000000871767 [13:54:30]1040 (4) - 118100 [13:54:30]1012 (4) - 30.10.2024 07:54 [13:54:30]1206 (1) - 0 [13:54:30]OFD Sender: Remove packet 118100 [13:54:30]ProducePacketName [13:54:30]name=ofd_packets/00118100 [13:54:30]NVStorageDeleteData [13:54:30]Write to MH i2c: 01 00 00 D2 05 D7 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: 01 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: 01 07 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: 01 07 00 D2 05 00 00 00 00 00 55 0C 3F [13:54:30]RasterBufferAndPrint [13:54:30]line [13:54:30]line [13:54:30]line [13:54:30]line [13:54:30]line [13:54:30]written 0, free lines is 3162 [13:54:30]MH_Cut [13:54:30]Write to MH i2c: D1 01 00 D9 05 01 B0 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: D1 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: D1 01 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: D1 01 00 D9 05 00 AF [13:54:30]Write to MH i2c: 01 00 00 DA 05 DF [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:31]OFD Sender: No OFD packet to send [13:54:31]*** Cut start [13:54:31]*** Purtial cut [13:54:31]*** Stage 1: CUTSNS_PIN = 1 [13:54:32]Read from MH i2c: 01 [13:54:32]MH_I2C_Read... [13:54:32]*** Stop cut motor [13:54:32]*** Cut end [13:54:32]Read from MH i2c: 01 07 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 FF 0F F4 [13:54:32]process_action close_receipt done [13:54:32]requested_data is exist [13:54:32]produce_requested_data [13:54:32]requested_item fm.sn is exist - process it [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 11 00 00 [13:54:32]Write to MH i2c: E2 08 00 DB 05 80 11 00 00 00 00 00 00 5A [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 17 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 17 00 DB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B1 [13:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:54:32]wFMCommunicate OK [13:54:32]requested_item fd.num is exist - process it [13:54:32]SAM_PROTO_GetFieldsCounters [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 13 00 00 [13:54:32]Write to MH i2c: E2 08 00 DC 05 80 13 00 00 00 00 00 00 5D [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 62 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 62 00 DC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 54 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [13:54: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 54 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:32]wFMCommunicate OK [13:54:32]SAM_PROTO_GetFieldsCounters done [13:54:32]requested_item shift.num is exist - process it [13:54:32]requested_item shift.opened is exist - process it [13:54:32]req_shift_opened [13:54:32]FM_GetShiftState [13:54:32]SAM_PROTO_GetShiftState [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 13 01 00 [13:54:32]Write to MH i2c: E2 08 00 DD 05 80 13 01 00 00 00 00 00 5F [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 0E 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 0E 00 DD 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 37 [13:54:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:54:32]wFMCommunicate OK [13:54:32]SAM_PROTO_GetShiftState done [13:54:32]FM_GetShiftState done [13:54:32]req_shift_opened done [13:54:32]requested_item shift.open_date is exist - process it [13:54:32]req_shift_open_date [13:54:32]req_shift_open_date done [13:54:32]produce_requested_data done [13:54:32]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118100,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:54:32]process_action_free close_receipt [13:54:32]json_value_free [13:54:32]json_value_free done [13:54:32]process_json_proto returns [13:54:32]Send response to host [13:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118100,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:54:32]free response buf [13:54:32]execute_script done [13:54:32]execute_script returns [13:54:32]free content buf [13:54:32]Sock 7.Close socket [13:54:32]Sock 7.Thread stoped [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:19]accept exits with 9 [13:58:19]New connection [13:58:19]New thread 3066695012 created [13:58:19]Thread 3066551652 joined [13:58:19]Waiting for new connection... [13:58:19] Sock 9.Parse request [13:58:19]Sock 9.Check first char [13:58:19]Sock 9.First char is OK [13:58:19]request: POST /json_proto HTTP/1.0 [13:58:19]Method: POST [13:58:19]URL: /json_proto [13:58:19]Method is POST - this is cgi request [13:58:19]url: /json_proto [13:58:19]query_string will be loaded in cgi processing [13:58:19]execute_cgi json_proto POST (null) [13:58:19]execute_cgi path=json_proto method=POST [13:58:19]POST find Content-Length [13:58:19]Host: 172.17.96.67:8080 [13:58:19]Content-Length: 677 [13:58:19]Content-Type: application/json [13:58:19] [13:58:19]POST finish read [13:58:19]Found Content-Length = 677 [13:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:58:19]execute_script... [13:58: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)245897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:58:19]POST & json_proto [13:58:19]process_json_proto [13:58:19]json parsed OK: [13:58:19]protocol is kg_v1.0 [13:58:19]action value=close_receipt [13:58:19]process_action close_receipt [13:58:19]cmd_close_receipt [13:58:19]MH_GetDate [13:58:19]Write to MH i2c: F0 00 00 DE 05 D2 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: F0 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: F0 09 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: F0 09 00 DE 05 00 7C 3B 22 67 47 6C 1F 67 54 [13:58:19]GetLastDocTimeStamp 1730296469 [13:58:19]current date 1730296700 [13:58:19]FM_GetShiftState [13:58:19]SAM_PROTO_GetShiftState [13:58:19]wFMCommunicate request_size=4 [13:58:19]MH_SAM_APDU [13:58:19]CAPDU: 80 13 01 00 [13:58:19]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 0E 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 39 [13:58:19]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:58:19]wFMCommunicate OK [13:58:19]SAM_PROTO_GetShiftState done [13:58:19]FM_GetShiftState done [13:58:19]opened in 1730246605 [13:58:19]opened+sec_in_day 1730333005 [13:58:19]quantity*price = 20003 [13:58:19]sum+1 = 20004 [13:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 161 30.10.2024 13:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118101 ФПД: 136199750225170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118101&fm=136199750225170&tin=02508201610067®Number=0000000000091782&sum=20000 [13:58:20]StoreToDocumentArchive [13:58:20]shift 545 fd 118101 [13:58:20]save to /storage/0545/doc_00118101 [13:58:20]save last doc name /storage/0545/doc_00118101 to /storage/kkm_last_doc_name [13:58:20]save OK [13:58:20]Clear old archive folders... [13:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:20]tlvbuf is 000FF0D0 [13:58:20]SAM_PROTO_ClearQueue [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 09 00 00 [13:58:20]Write to MH i2c: E2 08 00 EC 05 80 09 00 00 00 00 00 00 63 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [13:58:20]RAPDU: 90 00 [13:58:20]wFMCommunicate OK [13:58:20]SAM_PROTO_ClearQueue done [13:58:20]KKMCreateOFDPacket [13:58:20]OFDProtocolAddRootSTLVToBuf [13:58:20]FM_MakeSignedData [13:58:20]FM_MakeSignedData [13:58:20]SAM_PROTO_SignData [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 0D 01 02 [13:58:20]Write to MH i2c: E2 08 00 ED 05 80 0D 01 02 00 00 00 00 6B [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [13:58:20]RAPDU: 90 00 [13:58:20]wFMCommunicate OK [13:58:20]wFMCommunicate request_size=255 [13:58:20]MH_SAM_APDU [13:58: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 32 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 A1 00 00 00 F4 03 04 00 7C 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CD 01 00 35 04 06 00 7B [13:58:20]Write to MH i2c: E2 02 01 EE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 00 00 00 F4 03 04 00 7C 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CD 01 00 35 04 06 00 7B 00 00 61 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=10 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 02 02 05 DF 79 BB 0D 12 [13:58:21]Write to MH i2c: E2 0D 00 EF 05 80 0D 02 02 05 00 DF 79 BB 0D 12 00 00 AA [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 03 02 [13:58:21]Write to MH i2c: E2 08 00 F0 05 80 0D 03 02 00 00 00 00 70 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0B 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0B 00 F0 05 00 D6 05 95 C6 C3 22 24 CF 90 00 7F [13:58:21]RAPDU: D6 05 95 C6 C3 22 24 CF 90 00 [13:58:21]wFMCommunicate OK [13:58:21]SAM_PROTO_SignData done [13:58:21]FM_MakeSignedData done [13:58:21]CreateOFDProtocolMessage [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 11 00 00 [13:58:21]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C7 [13:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:58:21]wFMCommunicate OK [13:58:21]CreateOFDProtocolMessage done [13:58:21]OFDSenderStorePacket 118101 [13:58:21]StoreOFDPacket docnum=118101 [13:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6F 38 07 01 4C 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 32 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 A1 00 00 00 F4 03 04 00 7C 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CD 01 00 35 04 06 00 7B DF 79 BB 0D 12 D6 05 95 C6 C3 22 24 CF [13:58:21]CheckFolder [13:58:21]dirname=/storage/ofd_packets [13:58:21]CheckFolder done [13:58:21]ProducePacketName [13:58:21]name=ofd_packets/00118101 [13:58:21]NVStorageSaveData ofd_packets/00118101 [13:58:21]File name is /storage/ofd_packets/00118101 [13:58:21]Write 301 bytes [13:58:21]NVStorageSaveData done [13:58:21]OFDSenderStorePacket done [13:58:21]KKMCreateOFDPacket done [13:58:21]NVStorageSaveData kkm_last_timestamp [13:58:21]File name is /storage/kkm_last_timestamp [13:58:21]Write 4 bytes [13:58:21]NVStorageSaveData done [13:58:21]ExternCall_PrintAddStr [13:58:21]wPrintStart [13:58:21]Write to MH i2c: 01 00 00 F2 05 F7 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 07 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [13:58:21]RasterBufferAndPrint [13:58:21]line Счет N : (1)245897 [13:58:21]line ИНН: 02508201610067 [13:58:21]line Контрольно-Кассовый Чек [13:58:21]line ПРОДАЖА [13:58:21]line ТРК (МРК, ГНК) : 21 [13:58:21]line Товар: 2710124130 [13:58:21]line Аи-92-К-2 [13:58:21]line 2.990 * 66.90 [13:58:21]line = 200.03 [13:58:21]line НДС 12% НСП 1% [13:58:21]line > о реализуемом товаре [13:58:21]line ОКРУГЛЕНИЕ: -0.03 [13:58:21]line ИТОГО: 200.00 [13:58:21]line Внесено: 200.00 [13:58:21]line СДАЧА: 0.00 [13:58:21]line НСП 1% : 1.77 [13:58:21]line НДС 12% : 21.24 [13:58:21]line Наличными: 200.00 [13:58:21]line Безнал.: 0.00 [13:58:21]line Место: АЗС № 173 "Партнер Нефть" [13:58:21]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:58:21]line СНО: Общий режим [13:58:21]line Чек 161 30.10.2024 13:58 [13:58:21]line Смена: 545 ФФД: 1.0 [13:58:21]line ЗНМ: 0300000115 [13:58:21]line РНМ: 0000000000091782 [13:58:21]line Версия ККМ: 001 [13:58:21]line ФМ: 0000000000871767 [13:58:21]line ФД: 118101 [13:58:21]line ФПД: 136199750225170 [13:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118101&fm=136199750225170&tin=02508201610067®Number=0000000000091782&sum=20000 [13:58:21]written 0, free lines is 4095 [13:58:21]OFD Sender: Processing packet 118101 [packets to send 77, broken 76] [13:58:21]ProducePacketName [13:58:21]name=ofd_packets/00118101 [13:58:21]OFD Sender: To server: pG, [13:58:21]CommunicateWithHost lk.salyk.kg:30040 [13:58:21]ConnectInit lk.salyk.kg [13:58:21]Connected sock=11 [13:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6F 38 07 01 4C 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 32 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 A1 00 00 00 F4 03 04 00 7C 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CD 01 00 35 04 06 00 7B DF 79 BB 0D 12 D6 05 95 C6 C3 22 24 CF [13:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 1C 44 47 00 19 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 55 CD 01 00 F4 03 04 00 34 E7 21 67 B6 04 01 00 00 5B B9 F6 FA 1C 42 37 0F [13:58:22]CommunicateWithHost err = 0 [13:58:22]CheckOFDResponse [13:58:22]1017 (14) - 77093643461234 [13:58:22]1041 (16) - 0000000000871767 [13:58:22]1040 (4) - 118101 [13:58:22]1012 (4) - 30.10.2024 07:58 [13:58:22]1206 (1) - 0 [13:58:22]OFD Sender: Remove packet 118101 [13:58:22]ProducePacketName [13:58:22]name=ofd_packets/00118101 [13:58:22]NVStorageDeleteData [13:58:22]Write to MH i2c: 01 00 00 1C 06 22 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 B1 0C E6 [13:58:22]RasterBufferAndPrint [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]written 0, free lines is 3253 [13:58:22]MH_Cut [13:58:22]Write to MH i2c: D1 01 00 23 06 01 FB [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 01 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 01 00 23 06 00 FA [13:58:22]Write to MH i2c: 01 00 00 24 06 2A [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]OFD Sender: No OFD packet to send [13:58:22]*** Cut start [13:58:22]*** Purtial cut [13:58:22]*** Stage 1: CUTSNS_PIN = 1 [13:58:23]Read from MH i2c: 01 [13:58:23]MH_I2C_Read... [13:58:23]*** Stop cut motor [13:58:23]*** Cut end [13:58:23]Read from MH i2c: 01 07 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: 01 07 00 24 06 00 00 00 00 00 FF 0F 3F [13:58:23]process_action close_receipt done [13:58:23]requested_data is exist [13:58:23]produce_requested_data [13:58:23]requested_item fm.sn is exist - process it [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 11 00 00 [13:58:23]Write to MH i2c: E2 08 00 25 06 80 11 00 00 00 00 00 00 A5 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 17 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 17 00 25 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FC [13:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:58:23]wFMCommunicate OK [13:58:23]requested_item fd.num is exist - process it [13:58:23]SAM_PROTO_GetFieldsCounters [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 13 00 00 [13:58:23]Write to MH i2c: E2 08 00 26 06 80 13 00 00 00 00 00 00 A8 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 62 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 62 00 26 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 55 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [13:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 55 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:23]wFMCommunicate OK [13:58:23]SAM_PROTO_GetFieldsCounters done [13:58:23]requested_item shift.num is exist - process it [13:58:23]requested_item shift.opened is exist - process it [13:58:23]req_shift_opened [13:58:23]FM_GetShiftState [13:58:23]SAM_PROTO_GetShiftState [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 13 01 00 [13:58:23]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 82 [13:58:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:58:23]wFMCommunicate OK [13:58:23]SAM_PROTO_GetShiftState done [13:58:23]FM_GetShiftState done [13:58:23]req_shift_opened done [13:58:23]requested_item shift.open_date is exist - process it [13:58:23]req_shift_open_date [13:58:23]req_shift_open_date done [13:58:23]produce_requested_data done [13:58:23]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118101,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:58:23]process_action_free close_receipt [13:58:23]json_value_free [13:58:23]json_value_free done [13:58:23]process_json_proto returns [13:58:23]Send response to host [13:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118101,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:58:23]free response buf [13:58:23]execute_script done [13:58:23]execute_script returns [13:58:23]free content buf [13:58:23]Sock 9.Close socket [13:58:23]Sock 9.Thread stoped [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]accept exits with 7 [13:58:37]New connection [13:58:37]New thread 3066551652 created [13:58:37]Thread 3066695012 joined [13:58:37]Waiting for new connection... [13:58:37] Sock 7.Parse request [13:58:37]Sock 7.Check first char [13:58:37]Sock 7.First char is OK [13:58:37]request: POST /json_proto HTTP/1.0 [13:58:37]Method: POST [13:58:37]URL: /json_proto [13:58:37]Method is POST - this is cgi request [13:58:37]url: /json_proto [13:58:37]query_string will be loaded in cgi processing [13:58:37]execute_cgi json_proto POST (null) [13:58:37]execute_cgi path=json_proto method=POST [13:58:37]POST find Content-Length [13:58:37]Host: 172.17.96.67:8080 [13:58:37]Content-Length: 679 [13:58:37]Content-Type: application/json [13:58:37] [13:58:37]POST finish read [13:58:37]Found Content-Length = 679 [13:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:58:37]execute_script... [13:58: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)245898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:58:37]POST & json_proto [13:58:37]process_json_proto [13:58:37]json parsed OK: [13:58:37]protocol is kg_v1.0 [13:58:37]action value=close_receipt [13:58:37]process_action close_receipt [13:58:37]cmd_close_receipt [13:58:37]MH_GetDate [13:58:37]Write to MH i2c: F0 00 00 28 06 1D [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: F0 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: F0 09 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: F0 09 00 28 06 00 8E 3B 22 67 47 6C 1F 67 B1 [13:58:37]GetLastDocTimeStamp 1730296700 [13:58:37]current date 1730296718 [13:58:37]FM_GetShiftState [13:58:37]SAM_PROTO_GetShiftState [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 13 01 00 [13:58:37]Write to MH i2c: E2 08 00 29 06 80 13 01 00 00 00 00 00 AC [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 0E 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 0E 00 29 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 84 [13:58:37]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:58:37]wFMCommunicate OK [13:58:37]SAM_PROTO_GetShiftState done [13:58:37]FM_GetShiftState done [13:58:37]opened in 1730246605 [13:58:37]opened+sec_in_day 1730333005 [13:58:37]quantity*price = 100050 [13:58:37]sum+1 = 100052 [13:58:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 162 30.10.2024 13:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118102 ФПД: 158408432127745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135838&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118102&fm=158408432127745&tin=02508201610067®Number=0000000000091782&sum=100000 [13:58:38]StoreToDocumentArchive [13:58:38]shift 545 fd 118102 [13:58:38]save to /storage/0545/doc_00118102 [13:58:38]save last doc name /storage/0545/doc_00118102 to /storage/kkm_last_doc_name [13:58:38]save OK [13:58:38]Clear old archive folders... [13:58:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:38]tlvbuf is 001001F0 [13:58:38]SAM_PROTO_ClearQueue [13:58:38]wFMCommunicate request_size=4 [13:58:38]MH_SAM_APDU [13:58:38]CAPDU: 80 09 00 00 [13:58:38]Write to MH i2c: E2 08 00 36 06 80 09 00 00 00 00 00 00 AE [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:38]Read from MH i2c: E2 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [13:58:38]RAPDU: 90 00 [13:58:38]wFMCommunicate OK [13:58:38]SAM_PROTO_ClearQueue done [13:58:38]KKMCreateOFDPacket [13:58:38]OFDProtocolAddRootSTLVToBuf [13:58:38]FM_MakeSignedData [13:58:38]FM_MakeSignedData [13:58:38]SAM_PROTO_SignData [13:58:38]wFMCommunicate request_size=4 [13:58:38]MH_SAM_APDU [13:58:38]CAPDU: 80 0D 01 02 [13:58:38]Write to MH i2c: E2 08 00 37 06 80 0D 01 02 00 00 00 00 B6 [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:38]Read from MH i2c: E2 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [13:58:38]RAPDU: 90 00 [13:58:38]wFMCommunicate OK [13:58:38]wFMCommunicate request_size=255 [13:58:38]MH_SAM_APDU [13:58: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 32 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 A2 00 00 00 F4 03 04 00 8E 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 56 CD 01 00 35 04 06 00 90 12 56 53 [13:58:38]Write to MH i2c: E2 02 01 38 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 8E 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 56 CD 01 00 35 04 06 00 90 12 56 53 00 00 C4 [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:38]Read from MH i2c: E2 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [13:58:38]RAPDU: 90 00 [13:58:38]wFMCommunicate OK [13:58:38]wFMCommunicate request_size=7 [13:58:38]MH_SAM_APDU [13:58:38]CAPDU: 80 0D 02 02 02 8F 01 [13:58:38]Write to MH i2c: E2 0A 00 39 06 80 0D 02 02 02 00 8F 01 00 00 4D [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:38]Read from MH i2c: E2 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [13:58:38]RAPDU: 90 00 [13:58:38]wFMCommunicate OK [13:58:38]wFMCommunicate request_size=4 [13:58:38]MH_SAM_APDU [13:58:38]CAPDU: 80 0D 03 02 [13:58:38]Write to MH i2c: E2 08 00 3A 06 80 0D 03 02 00 00 00 00 BB [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:38]Read from MH i2c: E2 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 0B 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 0B 00 3A 06 00 97 60 EA 96 F5 11 99 B9 90 00 8B [13:58:38]RAPDU: 97 60 EA 96 F5 11 99 B9 90 00 [13:58:38]wFMCommunicate OK [13:58:38]SAM_PROTO_SignData done [13:58:38]FM_MakeSignedData done [13:58:38]CreateOFDProtocolMessage [13:58:38]wFMCommunicate request_size=4 [13:58:38]MH_SAM_APDU [13:58:38]CAPDU: 80 11 00 00 [13:58:38]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:38]Read from MH i2c: E2 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 17 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 12 [13:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:58:38]wFMCommunicate OK [13:58:38]CreateOFDProtocolMessage done [13:58:38]OFDSenderStorePacket 118102 [13:58:38]StoreOFDPacket docnum=118102 [13:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 06 D5 04 01 C3 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 8E 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 56 CD 01 00 35 04 06 00 90 12 56 53 8F 01 97 60 EA 96 F5 11 99 B9 [13:58:38]CheckFolder [13:58:38]dirname=/storage/ofd_packets [13:58:38]CheckFolder done [13:58:38]ProducePacketName [13:58:38]name=ofd_packets/00118102 [13:58:38]NVStorageSaveData ofd_packets/00118102 [13:58:38]File name is /storage/ofd_packets/00118102 [13:58:38]Write 298 bytes [13:58:38]NVStorageSaveData done [13:58:38]OFDSenderStorePacket done [13:58:38]KKMCreateOFDPacket done [13:58:38]NVStorageSaveData kkm_last_timestamp [13:58:38]File name is /storage/kkm_last_timestamp [13:58:38]Write 4 bytes [13:58:38]NVStorageSaveData done [13:58:38]ExternCall_PrintAddStr [13:58:38]wPrintStart [13:58:38]Write to MH i2c: 01 00 00 3C 06 42 [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: 01 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: 01 07 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [13:58:38]RasterBufferAndPrint [13:58:38]line Счет N : (1)245898 [13:58:38]line ИНН: 02508201610067 [13:58:38]line Контрольно-Кассовый Чек [13:58:38]line ПРОДАЖА [13:58:38]line ТРК (МРК, ГНК) : 13 [13:58:38]line Товар: 2710194210 [13:58:38]line ДТ-К-2 [13:58:38]line 13.130 * 76.20 [13:58:38]line = 1000.51 [13:58:38]line НДС 12% НСП 1% [13:58:38]line > о реализуемом товаре [13:58:38]line ОКРУГЛЕНИЕ: -0.51 [13:58:38]line ИТОГО: 1000.00 [13:58:38]line Внесено: 1000.00 [13:58:38]line СДАЧА: 0.00 [13:58:38]line НСП 1% : 8.85 [13:58:38]line НДС 12% : 106.25 [13:58:38]line Наличными: 1000.00 [13:58:38]line Безнал.: 0.00 [13:58:38]line Место: АЗС № 173 "Партнер Нефть" [13:58:38]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:58:38]line СНО: Общий режим [13:58:38]line Чек 162 30.10.2024 13:58 [13:58:38]line Смена: 545 ФФД: 1.0 [13:58:38]line ЗНМ: 0300000115 [13:58:38]line РНМ: 0000000000091782 [13:58:38]line Версия ККМ: 001 [13:58:38]line ФМ: 0000000000871767 [13:58:38]line ФД: 118102 [13:58:38]line ФПД: 158408432127745 [13:58:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135838&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118102&fm=158408432127745&tin=02508201610067®Number=0000000000091782&sum=100000 [13:58:39]OFD Sender: Processing packet 118102 [packets to send 77, broken 76] [13:58:39]ProducePacketName [13:58:39]name=ofd_packets/00118102 [13:58:39]OFD Sender: To server: pG, [13:58:39]CommunicateWithHost lk.salyk.kg:30040 [13:58:39]ConnectInit lk.salyk.kg [13:58:39]written 0, free lines is 4095 [13:58:39]Connected sock=10 [13:58:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 06 D5 04 01 C3 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 8E 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 56 CD 01 00 35 04 06 00 90 12 56 53 8F 01 97 60 EA 96 F5 11 99 B9 [13:58: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 36 37 4F 00 00 00 FD 39 47 00 5A 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 56 CD 01 00 F4 03 04 00 45 E7 21 67 B6 04 01 00 00 24 A3 C6 89 00 1B 79 5A [13:58:39]CommunicateWithHost err = 0 [13:58:39]CheckOFDResponse [13:58:39]1017 (14) - 77093643461234 [13:58:39]1041 (16) - 0000000000871767 [13:58:39]1040 (4) - 118102 [13:58:39]1012 (4) - 30.10.2024 07:59 [13:58:39]1206 (1) - 0 [13:58:39]OFD Sender: Remove packet 118102 [13:58:39]ProducePacketName [13:58:39]name=ofd_packets/00118102 [13:58:39]NVStorageDeleteData [13:58:39]Write to MH i2c: 01 00 00 66 06 6C [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 07 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 B2 0C 31 [13:58:39]RasterBufferAndPrint [13:58:39]line [13:58:39]line [13:58:39]line [13:58:39]line [13:58:39]line [13:58:39]written 0, free lines is 3256 [13:58:39]MH_Cut [13:58:39]Write to MH i2c: D1 01 00 6D 06 01 45 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: D1 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: D1 01 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: D1 01 00 6D 06 00 44 [13:58:39]Write to MH i2c: 01 00 00 6E 06 74 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:40]OFD Sender: No OFD packet to send [13:58:40]*** Cut start [13:58:40]*** Purtial cut [13:58:40]*** Stage 1: CUTSNS_PIN = 1 [13:58:40]Read from MH i2c: 01 [13:58:40]MH_I2C_Read... [13:58:40]*** Stop cut motor [13:58:40]*** Cut end [13:58:40]Read from MH i2c: 01 07 00 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [13:58:40]process_action close_receipt done [13:58:40]requested_data is exist [13:58:40]produce_requested_data [13:58:40]requested_item fm.sn is exist - process it [13:58:40]wFMCommunicate request_size=4 [13:58:40]MH_SAM_APDU [13:58:40]CAPDU: 80 11 00 00 [13:58:40]Write to MH i2c: E2 08 00 6F 06 80 11 00 00 00 00 00 00 EF [13:58:40]Write i2c OK [13:58:40]MH_I2C_Read... [13:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:40]Read from MH i2c: E2 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: E2 17 00 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: E2 17 00 6F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 46 [13:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:58:40]wFMCommunicate OK [13:58:40]requested_item fd.num is exist - process it [13:58:40]SAM_PROTO_GetFieldsCounters [13:58:40]wFMCommunicate request_size=4 [13:58:40]MH_SAM_APDU [13:58:40]CAPDU: 80 13 00 00 [13:58:40]Write to MH i2c: E2 08 00 70 06 80 13 00 00 00 00 00 00 F2 [13:58:40]Write i2c OK [13:58:40]MH_I2C_Read... [13:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:41]Read from MH i2c: E2 [13:58:41]MH_I2C_Read... [13:58:41]Read from MH i2c: E2 62 00 [13:58:41]MH_I2C_Read... [13:58:41]Read from MH i2c: E2 62 00 70 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 56 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [13:58:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 56 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:41]wFMCommunicate OK [13:58:41]SAM_PROTO_GetFieldsCounters done [13:58:41]requested_item shift.num is exist - process it [13:58:41]requested_item shift.opened is exist - process it [13:58:41]req_shift_opened [13:58:41]FM_GetShiftState [13:58:41]SAM_PROTO_GetShiftState [13:58:41]wFMCommunicate request_size=4 [13:58:41]MH_SAM_APDU [13:58:41]CAPDU: 80 13 01 00 [13:58:41]Write to MH i2c: E2 08 00 71 06 80 13 01 00 00 00 00 00 F4 [13:58:41]Write i2c OK [13:58:41]MH_I2C_Read... [13:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:41]Read from MH i2c: E2 [13:58:41]MH_I2C_Read... [13:58:41]Read from MH i2c: E2 0E 00 [13:58:41]MH_I2C_Read... [13:58:41]Read from MH i2c: E2 0E 00 71 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CC [13:58:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:58:41]wFMCommunicate OK [13:58:41]SAM_PROTO_GetShiftState done [13:58:41]FM_GetShiftState done [13:58:41]req_shift_opened done [13:58:41]requested_item shift.open_date is exist - process it [13:58:41]req_shift_open_date [13:58:41]req_shift_open_date done [13:58:41]produce_requested_data done [13:58:41]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118102,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:58:41]process_action_free close_receipt [13:58:41]json_value_free [13:58:41]json_value_free done [13:58:41]process_json_proto returns [13:58:41]Send response to host [13:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118102,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:58:41]free response buf [13:58:41]execute_script done [13:58:41]execute_script returns [13:58:41]free content buf [13:58:41]Sock 7.Close socket [13:58:41]Sock 7.Thread stoped [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:24]accept exits with 9 [13:59:24]New connection [13:59:24]New thread 3066695012 created [13:59:24]Thread 3066551652 joined [13:59:24]Waiting for new connection... [13:59:24] Sock 9.Parse request [13:59:24]Sock 9.Check first char [13:59:24]Sock 9.First char is OK [13:59:24]request: POST /json_proto HTTP/1.0 [13:59:24]Method: POST [13:59:24]URL: /json_proto [13:59:24]Method is POST - this is cgi request [13:59:24]url: /json_proto [13:59:24]query_string will be loaded in cgi processing [13:59:24]execute_cgi json_proto POST (null) [13:59:24]execute_cgi path=json_proto method=POST [13:59:24]POST find Content-Length [13:59:24]Host: 172.17.96.67:8080 [13:59:24]Content-Length: 677 [13:59:24]Content-Type: application/json [13:59:24] [13:59:24]POST finish read [13:59:24]Found Content-Length = 677 [13:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:59:24]execute_script... [13:59: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)245899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:59:24]POST & json_proto [13:59:24]process_json_proto [13:59:24]json parsed OK: [13:59:24]protocol is kg_v1.0 [13:59:24]action value=close_receipt [13:59:24]process_action close_receipt [13:59:24]cmd_close_receipt [13:59:24]MH_GetDate [13:59:24]Write to MH i2c: F0 00 00 72 06 67 [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: F0 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: F0 09 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: F0 09 00 72 06 00 BD 3B 22 67 47 6C 1F 67 2A [13:59:24]GetLastDocTimeStamp 1730296718 [13:59:24]current date 1730296765 [13:59:24]FM_GetShiftState [13:59:24]SAM_PROTO_GetShiftState [13:59:24]wFMCommunicate request_size=4 [13:59:24]MH_SAM_APDU [13:59:24]CAPDU: 80 13 01 00 [13:59:24]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:24]Read from MH i2c: E2 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 0E 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CE [13:59:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:59:24]wFMCommunicate OK [13:59:24]SAM_PROTO_GetShiftState done [13:59:24]FM_GetShiftState done [13:59:24]opened in 1730246605 [13:59:24]opened+sec_in_day 1730333005 [13:59:24]quantity*price = 20003 [13:59:24]sum+1 = 20004 [13:59:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 163 30.10.2024 13:59 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118103 ФПД: 107590159144279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135925&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118103&fm=107590159144279&tin=02508201610067®Number=0000000000091782&sum=20000 [13:59:25]StoreToDocumentArchive [13:59:25]shift 545 fd 118103 [13:59:25]save to /storage/0545/doc_00118103 [13:59:25]save last doc name /storage/0545/doc_00118103 to /storage/kkm_last_doc_name [13:59:25]save OK [13:59:25]Clear old archive folders... [13:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:25]tlvbuf is 000E6900 [13:59:25]SAM_PROTO_ClearQueue [13:59:25]wFMCommunicate request_size=4 [13:59:25]MH_SAM_APDU [13:59:25]CAPDU: 80 09 00 00 [13:59:25]Write to MH i2c: E2 08 00 80 06 80 09 00 00 00 00 00 00 F8 [13:59:25]Write i2c OK [13:59:25]MH_I2C_Read... [13:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:25]Read from MH i2c: E2 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [13:59:25]RAPDU: 90 00 [13:59:25]wFMCommunicate OK [13:59:25]SAM_PROTO_ClearQueue done [13:59:25]KKMCreateOFDPacket [13:59:25]OFDProtocolAddRootSTLVToBuf [13:59:25]FM_MakeSignedData [13:59:25]FM_MakeSignedData [13:59:25]SAM_PROTO_SignData [13:59:25]wFMCommunicate request_size=4 [13:59:25]MH_SAM_APDU [13:59:25]CAPDU: 80 0D 01 02 [13:59:25]Write to MH i2c: E2 08 00 81 06 80 0D 01 02 00 00 00 00 00 [13:59:25]Write i2c OK [13:59:25]MH_I2C_Read... [13:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:25]Read from MH i2c: E2 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [13:59:25]RAPDU: 90 00 [13:59:25]wFMCommunicate OK [13:59:25]wFMCommunicate request_size=255 [13:59:25]MH_SAM_APDU [13:59:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A3 00 00 00 F4 03 04 00 BD 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 57 CD 01 00 35 04 06 00 61 [13:59:25]Write to MH i2c: E2 02 01 82 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A3 00 00 00 F4 03 04 00 BD 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 57 CD 01 00 35 04 06 00 61 00 00 21 [13:59:25]Write i2c OK [13:59:25]MH_I2C_Read... [13:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:25]Read from MH i2c: E2 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [13:59:25]RAPDU: 90 00 [13:59:25]wFMCommunicate OK [13:59:25]wFMCommunicate request_size=10 [13:59:25]MH_SAM_APDU [13:59:25]CAPDU: 80 0D 02 02 05 DA 49 37 95 57 [13:59:25]Write to MH i2c: E2 0D 00 83 06 80 0D 02 02 05 00 DA 49 37 95 57 00 00 53 [13:59:25]Write i2c OK [13:59:25]MH_I2C_Read... [13:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:25]Read from MH i2c: E2 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [13:59:25]RAPDU: 90 00 [13:59:25]wFMCommunicate OK [13:59:25]wFMCommunicate request_size=4 [13:59:25]MH_SAM_APDU [13:59:25]CAPDU: 80 0D 03 02 [13:59:25]Write to MH i2c: E2 08 00 84 06 80 0D 03 02 00 00 00 00 05 [13:59:25]Write i2c OK [13:59:25]MH_I2C_Read... [13:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:25]Read from MH i2c: E2 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 0B 00 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 0B 00 84 06 00 3F B2 46 AF C2 F4 CA E5 90 00 51 [13:59:25]RAPDU: 3F B2 46 AF C2 F4 CA E5 90 00 [13:59:25]wFMCommunicate OK [13:59:25]SAM_PROTO_SignData done [13:59:25]FM_MakeSignedData done [13:59:25]CreateOFDProtocolMessage [13:59:25]wFMCommunicate request_size=4 [13:59:25]MH_SAM_APDU [13:59:25]CAPDU: 80 11 00 00 [13:59:25]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [13:59:25]Write i2c OK [13:59:25]MH_I2C_Read... [13:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:25]Read from MH i2c: E2 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 17 00 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: E2 17 00 85 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5C [13:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:59:25]wFMCommunicate OK [13:59:25]CreateOFDProtocolMessage done [13:59:25]OFDSenderStorePacket 118103 [13:59:25]StoreOFDPacket docnum=118103 [13:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 06 CE 07 01 E3 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A3 00 00 00 F4 03 04 00 BD 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 57 CD 01 00 35 04 06 00 61 DA 49 37 95 57 3F B2 46 AF C2 F4 CA E5 [13:59:25]CheckFolder [13:59:25]dirname=/storage/ofd_packets [13:59:25]CheckFolder done [13:59:25]ProducePacketName [13:59:25]name=ofd_packets/00118103 [13:59:25]NVStorageSaveData ofd_packets/00118103 [13:59:25]File name is /storage/ofd_packets/00118103 [13:59:25]Write 301 bytes [13:59:25]NVStorageSaveData done [13:59:25]OFDSenderStorePacket done [13:59:25]KKMCreateOFDPacket done [13:59:25]NVStorageSaveData kkm_last_timestamp [13:59:25]File name is /storage/kkm_last_timestamp [13:59:25]Write 4 bytes [13:59:25]NVStorageSaveData done [13:59:25]ExternCall_PrintAddStr [13:59:25]wPrintStart [13:59:25]Write to MH i2c: 01 00 00 86 06 8C [13:59:25]Write i2c OK [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: 01 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: 01 07 00 [13:59:25]MH_I2C_Read... [13:59:25]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [13:59:25]RasterBufferAndPrint [13:59:25]line Счет N : (1)245899 [13:59:25]line ИНН: 02508201610067 [13:59:25]line Контрольно-Кассовый Чек [13:59:25]line ПРОДАЖА [13:59:25]line ТРК (МРК, ГНК) : 21 [13:59:25]line Товар: 2710124130 [13:59:25]line Аи-92-К-2 [13:59:25]line 2.990 * 66.90 [13:59:25]line = 200.03 [13:59:25]line НДС 12% НСП 1% [13:59:25]line > о реализуемом товаре [13:59:25]line ОКРУГЛЕНИЕ: -0.03 [13:59:25]line ИТОГО: 200.00 [13:59:25]line Внесено: 200.00 [13:59:25]line СДАЧА: 0.00 [13:59:25]line НСП 1% : 1.77 [13:59:25]line НДС 12% : 21.24 [13:59:25]line Наличными: 200.00 [13:59:25]line Безнал.: 0.00 [13:59:25]line Место: АЗС № 173 "Партнер Нефть" [13:59:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [13:59:25]line СНО: Общий режим [13:59:25]line Чек 163 30.10.2024 13:59 [13:59:25]line Смена: 545 ФФД: 1.0 [13:59:25]line ЗНМ: 0300000115 [13:59:25]line РНМ: 0000000000091782 [13:59:25]line Версия ККМ: 001 [13:59:25]line ФМ: 0000000000871767 [13:59:25]line ФД: 118103 [13:59:25]line ФПД: 107590159144279 [13:59:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135925&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118103&fm=107590159144279&tin=02508201610067®Number=0000000000091782&sum=20000 [13:59:26]OFD Sender: Processing packet 118103 [packets to send 77, broken 76] [13:59:26]ProducePacketName [13:59:26]name=ofd_packets/00118103 [13:59:26]OFD Sender: To server: pG, [13:59:26]CommunicateWithHost lk.salyk.kg:30040 [13:59:26]ConnectInit lk.salyk.kg [13:59:26]written 0, free lines is 4095 [13:59:26]Connected sock=10 [13:59: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 36 37 0F 01 00 00 06 CE 07 01 E3 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A3 00 00 00 F4 03 04 00 BD 3B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 57 CD 01 00 35 04 06 00 61 DA 49 37 95 57 3F B2 46 AF C2 F4 CA E5 [13:59: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 36 37 4F 00 00 00 82 3B 47 00 C4 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 36 37 10 04 04 00 57 CD 01 00 F4 03 04 00 74 E7 21 67 B6 04 01 00 00 4B 31 B1 D4 C9 C8 54 BC [13:59:26]CommunicateWithHost err = 0 [13:59:26]CheckOFDResponse [13:59:26]1017 (14) - 77093643461234 [13:59:26]1041 (16) - 0000000000871767 [13:59:26]1040 (4) - 118103 [13:59:26]1012 (4) - 30.10.2024 07:59 [13:59:26]1206 (1) - 0 [13:59:26]OFD Sender: Remove packet 118103 [13:59:26]ProducePacketName [13:59:26]name=ofd_packets/00118103 [13:59:26]NVStorageDeleteData [13:59:26]Write to MH i2c: 01 00 00 B0 06 B6 [13:59:26]Write i2c OK [13:59:26]MH_I2C_Read... [13:59:26]Read from MH i2c: 01 [13:59:26]MH_I2C_Read... [13:59:26]Read from MH i2c: 01 07 00 [13:59:26]MH_I2C_Read... [13:59:26]Read from MH i2c: 01 07 00 B0 06 00 00 00 00 00 B6 0C 7F [13:59:26]RasterBufferAndPrint [13:59:26]line [13:59:26]line [13:59:26]line [13:59:26]line [13:59:26]line [13:59:26]written 0, free lines is 3260 [13:59:26]MH_Cut [13:59:26]Write to MH i2c: D1 01 00 B7 06 01 8F [13:59:26]Write i2c OK [13:59:26]MH_I2C_Read... [13:59:26]Read from MH i2c: D1 [13:59:26]MH_I2C_Read... [13:59:26]Read from MH i2c: D1 01 00 [13:59:26]MH_I2C_Read... [13:59:26]Read from MH i2c: D1 01 00 B7 06 00 8E [13:59:26]Write to MH i2c: 01 00 00 B8 06 BE [13:59:26]Write i2c OK [13:59:26]MH_I2C_Read... [13:59:27]OFD Sender: No OFD packet to send [13:59:27]*** Cut start [13:59:27]*** Purtial cut [13:59:27]*** Stage 1: CUTSNS_PIN = 1 [13:59:27]Read from MH i2c: 01 [13:59:27]MH_I2C_Read... [13:59:27]*** Stop cut motor [13:59:27]*** Cut end [13:59:27]Read from MH i2c: 01 07 00 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: 01 07 00 B8 06 00 00 00 00 00 FF 0F D3 [13:59:27]process_action close_receipt done [13:59:27]requested_data is exist [13:59:27]produce_requested_data [13:59:27]requested_item fm.sn is exist - process it [13:59:27]wFMCommunicate request_size=4 [13:59:27]MH_SAM_APDU [13:59:27]CAPDU: 80 11 00 00 [13:59:27]Write to MH i2c: E2 08 00 B9 06 80 11 00 00 00 00 00 00 39 [13:59:27]Write i2c OK [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 [13:59:27]MH_I2C_Read... [13:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:27]Read from MH i2c: E2 17 00 [13:59:27]MH_I2C_Read... [13:59:27]Read from MH i2c: E2 17 00 B9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 90 [13:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [13:59:27]wFMCommunicate OK [13:59:27]requested_item fd.num is exist - process it [13:59:27]SAM_PROTO_GetFieldsCounters [13:59:27]wFMCommunicate request_size=4 [13:59:27]MH_SAM_APDU [13:59:27]CAPDU: 80 13 00 00 [13:59:27]Write to MH i2c: E2 08 00 BA 06 80 13 00 00 00 00 00 00 3C [13:59:27]Write i2c OK [13:59:27]MH_I2C_Read... [13:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:28]Read from MH i2c: E2 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 62 00 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 62 00 BA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 57 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [13:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 57 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:28]wFMCommunicate OK [13:59:28]SAM_PROTO_GetFieldsCounters done [13:59:28]requested_item shift.num is exist - process it [13:59:28]requested_item shift.opened is exist - process it [13:59:28]req_shift_opened [13:59:28]FM_GetShiftState [13:59:28]SAM_PROTO_GetShiftState [13:59:28]wFMCommunicate request_size=4 [13:59:28]MH_SAM_APDU [13:59:28]CAPDU: 80 13 01 00 [13:59:28]Write to MH i2c: E2 08 00 BB 06 80 13 01 00 00 00 00 00 3E [13:59:28]Write i2c OK [13:59:28]MH_I2C_Read... [13:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:28]Read from MH i2c: E2 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 0E 00 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 0E 00 BB 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 16 [13:59:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [13:59:28]wFMCommunicate OK [13:59:28]SAM_PROTO_GetShiftState done [13:59:28]FM_GetShiftState done [13:59:28]req_shift_opened done [13:59:28]requested_item shift.open_date is exist - process it [13:59:28]req_shift_open_date [13:59:28]req_shift_open_date done [13:59:28]produce_requested_data done [13:59:28]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118103,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [13:59:28]process_action_free close_receipt [13:59:28]json_value_free [13:59:28]json_value_free done [13:59:28]process_json_proto returns [13:59:28]Send response to host [13:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118103,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [13:59:28]free response buf [13:59:28]execute_script done [13:59:28]execute_script returns [13:59:28]free content buf [13:59:28]Sock 9.Close socket [13:59:28]Sock 9.Thread stoped [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:00:57]accept exits with 7 [14:00:57]New connection [14:00:57]New thread 3066551652 created [14:00:57]Thread 3066695012 joined [14:00:57]Waiting for new connection... [14:00:57] Sock 7.Parse request [14:00:57]Sock 7.Check first char [14:00:57]Sock 7.First char is OK [14:00:57]request: POST /json_proto HTTP/1.0 [14:00:57]Method: POST [14:00:57]URL: /json_proto [14:00:57]Method is POST - this is cgi request [14:00:57]url: /json_proto [14:00:57]query_string will be loaded in cgi processing [14:00:57]execute_cgi json_proto POST (null) [14:00:57]execute_cgi path=json_proto method=POST [14:00:57]POST find Content-Length [14:00:57]Host: 172.17.96.67:8080 [14:00:57]Content-Length: 677 [14:00:57]Content-Type: application/json [14:00:57] [14:00:57]POST finish read [14:00:57]Found Content-Length = 677 [14:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:00:57]execute_script... [14:00: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)245900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:00:57]POST & json_proto [14:00:57]process_json_proto [14:00:57]json parsed OK: [14:00:57]protocol is kg_v1.0 [14:00:57]action value=close_receipt [14:00:57]process_action close_receipt [14:00:57]cmd_close_receipt [14:00:57]MH_GetDate [14:00:57]Write to MH i2c: F0 00 00 BC 06 B1 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: F0 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: F0 09 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: F0 09 00 BC 06 00 1A 3C 22 67 47 6C 1F 67 D2 [14:00:57]GetLastDocTimeStamp 1730296765 [14:00:57]current date 1730296858 [14:00:57]FM_GetShiftState [14:00:57]SAM_PROTO_GetShiftState [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 13 01 00 [14:00:57]Write to MH i2c: E2 08 00 BD 06 80 13 01 00 00 00 00 00 40 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0E 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0E 00 BD 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 18 [14:00:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_GetShiftState done [14:00:57]FM_GetShiftState done [14:00:57]opened in 1730246605 [14:00:57]opened+sec_in_day 1730333005 [14:00:57]quantity*price = 50041 [14:00:57]sum+1 = 50042 [14:00: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 164 30.10.2024 14:00 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118104 ФПД: 255847452724377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140058&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118104&fm=255847452724377&tin=02508201610067®Number=0000000000091782&sum=50000 [14:00:58]StoreToDocumentArchive [14:00:58]shift 545 fd 118104 [14:00:58]save to /storage/0545/doc_00118104 [14:00:58]save last doc name /storage/0545/doc_00118104 to /storage/kkm_last_doc_name [14:00:58]save OK [14:00:58]Clear old archive folders... [14:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:58]tlvbuf is 000DDE00 [14:00:58]SAM_PROTO_ClearQueue [14:00:58]wFMCommunicate request_size=4 [14:00:58]MH_SAM_APDU [14:00:58]CAPDU: 80 09 00 00 [14:00:58]Write to MH i2c: E2 08 00 CA 06 80 09 00 00 00 00 00 00 42 [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:58]Read from MH i2c: E2 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [14:00:58]RAPDU: 90 00 [14:00:58]wFMCommunicate OK [14:00:58]SAM_PROTO_ClearQueue done [14:00:58]KKMCreateOFDPacket [14:00:58]OFDProtocolAddRootSTLVToBuf [14:00:58]FM_MakeSignedData [14:00:58]FM_MakeSignedData [14:00:58]SAM_PROTO_SignData [14:00:58]wFMCommunicate request_size=4 [14:00:58]MH_SAM_APDU [14:00:58]CAPDU: 80 0D 01 02 [14:00:58]Write to MH i2c: E2 08 00 CB 06 80 0D 01 02 00 00 00 00 4A [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:58]Read from MH i2c: E2 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [14:00:58]RAPDU: 90 00 [14:00:58]wFMCommunicate OK [14:00:58]wFMCommunicate request_size=255 [14:00:58]MH_SAM_APDU [14:00:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 1A 3C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 58 CD 01 00 35 04 06 00 E8 [14:00:58]Write to MH i2c: E2 02 01 CC 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A4 00 00 00 F4 03 04 00 1A 3C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 58 CD 01 00 35 04 06 00 E8 00 00 90 [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:58]Read from MH i2c: E2 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [14:00:58]RAPDU: 90 00 [14:00:58]wFMCommunicate OK [14:00:58]wFMCommunicate request_size=10 [14:00:58]MH_SAM_APDU [14:00:58]CAPDU: 80 0D 02 02 05 B1 20 89 4C 99 [14:00:58]Write to MH i2c: E2 0D 00 CD 06 80 0D 02 02 05 00 B1 20 89 4C 99 00 00 96 [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:58]Read from MH i2c: E2 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [14:00:58]RAPDU: 90 00 [14:00:58]wFMCommunicate OK [14:00:58]wFMCommunicate request_size=4 [14:00:58]MH_SAM_APDU [14:00:58]CAPDU: 80 0D 03 02 [14:00:58]Write to MH i2c: E2 08 00 CE 06 80 0D 03 02 00 00 00 00 4F [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:58]Read from MH i2c: E2 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 0B 00 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: E2 0B 00 CE 06 00 8E D4 A3 DD AE 98 45 26 90 00 E3 [14:00:58]RAPDU: 8E D4 A3 DD AE 98 45 26 90 00 [14:00:58]wFMCommunicate OK [14:00:58]SAM_PROTO_SignData done [14:00:58]FM_MakeSignedData done [14:00:58]CreateOFDProtocolMessage [14:00:58]wFMCommunicate request_size=4 [14:00:58]MH_SAM_APDU [14:00:58]CAPDU: 80 11 00 00 [14:00:58]Write to MH i2c: E2 08 00 CF 06 80 11 00 00 00 00 00 00 4F [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:59]Read from MH i2c: E2 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 17 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 17 00 CF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A6 [14:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:00:59]wFMCommunicate OK [14:00:59]CreateOFDProtocolMessage done [14:00:59]OFDSenderStorePacket 118104 [14:00:59]StoreOFDPacket docnum=118104 [14:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8C F3 07 01 4B 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 32 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 A4 00 00 00 F4 03 04 00 1A 3C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 58 CD 01 00 35 04 06 00 E8 B1 20 89 4C 99 8E D4 A3 DD AE 98 45 26 [14:00:59]CheckFolder [14:00:59]dirname=/storage/ofd_packets [14:00:59]CheckFolder done [14:00:59]ProducePacketName [14:00:59]name=ofd_packets/00118104 [14:00:59]NVStorageSaveData ofd_packets/00118104 [14:00:59]File name is /storage/ofd_packets/00118104 [14:00:59]Write 301 bytes [14:00:59]NVStorageSaveData done [14:00:59]OFDSenderStorePacket done [14:00:59]KKMCreateOFDPacket done [14:00:59]NVStorageSaveData kkm_last_timestamp [14:00:59]File name is /storage/kkm_last_timestamp [14:00:59]Write 4 bytes [14:00:59]NVStorageSaveData done [14:00:59]ExternCall_PrintAddStr [14:00:59]wPrintStart [14:00:59]Write to MH i2c: 01 00 00 D0 06 D6 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 07 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 FF 0F EB [14:00:59]RasterBufferAndPrint [14:00:59]line Счет N : (1)245900 [14:00:59]line ИНН: 02508201610067 [14:00:59]line Контрольно-Кассовый Чек [14:00:59]line ПРОДАЖА [14:00:59]line ТРК (МРК, ГНК) : 11 [14:00:59]line Товар: 2710124130 [14:00:59]line Аи-92-К-2 [14:00:59]line 7.480 * 66.90 [14:00:59]line = 500.41 [14:00:59]line НДС 12% НСП 1% [14:00:59]line > о реализуемом товаре [14:00:59]line ОКРУГЛЕНИЕ: -0.41 [14:00:59]line ИТОГО: 500.00 [14:00:59]line Внесено: 500.00 [14:00:59]line СДАЧА: 0.00 [14:00:59]line НСП 1% : 4.43 [14:00:59]line НДС 12% : 53.14 [14:00:59]line Наличными: 500.00 [14:00:59]line Безнал.: 0.00 [14:00:59]line Место: АЗС № 173 "Партнер Нефть" [14:00:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:00:59]line СНО: Общий режим [14:00:59]line Чек 164 30.10.2024 14:00 [14:00:59]line Смена: 545 ФФД: 1.0 [14:00:59]line ЗНМ: 0300000115 [14:00:59]line РНМ: 0000000000091782 [14:00:59]line Версия ККМ: 001 [14:00:59]line ФМ: 0000000000871767 [14:00:59]line ФД: 118104 [14:00:59]line ФПД: 255847452724377 [14:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140058&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118104&fm=255847452724377&tin=02508201610067®Number=0000000000091782&sum=50000 [14:00:59]written 0, free lines is 4095 [14:00:59]OFD Sender: Processing packet 118104 [packets to send 77, broken 76] [14:00:59]ProducePacketName [14:00:59]name=ofd_packets/00118104 [14:00:59]OFD Sender: To server: pG, [14:00:59]CommunicateWithHost lk.salyk.kg:30040 [14:00:59]ConnectInit lk.salyk.kg [14:00:59]Connected sock=10 [14:00: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 36 37 0F 01 00 00 8C F3 07 01 4B 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 32 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 A4 00 00 00 F4 03 04 00 1A 3C 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 58 CD 01 00 35 04 06 00 E8 B1 20 89 4C 99 8E D4 A3 DD AE 98 45 26 [14:00: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 36 37 4F 00 00 00 61 2B 47 00 96 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 36 37 10 04 04 00 58 CD 01 00 F4 03 04 00 D1 E7 21 67 B6 04 01 00 00 FD D3 7B 81 37 7D 61 74 [14:00:59]CommunicateWithHost err = 0 [14:00:59]CheckOFDResponse [14:00:59]1017 (14) - 77093643461234 [14:00:59]1041 (16) - 0000000000871767 [14:00:59]1040 (4) - 118104 [14:00:59]1012 (4) - 30.10.2024 08:01 [14:00:59]1206 (1) - 0 [14:00:59]OFD Sender: Remove packet 118104 [14:00:59]ProducePacketName [14:00:59]name=ofd_packets/00118104 [14:00:59]NVStorageDeleteData [14:00:59]Write to MH i2c: 01 00 00 FA 06 00 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 07 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 07 00 FA 06 00 00 00 00 00 B7 0C CA [14:00:59]RasterBufferAndPrint [14:00:59]line [14:00:59]line [14:00:59]line [14:00:59]line [14:00:59]line [14:00:59]written 0, free lines is 3259 [14:00:59]MH_Cut [14:00:59]Write to MH i2c: D1 01 00 01 07 01 DA [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: D1 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: D1 01 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: D1 01 00 01 07 00 D9 [14:00:59]Write to MH i2c: 01 00 00 02 07 09 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]OFD Sender: No OFD packet to send [14:01:00]*** Cut start [14:01:00]*** Purtial cut [14:01:00]*** Stage 1: CUTSNS_PIN = 1 [14:01:00]Read from MH i2c: 01 [14:01:00]MH_I2C_Read... [14:01:00]*** Stop cut motor [14:01:00]*** Cut end [14:01:00]Read from MH i2c: 01 07 00 [14:01:00]MH_I2C_Read... [14:01:00]Read from MH i2c: 01 07 00 02 07 00 00 00 00 00 FF 0F 1E [14:01:00]process_action close_receipt done [14:01:00]requested_data is exist [14:01:00]produce_requested_data [14:01:00]requested_item fm.sn is exist - process it [14:01:00]wFMCommunicate request_size=4 [14:01:00]MH_SAM_APDU [14:01:00]CAPDU: 80 11 00 00 [14:01:00]Write to MH i2c: E2 08 00 03 07 80 11 00 00 00 00 00 00 84 [14:01:00]Write i2c OK [14:01:00]MH_I2C_Read... [14:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:00]Read from MH i2c: E2 [14:01:00]MH_I2C_Read... [14:01:00]Read from MH i2c: E2 17 00 [14:01:00]MH_I2C_Read... [14:01:00]Read from MH i2c: E2 17 00 03 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DB [14:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:01:00]wFMCommunicate OK [14:01:00]requested_item fd.num is exist - process it [14:01:00]SAM_PROTO_GetFieldsCounters [14:01:00]wFMCommunicate request_size=4 [14:01:00]MH_SAM_APDU [14:01:00]CAPDU: 80 13 00 00 [14:01:00]Write to MH i2c: E2 08 00 04 07 80 13 00 00 00 00 00 00 87 [14:01:00]Write i2c OK [14:01:00]MH_I2C_Read... [14:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:00]Read from MH i2c: E2 [14:01:00]MH_I2C_Read... [14:01:00]Read from MH i2c: E2 62 00 [14:01:00]MH_I2C_Read... [14:01:00]Read from MH i2c: E2 62 00 04 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 58 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [14:01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 58 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:00]wFMCommunicate OK [14:01:00]SAM_PROTO_GetFieldsCounters done [14:01:00]requested_item shift.num is exist - process it [14:01:00]requested_item shift.opened is exist - process it [14:01:00]req_shift_opened [14:01:00]FM_GetShiftState [14:01:00]SAM_PROTO_GetShiftState [14:01:00]wFMCommunicate request_size=4 [14:01:00]MH_SAM_APDU [14:01:00]CAPDU: 80 13 01 00 [14:01:00]Write to MH i2c: E2 08 00 05 07 80 13 01 00 00 00 00 00 89 [14:01:00]Write i2c OK [14:01:00]MH_I2C_Read... [14:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:00]Read from MH i2c: E2 [14:01:00]MH_I2C_Read... [14:01:00]Read from MH i2c: E2 0E 00 [14:01:00]MH_I2C_Read... [14:01:00]Read from MH i2c: E2 0E 00 05 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 61 [14:01:00]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:01:00]wFMCommunicate OK [14:01:00]SAM_PROTO_GetShiftState done [14:01:00]FM_GetShiftState done [14:01:00]req_shift_opened done [14:01:00]requested_item shift.open_date is exist - process it [14:01:00]req_shift_open_date [14:01:00]req_shift_open_date done [14:01:00]produce_requested_data done [14:01:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118104,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:01:00]process_action_free close_receipt [14:01:00]json_value_free [14:01:00]json_value_free done [14:01:00]process_json_proto returns [14:01:00]Send response to host [14:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118104,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:01:00]free response buf [14:01:00]execute_script done [14:01:00]execute_script returns [14:01:00]free content buf [14:01:00]Sock 7.Close socket [14:01:00]Sock 7.Thread stoped [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:08]accept exits with 9 [14:06:08]New connection [14:06:08]New thread 3066695012 created [14:06:08]Thread 3066551652 joined [14:06:08]Waiting for new connection... [14:06:08] Sock 9.Parse request [14:06:08]Sock 9.Check first char [14:06:08]Sock 9.First char is OK [14:06:08]request: POST /json_proto HTTP/1.0 [14:06:08]Method: POST [14:06:08]URL: /json_proto [14:06:08]Method is POST - this is cgi request [14:06:08]url: /json_proto [14:06:08]query_string will be loaded in cgi processing [14:06:08]execute_cgi json_proto POST (null) [14:06:08]execute_cgi path=json_proto method=POST [14:06:08]POST find Content-Length [14:06:08]Host: 172.17.96.67:8080 [14:06:08]Content-Length: 984 [14:06:08]Content-Type: application/json [14:06:08] [14:06:08]POST finish read [14:06:08]Found Content-Length = 984 [14:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:06:08]execute_script... [14:06: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)245901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:06:08]POST & json_proto [14:06:08]process_json_proto [14:06:08]json parsed OK: [14:06:08]protocol is kg_v1.0 [14:06:08]action value=close_receipt [14:06:08]process_action close_receipt [14:06:08]cmd_close_receipt [14:06:08]MH_GetDate [14:06:08]Write to MH i2c: F0 00 00 06 07 FC [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 09 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 09 00 06 07 00 51 3D 22 67 47 6C 1F 67 55 [14:06:08]GetLastDocTimeStamp 1730296858 [14:06:08]current date 1730297169 [14:06:08]FM_GetShiftState [14:06:08]SAM_PROTO_GetShiftState [14:06:08]wFMCommunicate request_size=4 [14:06:08]MH_SAM_APDU [14:06:08]CAPDU: 80 13 01 00 [14:06:08]Write to MH i2c: E2 08 00 07 07 80 13 01 00 00 00 00 00 8B [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:08]Read from MH i2c: E2 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 0E 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 0E 00 07 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 63 [14:06:08]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:06:08]wFMCommunicate OK [14:06:08]SAM_PROTO_GetShiftState done [14:06:08]FM_GetShiftState done [14:06:08]opened in 1730246605 [14:06:08]opened+sec_in_day 1730333005 [14:06:08]quantity*price = 200006 [14:06:08]sum+1 = 200008 [14:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 165 30.10.2024 14:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 30.35 сом ФМ: 0000000000871767 ФД: 118105 ФПД: 144342210634300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140609&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118105&fm=144342210634300&tin=02508201610067®Number=0000000000091782&sum=200000 [14:06:09]StoreToDocumentArchive [14:06:09]shift 545 fd 118105 [14:06:09]save to /storage/0545/doc_00118105 [14:06:09]save last doc name /storage/0545/doc_00118105 to /storage/kkm_last_doc_name [14:06:09]save OK [14:06:09]Clear old archive folders... [14:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:09]tlvbuf is 000D9AB0 [14:06:09]SAM_PROTO_ClearQueue [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 09 00 00 [14:06:09]Write to MH i2c: E2 08 00 14 07 80 09 00 00 00 00 00 00 8D [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]SAM_PROTO_ClearQueue done [14:06:09]KKMCreateOFDPacket [14:06:09]OFDProtocolAddRootSTLVToBuf [14:06:09]FM_MakeSignedData [14:06:09]FM_MakeSignedData [14:06:09]SAM_PROTO_SignData [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 01 02 [14:06:09]Write to MH i2c: E2 08 00 15 07 80 0D 01 02 00 00 00 00 95 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]wFMCommunicate request_size=255 [14:06:09]MH_SAM_APDU [14:06: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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 51 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 59 CD 01 00 35 04 06 00 83 [14:06:09]Write to MH i2c: E2 02 01 16 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 51 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 59 CD 01 00 35 04 06 00 83 00 00 37 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]wFMCommunicate request_size=10 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 02 02 05 47 4A 30 E2 3C [14:06:09]Write to MH i2c: E2 0D 00 17 07 80 0D 02 02 05 00 47 4A 30 E2 3C 00 00 81 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 03 02 [14:06:09]Write to MH i2c: E2 08 00 18 07 80 0D 03 02 00 00 00 00 9A [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0B 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0B 00 18 07 00 B8 75 C8 90 21 55 9E C6 90 00 FA [14:06:09]RAPDU: B8 75 C8 90 21 55 9E C6 90 00 [14:06:09]wFMCommunicate OK [14:06:09]SAM_PROTO_SignData done [14:06:09]FM_MakeSignedData done [14:06:09]CreateOFDProtocolMessage [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 11 00 00 [14:06:09]Write to MH i2c: E2 08 00 19 07 80 11 00 00 00 00 00 00 9A [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 17 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 17 00 19 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F1 [14:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:06:09]wFMCommunicate OK [14:06:09]CreateOFDProtocolMessage done [14:06:09]OFDSenderStorePacket 118105 [14:06:09]StoreOFDPacket docnum=118105 [14:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9F 04 07 01 79 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 51 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 59 CD 01 00 35 04 06 00 83 47 4A 30 E2 3C B8 75 C8 90 21 55 9E C6 [14:06:09]CheckFolder [14:06:09]dirname=/storage/ofd_packets [14:06:09]CheckFolder done [14:06:09]ProducePacketName [14:06:09]name=ofd_packets/00118105 [14:06:09]NVStorageSaveData ofd_packets/00118105 [14:06:09]File name is /storage/ofd_packets/00118105 [14:06:09]Write 301 bytes [14:06:09]NVStorageSaveData done [14:06:09]OFDSenderStorePacket done [14:06:09]KKMCreateOFDPacket done [14:06:10]NVStorageSaveData kkm_last_timestamp [14:06:10]File name is /storage/kkm_last_timestamp [14:06:10]Write 4 bytes [14:06:10]NVStorageSaveData done [14:06:10]ExternCall_PrintAddStr [14:06:10]wPrintStart [14:06:10]Write to MH i2c: 01 00 00 1A 07 21 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FF 0F 36 [14:06:10]RasterBufferAndPrint [14:06:10]line Счет N : (1)245901 [14:06:10]line ИНН: 02508201610067 [14:06:10]line Контрольно-Кассовый Чек [14:06:10]line ПРОДАЖА [14:06:10]line ТРК (МРК, ГНК) : 11 [14:06:10]line Товар: 2710124130 [14:06:10]line Аи-92-К-2 [14:06:10]line 30.350 * 65.90 [14:06:10]line = 2000.07 [14:06:10]line НДС 12% НСП 1% [14:06:10]line > о реализуемом товаре [14:06:10]line ОКРУГЛЕНИЕ: -0.07 [14:06:10]line ИТОГО: 2000.00 [14:06:10]line Внесено: 2000.00 [14:06:10]line СДАЧА: 0.00 [14:06:10]line НСП 1% : 17.70 [14:06:10]line НДС 12% : 212.40 [14:06:10]line Наличными: 2000.00 [14:06:10]line Безнал.: 0.00 [14:06:10]line Место: АЗС № 173 "Партнер Нефть" [14:06:10]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:06:10]line СНО: Общий режим [14:06:10]line Чек 165 30.10.2024 14:06 [14:06:10]line Смена: 545 ФФД: 1.0 [14:06:10]line ЗНМ: 0300000115 [14:06:10]line РНМ: 0000000000091782 [14:06:10]line Версия ККМ: 001 [14:06:10]line [14:06:10]line Дисконтная программа [14:06:10]line АИ-92 [14:06:10]line номер 173 [14:06:10]line сэкономлено 30.35 сом [14:06:10]line ФМ: 0000000000871767 [14:06:10]line ФД: 118105 [14:06:10]line ФПД: 144342210634300 [14:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140609&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118105&fm=144342210634300&tin=02508201610067®Number=0000000000091782&sum=200000 [14:06:10]OFD Sender: Processing packet 118105 [packets to send 77, broken 76] [14:06:10]ProducePacketName [14:06:10]name=ofd_packets/00118105 [14:06:10]OFD Sender: To server: pG, [14:06:10]CommunicateWithHost lk.salyk.kg:30040 [14:06:10]ConnectInit lk.salyk.kg [14:06:10]written 0, free lines is 4095 [14:06:10]Connected sock=10 [14:06: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 36 37 0F 01 00 00 9F 04 07 01 79 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 51 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 59 CD 01 00 35 04 06 00 83 47 4A 30 E2 3C B8 75 C8 90 21 55 9E C6 [14:06: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 36 37 4F 00 00 00 CC 49 47 00 FE 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 59 CD 01 00 F4 03 04 00 08 E9 21 67 B6 04 01 00 00 8E ED 2F 3D BB F2 23 3E [14:06:10]CommunicateWithHost err = 0 [14:06:10]CheckOFDResponse [14:06:10]1017 (14) - 77093643461234 [14:06:10]1041 (16) - 0000000000871767 [14:06:10]1040 (4) - 118105 [14:06:10]1012 (4) - 30.10.2024 08:06 [14:06:10]1206 (1) - 0 [14:06:10]OFD Sender: Remove packet 118105 [14:06:10]ProducePacketName [14:06:10]name=ofd_packets/00118105 [14:06:10]NVStorageDeleteData [14:06:10]Write to MH i2c: 01 00 00 49 07 50 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 49 07 00 00 00 00 00 5F 0C C2 [14:06:10]RasterBufferAndPrint [14:06:10]line [14:06:10]line [14:06:10]line [14:06:10]line [14:06:10]line [14:06:10]written 0, free lines is 3172 [14:06:10]MH_Cut [14:06:10]Write to MH i2c: D1 01 00 50 07 01 29 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 01 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 01 00 50 07 00 28 [14:06:10]Write to MH i2c: 01 00 00 51 07 58 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:11]OFD Sender: No OFD packet to send [14:06:11]*** Cut start [14:06:11]*** Purtial cut [14:06:11]*** Stage 1: CUTSNS_PIN = 1 [14:06:12]Read from MH i2c: 01 [14:06:12]MH_I2C_Read... [14:06:12]*** Stop cut motor [14:06:12]*** Cut end [14:06:12]Read from MH i2c: 01 07 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [14:06:12]process_action close_receipt done [14:06:12]requested_data is exist [14:06:12]produce_requested_data [14:06:12]requested_item fm.sn is exist - process it [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 11 00 00 [14:06:12]Write to MH i2c: E2 08 00 52 07 80 11 00 00 00 00 00 00 D3 [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 17 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 17 00 52 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2A [14:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:06:12]wFMCommunicate OK [14:06:12]requested_item fd.num is exist - process it [14:06:12]SAM_PROTO_GetFieldsCounters [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 13 00 00 [14:06:12]Write to MH i2c: E2 08 00 53 07 80 13 00 00 00 00 00 00 D6 [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 62 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 62 00 53 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 59 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [14:06: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 59 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:12]wFMCommunicate OK [14:06:12]SAM_PROTO_GetFieldsCounters done [14:06:12]requested_item shift.num is exist - process it [14:06:12]requested_item shift.opened is exist - process it [14:06:12]req_shift_opened [14:06:12]FM_GetShiftState [14:06:12]SAM_PROTO_GetShiftState [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 13 01 00 [14:06:12]Write to MH i2c: E2 08 00 54 07 80 13 01 00 00 00 00 00 D8 [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 0E 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 0E 00 54 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B0 [14:06:12]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:06:12]wFMCommunicate OK [14:06:12]SAM_PROTO_GetShiftState done [14:06:12]FM_GetShiftState done [14:06:12]req_shift_opened done [14:06:12]requested_item shift.open_date is exist - process it [14:06:12]req_shift_open_date [14:06:12]req_shift_open_date done [14:06:12]produce_requested_data done [14:06:12]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118105,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:06:12]process_action_free close_receipt [14:06:12]json_value_free [14:06:12]json_value_free done [14:06:12]process_json_proto returns [14:06:12]Send response to host [14:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118105,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:06:12]free response buf [14:06:12]execute_script done [14:06:12]execute_script returns [14:06:12]free content buf [14:06:12]Sock 9.Close socket [14:06:12]Sock 9.Thread stoped [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:52]accept exits with 7 [14:08:52]New connection [14:08:52]New thread 3066551652 created [14:08:52]Thread 3066695012 joined [14:08:52]Waiting for new connection... [14:08:52] Sock 7.Parse request [14:08:52]Sock 7.Check first char [14:08:52]Sock 7.First char is OK [14:08:52]request: POST /json_proto HTTP/1.0 [14:08:52]Method: POST [14:08:52]URL: /json_proto [14:08:52]Method is POST - this is cgi request [14:08:52]url: /json_proto [14:08:52]query_string will be loaded in cgi processing [14:08:52]execute_cgi json_proto POST (null) [14:08:52]execute_cgi path=json_proto method=POST [14:08:52]POST find Content-Length [14:08:52]Host: 172.17.96.67:8080 [14:08:52]Content-Length: 677 [14:08:52]Content-Type: application/json [14:08:52] [14:08:52]POST finish read [14:08:52]Found Content-Length = 677 [14:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:08:52]execute_script... [14:08: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)245902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:08:52]POST & json_proto [14:08:52]process_json_proto [14:08:52]json parsed OK: [14:08:52]protocol is kg_v1.0 [14:08:52]action value=close_receipt [14:08:52]process_action close_receipt [14:08:52]cmd_close_receipt [14:08:52]MH_GetDate [14:08:52]Write to MH i2c: F0 00 00 55 07 4B [14:08:52]Write i2c OK [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: F0 [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: F0 09 00 [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: F0 09 00 55 07 00 F5 3D 22 67 47 6C 1F 67 48 [14:08:52]GetLastDocTimeStamp 1730297169 [14:08:52]current date 1730297333 [14:08:52]FM_GetShiftState [14:08:52]SAM_PROTO_GetShiftState [14:08:52]wFMCommunicate request_size=4 [14:08:52]MH_SAM_APDU [14:08:52]CAPDU: 80 13 01 00 [14:08:52]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [14:08:52]Write i2c OK [14:08:52]MH_I2C_Read... [14:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:52]Read from MH i2c: E2 [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: E2 0E 00 [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B2 [14:08:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:08:52]wFMCommunicate OK [14:08:52]SAM_PROTO_GetShiftState done [14:08:52]FM_GetShiftState done [14:08:52]opened in 1730246605 [14:08:52]opened+sec_in_day 1730333005 [14:08:52]quantity*price = 20003 [14:08:52]sum+1 = 20004 [14:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 166 30.10.2024 14:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118106 ФПД: 170017357202092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140853&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118106&fm=170017357202092&tin=02508201610067®Number=0000000000091782&sum=20000 [14:08:53]StoreToDocumentArchive [14:08:53]shift 545 fd 118106 [14:08:53]save to /storage/0545/doc_00118106 [14:08:53]save last doc name /storage/0545/doc_00118106 to /storage/kkm_last_doc_name [14:08:53]save OK [14:08:53]Clear old archive folders... [14:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:53]tlvbuf is 000FAEF0 [14:08:53]SAM_PROTO_ClearQueue [14:08:53]wFMCommunicate request_size=4 [14:08:53]MH_SAM_APDU [14:08:53]CAPDU: 80 09 00 00 [14:08:53]Write to MH i2c: E2 08 00 63 07 80 09 00 00 00 00 00 00 DC [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:53]Read from MH i2c: E2 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [14:08:53]RAPDU: 90 00 [14:08:53]wFMCommunicate OK [14:08:53]SAM_PROTO_ClearQueue done [14:08:53]KKMCreateOFDPacket [14:08:53]OFDProtocolAddRootSTLVToBuf [14:08:53]FM_MakeSignedData [14:08:53]FM_MakeSignedData [14:08:53]SAM_PROTO_SignData [14:08:53]wFMCommunicate request_size=4 [14:08:53]MH_SAM_APDU [14:08:53]CAPDU: 80 0D 01 02 [14:08:53]Write to MH i2c: E2 08 00 64 07 80 0D 01 02 00 00 00 00 E4 [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:53]Read from MH i2c: E2 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [14:08:53]RAPDU: 90 00 [14:08:53]wFMCommunicate OK [14:08:53]wFMCommunicate request_size=255 [14:08:53]MH_SAM_APDU [14:08: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 32 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 A6 00 00 00 F4 03 04 00 F5 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5A CD 01 00 35 04 06 00 9A [14:08:53]Write to MH i2c: E2 02 01 65 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A6 00 00 00 F4 03 04 00 F5 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5A CD 01 00 35 04 06 00 9A 00 00 7E [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:53]Read from MH i2c: E2 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [14:08:53]RAPDU: 90 00 [14:08:53]wFMCommunicate OK [14:08:53]wFMCommunicate request_size=10 [14:08:53]MH_SAM_APDU [14:08:53]CAPDU: 80 0D 02 02 05 A1 40 2E 82 AC [14:08:53]Write to MH i2c: E2 0D 00 66 07 80 0D 02 02 05 00 A1 40 2E 82 AC 00 00 2E [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:53]Read from MH i2c: E2 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [14:08:53]RAPDU: 90 00 [14:08:53]wFMCommunicate OK [14:08:53]wFMCommunicate request_size=4 [14:08:53]MH_SAM_APDU [14:08:53]CAPDU: 80 0D 03 02 [14:08:53]Write to MH i2c: E2 08 00 67 07 80 0D 03 02 00 00 00 00 E9 [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:53]Read from MH i2c: E2 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 0B 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 0B 00 67 07 00 E3 CF 7C DD 59 E8 5A DE 90 00 6E [14:08:53]RAPDU: E3 CF 7C DD 59 E8 5A DE 90 00 [14:08:53]wFMCommunicate OK [14:08:53]SAM_PROTO_SignData done [14:08:53]FM_MakeSignedData done [14:08:53]CreateOFDProtocolMessage [14:08:53]wFMCommunicate request_size=4 [14:08:53]MH_SAM_APDU [14:08:53]CAPDU: 80 11 00 00 [14:08:53]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 17 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 40 [14:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:08:54]wFMCommunicate OK [14:08:54]CreateOFDProtocolMessage done [14:08:54]OFDSenderStorePacket 118106 [14:08:54]StoreOFDPacket docnum=118106 [14:08:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 16 D2 07 01 DB 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A6 00 00 00 F4 03 04 00 F5 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5A CD 01 00 35 04 06 00 9A A1 40 2E 82 AC E3 CF 7C DD 59 E8 5A DE [14:08:54]CheckFolder [14:08:54]dirname=/storage/ofd_packets [14:08:54]CheckFolder done [14:08:54]ProducePacketName [14:08:54]name=ofd_packets/00118106 [14:08:54]NVStorageSaveData ofd_packets/00118106 [14:08:54]File name is /storage/ofd_packets/00118106 [14:08:54]Write 301 bytes [14:08:54]NVStorageSaveData done [14:08:54]OFDSenderStorePacket done [14:08:54]KKMCreateOFDPacket done [14:08:54]NVStorageSaveData kkm_last_timestamp [14:08:54]File name is /storage/kkm_last_timestamp [14:08:54]Write 4 bytes [14:08:54]NVStorageSaveData done [14:08:54]ExternCall_PrintAddStr [14:08:54]wPrintStart [14:08:54]Write to MH i2c: 01 00 00 69 07 70 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: 01 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: 01 07 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 FF 0F 85 [14:08:54]RasterBufferAndPrint [14:08:54]line Счет N : (1)245902 [14:08:54]line ИНН: 02508201610067 [14:08:54]line Контрольно-Кассовый Чек [14:08:54]line ПРОДАЖА [14:08:54]line ТРК (МРК, ГНК) : 11 [14:08:54]line Товар: 2710124130 [14:08:54]line Аи-92-К-2 [14:08:54]line 2.990 * 66.90 [14:08:54]line = 200.03 [14:08:54]line НДС 12% НСП 1% [14:08:54]line > о реализуемом товаре [14:08:54]line ОКРУГЛЕНИЕ: -0.03 [14:08:54]line ИТОГО: 200.00 [14:08:54]line Внесено: 200.00 [14:08:54]line СДАЧА: 0.00 [14:08:54]line НСП 1% : 1.77 [14:08:54]line НДС 12% : 21.24 [14:08:54]line Наличными: 200.00 [14:08:54]line Безнал.: 0.00 [14:08:54]line Место: АЗС № 173 "Партнер Нефть" [14:08:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:08:54]line СНО: Общий режим [14:08:54]line Чек 166 30.10.2024 14:08 [14:08:54]line Смена: 545 ФФД: 1.0 [14:08:54]line ЗНМ: 0300000115 [14:08:54]line РНМ: 0000000000091782 [14:08:54]line Версия ККМ: 001 [14:08:54]line ФМ: 0000000000871767 [14:08:54]line ФД: 118106 [14:08:54]line ФПД: 170017357202092 [14:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140853&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118106&fm=170017357202092&tin=02508201610067®Number=0000000000091782&sum=20000 [14:08:54]written 0, free lines is 4095 [14:08:54]OFD Sender: Processing packet 118106 [packets to send 77, broken 76] [14:08:54]ProducePacketName [14:08:54]name=ofd_packets/00118106 [14:08:54]OFD Sender: To server: pG, [14:08:54]CommunicateWithHost lk.salyk.kg:30040 [14:08:54]ConnectInit lk.salyk.kg [14:08:54]Connected sock=10 [14:08: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 36 37 0F 01 00 00 16 D2 07 01 DB 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A6 00 00 00 F4 03 04 00 F5 3D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5A CD 01 00 35 04 06 00 9A A1 40 2E 82 AC E3 CF 7C DD 59 E8 5A DE [14:08: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 36 37 4F 00 00 00 2B F4 47 00 03 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5A CD 01 00 F4 03 04 00 AC E9 21 67 B6 04 01 00 00 71 B7 B9 9F E1 EF 9E D4 [14:08:54]CommunicateWithHost err = 0 [14:08:54]CheckOFDResponse [14:08:54]1017 (14) - 77093643461234 [14:08:54]1041 (16) - 0000000000871767 [14:08:54]1040 (4) - 118106 [14:08:54]1012 (4) - 30.10.2024 08:09 [14:08:54]1206 (1) - 0 [14:08:54]OFD Sender: Remove packet 118106 [14:08:54]ProducePacketName [14:08:54]name=ofd_packets/00118106 [14:08:54]NVStorageDeleteData [14:08:54]Write to MH i2c: 01 00 00 93 07 9A [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: 01 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: 01 07 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 AD 0C 5A [14:08:54]RasterBufferAndPrint [14:08:54]line [14:08:54]line [14:08:54]line [14:08:54]line [14:08:54]line [14:08:54]written 0, free lines is 3249 [14:08:54]MH_Cut [14:08:54]Write to MH i2c: D1 01 00 9A 07 01 73 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: D1 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: D1 01 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: D1 01 00 9A 07 00 72 [14:08:54]Write to MH i2c: 01 00 00 9B 07 A2 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:55]OFD Sender: No OFD packet to send [14:08:55]*** Cut start [14:08:55]*** Purtial cut [14:08:55]*** Stage 1: CUTSNS_PIN = 1 [14:08:55]Read from MH i2c: 01 [14:08:55]MH_I2C_Read... [14:08:55]*** Stop cut motor [14:08:55]*** Cut end [14:08:55]Read from MH i2c: 01 07 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 FF 0F B7 [14:08:55]process_action close_receipt done [14:08:55]requested_data is exist [14:08:55]produce_requested_data [14:08:55]requested_item fm.sn is exist - process it [14:08:55]wFMCommunicate request_size=4 [14:08:55]MH_SAM_APDU [14:08:55]CAPDU: 80 11 00 00 [14:08:55]Write to MH i2c: E2 08 00 9C 07 80 11 00 00 00 00 00 00 1D [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 17 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 17 00 9C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 74 [14:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:08:56]wFMCommunicate OK [14:08:56]requested_item fd.num is exist - process it [14:08:56]SAM_PROTO_GetFieldsCounters [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 13 00 00 [14:08:56]Write to MH i2c: E2 08 00 9D 07 80 13 00 00 00 00 00 00 20 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 62 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 62 00 9D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [14:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:56]wFMCommunicate OK [14:08:56]SAM_PROTO_GetFieldsCounters done [14:08:56]requested_item shift.num is exist - process it [14:08:56]requested_item shift.opened is exist - process it [14:08:56]req_shift_opened [14:08:56]FM_GetShiftState [14:08:56]SAM_PROTO_GetShiftState [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 13 01 00 [14:08:56]Write to MH i2c: E2 08 00 9E 07 80 13 01 00 00 00 00 00 22 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 0E 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 0E 00 9E 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FA [14:08:56]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:08:56]wFMCommunicate OK [14:08:56]SAM_PROTO_GetShiftState done [14:08:56]FM_GetShiftState done [14:08:56]req_shift_opened done [14:08:56]requested_item shift.open_date is exist - process it [14:08:56]req_shift_open_date [14:08:56]req_shift_open_date done [14:08:56]produce_requested_data done [14:08:56]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118106,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:08:56]process_action_free close_receipt [14:08:56]json_value_free [14:08:56]json_value_free done [14:08:56]process_json_proto returns [14:08:56]Send response to host [14:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118106,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:08:56]free response buf [14:08:56]execute_script done [14:08:56]execute_script returns [14:08:56]free content buf [14:08:56]Sock 7.Close socket [14:08:56]Sock 7.Thread stoped [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:10]accept exits with 9 [14:11:10]New connection [14:11:10]New thread 3066695012 created [14:11:10]Thread 3066551652 joined [14:11:10]Waiting for new connection... [14:11:10] Sock 9.Parse request [14:11:10]Sock 9.Check first char [14:11:10]Sock 9.First char is OK [14:11:10]request: POST /json_proto HTTP/1.0 [14:11:10]Method: POST [14:11:10]URL: /json_proto [14:11:10]Method is POST - this is cgi request [14:11:10]url: /json_proto [14:11:10]query_string will be loaded in cgi processing [14:11:10]execute_cgi json_proto POST (null) [14:11:10]execute_cgi path=json_proto method=POST [14:11:10]POST find Content-Length [14:11:10]Host: 172.17.96.67:8080 [14:11:10]Content-Length: 679 [14:11:10]Content-Type: application/json [14:11:10] [14:11:10]POST finish read [14:11:10]Found Content-Length = 679 [14:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:10]execute_script... [14:11: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)245903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:10]POST & json_proto [14:11:10]process_json_proto [14:11:10]json parsed OK: [14:11:10]protocol is kg_v1.0 [14:11:10]action value=close_receipt [14:11:10]process_action close_receipt [14:11:10]cmd_close_receipt [14:11:10]MH_GetDate [14:11:10]Write to MH i2c: F0 00 00 9F 07 95 [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: F0 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: F0 09 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: F0 09 00 9F 07 00 7F 3E 22 67 47 6C 1F 67 1D [14:11:10]GetLastDocTimeStamp 1730297333 [14:11:10]current date 1730297471 [14:11:10]FM_GetShiftState [14:11:10]SAM_PROTO_GetShiftState [14:11:10]wFMCommunicate request_size=4 [14:11:10]MH_SAM_APDU [14:11:10]CAPDU: 80 13 01 00 [14:11:10]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:10]Read from MH i2c: E2 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 0E 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FC [14:11:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:11:10]wFMCommunicate OK [14:11:10]SAM_PROTO_GetShiftState done [14:11:10]FM_GetShiftState done [14:11:10]opened in 1730246605 [14:11:10]opened+sec_in_day 1730333005 [14:11:10]quantity*price = 300075 [14:11:10]sum+1 = 300077 [14:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 167 30.10.2024 14:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118107 ФПД: 143456118763159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T141112&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118107&fm=143456118763159&tin=02508201610067®Number=0000000000091782&sum=300000 [14:11:12]StoreToDocumentArchive [14:11:12]shift 545 fd 118107 [14:11:12]save to /storage/0545/doc_00118107 [14:11:12]save last doc name /storage/0545/doc_00118107 to /storage/kkm_last_doc_name [14:11:12]save OK [14:11:12]Clear old archive folders... [14:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:12]tlvbuf is 00103ED0 [14:11:12]SAM_PROTO_ClearQueue [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 09 00 00 [14:11:12]Write to MH i2c: E2 08 00 AD 07 80 09 00 00 00 00 00 00 26 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_ClearQueue done [14:11:12]KKMCreateOFDPacket [14:11:12]OFDProtocolAddRootSTLVToBuf [14:11:12]FM_MakeSignedData [14:11:12]FM_MakeSignedData [14:11:12]SAM_PROTO_SignData [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 01 02 [14:11:12]Write to MH i2c: E2 08 00 AE 07 80 0D 01 02 00 00 00 00 2E [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=255 [14:11:12]MH_SAM_APDU [14:11: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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 3E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5B CD 01 00 35 04 06 00 82 78 FA FF [14:11:12]Write to MH i2c: E2 02 01 AF 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 3E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5B CD 01 00 35 04 06 00 82 78 FA FF 00 00 1A [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=7 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 02 02 02 EE 97 [14:11:12]Write to MH i2c: E2 0A 00 B0 07 80 0D 02 02 02 00 EE 97 00 00 BA [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 03 02 [14:11:12]Write to MH i2c: E2 08 00 B1 07 80 0D 03 02 00 00 00 00 33 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 B1 07 00 37 41 10 E1 19 34 BA 31 90 00 D5 [14:11:12]RAPDU: 37 41 10 E1 19 34 BA 31 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_SignData done [14:11:12]FM_MakeSignedData done [14:11:12]CreateOFDProtocolMessage [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 11 00 00 [14:11:12]Write to MH i2c: E2 08 00 B2 07 80 11 00 00 00 00 00 00 33 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 B2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8A [14:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:11:12]wFMCommunicate OK [14:11:12]CreateOFDProtocolMessage done [14:11:12]OFDSenderStorePacket 118107 [14:11:12]StoreOFDPacket docnum=118107 [14:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 37 B1 04 01 22 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 3E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5B CD 01 00 35 04 06 00 82 78 FA FF EE 97 37 41 10 E1 19 34 BA 31 [14:11:12]CheckFolder [14:11:12]dirname=/storage/ofd_packets [14:11:12]CheckFolder done [14:11:12]ProducePacketName [14:11:12]name=ofd_packets/00118107 [14:11:12]NVStorageSaveData ofd_packets/00118107 [14:11:12]File name is /storage/ofd_packets/00118107 [14:11:12]Write 298 bytes [14:11:12]NVStorageSaveData done [14:11:12]OFDSenderStorePacket done [14:11:12]KKMCreateOFDPacket done [14:11:12]NVStorageSaveData kkm_last_timestamp [14:11:12]File name is /storage/kkm_last_timestamp [14:11:12]Write 4 bytes [14:11:12]NVStorageSaveData done [14:11:12]ExternCall_PrintAddStr [14:11:12]wPrintStart [14:11:12]Write to MH i2c: 01 00 00 B3 07 BA [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 B3 07 00 00 00 00 00 FF 0F CF [14:11:12]RasterBufferAndPrint [14:11:12]line Счет N : (1)245903 [14:11:12]line ИНН: 02508201610067 [14:11:12]line Контрольно-Кассовый Чек [14:11:12]line ПРОДАЖА [14:11:12]line ТРК (МРК, ГНК) : 23 [14:11:12]line Товар: 2710194210 [14:11:12]line ДТ-К-2 [14:11:12]line 39.380 * 76.20 [14:11:12]line = 3000.76 [14:11:12]line НДС 12% НСП 1% [14:11:12]line > о реализуемом товаре [14:11:12]line ОКРУГЛЕНИЕ: -0.76 [14:11:12]line ИТОГО: 3000.00 [14:11:12]line Внесено: 3000.00 [14:11:12]line СДАЧА: 0.00 [14:11:12]line НСП 1% : 26.55 [14:11:12]line НДС 12% : 318.66 [14:11:12]line Наличными: 3000.00 [14:11:12]line Безнал.: 0.00 [14:11:12]line Место: АЗС № 173 "Партнер Нефть" [14:11:12]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:11:12]line СНО: Общий режим [14:11:12]line Чек 167 30.10.2024 14:11 [14:11:12]line Смена: 545 ФФД: 1.0 [14:11:12]line ЗНМ: 0300000115 [14:11:12]line РНМ: 0000000000091782 [14:11:12]line Версия ККМ: 001 [14:11:12]line ФМ: 0000000000871767 [14:11:12]line ФД: 118107 [14:11:12]line ФПД: 143456118763159 [14:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T141112&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118107&fm=143456118763159&tin=02508201610067®Number=0000000000091782&sum=300000 [14:11:12]OFD Sender: Processing packet 118107 [packets to send 77, broken 76] [14:11:12]ProducePacketName [14:11:12]name=ofd_packets/00118107 [14:11:12]OFD Sender: To server: pG, [14:11:12]CommunicateWithHost lk.salyk.kg:30040 [14:11:12]ConnectInit lk.salyk.kg [14:11:12]written 0, free lines is 4095 [14:11:13]Connected sock=10 [14:11: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 36 37 0C 01 00 00 37 B1 04 01 22 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 3E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5B CD 01 00 35 04 06 00 82 78 FA FF EE 97 37 41 10 E1 19 34 BA 31 [14:11: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 36 37 4F 00 00 00 42 04 47 00 1F 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 36 37 10 04 04 00 5B CD 01 00 F4 03 04 00 37 EA 21 67 B6 04 01 00 00 CE 7A 23 C0 DA 7C F4 BB [14:11:13]CommunicateWithHost err = 0 [14:11:13]CheckOFDResponse [14:11:13]1017 (14) - 77093643461234 [14:11:13]1041 (16) - 0000000000871767 [14:11:13]1040 (4) - 118107 [14:11:13]1012 (4) - 30.10.2024 08:11 [14:11:13]1206 (1) - 0 [14:11:13]OFD Sender: Remove packet 118107 [14:11:13]ProducePacketName [14:11:13]name=ofd_packets/00118107 [14:11:13]NVStorageDeleteData [14:11:13]Write to MH i2c: 01 00 00 DD 07 E4 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 B6 0C AD [14:11:13]RasterBufferAndPrint [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]written 0, free lines is 3260 [14:11:13]MH_Cut [14:11:13]Write to MH i2c: D1 01 00 E4 07 01 BD [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 01 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 01 00 E4 07 00 BC [14:11:13]Write to MH i2c: 01 00 00 E5 07 EC [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]OFD Sender: No OFD packet to send [14:11:14]*** Cut start [14:11:14]*** Purtial cut [14:11:14]*** Stage 1: CUTSNS_PIN = 1 [14:11:14]Read from MH i2c: 01 [14:11:14]MH_I2C_Read... [14:11:14]*** Stop cut motor [14:11:14]*** Cut end [14:11:14]Read from MH i2c: 01 07 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: 01 07 00 E5 07 00 00 00 00 00 FF 0F 01 [14:11:14]process_action close_receipt done [14:11:14]requested_data is exist [14:11:14]produce_requested_data [14:11:14]requested_item fm.sn is exist - process it [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 11 00 00 [14:11:14]Write to MH i2c: E2 08 00 E6 07 80 11 00 00 00 00 00 00 67 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 E6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BE [14:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:11:14]wFMCommunicate OK [14:11:14]requested_item fd.num is exist - process it [14:11:14]SAM_PROTO_GetFieldsCounters [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 13 00 00 [14:11:14]Write to MH i2c: E2 08 00 E7 07 80 13 00 00 00 00 00 00 6A [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 62 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 62 00 E7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [14:11: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_GetFieldsCounters done [14:11:14]requested_item shift.num is exist - process it [14:11:14]requested_item shift.opened is exist - process it [14:11:14]req_shift_opened [14:11:14]FM_GetShiftState [14:11:14]SAM_PROTO_GetShiftState [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 13 01 00 [14:11:14]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0E 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 44 [14:11:14]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_GetShiftState done [14:11:14]FM_GetShiftState done [14:11:14]req_shift_opened done [14:11:14]requested_item shift.open_date is exist - process it [14:11:14]req_shift_open_date [14:11:14]req_shift_open_date done [14:11:14]produce_requested_data done [14:11:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118107,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:11:14]process_action_free close_receipt [14:11:14]json_value_free [14:11:14]json_value_free done [14:11:14]process_json_proto returns [14:11:14]Send response to host [14:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118107,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:11:14]free response buf [14:11:14]execute_script done [14:11:14]execute_script returns [14:11:14]free content buf [14:11:14]Sock 9.Close socket [14:11:14]Sock 9.Thread stoped [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:10]accept exits with 7 [14:18:10]New connection [14:18:10]New thread 3066551652 created [14:18:10]Thread 3066695012 joined [14:18:10]Waiting for new connection... [14:18:10] Sock 7.Parse request [14:18:10]Sock 7.Check first char [14:18:10]Sock 7.First char is OK [14:18:10]request: POST /json_proto HTTP/1.0 [14:18:10]Method: POST [14:18:10]URL: /json_proto [14:18:10]Method is POST - this is cgi request [14:18:10]url: /json_proto [14:18:10]query_string will be loaded in cgi processing [14:18:10]execute_cgi json_proto POST (null) [14:18:10]execute_cgi path=json_proto method=POST [14:18:10]POST find Content-Length [14:18:10]Host: 172.17.96.67:8080 [14:18:10]Content-Length: 677 [14:18:10]Content-Type: application/json [14:18:10] [14:18:10]POST finish read [14:18:10]Found Content-Length = 677 [14:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:10]execute_script... [14:18:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:10]POST & json_proto [14:18:10]process_json_proto [14:18:10]json parsed OK: [14:18:10]protocol is kg_v1.0 [14:18:10]action value=close_receipt [14:18:10]process_action close_receipt [14:18:10]cmd_close_receipt [14:18:10]MH_GetDate [14:18:10]Write to MH i2c: F0 00 00 E9 07 DF [14:18:10]Write i2c OK [14:18:10]MH_I2C_Read... [14:18:10]Read from MH i2c: F0 [14:18:10]MH_I2C_Read... [14:18:10]Read from MH i2c: F0 09 00 [14:18:10]MH_I2C_Read... [14:18:10]Read from MH i2c: F0 09 00 E9 07 00 23 40 22 67 47 6C 1F 67 0D [14:18:10]GetLastDocTimeStamp 1730297472 [14:18:10]current date 1730297891 [14:18:10]FM_GetShiftState [14:18:10]SAM_PROTO_GetShiftState [14:18:10]wFMCommunicate request_size=4 [14:18:10]MH_SAM_APDU [14:18:10]CAPDU: 80 13 01 00 [14:18:10]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [14:18:10]Write i2c OK [14:18:10]MH_I2C_Read... [14:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:10]Read from MH i2c: E2 [14:18:10]MH_I2C_Read... [14:18:10]Read from MH i2c: E2 0E 00 [14:18:10]MH_I2C_Read... [14:18:10]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 46 [14:18:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:18:10]wFMCommunicate OK [14:18:10]SAM_PROTO_GetShiftState done [14:18:10]FM_GetShiftState done [14:18:10]opened in 1730246605 [14:18:10]opened+sec_in_day 1730333005 [14:18:10]quantity*price = 50041 [14:18:10]sum+1 = 50042 [14:18: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 168 30.10.2024 14:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118108 ФПД: 193238718415121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T141811&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118108&fm=193238718415121&tin=02508201610067®Number=0000000000091782&sum=50000 [14:18:11]StoreToDocumentArchive [14:18:11]shift 545 fd 118108 [14:18:11]save to /storage/0545/doc_00118108 [14:18:11]save last doc name /storage/0545/doc_00118108 to /storage/kkm_last_doc_name [14:18:11]save OK [14:18:11]Clear old archive folders... [14:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:11]tlvbuf is 000F1ED0 [14:18:11]SAM_PROTO_ClearQueue [14:18:11]wFMCommunicate request_size=4 [14:18:11]MH_SAM_APDU [14:18:11]CAPDU: 80 09 00 00 [14:18:11]Write to MH i2c: E2 08 00 F7 07 80 09 00 00 00 00 00 00 70 [14:18:11]Write i2c OK [14:18:11]MH_I2C_Read... [14:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:11]Read from MH i2c: E2 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [14:18:11]RAPDU: 90 00 [14:18:11]wFMCommunicate OK [14:18:11]SAM_PROTO_ClearQueue done [14:18:11]KKMCreateOFDPacket [14:18:11]OFDProtocolAddRootSTLVToBuf [14:18:11]FM_MakeSignedData [14:18:11]FM_MakeSignedData [14:18:11]SAM_PROTO_SignData [14:18:11]wFMCommunicate request_size=4 [14:18:11]MH_SAM_APDU [14:18:11]CAPDU: 80 0D 01 02 [14:18:11]Write to MH i2c: E2 08 00 F8 07 80 0D 01 02 00 00 00 00 78 [14:18:11]Write i2c OK [14:18:11]MH_I2C_Read... [14:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:11]Read from MH i2c: E2 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [14:18:11]RAPDU: 90 00 [14:18:11]wFMCommunicate OK [14:18:11]wFMCommunicate request_size=255 [14:18:11]MH_SAM_APDU [14:18:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 23 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5C CD 01 00 35 04 06 00 AF [14:18:11]Write to MH i2c: E2 02 01 F9 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 23 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5C CD 01 00 35 04 06 00 AF 00 00 9A [14:18:11]Write i2c OK [14:18:11]MH_I2C_Read... [14:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:11]Read from MH i2c: E2 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [14:18:11]RAPDU: 90 00 [14:18:11]wFMCommunicate OK [14:18:11]wFMCommunicate request_size=10 [14:18:11]MH_SAM_APDU [14:18:11]CAPDU: 80 0D 02 02 05 BF E5 2B 01 11 [14:18:11]Write to MH i2c: E2 0D 00 FA 07 80 0D 02 02 05 00 BF E5 2B 01 11 00 00 66 [14:18:11]Write i2c OK [14:18:11]MH_I2C_Read... [14:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:11]Read from MH i2c: E2 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [14:18:11]RAPDU: 90 00 [14:18:11]wFMCommunicate OK [14:18:11]wFMCommunicate request_size=4 [14:18:11]MH_SAM_APDU [14:18:11]CAPDU: 80 0D 03 02 [14:18:11]Write to MH i2c: E2 08 00 FB 07 80 0D 03 02 00 00 00 00 7D [14:18:11]Write i2c OK [14:18:11]MH_I2C_Read... [14:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:11]Read from MH i2c: E2 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 0B 00 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 0B 00 FB 07 00 84 F2 BB 92 4C E2 C5 6E 90 00 A2 [14:18:11]RAPDU: 84 F2 BB 92 4C E2 C5 6E 90 00 [14:18:11]wFMCommunicate OK [14:18:11]SAM_PROTO_SignData done [14:18:11]FM_MakeSignedData done [14:18:11]CreateOFDProtocolMessage [14:18:11]wFMCommunicate request_size=4 [14:18:11]MH_SAM_APDU [14:18:11]CAPDU: 80 11 00 00 [14:18:11]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [14:18:11]Write i2c OK [14:18:11]MH_I2C_Read... [14:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:11]Read from MH i2c: E2 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 17 00 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D4 [14:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:18:11]wFMCommunicate OK [14:18:11]CreateOFDProtocolMessage done [14:18:11]OFDSenderStorePacket 118108 [14:18:11]StoreOFDPacket docnum=118108 [14:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0C E9 07 01 75 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 23 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5C CD 01 00 35 04 06 00 AF BF E5 2B 01 11 84 F2 BB 92 4C E2 C5 6E [14:18:11]CheckFolder [14:18:11]dirname=/storage/ofd_packets [14:18:11]CheckFolder done [14:18:11]ProducePacketName [14:18:11]name=ofd_packets/00118108 [14:18:11]NVStorageSaveData ofd_packets/00118108 [14:18:11]File name is /storage/ofd_packets/00118108 [14:18:11]Write 301 bytes [14:18:11]NVStorageSaveData done [14:18:11]OFDSenderStorePacket done [14:18:11]KKMCreateOFDPacket done [14:18:11]NVStorageSaveData kkm_last_timestamp [14:18:11]File name is /storage/kkm_last_timestamp [14:18:11]Write 4 bytes [14:18:11]NVStorageSaveData done [14:18:11]ExternCall_PrintAddStr [14:18:11]wPrintStart [14:18:11]Write to MH i2c: 01 00 00 FD 07 04 [14:18:11]Write i2c OK [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: 01 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: 01 07 00 [14:18:11]MH_I2C_Read... [14:18:11]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 FF 0F 19 [14:18:11]RasterBufferAndPrint [14:18:11]line Счет N : (1)245904 [14:18:11]line ИНН: 02508201610067 [14:18:11]line Контрольно-Кассовый Чек [14:18:11]line ПРОДАЖА [14:18:11]line ТРК (МРК, ГНК) : 11 [14:18:11]line Товар: 2710124130 [14:18:11]line Аи-92-К-2 [14:18:11]line 7.480 * 66.90 [14:18:11]line = 500.41 [14:18:11]line НДС 12% НСП 1% [14:18:11]line > о реализуемом товаре [14:18:11]line ОКРУГЛЕНИЕ: -0.41 [14:18:11]line ИТОГО: 500.00 [14:18:11]line Внесено: 500.00 [14:18:11]line СДАЧА: 0.00 [14:18:11]line НСП 1% : 4.43 [14:18:11]line НДС 12% : 53.14 [14:18:11]line Наличными: 500.00 [14:18:11]line Безнал.: 0.00 [14:18:11]line Место: АЗС № 173 "Партнер Нефть" [14:18:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:18:11]line СНО: Общий режим [14:18:11]line Чек 168 30.10.2024 14:18 [14:18:11]line Смена: 545 ФФД: 1.0 [14:18:11]line ЗНМ: 0300000115 [14:18:11]line РНМ: 0000000000091782 [14:18:11]line Версия ККМ: 001 [14:18:11]line ФМ: 0000000000871767 [14:18:11]line ФД: 118108 [14:18:11]line ФПД: 193238718415121 [14:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T141811&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118108&fm=193238718415121&tin=02508201610067®Number=0000000000091782&sum=50000 [14:18:12]written 0, free lines is 4095 [14:18:12]OFD Sender: Processing packet 118108 [packets to send 77, broken 76] [14:18:12]ProducePacketName [14:18:12]name=ofd_packets/00118108 [14:18:12]OFD Sender: To server: pG, [14:18:12]CommunicateWithHost lk.salyk.kg:30040 [14:18:12]ConnectInit lk.salyk.kg [14:18:12]Connected sock=10 [14:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0C E9 07 01 75 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 23 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5C CD 01 00 35 04 06 00 AF BF E5 2B 01 11 84 F2 BB 92 4C E2 C5 6E [14:18: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 36 37 4F 00 00 00 30 15 47 00 80 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 36 37 10 04 04 00 5C CD 01 00 F4 03 04 00 DA EB 21 67 B6 04 01 00 00 20 95 A5 5B A9 00 94 E0 [14:18:12]CommunicateWithHost err = 0 [14:18:12]CheckOFDResponse [14:18:12]1017 (14) - 77093643461234 [14:18:12]1041 (16) - 0000000000871767 [14:18:12]1040 (4) - 118108 [14:18:12]1012 (4) - 30.10.2024 08:18 [14:18:12]1206 (1) - 0 [14:18:12]OFD Sender: Remove packet 118108 [14:18:12]ProducePacketName [14:18:12]name=ofd_packets/00118108 [14:18:12]NVStorageDeleteData [14:18:12]Write to MH i2c: 01 00 00 27 08 2F [14:18:12]Write i2c OK [14:18:12]MH_I2C_Read... [14:18:12]Read from MH i2c: 01 [14:18:12]MH_I2C_Read... [14:18:12]Read from MH i2c: 01 07 00 [14:18:12]MH_I2C_Read... [14:18:12]Read from MH i2c: 01 07 00 27 08 00 00 00 00 00 AB 0C ED [14:18:12]RasterBufferAndPrint [14:18:12]line [14:18:12]line [14:18:12]line [14:18:12]line [14:18:12]line [14:18:12]written 0, free lines is 3249 [14:18:12]MH_Cut [14:18:12]Write to MH i2c: D1 01 00 2E 08 01 08 [14:18:12]Write i2c OK [14:18:12]MH_I2C_Read... [14:18:12]Read from MH i2c: D1 [14:18:12]MH_I2C_Read... [14:18:12]Read from MH i2c: D1 01 00 [14:18:12]MH_I2C_Read... [14:18:12]Read from MH i2c: D1 01 00 2E 08 00 07 [14:18:12]Write to MH i2c: 01 00 00 2F 08 37 [14:18:12]Write i2c OK [14:18:12]MH_I2C_Read... [14:18:13]OFD Sender: No OFD packet to send [14:18:13]*** Cut start [14:18:13]*** Purtial cut [14:18:13]*** Stage 1: CUTSNS_PIN = 1 [14:18:13]Read from MH i2c: 01 [14:18:13]MH_I2C_Read... [14:18:13]*** Stop cut motor [14:18:13]*** Cut end [14:18:13]Read from MH i2c: 01 07 00 [14:18:13]MH_I2C_Read... [14:18:13]Read from MH i2c: 01 07 00 2F 08 00 00 00 00 00 FF 0F 4C [14:18:13]process_action close_receipt done [14:18:13]requested_data is exist [14:18:13]produce_requested_data [14:18:13]requested_item fm.sn is exist - process it [14:18:13]wFMCommunicate request_size=4 [14:18:13]MH_SAM_APDU [14:18:13]CAPDU: 80 11 00 00 [14:18:13]Write to MH i2c: E2 08 00 30 08 80 11 00 00 00 00 00 00 B2 [14:18:13]Write i2c OK [14:18:13]MH_I2C_Read... [14:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:13]Read from MH i2c: E2 [14:18:13]MH_I2C_Read... [14:18:13]Read from MH i2c: E2 17 00 [14:18:13]MH_I2C_Read... [14:18:13]Read from MH i2c: E2 17 00 30 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 09 [14:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:18:13]wFMCommunicate OK [14:18:13]requested_item fd.num is exist - process it [14:18:13]SAM_PROTO_GetFieldsCounters [14:18:13]wFMCommunicate request_size=4 [14:18:13]MH_SAM_APDU [14:18:13]CAPDU: 80 13 00 00 [14:18:13]Write to MH i2c: E2 08 00 31 08 80 13 00 00 00 00 00 00 B5 [14:18:13]Write i2c OK [14:18:13]MH_I2C_Read... [14:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:14]Read from MH i2c: E2 [14:18:14]MH_I2C_Read... [14:18:14]Read from MH i2c: E2 62 00 [14:18:14]MH_I2C_Read... [14:18:14]Read from MH i2c: E2 62 00 31 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [14:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:14]wFMCommunicate OK [14:18:14]SAM_PROTO_GetFieldsCounters done [14:18:14]requested_item shift.num is exist - process it [14:18:14]requested_item shift.opened is exist - process it [14:18:14]req_shift_opened [14:18:14]FM_GetShiftState [14:18:14]SAM_PROTO_GetShiftState [14:18:14]wFMCommunicate request_size=4 [14:18:14]MH_SAM_APDU [14:18:14]CAPDU: 80 13 01 00 [14:18:14]Write to MH i2c: E2 08 00 32 08 80 13 01 00 00 00 00 00 B7 [14:18:14]Write i2c OK [14:18:14]MH_I2C_Read... [14:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:14]Read from MH i2c: E2 [14:18:14]MH_I2C_Read... [14:18:14]Read from MH i2c: E2 0E 00 [14:18:14]MH_I2C_Read... [14:18:14]Read from MH i2c: E2 0E 00 32 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8F [14:18:14]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:18:14]wFMCommunicate OK [14:18:14]SAM_PROTO_GetShiftState done [14:18:14]FM_GetShiftState done [14:18:14]req_shift_opened done [14:18:14]requested_item shift.open_date is exist - process it [14:18:14]req_shift_open_date [14:18:14]req_shift_open_date done [14:18:14]produce_requested_data done [14:18:14]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118108,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:18:14]process_action_free close_receipt [14:18:14]json_value_free [14:18:14]json_value_free done [14:18:14]process_json_proto returns [14:18:14]Send response to host [14:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118108,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:18:14]free response buf [14:18:14]execute_script done [14:18:14]execute_script returns [14:18:14]free content buf [14:18:14]Sock 7.Close socket [14:18:14]Sock 7.Thread stoped [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:49]accept exits with 9 [14:21:49]New connection [14:21:49]New thread 3066695012 created [14:21:49]Thread 3066551652 joined [14:21:49]Waiting for new connection... [14:21:49] Sock 9.Parse request [14:21:49]Sock 9.Check first char [14:21:49]Sock 9.First char is OK [14:21:49]request: POST /json_proto HTTP/1.0 [14:21:49]Method: POST [14:21:49]URL: /json_proto [14:21:49]Method is POST - this is cgi request [14:21:49]url: /json_proto [14:21:49]query_string will be loaded in cgi processing [14:21:49]execute_cgi json_proto POST (null) [14:21:49]execute_cgi path=json_proto method=POST [14:21:49]POST find Content-Length [14:21:49]Host: 172.17.96.67:8080 [14:21:49]Content-Length: 679 [14:21:49]Content-Type: application/json [14:21:49] [14:21:49]POST finish read [14:21:49]Found Content-Length = 679 [14:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:49]execute_script... [14:21:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:49]POST & json_proto [14:21:49]process_json_proto [14:21:49]json parsed OK: [14:21:49]protocol is kg_v1.0 [14:21:49]action value=close_receipt [14:21:49]process_action close_receipt [14:21:49]cmd_close_receipt [14:21:49]MH_GetDate [14:21:49]Write to MH i2c: F0 00 00 33 08 2A [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: F0 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: F0 09 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: F0 09 00 33 08 00 FE 40 22 67 47 6C 1F 67 33 [14:21:49]GetLastDocTimeStamp 1730297891 [14:21:49]current date 1730298110 [14:21:49]FM_GetShiftState [14:21:49]SAM_PROTO_GetShiftState [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 13 01 00 [14:21:49]Write to MH i2c: E2 08 00 34 08 80 13 01 00 00 00 00 00 B9 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0E 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0E 00 34 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 91 [14:21:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_GetShiftState done [14:21:49]FM_GetShiftState done [14:21:49]opened in 1730246605 [14:21:49]opened+sec_in_day 1730333005 [14:21:49]quantity*price = 120015 [14:21:49]sum+1 = 120016 [14:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 169 30.10.2024 14:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118109 ФПД: 94142622979511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142150&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118109&fm=94142622979511&tin=02508201610067®Number=0000000000091782&sum=120000 [14:21:50]StoreToDocumentArchive [14:21:50]shift 545 fd 118109 [14:21:50]save to /storage/0545/doc_00118109 [14:21:50]save last doc name /storage/0545/doc_00118109 to /storage/kkm_last_doc_name [14:21:50]save OK [14:21:50]Clear old archive folders... [14:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:50]tlvbuf is 000B7420 [14:21:50]SAM_PROTO_ClearQueue [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 09 00 00 [14:21:50]Write to MH i2c: E2 08 00 41 08 80 09 00 00 00 00 00 00 BB [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]SAM_PROTO_ClearQueue done [14:21:50]KKMCreateOFDPacket [14:21:50]OFDProtocolAddRootSTLVToBuf [14:21:50]FM_MakeSignedData [14:21:50]FM_MakeSignedData [14:21:50]SAM_PROTO_SignData [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 01 02 [14:21:50]Write to MH i2c: E2 08 00 42 08 80 0D 01 02 00 00 00 00 C3 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=255 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FE 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5D CD 01 00 35 04 06 00 55 9F 49 99 [14:21:50]Write to MH i2c: E2 02 01 43 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FE 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5D CD 01 00 35 04 06 00 55 9F 49 99 00 00 4D [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=7 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 02 02 02 D5 B7 [14:21:50]Write to MH i2c: E2 0A 00 44 08 80 0D 02 02 02 00 D5 B7 00 00 56 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 44 08 00 90 00 C0 [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 03 02 [14:21:50]Write to MH i2c: E2 08 00 45 08 80 0D 03 02 00 00 00 00 C8 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0B 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0B 00 45 08 00 7A 4F BD 5F 8E 16 A7 0D 90 00 06 [14:21:50]RAPDU: 7A 4F BD 5F 8E 16 A7 0D 90 00 [14:21:50]wFMCommunicate OK [14:21:50]SAM_PROTO_SignData done [14:21:50]FM_MakeSignedData done [14:21:50]CreateOFDProtocolMessage [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 11 00 00 [14:21:50]Write to MH i2c: E2 08 00 46 08 80 11 00 00 00 00 00 00 C8 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 46 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1F [14:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:21:50]wFMCommunicate OK [14:21:50]CreateOFDProtocolMessage done [14:21:50]OFDSenderStorePacket 118109 [14:21:50]StoreOFDPacket docnum=118109 [14:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 F5 7F 04 01 09 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FE 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5D CD 01 00 35 04 06 00 55 9F 49 99 D5 B7 7A 4F BD 5F 8E 16 A7 0D [14:21:50]CheckFolder [14:21:50]dirname=/storage/ofd_packets [14:21:50]CheckFolder done [14:21:50]ProducePacketName [14:21:50]name=ofd_packets/00118109 [14:21:50]NVStorageSaveData ofd_packets/00118109 [14:21:50]File name is /storage/ofd_packets/00118109 [14:21:50]Write 298 bytes [14:21:50]NVStorageSaveData done [14:21:50]OFDSenderStorePacket done [14:21:50]KKMCreateOFDPacket done [14:21:50]NVStorageSaveData kkm_last_timestamp [14:21:50]File name is /storage/kkm_last_timestamp [14:21:50]Write 4 bytes [14:21:50]NVStorageSaveData done [14:21:50]ExternCall_PrintAddStr [14:21:50]wPrintStart [14:21:50]Write to MH i2c: 01 00 00 47 08 4F [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 47 08 00 00 00 00 00 FF 0F 64 [14:21:50]RasterBufferAndPrint [14:21:50]line Счет N : (1)245905 [14:21:50]line ИНН: 02508201610067 [14:21:50]line Контрольно-Кассовый Чек [14:21:50]line ПРОДАЖА [14:21:50]line ТРК (МРК, ГНК) : 13 [14:21:50]line Товар: 2710194210 [14:21:50]line ДТ-К-2 [14:21:50]line 15.750 * 76.20 [14:21:50]line = 1200.15 [14:21:50]line НДС 12% НСП 1% [14:21:50]line > о реализуемом товаре [14:21:50]line ОКРУГЛЕНИЕ: -0.15 [14:21:50]line ИТОГО: 1200.00 [14:21:50]line Внесено: 1200.00 [14:21:50]line СДАЧА: 0.00 [14:21:50]line НСП 1% : 10.62 [14:21:50]line НДС 12% : 127.45 [14:21:50]line Наличными: 1200.00 [14:21:50]line Безнал.: 0.00 [14:21:50]line Место: АЗС № 173 "Партнер Нефть" [14:21:50]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:21:50]line СНО: Общий режим [14:21:50]line Чек 169 30.10.2024 14:21 [14:21:50]line Смена: 545 ФФД: 1.0 [14:21:50]line ЗНМ: 0300000115 [14:21:50]line РНМ: 0000000000091782 [14:21:50]line Версия ККМ: 001 [14:21:50]line ФМ: 0000000000871767 [14:21:50]line ФД: 118109 [14:21:50]line ФПД: 94142622979511 [14:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142150&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118109&fm=94142622979511&tin=02508201610067®Number=0000000000091782&sum=120000 [14:21:51]OFD Sender: Processing packet 118109 [packets to send 77, broken 76] [14:21:51]ProducePacketName [14:21:51]name=ofd_packets/00118109 [14:21:51]OFD Sender: To server: pG, [14:21:51]CommunicateWithHost lk.salyk.kg:30040 [14:21:51]ConnectInit lk.salyk.kg [14:21:51]written 0, free lines is 4095 [14:21:51]Connected sock=10 [14:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 F5 7F 04 01 09 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FE 40 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5D CD 01 00 35 04 06 00 55 9F 49 99 D5 B7 7A 4F BD 5F 8E 16 A7 0D [14:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 84 97 47 00 9A 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5D CD 01 00 F4 03 04 00 B5 EC 21 67 B6 04 01 00 00 35 73 5B DC 1B B3 86 9E [14:21:51]CommunicateWithHost err = 0 [14:21:51]CheckOFDResponse [14:21:51]1017 (14) - 77093643461234 [14:21:51]1041 (16) - 0000000000871767 [14:21:51]1040 (4) - 118109 [14:21:51]1012 (4) - 30.10.2024 08:22 [14:21:51]1206 (1) - 0 [14:21:51]OFD Sender: Remove packet 118109 [14:21:51]ProducePacketName [14:21:51]name=ofd_packets/00118109 [14:21:51]NVStorageDeleteData [14:21:51]Write to MH i2c: 01 00 00 71 08 79 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 B7 0C 43 [14:21:51]RasterBufferAndPrint [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]written 0, free lines is 3262 [14:21:51]MH_Cut [14:21:51]Write to MH i2c: D1 01 00 78 08 01 52 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 01 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 01 00 78 08 00 51 [14:21:51]Write to MH i2c: 01 00 00 79 08 81 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]OFD Sender: No OFD packet to send [14:21:52]*** Cut start [14:21:52]*** Purtial cut [14:21:52]*** Stage 1: CUTSNS_PIN = 1 [14:21:52]Read from MH i2c: 01 [14:21:52]MH_I2C_Read... [14:21:52]*** Stop cut motor [14:21:52]*** Cut end [14:21:52]Read from MH i2c: 01 07 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 FF 0F 96 [14:21:52]process_action close_receipt done [14:21:52]requested_data is exist [14:21:52]produce_requested_data [14:21:52]requested_item fm.sn is exist - process it [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 11 00 00 [14:21:52]Write to MH i2c: E2 08 00 7A 08 80 11 00 00 00 00 00 00 FC [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 17 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 17 00 7A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 53 [14:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:21:52]wFMCommunicate OK [14:21:52]requested_item fd.num is exist - process it [14:21:52]SAM_PROTO_GetFieldsCounters [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 13 00 00 [14:21:52]Write to MH i2c: E2 08 00 7B 08 80 13 00 00 00 00 00 00 FF [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 62 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 62 00 7B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [14:21: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:52]wFMCommunicate OK [14:21:52]SAM_PROTO_GetFieldsCounters done [14:21:52]requested_item shift.num is exist - process it [14:21:52]requested_item shift.opened is exist - process it [14:21:52]req_shift_opened [14:21:52]FM_GetShiftState [14:21:52]SAM_PROTO_GetShiftState [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 13 01 00 [14:21:52]Write to MH i2c: E2 08 00 7C 08 80 13 01 00 00 00 00 00 01 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 0E 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 0E 00 7C 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D9 [14:21:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:21:52]wFMCommunicate OK [14:21:52]SAM_PROTO_GetShiftState done [14:21:52]FM_GetShiftState done [14:21:52]req_shift_opened done [14:21:52]requested_item shift.open_date is exist - process it [14:21:52]req_shift_open_date [14:21:52]req_shift_open_date done [14:21:52]produce_requested_data done [14:21:52]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118109,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:21:52]process_action_free close_receipt [14:21:52]json_value_free [14:21:52]json_value_free done [14:21:52]process_json_proto returns [14:21:52]Send response to host [14:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118109,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:21:52]free response buf [14:21:52]execute_script done [14:21:52]execute_script returns [14:21:52]free content buf [14:21:52]Sock 9.Close socket [14:21:52]Sock 9.Thread stoped [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:37]accept exits with 7 [14:22:37]New connection [14:22:37]New thread 3066551652 created [14:22:37]Thread 3066695012 joined [14:22:37]Waiting for new connection... [14:22:37] Sock 7.Parse request [14:22:37]Sock 7.Check first char [14:22:37]Sock 7.First char is OK [14:22:37]request: POST /json_proto HTTP/1.0 [14:22:37]Method: POST [14:22:37]URL: /json_proto [14:22:37]Method is POST - this is cgi request [14:22:37]url: /json_proto [14:22:37]query_string will be loaded in cgi processing [14:22:37]execute_cgi json_proto POST (null) [14:22:37]execute_cgi path=json_proto method=POST [14:22:37]POST find Content-Length [14:22:37]Host: 172.17.96.67:8080 [14:22:37]Content-Length: 677 [14:22:37]Content-Type: application/json [14:22:37] [14:22:37]POST finish read [14:22:37]Found Content-Length = 677 [14:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:22:37]execute_script... [14:22: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)245906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:22:37]POST & json_proto [14:22:37]process_json_proto [14:22:37]json parsed OK: [14:22:37]protocol is kg_v1.0 [14:22:37]action value=close_receipt [14:22:37]process_action close_receipt [14:22:37]cmd_close_receipt [14:22:37]MH_GetDate [14:22:37]Write to MH i2c: F0 00 00 7D 08 74 [14:22:37]Write i2c OK [14:22:37]MH_I2C_Read... [14:22:37]Read from MH i2c: F0 [14:22:37]MH_I2C_Read... [14:22:37]Read from MH i2c: F0 09 00 [14:22:37]MH_I2C_Read... [14:22:37]Read from MH i2c: F0 09 00 7D 08 00 2E 41 22 67 47 6C 1F 67 AE [14:22:37]GetLastDocTimeStamp 1730298110 [14:22:37]current date 1730298158 [14:22:37]FM_GetShiftState [14:22:37]SAM_PROTO_GetShiftState [14:22:37]wFMCommunicate request_size=4 [14:22:37]MH_SAM_APDU [14:22:37]CAPDU: 80 13 01 00 [14:22:37]Write to MH i2c: E2 08 00 7E 08 80 13 01 00 00 00 00 00 03 [14:22:37]Write i2c OK [14:22:37]MH_I2C_Read... [14:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:37]Read from MH i2c: E2 [14:22:37]MH_I2C_Read... [14:22:37]Read from MH i2c: E2 0E 00 [14:22:37]MH_I2C_Read... [14:22:37]Read from MH i2c: E2 0E 00 7E 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DB [14:22:37]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:22:37]wFMCommunicate OK [14:22:37]SAM_PROTO_GetShiftState done [14:22:37]FM_GetShiftState done [14:22:37]opened in 1730246605 [14:22:37]opened+sec_in_day 1730333005 [14:22:37]quantity*price = 24017 [14:22:37]sum+1 = 24018 [14:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 170 30.10.2024 14:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118110 ФПД: 116503706227168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142238&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118110&fm=116503706227168&tin=02508201610067®Number=0000000000091782&sum=24000 [14:22:38]StoreToDocumentArchive [14:22:38]shift 545 fd 118110 [14:22:38]save to /storage/0545/doc_00118110 [14:22:38]save last doc name /storage/0545/doc_00118110 to /storage/kkm_last_doc_name [14:22:38]save OK [14:22:38]Clear old archive folders... [14:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:38]tlvbuf is 000ECE50 [14:22:38]SAM_PROTO_ClearQueue [14:22:38]wFMCommunicate request_size=4 [14:22:38]MH_SAM_APDU [14:22:38]CAPDU: 80 09 00 00 [14:22:38]Write to MH i2c: E2 08 00 8B 08 80 09 00 00 00 00 00 00 05 [14:22:38]Write i2c OK [14:22:38]MH_I2C_Read... [14:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:38]Read from MH i2c: E2 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [14:22:38]RAPDU: 90 00 [14:22:38]wFMCommunicate OK [14:22:38]SAM_PROTO_ClearQueue done [14:22:38]KKMCreateOFDPacket [14:22:38]OFDProtocolAddRootSTLVToBuf [14:22:38]FM_MakeSignedData [14:22:38]FM_MakeSignedData [14:22:38]SAM_PROTO_SignData [14:22:38]wFMCommunicate request_size=4 [14:22:38]MH_SAM_APDU [14:22:38]CAPDU: 80 0D 01 02 [14:22:38]Write to MH i2c: E2 08 00 8C 08 80 0D 01 02 00 00 00 00 0D [14:22:38]Write i2c OK [14:22:38]MH_I2C_Read... [14:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:38]Read from MH i2c: E2 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [14:22:38]RAPDU: 90 00 [14:22:38]wFMCommunicate OK [14:22:38]wFMCommunicate request_size=255 [14:22:38]MH_SAM_APDU [14:22: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 32 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 AA 00 00 00 F4 03 04 00 2E 41 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5E CD 01 00 35 04 06 00 69 [14:22:38]Write to MH i2c: E2 02 01 8D 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AA 00 00 00 F4 03 04 00 2E 41 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5E CD 01 00 35 04 06 00 69 00 00 FF [14:22:38]Write i2c OK [14:22:38]MH_I2C_Read... [14:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:38]Read from MH i2c: E2 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [14:22:38]RAPDU: 90 00 [14:22:38]wFMCommunicate OK [14:22:38]wFMCommunicate request_size=10 [14:22:38]MH_SAM_APDU [14:22:38]CAPDU: 80 0D 02 02 05 F5 A2 06 51 E0 [14:22:38]Write to MH i2c: E2 0D 00 8E 08 80 0D 02 02 05 00 F5 A2 06 51 E0 00 00 E8 [14:22:38]Write i2c OK [14:22:38]MH_I2C_Read... [14:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:38]Read from MH i2c: E2 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 [14:22:38]MH_I2C_Read... [14:22:38]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [14:22:38]RAPDU: 90 00 [14:22:38]wFMCommunicate OK [14:22:38]wFMCommunicate request_size=4 [14:22:38]MH_SAM_APDU [14:22:38]CAPDU: 80 0D 03 02 [14:22:38]Write to MH i2c: E2 08 00 8F 08 80 0D 03 02 00 00 00 00 12 [14:22:38]Write i2c OK [14:22:38]MH_I2C_Read... [14:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:39]Read from MH i2c: E2 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: E2 0B 00 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: E2 0B 00 8F 08 00 73 FE 9D 2B 8B 7B 4F 3B 90 00 DC [14:22:39]RAPDU: 73 FE 9D 2B 8B 7B 4F 3B 90 00 [14:22:39]wFMCommunicate OK [14:22:39]SAM_PROTO_SignData done [14:22:39]FM_MakeSignedData done [14:22:39]CreateOFDProtocolMessage [14:22:39]wFMCommunicate request_size=4 [14:22:39]MH_SAM_APDU [14:22:39]CAPDU: 80 11 00 00 [14:22:39]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [14:22:39]Write i2c OK [14:22:39]MH_I2C_Read... [14:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:39]Read from MH i2c: E2 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: E2 17 00 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: E2 17 00 90 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 69 [14:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:22:39]wFMCommunicate OK [14:22:39]CreateOFDProtocolMessage done [14:22:39]OFDSenderStorePacket 118110 [14:22:39]StoreOFDPacket docnum=118110 [14:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2F AF 07 01 25 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 32 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 AA 00 00 00 F4 03 04 00 2E 41 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5E CD 01 00 35 04 06 00 69 F5 A2 06 51 E0 73 FE 9D 2B 8B 7B 4F 3B [14:22:39]CheckFolder [14:22:39]dirname=/storage/ofd_packets [14:22:39]CheckFolder done [14:22:39]ProducePacketName [14:22:39]name=ofd_packets/00118110 [14:22:39]NVStorageSaveData ofd_packets/00118110 [14:22:39]File name is /storage/ofd_packets/00118110 [14:22:39]Write 301 bytes [14:22:39]NVStorageSaveData done [14:22:39]OFDSenderStorePacket done [14:22:39]KKMCreateOFDPacket done [14:22:39]NVStorageSaveData kkm_last_timestamp [14:22:39]File name is /storage/kkm_last_timestamp [14:22:39]Write 4 bytes [14:22:39]NVStorageSaveData done [14:22:39]ExternCall_PrintAddStr [14:22:39]wPrintStart [14:22:39]Write to MH i2c: 01 00 00 91 08 99 [14:22:39]Write i2c OK [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: 01 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: 01 07 00 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: 01 07 00 91 08 00 00 00 00 00 FF 0F AE [14:22:39]RasterBufferAndPrint [14:22:39]line Счет N : (1)245906 [14:22:39]line ИНН: 02508201610067 [14:22:39]line Контрольно-Кассовый Чек [14:22:39]line ПРОДАЖА [14:22:39]line ТРК (МРК, ГНК) : 21 [14:22:39]line Товар: 2710124130 [14:22:39]line Аи-92-К-2 [14:22:39]line 3.590 * 66.90 [14:22:39]line = 240.17 [14:22:39]line НДС 12% НСП 1% [14:22:39]line > о реализуемом товаре [14:22:39]line ОКРУГЛЕНИЕ: -0.17 [14:22:39]line ИТОГО: 240.00 [14:22:39]line Внесено: 240.00 [14:22:39]line СДАЧА: 0.00 [14:22:39]line НСП 1% : 2.12 [14:22:39]line НДС 12% : 25.50 [14:22:39]line Наличными: 240.00 [14:22:39]line Безнал.: 0.00 [14:22:39]line Место: АЗС № 173 "Партнер Нефть" [14:22:39]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:22:39]line СНО: Общий режим [14:22:39]line Чек 170 30.10.2024 14:22 [14:22:39]line Смена: 545 ФФД: 1.0 [14:22:39]line ЗНМ: 0300000115 [14:22:39]line РНМ: 0000000000091782 [14:22:39]line Версия ККМ: 001 [14:22:39]line ФМ: 0000000000871767 [14:22:39]line ФД: 118110 [14:22:39]line ФПД: 116503706227168 [14:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142238&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118110&fm=116503706227168&tin=02508201610067®Number=0000000000091782&sum=24000 [14:22:39]written 0, free lines is 4095 [14:22:39]OFD Sender: Processing packet 118110 [packets to send 77, broken 76] [14:22:39]ProducePacketName [14:22:39]name=ofd_packets/00118110 [14:22:39]OFD Sender: To server: pG, [14:22:39]CommunicateWithHost lk.salyk.kg:30040 [14:22:39]ConnectInit lk.salyk.kg [14:22:39]Write to MH i2c: 01 00 00 BB 08 C3 [14:22:39]Write i2c OK [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: 01 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: 01 07 00 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 AB 0C 81 [14:22:39]RasterBufferAndPrint [14:22:39]line [14:22:39]line [14:22:39]line [14:22:39]line [14:22:39]line [14:22:39]written 0, free lines is 3247 [14:22:39]MH_Cut [14:22:39]Write to MH i2c: D1 01 00 C2 08 01 9C [14:22:39]Write i2c OK [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: D1 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: D1 01 00 [14:22:39]MH_I2C_Read... [14:22:39]Read from MH i2c: D1 01 00 C2 08 00 9B [14:22:39]Write to MH i2c: 01 00 00 C3 08 CB [14:22:39]Write i2c OK [14:22:39]MH_I2C_Read... [14:22:40]*** Cut start [14:22:40]*** Purtial cut [14:22:40]*** Stage 1: CUTSNS_PIN = 1 [14:22:40]Read from MH i2c: 01 [14:22:40]MH_I2C_Read... [14:22:40]*** Stop cut motor [14:22:40]*** Cut end [14:22:40]Read from MH i2c: 01 07 00 [14:22:40]MH_I2C_Read... [14:22:40]Read from MH i2c: 01 07 00 C3 08 00 00 00 00 00 FF 0F E0 [14:22:40]process_action close_receipt done [14:22:40]requested_data is exist [14:22:40]produce_requested_data [14:22:40]requested_item fm.sn is exist - process it [14:22:40]wFMCommunicate request_size=4 [14:22:40]MH_SAM_APDU [14:22:40]CAPDU: 80 11 00 00 [14:22:40]Write to MH i2c: E2 08 00 C4 08 80 11 00 00 00 00 00 00 46 [14:22:40]Write i2c OK [14:22:40]MH_I2C_Read... [14:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:41]Read from MH i2c: E2 [14:22:41]MH_I2C_Read... [14:22:41]Read from MH i2c: E2 17 00 [14:22:41]MH_I2C_Read... [14:22:41]Read from MH i2c: E2 17 00 C4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9D [14:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:22:41]wFMCommunicate OK [14:22:41]requested_item fd.num is exist - process it [14:22:41]SAM_PROTO_GetFieldsCounters [14:22:41]wFMCommunicate request_size=4 [14:22:41]MH_SAM_APDU [14:22:41]CAPDU: 80 13 00 00 [14:22:41]Write to MH i2c: E2 08 00 C5 08 80 13 00 00 00 00 00 00 49 [14:22:41]Write i2c OK [14:22:41]MH_I2C_Read... [14:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:41]Read from MH i2c: E2 [14:22:41]MH_I2C_Read... [14:22:41]Read from MH i2c: E2 62 00 [14:22:41]MH_I2C_Read... [14:22:41]Read from MH i2c: E2 62 00 C5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [14:22: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:41]wFMCommunicate OK [14:22:41]SAM_PROTO_GetFieldsCounters done [14:22:41]requested_item shift.num is exist - process it [14:22:41]requested_item shift.opened is exist - process it [14:22:41]req_shift_opened [14:22:41]FM_GetShiftState [14:22:41]SAM_PROTO_GetShiftState [14:22:41]wFMCommunicate request_size=4 [14:22:41]MH_SAM_APDU [14:22:41]CAPDU: 80 13 01 00 [14:22:41]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [14:22:41]Write i2c OK [14:22:41]MH_I2C_Read... [14:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:41]Read from MH i2c: E2 [14:22:41]MH_I2C_Read... [14:22:41]Read from MH i2c: E2 0E 00 [14:22:41]MH_I2C_Read... [14:22:41]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 23 [14:22:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:22:41]wFMCommunicate OK [14:22:41]SAM_PROTO_GetShiftState done [14:22:41]FM_GetShiftState done [14:22:41]req_shift_opened done [14:22:41]requested_item shift.open_date is exist - process it [14:22:41]req_shift_open_date [14:22:41]req_shift_open_date done [14:22:41]produce_requested_data done [14:22:41]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118110,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:22:41]process_action_free close_receipt [14:22:41]json_value_free [14:22:41]json_value_free done [14:22:41]process_json_proto returns [14:22:41]Send response to host [14:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118110,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:22:41]free response buf [14:22:41]execute_script done [14:22:41]execute_script returns [14:22:41]free content buf [14:22:41]Sock 7.Close socket [14:22:41]Sock 7.Thread stoped [14:24:52]ConnectInit Can't connect to host [14:24:52]CommunicateWithHost connect error [14:24:52]CommunicateWithHost err = -1 [14:24:52]OFD Sender: Server communicate error [14:24:57]OFD Sender: Processing packet 118110 [packets to send 77, broken 76] [14:24:57]ProducePacketName [14:24:57]name=ofd_packets/00118110 [14:24:57]OFD Sender: To server: pG, [14:24:57]CommunicateWithHost lk.salyk.kg:30040 [14:24:57]ConnectInit lk.salyk.kg [14:24:57]Connected sock=7 [14:24: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 36 37 0F 01 00 00 2F AF 07 01 25 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 32 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 AA 00 00 00 F4 03 04 00 2E 41 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5E CD 01 00 35 04 06 00 69 F5 A2 06 51 E0 73 FE 9D 2B 8B 7B 4F 3B [14:24: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 36 37 4F 00 00 00 C5 A7 47 00 81 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 36 37 10 04 04 00 5E CD 01 00 F4 03 04 00 70 ED 21 67 B6 04 01 00 00 E0 84 1B 66 1E 34 A5 2D [14:24:58]CommunicateWithHost err = 0 [14:24:58]CheckOFDResponse [14:24:58]1017 (14) - 77093643461234 [14:24:58]1041 (16) - 0000000000871767 [14:24:58]1040 (4) - 118110 [14:24:58]1012 (4) - 30.10.2024 08:25 [14:24:58]1206 (1) - 0 [14:24:58]OFD Sender: Remove packet 118110 [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00118110 [14:24:58]NVStorageDeleteData [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:41]accept exits with 9 [14:28:41]New connection [14:28:41]New thread 3066695012 created [14:28:41]Thread 3066551652 joined [14:28:41]Waiting for new connection... [14:28:41] Sock 9.Parse request [14:28:41]Sock 9.Check first char [14:28:41]Sock 9.First char is OK [14:28:41]request: POST /json_proto HTTP/1.0 [14:28:41]Method: POST [14:28:41]URL: /json_proto [14:28:41]Method is POST - this is cgi request [14:28:41]url: /json_proto [14:28:41]query_string will be loaded in cgi processing [14:28:41]execute_cgi json_proto POST (null) [14:28:41]execute_cgi path=json_proto method=POST [14:28:41]POST find Content-Length [14:28:41]Host: 172.17.96.67:8080 [14:28:41]Content-Length: 677 [14:28:41]Content-Type: application/json [14:28:41] [14:28:41]POST finish read [14:28:41]Found Content-Length = 677 [14:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:41]execute_script... [14:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:41]POST & json_proto [14:28:41]process_json_proto [14:28:41]json parsed OK: [14:28:41]protocol is kg_v1.0 [14:28:41]action value=close_receipt [14:28:41]process_action close_receipt [14:28:41]cmd_close_receipt [14:28:41]MH_GetDate [14:28:41]Write to MH i2c: F0 00 00 C7 08 BE [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: F0 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: F0 09 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: F0 09 00 C7 08 00 9A 42 22 67 47 6C 1F 67 65 [14:28:41]GetLastDocTimeStamp 1730298158 [14:28:41]current date 1730298522 [14:28:41]FM_GetShiftState [14:28:41]SAM_PROTO_GetShiftState [14:28:41]wFMCommunicate request_size=4 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 13 01 00 [14:28:41]Write to MH i2c: E2 08 00 C8 08 80 13 01 00 00 00 00 00 4D [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 0E 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 0E 00 C8 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 25 [14:28:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:28:41]wFMCommunicate OK [14:28:41]SAM_PROTO_GetShiftState done [14:28:41]FM_GetShiftState done [14:28:41]opened in 1730246605 [14:28:41]opened+sec_in_day 1730333005 [14:28:41]quantity*price = 50041 [14:28:41]sum+1 = 50042 [14:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 171 30.10.2024 14:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118111 ФПД: 231613415014033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142842&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118111&fm=231613415014033&tin=02508201610067®Number=0000000000091782&sum=50000 [14:28:42]StoreToDocumentArchive [14:28:42]shift 545 fd 118111 [14:28:42]save to /storage/0545/doc_00118111 [14:28:42]save last doc name /storage/0545/doc_00118111 to /storage/kkm_last_doc_name [14:28:42]save OK [14:28:42]Clear old archive folders... [14:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:42]tlvbuf is 000E31B0 [14:28:42]SAM_PROTO_ClearQueue [14:28:42]wFMCommunicate request_size=4 [14:28:42]MH_SAM_APDU [14:28:42]CAPDU: 80 09 00 00 [14:28:42]Write to MH i2c: E2 08 00 D5 08 80 09 00 00 00 00 00 00 4F [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:42]Read from MH i2c: E2 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [14:28:42]RAPDU: 90 00 [14:28:42]wFMCommunicate OK [14:28:42]SAM_PROTO_ClearQueue done [14:28:42]KKMCreateOFDPacket [14:28:42]OFDProtocolAddRootSTLVToBuf [14:28:42]FM_MakeSignedData [14:28:42]FM_MakeSignedData [14:28:42]SAM_PROTO_SignData [14:28:42]wFMCommunicate request_size=4 [14:28:42]MH_SAM_APDU [14:28:42]CAPDU: 80 0D 01 02 [14:28:42]Write to MH i2c: E2 08 00 D6 08 80 0D 01 02 00 00 00 00 57 [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:42]Read from MH i2c: E2 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [14:28:42]RAPDU: 90 00 [14:28:42]wFMCommunicate OK [14:28:42]wFMCommunicate request_size=255 [14:28:42]MH_SAM_APDU [14:28:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AB 00 00 00 F4 03 04 00 9A 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5F CD 01 00 35 04 06 00 D2 [14:28:42]Write to MH i2c: E2 02 01 D7 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AB 00 00 00 F4 03 04 00 9A 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5F CD 01 00 35 04 06 00 D2 00 00 1B [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:42]Read from MH i2c: E2 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 D7 08 00 90 00 53 [14:28:42]RAPDU: 90 00 [14:28:42]wFMCommunicate OK [14:28:42]wFMCommunicate request_size=10 [14:28:42]MH_SAM_APDU [14:28:42]CAPDU: 80 0D 02 02 05 A6 B3 53 BE 91 [14:28:42]Write to MH i2c: E2 0D 00 D8 08 80 0D 02 02 05 00 A6 B3 53 BE 91 00 00 5F [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:42]Read from MH i2c: E2 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [14:28:42]RAPDU: 90 00 [14:28:42]wFMCommunicate OK [14:28:42]wFMCommunicate request_size=4 [14:28:42]MH_SAM_APDU [14:28:42]CAPDU: 80 0D 03 02 [14:28:42]Write to MH i2c: E2 08 00 D9 08 80 0D 03 02 00 00 00 00 5C [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:42]Read from MH i2c: E2 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 0B 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 0B 00 D9 08 00 01 A0 73 1D 42 71 69 7B 90 00 25 [14:28:42]RAPDU: 01 A0 73 1D 42 71 69 7B 90 00 [14:28:42]wFMCommunicate OK [14:28:42]SAM_PROTO_SignData done [14:28:42]FM_MakeSignedData done [14:28:42]CreateOFDProtocolMessage [14:28:42]wFMCommunicate request_size=4 [14:28:42]MH_SAM_APDU [14:28:42]CAPDU: 80 11 00 00 [14:28:42]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:42]Read from MH i2c: E2 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 17 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B3 [14:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:28:42]wFMCommunicate OK [14:28:42]CreateOFDProtocolMessage done [14:28:42]OFDSenderStorePacket 118111 [14:28:42]StoreOFDPacket docnum=118111 [14:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AA B6 07 01 06 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AB 00 00 00 F4 03 04 00 9A 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5F CD 01 00 35 04 06 00 D2 A6 B3 53 BE 91 01 A0 73 1D 42 71 69 7B [14:28:42]CheckFolder [14:28:42]dirname=/storage/ofd_packets [14:28:42]CheckFolder done [14:28:42]ProducePacketName [14:28:42]name=ofd_packets/00118111 [14:28:42]NVStorageSaveData ofd_packets/00118111 [14:28:42]File name is /storage/ofd_packets/00118111 [14:28:42]Write 301 bytes [14:28:42]NVStorageSaveData done [14:28:42]OFDSenderStorePacket done [14:28:42]KKMCreateOFDPacket done [14:28:42]NVStorageSaveData kkm_last_timestamp [14:28:42]File name is /storage/kkm_last_timestamp [14:28:42]Write 4 bytes [14:28:42]NVStorageSaveData done [14:28:42]ExternCall_PrintAddStr [14:28:42]wPrintStart [14:28:42]Write to MH i2c: 01 00 00 DB 08 E3 [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: 01 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: 01 07 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [14:28:42]RasterBufferAndPrint [14:28:42]line Счет N : (1)245907 [14:28:42]line ИНН: 02508201610067 [14:28:42]line Контрольно-Кассовый Чек [14:28:42]line ПРОДАЖА [14:28:42]line ТРК (МРК, ГНК) : 21 [14:28:42]line Товар: 2710124130 [14:28:42]line Аи-92-К-2 [14:28:42]line 7.480 * 66.90 [14:28:42]line = 500.41 [14:28:42]line НДС 12% НСП 1% [14:28:42]line > о реализуемом товаре [14:28:42]line ОКРУГЛЕНИЕ: -0.41 [14:28:42]line ИТОГО: 500.00 [14:28:42]line Внесено: 500.00 [14:28:42]line СДАЧА: 0.00 [14:28:42]line НСП 1% : 4.43 [14:28:42]line НДС 12% : 53.14 [14:28:42]line Наличными: 500.00 [14:28:42]line Безнал.: 0.00 [14:28:42]line Место: АЗС № 173 "Партнер Нефть" [14:28:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:28:42]line СНО: Общий режим [14:28:42]line Чек 171 30.10.2024 14:28 [14:28:42]line Смена: 545 ФФД: 1.0 [14:28:42]line ЗНМ: 0300000115 [14:28:42]line РНМ: 0000000000091782 [14:28:42]line Версия ККМ: 001 [14:28:42]line ФМ: 0000000000871767 [14:28:42]line ФД: 118111 [14:28:42]line ФПД: 231613415014033 [14:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142842&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118111&fm=231613415014033&tin=02508201610067®Number=0000000000091782&sum=50000 [14:28:43]written 0, free lines is 4095 [14:28:43]OFD Sender: Processing packet 118111 [packets to send 77, broken 76] [14:28:43]ProducePacketName [14:28:43]name=ofd_packets/00118111 [14:28:43]OFD Sender: To server: pG, [14:28:43]CommunicateWithHost lk.salyk.kg:30040 [14:28:43]ConnectInit lk.salyk.kg [14:28:43]Connected sock=11 [14:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AA B6 07 01 06 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AB 00 00 00 F4 03 04 00 9A 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 5F CD 01 00 35 04 06 00 D2 A6 B3 53 BE 91 01 A0 73 1D 42 71 69 7B [14:28: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 36 37 4F 00 00 00 DF DE 47 00 54 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 36 37 10 04 04 00 5F CD 01 00 F4 03 04 00 51 EE 21 67 B6 04 01 00 00 A5 FD 5A 85 56 2E BE 93 [14:28:43]CommunicateWithHost err = 0 [14:28:43]CheckOFDResponse [14:28:43]1017 (14) - 77093643461234 [14:28:43]1041 (16) - 0000000000871767 [14:28:43]1040 (4) - 118111 [14:28:43]1012 (4) - 30.10.2024 08:29 [14:28:43]1206 (1) - 0 [14:28:43]OFD Sender: Remove packet 118111 [14:28:43]ProducePacketName [14:28:43]name=ofd_packets/00118111 [14:28:43]NVStorageDeleteData [14:28:43]Write to MH i2c: 01 00 00 05 09 0E [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: 01 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: 01 07 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: 01 07 00 05 09 00 00 00 00 00 AA 0C CB [14:28:43]RasterBufferAndPrint [14:28:43]line [14:28:43]line [14:28:43]line [14:28:43]line [14:28:43]line [14:28:43]written 0, free lines is 3245 [14:28:43]MH_Cut [14:28:43]Write to MH i2c: D1 01 00 0C 09 01 E7 [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: D1 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: D1 01 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: D1 01 00 0C 09 00 E6 [14:28:43]Write to MH i2c: 01 00 00 0D 09 16 [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]OFD Sender: No OFD packet to send [14:28:44]*** Cut start [14:28:44]*** Purtial cut [14:28:44]*** Stage 1: CUTSNS_PIN = 1 [14:28:44]Read from MH i2c: 01 [14:28:44]MH_I2C_Read... [14:28:44]*** Stop cut motor [14:28:44]*** Cut end [14:28:44]Read from MH i2c: 01 07 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: 01 07 00 0D 09 00 00 00 00 00 FF 0F 2B [14:28:44]process_action close_receipt done [14:28:44]requested_data is exist [14:28:44]produce_requested_data [14:28:44]requested_item fm.sn is exist - process it [14:28:44]wFMCommunicate request_size=4 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 11 00 00 [14:28:44]Write to MH i2c: E2 08 00 0E 09 80 11 00 00 00 00 00 00 91 [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 17 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 17 00 0E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E8 [14:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:28:44]wFMCommunicate OK [14:28:44]requested_item fd.num is exist - process it [14:28:44]SAM_PROTO_GetFieldsCounters [14:28:44]wFMCommunicate request_size=4 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 13 00 00 [14:28:44]Write to MH i2c: E2 08 00 0F 09 80 13 00 00 00 00 00 00 94 [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 62 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 62 00 0F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 5F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:44]wFMCommunicate OK [14:28:44]SAM_PROTO_GetFieldsCounters done [14:28:44]requested_item shift.num is exist - process it [14:28:44]requested_item shift.opened is exist - process it [14:28:44]req_shift_opened [14:28:44]FM_GetShiftState [14:28:44]SAM_PROTO_GetShiftState [14:28:44]wFMCommunicate request_size=4 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 13 01 00 [14:28:44]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 0E 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6E [14:28:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:28:44]wFMCommunicate OK [14:28:44]SAM_PROTO_GetShiftState done [14:28:44]FM_GetShiftState done [14:28:44]req_shift_opened done [14:28:44]requested_item shift.open_date is exist - process it [14:28:44]req_shift_open_date [14:28:44]req_shift_open_date done [14:28:44]produce_requested_data done [14:28:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118111,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:28:44]process_action_free close_receipt [14:28:44]json_value_free [14:28:44]json_value_free done [14:28:44]process_json_proto returns [14:28:44]Send response to host [14:28:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118111,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:28:44]free response buf [14:28:44]execute_script done [14:28:44]execute_script returns [14:28:44]free content buf [14:28:44]Sock 9.Close socket [14:28:44]Sock 9.Thread stoped [14:28:47]accept exits with 7 [14:28:47]New connection [14:28:47]New thread 3066551652 created [14:28:47]Thread 3066695012 joined [14:28:47]Waiting for new connection... [14:28:47] Sock 7.Parse request [14:28:47]Sock 7.Check first char [14:28:47]Sock 7.First char is OK [14:28:47]request: POST /json_proto HTTP/1.0 [14:28:47]Method: POST [14:28:47]URL: /json_proto [14:28:47]Method is POST - this is cgi request [14:28:47]url: /json_proto [14:28:47]query_string will be loaded in cgi processing [14:28:47]execute_cgi json_proto POST (null) [14:28:47]execute_cgi path=json_proto method=POST [14:28:47]POST find Content-Length [14:28:47]Host: 172.17.96.67:8080 [14:28:47]Content-Length: 677 [14:28:47]Content-Type: application/json [14:28:47] [14:28:47]POST finish read [14:28:47]Found Content-Length = 677 [14:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:47]execute_script... [14:28: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)245908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:47]POST & json_proto [14:28:47]process_json_proto [14:28:47]json parsed OK: [14:28:47]protocol is kg_v1.0 [14:28:47]action value=close_receipt [14:28:47]process_action close_receipt [14:28:47]cmd_close_receipt [14:28:47]MH_GetDate [14:28:47]Write to MH i2c: F0 00 00 11 09 09 [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: F0 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: F0 09 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: F0 09 00 11 09 00 A1 42 22 67 47 6C 1F 67 B7 [14:28:47]GetLastDocTimeStamp 1730298522 [14:28:47]current date 1730298529 [14:28:47]FM_GetShiftState [14:28:47]SAM_PROTO_GetShiftState [14:28:47]wFMCommunicate request_size=4 [14:28:47]MH_SAM_APDU [14:28:47]CAPDU: 80 13 01 00 [14:28:47]Write to MH i2c: E2 08 00 12 09 80 13 01 00 00 00 00 00 98 [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:48]Read from MH i2c: E2 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 0E 00 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 0E 00 12 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 70 [14:28:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:28:48]wFMCommunicate OK [14:28:48]SAM_PROTO_GetShiftState done [14:28:48]FM_GetShiftState done [14:28:48]opened in 1730246605 [14:28:48]opened+sec_in_day 1730333005 [14:28:48]quantity*price = 30038 [14:28:48]sum+1 = 30039 [14:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 172 30.10.2024 14:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118112 ФПД: 275139088389975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142849&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118112&fm=275139088389975&tin=02508201610067®Number=0000000000091782&sum=30000 [14:28:49]StoreToDocumentArchive [14:28:49]shift 545 fd 118112 [14:28:49]save to /storage/0545/doc_00118112 [14:28:49]save last doc name /storage/0545/doc_00118112 to /storage/kkm_last_doc_name [14:28:49]save OK [14:28:49]Clear old archive folders... [14:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:49]tlvbuf is 000D8AA0 [14:28:49]SAM_PROTO_ClearQueue [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 09 00 00 [14:28:49]Write to MH i2c: E2 08 00 1F 09 80 09 00 00 00 00 00 00 9A [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [14:28:49]RAPDU: 90 00 [14:28:49]wFMCommunicate OK [14:28:49]SAM_PROTO_ClearQueue done [14:28:49]KKMCreateOFDPacket [14:28:49]OFDProtocolAddRootSTLVToBuf [14:28:49]FM_MakeSignedData [14:28:49]FM_MakeSignedData [14:28:49]SAM_PROTO_SignData [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 0D 01 02 [14:28:49]Write to MH i2c: E2 08 00 20 09 80 0D 01 02 00 00 00 00 A2 [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [14:28:49]RAPDU: 90 00 [14:28:49]wFMCommunicate OK [14:28:49]wFMCommunicate request_size=255 [14:28:49]MH_SAM_APDU [14:28: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 32 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 AC 00 00 00 F4 03 04 00 A1 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 60 CD 01 00 35 04 06 00 FA [14:28:49]Write to MH i2c: E2 02 01 21 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 00 00 00 F4 03 04 00 A1 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 60 CD 01 00 35 04 06 00 FA 00 00 8B [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [14:28:49]RAPDU: 90 00 [14:28:49]wFMCommunicate OK [14:28:49]wFMCommunicate request_size=10 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 0D 02 02 05 3C CF A0 97 57 [14:28:49]Write to MH i2c: E2 0D 00 22 09 80 0D 02 02 05 00 3C CF A0 97 57 00 00 48 [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [14:28:49]RAPDU: 90 00 [14:28:49]wFMCommunicate OK [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 0D 03 02 [14:28:49]Write to MH i2c: E2 08 00 23 09 80 0D 03 02 00 00 00 00 A7 [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 0B 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 0B 00 23 09 00 D8 68 CC D1 8C 27 8D E8 90 00 AD [14:28:49]RAPDU: D8 68 CC D1 8C 27 8D E8 90 00 [14:28:49]wFMCommunicate OK [14:28:49]SAM_PROTO_SignData done [14:28:49]FM_MakeSignedData done [14:28:49]CreateOFDProtocolMessage [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 11 00 00 [14:28:49]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 17 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 17 00 24 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FE [14:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:28:49]wFMCommunicate OK [14:28:49]CreateOFDProtocolMessage done [14:28:49]OFDSenderStorePacket 118112 [14:28:49]StoreOFDPacket docnum=118112 [14:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4D 8A 07 01 43 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 00 00 00 F4 03 04 00 A1 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 60 CD 01 00 35 04 06 00 FA 3C CF A0 97 57 D8 68 CC D1 8C 27 8D E8 [14:28:49]CheckFolder [14:28:49]dirname=/storage/ofd_packets [14:28:49]CheckFolder done [14:28:49]ProducePacketName [14:28:49]name=ofd_packets/00118112 [14:28:49]NVStorageSaveData ofd_packets/00118112 [14:28:49]File name is /storage/ofd_packets/00118112 [14:28:49]Write 301 bytes [14:28:49]NVStorageSaveData done [14:28:49]OFDSenderStorePacket done [14:28:49]KKMCreateOFDPacket done [14:28:49]NVStorageSaveData kkm_last_timestamp [14:28:49]File name is /storage/kkm_last_timestamp [14:28:49]Write 4 bytes [14:28:49]NVStorageSaveData done [14:28:49]ExternCall_PrintAddStr [14:28:49]wPrintStart [14:28:49]Write to MH i2c: 01 00 00 25 09 2E [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: 01 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: 01 07 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [14:28:49]RasterBufferAndPrint [14:28:49]line Счет N : (1)245908 [14:28:49]line ИНН: 02508201610067 [14:28:49]line Контрольно-Кассовый Чек [14:28:49]line ПРОДАЖА [14:28:49]line ТРК (МРК, ГНК) : 11 [14:28:49]line Товар: 2710124130 [14:28:49]line Аи-92-К-2 [14:28:49]line 4.490 * 66.90 [14:28:49]line = 300.38 [14:28:49]line НДС 12% НСП 1% [14:28:49]line > о реализуемом товаре [14:28:49]line ОКРУГЛЕНИЕ: -0.38 [14:28:49]line ИТОГО: 300.00 [14:28:49]line Внесено: 300.00 [14:28:49]line СДАЧА: 0.00 [14:28:49]line НСП 1% : 2.66 [14:28:49]line НДС 12% : 31.90 [14:28:49]line Наличными: 300.00 [14:28:49]line Безнал.: 0.00 [14:28:49]line Место: АЗС № 173 "Партнер Нефть" [14:28:49]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:28:49]line СНО: Общий режим [14:28:49]line Чек 172 30.10.2024 14:28 [14:28:49]line Смена: 545 ФФД: 1.0 [14:28:49]line ЗНМ: 0300000115 [14:28:49]line РНМ: 0000000000091782 [14:28:49]line Версия ККМ: 001 [14:28:49]line ФМ: 0000000000871767 [14:28:49]line ФД: 118112 [14:28:49]line ФПД: 275139088389975 [14:28:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142849&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118112&fm=275139088389975&tin=02508201610067®Number=0000000000091782&sum=30000 [14:28:49]written 0, free lines is 4095 [14:28:49]OFD Sender: Processing packet 118112 [packets to send 77, broken 76] [14:28:49]ProducePacketName [14:28:49]name=ofd_packets/00118112 [14:28:50]OFD Sender: To server: pG, [14:28:50]CommunicateWithHost lk.salyk.kg:30040 [14:28:50]ConnectInit lk.salyk.kg [14:28:50]Connected sock=10 [14:28: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 36 37 0F 01 00 00 4D 8A 07 01 43 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 00 00 00 F4 03 04 00 A1 42 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 60 CD 01 00 35 04 06 00 FA 3C CF A0 97 57 D8 68 CC D1 8C 27 8D E8 [14:28:50]Write to MH i2c: 01 00 00 4F 09 58 [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: 01 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: 01 07 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: 01 07 00 4F 09 00 00 00 00 00 CA 0C 35 [14:28:50]RasterBufferAndPrint [14:28:50]line [14:28:50]line [14:28:50]line [14:28:50]line [14:28:50]line [14:28:50]written 0, free lines is 3284 [14:28:50]MH_Cut [14:28:50]Write to MH i2c: D1 01 00 56 09 01 31 [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: D1 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: D1 01 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: D1 01 00 56 09 00 30 [14:28:50]Write to MH i2c: 01 00 00 57 09 60 [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28: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 36 37 4F 00 00 00 F2 03 47 00 F0 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 60 CD 01 00 F4 03 04 00 58 EE 21 67 B6 04 01 00 00 88 C4 F6 13 0F 33 F3 6E [14:28:50]CommunicateWithHost err = 0 [14:28:50]CheckOFDResponse [14:28:50]1017 (14) - 77093643461234 [14:28:50]1041 (16) - 0000000000871767 [14:28:50]1040 (4) - 118112 [14:28:50]1012 (4) - 30.10.2024 08:29 [14:28:50]1206 (1) - 0 [14:28:50]OFD Sender: Remove packet 118112 [14:28:50]ProducePacketName [14:28:50]name=ofd_packets/00118112 [14:28:50]NVStorageDeleteData [14:28:50]OFD Sender: No OFD packet to send [14:28:50]*** Cut start [14:28:50]*** Purtial cut [14:28:50]*** Stage 1: CUTSNS_PIN = 1 [14:28:51]Read from MH i2c: 01 [14:28:51]MH_I2C_Read... [14:28:51]*** Stop cut motor [14:28:51]*** Cut end [14:28:51]Read from MH i2c: 01 07 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 FF 0F 75 [14:28:51]process_action close_receipt done [14:28:51]requested_data is exist [14:28:51]produce_requested_data [14:28:51]requested_item fm.sn is exist - process it [14:28:51]wFMCommunicate request_size=4 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 11 00 00 [14:28:51]Write to MH i2c: E2 08 00 58 09 80 11 00 00 00 00 00 00 DB [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 17 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 17 00 58 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 32 [14:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:28:51]wFMCommunicate OK [14:28:51]requested_item fd.num is exist - process it [14:28:51]SAM_PROTO_GetFieldsCounters [14:28:51]wFMCommunicate request_size=4 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 13 00 00 [14:28:51]Write to MH i2c: E2 08 00 59 09 80 13 00 00 00 00 00 00 DE [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 62 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 62 00 59 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 60 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [14:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 60 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:51]wFMCommunicate OK [14:28:51]SAM_PROTO_GetFieldsCounters done [14:28:51]requested_item shift.num is exist - process it [14:28:51]requested_item shift.opened is exist - process it [14:28:51]req_shift_opened [14:28:51]FM_GetShiftState [14:28:51]SAM_PROTO_GetShiftState [14:28:51]wFMCommunicate request_size=4 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 13 01 00 [14:28:51]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 0E 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B8 [14:28:51]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:28:51]wFMCommunicate OK [14:28:51]SAM_PROTO_GetShiftState done [14:28:51]FM_GetShiftState done [14:28:51]req_shift_opened done [14:28:51]requested_item shift.open_date is exist - process it [14:28:51]req_shift_open_date [14:28:51]req_shift_open_date done [14:28:51]produce_requested_data done [14:28:51]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118112,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:28:51]process_action_free close_receipt [14:28:51]json_value_free [14:28:51]json_value_free done [14:28:51]process_json_proto returns [14:28:51]Send response to host [14:28:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118112,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:28:51]free response buf [14:28:51]execute_script done [14:28:51]execute_script returns [14:28:51]free content buf [14:28:51]Sock 7.Close socket [14:28:51]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:30]accept exits with 9 [14:33:30]New connection [14:33:30]New thread 3066695012 created [14:33:30]Thread 3066551652 joined [14:33:30]Waiting for new connection... [14:33:30] Sock 9.Parse request [14:33:30]Sock 9.Check first char [14:33:30]Sock 9.First char is OK [14:33:30]request: POST /json_proto HTTP/1.0 [14:33:30]Method: POST [14:33:30]URL: /json_proto [14:33:30]Method is POST - this is cgi request [14:33:30]url: /json_proto [14:33:30]query_string will be loaded in cgi processing [14:33:30]execute_cgi json_proto POST (null) [14:33:30]execute_cgi path=json_proto method=POST [14:33:30]POST find Content-Length [14:33:30]Host: 172.17.96.67:8080 [14:33:30]Content-Length: 682 [14:33:30]Content-Type: application/json [14:33:30] [14:33:30]POST finish read [14:33:30]Found Content-Length = 682 [14:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:33:30]execute_script... [14:33: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)245909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:33:30]POST & json_proto [14:33:30]process_json_proto [14:33:30]json parsed OK: [14:33:30]protocol is kg_v1.0 [14:33:30]action value=close_receipt [14:33:30]process_action close_receipt [14:33:30]cmd_close_receipt [14:33:30]MH_GetDate [14:33:30]Write to MH i2c: F0 00 00 5B 09 53 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: F0 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: F0 09 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: F0 09 00 5B 09 00 BB 43 22 67 47 6C 1F 67 1C [14:33:30]GetLastDocTimeStamp 1730298529 [14:33:30]current date 1730298811 [14:33:30]FM_GetShiftState [14:33:30]SAM_PROTO_GetShiftState [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 13 01 00 [14:33:30]Write to MH i2c: E2 08 00 5C 09 80 13 01 00 00 00 00 00 E2 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0E 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0E 00 5C 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BA [14:33:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:33:30]wFMCommunicate OK [14:33:30]SAM_PROTO_GetShiftState done [14:33:30]FM_GetShiftState done [14:33:30]opened in 1730246605 [14:33:30]opened+sec_in_day 1730333005 [14:33:30]quantity*price = 100015 [14:33:30]sum+1 = 100017 [14:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 173 30.10.2024 14:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118113 ФПД: 265847517763023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143331&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118113&fm=265847517763023&tin=02508201610067®Number=0000000000091782&sum=100000 [14:33:31]StoreToDocumentArchive [14:33:31]shift 545 fd 118113 [14:33:31]save to /storage/0545/doc_00118113 [14:33:31]save last doc name /storage/0545/doc_00118113 to /storage/kkm_last_doc_name [14:33:31]save OK [14:33:31]Clear old archive folders... [14:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:31]tlvbuf is 000F1880 [14:33:31]SAM_PROTO_ClearQueue [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 09 00 00 [14:33:31]Write to MH i2c: E2 08 00 69 09 80 09 00 00 00 00 00 00 E4 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_ClearQueue done [14:33:32]KKMCreateOFDPacket [14:33:32]OFDProtocolAddRootSTLVToBuf [14:33:32]FM_MakeSignedData [14:33:32]FM_MakeSignedData [14:33:32]SAM_PROTO_SignData [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 0D 01 02 [14:33:32]Write to MH i2c: E2 08 00 6A 09 80 0D 01 02 00 00 00 00 EC [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]wFMCommunicate request_size=255 [14:33:32]MH_SAM_APDU [14:33: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BB 43 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 61 CD 01 00 35 04 06 00 F1 [14:33:32]Write to MH i2c: E2 02 01 6B 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BB 43 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 61 CD 01 00 35 04 06 00 F1 00 00 EF [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]wFMCommunicate request_size=10 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 0D 02 02 05 C9 72 DC 55 CF [14:33:32]Write to MH i2c: E2 0D 00 6C 09 80 0D 02 02 05 00 C9 72 DC 55 CF 00 00 34 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 0D 03 02 [14:33:32]Write to MH i2c: E2 08 00 6D 09 80 0D 03 02 00 00 00 00 F1 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0B 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0B 00 6D 09 00 4B 6C 48 CB 3D 5F 15 B2 90 00 1F [14:33:32]RAPDU: 4B 6C 48 CB 3D 5F 15 B2 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_SignData done [14:33:32]FM_MakeSignedData done [14:33:32]CreateOFDProtocolMessage [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 11 00 00 [14:33:32]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 6E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 48 [14:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:33:32]wFMCommunicate OK [14:33:32]CreateOFDProtocolMessage done [14:33:32]OFDSenderStorePacket 118113 [14:33:32]StoreOFDPacket docnum=118113 [14:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A9 9B 07 01 82 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BB 43 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 61 CD 01 00 35 04 06 00 F1 C9 72 DC 55 CF 4B 6C 48 CB 3D 5F 15 B2 [14:33:32]CheckFolder [14:33:32]dirname=/storage/ofd_packets [14:33:32]CheckFolder done [14:33:32]ProducePacketName [14:33:32]name=ofd_packets/00118113 [14:33:32]NVStorageSaveData ofd_packets/00118113 [14:33:32]File name is /storage/ofd_packets/00118113 [14:33:32]Write 301 bytes [14:33:32]NVStorageSaveData done [14:33:32]OFDSenderStorePacket done [14:33:32]KKMCreateOFDPacket done [14:33:32]NVStorageSaveData kkm_last_timestamp [14:33:32]File name is /storage/kkm_last_timestamp [14:33:32]Write 4 bytes [14:33:32]NVStorageSaveData done [14:33:32]ExternCall_PrintAddStr [14:33:32]wPrintStart [14:33:32]Write to MH i2c: 01 00 00 6F 09 78 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 6F 09 00 00 00 00 00 FF 0F 8D [14:33:32]RasterBufferAndPrint [14:33:32]line Счет N : (1)245909 [14:33:32]line ИНН: 02508201610067 [14:33:32]line Контрольно-Кассовый Чек [14:33:32]line ПРОДАЖА [14:33:32]line ТРК (МРК, ГНК) : 11 [14:33:32]line Товар: 2710124130 [14:33:32]line Аи-92-К-2 [14:33:32]line 14.950 * 66.90 [14:33:32]line = 1000.16 [14:33:32]line НДС 12% НСП 1% [14:33:32]line > о реализуемом товаре [14:33:32]line ОКРУГЛЕНИЕ: -0.16 [14:33:32]line ИТОГО: 1000.00 [14:33:32]line Внесено: 1000.00 [14:33:32]line СДАЧА: 0.00 [14:33:32]line НСП 1% : 8.85 [14:33:32]line НДС 12% : 106.21 [14:33:32]line Наличными: 1000.00 [14:33:32]line Безнал.: 0.00 [14:33:32]line Место: АЗС № 173 "Партнер Нефть" [14:33:32]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:33:32]line СНО: Общий режим [14:33:32]line Чек 173 30.10.2024 14:33 [14:33:32]line Смена: 545 ФФД: 1.0 [14:33:32]line ЗНМ: 0300000115 [14:33:32]line РНМ: 0000000000091782 [14:33:32]line Версия ККМ: 001 [14:33:32]line ФМ: 0000000000871767 [14:33:32]line ФД: 118113 [14:33:32]line ФПД: 265847517763023 [14:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143331&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118113&fm=265847517763023&tin=02508201610067®Number=0000000000091782&sum=100000 [14:33:32]OFD Sender: Processing packet 118113 [packets to send 77, broken 76] [14:33:32]ProducePacketName [14:33:32]name=ofd_packets/00118113 [14:33:32]OFD Sender: To server: pG, [14:33:32]CommunicateWithHost lk.salyk.kg:30040 [14:33:32]ConnectInit lk.salyk.kg [14:33:32]written 0, free lines is 4095 [14:33:32]Connected sock=10 [14:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A9 9B 07 01 82 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 BB 43 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 61 CD 01 00 35 04 06 00 F1 C9 72 DC 55 CF 4B 6C 48 CB 3D 5F 15 B2 [14:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 33 8F 47 00 D3 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 61 CD 01 00 F4 03 04 00 73 EF 21 67 B6 04 01 00 00 E2 39 7A 18 CC 42 06 DC [14:33:33]CommunicateWithHost err = 0 [14:33:33]CheckOFDResponse [14:33:33]1017 (14) - 77093643461234 [14:33:33]1041 (16) - 0000000000871767 [14:33:33]1040 (4) - 118113 [14:33:33]1012 (4) - 30.10.2024 08:33 [14:33:33]1206 (1) - 0 [14:33:33]OFD Sender: Remove packet 118113 [14:33:33]ProducePacketName [14:33:33]name=ofd_packets/00118113 [14:33:33]NVStorageDeleteData [14:33:33]Write to MH i2c: 01 00 00 99 09 A2 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 99 09 00 00 00 00 00 AD 0C 62 [14:33:33]RasterBufferAndPrint [14:33:33]line [14:33:33]line [14:33:33]line [14:33:33]line [14:33:33]line [14:33:33]written 0, free lines is 3251 [14:33:33]MH_Cut [14:33:33]Write to MH i2c: D1 01 00 A0 09 01 7B [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: D1 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: D1 01 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: D1 01 00 A0 09 00 7A [14:33:33]Write to MH i2c: 01 00 00 A1 09 AA [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]OFD Sender: No OFD packet to send [14:33:34]*** Cut start [14:33:34]*** Purtial cut [14:33:34]*** Stage 1: CUTSNS_PIN = 1 [14:33:34]Read from MH i2c: 01 [14:33:34]MH_I2C_Read... [14:33:34]*** Stop cut motor [14:33:34]*** Cut end [14:33:34]Read from MH i2c: 01 07 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 A1 09 00 00 00 00 00 FF 0F BF [14:33:34]process_action close_receipt done [14:33:34]requested_data is exist [14:33:34]produce_requested_data [14:33:34]requested_item fm.sn is exist - process it [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 11 00 00 [14:33:34]Write to MH i2c: E2 08 00 A2 09 80 11 00 00 00 00 00 00 25 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 17 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 17 00 A2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7C [14:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:33:34]wFMCommunicate OK [14:33:34]requested_item fd.num is exist - process it [14:33:34]SAM_PROTO_GetFieldsCounters [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 13 00 00 [14:33:34]Write to MH i2c: E2 08 00 A3 09 80 13 00 00 00 00 00 00 28 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 62 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 62 00 A3 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 61 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [14:33: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 61 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:34]wFMCommunicate OK [14:33:34]SAM_PROTO_GetFieldsCounters done [14:33:34]requested_item shift.num is exist - process it [14:33:34]requested_item shift.opened is exist - process it [14:33:34]req_shift_opened [14:33:34]FM_GetShiftState [14:33:34]SAM_PROTO_GetShiftState [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 13 01 00 [14:33:34]Write to MH i2c: E2 08 00 A4 09 80 13 01 00 00 00 00 00 2A [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 0E 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 0E 00 A4 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 02 [14:33:34]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:33:34]wFMCommunicate OK [14:33:34]SAM_PROTO_GetShiftState done [14:33:34]FM_GetShiftState done [14:33:34]req_shift_opened done [14:33:34]requested_item shift.open_date is exist - process it [14:33:34]req_shift_open_date [14:33:34]req_shift_open_date done [14:33:34]produce_requested_data done [14:33:34]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118113,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:33:34]process_action_free close_receipt [14:33:34]json_value_free [14:33:34]json_value_free done [14:33:34]process_json_proto returns [14:33:34]Send response to host [14:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118113,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:33:34]free response buf [14:33:34]execute_script done [14:33:34]execute_script returns [14:33:34]free content buf [14:33:34]Sock 9.Close socket [14:33:34]Sock 9.Thread stoped [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:34:59]accept exits with 7 [14:34:59]New connection [14:34:59]New thread 3066551652 created [14:34:59]Thread 3066695012 joined [14:34:59]Waiting for new connection... [14:34:59] Sock 7.Parse request [14:34:59]Sock 7.Check first char [14:34:59]Sock 7.First char is OK [14:34:59]request: POST /json_proto HTTP/1.0 [14:34:59]Method: POST [14:34:59]URL: /json_proto [14:34:59]Method is POST - this is cgi request [14:34:59]url: /json_proto [14:34:59]query_string will be loaded in cgi processing [14:34:59]execute_cgi json_proto POST (null) [14:34:59]execute_cgi path=json_proto method=POST [14:34:59]POST find Content-Length [14:34:59]Host: 172.17.96.67:8080 [14:34:59]Content-Length: 677 [14:34:59]Content-Type: application/json [14:34:59] [14:34:59]POST finish read [14:34:59]Found Content-Length = 677 [14:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:34:59]execute_script... [14:34: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)245910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:34:59]POST & json_proto [14:34:59]process_json_proto [14:34:59]json parsed OK: [14:34:59]protocol is kg_v1.0 [14:34:59]action value=close_receipt [14:34:59]process_action close_receipt [14:34:59]cmd_close_receipt [14:34:59]MH_GetDate [14:34:59]Write to MH i2c: F0 00 00 A5 09 9D [14:34:59]Write i2c OK [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 09 00 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 09 00 A5 09 00 14 44 22 67 47 6C 1F 67 C0 [14:34:59]GetLastDocTimeStamp 1730298811 [14:34:59]current date 1730298900 [14:34:59]FM_GetShiftState [14:34:59]SAM_PROTO_GetShiftState [14:34:59]wFMCommunicate request_size=4 [14:34:59]MH_SAM_APDU [14:34:59]CAPDU: 80 13 01 00 [14:34:59]Write to MH i2c: E2 08 00 A6 09 80 13 01 00 00 00 00 00 2C [14:34:59]Write i2c OK [14:34:59]MH_I2C_Read... [14:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:59]Read from MH i2c: E2 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: E2 0E 00 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: E2 0E 00 A6 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 04 [14:34:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:34:59]wFMCommunicate OK [14:34:59]SAM_PROTO_GetShiftState done [14:34:59]FM_GetShiftState done [14:34:59]opened in 1730246605 [14:34:59]opened+sec_in_day 1730333005 [14:34:59]quantity*price = 50041 [14:34:59]sum+1 = 50042 [14:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 174 30.10.2024 14:35 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118114 ФПД: 104905491712846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143500&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118114&fm=104905491712846&tin=02508201610067®Number=0000000000091782&sum=50000 [14:35:00]StoreToDocumentArchive [14:35:00]shift 545 fd 118114 [14:35:00]save to /storage/0545/doc_00118114 [14:35:00]save last doc name /storage/0545/doc_00118114 to /storage/kkm_last_doc_name [14:35:00]save OK [14:35:00]Clear old archive folders... [14:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:00]tlvbuf is 000F1F30 [14:35:00]SAM_PROTO_ClearQueue [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 09 00 00 [14:35:00]Write to MH i2c: E2 08 00 B3 09 80 09 00 00 00 00 00 00 2E [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]SAM_PROTO_ClearQueue done [14:35:00]KKMCreateOFDPacket [14:35:00]OFDProtocolAddRootSTLVToBuf [14:35:00]FM_MakeSignedData [14:35:00]FM_MakeSignedData [14:35:00]SAM_PROTO_SignData [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 0D 01 02 [14:35:00]Write to MH i2c: E2 08 00 B4 09 80 0D 01 02 00 00 00 00 36 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]wFMCommunicate request_size=255 [14:35:00]MH_SAM_APDU [14:35: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 32 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 AE 00 00 00 F4 03 04 00 14 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 62 CD 01 00 35 04 06 00 5F [14:35:00]Write to MH i2c: E2 02 01 B5 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AE 00 00 00 F4 03 04 00 14 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 62 CD 01 00 35 04 06 00 5F 00 00 09 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]wFMCommunicate request_size=10 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 0D 02 02 05 69 36 91 8B 4E [14:35:00]Write to MH i2c: E2 0D 00 B6 09 80 0D 02 02 05 00 69 36 91 8B 4E 00 00 4C [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 03 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [14:35:01]RAPDU: 90 00 [14:35:01]wFMCommunicate OK [14:35:01]wFMCommunicate request_size=4 [14:35:01]MH_SAM_APDU [14:35:01]CAPDU: 80 0D 03 02 [14:35:01]Write to MH i2c: E2 08 00 B7 09 80 0D 03 02 00 00 00 00 3B [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 0B 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 0B 00 B7 09 00 A5 25 C3 C8 9C 8B 24 D1 90 00 AD [14:35:01]RAPDU: A5 25 C3 C8 9C 8B 24 D1 90 00 [14:35:01]wFMCommunicate OK [14:35:01]SAM_PROTO_SignData done [14:35:01]FM_MakeSignedData done [14:35:01]CreateOFDProtocolMessage [14:35:01]wFMCommunicate request_size=4 [14:35:01]MH_SAM_APDU [14:35:01]CAPDU: 80 11 00 00 [14:35:01]Write to MH i2c: E2 08 00 B8 09 80 11 00 00 00 00 00 00 3B [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 17 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 17 00 B8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 92 [14:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:35:01]wFMCommunicate OK [14:35:01]CreateOFDProtocolMessage done [14:35:01]OFDSenderStorePacket 118114 [14:35:01]StoreOFDPacket docnum=118114 [14:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 BC 63 07 01 85 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 32 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 AE 00 00 00 F4 03 04 00 14 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 62 CD 01 00 35 04 06 00 5F 69 36 91 8B 4E A5 25 C3 C8 9C 8B 24 D1 [14:35:01]CheckFolder [14:35:01]dirname=/storage/ofd_packets [14:35:01]CheckFolder done [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00118114 [14:35:01]NVStorageSaveData ofd_packets/00118114 [14:35:01]File name is /storage/ofd_packets/00118114 [14:35:01]Write 301 bytes [14:35:01]NVStorageSaveData done [14:35:01]OFDSenderStorePacket done [14:35:01]KKMCreateOFDPacket done [14:35:01]NVStorageSaveData kkm_last_timestamp [14:35:01]File name is /storage/kkm_last_timestamp [14:35:01]Write 4 bytes [14:35:01]NVStorageSaveData done [14:35:01]ExternCall_PrintAddStr [14:35:01]wPrintStart [14:35:01]Write to MH i2c: 01 00 00 B9 09 C2 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 FF 0F D7 [14:35:01]RasterBufferAndPrint [14:35:01]line Счет N : (1)245910 [14:35:01]line ИНН: 02508201610067 [14:35:01]line Контрольно-Кассовый Чек [14:35:01]line ПРОДАЖА [14:35:01]line ТРК (МРК, ГНК) : 11 [14:35:01]line Товар: 2710124130 [14:35:01]line Аи-92-К-2 [14:35:01]line 7.480 * 66.90 [14:35:01]line = 500.41 [14:35:01]line НДС 12% НСП 1% [14:35:01]line > о реализуемом товаре [14:35:01]line ОКРУГЛЕНИЕ: -0.41 [14:35:01]line ИТОГО: 500.00 [14:35:01]line Внесено: 500.00 [14:35:01]line СДАЧА: 0.00 [14:35:01]line НСП 1% : 4.43 [14:35:01]line НДС 12% : 53.14 [14:35:01]line Наличными: 500.00 [14:35:01]line Безнал.: 0.00 [14:35:01]line Место: АЗС № 173 "Партнер Нефть" [14:35:01]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:35:01]line СНО: Общий режим [14:35:01]line Чек 174 30.10.2024 14:35 [14:35:01]line Смена: 545 ФФД: 1.0 [14:35:01]line ЗНМ: 0300000115 [14:35:01]line РНМ: 0000000000091782 [14:35:01]line Версия ККМ: 001 [14:35:01]line ФМ: 0000000000871767 [14:35:01]line ФД: 118114 [14:35:01]line ФПД: 104905491712846 [14:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143500&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118114&fm=104905491712846&tin=02508201610067®Number=0000000000091782&sum=50000 [14:35:01]written 0, free lines is 4095 [14:35:01]OFD Sender: Processing packet 118114 [packets to send 77, broken 76] [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00118114 [14:35:01]OFD Sender: To server: pG, [14:35:01]CommunicateWithHost lk.salyk.kg:30040 [14:35:01]ConnectInit lk.salyk.kg [14:35:01]Connected sock=10 [14:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 BC 63 07 01 85 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 32 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 AE 00 00 00 F4 03 04 00 14 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 62 CD 01 00 35 04 06 00 5F 69 36 91 8B 4E A5 25 C3 C8 9C 8B 24 D1 [14:35: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 36 37 4F 00 00 00 C6 5D 47 00 4C 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 36 37 10 04 04 00 62 CD 01 00 F4 03 04 00 CC EF 21 67 B6 04 01 00 00 3A 33 AA 36 1B 7F 1C 3F [14:35:01]CommunicateWithHost err = 0 [14:35:01]CheckOFDResponse [14:35:01]1017 (14) - 77093643461234 [14:35:01]1041 (16) - 0000000000871767 [14:35:01]1040 (4) - 118114 [14:35:01]1012 (4) - 30.10.2024 08:35 [14:35:01]1206 (1) - 0 [14:35:01]OFD Sender: Remove packet 118114 [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00118114 [14:35:01]NVStorageDeleteData [14:35:01]Write to MH i2c: 01 00 00 E3 09 EC [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 AD 0C AC [14:35:01]RasterBufferAndPrint [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]written 0, free lines is 3251 [14:35:01]MH_Cut [14:35:01]Write to MH i2c: D1 01 00 EA 09 01 C5 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: D1 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: D1 01 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: D1 01 00 EA 09 00 C4 [14:35:01]Write to MH i2c: 01 00 00 EB 09 F4 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:02]OFD Sender: No OFD packet to send [14:35:02]*** Cut start [14:35:02]*** Purtial cut [14:35:02]*** Stage 1: CUTSNS_PIN = 1 [14:35:03]Read from MH i2c: 01 [14:35:03]MH_I2C_Read... [14:35:03]*** Stop cut motor [14:35:03]*** Cut end [14:35:03]Read from MH i2c: 01 07 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [14:35:03]process_action close_receipt done [14:35:03]requested_data is exist [14:35:03]produce_requested_data [14:35:03]requested_item fm.sn is exist - process it [14:35:03]wFMCommunicate request_size=4 [14:35:03]MH_SAM_APDU [14:35:03]CAPDU: 80 11 00 00 [14:35:03]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 17 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C6 [14:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:35:03]wFMCommunicate OK [14:35:03]requested_item fd.num is exist - process it [14:35:03]SAM_PROTO_GetFieldsCounters [14:35:03]wFMCommunicate request_size=4 [14:35:03]MH_SAM_APDU [14:35:03]CAPDU: 80 13 00 00 [14:35:03]Write to MH i2c: E2 08 00 ED 09 80 13 00 00 00 00 00 00 72 [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 62 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 62 00 ED 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 62 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [14:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 62 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:03]wFMCommunicate OK [14:35:03]SAM_PROTO_GetFieldsCounters done [14:35:03]requested_item shift.num is exist - process it [14:35:03]requested_item shift.opened is exist - process it [14:35:03]req_shift_opened [14:35:03]FM_GetShiftState [14:35:03]SAM_PROTO_GetShiftState [14:35:03]wFMCommunicate request_size=4 [14:35:03]MH_SAM_APDU [14:35:03]CAPDU: 80 13 01 00 [14:35:03]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 0E 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4C [14:35:03]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:35:03]wFMCommunicate OK [14:35:03]SAM_PROTO_GetShiftState done [14:35:03]FM_GetShiftState done [14:35:03]req_shift_opened done [14:35:03]requested_item shift.open_date is exist - process it [14:35:03]req_shift_open_date [14:35:03]req_shift_open_date done [14:35:03]produce_requested_data done [14:35:03]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118114,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:35:03]process_action_free close_receipt [14:35:03]json_value_free [14:35:03]json_value_free done [14:35:03]process_json_proto returns [14:35:03]Send response to host [14:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118114,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:35:03]free response buf [14:35:03]execute_script done [14:35:03]execute_script returns [14:35:03]free content buf [14:35:03]Sock 7.Close socket [14:35:03]Sock 7.Thread stoped [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:42]OFD Sender: No OFD packet to send [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:54]accept exits with 9 [14:38:54]New connection [14:38:54]New thread 3066695012 created [14:38:54]Thread 3066551652 joined [14:38:54]Waiting for new connection... [14:38:54] Sock 9.Parse request [14:38:54]Sock 9.Check first char [14:38:54]Sock 9.First char is OK [14:38:54]request: POST /json_proto HTTP/1.0 [14:38:54]Method: POST [14:38:54]URL: /json_proto [14:38:54]Method is POST - this is cgi request [14:38:54]url: /json_proto [14:38:54]query_string will be loaded in cgi processing [14:38:54]execute_cgi json_proto POST (null) [14:38:54]execute_cgi path=json_proto method=POST [14:38:54]POST find Content-Length [14:38:54]Host: 172.17.96.67:8080 [14:38:54]Content-Length: 677 [14:38:54]Content-Type: application/json [14:38:54] [14:38:54]POST finish read [14:38:54]Found Content-Length = 677 [14:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:38:54]execute_script... [14:38: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)245911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:38:54]POST & json_proto [14:38:54]process_json_proto [14:38:54]json parsed OK: [14:38:54]protocol is kg_v1.0 [14:38:54]action value=close_receipt [14:38:54]process_action close_receipt [14:38:54]cmd_close_receipt [14:38:54]MH_GetDate [14:38:54]Write to MH i2c: F0 00 00 EF 09 E7 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: F0 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: F0 09 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: F0 09 00 EF 09 00 FF 44 22 67 47 6C 1F 67 F5 [14:38:54]GetLastDocTimeStamp 1730298900 [14:38:54]current date 1730299135 [14:38:54]FM_GetShiftState [14:38:54]SAM_PROTO_GetShiftState [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 13 01 00 [14:38:54]Write to MH i2c: E2 08 00 F0 09 80 13 01 00 00 00 00 00 76 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0E 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0E 00 F0 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4E [14:38:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_GetShiftState done [14:38:54]FM_GetShiftState done [14:38:54]opened in 1730246605 [14:38:54]opened+sec_in_day 1730333005 [14:38:54]quantity*price = 50041 [14:38:54]sum+1 = 50042 [14:38: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 175 30.10.2024 14:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118115 ФПД: 97695487741701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143855&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118115&fm=97695487741701&tin=02508201610067®Number=0000000000091782&sum=50000 [14:38:55]StoreToDocumentArchive [14:38:55]shift 545 fd 118115 [14:38:55]save to /storage/0545/doc_00118115 [14:38:55]save last doc name /storage/0545/doc_00118115 to /storage/kkm_last_doc_name [14:38:55]save OK [14:38:55]Clear old archive folders... [14:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:55]tlvbuf is 000E3000 [14:38:55]SAM_PROTO_ClearQueue [14:38:55]wFMCommunicate request_size=4 [14:38:55]MH_SAM_APDU [14:38:55]CAPDU: 80 09 00 00 [14:38:55]Write to MH i2c: E2 08 00 FD 09 80 09 00 00 00 00 00 00 78 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [14:38:56]RAPDU: 90 00 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_ClearQueue done [14:38:56]KKMCreateOFDPacket [14:38:56]OFDProtocolAddRootSTLVToBuf [14:38:56]FM_MakeSignedData [14:38:56]FM_MakeSignedData [14:38:56]SAM_PROTO_SignData [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 0D 01 02 [14:38:56]Write to MH i2c: E2 08 00 FE 09 80 0D 01 02 00 00 00 00 80 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [14:38:56]RAPDU: 90 00 [14:38:56]wFMCommunicate OK [14:38:56]wFMCommunicate request_size=255 [14:38:56]MH_SAM_APDU [14:38: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 32 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 AF 00 00 00 F4 03 04 00 FF 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 63 CD 01 00 35 04 06 00 58 [14:38:56]Write to MH i2c: E2 02 01 FF 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 00 00 00 F4 03 04 00 FF 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 63 CD 01 00 35 04 06 00 58 00 00 39 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [14:38:56]RAPDU: 90 00 [14:38:56]wFMCommunicate OK [14:38:56]wFMCommunicate request_size=10 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 0D 02 02 05 DA 80 D7 CF 05 [14:38:56]Write to MH i2c: E2 0D 00 00 0A 80 0D 02 02 05 00 DA 80 D7 CF 05 00 00 93 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [14:38:56]RAPDU: 90 00 [14:38:56]wFMCommunicate OK [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 0D 03 02 [14:38:56]Write to MH i2c: E2 08 00 01 0A 80 0D 03 02 00 00 00 00 86 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0B 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0B 00 01 0A 00 58 00 EF F3 28 76 BB 08 90 00 22 [14:38:56]RAPDU: 58 00 EF F3 28 76 BB 08 90 00 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_SignData done [14:38:56]FM_MakeSignedData done [14:38:56]CreateOFDProtocolMessage [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 11 00 00 [14:38:56]Write to MH i2c: E2 08 00 02 0A 80 11 00 00 00 00 00 00 86 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 02 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DD [14:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:38:56]wFMCommunicate OK [14:38:56]CreateOFDProtocolMessage done [14:38:56]OFDSenderStorePacket 118115 [14:38:56]StoreOFDPacket docnum=118115 [14:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 88 64 07 01 46 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 00 00 00 F4 03 04 00 FF 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 63 CD 01 00 35 04 06 00 58 DA 80 D7 CF 05 58 00 EF F3 28 76 BB 08 [14:38:56]CheckFolder [14:38:56]dirname=/storage/ofd_packets [14:38:56]CheckFolder done [14:38:56]ProducePacketName [14:38:56]name=ofd_packets/00118115 [14:38:56]NVStorageSaveData ofd_packets/00118115 [14:38:56]File name is /storage/ofd_packets/00118115 [14:38:56]Write 301 bytes [14:38:56]NVStorageSaveData done [14:38:56]OFDSenderStorePacket done [14:38:56]KKMCreateOFDPacket done [14:38:56]NVStorageSaveData kkm_last_timestamp [14:38:56]File name is /storage/kkm_last_timestamp [14:38:56]Write 4 bytes [14:38:56]NVStorageSaveData done [14:38:56]ExternCall_PrintAddStr [14:38:56]wPrintStart [14:38:56]Write to MH i2c: 01 00 00 03 0A 0D [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 07 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 FF 0F 22 [14:38:56]RasterBufferAndPrint [14:38:56]line Счет N : (1)245911 [14:38:56]line ИНН: 02508201610067 [14:38:56]line Контрольно-Кассовый Чек [14:38:56]line ПРОДАЖА [14:38:56]line ТРК (МРК, ГНК) : 21 [14:38:56]line Товар: 2710124130 [14:38:56]line Аи-92-К-2 [14:38:56]line 7.480 * 66.90 [14:38:56]line = 500.41 [14:38:56]line НДС 12% НСП 1% [14:38:56]line > о реализуемом товаре [14:38:56]line ОКРУГЛЕНИЕ: -0.41 [14:38:56]line ИТОГО: 500.00 [14:38:56]line Внесено: 500.00 [14:38:56]line СДАЧА: 0.00 [14:38:56]line НСП 1% : 4.43 [14:38:56]line НДС 12% : 53.14 [14:38:56]line Наличными: 500.00 [14:38:56]line Безнал.: 0.00 [14:38:56]line Место: АЗС № 173 "Партнер Нефть" [14:38:56]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:38:56]line СНО: Общий режим [14:38:56]line Чек 175 30.10.2024 14:38 [14:38:56]line Смена: 545 ФФД: 1.0 [14:38:56]line ЗНМ: 0300000115 [14:38:56]line РНМ: 0000000000091782 [14:38:56]line Версия ККМ: 001 [14:38:56]line ФМ: 0000000000871767 [14:38:56]line ФД: 118115 [14:38:56]line ФПД: 97695487741701 [14:38:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143855&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118115&fm=97695487741701&tin=02508201610067®Number=0000000000091782&sum=50000 [14:38:56]written 0, free lines is 4095 [14:38:56]OFD Sender: Processing packet 118115 [packets to send 77, broken 76] [14:38:56]ProducePacketName [14:38:56]name=ofd_packets/00118115 [14:38:56]OFD Sender: To server: pG, [14:38:56]CommunicateWithHost lk.salyk.kg:30040 [14:38:56]ConnectInit lk.salyk.kg [14:38:56]Connected sock=10 [14:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 88 64 07 01 46 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 00 00 00 F4 03 04 00 FF 44 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 63 CD 01 00 35 04 06 00 58 DA 80 D7 CF 05 58 00 EF F3 28 76 BB 08 [14:38: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 36 37 4F 00 00 00 B5 E8 47 00 D1 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 63 CD 01 00 F4 03 04 00 B7 F0 21 67 B6 04 01 00 00 B3 58 34 4D 50 4F 09 34 [14:38:57]CommunicateWithHost err = 0 [14:38:57]CheckOFDResponse [14:38:57]1017 (14) - 77093643461234 [14:38:57]1041 (16) - 0000000000871767 [14:38:57]1040 (4) - 118115 [14:38:57]1012 (4) - 30.10.2024 08:39 [14:38:57]1206 (1) - 0 [14:38:57]OFD Sender: Remove packet 118115 [14:38:57]ProducePacketName [14:38:57]name=ofd_packets/00118115 [14:38:57]NVStorageDeleteData [14:38:57]Write to MH i2c: 01 00 00 2D 0A 37 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: 01 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: 01 07 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: 01 07 00 2D 0A 00 00 00 00 00 AD 0C F7 [14:38:57]RasterBufferAndPrint [14:38:57]line [14:38:57]line [14:38:57]line [14:38:57]line [14:38:57]line [14:38:57]written 0, free lines is 3249 [14:38:57]MH_Cut [14:38:57]Write to MH i2c: D1 01 00 34 0A 01 10 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: D1 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: D1 01 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: D1 01 00 34 0A 00 0F [14:38:57]Write to MH i2c: 01 00 00 35 0A 3F [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]OFD Sender: No OFD packet to send [14:38:58]*** Cut start [14:38:58]*** Purtial cut [14:38:58]*** Stage 1: CUTSNS_PIN = 1 [14:38:58]Read from MH i2c: 01 [14:38:58]MH_I2C_Read... [14:38:58]*** Stop cut motor [14:38:58]*** Cut end [14:38:58]Read from MH i2c: 01 07 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: 01 07 00 35 0A 00 00 00 00 00 FF 0F 54 [14:38:58]process_action close_receipt done [14:38:58]requested_data is exist [14:38:58]produce_requested_data [14:38:58]requested_item fm.sn is exist - process it [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 11 00 00 [14:38:58]Write to MH i2c: E2 08 00 36 0A 80 11 00 00 00 00 00 00 BA [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 17 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 17 00 36 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 11 [14:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:38:58]wFMCommunicate OK [14:38:58]requested_item fd.num is exist - process it [14:38:58]SAM_PROTO_GetFieldsCounters [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 13 00 00 [14:38:58]Write to MH i2c: E2 08 00 37 0A 80 13 00 00 00 00 00 00 BD [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 62 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 62 00 37 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 63 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [14:38: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 63 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:58]wFMCommunicate OK [14:38:58]SAM_PROTO_GetFieldsCounters done [14:38:58]requested_item shift.num is exist - process it [14:38:58]requested_item shift.opened is exist - process it [14:38:58]req_shift_opened [14:38:58]FM_GetShiftState [14:38:58]SAM_PROTO_GetShiftState [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 13 01 00 [14:38:58]Write to MH i2c: E2 08 00 38 0A 80 13 01 00 00 00 00 00 BF [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 0E 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 0E 00 38 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 97 [14:38:58]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:38:58]wFMCommunicate OK [14:38:58]SAM_PROTO_GetShiftState done [14:38:58]FM_GetShiftState done [14:38:58]req_shift_opened done [14:38:58]requested_item shift.open_date is exist - process it [14:38:58]req_shift_open_date [14:38:58]req_shift_open_date done [14:38:58]produce_requested_data done [14:38:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118115,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:38:58]process_action_free close_receipt [14:38:58]json_value_free [14:38:58]json_value_free done [14:38:58]process_json_proto returns [14:38:58]Send response to host [14:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118115,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:38:58]free response buf [14:38:58]execute_script done [14:38:58]execute_script returns [14:38:58]free content buf [14:38:58]Sock 9.Close socket [14:38:58]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [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:13]accept exits with 7 [14:42:13]New connection [14:42:13]New thread 3066551652 created [14:42:13]Thread 3066695012 joined [14:42:13]Waiting for new connection... [14:42:13] Sock 7.Parse request [14:42:13]Sock 7.Check first char [14:42:13]Sock 7.First char is OK [14:42:13]request: POST /json_proto HTTP/1.0 [14:42:13]Method: POST [14:42:13]URL: /json_proto [14:42:13]Method is POST - this is cgi request [14:42:13]url: /json_proto [14:42:13]query_string will be loaded in cgi processing [14:42:13]execute_cgi json_proto POST (null) [14:42:13]execute_cgi path=json_proto method=POST [14:42:13]POST find Content-Length [14:42:13]Host: 172.17.96.67:8080 [14:42:13]Content-Length: 677 [14:42:13]Content-Type: application/json [14:42:13] [14:42:13]POST finish read [14:42:13]Found Content-Length = 677 [14:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:13]execute_script... [14:42: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)245912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:13]POST & json_proto [14:42:13]process_json_proto [14:42:13]json parsed OK: [14:42:13]protocol is kg_v1.0 [14:42:13]action value=close_receipt [14:42:13]process_action close_receipt [14:42:13]cmd_close_receipt [14:42:13]MH_GetDate [14:42:13]Write to MH i2c: F0 00 00 39 0A 32 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: F0 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: F0 09 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: F0 09 00 39 0A 00 C6 45 22 67 47 6C 1F 67 08 [14:42:13]GetLastDocTimeStamp 1730299135 [14:42:13]current date 1730299334 [14:42:13]FM_GetShiftState [14:42:13]SAM_PROTO_GetShiftState [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 13 01 00 [14:42:13]Write to MH i2c: E2 08 00 3A 0A 80 13 01 00 00 00 00 00 C1 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0E 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0E 00 3A 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 99 [14:42:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_GetShiftState done [14:42:13]FM_GetShiftState done [14:42:13]opened in 1730246605 [14:42:13]opened+sec_in_day 1730333005 [14:42:13]quantity*price = 40006 [14:42:13]sum+1 = 40007 [14:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 176 30.10.2024 14:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118116 ФПД: 231978161048246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144214&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118116&fm=231978161048246&tin=02508201610067®Number=0000000000091782&sum=40000 [14:42:14]StoreToDocumentArchive [14:42:14]shift 545 fd 118116 [14:42:14]save to /storage/0545/doc_00118116 [14:42:14]save last doc name /storage/0545/doc_00118116 to /storage/kkm_last_doc_name [14:42:14]save OK [14:42:14]Clear old archive folders... [14:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:14]tlvbuf is 000DD980 [14:42:14]SAM_PROTO_ClearQueue [14:42:14]wFMCommunicate request_size=4 [14:42:14]MH_SAM_APDU [14:42:14]CAPDU: 80 09 00 00 [14:42:14]Write to MH i2c: E2 08 00 47 0A 80 09 00 00 00 00 00 00 C3 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:14]Read from MH i2c: E2 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 03 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [14:42:14]RAPDU: 90 00 [14:42:14]wFMCommunicate OK [14:42:14]SAM_PROTO_ClearQueue done [14:42:14]KKMCreateOFDPacket [14:42:14]OFDProtocolAddRootSTLVToBuf [14:42:14]FM_MakeSignedData [14:42:14]FM_MakeSignedData [14:42:14]SAM_PROTO_SignData [14:42:14]wFMCommunicate request_size=4 [14:42:14]MH_SAM_APDU [14:42:14]CAPDU: 80 0D 01 02 [14:42:14]Write to MH i2c: E2 08 00 48 0A 80 0D 01 02 00 00 00 00 CB [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:14]Read from MH i2c: E2 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 03 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 03 00 48 0A 00 90 00 C6 [14:42:14]RAPDU: 90 00 [14:42:14]wFMCommunicate OK [14:42:14]wFMCommunicate request_size=255 [14:42:14]MH_SAM_APDU [14:42: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 32 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 B0 00 00 00 F4 03 04 00 C6 45 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 64 CD 01 00 35 04 06 00 D2 [14:42:14]Write to MH i2c: E2 02 01 49 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 00 00 00 F4 03 04 00 C6 45 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 64 CD 01 00 35 04 06 00 D2 00 00 97 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:14]Read from MH i2c: E2 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 03 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [14:42:14]RAPDU: 90 00 [14:42:14]wFMCommunicate OK [14:42:14]wFMCommunicate request_size=10 [14:42:14]MH_SAM_APDU [14:42:14]CAPDU: 80 0D 02 02 05 FB 9F E2 8A B6 [14:42:14]Write to MH i2c: E2 0D 00 4A 0A 80 0D 02 02 05 00 FB 9F E2 8A B6 00 00 94 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [14:42:15]RAPDU: 90 00 [14:42:15]wFMCommunicate OK [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 0D 03 02 [14:42:15]Write to MH i2c: E2 08 00 4B 0A 80 0D 03 02 00 00 00 00 D0 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0B 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0B 00 4B 0A 00 62 70 2E 0B D5 25 73 85 90 00 CE [14:42:15]RAPDU: 62 70 2E 0B D5 25 73 85 90 00 [14:42:15]wFMCommunicate OK [14:42:15]SAM_PROTO_SignData done [14:42:15]FM_MakeSignedData done [14:42:15]CreateOFDProtocolMessage [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 11 00 00 [14:42:15]Write to MH i2c: E2 08 00 4C 0A 80 11 00 00 00 00 00 00 D0 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 17 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 17 00 4C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 27 [14:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:42:15]wFMCommunicate OK [14:42:15]CreateOFDProtocolMessage done [14:42:15]OFDSenderStorePacket 118116 [14:42:15]StoreOFDPacket docnum=118116 [14:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 22 C7 07 01 5F 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 32 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 B0 00 00 00 F4 03 04 00 C6 45 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 64 CD 01 00 35 04 06 00 D2 FB 9F E2 8A B6 62 70 2E 0B D5 25 73 85 [14:42:15]CheckFolder [14:42:15]dirname=/storage/ofd_packets [14:42:15]CheckFolder done [14:42:15]ProducePacketName [14:42:15]name=ofd_packets/00118116 [14:42:15]NVStorageSaveData ofd_packets/00118116 [14:42:15]File name is /storage/ofd_packets/00118116 [14:42:15]Write 301 bytes [14:42:15]NVStorageSaveData done [14:42:15]OFDSenderStorePacket done [14:42:15]KKMCreateOFDPacket done [14:42:15]NVStorageSaveData kkm_last_timestamp [14:42:15]File name is /storage/kkm_last_timestamp [14:42:15]Write 4 bytes [14:42:15]NVStorageSaveData done [14:42:15]ExternCall_PrintAddStr [14:42:15]wPrintStart [14:42:15]Write to MH i2c: 01 00 00 4D 0A 57 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 FF 0F 6C [14:42:15]RasterBufferAndPrint [14:42:15]line Счет N : (1)245912 [14:42:15]line ИНН: 02508201610067 [14:42:15]line Контрольно-Кассовый Чек [14:42:15]line ПРОДАЖА [14:42:15]line ТРК (МРК, ГНК) : 21 [14:42:15]line Товар: 2710124130 [14:42:15]line Аи-92-К-2 [14:42:15]line 5.980 * 66.90 [14:42:15]line = 400.06 [14:42:15]line НДС 12% НСП 1% [14:42:15]line > о реализуемом товаре [14:42:15]line ОКРУГЛЕНИЕ: -0.06 [14:42:15]line ИТОГО: 400.00 [14:42:15]line Внесено: 400.00 [14:42:15]line СДАЧА: 0.00 [14:42:15]line НСП 1% : 3.54 [14:42:15]line НДС 12% : 42.48 [14:42:15]line Наличными: 400.00 [14:42:15]line Безнал.: 0.00 [14:42:15]line Место: АЗС № 173 "Партнер Нефть" [14:42:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:42:15]line СНО: Общий режим [14:42:15]line Чек 176 30.10.2024 14:42 [14:42:15]line Смена: 545 ФФД: 1.0 [14:42:15]line ЗНМ: 0300000115 [14:42:15]line РНМ: 0000000000091782 [14:42:15]line Версия ККМ: 001 [14:42:15]line ФМ: 0000000000871767 [14:42:15]line ФД: 118116 [14:42:15]line ФПД: 231978161048246 [14:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144214&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118116&fm=231978161048246&tin=02508201610067®Number=0000000000091782&sum=40000 [14:42:15]written 0, free lines is 4095 [14:42:15]OFD Sender: Processing packet 118116 [packets to send 77, broken 76] [14:42:15]ProducePacketName [14:42:15]name=ofd_packets/00118116 [14:42:15]OFD Sender: To server: pG, [14:42:15]CommunicateWithHost lk.salyk.kg:30040 [14:42:15]ConnectInit lk.salyk.kg [14:42:15]Connected sock=10 [14:42: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 36 37 0F 01 00 00 22 C7 07 01 5F 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 32 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 B0 00 00 00 F4 03 04 00 C6 45 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 64 CD 01 00 35 04 06 00 D2 FB 9F E2 8A B6 62 70 2E 0B D5 25 73 85 [14:42: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 36 37 4F 00 00 00 C8 84 47 00 89 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 36 37 10 04 04 00 64 CD 01 00 F4 03 04 00 7E F1 21 67 B6 04 01 00 00 96 AE F0 F5 A6 A6 8D 90 [14:42:15]CommunicateWithHost err = 0 [14:42:15]CheckOFDResponse [14:42:15]1017 (14) - 77093643461234 [14:42:15]1041 (16) - 0000000000871767 [14:42:15]1040 (4) - 118116 [14:42:15]1012 (4) - 30.10.2024 08:42 [14:42:15]1206 (1) - 0 [14:42:15]OFD Sender: Remove packet 118116 [14:42:15]ProducePacketName [14:42:15]name=ofd_packets/00118116 [14:42:15]NVStorageDeleteData [14:42:15]Write to MH i2c: 01 00 00 77 0A 81 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 77 0A 00 00 00 00 00 AF 0C 43 [14:42:15]RasterBufferAndPrint [14:42:15]line [14:42:15]line [14:42:15]line [14:42:15]line [14:42:15]line [14:42:15]written 0, free lines is 3253 [14:42:15]MH_Cut [14:42:15]Write to MH i2c: D1 01 00 7E 0A 01 5A [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: D1 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: D1 01 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: D1 01 00 7E 0A 00 59 [14:42:15]Write to MH i2c: 01 00 00 7F 0A 89 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:16]OFD Sender: No OFD packet to send [14:42:16]*** Cut start [14:42:16]*** Purtial cut [14:42:16]*** Stage 1: CUTSNS_PIN = 1 [14:42:17]Read from MH i2c: 01 [14:42:17]MH_I2C_Read... [14:42:17]*** Stop cut motor [14:42:17]*** Cut end [14:42:17]Read from MH i2c: 01 07 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 7F 0A 00 00 00 00 00 FF 0F 9E [14:42:17]process_action close_receipt done [14:42:17]requested_data is exist [14:42:17]produce_requested_data [14:42:17]requested_item fm.sn is exist - process it [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 11 00 00 [14:42:17]Write to MH i2c: E2 08 00 80 0A 80 11 00 00 00 00 00 00 04 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 80 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5B [14:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:42:17]wFMCommunicate OK [14:42:17]requested_item fd.num is exist - process it [14:42:17]SAM_PROTO_GetFieldsCounters [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 13 00 00 [14:42:17]Write to MH i2c: E2 08 00 81 0A 80 13 00 00 00 00 00 00 07 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 62 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 62 00 81 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 64 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:42: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 64 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_GetFieldsCounters done [14:42:17]requested_item shift.num is exist - process it [14:42:17]requested_item shift.opened is exist - process it [14:42:17]req_shift_opened [14:42:17]FM_GetShiftState [14:42:17]SAM_PROTO_GetShiftState [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 13 01 00 [14:42:17]Write to MH i2c: E2 08 00 82 0A 80 13 01 00 00 00 00 00 09 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:17]Read from MH i2c: E2 0E 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0E 00 82 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E1 [14:42:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_GetShiftState done [14:42:17]FM_GetShiftState done [14:42:17]req_shift_opened done [14:42:17]requested_item shift.open_date is exist - process it [14:42:17]req_shift_open_date [14:42:17]req_shift_open_date done [14:42:17]produce_requested_data done [14:42:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118116,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:42:17]process_action_free close_receipt [14:42:17]json_value_free [14:42:17]json_value_free done [14:42:17]process_json_proto returns [14:42:17]Send response to host [14:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118116,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:42:17]free response buf [14:42:17]execute_script done [14:42:17]execute_script returns [14:42:17]free content buf [14:42:17]Sock 7.Close socket [14:42:17]Sock 7.Thread stoped [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:35]accept exits with 9 [14:43:35]New connection [14:43:35]New thread 3066695012 created [14:43:35]Thread 3066551652 joined [14:43:35]Waiting for new connection... [14:43:35] Sock 9.Parse request [14:43:35]Sock 9.Check first char [14:43:35]Sock 9.First char is OK [14:43:35]request: POST /json_proto HTTP/1.0 [14:43:35]Method: POST [14:43:35]URL: /json_proto [14:43:35]Method is POST - this is cgi request [14:43:35]url: /json_proto [14:43:35]query_string will be loaded in cgi processing [14:43:35]execute_cgi json_proto POST (null) [14:43:35]execute_cgi path=json_proto method=POST [14:43:35]POST find Content-Length [14:43:35]Host: 172.17.96.67:8080 [14:43:35]Content-Length: 677 [14:43:35]Content-Type: application/json [14:43:35] [14:43:35]POST finish read [14:43:35]Found Content-Length = 677 [14:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:43:35]execute_script... [14:43:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:43:35]POST & json_proto [14:43:35]process_json_proto [14:43:35]json parsed OK: [14:43:35]protocol is kg_v1.0 [14:43:35]action value=close_receipt [14:43:35]process_action close_receipt [14:43:35]cmd_close_receipt [14:43:35]MH_GetDate [14:43:35]Write to MH i2c: F0 00 00 83 0A 7C [14:43:35]Write i2c OK [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: F0 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: F0 09 00 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: F0 09 00 83 0A 00 18 46 22 67 47 6C 1F 67 A5 [14:43:35]GetLastDocTimeStamp 1730299334 [14:43:35]current date 1730299416 [14:43:35]FM_GetShiftState [14:43:35]SAM_PROTO_GetShiftState [14:43:35]wFMCommunicate request_size=4 [14:43:35]MH_SAM_APDU [14:43:35]CAPDU: 80 13 01 00 [14:43:35]Write to MH i2c: E2 08 00 84 0A 80 13 01 00 00 00 00 00 0B [14:43:35]Write i2c OK [14:43:35]MH_I2C_Read... [14:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:35]Read from MH i2c: E2 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: E2 0E 00 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: E2 0E 00 84 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E3 [14:43:35]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:43:35]wFMCommunicate OK [14:43:35]SAM_PROTO_GetShiftState done [14:43:35]FM_GetShiftState done [14:43:35]opened in 1730246605 [14:43:35]opened+sec_in_day 1730333005 [14:43:35]quantity*price = 50041 [14:43:35]sum+1 = 50042 [14:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 177 30.10.2024 14:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118117 ФПД: 215769014577303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144336&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118117&fm=215769014577303&tin=02508201610067®Number=0000000000091782&sum=50000 [14:43:36]StoreToDocumentArchive [14:43:36]shift 545 fd 118117 [14:43:36]save to /storage/0545/doc_00118117 [14:43:36]save last doc name /storage/0545/doc_00118117 to /storage/kkm_last_doc_name [14:43:36]save OK [14:43:36]Clear old archive folders... [14:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:36]tlvbuf is 000B7360 [14:43:36]SAM_PROTO_ClearQueue [14:43:36]wFMCommunicate request_size=4 [14:43:36]MH_SAM_APDU [14:43:36]CAPDU: 80 09 00 00 [14:43:36]Write to MH i2c: E2 08 00 91 0A 80 09 00 00 00 00 00 00 0D [14:43:36]Write i2c OK [14:43:36]MH_I2C_Read... [14:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:36]Read from MH i2c: E2 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [14:43:36]RAPDU: 90 00 [14:43:36]wFMCommunicate OK [14:43:36]SAM_PROTO_ClearQueue done [14:43:36]KKMCreateOFDPacket [14:43:36]OFDProtocolAddRootSTLVToBuf [14:43:36]FM_MakeSignedData [14:43:36]FM_MakeSignedData [14:43:36]SAM_PROTO_SignData [14:43:36]wFMCommunicate request_size=4 [14:43:36]MH_SAM_APDU [14:43:36]CAPDU: 80 0D 01 02 [14:43:36]Write to MH i2c: E2 08 00 92 0A 80 0D 01 02 00 00 00 00 15 [14:43:36]Write i2c OK [14:43:36]MH_I2C_Read... [14:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:36]Read from MH i2c: E2 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 92 0A 00 90 00 10 [14:43:36]RAPDU: 90 00 [14:43:36]wFMCommunicate OK [14:43:36]wFMCommunicate request_size=255 [14:43:36]MH_SAM_APDU [14:43:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 00 00 00 F4 03 04 00 18 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 65 CD 01 00 35 04 06 00 C4 [14:43:36]Write to MH i2c: E2 02 01 93 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 00 00 00 F4 03 04 00 18 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 65 CD 01 00 35 04 06 00 C4 00 00 59 [14:43:36]Write i2c OK [14:43:36]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [14:43:37]RAPDU: 90 00 [14:43:37]wFMCommunicate OK [14:43:37]wFMCommunicate request_size=10 [14:43:37]MH_SAM_APDU [14:43:37]CAPDU: 80 0D 02 02 05 3D A3 77 A8 97 [14:43:37]Write to MH i2c: E2 0D 00 94 0A 80 0D 02 02 05 00 3D A3 77 A8 97 00 00 B8 [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [14:43:37]RAPDU: 90 00 [14:43:37]wFMCommunicate OK [14:43:37]wFMCommunicate request_size=4 [14:43:37]MH_SAM_APDU [14:43:37]CAPDU: 80 0D 03 02 [14:43:37]Write to MH i2c: E2 08 00 95 0A 80 0D 03 02 00 00 00 00 1A [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 0B 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 0B 00 95 0A 00 CA F2 37 08 FA E5 BE 15 90 00 C8 [14:43:37]RAPDU: CA F2 37 08 FA E5 BE 15 90 00 [14:43:37]wFMCommunicate OK [14:43:37]SAM_PROTO_SignData done [14:43:37]FM_MakeSignedData done [14:43:37]CreateOFDProtocolMessage [14:43:37]wFMCommunicate request_size=4 [14:43:37]MH_SAM_APDU [14:43:37]CAPDU: 80 11 00 00 [14:43:37]Write to MH i2c: E2 08 00 96 0A 80 11 00 00 00 00 00 00 1A [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 17 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 17 00 96 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 71 [14:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:43:37]wFMCommunicate OK [14:43:37]CreateOFDProtocolMessage done [14:43:37]OFDSenderStorePacket 118117 [14:43:37]StoreOFDPacket docnum=118117 [14:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8E 3D 07 01 F5 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 18 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 65 CD 01 00 35 04 06 00 C4 3D A3 77 A8 97 CA F2 37 08 FA E5 BE 15 [14:43:37]CheckFolder [14:43:37]dirname=/storage/ofd_packets [14:43:37]CheckFolder done [14:43:37]ProducePacketName [14:43:37]name=ofd_packets/00118117 [14:43:37]NVStorageSaveData ofd_packets/00118117 [14:43:37]File name is /storage/ofd_packets/00118117 [14:43:37]Write 301 bytes [14:43:37]NVStorageSaveData done [14:43:37]OFDSenderStorePacket done [14:43:37]KKMCreateOFDPacket done [14:43:37]NVStorageSaveData kkm_last_timestamp [14:43:37]File name is /storage/kkm_last_timestamp [14:43:37]Write 4 bytes [14:43:37]NVStorageSaveData done [14:43:37]ExternCall_PrintAddStr [14:43:37]wPrintStart [14:43:37]Write to MH i2c: 01 00 00 97 0A A1 [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 07 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 FF 0F B6 [14:43:37]RasterBufferAndPrint [14:43:37]line Счет N : (1)245913 [14:43:37]line ИНН: 02508201610067 [14:43:37]line Контрольно-Кассовый Чек [14:43:37]line ПРОДАЖА [14:43:37]line ТРК (МРК, ГНК) : 21 [14:43:37]line Товар: 2710124130 [14:43:37]line Аи-92-К-2 [14:43:37]line 7.480 * 66.90 [14:43:37]line = 500.41 [14:43:37]line НДС 12% НСП 1% [14:43:37]line > о реализуемом товаре [14:43:37]line ОКРУГЛЕНИЕ: -0.41 [14:43:37]line ИТОГО: 500.00 [14:43:37]line Внесено: 500.00 [14:43:37]line СДАЧА: 0.00 [14:43:37]line НСП 1% : 4.43 [14:43:37]line НДС 12% : 53.14 [14:43:37]line Наличными: 500.00 [14:43:37]line Безнал.: 0.00 [14:43:37]line Место: АЗС № 173 "Партнер Нефть" [14:43:37]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:43:37]line СНО: Общий режим [14:43:37]line Чек 177 30.10.2024 14:43 [14:43:37]line Смена: 545 ФФД: 1.0 [14:43:37]line ЗНМ: 0300000115 [14:43:37]line РНМ: 0000000000091782 [14:43:37]line Версия ККМ: 001 [14:43:37]line ФМ: 0000000000871767 [14:43:37]line ФД: 118117 [14:43:37]line ФПД: 215769014577303 [14:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144336&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118117&fm=215769014577303&tin=02508201610067®Number=0000000000091782&sum=50000 [14:43:37]written 0, free lines is 4095 [14:43:37]OFD Sender: Processing packet 118117 [packets to send 77, broken 76] [14:43:37]ProducePacketName [14:43:37]name=ofd_packets/00118117 [14:43:37]OFD Sender: To server: pG, [14:43:37]CommunicateWithHost lk.salyk.kg:30040 [14:43:37]ConnectInit lk.salyk.kg [14:43:37]Connected sock=11 [14:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8E 3D 07 01 F5 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 18 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 65 CD 01 00 35 04 06 00 C4 3D A3 77 A8 97 CA F2 37 08 FA E5 BE 15 [14:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 D2 DA 47 00 CA D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 65 CD 01 00 F4 03 04 00 D0 F1 21 67 B6 04 01 00 00 ED F1 9B 61 85 56 D6 BD [14:43:37]CommunicateWithHost err = 0 [14:43:37]CheckOFDResponse [14:43:37]1017 (14) - 77093643461234 [14:43:37]1041 (16) - 0000000000871767 [14:43:37]1040 (4) - 118117 [14:43:37]1012 (4) - 30.10.2024 08:44 [14:43:37]1206 (1) - 0 [14:43:37]OFD Sender: Remove packet 118117 [14:43:37]ProducePacketName [14:43:37]name=ofd_packets/00118117 [14:43:37]NVStorageDeleteData [14:43:38]Write to MH i2c: 01 00 00 C1 0A CB [14:43:38]Write i2c OK [14:43:38]MH_I2C_Read... [14:43:38]Read from MH i2c: 01 [14:43:38]MH_I2C_Read... [14:43:38]Read from MH i2c: 01 07 00 [14:43:38]MH_I2C_Read... [14:43:38]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 AA 0C 88 [14:43:38]RasterBufferAndPrint [14:43:38]line [14:43:38]line [14:43:38]line [14:43:38]line [14:43:38]line [14:43:38]written 0, free lines is 3247 [14:43:38]MH_Cut [14:43:38]Write to MH i2c: D1 01 00 C8 0A 01 A4 [14:43:38]Write i2c OK [14:43:38]MH_I2C_Read... [14:43:38]Read from MH i2c: D1 [14:43:38]MH_I2C_Read... [14:43:38]Read from MH i2c: D1 01 00 [14:43:38]MH_I2C_Read... [14:43:38]Read from MH i2c: D1 01 00 C8 0A 00 A3 [14:43:38]Write to MH i2c: 01 00 00 C9 0A D3 [14:43:38]Write i2c OK [14:43:38]MH_I2C_Read... [14:43:38]OFD Sender: No OFD packet to send [14:43:38]*** Cut start [14:43:38]*** Purtial cut [14:43:38]*** Stage 1: CUTSNS_PIN = 1 [14:43:39]Read from MH i2c: 01 [14:43:39]MH_I2C_Read... [14:43:39]*** Stop cut motor [14:43:39]*** Cut end [14:43:39]Read from MH i2c: 01 07 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: 01 07 00 C9 0A 00 00 00 00 00 FF 0F E8 [14:43:39]process_action close_receipt done [14:43:39]requested_data is exist [14:43:39]produce_requested_data [14:43:39]requested_item fm.sn is exist - process it [14:43:39]wFMCommunicate request_size=4 [14:43:39]MH_SAM_APDU [14:43:39]CAPDU: 80 11 00 00 [14:43:39]Write to MH i2c: E2 08 00 CA 0A 80 11 00 00 00 00 00 00 4E [14:43:39]Write i2c OK [14:43:39]MH_I2C_Read... [14:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:39]Read from MH i2c: E2 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 17 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 17 00 CA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A5 [14:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:43:39]wFMCommunicate OK [14:43:39]requested_item fd.num is exist - process it [14:43:39]SAM_PROTO_GetFieldsCounters [14:43:39]wFMCommunicate request_size=4 [14:43:39]MH_SAM_APDU [14:43:39]CAPDU: 80 13 00 00 [14:43:39]Write to MH i2c: E2 08 00 CB 0A 80 13 00 00 00 00 00 00 51 [14:43:39]Write i2c OK [14:43:39]MH_I2C_Read... [14:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:39]Read from MH i2c: E2 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 62 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 62 00 CB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 65 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [14:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 65 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:39]wFMCommunicate OK [14:43:39]SAM_PROTO_GetFieldsCounters done [14:43:39]requested_item shift.num is exist - process it [14:43:39]requested_item shift.opened is exist - process it [14:43:39]req_shift_opened [14:43:39]FM_GetShiftState [14:43:39]SAM_PROTO_GetShiftState [14:43:39]wFMCommunicate request_size=4 [14:43:39]MH_SAM_APDU [14:43:39]CAPDU: 80 13 01 00 [14:43:39]Write to MH i2c: E2 08 00 CC 0A 80 13 01 00 00 00 00 00 53 [14:43:39]Write i2c OK [14:43:39]MH_I2C_Read... [14:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:39]Read from MH i2c: E2 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 0E 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 0E 00 CC 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2B [14:43:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:43:39]wFMCommunicate OK [14:43:39]SAM_PROTO_GetShiftState done [14:43:39]FM_GetShiftState done [14:43:39]req_shift_opened done [14:43:39]requested_item shift.open_date is exist - process it [14:43:39]req_shift_open_date [14:43:39]req_shift_open_date done [14:43:39]produce_requested_data done [14:43:39]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118117,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:43:39]process_action_free close_receipt [14:43:39]json_value_free [14:43:39]json_value_free done [14:43:39]process_json_proto returns [14:43:39]Send response to host [14:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118117,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:43:39]free response buf [14:43:39]execute_script done [14:43:39]execute_script returns [14:43:39]free content buf [14:43:39]Sock 9.Close socket [14:43:39]Sock 9.Thread stoped [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:45]accept exits with 7 [14:44:45]New connection [14:44:45]New thread 3066551652 created [14:44:45]Thread 3066695012 joined [14:44:45]Waiting for new connection... [14:44:45] Sock 7.Parse request [14:44:45]Sock 7.Check first char [14:44:45]Sock 7.First char is OK [14:44:45]request: POST /json_proto HTTP/1.0 [14:44:45]Method: POST [14:44:45]URL: /json_proto [14:44:45]Method is POST - this is cgi request [14:44:45]url: /json_proto [14:44:45]query_string will be loaded in cgi processing [14:44:45]execute_cgi json_proto POST (null) [14:44:45]execute_cgi path=json_proto method=POST [14:44:45]POST find Content-Length [14:44:45]Host: 172.17.96.67:8080 [14:44:45]Content-Length: 679 [14:44:45]Content-Type: application/json [14:44:45] [14:44:45]POST finish read [14:44:45]Found Content-Length = 679 [14:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [14:44:45]execute_script... [14:44: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)245914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [14:44:45]POST & json_proto [14:44:45]process_json_proto [14:44:45]json parsed OK: [14:44:45]protocol is kg_v1.0 [14:44:45]action value=close_receipt [14:44:45]process_action close_receipt [14:44:45]cmd_close_receipt [14:44:45]MH_GetDate [14:44:45]Write to MH i2c: F0 00 00 CD 0A C6 [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: F0 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: F0 09 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: F0 09 00 CD 0A 00 5E 46 22 67 47 6C 1F 67 35 [14:44:45]GetLastDocTimeStamp 1730299416 [14:44:45]current date 1730299486 [14:44:45]FM_GetShiftState [14:44:45]SAM_PROTO_GetShiftState [14:44:45]wFMCommunicate request_size=4 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 13 01 00 [14:44:45]Write to MH i2c: E2 08 00 CE 0A 80 13 01 00 00 00 00 00 55 [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0E 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0E 00 CE 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2D [14:44:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:44:45]wFMCommunicate OK [14:44:45]SAM_PROTO_GetShiftState done [14:44:45]FM_GetShiftState done [14:44:45]opened in 1730246605 [14:44:45]opened+sec_in_day 1730333005 [14:44:45]quantity*price = 150037 [14:44:45]sum+1 = 150039 [14:44:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 178 30.10.2024 14:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118118 ФПД: 232938454068999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144446&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118118&fm=232938454068999&tin=02508201610067®Number=0000000000091782&sum=150000 [14:44:46]StoreToDocumentArchive [14:44:46]shift 545 fd 118118 [14:44:46]save to /storage/0545/doc_00118118 [14:44:46]save last doc name /storage/0545/doc_00118118 to /storage/kkm_last_doc_name [14:44:46]save OK [14:44:46]Clear old archive folders... [14:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:46]tlvbuf is 000ED1B0 [14:44:46]SAM_PROTO_ClearQueue [14:44:46]wFMCommunicate request_size=4 [14:44:46]MH_SAM_APDU [14:44:46]CAPDU: 80 09 00 00 [14:44:46]Write to MH i2c: E2 08 00 DB 0A 80 09 00 00 00 00 00 00 57 [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:46]Read from MH i2c: E2 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 DB 0A 00 90 00 59 [14:44:46]RAPDU: 90 00 [14:44:46]wFMCommunicate OK [14:44:46]SAM_PROTO_ClearQueue done [14:44:46]KKMCreateOFDPacket [14:44:46]OFDProtocolAddRootSTLVToBuf [14:44:46]FM_MakeSignedData [14:44:46]FM_MakeSignedData [14:44:46]SAM_PROTO_SignData [14:44:46]wFMCommunicate request_size=4 [14:44:46]MH_SAM_APDU [14:44:46]CAPDU: 80 0D 01 02 [14:44:46]Write to MH i2c: E2 08 00 DC 0A 80 0D 01 02 00 00 00 00 5F [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:46]Read from MH i2c: E2 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 DC 0A 00 90 00 5A [14:44:46]RAPDU: 90 00 [14:44:46]wFMCommunicate OK [14:44:46]wFMCommunicate request_size=255 [14:44:46]MH_SAM_APDU [14:44: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 32 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 B2 00 00 00 F4 03 04 00 5E 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 66 CD 01 00 35 04 06 00 D3 DB 35 CF [14:44:46]Write to MH i2c: E2 02 01 DD 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 5E 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 66 CD 01 00 35 04 06 00 D3 DB 35 CF 00 00 46 [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:46]Read from MH i2c: E2 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [14:44:46]RAPDU: 90 00 [14:44:46]wFMCommunicate OK [14:44:46]wFMCommunicate request_size=7 [14:44:46]MH_SAM_APDU [14:44:46]CAPDU: 80 0D 02 02 02 2F 07 [14:44:46]Write to MH i2c: E2 0A 00 DE 0A 80 0D 02 02 02 00 2F 07 00 00 9C [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:46]Read from MH i2c: E2 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [14:44:46]RAPDU: 90 00 [14:44:46]wFMCommunicate OK [14:44:46]wFMCommunicate request_size=4 [14:44:46]MH_SAM_APDU [14:44:46]CAPDU: 80 0D 03 02 [14:44:46]Write to MH i2c: E2 08 00 DF 0A 80 0D 03 02 00 00 00 00 64 [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:46]Read from MH i2c: E2 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 0B 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 0B 00 DF 0A 00 62 04 BC 48 64 2B EF 28 90 00 75 [14:44:46]RAPDU: 62 04 BC 48 64 2B EF 28 90 00 [14:44:46]wFMCommunicate OK [14:44:46]SAM_PROTO_SignData done [14:44:46]FM_MakeSignedData done [14:44:46]CreateOFDProtocolMessage [14:44:46]wFMCommunicate request_size=4 [14:44:46]MH_SAM_APDU [14:44:46]CAPDU: 80 11 00 00 [14:44:46]Write to MH i2c: E2 08 00 E0 0A 80 11 00 00 00 00 00 00 64 [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:46]Read from MH i2c: E2 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 17 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: E2 17 00 E0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BB [14:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:44:46]wFMCommunicate OK [14:44:46]CreateOFDProtocolMessage done [14:44:46]OFDSenderStorePacket 118118 [14:44:46]StoreOFDPacket docnum=118118 [14:44:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 6B E7 04 01 C6 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 5E 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 66 CD 01 00 35 04 06 00 D3 DB 35 CF 2F 07 62 04 BC 48 64 2B EF 28 [14:44:46]CheckFolder [14:44:46]dirname=/storage/ofd_packets [14:44:46]CheckFolder done [14:44:46]ProducePacketName [14:44:46]name=ofd_packets/00118118 [14:44:46]NVStorageSaveData ofd_packets/00118118 [14:44:46]File name is /storage/ofd_packets/00118118 [14:44:46]Write 298 bytes [14:44:46]NVStorageSaveData done [14:44:46]OFDSenderStorePacket done [14:44:46]KKMCreateOFDPacket done [14:44:46]NVStorageSaveData kkm_last_timestamp [14:44:46]File name is /storage/kkm_last_timestamp [14:44:46]Write 4 bytes [14:44:46]NVStorageSaveData done [14:44:46]ExternCall_PrintAddStr [14:44:46]wPrintStart [14:44:46]Write to MH i2c: 01 00 00 E1 0A EB [14:44:46]Write i2c OK [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: 01 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: 01 07 00 [14:44:46]MH_I2C_Read... [14:44:46]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 FF 0F 00 [14:44:46]RasterBufferAndPrint [14:44:46]line Счет N : (1)245914 [14:44:46]line ИНН: 02508201610067 [14:44:46]line Контрольно-Кассовый Чек [14:44:46]line ПРОДАЖА [14:44:46]line ТРК (МРК, ГНК) : 13 [14:44:46]line Товар: 2710194210 [14:44:46]line ДТ-К-2 [14:44:46]line 19.690 * 76.20 [14:44:46]line = 1500.38 [14:44:46]line НДС 12% НСП 1% [14:44:46]line > о реализуемом товаре [14:44:46]line ОКРУГЛЕНИЕ: -0.38 [14:44:46]line ИТОГО: 1500.00 [14:44:46]line Внесено: 1500.00 [14:44:46]line СДАЧА: 0.00 [14:44:46]line НСП 1% : 13.28 [14:44:46]line НДС 12% : 159.33 [14:44:46]line Наличными: 1500.00 [14:44:46]line Безнал.: 0.00 [14:44:46]line Место: АЗС № 173 "Партнер Нефть" [14:44:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:44:46]line СНО: Общий режим [14:44:46]line Чек 178 30.10.2024 14:44 [14:44:46]line Смена: 545 ФФД: 1.0 [14:44:46]line ЗНМ: 0300000115 [14:44:46]line РНМ: 0000000000091782 [14:44:46]line Версия ККМ: 001 [14:44:46]line ФМ: 0000000000871767 [14:44:46]line ФД: 118118 [14:44:46]line ФПД: 232938454068999 [14:44:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144446&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118118&fm=232938454068999&tin=02508201610067®Number=0000000000091782&sum=150000 [14:44:47]OFD Sender: Processing packet 118118 [packets to send 77, broken 76] [14:44:47]ProducePacketName [14:44:47]name=ofd_packets/00118118 [14:44:47]OFD Sender: To server: pG, [14:44:47]CommunicateWithHost lk.salyk.kg:30040 [14:44:47]ConnectInit lk.salyk.kg [14:44:47]written 0, free lines is 4095 [14:44:47]Connected sock=10 [14:44: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 36 37 0C 01 00 00 6B E7 04 01 C6 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 5E 46 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 66 CD 01 00 35 04 06 00 D3 DB 35 CF 2F 07 62 04 BC 48 64 2B EF 28 [14:44: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 36 37 4F 00 00 00 70 24 47 00 CE 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 66 CD 01 00 F4 03 04 00 15 F2 21 67 B6 04 01 00 00 2A AD 16 9A A2 7E 57 BC [14:44:47]CommunicateWithHost err = 0 [14:44:47]CheckOFDResponse [14:44:47]1017 (14) - 77093643461234 [14:44:47]1041 (16) - 0000000000871767 [14:44:47]1040 (4) - 118118 [14:44:47]1012 (4) - 30.10.2024 08:45 [14:44:47]1206 (1) - 0 [14:44:47]OFD Sender: Remove packet 118118 [14:44:47]ProducePacketName [14:44:47]name=ofd_packets/00118118 [14:44:47]NVStorageDeleteData [14:44:47]Write to MH i2c: 01 00 00 0B 0B 16 [14:44:47]Write i2c OK [14:44:47]MH_I2C_Read... [14:44:47]Read from MH i2c: 01 [14:44:47]MH_I2C_Read... [14:44:47]Read from MH i2c: 01 07 00 [14:44:47]MH_I2C_Read... [14:44:47]Read from MH i2c: 01 07 00 0B 0B 00 00 00 00 00 B7 0C E0 [14:44:47]RasterBufferAndPrint [14:44:47]line [14:44:47]line [14:44:47]line [14:44:47]line [14:44:47]line [14:44:47]written 0, free lines is 3259 [14:44:47]MH_Cut [14:44:47]Write to MH i2c: D1 01 00 12 0B 01 EF [14:44:47]Write i2c OK [14:44:47]MH_I2C_Read... [14:44:47]Read from MH i2c: D1 [14:44:47]MH_I2C_Read... [14:44:47]Read from MH i2c: D1 01 00 [14:44:47]MH_I2C_Read... [14:44:47]Read from MH i2c: D1 01 00 12 0B 00 EE [14:44:47]Write to MH i2c: 01 00 00 13 0B 1E [14:44:47]Write i2c OK [14:44:47]MH_I2C_Read... [14:44:47]OFD Sender: No OFD packet to send [14:44:48]*** Cut start [14:44:48]*** Purtial cut [14:44:48]*** Stage 1: CUTSNS_PIN = 1 [14:44:48]Read from MH i2c: 01 [14:44:48]MH_I2C_Read... [14:44:48]*** Stop cut motor [14:44:48]*** Cut end [14:44:48]Read from MH i2c: 01 07 00 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 FF 0F 33 [14:44:48]process_action close_receipt done [14:44:48]requested_data is exist [14:44:48]produce_requested_data [14:44:48]requested_item fm.sn is exist - process it [14:44:48]wFMCommunicate request_size=4 [14:44:48]MH_SAM_APDU [14:44:48]CAPDU: 80 11 00 00 [14:44:48]Write to MH i2c: E2 08 00 14 0B 80 11 00 00 00 00 00 00 99 [14:44:48]Write i2c OK [14:44:48]MH_I2C_Read... [14:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:48]Read from MH i2c: E2 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 17 00 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 17 00 14 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F0 [14:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:44:48]wFMCommunicate OK [14:44:48]requested_item fd.num is exist - process it [14:44:48]SAM_PROTO_GetFieldsCounters [14:44:48]wFMCommunicate request_size=4 [14:44:48]MH_SAM_APDU [14:44:48]CAPDU: 80 13 00 00 [14:44:48]Write to MH i2c: E2 08 00 15 0B 80 13 00 00 00 00 00 00 9C [14:44:48]Write i2c OK [14:44:48]MH_I2C_Read... [14:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:48]Read from MH i2c: E2 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 62 00 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 62 00 15 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 66 CD 01 00 0E 04 04 00 21 02 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 30 [14:44:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 66 CD 01 00 0E 04 04 00 21 02 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 [14:44:48]wFMCommunicate OK [14:44:48]SAM_PROTO_GetFieldsCounters done [14:44:48]requested_item shift.num is exist - process it [14:44:48]requested_item shift.opened is exist - process it [14:44:48]req_shift_opened [14:44:48]FM_GetShiftState [14:44:48]SAM_PROTO_GetShiftState [14:44:48]wFMCommunicate request_size=4 [14:44:48]MH_SAM_APDU [14:44:48]CAPDU: 80 13 01 00 [14:44:48]Write to MH i2c: E2 08 00 16 0B 80 13 01 00 00 00 00 00 9E [14:44:48]Write i2c OK [14:44:48]MH_I2C_Read... [14:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:48]Read from MH i2c: E2 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 0E 00 [14:44:48]MH_I2C_Read... [14:44:48]Read from MH i2c: E2 0E 00 16 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 76 [14:44:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:44:48]wFMCommunicate OK [14:44:48]SAM_PROTO_GetShiftState done [14:44:48]FM_GetShiftState done [14:44:48]req_shift_opened done [14:44:48]requested_item shift.open_date is exist - process it [14:44:48]req_shift_open_date [14:44:48]req_shift_open_date done [14:44:48]produce_requested_data done [14:44:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118118,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:44:48]process_action_free close_receipt [14:44:48]json_value_free [14:44:48]json_value_free done [14:44:48]process_json_proto returns [14:44:48]Send response to host [14:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118118,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:44:48]free response buf [14:44:48]execute_script done [14:44:48]execute_script returns [14:44:48]free content buf [14:44:48]Sock 7.Close socket [14:44:48]Sock 7.Thread stoped [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:24]accept exits with 9 [14:48:24]New connection [14:48:24]New thread 3066695012 created [14:48:24]Thread 3066551652 joined [14:48:24]Waiting for new connection... [14:48:24] Sock 9.Parse request [14:48:24]Sock 9.Check first char [14:48:24]Sock 9.First char is OK [14:48:24]request: POST /json_proto HTTP/1.0 [14:48:24]Method: POST [14:48:24]URL: /json_proto [14:48:24]Method is POST - this is cgi request [14:48:24]url: /json_proto [14:48:24]query_string will be loaded in cgi processing [14:48:24]execute_cgi json_proto POST (null) [14:48:24]execute_cgi path=json_proto method=POST [14:48:24]POST find Content-Length [14:48:24]Host: 172.17.96.67:8080 [14:48:24]Content-Length: 677 [14:48:24]Content-Type: application/json [14:48:24] [14:48:24]POST finish read [14:48:24]Found Content-Length = 677 [14:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:48:24]execute_script... [14:48: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)245915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:48:24]POST & json_proto [14:48:24]process_json_proto [14:48:24]json parsed OK: [14:48:24]protocol is kg_v1.0 [14:48:24]action value=close_receipt [14:48:24]process_action close_receipt [14:48:24]cmd_close_receipt [14:48:24]MH_GetDate [14:48:24]Write to MH i2c: F0 00 00 17 0B 11 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 09 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: F0 09 00 17 0B 00 3A 47 22 67 47 6C 1F 67 5D [14:48:24]GetLastDocTimeStamp 1730299486 [14:48:24]current date 1730299706 [14:48:24]FM_GetShiftState [14:48:24]SAM_PROTO_GetShiftState [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 13 01 00 [14:48:24]Write to MH i2c: E2 08 00 18 0B 80 13 01 00 00 00 00 00 A0 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0E 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0E 00 18 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 78 [14:48:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:48:24]wFMCommunicate OK [14:48:24]SAM_PROTO_GetShiftState done [14:48:24]FM_GetShiftState done [14:48:24]opened in 1730246605 [14:48:24]opened+sec_in_day 1730333005 [14:48:24]quantity*price = 30038 [14:48:24]sum+1 = 30039 [14:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 179 30.10.2024 14:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118119 ФПД: 105026198346032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144826&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118119&fm=105026198346032&tin=02508201610067®Number=0000000000091782&sum=30000 [14:48:26]StoreToDocumentArchive [14:48:26]shift 545 fd 118119 [14:48:26]save to /storage/0545/doc_00118119 [14:48:26]save last doc name /storage/0545/doc_00118119 to /storage/kkm_last_doc_name [14:48:26]save OK [14:48:26]Clear old archive folders... [14:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:26]tlvbuf is 000E2BE0 [14:48:26]SAM_PROTO_ClearQueue [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 09 00 00 [14:48:26]Write to MH i2c: E2 08 00 25 0B 80 09 00 00 00 00 00 00 A2 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [14:48:26]RAPDU: 90 00 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_ClearQueue done [14:48:26]KKMCreateOFDPacket [14:48:26]OFDProtocolAddRootSTLVToBuf [14:48:26]FM_MakeSignedData [14:48:26]FM_MakeSignedData [14:48:26]SAM_PROTO_SignData [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 0D 01 02 [14:48:26]Write to MH i2c: E2 08 00 26 0B 80 0D 01 02 00 00 00 00 AA [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [14:48:26]RAPDU: 90 00 [14:48:26]wFMCommunicate OK [14:48:26]wFMCommunicate request_size=255 [14:48:26]MH_SAM_APDU [14:48: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 32 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 B3 00 00 00 F4 03 04 00 3A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 67 CD 01 00 35 04 06 00 5F [14:48:26]Write to MH i2c: E2 02 01 27 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 00 00 00 F4 03 04 00 3A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 67 CD 01 00 35 04 06 00 5F 00 00 A4 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 27 0B 00 90 00 A6 [14:48:26]RAPDU: 90 00 [14:48:26]wFMCommunicate OK [14:48:26]wFMCommunicate request_size=10 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 0D 02 02 05 85 51 3E 99 30 [14:48:26]Write to MH i2c: E2 0D 00 28 0B 80 0D 02 02 05 00 85 51 3E 99 30 00 00 94 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 03 00 28 0B 00 90 00 A7 [14:48:26]RAPDU: 90 00 [14:48:26]wFMCommunicate OK [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 0D 03 02 [14:48:26]Write to MH i2c: E2 08 00 29 0B 80 0D 03 02 00 00 00 00 AF [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0B 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0B 00 29 0B 00 03 59 58 18 4B 1E B0 D6 90 00 6B [14:48:26]RAPDU: 03 59 58 18 4B 1E B0 D6 90 00 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_SignData done [14:48:26]FM_MakeSignedData done [14:48:26]CreateOFDProtocolMessage [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 11 00 00 [14:48:26]Write to MH i2c: E2 08 00 2A 0B 80 11 00 00 00 00 00 00 AF [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 2A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 06 [14:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:48:26]wFMCommunicate OK [14:48:26]CreateOFDProtocolMessage done [14:48:26]OFDSenderStorePacket 118119 [14:48:26]StoreOFDPacket docnum=118119 [14:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 50 3B 07 01 16 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 00 00 00 F4 03 04 00 3A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 67 CD 01 00 35 04 06 00 5F 85 51 3E 99 30 03 59 58 18 4B 1E B0 D6 [14:48:26]CheckFolder [14:48:26]dirname=/storage/ofd_packets [14:48:26]CheckFolder done [14:48:26]ProducePacketName [14:48:26]name=ofd_packets/00118119 [14:48:26]NVStorageSaveData ofd_packets/00118119 [14:48:26]File name is /storage/ofd_packets/00118119 [14:48:26]Write 301 bytes [14:48:26]NVStorageSaveData done [14:48:26]OFDSenderStorePacket done [14:48:26]KKMCreateOFDPacket done [14:48:26]NVStorageSaveData kkm_last_timestamp [14:48:26]File name is /storage/kkm_last_timestamp [14:48:26]Write 4 bytes [14:48:26]NVStorageSaveData done [14:48:26]ExternCall_PrintAddStr [14:48:26]wPrintStart [14:48:26]Write to MH i2c: 01 00 00 2B 0B 36 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 2B 0B 00 00 00 00 00 FF 0F 4B [14:48:26]RasterBufferAndPrint [14:48:26]line Счет N : (1)245915 [14:48:26]line ИНН: 02508201610067 [14:48:26]line Контрольно-Кассовый Чек [14:48:26]line ПРОДАЖА [14:48:26]line ТРК (МРК, ГНК) : 21 [14:48:26]line Товар: 2710124130 [14:48:26]line Аи-92-К-2 [14:48:26]line 4.490 * 66.90 [14:48:26]line = 300.38 [14:48:26]line НДС 12% НСП 1% [14:48:26]line > о реализуемом товаре [14:48:26]line ОКРУГЛЕНИЕ: -0.38 [14:48:26]line ИТОГО: 300.00 [14:48:26]line Внесено: 300.00 [14:48:26]line СДАЧА: 0.00 [14:48:26]line НСП 1% : 2.66 [14:48:26]line НДС 12% : 31.90 [14:48:26]line Наличными: 300.00 [14:48:26]line Безнал.: 0.00 [14:48:26]line Место: АЗС № 173 "Партнер Нефть" [14:48:26]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:48:26]line СНО: Общий режим [14:48:26]line Чек 179 30.10.2024 14:48 [14:48:26]line Смена: 545 ФФД: 1.0 [14:48:26]line ЗНМ: 0300000115 [14:48:26]line РНМ: 0000000000091782 [14:48:26]line Версия ККМ: 001 [14:48:26]line ФМ: 0000000000871767 [14:48:26]line ФД: 118119 [14:48:26]line ФПД: 105026198346032 [14:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144826&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118119&fm=105026198346032&tin=02508201610067®Number=0000000000091782&sum=30000 [14:48:26]written 0, free lines is 4095 [14:48:26]OFD Sender: Processing packet 118119 [packets to send 77, broken 76] [14:48:26]ProducePacketName [14:48:26]name=ofd_packets/00118119 [14:48:26]OFD Sender: To server: pG, [14:48:26]CommunicateWithHost lk.salyk.kg:30040 [14:48:26]ConnectInit lk.salyk.kg [14:48:27]Connected sock=10 [14:48: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 36 37 0F 01 00 00 50 3B 07 01 16 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 00 00 00 F4 03 04 00 3A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 67 CD 01 00 35 04 06 00 5F 85 51 3E 99 30 03 59 58 18 4B 1E B0 D6 [14:48: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 36 37 4F 00 00 00 0B 4E 47 00 53 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 67 CD 01 00 F4 03 04 00 F1 F2 21 67 B6 04 01 00 00 70 6B 07 5A 9C B2 22 63 [14:48:27]CommunicateWithHost err = 0 [14:48:27]CheckOFDResponse [14:48:27]1017 (14) - 77093643461234 [14:48:27]1041 (16) - 0000000000871767 [14:48:27]1040 (4) - 118119 [14:48:27]1012 (4) - 30.10.2024 08:48 [14:48:27]1206 (1) - 0 [14:48:27]OFD Sender: Remove packet 118119 [14:48:27]ProducePacketName [14:48:27]name=ofd_packets/00118119 [14:48:27]NVStorageDeleteData [14:48:27]Write to MH i2c: 01 00 00 55 0B 60 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 55 0B 00 00 00 00 00 AD 0C 20 [14:48:27]RasterBufferAndPrint [14:48:27]line [14:48:27]line [14:48:27]line [14:48:27]line [14:48:27]line [14:48:27]written 0, free lines is 3251 [14:48:27]MH_Cut [14:48:27]Write to MH i2c: D1 01 00 5C 0B 01 39 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: D1 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: D1 01 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: D1 01 00 5C 0B 00 38 [14:48:27]Write to MH i2c: 01 00 00 5D 0B 68 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]OFD Sender: No OFD packet to send [14:48:28]*** Cut start [14:48:28]*** Purtial cut [14:48:28]*** Stage 1: CUTSNS_PIN = 1 [14:48:28]Read from MH i2c: 01 [14:48:28]MH_I2C_Read... [14:48:28]*** Stop cut motor [14:48:28]*** Cut end [14:48:28]Read from MH i2c: 01 07 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: 01 07 00 5D 0B 00 00 00 00 00 FF 0F 7D [14:48:28]process_action close_receipt done [14:48:28]requested_data is exist [14:48:28]produce_requested_data [14:48:28]requested_item fm.sn is exist - process it [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 11 00 00 [14:48:28]Write to MH i2c: E2 08 00 5E 0B 80 11 00 00 00 00 00 00 E3 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 17 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 17 00 5E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3A [14:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:48:28]wFMCommunicate OK [14:48:28]requested_item fd.num is exist - process it [14:48:28]SAM_PROTO_GetFieldsCounters [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 13 00 00 [14:48:28]Write to MH i2c: E2 08 00 5F 0B 80 13 00 00 00 00 00 00 E6 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 62 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 62 00 5F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 67 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14:48: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 67 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:28]wFMCommunicate OK [14:48:28]SAM_PROTO_GetFieldsCounters done [14:48:28]requested_item shift.num is exist - process it [14:48:28]requested_item shift.opened is exist - process it [14:48:28]req_shift_opened [14:48:28]FM_GetShiftState [14:48:28]SAM_PROTO_GetShiftState [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 13 01 00 [14:48:28]Write to MH i2c: E2 08 00 60 0B 80 13 01 00 00 00 00 00 E8 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 0E 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 0E 00 60 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C0 [14:48:28]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:48:28]wFMCommunicate OK [14:48:28]SAM_PROTO_GetShiftState done [14:48:28]FM_GetShiftState done [14:48:28]req_shift_opened done [14:48:28]requested_item shift.open_date is exist - process it [14:48:28]req_shift_open_date [14:48:28]req_shift_open_date done [14:48:28]produce_requested_data done [14:48:28]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118119,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:48:28]process_action_free close_receipt [14:48:28]json_value_free [14:48:28]json_value_free done [14:48:28]process_json_proto returns [14:48:28]Send response to host [14:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118119,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:48:28]free response buf [14:48:28]execute_script done [14:48:28]execute_script returns [14:48:28]free content buf [14:48:28]Sock 9.Close socket [14:48:28]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:45]accept exits with 7 [14:49:45]New connection [14:49:45]New thread 3066551652 created [14:49:45]Thread 3066695012 joined [14:49:45]Waiting for new connection... [14:49:45] Sock 7.Parse request [14:49:45]Sock 7.Check first char [14:49:45]Sock 7.First char is OK [14:49:45]request: POST /json_proto HTTP/1.0 [14:49:45]Method: POST [14:49:45]URL: /json_proto [14:49:45]Method is POST - this is cgi request [14:49:45]url: /json_proto [14:49:45]query_string will be loaded in cgi processing [14:49:45]execute_cgi json_proto POST (null) [14:49:45]execute_cgi path=json_proto method=POST [14:49:45]POST find Content-Length [14:49:45]Host: 172.17.96.67:8080 [14:49:45]Content-Length: 677 [14:49:45]Content-Type: application/json [14:49:45] [14:49:45]POST finish read [14:49:45]Found Content-Length = 677 [14:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:45]execute_script... [14:49: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)245916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:45]POST & json_proto [14:49:45]process_json_proto [14:49:45]json parsed OK: [14:49:45]protocol is kg_v1.0 [14:49:45]action value=close_receipt [14:49:45]process_action close_receipt [14:49:45]cmd_close_receipt [14:49:45]MH_GetDate [14:49:45]Write to MH i2c: F0 00 00 61 0B 5B [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: F0 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: F0 09 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: F0 09 00 61 0B 00 8A 47 22 67 47 6C 1F 67 F7 [14:49:45]GetLastDocTimeStamp 1730299706 [14:49:45]current date 1730299786 [14:49:45]FM_GetShiftState [14:49:45]SAM_PROTO_GetShiftState [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 13 01 00 [14:49:45]Write to MH i2c: E2 08 00 62 0B 80 13 01 00 00 00 00 00 EA [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 0E 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 0E 00 62 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C2 [14:49:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:49:45]wFMCommunicate OK [14:49:45]SAM_PROTO_GetShiftState done [14:49:45]FM_GetShiftState done [14:49:45]opened in 1730246605 [14:49:45]opened+sec_in_day 1730333005 [14:49:45]quantity*price = 40006 [14:49:45]sum+1 = 40007 [14:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 180 30.10.2024 14:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118120 ФПД: 216420500781939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144946&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118120&fm=216420500781939&tin=02508201610067®Number=0000000000091782&sum=40000 [14:49:46]StoreToDocumentArchive [14:49:46]shift 545 fd 118120 [14:49:46]save to /storage/0545/doc_00118120 [14:49:46]save last doc name /storage/0545/doc_00118120 to /storage/kkm_last_doc_name [14:49:46]save OK [14:49:46]Clear old archive folders... [14:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:46]tlvbuf is 000EC990 [14:49:46]SAM_PROTO_ClearQueue [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 09 00 00 [14:49:46]Write to MH i2c: E2 08 00 6F 0B 80 09 00 00 00 00 00 00 EC [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 03 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [14:49:46]RAPDU: 90 00 [14:49:46]wFMCommunicate OK [14:49:46]SAM_PROTO_ClearQueue done [14:49:46]KKMCreateOFDPacket [14:49:46]OFDProtocolAddRootSTLVToBuf [14:49:46]FM_MakeSignedData [14:49:46]FM_MakeSignedData [14:49:46]SAM_PROTO_SignData [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 0D 01 02 [14:49:46]Write to MH i2c: E2 08 00 70 0B 80 0D 01 02 00 00 00 00 F4 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 03 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 03 00 70 0B 00 90 00 EF [14:49:46]RAPDU: 90 00 [14:49:46]wFMCommunicate OK [14:49:46]wFMCommunicate request_size=255 [14:49:46]MH_SAM_APDU [14:49: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 32 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 B4 00 00 00 F4 03 04 00 8A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 68 CD 01 00 35 04 06 00 C4 [14:49:46]Write to MH i2c: E2 02 01 71 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B4 00 00 00 F4 03 04 00 8A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 68 CD 01 00 35 04 06 00 C4 00 00 80 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 71 0B 00 90 00 F0 [14:49:47]RAPDU: 90 00 [14:49:47]wFMCommunicate OK [14:49:47]wFMCommunicate request_size=10 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 0D 02 02 05 D5 53 12 3B 73 [14:49:47]Write to MH i2c: E2 0D 00 72 0B 80 0D 02 02 05 00 D5 53 12 3B 73 00 00 E9 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 72 0B 00 90 00 F1 [14:49:47]RAPDU: 90 00 [14:49:47]wFMCommunicate OK [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 0D 03 02 [14:49:47]Write to MH i2c: E2 08 00 73 0B 80 0D 03 02 00 00 00 00 F9 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0B 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0B 00 73 0B 00 1D 87 D4 D5 D7 A4 50 A4 90 00 B6 [14:49:47]RAPDU: 1D 87 D4 D5 D7 A4 50 A4 90 00 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_SignData done [14:49:47]FM_MakeSignedData done [14:49:47]CreateOFDProtocolMessage [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 11 00 00 [14:49:47]Write to MH i2c: E2 08 00 74 0B 80 11 00 00 00 00 00 00 F9 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 17 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 17 00 74 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 50 [14:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:49:47]wFMCommunicate OK [14:49:47]CreateOFDProtocolMessage done [14:49:47]OFDSenderStorePacket 118120 [14:49:47]StoreOFDPacket docnum=118120 [14:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F7 F3 07 01 EC 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 8A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 68 CD 01 00 35 04 06 00 C4 D5 53 12 3B 73 1D 87 D4 D5 D7 A4 50 A4 [14:49:47]CheckFolder [14:49:47]dirname=/storage/ofd_packets [14:49:47]CheckFolder done [14:49:47]ProducePacketName [14:49:47]name=ofd_packets/00118120 [14:49:47]NVStorageSaveData ofd_packets/00118120 [14:49:47]File name is /storage/ofd_packets/00118120 [14:49:47]Write 301 bytes [14:49:47]NVStorageSaveData done [14:49:47]OFDSenderStorePacket done [14:49:47]KKMCreateOFDPacket done [14:49:47]NVStorageSaveData kkm_last_timestamp [14:49:47]File name is /storage/kkm_last_timestamp [14:49:47]Write 4 bytes [14:49:47]NVStorageSaveData done [14:49:47]ExternCall_PrintAddStr [14:49:47]wPrintStart [14:49:47]Write to MH i2c: 01 00 00 75 0B 80 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: 01 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: 01 07 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 FF 0F 95 [14:49:47]RasterBufferAndPrint [14:49:47]line Счет N : (1)245916 [14:49:47]line ИНН: 02508201610067 [14:49:47]line Контрольно-Кассовый Чек [14:49:47]line ПРОДАЖА [14:49:47]line ТРК (МРК, ГНК) : 21 [14:49:47]line Товар: 2710124130 [14:49:47]line Аи-92-К-2 [14:49:47]line 5.980 * 66.90 [14:49:47]line = 400.06 [14:49:47]line НДС 12% НСП 1% [14:49:47]line > о реализуемом товаре [14:49:47]line ОКРУГЛЕНИЕ: -0.06 [14:49:47]line ИТОГО: 400.00 [14:49:47]line Внесено: 400.00 [14:49:47]line СДАЧА: 0.00 [14:49:47]line НСП 1% : 3.54 [14:49:47]line НДС 12% : 42.48 [14:49:47]line Наличными: 400.00 [14:49:47]line Безнал.: 0.00 [14:49:47]line Место: АЗС № 173 "Партнер Нефть" [14:49:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [14:49:47]line СНО: Общий режим [14:49:47]line Чек 180 30.10.2024 14:49 [14:49:47]line Смена: 545 ФФД: 1.0 [14:49:47]line ЗНМ: 0300000115 [14:49:47]line РНМ: 0000000000091782 [14:49:47]line Версия ККМ: 001 [14:49:47]line ФМ: 0000000000871767 [14:49:47]line ФД: 118120 [14:49:47]line ФПД: 216420500781939 [14:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144946&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118120&fm=216420500781939&tin=02508201610067®Number=0000000000091782&sum=40000 [14:49:47]written 0, free lines is 4095 [14:49:47]OFD Sender: Processing packet 118120 [packets to send 77, broken 76] [14:49:47]ProducePacketName [14:49:47]name=ofd_packets/00118120 [14:49:47]OFD Sender: To server: pG, [14:49:47]CommunicateWithHost lk.salyk.kg:30040 [14:49:47]ConnectInit lk.salyk.kg [14:49:47]Connected sock=10 [14:49: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 36 37 0F 01 00 00 F7 F3 07 01 EC 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 8A 47 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 68 CD 01 00 35 04 06 00 C4 D5 53 12 3B 73 1D 87 D4 D5 D7 A4 50 A4 [14:49: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 36 37 4F 00 00 00 BE 92 47 00 22 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 36 37 10 04 04 00 68 CD 01 00 F4 03 04 00 42 F3 21 67 B6 04 01 00 00 47 00 85 EE 6B 09 7A CF [14:49:48]CommunicateWithHost err = 0 [14:49:48]CheckOFDResponse [14:49:48]1017 (14) - 77093643461234 [14:49:48]1041 (16) - 0000000000871767 [14:49:48]1040 (4) - 118120 [14:49:48]1012 (4) - 30.10.2024 08:50 [14:49:48]1206 (1) - 0 [14:49:48]OFD Sender: Remove packet 118120 [14:49:48]ProducePacketName [14:49:48]name=ofd_packets/00118120 [14:49:48]NVStorageDeleteData [14:49:48]Write to MH i2c: 01 00 00 9F 0B AA [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 07 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 07 00 9F 0B 00 00 00 00 00 AF 0C 6C [14:49:48]RasterBufferAndPrint [14:49:48]line [14:49:48]line [14:49:48]line [14:49:48]line [14:49:48]line [14:49:48]written 0, free lines is 3251 [14:49:48]MH_Cut [14:49:48]Write to MH i2c: D1 01 00 A6 0B 01 83 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: D1 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: D1 01 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: D1 01 00 A6 0B 00 82 [14:49:48]Write to MH i2c: 01 00 00 A7 0B B2 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]OFD Sender: No OFD packet to send [14:49:49]*** Cut start [14:49:49]*** Purtial cut [14:49:49]*** Stage 1: CUTSNS_PIN = 1 [14:49:49]Read from MH i2c: 01 [14:49:49]MH_I2C_Read... [14:49:49]*** Stop cut motor [14:49:49]*** Cut end [14:49:49]Read from MH i2c: 01 07 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: 01 07 00 A7 0B 00 00 00 00 00 FF 0F C7 [14:49:49]process_action close_receipt done [14:49:49]requested_data is exist [14:49:49]produce_requested_data [14:49:49]requested_item fm.sn is exist - process it [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 11 00 00 [14:49:49]Write to MH i2c: E2 08 00 A8 0B 80 11 00 00 00 00 00 00 2D [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 17 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 17 00 A8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 84 [14:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [14:49:49]wFMCommunicate OK [14:49:49]requested_item fd.num is exist - process it [14:49:49]SAM_PROTO_GetFieldsCounters [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 13 00 00 [14:49:49]Write to MH i2c: E2 08 00 A9 0B 80 13 00 00 00 00 00 00 30 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 62 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 62 00 A9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 68 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:49: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 68 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:49]wFMCommunicate OK [14:49:49]SAM_PROTO_GetFieldsCounters done [14:49:49]requested_item shift.num is exist - process it [14:49:49]requested_item shift.opened is exist - process it [14:49:49]req_shift_opened [14:49:49]FM_GetShiftState [14:49:49]SAM_PROTO_GetShiftState [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 13 01 00 [14:49:49]Write to MH i2c: E2 08 00 AA 0B 80 13 01 00 00 00 00 00 32 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 0E 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 0E 00 AA 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0A [14:49:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [14:49:49]wFMCommunicate OK [14:49:49]SAM_PROTO_GetShiftState done [14:49:49]FM_GetShiftState done [14:49:49]req_shift_opened done [14:49:49]requested_item shift.open_date is exist - process it [14:49:49]req_shift_open_date [14:49:49]req_shift_open_date done [14:49:49]produce_requested_data done [14:49:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118120,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [14:49:49]process_action_free close_receipt [14:49:49]json_value_free [14:49:49]json_value_free done [14:49:49]process_json_proto returns [14:49:49]Send response to host [14:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118120,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [14:49:49]free response buf [14:49:49]execute_script done [14:49:49]execute_script returns [14:49:49]free content buf [14:49:49]Sock 7.Close socket [14:49:49]Sock 7.Thread stoped [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:01]accept exits with 9 [15:07:01]New connection [15:07:01]New thread 3066695012 created [15:07:01]Thread 3066551652 joined [15:07:01]Waiting for new connection... [15:07:01] Sock 9.Parse request [15:07:01]Sock 9.Check first char [15:07:01]Sock 9.First char is OK [15:07:01]request: POST /json_proto HTTP/1.0 [15:07:01]Method: POST [15:07:01]URL: /json_proto [15:07:01]Method is POST - this is cgi request [15:07:01]url: /json_proto [15:07:01]query_string will be loaded in cgi processing [15:07:01]execute_cgi json_proto POST (null) [15:07:01]execute_cgi path=json_proto method=POST [15:07:01]POST find Content-Length [15:07:01]Host: 172.17.96.67:8080 [15:07:01]Content-Length: 677 [15:07:01]Content-Type: application/json [15:07:01] [15:07:01]POST finish read [15:07:01]Found Content-Length = 677 [15:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:07:01]execute_script... [15:07: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)245917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:07:01]POST & json_proto [15:07:01]process_json_proto [15:07:01]json parsed OK: [15:07:01]protocol is kg_v1.0 [15:07:01]action value=close_receipt [15:07:01]process_action close_receipt [15:07:01]cmd_close_receipt [15:07:01]MH_GetDate [15:07:01]Write to MH i2c: F0 00 00 AB 0B A5 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: F0 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: F0 09 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: F0 09 00 AB 0B 00 96 4B 22 67 47 6C 1F 67 51 [15:07:01]GetLastDocTimeStamp 1730299786 [15:07:01]current date 1730300822 [15:07:01]FM_GetShiftState [15:07:01]SAM_PROTO_GetShiftState [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 13 01 00 [15:07:01]Write to MH i2c: E2 08 00 AC 0B 80 13 01 00 00 00 00 00 34 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 0E 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 0E 00 AC 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0C [15:07:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:07:01]wFMCommunicate OK [15:07:01]SAM_PROTO_GetShiftState done [15:07:01]FM_GetShiftState done [15:07:01]opened in 1730246605 [15:07:01]opened+sec_in_day 1730333005 [15:07:01]quantity*price = 20003 [15:07:01]sum+1 = 20004 [15:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 181 30.10.2024 15:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118121 ФПД: 74710861674317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T150703&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118121&fm=74710861674317&tin=02508201610067®Number=0000000000091782&sum=20000 [15:07:02]StoreToDocumentArchive [15:07:02]shift 545 fd 118121 [15:07:02]save to /storage/0545/doc_00118121 [15:07:02]save last doc name /storage/0545/doc_00118121 to /storage/kkm_last_doc_name [15:07:02]save OK [15:07:02]Clear old archive folders... [15:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:02]tlvbuf is 000B6F80 [15:07:02]SAM_PROTO_ClearQueue [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 09 00 00 [15:07:02]Write to MH i2c: E2 08 00 B9 0B 80 09 00 00 00 00 00 00 36 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [15:07:02]RAPDU: 90 00 [15:07:02]wFMCommunicate OK [15:07:02]SAM_PROTO_ClearQueue done [15:07:02]KKMCreateOFDPacket [15:07:02]OFDProtocolAddRootSTLVToBuf [15:07:02]FM_MakeSignedData [15:07:02]FM_MakeSignedData [15:07:02]SAM_PROTO_SignData [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 0D 01 02 [15:07:02]Write to MH i2c: E2 08 00 BA 0B 80 0D 01 02 00 00 00 00 3E [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [15:07:02]RAPDU: 90 00 [15:07:02]wFMCommunicate OK [15:07:02]wFMCommunicate request_size=255 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B5 00 00 00 F4 03 04 00 97 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 69 CD 01 00 35 04 06 00 43 [15:07:02]Write to MH i2c: E2 02 01 BB 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B5 00 00 00 F4 03 04 00 97 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 69 CD 01 00 35 04 06 00 43 00 00 4F [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 03 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 03 00 BB 0B 00 90 00 3A [15:07:03]RAPDU: 90 00 [15:07:03]wFMCommunicate OK [15:07:03]wFMCommunicate request_size=10 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 0D 02 02 05 F2 FA 5E F7 4D [15:07:03]Write to MH i2c: E2 0D 00 BC 0B 80 0D 02 02 05 00 F2 FA 5E F7 4D 00 00 D9 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 03 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 03 00 BC 0B 00 90 00 3B [15:07:03]RAPDU: 90 00 [15:07:03]wFMCommunicate OK [15:07:03]wFMCommunicate request_size=4 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 0D 03 02 [15:07:03]Write to MH i2c: E2 08 00 BD 0B 80 0D 03 02 00 00 00 00 43 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 0B 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 0B 00 BD 0B 00 C9 9C A7 51 F6 86 42 55 90 00 B4 [15:07:03]RAPDU: C9 9C A7 51 F6 86 42 55 90 00 [15:07:03]wFMCommunicate OK [15:07:03]SAM_PROTO_SignData done [15:07:03]FM_MakeSignedData done [15:07:03]CreateOFDProtocolMessage [15:07:03]wFMCommunicate request_size=4 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 11 00 00 [15:07:03]Write to MH i2c: E2 08 00 BE 0B 80 11 00 00 00 00 00 00 43 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 17 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 17 00 BE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9A [15:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:07:03]wFMCommunicate OK [15:07:03]CreateOFDProtocolMessage done [15:07:03]OFDSenderStorePacket 118121 [15:07:03]StoreOFDPacket docnum=118121 [15:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A9 57 07 01 E3 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B5 00 00 00 F4 03 04 00 97 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 69 CD 01 00 35 04 06 00 43 F2 FA 5E F7 4D C9 9C A7 51 F6 86 42 55 [15:07:03]CheckFolder [15:07:03]dirname=/storage/ofd_packets [15:07:03]CheckFolder done [15:07:03]ProducePacketName [15:07:03]name=ofd_packets/00118121 [15:07:03]NVStorageSaveData ofd_packets/00118121 [15:07:03]File name is /storage/ofd_packets/00118121 [15:07:03]Write 301 bytes [15:07:03]NVStorageSaveData done [15:07:03]OFDSenderStorePacket done [15:07:03]KKMCreateOFDPacket done [15:07:03]NVStorageSaveData kkm_last_timestamp [15:07:03]File name is /storage/kkm_last_timestamp [15:07:03]Write 4 bytes [15:07:03]NVStorageSaveData done [15:07:03]ExternCall_PrintAddStr [15:07:03]wPrintStart [15:07:03]Write to MH i2c: 01 00 00 BF 0B CA [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: 01 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: 01 07 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: 01 07 00 BF 0B 00 00 00 00 00 FF 0F DF [15:07:03]RasterBufferAndPrint [15:07:03]line Счет N : (1)245917 [15:07:03]line ИНН: 02508201610067 [15:07:03]line Контрольно-Кассовый Чек [15:07:03]line ПРОДАЖА [15:07:03]line ТРК (МРК, ГНК) : 21 [15:07:03]line Товар: 2710124130 [15:07:03]line Аи-92-К-2 [15:07:03]line 2.990 * 66.90 [15:07:03]line = 200.03 [15:07:03]line НДС 12% НСП 1% [15:07:03]line > о реализуемом товаре [15:07:03]line ОКРУГЛЕНИЕ: -0.03 [15:07:03]line ИТОГО: 200.00 [15:07:03]line Внесено: 200.00 [15:07:03]line СДАЧА: 0.00 [15:07:03]line НСП 1% : 1.77 [15:07:03]line НДС 12% : 21.24 [15:07:03]line Наличными: 200.00 [15:07:03]line Безнал.: 0.00 [15:07:03]line Место: АЗС № 173 "Партнер Нефть" [15:07:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:07:03]line СНО: Общий режим [15:07:03]line Чек 181 30.10.2024 15:07 [15:07:03]line Смена: 545 ФФД: 1.0 [15:07:03]line ЗНМ: 0300000115 [15:07:03]line РНМ: 0000000000091782 [15:07:03]line Версия ККМ: 001 [15:07:03]line ФМ: 0000000000871767 [15:07:03]line ФД: 118121 [15:07:03]line ФПД: 74710861674317 [15:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T150703&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118121&fm=74710861674317&tin=02508201610067®Number=0000000000091782&sum=20000 [15:07:03]OFD Sender: Processing packet 118121 [packets to send 77, broken 76] [15:07:03]ProducePacketName [15:07:03]name=ofd_packets/00118121 [15:07:03]OFD Sender: To server: pG, [15:07:03]CommunicateWithHost lk.salyk.kg:30040 [15:07:03]ConnectInit lk.salyk.kg [15:07:03]written 0, free lines is 4095 [15:07:03]Connected sock=10 [15:07: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 36 37 0F 01 00 00 A9 57 07 01 E3 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B5 00 00 00 F4 03 04 00 97 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 69 CD 01 00 35 04 06 00 43 F2 FA 5E F7 4D C9 9C A7 51 F6 86 42 55 [15:07: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 36 37 4F 00 00 00 BF CF 47 00 D8 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 69 CD 01 00 F4 03 04 00 4E F7 21 67 B6 04 01 00 00 46 3C 4E C7 4E 15 C6 89 [15:07:03]CommunicateWithHost err = 0 [15:07:03]CheckOFDResponse [15:07:03]1017 (14) - 77093643461234 [15:07:03]1041 (16) - 0000000000871767 [15:07:03]1040 (4) - 118121 [15:07:03]1012 (4) - 30.10.2024 09:07 [15:07:03]1206 (1) - 0 [15:07:03]OFD Sender: Remove packet 118121 [15:07:03]ProducePacketName [15:07:03]name=ofd_packets/00118121 [15:07:03]NVStorageDeleteData [15:07:04]Write to MH i2c: 01 00 00 E9 0B F4 [15:07:04]Write i2c OK [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: 01 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: 01 07 00 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: 01 07 00 E9 0B 00 00 00 00 00 B3 0C BA [15:07:04]RasterBufferAndPrint [15:07:04]line [15:07:04]line [15:07:04]line [15:07:04]line [15:07:04]line [15:07:04]written 0, free lines is 3257 [15:07:04]MH_Cut [15:07:04]Write to MH i2c: D1 01 00 F0 0B 01 CD [15:07:04]Write i2c OK [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: D1 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: D1 01 00 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: D1 01 00 F0 0B 00 CC [15:07:04]Write to MH i2c: 01 00 00 F1 0B FC [15:07:04]Write i2c OK [15:07:04]MH_I2C_Read... [15:07:04]OFD Sender: No OFD packet to send [15:07:04]*** Cut start [15:07:04]*** Purtial cut [15:07:04]*** Stage 1: CUTSNS_PIN = 1 [15:07:05]Read from MH i2c: 01 [15:07:05]MH_I2C_Read... [15:07:05]*** Stop cut motor [15:07:05]*** Cut end [15:07:05]Read from MH i2c: 01 07 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 07 00 F1 0B 00 00 00 00 00 FF 0F 11 [15:07:05]process_action close_receipt done [15:07:05]requested_data is exist [15:07:05]produce_requested_data [15:07:05]requested_item fm.sn is exist - process it [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 11 00 00 [15:07:05]Write to MH i2c: E2 08 00 F2 0B 80 11 00 00 00 00 00 00 77 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 17 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 17 00 F2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CE [15:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:07:05]wFMCommunicate OK [15:07:05]requested_item fd.num is exist - process it [15:07:05]SAM_PROTO_GetFieldsCounters [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 13 00 00 [15:07:05]Write to MH i2c: E2 08 00 F3 0B 80 13 00 00 00 00 00 00 7A [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 62 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 62 00 F3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 69 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 69 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:05]wFMCommunicate OK [15:07:05]SAM_PROTO_GetFieldsCounters done [15:07:05]requested_item shift.num is exist - process it [15:07:05]requested_item shift.opened is exist - process it [15:07:05]req_shift_opened [15:07:05]FM_GetShiftState [15:07:05]SAM_PROTO_GetShiftState [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 13 01 00 [15:07:05]Write to MH i2c: E2 08 00 F4 0B 80 13 01 00 00 00 00 00 7C [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:05]Read from MH i2c: E2 0E 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0E 00 F4 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 54 [15:07:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:07:05]wFMCommunicate OK [15:07:05]SAM_PROTO_GetShiftState done [15:07:05]FM_GetShiftState done [15:07:05]req_shift_opened done [15:07:05]requested_item shift.open_date is exist - process it [15:07:05]req_shift_open_date [15:07:05]req_shift_open_date done [15:07:05]produce_requested_data done [15:07:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118121,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:07:05]process_action_free close_receipt [15:07:05]json_value_free [15:07:05]json_value_free done [15:07:05]process_json_proto returns [15:07:05]Send response to host [15:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118121,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:07:05]free response buf [15:07:05]execute_script done [15:07:05]execute_script returns [15:07:05]free content buf [15:07:05]Sock 9.Close socket [15:07:05]Sock 9.Thread stoped [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:15]accept exits with 7 [15:07:15]New connection [15:07:15]New thread 3066551652 created [15:07:15]Thread 3066695012 joined [15:07:15]Waiting for new connection... [15:07:15] Sock 7.Parse request [15:07:15]Sock 7.Check first char [15:07:15]Sock 7.First char is OK [15:07:15]request: POST /json_proto HTTP/1.0 [15:07:15]Method: POST [15:07:15]URL: /json_proto [15:07:15]Method is POST - this is cgi request [15:07:15]url: /json_proto [15:07:15]query_string will be loaded in cgi processing [15:07:15]execute_cgi json_proto POST (null) [15:07:15]execute_cgi path=json_proto method=POST [15:07:15]POST find Content-Length [15:07:15]Host: 172.17.96.67:8080 [15:07:15]Content-Length: 674 [15:07:15]Content-Type: application/json [15:07:15] [15:07:15]POST finish read [15:07:15]Found Content-Length = 674 [15:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.100, "sum" : 160.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:15]execute_script... [15:07: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)245918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.100, "sum" : 160.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:15]POST & json_proto [15:07:15]process_json_proto [15:07:15]json parsed OK: [15:07:15]protocol is kg_v1.0 [15:07:15]action value=close_receipt [15:07:15]process_action close_receipt [15:07:15]cmd_close_receipt [15:07:15]MH_GetDate [15:07:15]Write to MH i2c: F0 00 00 F5 0B EF [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: F0 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: F0 09 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: F0 09 00 F5 0B 00 A4 4B 22 67 47 6C 1F 67 A9 [15:07:15]GetLastDocTimeStamp 1730300823 [15:07:15]current date 1730300836 [15:07:15]FM_GetShiftState [15:07:15]SAM_PROTO_GetShiftState [15:07:15]wFMCommunicate request_size=4 [15:07:15]MH_SAM_APDU [15:07:15]CAPDU: 80 13 01 00 [15:07:15]Write to MH i2c: E2 08 00 F6 0B 80 13 01 00 00 00 00 00 7E [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:15]Read from MH i2c: E2 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 0E 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: E2 0E 00 F6 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 56 [15:07:15]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:07:15]wFMCommunicate OK [15:07:15]SAM_PROTO_GetShiftState done [15:07:15]FM_GetShiftState done [15:07:15]opened in 1730246605 [15:07:15]opened+sec_in_day 1730333005 [15:07:15]quantity*price = 16002 [15:07:15]sum+1 = 16003 [15:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 182 30.10.2024 15:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118122 ФПД: 123447181201684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T150716&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118122&fm=123447181201684&tin=02508201610067®Number=0000000000091782&sum=16000 [15:07:16]StoreToDocumentArchive [15:07:16]shift 545 fd 118122 [15:07:16]save to /storage/0545/doc_00118122 [15:07:16]save last doc name /storage/0545/doc_00118122 to /storage/kkm_last_doc_name [15:07:16]save OK [15:07:16]Clear old archive folders... [15:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:07:16]tlvbuf is 000F20E0 [15:07:16]SAM_PROTO_ClearQueue [15:07:16]wFMCommunicate request_size=4 [15:07:16]MH_SAM_APDU [15:07:16]CAPDU: 80 09 00 00 [15:07:16]Write to MH i2c: E2 08 00 03 0C 80 09 00 00 00 00 00 00 81 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:16]Read from MH i2c: E2 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 03 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [15:07:16]RAPDU: 90 00 [15:07:16]wFMCommunicate OK [15:07:16]SAM_PROTO_ClearQueue done [15:07:16]KKMCreateOFDPacket [15:07:16]OFDProtocolAddRootSTLVToBuf [15:07:16]FM_MakeSignedData [15:07:16]FM_MakeSignedData [15:07:16]SAM_PROTO_SignData [15:07:16]wFMCommunicate request_size=4 [15:07:16]MH_SAM_APDU [15:07:16]CAPDU: 80 0D 01 02 [15:07:16]Write to MH i2c: E2 08 00 04 0C 80 0D 01 02 00 00 00 00 89 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:16]Read from MH i2c: E2 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 03 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [15:07:16]RAPDU: 90 00 [15:07:16]wFMCommunicate OK [15:07:16]wFMCommunicate request_size=255 [15:07:16]MH_SAM_APDU [15:07:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A4 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6A CD 01 00 35 04 06 00 70 46 49 62 [15:07:16]Write to MH i2c: E2 02 01 05 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A4 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6A CD 01 00 35 04 06 00 70 46 49 62 00 00 63 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=7 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 02 02 02 51 14 [15:07:17]Write to MH i2c: E2 0A 00 06 0C 80 0D 02 02 02 00 51 14 00 00 F5 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 03 02 [15:07:17]Write to MH i2c: E2 08 00 07 0C 80 0D 03 02 00 00 00 00 8E [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 0B 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 0B 00 07 0C 00 F8 06 E3 35 80 C2 7F E5 90 00 4B [15:07:17]RAPDU: F8 06 E3 35 80 C2 7F E5 90 00 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_SignData done [15:07:17]FM_MakeSignedData done [15:07:17]CreateOFDProtocolMessage [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 11 00 00 [15:07:17]Write to MH i2c: E2 08 00 08 0C 80 11 00 00 00 00 00 00 8E [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 17 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 17 00 08 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E5 [15:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:07:17]wFMCommunicate OK [15:07:17]CreateOFDProtocolMessage done [15:07:17]OFDSenderStorePacket 118122 [15:07:17]StoreOFDPacket docnum=118122 [15:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 C1 E8 04 01 D2 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A4 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6A CD 01 00 35 04 06 00 70 46 49 62 51 14 F8 06 E3 35 80 C2 7F E5 [15:07:17]CheckFolder [15:07:17]dirname=/storage/ofd_packets [15:07:17]CheckFolder done [15:07:17]ProducePacketName [15:07:17]name=ofd_packets/00118122 [15:07:17]NVStorageSaveData ofd_packets/00118122 [15:07:17]File name is /storage/ofd_packets/00118122 [15:07:17]Write 298 bytes [15:07:17]NVStorageSaveData done [15:07:17]OFDSenderStorePacket done [15:07:17]KKMCreateOFDPacket done [15:07:17]NVStorageSaveData kkm_last_timestamp [15:07:17]File name is /storage/kkm_last_timestamp [15:07:17]Write 4 bytes [15:07:17]NVStorageSaveData done [15:07:17]ExternCall_PrintAddStr [15:07:17]wPrintStart [15:07:17]Write to MH i2c: 01 00 00 09 0C 15 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: 01 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: 01 07 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: 01 07 00 09 0C 00 00 00 00 00 FF 0F 2A [15:07:17]RasterBufferAndPrint [15:07:17]line Счет N : (1)245918 [15:07:17]line ИНН: 02508201610067 [15:07:17]line Контрольно-Кассовый Чек [15:07:17]line ПРОДАЖА [15:07:17]line ТРК (МРК, ГНК) : 13 [15:07:17]line Товар: 2710194210 [15:07:17]line ДТ-К-2 [15:07:17]line 2.100 * 76.20 [15:07:17]line = 160.02 [15:07:17]line НДС 12% НСП 1% [15:07:17]line > о реализуемом товаре [15:07:17]line ОКРУГЛЕНИЕ: -0.02 [15:07:17]line ИТОГО: 160.00 [15:07:17]line Внесено: 160.00 [15:07:17]line СДАЧА: 0.00 [15:07:17]line НСП 1% : 1.42 [15:07:17]line НДС 12% : 16.99 [15:07:17]line Наличными: 160.00 [15:07:17]line Безнал.: 0.00 [15:07:17]line Место: АЗС № 173 "Партнер Нефть" [15:07:17]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:07:17]line СНО: Общий режим [15:07:17]line Чек 182 30.10.2024 15:07 [15:07:17]line Смена: 545 ФФД: 1.0 [15:07:17]line ЗНМ: 0300000115 [15:07:17]line РНМ: 0000000000091782 [15:07:17]line Версия ККМ: 001 [15:07:17]line ФМ: 0000000000871767 [15:07:17]line ФД: 118122 [15:07:17]line ФПД: 123447181201684 [15:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T150716&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118122&fm=123447181201684&tin=02508201610067®Number=0000000000091782&sum=16000 [15:07:17]OFD Sender: Processing packet 118122 [packets to send 77, broken 76] [15:07:17]ProducePacketName [15:07:17]name=ofd_packets/00118122 [15:07:17]OFD Sender: To server: pG, [15:07:17]CommunicateWithHost lk.salyk.kg:30040 [15:07:17]ConnectInit lk.salyk.kg [15:07:17]written 0, free lines is 4095 [15:07:17]Connected sock=10 [15:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 C1 E8 04 01 D2 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A4 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6A CD 01 00 35 04 06 00 70 46 49 62 51 14 F8 06 E3 35 80 C2 7F E5 [15:07: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 36 37 4F 00 00 00 6E 2E 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 36 37 10 04 04 00 6A CD 01 00 F4 03 04 00 5C F7 21 67 B6 04 01 00 00 BA 34 67 26 67 62 71 CE [15:07:17]CommunicateWithHost err = 0 [15:07:17]CheckOFDResponse [15:07:17]1017 (14) - 77093643461234 [15:07:17]1041 (16) - 0000000000871767 [15:07:17]1040 (4) - 118122 [15:07:17]1012 (4) - 30.10.2024 09:07 [15:07:17]1206 (1) - 0 [15:07:17]OFD Sender: Remove packet 118122 [15:07:17]ProducePacketName [15:07:17]name=ofd_packets/00118122 [15:07:17]NVStorageDeleteData [15:07:18]Write to MH i2c: 01 00 00 33 0C 3F [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 AD 0C FF [15:07:18]RasterBufferAndPrint [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]written 0, free lines is 3249 [15:07:18]MH_Cut [15:07:18]Write to MH i2c: D1 01 00 3A 0C 01 18 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 01 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 01 00 3A 0C 00 17 [15:07:18]Write to MH i2c: 01 00 00 3B 0C 47 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]OFD Sender: No OFD packet to send [15:07:18]*** Cut start [15:07:18]*** Purtial cut [15:07:18]*** Stage 1: CUTSNS_PIN = 1 [15:07:19]Read from MH i2c: 01 [15:07:19]MH_I2C_Read... [15:07:19]*** Stop cut motor [15:07:19]*** Cut end [15:07:19]Read from MH i2c: 01 07 00 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 FF 0F 5C [15:07:19]process_action close_receipt done [15:07:19]requested_data is exist [15:07:19]produce_requested_data [15:07:19]requested_item fm.sn is exist - process it [15:07:19]wFMCommunicate request_size=4 [15:07:19]MH_SAM_APDU [15:07:19]CAPDU: 80 11 00 00 [15:07:19]Write to MH i2c: E2 08 00 3C 0C 80 11 00 00 00 00 00 00 C2 [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:19]Read from MH i2c: E2 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: E2 17 00 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: E2 17 00 3C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 19 [15:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:07:19]wFMCommunicate OK [15:07:19]requested_item fd.num is exist - process it [15:07:19]SAM_PROTO_GetFieldsCounters [15:07:19]wFMCommunicate request_size=4 [15:07:19]MH_SAM_APDU [15:07:19]CAPDU: 80 13 00 00 [15:07:19]Write to MH i2c: E2 08 00 3D 0C 80 13 00 00 00 00 00 00 C5 [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:19]Read from MH i2c: E2 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: E2 62 00 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: E2 62 00 3D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [15:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:19]wFMCommunicate OK [15:07:19]SAM_PROTO_GetFieldsCounters done [15:07:19]requested_item shift.num is exist - process it [15:07:19]requested_item shift.opened is exist - process it [15:07:19]req_shift_opened [15:07:19]FM_GetShiftState [15:07:19]SAM_PROTO_GetShiftState [15:07:19]wFMCommunicate request_size=4 [15:07:19]MH_SAM_APDU [15:07:19]CAPDU: 80 13 01 00 [15:07:19]Write to MH i2c: E2 08 00 3E 0C 80 13 01 00 00 00 00 00 C7 [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:19]Read from MH i2c: E2 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: E2 0E 00 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: E2 0E 00 3E 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9F [15:07:19]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:07:19]wFMCommunicate OK [15:07:19]SAM_PROTO_GetShiftState done [15:07:19]FM_GetShiftState done [15:07:19]req_shift_opened done [15:07:19]requested_item shift.open_date is exist - process it [15:07:19]req_shift_open_date [15:07:19]req_shift_open_date done [15:07:19]produce_requested_data done [15:07:19]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118122,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:07:19]process_action_free close_receipt [15:07:19]json_value_free [15:07:19]json_value_free done [15:07:19]process_json_proto returns [15:07:19]Send response to host [15:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118122,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:07:19]free response buf [15:07:19]execute_script done [15:07:19]execute_script returns [15:07:19]free content buf [15:07:19]Sock 7.Close socket [15:07:19]Sock 7.Thread stoped [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:15]accept exits with 9 [15:08:15]New connection [15:08:15]New thread 3066695012 created [15:08:15]Thread 3066551652 joined [15:08:15]Waiting for new connection... [15:08:15] Sock 9.Parse request [15:08:15]Sock 9.Check first char [15:08:15]Sock 9.First char is OK [15:08:15]request: POST /json_proto HTTP/1.0 [15:08:15]Method: POST [15:08:15]URL: /json_proto [15:08:15]Method is POST - this is cgi request [15:08:15]url: /json_proto [15:08:15]query_string will be loaded in cgi processing [15:08:15]execute_cgi json_proto POST (null) [15:08:15]execute_cgi path=json_proto method=POST [15:08:15]POST find Content-Length [15:08:15]Host: 172.17.96.67:8080 [15:08:15]Content-Length: 677 [15:08:15]Content-Type: application/json [15:08:15] [15:08:15]POST finish read [15:08:15]Found Content-Length = 677 [15:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:08:15]execute_script... [15:08: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)245919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:08:15]POST & json_proto [15:08:15]process_json_proto [15:08:15]json parsed OK: [15:08:15]protocol is kg_v1.0 [15:08:15]action value=close_receipt [15:08:15]process_action close_receipt [15:08:15]cmd_close_receipt [15:08:15]MH_GetDate [15:08:15]Write to MH i2c: F0 00 00 3F 0C 3A [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: F0 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: F0 09 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: F0 09 00 3F 0C 00 E1 4B 22 67 47 6C 1F 67 31 [15:08:15]GetLastDocTimeStamp 1730300836 [15:08:15]current date 1730300897 [15:08:15]FM_GetShiftState [15:08:15]SAM_PROTO_GetShiftState [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 13 01 00 [15:08:15]Write to MH i2c: E2 08 00 40 0C 80 13 01 00 00 00 00 00 C9 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 0E 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 0E 00 40 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A1 [15:08:15]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:08:15]wFMCommunicate OK [15:08:15]SAM_PROTO_GetShiftState done [15:08:15]FM_GetShiftState done [15:08:15]opened in 1730246605 [15:08:15]opened+sec_in_day 1730333005 [15:08:15]quantity*price = 20003 [15:08:15]sum+1 = 20004 [15:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 183 30.10.2024 15:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118123 ФПД: 147481373121080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T150817&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118123&fm=147481373121080&tin=02508201610067®Number=0000000000091782&sum=20000 [15:08:17]StoreToDocumentArchive [15:08:17]shift 545 fd 118123 [15:08:17]save to /storage/0545/doc_00118123 [15:08:17]save last doc name /storage/0545/doc_00118123 to /storage/kkm_last_doc_name [15:08:17]save OK [15:08:17]Clear old archive folders... [15:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:17]tlvbuf is 001261C0 [15:08:17]SAM_PROTO_ClearQueue [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 09 00 00 [15:08:17]Write to MH i2c: E2 08 00 4D 0C 80 09 00 00 00 00 00 00 CB [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [15:08:17]RAPDU: 90 00 [15:08:17]wFMCommunicate OK [15:08:17]SAM_PROTO_ClearQueue done [15:08:17]KKMCreateOFDPacket [15:08:17]OFDProtocolAddRootSTLVToBuf [15:08:17]FM_MakeSignedData [15:08:17]FM_MakeSignedData [15:08:17]SAM_PROTO_SignData [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 0D 01 02 [15:08:17]Write to MH i2c: E2 08 00 4E 0C 80 0D 01 02 00 00 00 00 D3 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 4E 0C 00 90 00 CE [15:08:17]RAPDU: 90 00 [15:08:17]wFMCommunicate OK [15:08:17]wFMCommunicate request_size=255 [15:08:17]MH_SAM_APDU [15:08: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 32 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 B7 00 00 00 F4 03 04 00 E1 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6B CD 01 00 35 04 06 00 86 [15:08:17]Write to MH i2c: E2 02 01 4F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B7 00 00 00 F4 03 04 00 E1 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6B CD 01 00 35 04 06 00 86 00 00 75 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 4F 0C 00 90 00 CF [15:08:17]RAPDU: 90 00 [15:08:17]wFMCommunicate OK [15:08:17]wFMCommunicate request_size=10 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 0D 02 02 05 22 2E DB 1A 38 [15:08:17]Write to MH i2c: E2 0D 00 50 0C 80 0D 02 02 05 00 22 2E DB 1A 38 00 00 5D [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [15:08:17]RAPDU: 90 00 [15:08:17]wFMCommunicate OK [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 0D 03 02 [15:08:17]Write to MH i2c: E2 08 00 51 0C 80 0D 03 02 00 00 00 00 D8 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 0B 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 0B 00 51 0C 00 DE EB A5 04 38 13 25 1B 90 00 D6 [15:08:17]RAPDU: DE EB A5 04 38 13 25 1B 90 00 [15:08:17]wFMCommunicate OK [15:08:17]SAM_PROTO_SignData done [15:08:17]FM_MakeSignedData done [15:08:17]CreateOFDProtocolMessage [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 11 00 00 [15:08:17]Write to MH i2c: E2 08 00 52 0C 80 11 00 00 00 00 00 00 D8 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 17 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 17 00 52 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2F [15:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:08:17]wFMCommunicate OK [15:08:17]CreateOFDProtocolMessage done [15:08:17]OFDSenderStorePacket 118123 [15:08:17]StoreOFDPacket docnum=118123 [15:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B0 3F 07 01 12 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B7 00 00 00 F4 03 04 00 E1 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6B CD 01 00 35 04 06 00 86 22 2E DB 1A 38 DE EB A5 04 38 13 25 1B [15:08:17]CheckFolder [15:08:17]dirname=/storage/ofd_packets [15:08:17]CheckFolder done [15:08:17]ProducePacketName [15:08:17]name=ofd_packets/00118123 [15:08:17]NVStorageSaveData ofd_packets/00118123 [15:08:17]File name is /storage/ofd_packets/00118123 [15:08:17]Write 301 bytes [15:08:17]NVStorageSaveData done [15:08:17]OFDSenderStorePacket done [15:08:17]KKMCreateOFDPacket done [15:08:17]NVStorageSaveData kkm_last_timestamp [15:08:17]File name is /storage/kkm_last_timestamp [15:08:17]Write 4 bytes [15:08:17]NVStorageSaveData done [15:08:17]ExternCall_PrintAddStr [15:08:17]wPrintStart [15:08:17]Write to MH i2c: 01 00 00 53 0C 5F [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: 01 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: 01 07 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 FF 0F 74 [15:08:17]RasterBufferAndPrint [15:08:17]line Счет N : (1)245919 [15:08:17]line ИНН: 02508201610067 [15:08:17]line Контрольно-Кассовый Чек [15:08:17]line ПРОДАЖА [15:08:17]line ТРК (МРК, ГНК) : 11 [15:08:17]line Товар: 2710124130 [15:08:17]line Аи-92-К-2 [15:08:17]line 2.990 * 66.90 [15:08:17]line = 200.03 [15:08:17]line НДС 12% НСП 1% [15:08:17]line > о реализуемом товаре [15:08:17]line ОКРУГЛЕНИЕ: -0.03 [15:08:17]line ИТОГО: 200.00 [15:08:17]line Внесено: 200.00 [15:08:17]line СДАЧА: 0.00 [15:08:17]line НСП 1% : 1.77 [15:08:17]line НДС 12% : 21.24 [15:08:17]line Наличными: 200.00 [15:08:17]line Безнал.: 0.00 [15:08:17]line Место: АЗС № 173 "Партнер Нефть" [15:08:17]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:08:17]line СНО: Общий режим [15:08:17]line Чек 183 30.10.2024 15:08 [15:08:17]line Смена: 545 ФФД: 1.0 [15:08:17]line ЗНМ: 0300000115 [15:08:17]line РНМ: 0000000000091782 [15:08:17]line Версия ККМ: 001 [15:08:17]line ФМ: 0000000000871767 [15:08:17]line ФД: 118123 [15:08:17]line ФПД: 147481373121080 [15:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T150817&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118123&fm=147481373121080&tin=02508201610067®Number=0000000000091782&sum=20000 [15:08:17]OFD Sender: Processing packet 118123 [packets to send 77, broken 76] [15:08:17]ProducePacketName [15:08:17]name=ofd_packets/00118123 [15:08:17]OFD Sender: To server: pG, [15:08:17]CommunicateWithHost lk.salyk.kg:30040 [15:08:17]ConnectInit lk.salyk.kg [15:08:17]written 0, free lines is 4095 [15:08:18]Connected sock=10 [15:08: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 36 37 0F 01 00 00 B0 3F 07 01 12 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B7 00 00 00 F4 03 04 00 E1 4B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6B CD 01 00 35 04 06 00 86 22 2E DB 1A 38 DE EB A5 04 38 13 25 1B [15:08: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 36 37 4F 00 00 00 99 D6 47 00 5C 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 36 37 10 04 04 00 6B CD 01 00 F4 03 04 00 98 F7 21 67 B6 04 01 00 00 91 C4 4E D5 1D 5A B0 B2 [15:08:18]CommunicateWithHost err = 0 [15:08:18]CheckOFDResponse [15:08:18]1017 (14) - 77093643461234 [15:08:18]1041 (16) - 0000000000871767 [15:08:18]1040 (4) - 118123 [15:08:18]1012 (4) - 30.10.2024 09:08 [15:08:18]1206 (1) - 0 [15:08:18]OFD Sender: Remove packet 118123 [15:08:18]ProducePacketName [15:08:18]name=ofd_packets/00118123 [15:08:18]NVStorageDeleteData [15:08:18]Write to MH i2c: 01 00 00 7D 0C 89 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 7D 0C 00 00 00 00 00 B1 0C 4D [15:08:18]RasterBufferAndPrint [15:08:18]line [15:08:18]line [15:08:18]line [15:08:18]line [15:08:18]line [15:08:18]written 0, free lines is 3255 [15:08:18]MH_Cut [15:08:18]Write to MH i2c: D1 01 00 84 0C 01 62 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: D1 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: D1 01 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: D1 01 00 84 0C 00 61 [15:08:18]Write to MH i2c: 01 00 00 85 0C 91 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]OFD Sender: No OFD packet to send [15:08:19]*** Cut start [15:08:19]*** Purtial cut [15:08:19]*** Stage 1: CUTSNS_PIN = 1 [15:08:19]Read from MH i2c: 01 [15:08:19]MH_I2C_Read... [15:08:19]*** Stop cut motor [15:08:19]*** Cut end [15:08:19]Read from MH i2c: 01 07 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 07 00 85 0C 00 00 00 00 00 FF 0F A6 [15:08:19]process_action close_receipt done [15:08:19]requested_data is exist [15:08:19]produce_requested_data [15:08:19]requested_item fm.sn is exist - process it [15:08:19]wFMCommunicate request_size=4 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 11 00 00 [15:08:19]Write to MH i2c: E2 08 00 86 0C 80 11 00 00 00 00 00 00 0C [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 17 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 17 00 86 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 63 [15:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:08:19]wFMCommunicate OK [15:08:19]requested_item fd.num is exist - process it [15:08:19]SAM_PROTO_GetFieldsCounters [15:08:19]wFMCommunicate request_size=4 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 13 00 00 [15:08:19]Write to MH i2c: E2 08 00 87 0C 80 13 00 00 00 00 00 00 0F [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 62 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 62 00 87 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [15:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:19]wFMCommunicate OK [15:08:19]SAM_PROTO_GetFieldsCounters done [15:08:19]requested_item shift.num is exist - process it [15:08:19]requested_item shift.opened is exist - process it [15:08:19]req_shift_opened [15:08:19]FM_GetShiftState [15:08:19]SAM_PROTO_GetShiftState [15:08:19]wFMCommunicate request_size=4 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 13 01 00 [15:08:19]Write to MH i2c: E2 08 00 88 0C 80 13 01 00 00 00 00 00 11 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:19]Read from MH i2c: E2 0E 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 0E 00 88 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E9 [15:08:19]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:08:19]wFMCommunicate OK [15:08:19]SAM_PROTO_GetShiftState done [15:08:19]FM_GetShiftState done [15:08:19]req_shift_opened done [15:08:19]requested_item shift.open_date is exist - process it [15:08:19]req_shift_open_date [15:08:19]req_shift_open_date done [15:08:19]produce_requested_data done [15:08:19]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118123,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:08:19]process_action_free close_receipt [15:08:19]json_value_free [15:08:19]json_value_free done [15:08:19]process_json_proto returns [15:08:19]Send response to host [15:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118123,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:08:19]free response buf [15:08:19]execute_script done [15:08:19]execute_script returns [15:08:19]free content buf [15:08:19]Sock 9.Close socket [15:08:19]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:14]accept exits with 7 [15:16:14]New connection [15:16:14]New thread 3066551652 created [15:16:14]Thread 3066695012 joined [15:16:14]Waiting for new connection... [15:16:14] Sock 7.Parse request [15:16:14]Sock 7.Check first char [15:16:14]Sock 7.First char is OK [15:16:14]request: POST /json_proto HTTP/1.0 [15:16:14]Method: POST [15:16:14]URL: /json_proto [15:16:14]Method is POST - this is cgi request [15:16:14]url: /json_proto [15:16:14]query_string will be loaded in cgi processing [15:16:14]execute_cgi json_proto POST (null) [15:16:14]execute_cgi path=json_proto method=POST [15:16:14]POST find Content-Length [15:16:14]Host: 172.17.96.67:8080 [15:16:14]Content-Length: 677 [15:16:14]Content-Type: application/json [15:16:14] [15:16:14]POST finish read [15:16:14]Found Content-Length = 677 [15:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:14]execute_script... [15:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:14]POST & json_proto [15:16:14]process_json_proto [15:16:14]json parsed OK: [15:16:14]protocol is kg_v1.0 [15:16:14]action value=close_receipt [15:16:14]process_action close_receipt [15:16:14]cmd_close_receipt [15:16:14]MH_GetDate [15:16:14]Write to MH i2c: F0 00 00 89 0C 84 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: F0 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: F0 09 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: F0 09 00 89 0C 00 BF 4D 22 67 47 6C 1F 67 5B [15:16:14]GetLastDocTimeStamp 1730300897 [15:16:14]current date 1730301375 [15:16:14]FM_GetShiftState [15:16:14]SAM_PROTO_GetShiftState [15:16:14]wFMCommunicate request_size=4 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 13 01 00 [15:16:14]Write to MH i2c: E2 08 00 8A 0C 80 13 01 00 00 00 00 00 13 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0E 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0E 00 8A 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EB [15:16:14]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:16:14]wFMCommunicate OK [15:16:14]SAM_PROTO_GetShiftState done [15:16:14]FM_GetShiftState done [15:16:14]opened in 1730246605 [15:16:14]opened+sec_in_day 1730333005 [15:16:14]quantity*price = 50041 [15:16:14]sum+1 = 50042 [15:16: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 184 30.10.2024 15:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118124 ФПД: 54987496302930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151615&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118124&fm=54987496302930&tin=02508201610067®Number=0000000000091782&sum=50000 [15:16:15]StoreToDocumentArchive [15:16:15]shift 545 fd 118124 [15:16:15]save to /storage/0545/doc_00118124 [15:16:15]save last doc name /storage/0545/doc_00118124 to /storage/kkm_last_doc_name [15:16:15]save OK [15:16:15]Clear old archive folders... [15:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:15]tlvbuf is 000E58B0 [15:16:15]SAM_PROTO_ClearQueue [15:16:15]wFMCommunicate request_size=4 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 09 00 00 [15:16:15]Write to MH i2c: E2 08 00 97 0C 80 09 00 00 00 00 00 00 15 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:15]Read from MH i2c: E2 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 97 0C 00 90 00 17 [15:16:15]RAPDU: 90 00 [15:16:15]wFMCommunicate OK [15:16:15]SAM_PROTO_ClearQueue done [15:16:15]KKMCreateOFDPacket [15:16:15]OFDProtocolAddRootSTLVToBuf [15:16:15]FM_MakeSignedData [15:16:15]FM_MakeSignedData [15:16:15]SAM_PROTO_SignData [15:16:15]wFMCommunicate request_size=4 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 0D 01 02 [15:16:15]Write to MH i2c: E2 08 00 98 0C 80 0D 01 02 00 00 00 00 1D [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:15]Read from MH i2c: E2 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [15:16:15]RAPDU: 90 00 [15:16:15]wFMCommunicate OK [15:16:15]wFMCommunicate request_size=255 [15:16:15]MH_SAM_APDU [15:16: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 32 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 B8 00 00 00 F4 03 04 00 BF 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6C CD 01 00 35 04 06 00 32 [15:16:15]Write to MH i2c: E2 02 01 99 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B8 00 00 00 F4 03 04 00 BF 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6C CD 01 00 35 04 06 00 32 00 00 8B [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 03 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [15:16:16]RAPDU: 90 00 [15:16:16]wFMCommunicate OK [15:16:16]wFMCommunicate request_size=10 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 0D 02 02 05 02 C6 2F 29 52 [15:16:16]Write to MH i2c: E2 0D 00 9A 0C 80 0D 02 02 05 00 02 C6 2F 29 52 00 00 9C [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 03 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [15:16:16]RAPDU: 90 00 [15:16:16]wFMCommunicate OK [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 0D 03 02 [15:16:16]Write to MH i2c: E2 08 00 9B 0C 80 0D 03 02 00 00 00 00 22 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0B 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0B 00 9B 0C 00 73 A0 6C 10 1E 13 B7 AD 90 00 47 [15:16:16]RAPDU: 73 A0 6C 10 1E 13 B7 AD 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_SignData done [15:16:16]FM_MakeSignedData done [15:16:16]CreateOFDProtocolMessage [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 11 00 00 [15:16:16]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 17 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 79 [15:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:16:16]wFMCommunicate OK [15:16:16]CreateOFDProtocolMessage done [15:16:16]OFDSenderStorePacket 118124 [15:16:16]StoreOFDPacket docnum=118124 [15:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 12 3E 07 01 2F 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 32 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 B8 00 00 00 F4 03 04 00 BF 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6C CD 01 00 35 04 06 00 32 02 C6 2F 29 52 73 A0 6C 10 1E 13 B7 AD [15:16:16]CheckFolder [15:16:16]dirname=/storage/ofd_packets [15:16:16]CheckFolder done [15:16:16]ProducePacketName [15:16:16]name=ofd_packets/00118124 [15:16:16]NVStorageSaveData ofd_packets/00118124 [15:16:16]File name is /storage/ofd_packets/00118124 [15:16:16]Write 301 bytes [15:16:16]NVStorageSaveData done [15:16:16]OFDSenderStorePacket done [15:16:16]KKMCreateOFDPacket done [15:16:16]NVStorageSaveData kkm_last_timestamp [15:16:16]File name is /storage/kkm_last_timestamp [15:16:16]Write 4 bytes [15:16:16]NVStorageSaveData done [15:16:16]ExternCall_PrintAddStr [15:16:16]wPrintStart [15:16:16]Write to MH i2c: 01 00 00 9D 0C A9 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 07 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 07 00 9D 0C 00 00 00 00 00 FF 0F BE [15:16:16]RasterBufferAndPrint [15:16:16]line Счет N : (1)245920 [15:16:16]line ИНН: 02508201610067 [15:16:16]line Контрольно-Кассовый Чек [15:16:16]line ПРОДАЖА [15:16:16]line ТРК (МРК, ГНК) : 21 [15:16:16]line Товар: 2710124130 [15:16:16]line Аи-92-К-2 [15:16:16]line 7.480 * 66.90 [15:16:16]line = 500.41 [15:16:16]line НДС 12% НСП 1% [15:16:16]line > о реализуемом товаре [15:16:16]line ОКРУГЛЕНИЕ: -0.41 [15:16:16]line ИТОГО: 500.00 [15:16:16]line Внесено: 500.00 [15:16:16]line СДАЧА: 0.00 [15:16:16]line НСП 1% : 4.43 [15:16:16]line НДС 12% : 53.14 [15:16:16]line Наличными: 500.00 [15:16:16]line Безнал.: 0.00 [15:16:16]line Место: АЗС № 173 "Партнер Нефть" [15:16:16]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:16:16]line СНО: Общий режим [15:16:16]line Чек 184 30.10.2024 15:16 [15:16:16]line Смена: 545 ФФД: 1.0 [15:16:16]line ЗНМ: 0300000115 [15:16:16]line РНМ: 0000000000091782 [15:16:16]line Версия ККМ: 001 [15:16:16]line ФМ: 0000000000871767 [15:16:16]line ФД: 118124 [15:16:16]line ФПД: 54987496302930 [15:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151615&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118124&fm=54987496302930&tin=02508201610067®Number=0000000000091782&sum=50000 [15:16:16]written 0, free lines is 4095 [15:16:16]OFD Sender: Processing packet 118124 [packets to send 77, broken 76] [15:16:16]ProducePacketName [15:16:16]name=ofd_packets/00118124 [15:16:16]OFD Sender: To server: pG, [15:16:16]CommunicateWithHost lk.salyk.kg:30040 [15:16:16]ConnectInit lk.salyk.kg [15:16:16]Connected sock=10 [15:16: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 36 37 0F 01 00 00 12 3E 07 01 2F 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 32 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 B8 00 00 00 F4 03 04 00 BF 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6C CD 01 00 35 04 06 00 32 02 C6 2F 29 52 73 A0 6C 10 1E 13 B7 AD [15:16: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 36 37 4F 00 00 00 7B 15 47 00 4B 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6C CD 01 00 F4 03 04 00 77 F9 21 67 B6 04 01 00 00 BC 67 96 1A 4D 77 62 B9 [15:16:16]CommunicateWithHost err = 0 [15:16:16]CheckOFDResponse [15:16:16]1017 (14) - 77093643461234 [15:16:16]1041 (16) - 0000000000871767 [15:16:16]1040 (4) - 118124 [15:16:16]1012 (4) - 30.10.2024 09:16 [15:16:16]1206 (1) - 0 [15:16:16]OFD Sender: Remove packet 118124 [15:16:16]ProducePacketName [15:16:16]name=ofd_packets/00118124 [15:16:16]NVStorageDeleteData [15:16:17]Write to MH i2c: 01 00 00 C7 0C D3 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 07 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 07 00 C7 0C 00 00 00 00 00 B9 0C 9F [15:16:17]RasterBufferAndPrint [15:16:17]line [15:16:17]line [15:16:17]line [15:16:17]line [15:16:17]line [15:16:17]written 0, free lines is 3264 [15:16:17]MH_Cut [15:16:17]Write to MH i2c: D1 01 00 CE 0C 01 AC [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: D1 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: D1 01 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: D1 01 00 CE 0C 00 AB [15:16:17]Write to MH i2c: 01 00 00 CF 0C DB [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]OFD Sender: No OFD packet to send [15:16:17]*** Cut start [15:16:17]*** Purtial cut [15:16:17]*** Stage 1: CUTSNS_PIN = 1 [15:16:18]Read from MH i2c: 01 [15:16:18]MH_I2C_Read... [15:16:18]*** Stop cut motor [15:16:18]*** Cut end [15:16:18]Read from MH i2c: 01 07 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 CF 0C 00 00 00 00 00 FF 0F F0 [15:16:18]process_action close_receipt done [15:16:18]requested_data is exist [15:16:18]produce_requested_data [15:16:18]requested_item fm.sn is exist - process it [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 11 00 00 [15:16:18]Write to MH i2c: E2 08 00 D0 0C 80 11 00 00 00 00 00 00 56 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 17 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 17 00 D0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AD [15:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:16:18]wFMCommunicate OK [15:16:18]requested_item fd.num is exist - process it [15:16:18]SAM_PROTO_GetFieldsCounters [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 13 00 00 [15:16:18]Write to MH i2c: E2 08 00 D1 0C 80 13 00 00 00 00 00 00 59 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 62 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 62 00 D1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [15:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_GetFieldsCounters done [15:16:18]requested_item shift.num is exist - process it [15:16:18]requested_item shift.opened is exist - process it [15:16:18]req_shift_opened [15:16:18]FM_GetShiftState [15:16:18]SAM_PROTO_GetShiftState [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 13 01 00 [15:16:18]Write to MH i2c: E2 08 00 D2 0C 80 13 01 00 00 00 00 00 5B [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0E 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0E 00 D2 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 33 [15:16:18]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_GetShiftState done [15:16:18]FM_GetShiftState done [15:16:18]req_shift_opened done [15:16:18]requested_item shift.open_date is exist - process it [15:16:18]req_shift_open_date [15:16:18]req_shift_open_date done [15:16:18]produce_requested_data done [15:16:18]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118124,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:16:18]process_action_free close_receipt [15:16:18]json_value_free [15:16:18]json_value_free done [15:16:18]process_json_proto returns [15:16:18]Send response to host [15:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118124,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:16:18]free response buf [15:16:18]execute_script done [15:16:18]execute_script returns [15:16:18]free content buf [15:16:18]Sock 7.Close socket [15:16:18]Sock 7.Thread stoped [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:45]accept exits with 9 [15:16:45]New connection [15:16:45]New thread 3066695012 created [15:16:45]Thread 3066551652 joined [15:16:45]Waiting for new connection... [15:16:45] Sock 9.Parse request [15:16:45]Sock 9.Check first char [15:16:45]Sock 9.First char is OK [15:16:45]request: POST /json_proto HTTP/1.0 [15:16:45]Method: POST [15:16:45]URL: /json_proto [15:16:45]Method is POST - this is cgi request [15:16:45]url: /json_proto [15:16:45]query_string will be loaded in cgi processing [15:16:45]execute_cgi json_proto POST (null) [15:16:45]execute_cgi path=json_proto method=POST [15:16:45]POST find Content-Length [15:16:45]Host: 172.17.96.67:8080 [15:16:45]Content-Length: 679 [15:16:45]Content-Type: application/json [15:16:45] [15:16:45]POST finish read [15:16:45]Found Content-Length = 679 [15:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:16:45]execute_script... [15:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:16:45]POST & json_proto [15:16:45]process_json_proto [15:16:45]json parsed OK: [15:16:45]protocol is kg_v1.0 [15:16:45]action value=close_receipt [15:16:45]process_action close_receipt [15:16:45]cmd_close_receipt [15:16:45]MH_GetDate [15:16:45]Write to MH i2c: F0 00 00 D3 0C CE [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 D3 0C 00 DE 4D 22 67 47 6C 1F 67 C4 [15:16:45]GetLastDocTimeStamp 1730301375 [15:16:45]current date 1730301406 [15:16:45]FM_GetShiftState [15:16:45]SAM_PROTO_GetShiftState [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 13 01 00 [15:16:45]Write to MH i2c: E2 08 00 D4 0C 80 13 01 00 00 00 00 00 5D [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 D4 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 35 [15:16:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:16:45]wFMCommunicate OK [15:16:45]SAM_PROTO_GetShiftState done [15:16:45]FM_GetShiftState done [15:16:45]opened in 1730246605 [15:16:45]opened+sec_in_day 1730333005 [15:16:45]quantity*price = 100050 [15:16:45]sum+1 = 100052 [15:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 185 30.10.2024 15:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118125 ФПД: 97651963254379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151646&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118125&fm=97651963254379&tin=02508201610067®Number=0000000000091782&sum=100000 [15:16:46]StoreToDocumentArchive [15:16:46]shift 545 fd 118125 [15:16:46]save to /storage/0545/doc_00118125 [15:16:46]save last doc name /storage/0545/doc_00118125 to /storage/kkm_last_doc_name [15:16:46]save OK [15:16:46]Clear old archive folders... [15:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:46]tlvbuf is 000EC4E0 [15:16:46]SAM_PROTO_ClearQueue [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 09 00 00 [15:16:46]Write to MH i2c: E2 08 00 E1 0C 80 09 00 00 00 00 00 00 5F [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 E1 0C 00 90 00 61 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_ClearQueue done [15:16:46]KKMCreateOFDPacket [15:16:46]OFDProtocolAddRootSTLVToBuf [15:16:46]FM_MakeSignedData [15:16:46]FM_MakeSignedData [15:16:46]SAM_PROTO_SignData [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 01 02 [15:16:46]Write to MH i2c: E2 08 00 E2 0C 80 0D 01 02 00 00 00 00 67 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=255 [15:16:46]MH_SAM_APDU [15:16: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 32 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 B9 00 00 00 F4 03 04 00 DE 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6D CD 01 00 35 04 06 00 58 D0 5E 94 [15:16:46]Write to MH i2c: E2 02 01 E3 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 DE 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6D CD 01 00 35 04 06 00 58 D0 5E 94 00 00 D4 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=7 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 02 02 02 D6 6B [15:16:46]Write to MH i2c: E2 0A 00 E4 0C 80 0D 02 02 02 00 D6 6B 00 00 AF [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 03 02 [15:16:46]Write to MH i2c: E2 08 00 E5 0C 80 0D 03 02 00 00 00 00 6C [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0B 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0B 00 E5 0C 00 DF 01 F4 30 31 51 DA D2 90 00 9F [15:16:46]RAPDU: DF 01 F4 30 31 51 DA D2 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_SignData done [15:16:46]FM_MakeSignedData done [15:16:46]CreateOFDProtocolMessage [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 11 00 00 [15:16:46]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 17 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C3 [15:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:16:46]wFMCommunicate OK [15:16:46]CreateOFDProtocolMessage done [15:16:46]OFDSenderStorePacket 118125 [15:16:46]StoreOFDPacket docnum=118125 [15:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 13 77 04 01 1A B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 DE 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6D CD 01 00 35 04 06 00 58 D0 5E 94 D6 6B DF 01 F4 30 31 51 DA D2 [15:16:46]CheckFolder [15:16:46]dirname=/storage/ofd_packets [15:16:46]CheckFolder done [15:16:46]ProducePacketName [15:16:46]name=ofd_packets/00118125 [15:16:46]NVStorageSaveData ofd_packets/00118125 [15:16:46]File name is /storage/ofd_packets/00118125 [15:16:46]Write 298 bytes [15:16:46]NVStorageSaveData done [15:16:46]OFDSenderStorePacket done [15:16:46]KKMCreateOFDPacket done [15:16:46]NVStorageSaveData kkm_last_timestamp [15:16:46]File name is /storage/kkm_last_timestamp [15:16:46]Write 4 bytes [15:16:46]NVStorageSaveData done [15:16:46]ExternCall_PrintAddStr [15:16:46]wPrintStart [15:16:46]Write to MH i2c: 01 00 00 E7 0C F3 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 E7 0C 00 00 00 00 00 FF 0F 08 [15:16:46]RasterBufferAndPrint [15:16:46]line Счет N : (1)245921 [15:16:46]line ИНН: 02508201610067 [15:16:46]line Контрольно-Кассовый Чек [15:16:46]line ПРОДАЖА [15:16:46]line ТРК (МРК, ГНК) : 13 [15:16:46]line Товар: 2710194210 [15:16:46]line ДТ-К-2 [15:16:46]line 13.130 * 76.20 [15:16:46]line = 1000.51 [15:16:46]line НДС 12% НСП 1% [15:16:46]line > о реализуемом товаре [15:16:46]line ОКРУГЛЕНИЕ: -0.51 [15:16:46]line ИТОГО: 1000.00 [15:16:46]line Внесено: 1000.00 [15:16:46]line СДАЧА: 0.00 [15:16:46]line НСП 1% : 8.85 [15:16:46]line НДС 12% : 106.25 [15:16:46]line Наличными: 1000.00 [15:16:46]line Безнал.: 0.00 [15:16:46]line Место: АЗС № 173 "Партнер Нефть" [15:16:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:16:46]line СНО: Общий режим [15:16:46]line Чек 185 30.10.2024 15:16 [15:16:46]line Смена: 545 ФФД: 1.0 [15:16:46]line ЗНМ: 0300000115 [15:16:46]line РНМ: 0000000000091782 [15:16:46]line Версия ККМ: 001 [15:16:46]line ФМ: 0000000000871767 [15:16:46]line ФД: 118125 [15:16:46]line ФПД: 97651963254379 [15:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151646&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118125&fm=97651963254379&tin=02508201610067®Number=0000000000091782&sum=100000 [15:16:47]OFD Sender: Processing packet 118125 [packets to send 77, broken 76] [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00118125 [15:16:47]OFD Sender: To server: pG, [15:16:47]CommunicateWithHost lk.salyk.kg:30040 [15:16:47]ConnectInit lk.salyk.kg [15:16:47]written 0, free lines is 4095 [15:16:47]Connected sock=10 [15:16: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 36 37 0C 01 00 00 13 77 04 01 1A B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 DE 4D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6D CD 01 00 35 04 06 00 58 D0 5E 94 D6 6B DF 01 F4 30 31 51 DA D2 [15:16: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 36 37 4F 00 00 00 EC 3A 47 00 19 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6D CD 01 00 F4 03 04 00 95 F9 21 67 B6 04 01 00 00 9A F9 FF 02 E6 31 EF 1B [15:16:47]CommunicateWithHost err = 0 [15:16:47]CheckOFDResponse [15:16:47]1017 (14) - 77093643461234 [15:16:47]1041 (16) - 0000000000871767 [15:16:47]1040 (4) - 118125 [15:16:47]1012 (4) - 30.10.2024 09:17 [15:16:47]1206 (1) - 0 [15:16:47]OFD Sender: Remove packet 118125 [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00118125 [15:16:47]NVStorageDeleteData [15:16:47]Write to MH i2c: 01 00 00 11 0D 1E [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 11 0D 00 00 00 00 00 B7 0C E8 [15:16:47]RasterBufferAndPrint [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]written 0, free lines is 3262 [15:16:47]MH_Cut [15:16:47]Write to MH i2c: D1 01 00 18 0D 01 F7 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: D1 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: D1 01 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: D1 01 00 18 0D 00 F6 [15:16:47]Write to MH i2c: 01 00 00 19 0D 26 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]OFD Sender: No OFD packet to send [15:16:48]*** Cut start [15:16:48]*** Purtial cut [15:16:48]*** Stage 1: CUTSNS_PIN = 1 [15:16:48]Read from MH i2c: 01 [15:16:48]MH_I2C_Read... [15:16:48]*** Stop cut motor [15:16:48]*** Cut end [15:16:48]Read from MH i2c: 01 07 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: 01 07 00 19 0D 00 00 00 00 00 FF 0F 3B [15:16:48]process_action close_receipt done [15:16:48]requested_data is exist [15:16:48]produce_requested_data [15:16:48]requested_item fm.sn is exist - process it [15:16:48]wFMCommunicate request_size=4 [15:16:48]MH_SAM_APDU [15:16:48]CAPDU: 80 11 00 00 [15:16:48]Write to MH i2c: E2 08 00 1A 0D 80 11 00 00 00 00 00 00 A1 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 17 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 17 00 1A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F8 [15:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:16:48]wFMCommunicate OK [15:16:48]requested_item fd.num is exist - process it [15:16:48]SAM_PROTO_GetFieldsCounters [15:16:48]wFMCommunicate request_size=4 [15:16:48]MH_SAM_APDU [15:16:48]CAPDU: 80 13 00 00 [15:16:48]Write to MH i2c: E2 08 00 1B 0D 80 13 00 00 00 00 00 00 A4 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 62 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 62 00 1B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [15:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:48]wFMCommunicate OK [15:16:48]SAM_PROTO_GetFieldsCounters done [15:16:48]requested_item shift.num is exist - process it [15:16:48]requested_item shift.opened is exist - process it [15:16:48]req_shift_opened [15:16:48]FM_GetShiftState [15:16:48]SAM_PROTO_GetShiftState [15:16:48]wFMCommunicate request_size=4 [15:16:48]MH_SAM_APDU [15:16:48]CAPDU: 80 13 01 00 [15:16:48]Write to MH i2c: E2 08 00 1C 0D 80 13 01 00 00 00 00 00 A6 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 1C 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 7E [15:16:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:16:48]wFMCommunicate OK [15:16:48]SAM_PROTO_GetShiftState done [15:16:48]FM_GetShiftState done [15:16:48]req_shift_opened done [15:16:48]requested_item shift.open_date is exist - process it [15:16:48]req_shift_open_date [15:16:48]req_shift_open_date done [15:16:48]produce_requested_data done [15:16:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118125,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:16:48]process_action_free close_receipt [15:16:48]json_value_free [15:16:48]json_value_free done [15:16:48]process_json_proto returns [15:16:48]Send response to host [15:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118125,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:16:48]free response buf [15:16:48]execute_script done [15:16:48]execute_script returns [15:16:48]free content buf [15:16:48]Sock 9.Close socket [15:16:48]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:42]accept exits with 7 [15:21:42]New connection [15:21:42]New thread 3066551652 created [15:21:42]Thread 3066695012 joined [15:21:42]Waiting for new connection... [15:21:42] Sock 7.Parse request [15:21:42]Sock 7.Check first char [15:21:42]Sock 7.First char is OK [15:21:42]request: POST /json_proto HTTP/1.0 [15:21:42]Method: POST [15:21:42]URL: /json_proto [15:21:42]Method is POST - this is cgi request [15:21:42]url: /json_proto [15:21:42]query_string will be loaded in cgi processing [15:21:42]execute_cgi json_proto POST (null) [15:21:42]execute_cgi path=json_proto method=POST [15:21:42]POST find Content-Length [15:21:42]Host: 172.17.96.67:8080 [15:21:42]Content-Length: 677 [15:21:42]Content-Type: application/json [15:21:42] [15:21:42]POST finish read [15:21:42]Found Content-Length = 677 [15:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:42]execute_script... [15:21: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)245922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:42]POST & json_proto [15:21:42]process_json_proto [15:21:42]json parsed OK: [15:21:42]protocol is kg_v1.0 [15:21:42]action value=close_receipt [15:21:42]process_action close_receipt [15:21:42]cmd_close_receipt [15:21:42]MH_GetDate [15:21:42]Write to MH i2c: F0 00 00 1D 0D 19 [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: F0 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: F0 09 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: F0 09 00 1D 0D 00 07 4F 22 67 47 6C 1F 67 3A [15:21:42]GetLastDocTimeStamp 1730301406 [15:21:42]current date 1730301703 [15:21:42]FM_GetShiftState [15:21:42]SAM_PROTO_GetShiftState [15:21:42]wFMCommunicate request_size=4 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 13 01 00 [15:21:42]Write to MH i2c: E2 08 00 1E 0D 80 13 01 00 00 00 00 00 A8 [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 0E 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 0E 00 1E 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 80 [15:21:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:21:42]wFMCommunicate OK [15:21:42]SAM_PROTO_GetShiftState done [15:21:42]FM_GetShiftState done [15:21:42]opened in 1730246605 [15:21:42]opened+sec_in_day 1730333005 [15:21:42]quantity*price = 50041 [15:21:42]sum+1 = 50042 [15:21:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 186 30.10.2024 15:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118126 ФПД: 247858694955013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152143&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118126&fm=247858694955013&tin=02508201610067®Number=0000000000091782&sum=50000 [15:21:43]StoreToDocumentArchive [15:21:43]shift 545 fd 118126 [15:21:43]save to /storage/0545/doc_00118126 [15:21:43]save last doc name /storage/0545/doc_00118126 to /storage/kkm_last_doc_name [15:21:43]save OK [15:21:43]Clear old archive folders... [15:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:43]tlvbuf is 0011E920 [15:21:43]SAM_PROTO_ClearQueue [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 09 00 00 [15:21:43]Write to MH i2c: E2 08 00 2B 0D 80 09 00 00 00 00 00 00 AA [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [15:21:43]RAPDU: 90 00 [15:21:43]wFMCommunicate OK [15:21:43]SAM_PROTO_ClearQueue done [15:21:43]KKMCreateOFDPacket [15:21:43]OFDProtocolAddRootSTLVToBuf [15:21:43]FM_MakeSignedData [15:21:43]FM_MakeSignedData [15:21:43]SAM_PROTO_SignData [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 0D 01 02 [15:21:43]Write to MH i2c: E2 08 00 2C 0D 80 0D 01 02 00 00 00 00 B2 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 2C 0D 00 90 00 AD [15:21:43]RAPDU: 90 00 [15:21:43]wFMCommunicate OK [15:21:43]wFMCommunicate request_size=255 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 07 4F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6E CD 01 00 35 04 06 00 E1 [15:21:43]Write to MH i2c: E2 02 01 2D 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 07 4F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6E CD 01 00 35 04 06 00 E1 00 00 1D [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=10 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 02 02 05 6D 19 77 A0 05 [15:21:44]Write to MH i2c: E2 0D 00 2E 0D 80 0D 02 02 05 00 6D 19 77 A0 05 00 00 61 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 03 02 [15:21:44]Write to MH i2c: E2 08 00 2F 0D 80 0D 03 02 00 00 00 00 B7 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0B 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0B 00 2F 0D 00 03 A0 D8 B2 9D 88 7D E3 90 00 6A [15:21:44]RAPDU: 03 A0 D8 B2 9D 88 7D E3 90 00 [15:21:44]wFMCommunicate OK [15:21:44]SAM_PROTO_SignData done [15:21:44]FM_MakeSignedData done [15:21:44]CreateOFDProtocolMessage [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 11 00 00 [15:21:44]Write to MH i2c: E2 08 00 30 0D 80 11 00 00 00 00 00 00 B7 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 17 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 17 00 30 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0E [15:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:21:44]wFMCommunicate OK [15:21:44]CreateOFDProtocolMessage done [15:21:44]OFDSenderStorePacket 118126 [15:21:44]StoreOFDPacket docnum=118126 [15:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 34 17 07 01 FE 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 07 4F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6E CD 01 00 35 04 06 00 E1 6D 19 77 A0 05 03 A0 D8 B2 9D 88 7D E3 [15:21:44]CheckFolder [15:21:44]dirname=/storage/ofd_packets [15:21:44]CheckFolder done [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00118126 [15:21:44]NVStorageSaveData ofd_packets/00118126 [15:21:44]File name is /storage/ofd_packets/00118126 [15:21:44]Write 301 bytes [15:21:44]NVStorageSaveData done [15:21:44]OFDSenderStorePacket done [15:21:44]KKMCreateOFDPacket done [15:21:44]NVStorageSaveData kkm_last_timestamp [15:21:44]File name is /storage/kkm_last_timestamp [15:21:44]Write 4 bytes [15:21:44]NVStorageSaveData done [15:21:44]ExternCall_PrintAddStr [15:21:44]wPrintStart [15:21:44]Write to MH i2c: 01 00 00 31 0D 3E [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 07 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [15:21:44]RasterBufferAndPrint [15:21:44]line Счет N : (1)245922 [15:21:44]line ИНН: 02508201610067 [15:21:44]line Контрольно-Кассовый Чек [15:21:44]line ПРОДАЖА [15:21:44]line ТРК (МРК, ГНК) : 11 [15:21:44]line Товар: 2710124130 [15:21:44]line Аи-92-К-2 [15:21:44]line 7.480 * 66.90 [15:21:44]line = 500.41 [15:21:44]line НДС 12% НСП 1% [15:21:44]line > о реализуемом товаре [15:21:44]line ОКРУГЛЕНИЕ: -0.41 [15:21:44]line ИТОГО: 500.00 [15:21:44]line Внесено: 500.00 [15:21:44]line СДАЧА: 0.00 [15:21:44]line НСП 1% : 4.43 [15:21:44]line НДС 12% : 53.14 [15:21:44]line Наличными: 500.00 [15:21:44]line Безнал.: 0.00 [15:21:44]line Место: АЗС № 173 "Партнер Нефть" [15:21:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:21:44]line СНО: Общий режим [15:21:44]line Чек 186 30.10.2024 15:21 [15:21:44]line Смена: 545 ФФД: 1.0 [15:21:44]line ЗНМ: 0300000115 [15:21:44]line РНМ: 0000000000091782 [15:21:44]line Версия ККМ: 001 [15:21:44]line ФМ: 0000000000871767 [15:21:44]line ФД: 118126 [15:21:44]line ФПД: 247858694955013 [15:21:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152143&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118126&fm=247858694955013&tin=02508201610067®Number=0000000000091782&sum=50000 [15:21:44]OFD Sender: Processing packet 118126 [packets to send 77, broken 76] [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00118126 [15:21:44]OFD Sender: To server: pG, [15:21:44]CommunicateWithHost lk.salyk.kg:30040 [15:21:44]ConnectInit lk.salyk.kg [15:21:44]written 0, free lines is 4095 [15:21:44]Connected sock=10 [15:21: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 36 37 0F 01 00 00 34 17 07 01 FE 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 07 4F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6E CD 01 00 35 04 06 00 E1 6D 19 77 A0 05 03 A0 D8 B2 9D 88 7D E3 [15:21:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 1B E6 47 00 DE 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6E CD 01 00 F4 03 04 00 BF FA 21 67 B6 04 01 00 00 86 C5 BB E4 2B 0A 52 22 [15:21:44]CommunicateWithHost err = 0 [15:21:44]CheckOFDResponse [15:21:44]1017 (14) - 77093643461234 [15:21:44]1041 (16) - 0000000000871767 [15:21:44]1040 (4) - 118126 [15:21:44]1012 (4) - 30.10.2024 09:22 [15:21:44]1206 (1) - 0 [15:21:44]OFD Sender: Remove packet 118126 [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00118126 [15:21:44]NVStorageDeleteData [15:21:45]Write to MH i2c: 01 00 00 5B 0D 68 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 5B 0D 00 00 00 00 00 C7 0C 42 [15:21:45]RasterBufferAndPrint [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]written 0, free lines is 3275 [15:21:45]MH_Cut [15:21:45]Write to MH i2c: D1 01 00 62 0D 01 41 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 01 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 01 00 62 0D 00 40 [15:21:45]Write to MH i2c: 01 00 00 63 0D 70 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]OFD Sender: No OFD packet to send [15:21:45]*** Cut start [15:21:45]*** Purtial cut [15:21:45]*** Stage 1: CUTSNS_PIN = 1 [15:21:46]Read from MH i2c: 01 [15:21:46]MH_I2C_Read... [15:21:46]*** Stop cut motor [15:21:46]*** Cut end [15:21:46]Read from MH i2c: 01 07 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 07 00 63 0D 00 00 00 00 00 FF 0F 85 [15:21:46]process_action close_receipt done [15:21:46]requested_data is exist [15:21:46]produce_requested_data [15:21:46]requested_item fm.sn is exist - process it [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 11 00 00 [15:21:46]Write to MH i2c: E2 08 00 64 0D 80 11 00 00 00 00 00 00 EB [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 17 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 17 00 64 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 42 [15:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:21:46]wFMCommunicate OK [15:21:46]requested_item fd.num is exist - process it [15:21:46]SAM_PROTO_GetFieldsCounters [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 13 00 00 [15:21:46]Write to MH i2c: E2 08 00 65 0D 80 13 00 00 00 00 00 00 EE [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 62 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 62 00 65 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [15:21: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetFieldsCounters done [15:21:46]requested_item shift.num is exist - process it [15:21:46]requested_item shift.opened is exist - process it [15:21:46]req_shift_opened [15:21:46]FM_GetShiftState [15:21:46]SAM_PROTO_GetShiftState [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 13 01 00 [15:21:46]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C8 [15:21:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetShiftState done [15:21:46]FM_GetShiftState done [15:21:46]req_shift_opened done [15:21:46]requested_item shift.open_date is exist - process it [15:21:46]req_shift_open_date [15:21:46]req_shift_open_date done [15:21:46]produce_requested_data done [15:21:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118126,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:21:46]process_action_free close_receipt [15:21:46]json_value_free [15:21:46]json_value_free done [15:21:46]process_json_proto returns [15:21:46]Send response to host [15:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118126,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:21:46]free response buf [15:21:46]execute_script done [15:21:46]execute_script returns [15:21:46]free content buf [15:21:46]Sock 7.Close socket [15:21:46]Sock 7.Thread stoped [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:41]accept exits with 9 [15:31:41]New connection [15:31:41]New thread 3066695012 created [15:31:41]Thread 3066551652 joined [15:31:41]Waiting for new connection... [15:31:41] Sock 9.Parse request [15:31:41]Sock 9.Check first char [15:31:41]Sock 9.First char is OK [15:31:41]request: POST /json_proto HTTP/1.0 [15:31:41]Method: POST [15:31:41]URL: /json_proto [15:31:41]Method is POST - this is cgi request [15:31:41]url: /json_proto [15:31:41]query_string will be loaded in cgi processing [15:31:41]execute_cgi json_proto POST (null) [15:31:41]execute_cgi path=json_proto method=POST [15:31:41]POST find Content-Length [15:31:41]Host: 172.17.96.67:8080 [15:31:41]Content-Length: 677 [15:31:41]Content-Type: application/json [15:31:41] [15:31:41]POST finish read [15:31:41]Found Content-Length = 677 [15:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:31:41]execute_script... [15:31:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:31:41]POST & json_proto [15:31:41]process_json_proto [15:31:41]json parsed OK: [15:31:41]protocol is kg_v1.0 [15:31:41]action value=close_receipt [15:31:41]process_action close_receipt [15:31:41]cmd_close_receipt [15:31:41]MH_GetDate [15:31:41]Write to MH i2c: F0 00 00 67 0D 63 [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: F0 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: F0 09 00 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: F0 09 00 67 0D 00 5E 51 22 67 47 6C 1F 67 DD [15:31:41]GetLastDocTimeStamp 1730301703 [15:31:41]current date 1730302302 [15:31:41]FM_GetShiftState [15:31:41]SAM_PROTO_GetShiftState [15:31:41]wFMCommunicate request_size=4 [15:31:41]MH_SAM_APDU [15:31:41]CAPDU: 80 13 01 00 [15:31:41]Write to MH i2c: E2 08 00 68 0D 80 13 01 00 00 00 00 00 F2 [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:41]Read from MH i2c: E2 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: E2 0E 00 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: E2 0E 00 68 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CA [15:31:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:31:41]wFMCommunicate OK [15:31:41]SAM_PROTO_GetShiftState done [15:31:41]FM_GetShiftState done [15:31:41]opened in 1730246605 [15:31:41]opened+sec_in_day 1730333005 [15:31:41]quantity*price = 20003 [15:31:41]sum+1 = 20004 [15:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 187 30.10.2024 15:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118127 ФПД: 152473820924520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153143&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118127&fm=152473820924520&tin=02508201610067®Number=0000000000091782&sum=20000 [15:31:42]StoreToDocumentArchive [15:31:42]shift 545 fd 118127 [15:31:42]save to /storage/0545/doc_00118127 [15:31:42]save last doc name /storage/0545/doc_00118127 to /storage/kkm_last_doc_name [15:31:42]save OK [15:31:42]Clear old archive folders... [15:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:42]tlvbuf is 000E6DC0 [15:31:42]SAM_PROTO_ClearQueue [15:31:42]wFMCommunicate request_size=4 [15:31:42]MH_SAM_APDU [15:31:42]CAPDU: 80 09 00 00 [15:31:42]Write to MH i2c: E2 08 00 75 0D 80 09 00 00 00 00 00 00 F4 [15:31:42]Write i2c OK [15:31:42]MH_I2C_Read... [15:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:42]Read from MH i2c: E2 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 03 00 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [15:31:42]RAPDU: 90 00 [15:31:42]wFMCommunicate OK [15:31:42]SAM_PROTO_ClearQueue done [15:31:42]KKMCreateOFDPacket [15:31:42]OFDProtocolAddRootSTLVToBuf [15:31:42]FM_MakeSignedData [15:31:42]FM_MakeSignedData [15:31:42]SAM_PROTO_SignData [15:31:42]wFMCommunicate request_size=4 [15:31:42]MH_SAM_APDU [15:31:42]CAPDU: 80 0D 01 02 [15:31:42]Write to MH i2c: E2 08 00 76 0D 80 0D 01 02 00 00 00 00 FC [15:31:42]Write i2c OK [15:31:42]MH_I2C_Read... [15:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:42]Read from MH i2c: E2 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 03 00 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [15:31:42]RAPDU: 90 00 [15:31:42]wFMCommunicate OK [15:31:42]wFMCommunicate request_size=255 [15:31:42]MH_SAM_APDU [15:31:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BB 00 00 00 F4 03 04 00 5F 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6F CD 01 00 35 04 06 00 8A [15:31:42]Write to MH i2c: E2 02 01 77 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 5F 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6F CD 01 00 35 04 06 00 8A 00 00 2E [15:31:42]Write i2c OK [15:31:42]MH_I2C_Read... [15:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:43]Read from MH i2c: E2 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 03 00 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [15:31:43]RAPDU: 90 00 [15:31:43]wFMCommunicate OK [15:31:43]wFMCommunicate request_size=10 [15:31:43]MH_SAM_APDU [15:31:43]CAPDU: 80 0D 02 02 05 AC 93 EF 0A 68 [15:31:43]Write to MH i2c: E2 0D 00 78 0D 80 0D 02 02 05 00 AC 93 EF 0A 68 00 00 A9 [15:31:43]Write i2c OK [15:31:43]MH_I2C_Read... [15:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:43]Read from MH i2c: E2 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 03 00 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [15:31:43]RAPDU: 90 00 [15:31:43]wFMCommunicate OK [15:31:43]wFMCommunicate request_size=4 [15:31:43]MH_SAM_APDU [15:31:43]CAPDU: 80 0D 03 02 [15:31:43]Write to MH i2c: E2 08 00 79 0D 80 0D 03 02 00 00 00 00 01 [15:31:43]Write i2c OK [15:31:43]MH_I2C_Read... [15:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:43]Read from MH i2c: E2 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 0B 00 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 0B 00 79 0D 00 FF 25 09 FA 4E 26 B7 6D 90 00 C1 [15:31:43]RAPDU: FF 25 09 FA 4E 26 B7 6D 90 00 [15:31:43]wFMCommunicate OK [15:31:43]SAM_PROTO_SignData done [15:31:43]FM_MakeSignedData done [15:31:43]CreateOFDProtocolMessage [15:31:43]wFMCommunicate request_size=4 [15:31:43]MH_SAM_APDU [15:31:43]CAPDU: 80 11 00 00 [15:31:43]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [15:31:43]Write i2c OK [15:31:43]MH_I2C_Read... [15:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:43]Read from MH i2c: E2 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 17 00 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: E2 17 00 7A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 58 [15:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:31:43]wFMCommunicate OK [15:31:43]CreateOFDProtocolMessage done [15:31:43]OFDSenderStorePacket 118127 [15:31:43]StoreOFDPacket docnum=118127 [15:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 39 C1 07 01 6A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 5F 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6F CD 01 00 35 04 06 00 8A AC 93 EF 0A 68 FF 25 09 FA 4E 26 B7 6D [15:31:43]CheckFolder [15:31:43]dirname=/storage/ofd_packets [15:31:43]CheckFolder done [15:31:43]ProducePacketName [15:31:43]name=ofd_packets/00118127 [15:31:43]NVStorageSaveData ofd_packets/00118127 [15:31:43]File name is /storage/ofd_packets/00118127 [15:31:43]Write 301 bytes [15:31:43]NVStorageSaveData done [15:31:43]OFDSenderStorePacket done [15:31:43]KKMCreateOFDPacket done [15:31:43]NVStorageSaveData kkm_last_timestamp [15:31:43]File name is /storage/kkm_last_timestamp [15:31:43]Write 4 bytes [15:31:43]NVStorageSaveData done [15:31:43]ExternCall_PrintAddStr [15:31:43]wPrintStart [15:31:43]Write to MH i2c: 01 00 00 7B 0D 88 [15:31:43]Write i2c OK [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: 01 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: 01 07 00 [15:31:43]MH_I2C_Read... [15:31:43]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [15:31:43]RasterBufferAndPrint [15:31:43]line Счет N : (1)245923 [15:31:43]line ИНН: 02508201610067 [15:31:43]line Контрольно-Кассовый Чек [15:31:43]line ПРОДАЖА [15:31:43]line ТРК (МРК, ГНК) : 11 [15:31:43]line Товар: 2710124130 [15:31:43]line Аи-92-К-2 [15:31:43]line 2.990 * 66.90 [15:31:43]line = 200.03 [15:31:43]line НДС 12% НСП 1% [15:31:43]line > о реализуемом товаре [15:31:43]line ОКРУГЛЕНИЕ: -0.03 [15:31:43]line ИТОГО: 200.00 [15:31:43]line Внесено: 200.00 [15:31:43]line СДАЧА: 0.00 [15:31:43]line НСП 1% : 1.77 [15:31:43]line НДС 12% : 21.24 [15:31:43]line Наличными: 200.00 [15:31:43]line Безнал.: 0.00 [15:31:43]line Место: АЗС № 173 "Партнер Нефть" [15:31:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:31:43]line СНО: Общий режим [15:31:43]line Чек 187 30.10.2024 15:31 [15:31:43]line Смена: 545 ФФД: 1.0 [15:31:43]line ЗНМ: 0300000115 [15:31:43]line РНМ: 0000000000091782 [15:31:43]line Версия ККМ: 001 [15:31:43]line ФМ: 0000000000871767 [15:31:43]line ФД: 118127 [15:31:43]line ФПД: 152473820924520 [15:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153143&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118127&fm=152473820924520&tin=02508201610067®Number=0000000000091782&sum=20000 [15:31:43]written 0, free lines is 4095 [15:31:43]OFD Sender: Processing packet 118127 [packets to send 77, broken 76] [15:31:43]ProducePacketName [15:31:43]name=ofd_packets/00118127 [15:31:43]OFD Sender: To server: pG, [15:31:43]CommunicateWithHost lk.salyk.kg:30040 [15:31:43]ConnectInit lk.salyk.kg [15:31:43]Connected sock=10 [15:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 39 C1 07 01 6A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 5F 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6F CD 01 00 35 04 06 00 8A AC 93 EF 0A 68 FF 25 09 FA 4E 26 B7 6D [15:31:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 91 55 47 00 B5 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 6F CD 01 00 F4 03 04 00 16 FD 21 67 B6 04 01 00 00 A4 A7 C2 9D 17 00 2D 9F [15:31:44]CommunicateWithHost err = 0 [15:31:44]CheckOFDResponse [15:31:44]1017 (14) - 77093643461234 [15:31:44]1041 (16) - 0000000000871767 [15:31:44]1040 (4) - 118127 [15:31:44]1012 (4) - 30.10.2024 09:32 [15:31:44]1206 (1) - 0 [15:31:44]OFD Sender: Remove packet 118127 [15:31:44]ProducePacketName [15:31:44]name=ofd_packets/00118127 [15:31:44]NVStorageDeleteData [15:31:44]Write to MH i2c: 01 00 00 A5 0D B2 [15:31:44]Write i2c OK [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: 01 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: 01 07 00 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: 01 07 00 A5 0D 00 00 00 00 00 B8 0C 7D [15:31:44]RasterBufferAndPrint [15:31:44]line [15:31:44]line [15:31:44]line [15:31:44]line [15:31:44]line [15:31:44]written 0, free lines is 3263 [15:31:44]MH_Cut [15:31:44]Write to MH i2c: D1 01 00 AC 0D 01 8B [15:31:44]Write i2c OK [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: D1 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: D1 01 00 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: D1 01 00 AC 0D 00 8A [15:31:44]Write to MH i2c: 01 00 00 AD 0D BA [15:31:44]Write i2c OK [15:31:44]MH_I2C_Read... [15:31:44]OFD Sender: No OFD packet to send [15:31:44]*** Cut start [15:31:44]*** Purtial cut [15:31:44]*** Stage 1: CUTSNS_PIN = 1 [15:31:45]Read from MH i2c: 01 [15:31:45]MH_I2C_Read... [15:31:45]*** Stop cut motor [15:31:45]*** Cut end [15:31:45]Read from MH i2c: 01 07 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: 01 07 00 AD 0D 00 00 00 00 00 FF 0F CF [15:31:45]process_action close_receipt done [15:31:45]requested_data is exist [15:31:45]produce_requested_data [15:31:45]requested_item fm.sn is exist - process it [15:31:45]wFMCommunicate request_size=4 [15:31:45]MH_SAM_APDU [15:31:45]CAPDU: 80 11 00 00 [15:31:45]Write to MH i2c: E2 08 00 AE 0D 80 11 00 00 00 00 00 00 35 [15:31:45]Write i2c OK [15:31:45]MH_I2C_Read... [15:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:45]Read from MH i2c: E2 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 17 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 17 00 AE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8C [15:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:31:45]wFMCommunicate OK [15:31:45]requested_item fd.num is exist - process it [15:31:45]SAM_PROTO_GetFieldsCounters [15:31:45]wFMCommunicate request_size=4 [15:31:45]MH_SAM_APDU [15:31:45]CAPDU: 80 13 00 00 [15:31:45]Write to MH i2c: E2 08 00 AF 0D 80 13 00 00 00 00 00 00 38 [15:31:45]Write i2c OK [15:31:45]MH_I2C_Read... [15:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:45]Read from MH i2c: E2 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 62 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 62 00 AF 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [15:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 6F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:45]wFMCommunicate OK [15:31:45]SAM_PROTO_GetFieldsCounters done [15:31:45]requested_item shift.num is exist - process it [15:31:45]requested_item shift.opened is exist - process it [15:31:45]req_shift_opened [15:31:45]FM_GetShiftState [15:31:45]SAM_PROTO_GetShiftState [15:31:45]wFMCommunicate request_size=4 [15:31:45]MH_SAM_APDU [15:31:45]CAPDU: 80 13 01 00 [15:31:45]Write to MH i2c: E2 08 00 B0 0D 80 13 01 00 00 00 00 00 3A [15:31:45]Write i2c OK [15:31:45]MH_I2C_Read... [15:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:45]Read from MH i2c: E2 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 0E 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 0E 00 B0 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 12 [15:31:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:31:45]wFMCommunicate OK [15:31:45]SAM_PROTO_GetShiftState done [15:31:45]FM_GetShiftState done [15:31:45]req_shift_opened done [15:31:45]requested_item shift.open_date is exist - process it [15:31:45]req_shift_open_date [15:31:45]req_shift_open_date done [15:31:45]produce_requested_data done [15:31:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118127,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:31:45]process_action_free close_receipt [15:31:45]json_value_free [15:31:45]json_value_free done [15:31:45]process_json_proto returns [15:31:45]Send response to host [15:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118127,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:31:45]free response buf [15:31:45]execute_script done [15:31:45]execute_script returns [15:31:45]free content buf [15:31:45]Sock 9.Close socket [15:31:45]Sock 9.Thread stoped [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]accept exits with 7 [15:32:39]New connection [15:32:39]New thread 3066551652 created [15:32:39]Thread 3066695012 joined [15:32:39]Waiting for new connection... [15:32:39] Sock 7.Parse request [15:32:39]Sock 7.Check first char [15:32:39]Sock 7.First char is OK [15:32:39]request: POST /json_proto HTTP/1.0 [15:32:39]Method: POST [15:32:39]URL: /json_proto [15:32:39]Method is POST - this is cgi request [15:32:39]url: /json_proto [15:32:39]query_string will be loaded in cgi processing [15:32:39]execute_cgi json_proto POST (null) [15:32:39]execute_cgi path=json_proto method=POST [15:32:39]POST find Content-Length [15:32:39]Host: 172.17.96.67:8080 [15:32:39]Content-Length: 678 [15:32:39]Content-Type: application/json [15:32:39] [15:32:39]POST finish read [15:32:39]Found Content-Length = 678 [15:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:32:39]execute_script... [15:32: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)245924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:32:39]POST & json_proto [15:32:39]process_json_proto [15:32:39]json parsed OK: [15:32:39]protocol is kg_v1.0 [15:32:39]action value=close_receipt [15:32:39]process_action close_receipt [15:32:39]cmd_close_receipt [15:32:39]MH_GetDate [15:32:39]Write to MH i2c: F0 00 00 B1 0D AD [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: F0 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: F0 09 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: F0 09 00 B1 0D 00 98 51 22 67 47 6C 1F 67 61 [15:32:39]GetLastDocTimeStamp 1730302303 [15:32:39]current date 1730302360 [15:32:39]FM_GetShiftState [15:32:39]SAM_PROTO_GetShiftState [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 13 01 00 [15:32:39]Write to MH i2c: E2 08 00 B2 0D 80 13 01 00 00 00 00 00 3C [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 0E 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 0E 00 B2 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 14 [15:32:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:32:39]wFMCommunicate OK [15:32:39]SAM_PROTO_GetShiftState done [15:32:39]FM_GetShiftState done [15:32:39]opened in 1730246605 [15:32:39]opened+sec_in_day 1730333005 [15:32:39]quantity*price = 70044 [15:32:39]sum+1 = 70045 [15:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 188 30.10.2024 15:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118128 ФПД: 189356080611909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153240&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118128&fm=189356080611909&tin=02508201610067®Number=0000000000091782&sum=70000 [15:32:40]StoreToDocumentArchive [15:32:40]shift 545 fd 118128 [15:32:40]save to /storage/0545/doc_00118128 [15:32:40]save last doc name /storage/0545/doc_00118128 to /storage/kkm_last_doc_name [15:32:40]save OK [15:32:40]Clear old archive folders... [15:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:40]tlvbuf is 000E6610 [15:32:40]SAM_PROTO_ClearQueue [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 09 00 00 [15:32:40]Write to MH i2c: E2 08 00 BF 0D 80 09 00 00 00 00 00 00 3E [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [15:32:40]RAPDU: 90 00 [15:32:40]wFMCommunicate OK [15:32:40]SAM_PROTO_ClearQueue done [15:32:40]KKMCreateOFDPacket [15:32:40]OFDProtocolAddRootSTLVToBuf [15:32:40]FM_MakeSignedData [15:32:40]FM_MakeSignedData [15:32:40]SAM_PROTO_SignData [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 0D 01 02 [15:32:40]Write to MH i2c: E2 08 00 C0 0D 80 0D 01 02 00 00 00 00 46 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [15:32:40]RAPDU: 90 00 [15:32:40]wFMCommunicate OK [15:32:40]wFMCommunicate request_size=255 [15:32:40]MH_SAM_APDU [15:32: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 32 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 BC 00 00 00 F4 03 04 00 98 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 70 CD 01 00 35 04 06 00 AC [15:32:40]Write to MH i2c: E2 02 01 C1 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 98 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 70 CD 01 00 35 04 06 00 AC 00 00 23 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [15:32:40]RAPDU: 90 00 [15:32:40]wFMCommunicate OK [15:32:40]wFMCommunicate request_size=10 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 0D 02 02 05 37 E5 EB C2 45 [15:32:40]Write to MH i2c: E2 0D 00 C2 0D 80 0D 02 02 05 00 37 E5 EB C2 45 00 00 61 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 03 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 03 00 C2 0D 00 90 00 43 [15:32:41]RAPDU: 90 00 [15:32:41]wFMCommunicate OK [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 0D 03 02 [15:32:41]Write to MH i2c: E2 08 00 C3 0D 80 0D 03 02 00 00 00 00 4B [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0B 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0B 00 C3 0D 00 9B 44 E9 04 96 C8 A6 C1 90 00 DD [15:32:41]RAPDU: 9B 44 E9 04 96 C8 A6 C1 90 00 [15:32:41]wFMCommunicate OK [15:32:41]SAM_PROTO_SignData done [15:32:41]FM_MakeSignedData done [15:32:41]CreateOFDProtocolMessage [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 11 00 00 [15:32:41]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 17 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A2 [15:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:32:41]wFMCommunicate OK [15:32:41]CreateOFDProtocolMessage done [15:32:41]OFDSenderStorePacket 118128 [15:32:41]StoreOFDPacket docnum=118128 [15:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 09 F7 07 01 E2 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BC 00 00 00 F4 03 04 00 98 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 70 CD 01 00 35 04 06 00 AC 37 E5 EB C2 45 9B 44 E9 04 96 C8 A6 C1 [15:32:41]CheckFolder [15:32:41]dirname=/storage/ofd_packets [15:32:41]CheckFolder done [15:32:41]ProducePacketName [15:32:41]name=ofd_packets/00118128 [15:32:41]NVStorageSaveData ofd_packets/00118128 [15:32:41]File name is /storage/ofd_packets/00118128 [15:32:41]Write 301 bytes [15:32:41]NVStorageSaveData done [15:32:41]OFDSenderStorePacket done [15:32:41]KKMCreateOFDPacket done [15:32:41]NVStorageSaveData kkm_last_timestamp [15:32:41]File name is /storage/kkm_last_timestamp [15:32:41]Write 4 bytes [15:32:41]NVStorageSaveData done [15:32:41]ExternCall_PrintAddStr [15:32:41]wPrintStart [15:32:41]Write to MH i2c: 01 00 00 C5 0D D2 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 07 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 07 00 C5 0D 00 00 00 00 00 FF 0F E7 [15:32:41]RasterBufferAndPrint [15:32:41]line Счет N : (1)245924 [15:32:41]line ИНН: 02508201610067 [15:32:41]line Контрольно-Кассовый Чек [15:32:41]line ПРОДАЖА [15:32:41]line ТРК (МРК, ГНК) : 21 [15:32:41]line Товар: 2710124130 [15:32:41]line Аи-92-К-2 [15:32:41]line 10.470 * 66.90 [15:32:41]line = 700.44 [15:32:41]line НДС 12% НСП 1% [15:32:41]line > о реализуемом товаре [15:32:41]line ОКРУГЛЕНИЕ: -0.44 [15:32:41]line ИТОГО: 700.00 [15:32:41]line Внесено: 700.00 [15:32:41]line СДАЧА: 0.00 [15:32:41]line НСП 1% : 6.20 [15:32:41]line НДС 12% : 74.38 [15:32:41]line Наличными: 700.00 [15:32:41]line Безнал.: 0.00 [15:32:41]line Место: АЗС № 173 "Партнер Нефть" [15:32:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:32:41]line СНО: Общий режим [15:32:41]line Чек 188 30.10.2024 15:32 [15:32:41]line Смена: 545 ФФД: 1.0 [15:32:41]line ЗНМ: 0300000115 [15:32:41]line РНМ: 0000000000091782 [15:32:41]line Версия ККМ: 001 [15:32:41]line ФМ: 0000000000871767 [15:32:41]line ФД: 118128 [15:32:41]line ФПД: 189356080611909 [15:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153240&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118128&fm=189356080611909&tin=02508201610067®Number=0000000000091782&sum=70000 [15:32:41]written 0, free lines is 4095 [15:32:41]OFD Sender: Processing packet 118128 [packets to send 77, broken 76] [15:32:41]ProducePacketName [15:32:41]name=ofd_packets/00118128 [15:32:41]OFD Sender: To server: pG, [15:32:41]CommunicateWithHost lk.salyk.kg:30040 [15:32:41]ConnectInit lk.salyk.kg [15:32:41]Connected sock=11 [15:32: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 36 37 0F 01 00 00 09 F7 07 01 E2 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BC 00 00 00 F4 03 04 00 98 51 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 70 CD 01 00 35 04 06 00 AC 37 E5 EB C2 45 9B 44 E9 04 96 C8 A6 C1 [15:32: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 36 37 4F 00 00 00 DF AA 47 00 82 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 36 37 10 04 04 00 70 CD 01 00 F4 03 04 00 50 FD 21 67 B6 04 01 00 00 94 18 FD 4A CA 5B F3 4C [15:32:41]CommunicateWithHost err = 0 [15:32:41]CheckOFDResponse [15:32:41]1017 (14) - 77093643461234 [15:32:41]1041 (16) - 0000000000871767 [15:32:41]1040 (4) - 118128 [15:32:41]1012 (4) - 30.10.2024 09:33 [15:32:41]1206 (1) - 0 [15:32:41]OFD Sender: Remove packet 118128 [15:32:41]ProducePacketName [15:32:41]name=ofd_packets/00118128 [15:32:41]NVStorageDeleteData [15:32:41]Write to MH i2c: 01 00 00 EF 0D FC [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 07 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 C7 0C D6 [15:32:41]RasterBufferAndPrint [15:32:41]line [15:32:41]line [15:32:41]line [15:32:41]line [15:32:41]line [15:32:41]written 0, free lines is 3276 [15:32:41]MH_Cut [15:32:41]Write to MH i2c: D1 01 00 F6 0D 01 D5 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: D1 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: D1 01 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: D1 01 00 F6 0D 00 D4 [15:32:41]Write to MH i2c: 01 00 00 F7 0D 04 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:42]OFD Sender: No OFD packet to send [15:32:42]*** Cut start [15:32:42]*** Purtial cut [15:32:42]*** Stage 1: CUTSNS_PIN = 1 [15:32:43]Read from MH i2c: 01 [15:32:43]MH_I2C_Read... [15:32:43]*** Stop cut motor [15:32:43]*** Cut end [15:32:43]Read from MH i2c: 01 07 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [15:32:43]process_action close_receipt done [15:32:43]requested_data is exist [15:32:43]produce_requested_data [15:32:43]requested_item fm.sn is exist - process it [15:32:43]wFMCommunicate request_size=4 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 11 00 00 [15:32:43]Write to MH i2c: E2 08 00 F8 0D 80 11 00 00 00 00 00 00 7F [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 17 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 17 00 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D6 [15:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:32:43]wFMCommunicate OK [15:32:43]requested_item fd.num is exist - process it [15:32:43]SAM_PROTO_GetFieldsCounters [15:32:43]wFMCommunicate request_size=4 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 13 00 00 [15:32:43]Write to MH i2c: E2 08 00 F9 0D 80 13 00 00 00 00 00 00 82 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 62 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 62 00 F9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 70 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:32: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 70 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:43]wFMCommunicate OK [15:32:43]SAM_PROTO_GetFieldsCounters done [15:32:43]requested_item shift.num is exist - process it [15:32:43]requested_item shift.opened is exist - process it [15:32:43]req_shift_opened [15:32:43]FM_GetShiftState [15:32:43]SAM_PROTO_GetShiftState [15:32:43]wFMCommunicate request_size=4 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 13 01 00 [15:32:43]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 0E 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5C [15:32:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:32:43]wFMCommunicate OK [15:32:43]SAM_PROTO_GetShiftState done [15:32:43]FM_GetShiftState done [15:32:43]req_shift_opened done [15:32:43]requested_item shift.open_date is exist - process it [15:32:43]req_shift_open_date [15:32:43]req_shift_open_date done [15:32:43]produce_requested_data done [15:32:43]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118128,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:32:43]process_action_free close_receipt [15:32:43]json_value_free [15:32:43]json_value_free done [15:32:43]process_json_proto returns [15:32:43]Send response to host [15:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118128,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:32:43]free response buf [15:32:43]execute_script done [15:32:43]execute_script returns [15:32:43]free content buf [15:32:43]Sock 7.Close socket [15:32:43]Sock 7.Thread stoped [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:13]accept exits with 9 [15:35:13]New connection [15:35:13]New thread 3066695012 created [15:35:13]Thread 3066551652 joined [15:35:13]Waiting for new connection... [15:35:13] Sock 9.Parse request [15:35:13]Sock 9.Check first char [15:35:13]Sock 9.First char is OK [15:35:13]request: POST /json_proto HTTP/1.0 [15:35:13]Method: POST [15:35:13]URL: /json_proto [15:35:13]Method is POST - this is cgi request [15:35:13]url: /json_proto [15:35:13]query_string will be loaded in cgi processing [15:35:13]execute_cgi json_proto POST (null) [15:35:13]execute_cgi path=json_proto method=POST [15:35:13]POST find Content-Length [15:35:13]Host: 172.17.96.67:8080 [15:35:13]Content-Length: 678 [15:35:13]Content-Type: application/json [15:35:13] [15:35:13]POST finish read [15:35:13]Found Content-Length = 678 [15:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:35:13]execute_script... [15:35: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)245925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:35:13]POST & json_proto [15:35:13]process_json_proto [15:35:13]json parsed OK: [15:35:13]protocol is kg_v1.0 [15:35:13]action value=close_receipt [15:35:13]process_action close_receipt [15:35:13]cmd_close_receipt [15:35:13]MH_GetDate [15:35:13]Write to MH i2c: F0 00 00 FB 0D F7 [15:35:13]Write i2c OK [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: F0 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: F0 09 00 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: F0 09 00 FB 0D 00 33 52 22 67 47 6C 1F 67 47 [15:35:13]GetLastDocTimeStamp 1730302360 [15:35:13]current date 1730302515 [15:35:13]FM_GetShiftState [15:35:13]SAM_PROTO_GetShiftState [15:35:13]wFMCommunicate request_size=4 [15:35:13]MH_SAM_APDU [15:35:13]CAPDU: 80 13 01 00 [15:35:13]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [15:35:13]Write i2c OK [15:35:13]MH_I2C_Read... [15:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:13]Read from MH i2c: E2 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: E2 0E 00 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5E [15:35:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:35:13]wFMCommunicate OK [15:35:13]SAM_PROTO_GetShiftState done [15:35:13]FM_GetShiftState done [15:35:13]opened in 1730246605 [15:35:13]opened+sec_in_day 1730333005 [15:35:13]quantity*price = 70044 [15:35:13]sum+1 = 70045 [15:35:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 189 30.10.2024 15:35 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118129 ФПД: 144336341330402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153515&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118129&fm=144336341330402&tin=02508201610067®Number=0000000000091782&sum=70000 [15:35:15]StoreToDocumentArchive [15:35:15]shift 545 fd 118129 [15:35:15]save to /storage/0545/doc_00118129 [15:35:15]save last doc name /storage/0545/doc_00118129 to /storage/kkm_last_doc_name [15:35:15]save OK [15:35:15]Clear old archive folders... [15:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:15]tlvbuf is 0011F680 [15:35:15]SAM_PROTO_ClearQueue [15:35:15]wFMCommunicate request_size=4 [15:35:15]MH_SAM_APDU [15:35:15]CAPDU: 80 09 00 00 [15:35:15]Write to MH i2c: E2 08 00 09 0E 80 09 00 00 00 00 00 00 89 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [15:35:15]RAPDU: 90 00 [15:35:15]wFMCommunicate OK [15:35:15]SAM_PROTO_ClearQueue done [15:35:15]KKMCreateOFDPacket [15:35:15]OFDProtocolAddRootSTLVToBuf [15:35:15]FM_MakeSignedData [15:35:15]FM_MakeSignedData [15:35:15]SAM_PROTO_SignData [15:35:15]wFMCommunicate request_size=4 [15:35:15]MH_SAM_APDU [15:35:15]CAPDU: 80 0D 01 02 [15:35:15]Write to MH i2c: E2 08 00 0A 0E 80 0D 01 02 00 00 00 00 91 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [15:35:15]RAPDU: 90 00 [15:35:15]wFMCommunicate OK [15:35:15]wFMCommunicate request_size=255 [15:35:15]MH_SAM_APDU [15:35: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 32 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 BD 00 00 00 F4 03 04 00 33 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 71 CD 01 00 35 04 06 00 83 [15:35:15]Write to MH i2c: E2 02 01 0B 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BD 00 00 00 F4 03 04 00 33 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 71 CD 01 00 35 04 06 00 83 00 00 E3 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [15:35:15]RAPDU: 90 00 [15:35:15]wFMCommunicate OK [15:35:15]wFMCommunicate request_size=10 [15:35:15]MH_SAM_APDU [15:35:15]CAPDU: 80 0D 02 02 05 45 EC 5A 69 E2 [15:35:15]Write to MH i2c: E2 0D 00 0C 0E 80 0D 02 02 05 00 45 EC 5A 69 E2 00 00 74 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [15:35:15]RAPDU: 90 00 [15:35:15]wFMCommunicate OK [15:35:15]wFMCommunicate request_size=4 [15:35:15]MH_SAM_APDU [15:35:15]CAPDU: 80 0D 03 02 [15:35:15]Write to MH i2c: E2 08 00 0D 0E 80 0D 03 02 00 00 00 00 96 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 0B 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 0B 00 0D 0E 00 70 20 1C 98 12 5E DC 23 90 00 4A [15:35:15]RAPDU: 70 20 1C 98 12 5E DC 23 90 00 [15:35:15]wFMCommunicate OK [15:35:15]SAM_PROTO_SignData done [15:35:15]FM_MakeSignedData done [15:35:15]CreateOFDProtocolMessage [15:35:15]wFMCommunicate request_size=4 [15:35:15]MH_SAM_APDU [15:35:15]CAPDU: 80 11 00 00 [15:35:15]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 17 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 ED [15:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:35:15]wFMCommunicate OK [15:35:15]CreateOFDProtocolMessage done [15:35:15]OFDSenderStorePacket 118129 [15:35:15]StoreOFDPacket docnum=118129 [15:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E4 BC 07 01 8B 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BD 00 00 00 F4 03 04 00 33 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 71 CD 01 00 35 04 06 00 83 45 EC 5A 69 E2 70 20 1C 98 12 5E DC 23 [15:35:15]CheckFolder [15:35:15]dirname=/storage/ofd_packets [15:35:15]CheckFolder done [15:35:15]ProducePacketName [15:35:15]name=ofd_packets/00118129 [15:35:15]NVStorageSaveData ofd_packets/00118129 [15:35:15]File name is /storage/ofd_packets/00118129 [15:35:15]Write 301 bytes [15:35:15]NVStorageSaveData done [15:35:15]OFDSenderStorePacket done [15:35:15]KKMCreateOFDPacket done [15:35:15]NVStorageSaveData kkm_last_timestamp [15:35:15]File name is /storage/kkm_last_timestamp [15:35:15]Write 4 bytes [15:35:15]NVStorageSaveData done [15:35:15]ExternCall_PrintAddStr [15:35:15]wPrintStart [15:35:15]Write to MH i2c: 01 00 00 0F 0E 1D [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 07 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [15:35:15]RasterBufferAndPrint [15:35:15]line Счет N : (1)245925 [15:35:15]line ИНН: 02508201610067 [15:35:15]line Контрольно-Кассовый Чек [15:35:15]line ПРОДАЖА [15:35:15]line ТРК (МРК, ГНК) : 11 [15:35:15]line Товар: 2710124130 [15:35:15]line Аи-92-К-2 [15:35:15]line 10.470 * 66.90 [15:35:15]line = 700.44 [15:35:15]line НДС 12% НСП 1% [15:35:15]line > о реализуемом товаре [15:35:15]line ОКРУГЛЕНИЕ: -0.44 [15:35:15]line ИТОГО: 700.00 [15:35:15]line Внесено: 700.00 [15:35:15]line СДАЧА: 0.00 [15:35:15]line НСП 1% : 6.20 [15:35:15]line НДС 12% : 74.38 [15:35:15]line Наличными: 700.00 [15:35:15]line Безнал.: 0.00 [15:35:15]line Место: АЗС № 173 "Партнер Нефть" [15:35:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:35:15]line СНО: Общий режим [15:35:15]line Чек 189 30.10.2024 15:35 [15:35:15]line Смена: 545 ФФД: 1.0 [15:35:15]line ЗНМ: 0300000115 [15:35:15]line РНМ: 0000000000091782 [15:35:15]line Версия ККМ: 001 [15:35:15]line ФМ: 0000000000871767 [15:35:15]line ФД: 118129 [15:35:15]line ФПД: 144336341330402 [15:35:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153515&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118129&fm=144336341330402&tin=02508201610067®Number=0000000000091782&sum=70000 [15:35:15]OFD Sender: Processing packet 118129 [packets to send 77, broken 76] [15:35:15]ProducePacketName [15:35:15]name=ofd_packets/00118129 [15:35:15]OFD Sender: To server: pG, [15:35:15]CommunicateWithHost lk.salyk.kg:30040 [15:35:15]ConnectInit lk.salyk.kg [15:35:15]written 0, free lines is 4095 [15:35:16]Connected sock=10 [15:35: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 36 37 0F 01 00 00 E4 BC 07 01 8B 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BD 00 00 00 F4 03 04 00 33 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 71 CD 01 00 35 04 06 00 83 45 EC 5A 69 E2 70 20 1C 98 12 5E DC 23 [15:35: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 36 37 4F 00 00 00 E1 B3 47 00 EF 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 36 37 10 04 04 00 71 CD 01 00 F4 03 04 00 EA FD 21 67 B6 04 01 00 00 BA 2F DD BD D0 67 73 AE [15:35:16]CommunicateWithHost err = 0 [15:35:16]CheckOFDResponse [15:35:16]1017 (14) - 77093643461234 [15:35:16]1041 (16) - 0000000000871767 [15:35:16]1040 (4) - 118129 [15:35:16]1012 (4) - 30.10.2024 09:35 [15:35:16]1206 (1) - 0 [15:35:16]OFD Sender: Remove packet 118129 [15:35:16]ProducePacketName [15:35:16]name=ofd_packets/00118129 [15:35:16]NVStorageDeleteData [15:35:16]Write to MH i2c: 01 00 00 39 0E 47 [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: 01 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: 01 07 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 BE 0C 18 [15:35:16]RasterBufferAndPrint [15:35:16]line [15:35:16]line [15:35:16]line [15:35:16]line [15:35:16]line [15:35:16]written 0, free lines is 3269 [15:35:16]MH_Cut [15:35:16]Write to MH i2c: D1 01 00 40 0E 01 20 [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: D1 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: D1 01 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: D1 01 00 40 0E 00 1F [15:35:16]Write to MH i2c: 01 00 00 41 0E 4F [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]OFD Sender: No OFD packet to send [15:35:17]*** Cut start [15:35:17]*** Purtial cut [15:35:17]*** Stage 1: CUTSNS_PIN = 1 [15:35:17]Read from MH i2c: 01 [15:35:17]MH_I2C_Read... [15:35:17]*** Stop cut motor [15:35:17]*** Cut end [15:35:17]Read from MH i2c: 01 07 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: 01 07 00 41 0E 00 00 00 00 00 FF 0F 64 [15:35:17]process_action close_receipt done [15:35:17]requested_data is exist [15:35:17]produce_requested_data [15:35:17]requested_item fm.sn is exist - process it [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 11 00 00 [15:35:17]Write to MH i2c: E2 08 00 42 0E 80 11 00 00 00 00 00 00 CA [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 17 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 17 00 42 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 21 [15:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:35:17]wFMCommunicate OK [15:35:17]requested_item fd.num is exist - process it [15:35:17]SAM_PROTO_GetFieldsCounters [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 13 00 00 [15:35:17]Write to MH i2c: E2 08 00 43 0E 80 13 00 00 00 00 00 00 CD [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 62 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 62 00 43 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 71 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [15:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 71 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:17]wFMCommunicate OK [15:35:17]SAM_PROTO_GetFieldsCounters done [15:35:17]requested_item shift.num is exist - process it [15:35:17]requested_item shift.opened is exist - process it [15:35:17]req_shift_opened [15:35:17]FM_GetShiftState [15:35:17]SAM_PROTO_GetShiftState [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 13 01 00 [15:35:17]Write to MH i2c: E2 08 00 44 0E 80 13 01 00 00 00 00 00 CF [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 0E 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 0E 00 44 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A7 [15:35:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:35:17]wFMCommunicate OK [15:35:17]SAM_PROTO_GetShiftState done [15:35:17]FM_GetShiftState done [15:35:17]req_shift_opened done [15:35:17]requested_item shift.open_date is exist - process it [15:35:17]req_shift_open_date [15:35:17]req_shift_open_date done [15:35:17]produce_requested_data done [15:35:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118129,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:35:17]process_action_free close_receipt [15:35:17]json_value_free [15:35:17]json_value_free done [15:35:17]process_json_proto returns [15:35:17]Send response to host [15:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118129,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:35:17]free response buf [15:35:17]execute_script done [15:35:17]execute_script returns [15:35:17]free content buf [15:35:17]Sock 9.Close socket [15:35:17]Sock 9.Thread stoped [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:48]accept exits with 7 [15:36:48]New connection [15:36:48]New thread 3066551652 created [15:36:48]Thread 3066695012 joined [15:36:48]Waiting for new connection... [15:36:48] Sock 7.Parse request [15:36:48]Sock 7.Check first char [15:36:48]Sock 7.First char is OK [15:36:48]request: POST /json_proto HTTP/1.0 [15:36:48]Method: POST [15:36:48]URL: /json_proto [15:36:48]Method is POST - this is cgi request [15:36:48]url: /json_proto [15:36:48]query_string will be loaded in cgi processing [15:36:48]execute_cgi json_proto POST (null) [15:36:48]execute_cgi path=json_proto method=POST [15:36:48]POST find Content-Length [15:36:48]Host: 172.17.96.67:8080 [15:36:48]Content-Length: 677 [15:36:48]Content-Type: application/json [15:36:48] [15:36:48]POST finish read [15:36:48]Found Content-Length = 677 [15:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:48]execute_script... [15:36:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:48]POST & json_proto [15:36:48]process_json_proto [15:36:48]json parsed OK: [15:36:48]protocol is kg_v1.0 [15:36:48]action value=close_receipt [15:36:48]process_action close_receipt [15:36:48]cmd_close_receipt [15:36:48]MH_GetDate [15:36:48]Write to MH i2c: F0 00 00 45 0E 42 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 09 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 09 00 45 0E 00 91 52 22 67 47 6C 1F 67 F0 [15:36:48]GetLastDocTimeStamp 1730302515 [15:36:48]current date 1730302609 [15:36:48]FM_GetShiftState [15:36:48]SAM_PROTO_GetShiftState [15:36:48]wFMCommunicate request_size=4 [15:36:48]MH_SAM_APDU [15:36:48]CAPDU: 80 13 01 00 [15:36:48]Write to MH i2c: E2 08 00 46 0E 80 13 01 00 00 00 00 00 D1 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 46 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A9 [15:36:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:36:48]wFMCommunicate OK [15:36:48]SAM_PROTO_GetShiftState done [15:36:48]FM_GetShiftState done [15:36:48]opened in 1730246605 [15:36:48]opened+sec_in_day 1730333005 [15:36:48]quantity*price = 50041 [15:36:48]sum+1 = 50042 [15:36: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 190 30.10.2024 15:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118130 ФПД: 232493559231970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153649&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118130&fm=232493559231970&tin=02508201610067®Number=0000000000091782&sum=50000 [15:36:49]StoreToDocumentArchive [15:36:49]shift 545 fd 118130 [15:36:49]save to /storage/0545/doc_00118130 [15:36:49]save last doc name /storage/0545/doc_00118130 to /storage/kkm_last_doc_name [15:36:49]save OK [15:36:49]Clear old archive folders... [15:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:49]tlvbuf is 000E2ED0 [15:36:49]SAM_PROTO_ClearQueue [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 09 00 00 [15:36:49]Write to MH i2c: E2 08 00 53 0E 80 09 00 00 00 00 00 00 D3 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_ClearQueue done [15:36:49]KKMCreateOFDPacket [15:36:49]OFDProtocolAddRootSTLVToBuf [15:36:49]FM_MakeSignedData [15:36:49]FM_MakeSignedData [15:36:49]SAM_PROTO_SignData [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 01 02 [15:36:49]Write to MH i2c: E2 08 00 54 0E 80 0D 01 02 00 00 00 00 DB [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=255 [15:36:49]MH_SAM_APDU [15:36: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 32 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 BE 00 00 00 F4 03 04 00 91 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 72 CD 01 00 35 04 06 00 D3 [15:36:49]Write to MH i2c: E2 02 01 55 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 91 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 72 CD 01 00 35 04 06 00 D3 00 00 CD [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=10 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 02 02 05 73 A0 02 B5 E2 [15:36:49]Write to MH i2c: E2 0D 00 56 0E 80 0D 02 02 05 00 73 A0 02 B5 E2 00 00 94 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 56 0E 00 90 00 D8 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 03 02 [15:36:49]Write to MH i2c: E2 08 00 57 0E 80 0D 03 02 00 00 00 00 E0 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0B 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0B 00 57 0E 00 D1 B5 B2 3C 0D 24 31 93 90 00 4A [15:36:49]RAPDU: D1 B5 B2 3C 0D 24 31 93 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_SignData done [15:36:49]FM_MakeSignedData done [15:36:49]CreateOFDProtocolMessage [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 58 0E 80 11 00 00 00 00 00 00 E0 [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 58 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 37 [15:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:36:49]wFMCommunicate OK [15:36:49]CreateOFDProtocolMessage done [15:36:49]OFDSenderStorePacket 118130 [15:36:49]StoreOFDPacket docnum=118130 [15:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 AF D5 07 01 D3 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BE 00 00 00 F4 03 04 00 91 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 72 CD 01 00 35 04 06 00 D3 73 A0 02 B5 E2 D1 B5 B2 3C 0D 24 31 93 [15:36:49]CheckFolder [15:36:49]dirname=/storage/ofd_packets [15:36:49]CheckFolder done [15:36:49]ProducePacketName [15:36:49]name=ofd_packets/00118130 [15:36:49]NVStorageSaveData ofd_packets/00118130 [15:36:49]File name is /storage/ofd_packets/00118130 [15:36:49]Write 301 bytes [15:36:49]NVStorageSaveData done [15:36:49]OFDSenderStorePacket done [15:36:49]KKMCreateOFDPacket done [15:36:49]NVStorageSaveData kkm_last_timestamp [15:36:49]File name is /storage/kkm_last_timestamp [15:36:49]Write 4 bytes [15:36:49]NVStorageSaveData done [15:36:49]ExternCall_PrintAddStr [15:36:49]wPrintStart [15:36:49]Write to MH i2c: 01 00 00 59 0E 67 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: 01 [15:36:49]MH_I2C_Read... [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 59 0E 00 00 00 00 00 FF 0F 7C [15:36:49]RasterBufferAndPrint [15:36:49]line Счет N : (1)245926 [15:36:49]line ИНН: 02508201610067 [15:36:49]line Контрольно-Кассовый Чек [15:36:49]line ПРОДАЖА [15:36:49]line ТРК (МРК, ГНК) : 21 [15:36:49]line Товар: 2710124130 [15:36:49]line Аи-92-К-2 [15:36:49]line 7.480 * 66.90 [15:36:49]line = 500.41 [15:36:49]line НДС 12% НСП 1% [15:36:49]line > о реализуемом товаре [15:36:49]line ОКРУГЛЕНИЕ: -0.41 [15:36:49]line ИТОГО: 500.00 [15:36:49]line Внесено: 500.00 [15:36:49]line СДАЧА: 0.00 [15:36:49]line НСП 1% : 4.43 [15:36:49]line НДС 12% : 53.14 [15:36:49]line Наличными: 500.00 [15:36:49]line Безнал.: 0.00 [15:36:49]line Место: АЗС № 173 "Партнер Нефть" [15:36:49]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:36:49]line СНО: Общий режим [15:36:49]line Чек 190 30.10.2024 15:36 [15:36:49]line Смена: 545 ФФД: 1.0 [15:36:49]line ЗНМ: 0300000115 [15:36:49]line РНМ: 0000000000091782 [15:36:49]line Версия ККМ: 001 [15:36:49]line ФМ: 0000000000871767 [15:36:49]line ФД: 118130 [15:36:49]line ФПД: 232493559231970 [15:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153649&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118130&fm=232493559231970&tin=02508201610067®Number=0000000000091782&sum=50000 [15:36:50]written 0, free lines is 4095 [15:36:50]OFD Sender: Processing packet 118130 [packets to send 77, broken 76] [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00118130 [15:36:50]OFD Sender: To server: pG, [15:36:50]CommunicateWithHost lk.salyk.kg:30040 [15:36:50]ConnectInit lk.salyk.kg [15:36:50]Connected sock=10 [15:36: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 36 37 0F 01 00 00 AF D5 07 01 D3 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BE 00 00 00 F4 03 04 00 91 52 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 72 CD 01 00 35 04 06 00 D3 73 A0 02 B5 E2 D1 B5 B2 3C 0D 24 31 93 [15:36: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 36 37 4F 00 00 00 3D CC 47 00 A7 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 72 CD 01 00 F4 03 04 00 48 FE 21 67 B6 04 01 00 00 E1 BB 07 8C 52 98 F5 B3 [15:36:50]CommunicateWithHost err = 0 [15:36:50]CheckOFDResponse [15:36:50]1017 (14) - 77093643461234 [15:36:50]1041 (16) - 0000000000871767 [15:36:50]1040 (4) - 118130 [15:36:50]1012 (4) - 30.10.2024 09:37 [15:36:50]1206 (1) - 0 [15:36:50]OFD Sender: Remove packet 118130 [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00118130 [15:36:50]NVStorageDeleteData [15:36:50]Write to MH i2c: 01 00 00 83 0E 91 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 83 0E 00 00 00 00 00 B9 0C 5D [15:36:50]RasterBufferAndPrint [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]written 0, free lines is 3264 [15:36:50]MH_Cut [15:36:50]Write to MH i2c: D1 01 00 8A 0E 01 6A [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 01 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 01 00 8A 0E 00 69 [15:36:50]Write to MH i2c: 01 00 00 8B 0E 99 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:51]OFD Sender: No OFD packet to send [15:36:51]*** Cut start [15:36:51]*** Purtial cut [15:36:51]*** Stage 1: CUTSNS_PIN = 1 [15:36:51]Read from MH i2c: 01 [15:36:51]MH_I2C_Read... [15:36:51]*** Stop cut motor [15:36:51]*** Cut end [15:36:51]Read from MH i2c: 01 07 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: 01 07 00 8B 0E 00 00 00 00 00 FF 0F AE [15:36:51]process_action close_receipt done [15:36:51]requested_data is exist [15:36:51]produce_requested_data [15:36:51]requested_item fm.sn is exist - process it [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 11 00 00 [15:36:51]Write to MH i2c: E2 08 00 8C 0E 80 11 00 00 00 00 00 00 14 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 17 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 17 00 8C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6B [15:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:36:51]wFMCommunicate OK [15:36:51]requested_item fd.num is exist - process it [15:36:51]SAM_PROTO_GetFieldsCounters [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 13 00 00 [15:36:51]Write to MH i2c: E2 08 00 8D 0E 80 13 00 00 00 00 00 00 17 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 8D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 72 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [15:36:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 72 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetFieldsCounters done [15:36:52]requested_item shift.num is exist - process it [15:36:52]requested_item shift.opened is exist - process it [15:36:52]req_shift_opened [15:36:52]FM_GetShiftState [15:36:52]SAM_PROTO_GetShiftState [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 01 00 [15:36:52]Write to MH i2c: E2 08 00 8E 0E 80 13 01 00 00 00 00 00 19 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 8E 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F1 [15:36:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetShiftState done [15:36:52]FM_GetShiftState done [15:36:52]req_shift_opened done [15:36:52]requested_item shift.open_date is exist - process it [15:36:52]req_shift_open_date [15:36:52]req_shift_open_date done [15:36:52]produce_requested_data done [15:36:52]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118130,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:36:52]process_action_free close_receipt [15:36:52]json_value_free [15:36:52]json_value_free done [15:36:52]process_json_proto returns [15:36:52]Send response to host [15:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118130,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:36:52]free response buf [15:36:52]execute_script done [15:36:52]execute_script returns [15:36:52]free content buf [15:36:52]Sock 7.Close socket [15:36:52]Sock 7.Thread stoped [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:29]accept exits with 9 [15:39:29]New connection [15:39:29]New thread 3066695012 created [15:39:29]Thread 3066551652 joined [15:39:29]Waiting for new connection... [15:39:29] Sock 9.Parse request [15:39:29]Sock 9.Check first char [15:39:29]Sock 9.First char is OK [15:39:29]request: POST /json_proto HTTP/1.0 [15:39:29]Method: POST [15:39:29]URL: /json_proto [15:39:29]Method is POST - this is cgi request [15:39:29]url: /json_proto [15:39:29]query_string will be loaded in cgi processing [15:39:29]execute_cgi json_proto POST (null) [15:39:29]execute_cgi path=json_proto method=POST [15:39:29]POST find Content-Length [15:39:29]Host: 172.17.96.67:8080 [15:39:29]Content-Length: 984 [15:39:29]Content-Type: application/json [15:39:29] [15:39:29]POST finish read [15:39:29]Found Content-Length = 984 [15:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:39:29]execute_script... [15:39: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)245928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:39:29]POST & json_proto [15:39:29]process_json_proto [15:39:29]json parsed OK: [15:39:29]protocol is kg_v1.0 [15:39:29]action value=close_receipt [15:39:29]process_action close_receipt [15:39:29]cmd_close_receipt [15:39:29]MH_GetDate [15:39:29]Write to MH i2c: F0 00 00 8F 0E 8C [15:39:29]Write i2c OK [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: F0 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: F0 09 00 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: F0 09 00 8F 0E 00 33 53 22 67 47 6C 1F 67 DD [15:39:29]GetLastDocTimeStamp 1730302609 [15:39:29]current date 1730302771 [15:39:29]FM_GetShiftState [15:39:29]SAM_PROTO_GetShiftState [15:39:29]wFMCommunicate request_size=4 [15:39:29]MH_SAM_APDU [15:39:29]CAPDU: 80 13 01 00 [15:39:29]Write to MH i2c: E2 08 00 90 0E 80 13 01 00 00 00 00 00 1B [15:39:29]Write i2c OK [15:39:29]MH_I2C_Read... [15:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:29]Read from MH i2c: E2 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: E2 0E 00 [15:39:29]MH_I2C_Read... [15:39:29]Read from MH i2c: E2 0E 00 90 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F3 [15:39:29]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:39:29]wFMCommunicate OK [15:39:29]SAM_PROTO_GetShiftState done [15:39:29]FM_GetShiftState done [15:39:29]opened in 1730246605 [15:39:29]opened+sec_in_day 1730333005 [15:39:29]quantity*price = 150054 [15:39:29]sum+1 = 150055 [15:39:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 191 30.10.2024 15:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 22.77 сом ФМ: 0000000000871767 ФД: 118131 ФПД: 122937803599041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153931&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118131&fm=122937803599041&tin=02508201610067®Number=0000000000091782&sum=150000 [15:39:30]StoreToDocumentArchive [15:39:30]shift 545 fd 118131 [15:39:30]save to /storage/0545/doc_00118131 [15:39:30]save last doc name /storage/0545/doc_00118131 to /storage/kkm_last_doc_name [15:39:30]save OK [15:39:30]Clear old archive folders... [15:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:30]tlvbuf is 000FAC80 [15:39:30]SAM_PROTO_ClearQueue [15:39:30]wFMCommunicate request_size=4 [15:39:30]MH_SAM_APDU [15:39:30]CAPDU: 80 09 00 00 [15:39:30]Write to MH i2c: E2 08 00 9D 0E 80 09 00 00 00 00 00 00 1D [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:30]Read from MH i2c: E2 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 03 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [15:39:30]RAPDU: 90 00 [15:39:30]wFMCommunicate OK [15:39:30]SAM_PROTO_ClearQueue done [15:39:30]KKMCreateOFDPacket [15:39:30]OFDProtocolAddRootSTLVToBuf [15:39:30]FM_MakeSignedData [15:39:30]FM_MakeSignedData [15:39:30]SAM_PROTO_SignData [15:39:30]wFMCommunicate request_size=4 [15:39:30]MH_SAM_APDU [15:39:30]CAPDU: 80 0D 01 02 [15:39:30]Write to MH i2c: E2 08 00 9E 0E 80 0D 01 02 00 00 00 00 25 [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:30]Read from MH i2c: E2 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 03 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [15:39:30]RAPDU: 90 00 [15:39:30]wFMCommunicate OK [15:39:30]wFMCommunicate request_size=255 [15:39:30]MH_SAM_APDU [15:39: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 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 BF 00 00 00 F4 03 04 00 33 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 73 CD 01 00 35 04 06 00 6F [15:39:30]Write to MH i2c: E2 02 01 9F 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 BF 00 00 00 F4 03 04 00 33 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 73 CD 01 00 35 04 06 00 6F 00 00 8E [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [15:39:31]RAPDU: 90 00 [15:39:31]wFMCommunicate OK [15:39:31]wFMCommunicate request_size=10 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 0D 02 02 05 CF B0 1C EC C1 [15:39:31]Write to MH i2c: E2 0D 00 A0 0E 80 0D 02 02 05 00 CF B0 1C EC C1 00 00 7A [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]OFD Sender: No OFD packet to send [15:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 A0 0E 00 90 00 22 [15:39:31]RAPDU: 90 00 [15:39:31]wFMCommunicate OK [15:39:31]wFMCommunicate request_size=4 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 0D 03 02 [15:39:31]Write to MH i2c: E2 08 00 A1 0E 80 0D 03 02 00 00 00 00 2A [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 0B 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 0B 00 A1 0E 00 45 E3 0E BA 41 0D 5C 0F 90 00 D4 [15:39:31]RAPDU: 45 E3 0E BA 41 0D 5C 0F 90 00 [15:39:31]wFMCommunicate OK [15:39:31]SAM_PROTO_SignData done [15:39:31]FM_MakeSignedData done [15:39:31]CreateOFDProtocolMessage [15:39:31]wFMCommunicate request_size=4 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 11 00 00 [15:39:31]Write to MH i2c: E2 08 00 A2 0E 80 11 00 00 00 00 00 00 2A [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 17 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 17 00 A2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 81 [15:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:39:31]wFMCommunicate OK [15:39:31]CreateOFDProtocolMessage done [15:39:31]OFDSenderStorePacket 118131 [15:39:31]StoreOFDPacket docnum=118131 [15:39:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FE 36 07 01 06 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 BF 00 00 00 F4 03 04 00 33 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 73 CD 01 00 35 04 06 00 6F CF B0 1C EC C1 45 E3 0E BA 41 0D 5C 0F [15:39:31]CheckFolder [15:39:31]dirname=/storage/ofd_packets [15:39:31]CheckFolder done [15:39:31]ProducePacketName [15:39:31]name=ofd_packets/00118131 [15:39:31]NVStorageSaveData ofd_packets/00118131 [15:39:31]File name is /storage/ofd_packets/00118131 [15:39:31]Write 301 bytes [15:39:31]NVStorageSaveData done [15:39:31]OFDSenderStorePacket done [15:39:31]KKMCreateOFDPacket done [15:39:31]NVStorageSaveData kkm_last_timestamp [15:39:31]File name is /storage/kkm_last_timestamp [15:39:31]Write 4 bytes [15:39:31]NVStorageSaveData done [15:39:31]ExternCall_PrintAddStr [15:39:31]wPrintStart [15:39:31]Write to MH i2c: 01 00 00 A3 0E B1 [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: 01 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: 01 07 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 FF 0F C6 [15:39:31]RasterBufferAndPrint [15:39:31]line Счет N : (1)245928 [15:39:31]line ИНН: 02508201610067 [15:39:31]line Контрольно-Кассовый Чек [15:39:31]line ПРОДАЖА [15:39:31]line ТРК (МРК, ГНК) : 11 [15:39:31]line Товар: 2710124130 [15:39:31]line Аи-92-К-2 [15:39:31]line 22.770 * 65.90 [15:39:31]line = 1500.54 [15:39:31]line НДС 12% НСП 1% [15:39:31]line > о реализуемом товаре [15:39:31]line ОКРУГЛЕНИЕ: -0.54 [15:39:31]line ИТОГО: 1500.00 [15:39:31]line Внесено: 1500.00 [15:39:31]line СДАЧА: 0.00 [15:39:31]line НСП 1% : 13.28 [15:39:31]line НДС 12% : 159.35 [15:39:31]line Наличными: 1500.00 [15:39:31]line Безнал.: 0.00 [15:39:31]line Место: АЗС № 173 "Партнер Нефть" [15:39:31]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:39:31]line СНО: Общий режим [15:39:31]line Чек 191 30.10.2024 15:39 [15:39:31]line Смена: 545 ФФД: 1.0 [15:39:31]line ЗНМ: 0300000115 [15:39:31]line РНМ: 0000000000091782 [15:39:31]line Версия ККМ: 001 [15:39:31]line [15:39:31]line Дисконтная программа [15:39:31]line АИ-92 [15:39:31]line номер 173 [15:39:31]line сэкономлено 22.77 сом [15:39:31]line ФМ: 0000000000871767 [15:39:31]line ФД: 118131 [15:39:31]line ФПД: 122937803599041 [15:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153931&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118131&fm=122937803599041&tin=02508201610067®Number=0000000000091782&sum=150000 [15:39:31]OFD Sender: Processing packet 118131 [packets to send 77, broken 76] [15:39:31]ProducePacketName [15:39:31]name=ofd_packets/00118131 [15:39:31]OFD Sender: To server: pG, [15:39:31]CommunicateWithHost lk.salyk.kg:30040 [15:39:31]ConnectInit lk.salyk.kg [15:39:31]written 0, free lines is 4095 [15:39:31]Connected sock=10 [15:39: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 36 37 0F 01 00 00 FE 36 07 01 06 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 BF 00 00 00 F4 03 04 00 33 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 73 CD 01 00 35 04 06 00 6F CF B0 1C EC C1 45 E3 0E BA 41 0D 5C 0F [15:39: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 36 37 4F 00 00 00 52 1E 47 00 5A 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 73 CD 01 00 F4 03 04 00 EA FE 21 67 B6 04 01 00 00 01 17 9D 78 66 D9 7E 12 [15:39:32]CommunicateWithHost err = 0 [15:39:32]CheckOFDResponse [15:39:32]1017 (14) - 77093643461234 [15:39:32]1041 (16) - 0000000000871767 [15:39:32]1040 (4) - 118131 [15:39:32]1012 (4) - 30.10.2024 09:39 [15:39:32]1206 (1) - 0 [15:39:32]OFD Sender: Remove packet 118131 [15:39:32]ProducePacketName [15:39:32]name=ofd_packets/00118131 [15:39:32]NVStorageDeleteData [15:39:32]Write to MH i2c: 01 00 00 D2 0E E0 [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: 01 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: 01 07 00 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: 01 07 00 D2 0E 00 00 00 00 00 68 0C 5B [15:39:32]RasterBufferAndPrint [15:39:32]line [15:39:32]line [15:39:32]line [15:39:32]line [15:39:32]line [15:39:32]written 0, free lines is 3180 [15:39:32]MH_Cut [15:39:32]Write to MH i2c: D1 01 00 D9 0E 01 B9 [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: D1 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: D1 01 00 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: D1 01 00 D9 0E 00 B8 [15:39:32]Write to MH i2c: 01 00 00 DA 0E E8 [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]OFD Sender: No OFD packet to send [15:39:33]*** Cut start [15:39:33]*** Purtial cut [15:39:33]*** Stage 1: CUTSNS_PIN = 1 [15:39:33]Read from MH i2c: 01 [15:39:33]MH_I2C_Read... [15:39:33]*** Stop cut motor [15:39:33]*** Cut end [15:39:33]Read from MH i2c: 01 07 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: 01 07 00 DA 0E 00 00 00 00 00 FF 0F FD [15:39:33]process_action close_receipt done [15:39:33]requested_data is exist [15:39:33]produce_requested_data [15:39:33]requested_item fm.sn is exist - process it [15:39:33]wFMCommunicate request_size=4 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 11 00 00 [15:39:33]Write to MH i2c: E2 08 00 DB 0E 80 11 00 00 00 00 00 00 63 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 17 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 17 00 DB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BA [15:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:39:33]wFMCommunicate OK [15:39:33]requested_item fd.num is exist - process it [15:39:33]SAM_PROTO_GetFieldsCounters [15:39:33]wFMCommunicate request_size=4 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 13 00 00 [15:39:33]Write to MH i2c: E2 08 00 DC 0E 80 13 00 00 00 00 00 00 66 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 62 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 62 00 DC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 73 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [15:39: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 73 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:33]wFMCommunicate OK [15:39:33]SAM_PROTO_GetFieldsCounters done [15:39:33]requested_item shift.num is exist - process it [15:39:33]requested_item shift.opened is exist - process it [15:39:33]req_shift_opened [15:39:33]FM_GetShiftState [15:39:33]SAM_PROTO_GetShiftState [15:39:33]wFMCommunicate request_size=4 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 13 01 00 [15:39:33]Write to MH i2c: E2 08 00 DD 0E 80 13 01 00 00 00 00 00 68 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 0E 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 0E 00 DD 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 40 [15:39:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:39:33]wFMCommunicate OK [15:39:33]SAM_PROTO_GetShiftState done [15:39:33]FM_GetShiftState done [15:39:33]req_shift_opened done [15:39:33]requested_item shift.open_date is exist - process it [15:39:33]req_shift_open_date [15:39:33]req_shift_open_date done [15:39:33]produce_requested_data done [15:39:33]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118131,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:39:33]process_action_free close_receipt [15:39:33]json_value_free [15:39:33]json_value_free done [15:39:33]process_json_proto returns [15:39:33]Send response to host [15:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118131,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:39:33]free response buf [15:39:33]execute_script done [15:39:33]execute_script returns [15:39:33]free content buf [15:39:33]Sock 9.Close socket [15:39:33]Sock 9.Thread stoped [15:39:34]accept exits with 7 [15:39:34]New connection [15:39:34]New thread 3066551652 created [15:39:34]Thread 3066695012 joined [15:39:34]Waiting for new connection... [15:39:34] Sock 7.Parse request [15:39:34]Sock 7.Check first char [15:39:34]Sock 7.First char is OK [15:39:34]request: POST /json_proto HTTP/1.0 [15:39:34]Method: POST [15:39:34]URL: /json_proto [15:39:34]Method is POST - this is cgi request [15:39:34]url: /json_proto [15:39:34]query_string will be loaded in cgi processing [15:39:34]execute_cgi json_proto POST (null) [15:39:34]execute_cgi path=json_proto method=POST [15:39:34]POST find Content-Length [15:39:34]Host: 172.17.96.67:8080 [15:39:34]Content-Length: 677 [15:39:34]Content-Type: application/json [15:39:34] [15:39:34]POST finish read [15:39:34]Found Content-Length = 677 [15:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.830, "sum" : 390.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:34]execute_script... [15:39:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.830, "sum" : 390.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:34]POST & json_proto [15:39:34]process_json_proto [15:39:34]json parsed OK: [15:39:34]protocol is kg_v1.0 [15:39:34]action value=close_receipt [15:39:34]process_action close_receipt [15:39:34]cmd_close_receipt [15:39:34]MH_GetDate [15:39:34]Write to MH i2c: F0 00 00 DE 0E DB [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: F0 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: F0 09 00 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: F0 09 00 DE 0E 00 37 53 22 67 47 6C 1F 67 30 [15:39:34]GetLastDocTimeStamp 1730302771 [15:39:34]current date 1730302775 [15:39:34]FM_GetShiftState [15:39:34]SAM_PROTO_GetShiftState [15:39:34]wFMCommunicate request_size=4 [15:39:34]MH_SAM_APDU [15:39:34]CAPDU: 80 13 01 00 [15:39:34]Write to MH i2c: E2 08 00 DF 0E 80 13 01 00 00 00 00 00 6A [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:34]Read from MH i2c: E2 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 0E 00 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 0E 00 DF 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 42 [15:39:34]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:39:34]wFMCommunicate OK [15:39:34]SAM_PROTO_GetShiftState done [15:39:34]FM_GetShiftState done [15:39:34]opened in 1730246605 [15:39:34]opened+sec_in_day 1730333005 [15:39:34]quantity*price = 39002 [15:39:34]sum+1 = 39004 [15:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 192 30.10.2024 15:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118132 ФПД: 24700054815410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153935&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118132&fm=24700054815410&tin=02508201610067®Number=0000000000091782&sum=39000 [15:39:35]StoreToDocumentArchive [15:39:35]shift 545 fd 118132 [15:39:35]save to /storage/0545/doc_00118132 [15:39:35]save last doc name /storage/0545/doc_00118132 to /storage/kkm_last_doc_name [15:39:35]save OK [15:39:35]Clear old archive folders... [15:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:35]tlvbuf is 0014EC50 [15:39:35]SAM_PROTO_ClearQueue [15:39:35]wFMCommunicate request_size=4 [15:39:35]MH_SAM_APDU [15:39:35]CAPDU: 80 09 00 00 [15:39:35]Write to MH i2c: E2 08 00 EC 0E 80 09 00 00 00 00 00 00 6C [15:39:35]Write i2c OK [15:39:35]MH_I2C_Read... [15:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:35]Read from MH i2c: E2 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 03 00 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 03 00 EC 0E 00 90 00 6E [15:39:35]RAPDU: 90 00 [15:39:35]wFMCommunicate OK [15:39:35]SAM_PROTO_ClearQueue done [15:39:35]KKMCreateOFDPacket [15:39:35]OFDProtocolAddRootSTLVToBuf [15:39:35]FM_MakeSignedData [15:39:35]FM_MakeSignedData [15:39:35]SAM_PROTO_SignData [15:39:35]wFMCommunicate request_size=4 [15:39:35]MH_SAM_APDU [15:39:35]CAPDU: 80 0D 01 02 [15:39:35]Write to MH i2c: E2 08 00 ED 0E 80 0D 01 02 00 00 00 00 74 [15:39:35]Write i2c OK [15:39:35]MH_I2C_Read... [15:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:35]Read from MH i2c: E2 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 03 00 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 03 00 ED 0E 00 90 00 6F [15:39:35]RAPDU: 90 00 [15:39:35]wFMCommunicate OK [15:39:35]wFMCommunicate request_size=255 [15:39:35]MH_SAM_APDU [15:39:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 74 CD 01 00 35 04 06 00 16 [15:39:35]Write to MH i2c: E2 02 01 EE 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 74 CD 01 00 35 04 06 00 16 00 00 52 [15:39:35]Write i2c OK [15:39:35]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 EE 0E 00 90 00 70 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=10 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 02 02 05 76 ED FE 42 B2 [15:39:36]Write to MH i2c: E2 0D 00 EF 0E 80 0D 02 02 05 00 76 ED FE 42 B2 00 00 D6 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 EF 0E 00 90 00 71 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 03 02 [15:39:36]Write to MH i2c: E2 08 00 F0 0E 80 0D 03 02 00 00 00 00 79 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0B 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0B 00 F0 0E 00 89 EC 8B 66 44 48 49 2C 90 00 E1 [15:39:36]RAPDU: 89 EC 8B 66 44 48 49 2C 90 00 [15:39:36]wFMCommunicate OK [15:39:36]SAM_PROTO_SignData done [15:39:36]FM_MakeSignedData done [15:39:36]CreateOFDProtocolMessage [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 11 00 00 [15:39:36]Write to MH i2c: E2 08 00 F1 0E 80 11 00 00 00 00 00 00 79 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 17 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 17 00 F1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D0 [15:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:39:36]wFMCommunicate OK [15:39:36]CreateOFDProtocolMessage done [15:39:36]OFDSenderStorePacket 118132 [15:39:36]StoreOFDPacket docnum=118132 [15:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7F E7 07 01 5F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 74 CD 01 00 35 04 06 00 16 76 ED FE 42 B2 89 EC 8B 66 44 48 49 2C [15:39:36]CheckFolder [15:39:36]dirname=/storage/ofd_packets [15:39:36]CheckFolder done [15:39:36]ProducePacketName [15:39:36]name=ofd_packets/00118132 [15:39:36]NVStorageSaveData ofd_packets/00118132 [15:39:36]File name is /storage/ofd_packets/00118132 [15:39:36]Write 301 bytes [15:39:36]NVStorageSaveData done [15:39:36]OFDSenderStorePacket done [15:39:36]KKMCreateOFDPacket done [15:39:36]NVStorageSaveData kkm_last_timestamp [15:39:36]File name is /storage/kkm_last_timestamp [15:39:36]Write 4 bytes [15:39:36]NVStorageSaveData done [15:39:36]ExternCall_PrintAddStr [15:39:36]wPrintStart [15:39:36]Write to MH i2c: 01 00 00 F2 0E 00 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: 01 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: 01 07 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: 01 07 00 F2 0E 00 00 00 00 00 FF 0F 15 [15:39:36]RasterBufferAndPrint [15:39:36]line Счет N : (1)245929 [15:39:36]line ИНН: 02508201610067 [15:39:36]line Контрольно-Кассовый Чек [15:39:36]line ПРОДАЖА [15:39:36]line ТРК (МРК, ГНК) : 21 [15:39:36]line Товар: 2710124130 [15:39:36]line Аи-92-К-2 [15:39:36]line 5.830 * 66.90 [15:39:36]line = 390.03 [15:39:36]line НДС 12% НСП 1% [15:39:36]line > о реализуемом товаре [15:39:36]line ОКРУГЛЕНИЕ: -0.03 [15:39:36]line ИТОГО: 390.00 [15:39:36]line Внесено: 390.00 [15:39:36]line СДАЧА: 0.00 [15:39:36]line НСП 1% : 3.45 [15:39:36]line НДС 12% : 41.42 [15:39:36]line Наличными: 390.00 [15:39:36]line Безнал.: 0.00 [15:39:36]line Место: АЗС № 173 "Партнер Нефть" [15:39:36]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:39:36]line СНО: Общий режим [15:39:36]line Чек 192 30.10.2024 15:39 [15:39:36]line Смена: 545 ФФД: 1.0 [15:39:36]line ЗНМ: 0300000115 [15:39:36]line РНМ: 0000000000091782 [15:39:36]line Версия ККМ: 001 [15:39:36]line ФМ: 0000000000871767 [15:39:36]line ФД: 118132 [15:39:36]line ФПД: 24700054815410 [15:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153935&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118132&fm=24700054815410&tin=02508201610067®Number=0000000000091782&sum=39000 [15:39:36]OFD Sender: Processing packet 118132 [packets to send 77, broken 76] [15:39:36]ProducePacketName [15:39:36]name=ofd_packets/00118132 [15:39:36]OFD Sender: To server: pG, [15:39:36]CommunicateWithHost lk.salyk.kg:30040 [15:39:36]ConnectInit lk.salyk.kg [15:39:36]written 0, free lines is 4095 [15:39:36]Connected sock=9 [15:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7F E7 07 01 5F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 53 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 74 CD 01 00 35 04 06 00 16 76 ED FE 42 B2 89 EC 8B 66 44 48 49 2C [15:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 5F 6D 47 00 C5 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 36 37 10 04 04 00 74 CD 01 00 F4 03 04 00 EF FE 21 67 B6 04 01 00 00 55 1F 99 4F 4E B0 C7 BD [15:39:36]CommunicateWithHost err = 0 [15:39:36]CheckOFDResponse [15:39:36]1017 (14) - 77093643461234 [15:39:36]1041 (16) - 0000000000871767 [15:39:36]1040 (4) - 118132 [15:39:36]1012 (4) - 30.10.2024 09:39 [15:39:36]1206 (1) - 0 [15:39:36]OFD Sender: Remove packet 118132 [15:39:36]ProducePacketName [15:39:36]name=ofd_packets/00118132 [15:39:36]NVStorageDeleteData [15:39:37]Write to MH i2c: 01 00 00 1C 0F 2B [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 1C 0F 00 00 00 00 00 CF 0C 0D [15:39:37]RasterBufferAndPrint [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]written 0, free lines is 3294 [15:39:37]MH_Cut [15:39:37]Write to MH i2c: D1 01 00 23 0F 01 04 [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 01 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 01 00 23 0F 00 03 [15:39:37]Write to MH i2c: 01 00 00 24 0F 33 [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]OFD Sender: No OFD packet to send [15:39:37]*** Cut start [15:39:37]*** Purtial cut [15:39:37]*** Stage 1: CUTSNS_PIN = 1 [15:39:38]Read from MH i2c: 01 [15:39:38]MH_I2C_Read... [15:39:38]*** Stop cut motor [15:39:38]*** Cut end [15:39:38]Read from MH i2c: 01 07 00 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: 01 07 00 24 0F 00 00 00 00 00 FF 0F 48 [15:39:38]process_action close_receipt done [15:39:38]requested_data is exist [15:39:38]produce_requested_data [15:39:38]requested_item fm.sn is exist - process it [15:39:38]wFMCommunicate request_size=4 [15:39:38]MH_SAM_APDU [15:39:38]CAPDU: 80 11 00 00 [15:39:38]Write to MH i2c: E2 08 00 25 0F 80 11 00 00 00 00 00 00 AE [15:39:38]Write i2c OK [15:39:38]MH_I2C_Read... [15:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:38]Read from MH i2c: E2 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 17 00 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 17 00 25 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 05 [15:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:39:38]wFMCommunicate OK [15:39:38]requested_item fd.num is exist - process it [15:39:38]SAM_PROTO_GetFieldsCounters [15:39:38]wFMCommunicate request_size=4 [15:39:38]MH_SAM_APDU [15:39:38]CAPDU: 80 13 00 00 [15:39:38]Write to MH i2c: E2 08 00 26 0F 80 13 00 00 00 00 00 00 B1 [15:39:38]Write i2c OK [15:39:38]MH_I2C_Read... [15:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:38]Read from MH i2c: E2 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 62 00 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 62 00 26 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 74 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [15:39:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 74 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:38]wFMCommunicate OK [15:39:38]SAM_PROTO_GetFieldsCounters done [15:39:38]requested_item shift.num is exist - process it [15:39:38]requested_item shift.opened is exist - process it [15:39:38]req_shift_opened [15:39:38]FM_GetShiftState [15:39:38]SAM_PROTO_GetShiftState [15:39:38]wFMCommunicate request_size=4 [15:39:38]MH_SAM_APDU [15:39:38]CAPDU: 80 13 01 00 [15:39:38]Write to MH i2c: E2 08 00 27 0F 80 13 01 00 00 00 00 00 B3 [15:39:38]Write i2c OK [15:39:38]MH_I2C_Read... [15:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:38]Read from MH i2c: E2 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 0E 00 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 0E 00 27 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8B [15:39:38]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:39:38]wFMCommunicate OK [15:39:38]SAM_PROTO_GetShiftState done [15:39:38]FM_GetShiftState done [15:39:38]req_shift_opened done [15:39:38]requested_item shift.open_date is exist - process it [15:39:38]req_shift_open_date [15:39:38]req_shift_open_date done [15:39:38]produce_requested_data done [15:39:38]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118132,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:39:38]process_action_free close_receipt [15:39:38]json_value_free [15:39:38]json_value_free done [15:39:38]process_json_proto returns [15:39:38]Send response to host [15:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118132,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:39:38]free response buf [15:39:38]execute_script done [15:39:38]execute_script returns [15:39:38]free content buf [15:39:38]Sock 7.Close socket [15:39:38]Sock 7.Thread stoped [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:45]accept exits with 10 [15:43:45]New connection [15:43:45]New thread 3066695012 created [15:43:45]Thread 3066551652 joined [15:43:45]Waiting for new connection... [15:43:45] Sock 10.Parse request [15:43:45]Sock 10.Check first char [15:43:45]Sock 10.First char is OK [15:43:45]request: POST /json_proto HTTP/1.0 [15:43:45]Method: POST [15:43:45]URL: /json_proto [15:43:45]Method is POST - this is cgi request [15:43:45]url: /json_proto [15:43:45]query_string will be loaded in cgi processing [15:43:45]execute_cgi json_proto POST (null) [15:43:45]execute_cgi path=json_proto method=POST [15:43:45]POST find Content-Length [15:43:45]Host: 172.17.96.67:8080 [15:43:45]Content-Length: 984 [15:43:45]Content-Type: application/json [15:43:45] [15:43:45]POST finish read [15:43:45]Found Content-Length = 984 [15:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 25.800, "sum" : 1700.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.80 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:45]execute_script... [15:43: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)245930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 25.800, "sum" : 1700.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 173\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.80 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:45]POST & json_proto [15:43:45]process_json_proto [15:43:45]json parsed OK: [15:43:45]protocol is kg_v1.0 [15:43:45]action value=close_receipt [15:43:45]process_action close_receipt [15:43:45]cmd_close_receipt [15:43:45]MH_GetDate [15:43:45]Write to MH i2c: F0 00 00 28 0F 26 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 09 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 09 00 28 0F 00 32 54 22 67 47 6C 1F 67 77 [15:43:45]GetLastDocTimeStamp 1730302775 [15:43:45]current date 1730303026 [15:43:45]FM_GetShiftState [15:43:45]SAM_PROTO_GetShiftState [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 13 01 00 [15:43:45]Write to MH i2c: E2 08 00 29 0F 80 13 01 00 00 00 00 00 B5 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0E 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0E 00 29 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8D [15:43:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:43:45]wFMCommunicate OK [15:43:45]SAM_PROTO_GetShiftState done [15:43:45]FM_GetShiftState done [15:43:45]opened in 1730246605 [15:43:45]opened+sec_in_day 1730333005 [15:43:45]quantity*price = 170022 [15:43:45]sum+1 = 170023 [15:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.55 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 193 30.10.2024 15:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Дисконтная программа АИ-92 номер 173 сэкономлено 25.80 сом ФМ: 0000000000871767 ФД: 118133 ФПД: 272432588852580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154346&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118133&fm=272432588852580&tin=02508201610067®Number=0000000000091782&sum=170000 [15:43:46]StoreToDocumentArchive [15:43:46]shift 545 fd 118133 [15:43:46]save to /storage/0545/doc_00118133 [15:43:46]save last doc name /storage/0545/doc_00118133 to /storage/kkm_last_doc_name [15:43:46]save OK [15:43:46]Clear old archive folders... [15:43:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:46]tlvbuf is 000FAB40 [15:43:46]SAM_PROTO_ClearQueue [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 09 00 00 [15:43:46]Write to MH i2c: E2 08 00 36 0F 80 09 00 00 00 00 00 00 B7 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 36 0F 00 90 00 B9 [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_ClearQueue done [15:43:46]KKMCreateOFDPacket [15:43:46]OFDProtocolAddRootSTLVToBuf [15:43:46]FM_MakeSignedData [15:43:46]FM_MakeSignedData [15:43:46]SAM_PROTO_SignData [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 01 02 [15:43:46]Write to MH i2c: E2 08 00 37 0F 80 0D 01 02 00 00 00 00 BF [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 37 0F 00 90 00 BA [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=255 [15:43:46]MH_SAM_APDU [15:43: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 32 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 32 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 75 CD 01 00 35 04 06 00 F7 [15:43:46]Write to MH i2c: E2 02 01 38 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 32 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 75 CD 01 00 35 04 06 00 F7 00 00 C3 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 38 0F 00 90 00 BB [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=10 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 02 02 05 C6 A7 AF 0D 64 [15:43:46]Write to MH i2c: E2 0D 00 39 0F 80 0D 02 02 05 00 C6 A7 AF 0D 64 00 00 59 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 39 0F 00 90 00 BC [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 03 02 [15:43:46]Write to MH i2c: E2 08 00 3A 0F 80 0D 03 02 00 00 00 00 C4 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0B 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0B 00 3A 0F 00 D0 7B 0D C7 76 69 D5 67 90 00 FF [15:43:46]RAPDU: D0 7B 0D C7 76 69 D5 67 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_SignData done [15:43:46]FM_MakeSignedData done [15:43:46]CreateOFDProtocolMessage [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 11 00 00 [15:43:46]Write to MH i2c: E2 08 00 3B 0F 80 11 00 00 00 00 00 00 C4 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 17 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 17 00 3B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1B [15:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:43:46]wFMCommunicate OK [15:43:46]CreateOFDProtocolMessage done [15:43:46]OFDSenderStorePacket 118133 [15:43:46]StoreOFDPacket docnum=118133 [15:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EC E2 07 01 BC 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 32 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 75 CD 01 00 35 04 06 00 F7 C6 A7 AF 0D 64 D0 7B 0D C7 76 69 D5 67 [15:43:46]CheckFolder [15:43:46]dirname=/storage/ofd_packets [15:43:46]CheckFolder done [15:43:46]ProducePacketName [15:43:46]name=ofd_packets/00118133 [15:43:46]NVStorageSaveData ofd_packets/00118133 [15:43:46]File name is /storage/ofd_packets/00118133 [15:43:46]Write 301 bytes [15:43:46]NVStorageSaveData done [15:43:46]OFDSenderStorePacket done [15:43:46]KKMCreateOFDPacket done [15:43:46]NVStorageSaveData kkm_last_timestamp [15:43:46]File name is /storage/kkm_last_timestamp [15:43:46]Write 4 bytes [15:43:46]NVStorageSaveData done [15:43:46]ExternCall_PrintAddStr [15:43:46]wPrintStart [15:43:46]Write to MH i2c: 01 00 00 3C 0F 4B [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 07 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 FF 0F 60 [15:43:46]RasterBufferAndPrint [15:43:46]line Счет N : (1)245930 [15:43:46]line ИНН: 02508201610067 [15:43:46]line Контрольно-Кассовый Чек [15:43:46]line ПРОДАЖА [15:43:46]line ТРК (МРК, ГНК) : 11 [15:43:46]line Товар: 2710124130 [15:43:46]line Аи-92-К-2 [15:43:46]line 25.800 * 65.90 [15:43:46]line = 1700.22 [15:43:46]line НДС 12% НСП 1% [15:43:46]line > о реализуемом товаре [15:43:46]line ОКРУГЛЕНИЕ: -0.22 [15:43:46]line ИТОГО: 1700.00 [15:43:46]line Внесено: 1700.00 [15:43:46]line СДАЧА: 0.00 [15:43:46]line НСП 1% : 15.05 [15:43:46]line НДС 12% : 180.55 [15:43:46]line Наличными: 1700.00 [15:43:46]line Безнал.: 0.00 [15:43:46]line Место: АЗС № 173 "Партнер Нефть" [15:43:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:43:46]line СНО: Общий режим [15:43:46]line Чек 193 30.10.2024 15:43 [15:43:46]line Смена: 545 ФФД: 1.0 [15:43:46]line ЗНМ: 0300000115 [15:43:46]line РНМ: 0000000000091782 [15:43:46]line Версия ККМ: 001 [15:43:46]line [15:43:46]line Дисконтная программа [15:43:46]line АИ-92 [15:43:46]line номер 173 [15:43:46]line сэкономлено 25.80 сом [15:43:46]line ФМ: 0000000000871767 [15:43:46]line ФД: 118133 [15:43:46]line ФПД: 272432588852580 [15:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154346&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118133&fm=272432588852580&tin=02508201610067®Number=0000000000091782&sum=170000 [15:43:47]OFD Sender: Processing packet 118133 [packets to send 77, broken 76] [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00118133 [15:43:47]OFD Sender: To server: pG, [15:43:47]CommunicateWithHost lk.salyk.kg:30040 [15:43:47]ConnectInit lk.salyk.kg [15:43:47]written 0, free lines is 4095 [15:43:47]Connected sock=9 [15:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EC E2 07 01 BC 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 32 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 75 CD 01 00 35 04 06 00 F7 C6 A7 AF 0D 64 D0 7B 0D C7 76 69 D5 67 [15:43: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 36 37 4F 00 00 00 BD 3B 47 00 8C 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 75 CD 01 00 F4 03 04 00 E9 FF 21 67 B6 04 01 00 00 26 92 9C 8F 8F C6 E9 AB [15:43:47]CommunicateWithHost err = 0 [15:43:47]CheckOFDResponse [15:43:47]1017 (14) - 77093643461234 [15:43:47]1041 (16) - 0000000000871767 [15:43:47]1040 (4) - 118133 [15:43:47]1012 (4) - 30.10.2024 09:44 [15:43:47]1206 (1) - 0 [15:43:47]OFD Sender: Remove packet 118133 [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00118133 [15:43:47]NVStorageDeleteData [15:43:47]Write to MH i2c: 01 00 00 6B 0F 7A [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 6B 0F 00 00 00 00 00 5E 0C EB [15:43:47]RasterBufferAndPrint [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]written 0, free lines is 3173 [15:43:47]MH_Cut [15:43:47]Write to MH i2c: D1 01 00 72 0F 01 53 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 01 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 01 00 72 0F 00 52 [15:43:47]Write to MH i2c: 01 00 00 73 0F 82 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:48]OFD Sender: No OFD packet to send [15:43:48]*** Cut start [15:43:48]*** Purtial cut [15:43:48]*** Stage 1: CUTSNS_PIN = 1 [15:43:48]Read from MH i2c: 01 [15:43:48]MH_I2C_Read... [15:43:48]*** Stop cut motor [15:43:48]*** Cut end [15:43:48]Read from MH i2c: 01 07 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 73 0F 00 00 00 00 00 FF 0F 97 [15:43:48]process_action close_receipt done [15:43:48]requested_data is exist [15:43:48]produce_requested_data [15:43:48]requested_item fm.sn is exist - process it [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 11 00 00 [15:43:48]Write to MH i2c: E2 08 00 74 0F 80 11 00 00 00 00 00 00 FD [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 74 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 54 [15:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:43:49]wFMCommunicate OK [15:43:49]requested_item fd.num is exist - process it [15:43:49]SAM_PROTO_GetFieldsCounters [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 00 00 [15:43:49]Write to MH i2c: E2 08 00 75 0F 80 13 00 00 00 00 00 00 00 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 75 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 75 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [15:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 75 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetFieldsCounters done [15:43:49]requested_item shift.num is exist - process it [15:43:49]requested_item shift.opened is exist - process it [15:43:49]req_shift_opened [15:43:49]FM_GetShiftState [15:43:49]SAM_PROTO_GetShiftState [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 01 00 [15:43:49]Write to MH i2c: E2 08 00 76 0F 80 13 01 00 00 00 00 00 02 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 0E 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 0E 00 76 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DA [15:43:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetShiftState done [15:43:49]FM_GetShiftState done [15:43:49]req_shift_opened done [15:43:49]requested_item shift.open_date is exist - process it [15:43:49]req_shift_open_date [15:43:49]req_shift_open_date done [15:43:49]produce_requested_data done [15:43:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118133,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:43:49]process_action_free close_receipt [15:43:49]json_value_free [15:43:49]json_value_free done [15:43:49]process_json_proto returns [15:43:49]Send response to host [15:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118133,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:43:49]free response buf [15:43:49]execute_script done [15:43:49]execute_script returns [15:43:49]free content buf [15:43:49]Sock 10.Close socket [15:43:49]Sock 10.Thread stoped [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:43]accept exits with 7 [15:44:43]New connection [15:44:43]New thread 3066551652 created [15:44:43]Thread 3066695012 joined [15:44:43]Waiting for new connection... [15:44:43] Sock 7.Parse request [15:44:43]Sock 7.Check first char [15:44:43]Sock 7.First char is OK [15:44:43]request: POST /json_proto HTTP/1.0 [15:44:43]Method: POST [15:44:43]URL: /json_proto [15:44:43]Method is POST - this is cgi request [15:44:43]url: /json_proto [15:44:43]query_string will be loaded in cgi processing [15:44:43]execute_cgi json_proto POST (null) [15:44:43]execute_cgi path=json_proto method=POST [15:44:43]POST find Content-Length [15:44:43]Host: 172.17.96.67:8080 [15:44:43]Content-Length: 679 [15:44:43]Content-Type: application/json [15:44:43] [15:44:43]POST finish read [15:44:43]Found Content-Length = 679 [15:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:44:43]execute_script... [15:44: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)245931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:44:43]POST & json_proto [15:44:43]process_json_proto [15:44:43]json parsed OK: [15:44:43]protocol is kg_v1.0 [15:44:43]action value=close_receipt [15:44:43]process_action close_receipt [15:44:43]cmd_close_receipt [15:44:43]MH_GetDate [15:44:43]Write to MH i2c: F0 00 00 77 0F 75 [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: F0 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: F0 09 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: F0 09 00 77 0F 00 6C 54 22 67 47 6C 1F 67 00 [15:44:43]GetLastDocTimeStamp 1730303026 [15:44:43]current date 1730303084 [15:44:43]FM_GetShiftState [15:44:43]SAM_PROTO_GetShiftState [15:44:43]wFMCommunicate request_size=4 [15:44:43]MH_SAM_APDU [15:44:43]CAPDU: 80 13 01 00 [15:44:43]Write to MH i2c: E2 08 00 78 0F 80 13 01 00 00 00 00 00 04 [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:43]Read from MH i2c: E2 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 0E 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 0E 00 78 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DC [15:44:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:44:43]wFMCommunicate OK [15:44:43]SAM_PROTO_GetShiftState done [15:44:43]FM_GetShiftState done [15:44:43]opened in 1730246605 [15:44:43]opened+sec_in_day 1730333005 [15:44:43]quantity*price = 150037 [15:44:43]sum+1 = 150039 [15:44:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 194 30.10.2024 15:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118134 ФПД: 111636927561248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154444&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118134&fm=111636927561248&tin=02508201610067®Number=0000000000091782&sum=150000 [15:44:44]StoreToDocumentArchive [15:44:44]shift 545 fd 118134 [15:44:44]save to /storage/0545/doc_00118134 [15:44:44]save last doc name /storage/0545/doc_00118134 to /storage/kkm_last_doc_name [15:44:44]save OK [15:44:44]Clear old archive folders... [15:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:44:44]tlvbuf is 000E5AB0 [15:44:44]SAM_PROTO_ClearQueue [15:44:44]wFMCommunicate request_size=4 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 09 00 00 [15:44:44]Write to MH i2c: E2 08 00 85 0F 80 09 00 00 00 00 00 00 06 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 85 0F 00 90 00 08 [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]SAM_PROTO_ClearQueue done [15:44:44]KKMCreateOFDPacket [15:44:44]OFDProtocolAddRootSTLVToBuf [15:44:44]FM_MakeSignedData [15:44:44]FM_MakeSignedData [15:44:44]SAM_PROTO_SignData [15:44:44]wFMCommunicate request_size=4 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 01 02 [15:44:44]Write to MH i2c: E2 08 00 86 0F 80 0D 01 02 00 00 00 00 0E [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 86 0F 00 90 00 09 [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]wFMCommunicate request_size=255 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 6C 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 76 CD 01 00 35 04 06 00 65 88 7F 69 [15:44:44]Write to MH i2c: E2 02 01 87 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 6C 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 76 CD 01 00 35 04 06 00 65 88 7F 69 00 00 54 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 87 0F 00 90 00 0A [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]wFMCommunicate request_size=7 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 02 02 02 3E 20 [15:44:44]Write to MH i2c: E2 0A 00 88 0F 80 0D 02 02 02 00 3E 20 00 00 73 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 88 0F 00 90 00 0B [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]wFMCommunicate request_size=4 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 03 02 [15:44:44]Write to MH i2c: E2 08 00 89 0F 80 0D 03 02 00 00 00 00 13 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0B 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0B 00 89 0F 00 7C E4 9F 79 FB B7 CB 8B 90 00 94 [15:44:45]RAPDU: 7C E4 9F 79 FB B7 CB 8B 90 00 [15:44:45]wFMCommunicate OK [15:44:45]SAM_PROTO_SignData done [15:44:45]FM_MakeSignedData done [15:44:45]CreateOFDProtocolMessage [15:44:45]wFMCommunicate request_size=4 [15:44:45]MH_SAM_APDU [15:44:45]CAPDU: 80 11 00 00 [15:44:45]Write to MH i2c: E2 08 00 8A 0F 80 11 00 00 00 00 00 00 13 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 17 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 17 00 8A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6A [15:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:44:45]wFMCommunicate OK [15:44:45]CreateOFDProtocolMessage done [15:44:45]OFDSenderStorePacket 118134 [15:44:45]StoreOFDPacket docnum=118134 [15:44:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 8E E5 04 01 FA 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 32 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 C2 00 00 00 F4 03 04 00 6C 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 76 CD 01 00 35 04 06 00 65 88 7F 69 3E 20 7C E4 9F 79 FB B7 CB 8B [15:44:45]CheckFolder [15:44:45]dirname=/storage/ofd_packets [15:44:45]CheckFolder done [15:44:45]ProducePacketName [15:44:45]name=ofd_packets/00118134 [15:44:45]NVStorageSaveData ofd_packets/00118134 [15:44:45]File name is /storage/ofd_packets/00118134 [15:44:45]Write 298 bytes [15:44:45]NVStorageSaveData done [15:44:45]OFDSenderStorePacket done [15:44:45]KKMCreateOFDPacket done [15:44:45]NVStorageSaveData kkm_last_timestamp [15:44:45]File name is /storage/kkm_last_timestamp [15:44:45]Write 4 bytes [15:44:45]NVStorageSaveData done [15:44:45]ExternCall_PrintAddStr [15:44:45]wPrintStart [15:44:45]Write to MH i2c: 01 00 00 8B 0F 9A [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 FF 0F AF [15:44:45]RasterBufferAndPrint [15:44:45]line Счет N : (1)245931 [15:44:45]line ИНН: 02508201610067 [15:44:45]line Контрольно-Кассовый Чек [15:44:45]line ПРОДАЖА [15:44:45]line ТРК (МРК, ГНК) : 23 [15:44:45]line Товар: 2710194210 [15:44:45]line ДТ-К-2 [15:44:45]line 19.690 * 76.20 [15:44:45]line = 1500.38 [15:44:45]line НДС 12% НСП 1% [15:44:45]line > о реализуемом товаре [15:44:45]line ОКРУГЛЕНИЕ: -0.38 [15:44:45]line ИТОГО: 1500.00 [15:44:45]line Внесено: 1500.00 [15:44:45]line СДАЧА: 0.00 [15:44:45]line НСП 1% : 13.28 [15:44:45]line НДС 12% : 159.33 [15:44:45]line Наличными: 1500.00 [15:44:45]line Безнал.: 0.00 [15:44:45]line Место: АЗС № 173 "Партнер Нефть" [15:44:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:44:45]line СНО: Общий режим [15:44:45]line Чек 194 30.10.2024 15:44 [15:44:45]line Смена: 545 ФФД: 1.0 [15:44:45]line ЗНМ: 0300000115 [15:44:45]line РНМ: 0000000000091782 [15:44:45]line Версия ККМ: 001 [15:44:45]line ФМ: 0000000000871767 [15:44:45]line ФД: 118134 [15:44:45]line ФПД: 111636927561248 [15:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154444&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118134&fm=111636927561248&tin=02508201610067®Number=0000000000091782&sum=150000 [15:44:45]OFD Sender: Processing packet 118134 [packets to send 77, broken 76] [15:44:45]ProducePacketName [15:44:45]name=ofd_packets/00118134 [15:44:45]OFD Sender: To server: pG, [15:44:45]CommunicateWithHost lk.salyk.kg:30040 [15:44:45]ConnectInit lk.salyk.kg [15:44:45]written 0, free lines is 4095 [15:44:45]Connected sock=10 [15:44: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 36 37 0C 01 00 00 8E E5 04 01 FA 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 32 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 C2 00 00 00 F4 03 04 00 6C 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 76 CD 01 00 35 04 06 00 65 88 7F 69 3E 20 7C E4 9F 79 FB B7 CB 8B [15:44: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 36 37 4F 00 00 00 11 D9 47 00 A7 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 36 37 10 04 04 00 76 CD 01 00 F4 03 04 00 24 00 22 67 B6 04 01 00 00 44 A2 8C 89 AA E0 9D 5F [15:44:45]CommunicateWithHost err = 0 [15:44:45]CheckOFDResponse [15:44:45]1017 (14) - 77093643461234 [15:44:45]1041 (16) - 0000000000871767 [15:44:45]1040 (4) - 118134 [15:44:45]1012 (4) - 30.10.2024 09:45 [15:44:45]1206 (1) - 0 [15:44:45]OFD Sender: Remove packet 118134 [15:44:45]ProducePacketName [15:44:45]name=ofd_packets/00118134 [15:44:45]NVStorageDeleteData [15:44:45]Write to MH i2c: 01 00 00 B5 0F C4 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 B5 0F 00 00 00 00 00 B4 0C 8B [15:44:45]RasterBufferAndPrint [15:44:45]line [15:44:45]line [15:44:45]line [15:44:45]line [15:44:45]line [15:44:45]written 0, free lines is 3260 [15:44:45]MH_Cut [15:44:45]Write to MH i2c: D1 01 00 BC 0F 01 9D [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: D1 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: D1 01 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: D1 01 00 BC 0F 00 9C [15:44:45]Write to MH i2c: 01 00 00 BD 0F CC [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:46]OFD Sender: No OFD packet to send [15:44:46]*** Cut start [15:44:46]*** Purtial cut [15:44:46]*** Stage 1: CUTSNS_PIN = 1 [15:44:46]Read from MH i2c: 01 [15:44:47]MH_I2C_Read... [15:44:47]*** Stop cut motor [15:44:47]*** Cut end [15:44:47]Read from MH i2c: 01 07 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 07 00 BD 0F 00 00 00 00 00 FF 0F E1 [15:44:47]process_action close_receipt done [15:44:47]requested_data is exist [15:44:47]produce_requested_data [15:44:47]requested_item fm.sn is exist - process it [15:44:47]wFMCommunicate request_size=4 [15:44:47]MH_SAM_APDU [15:44:47]CAPDU: 80 11 00 00 [15:44:47]Write to MH i2c: E2 08 00 BE 0F 80 11 00 00 00 00 00 00 47 [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:47]Read from MH i2c: E2 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 17 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 17 00 BE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9E [15:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:44:47]wFMCommunicate OK [15:44:47]requested_item fd.num is exist - process it [15:44:47]SAM_PROTO_GetFieldsCounters [15:44:47]wFMCommunicate request_size=4 [15:44:47]MH_SAM_APDU [15:44:47]CAPDU: 80 13 00 00 [15:44:47]Write to MH i2c: E2 08 00 BF 0F 80 13 00 00 00 00 00 00 4A [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:47]Read from MH i2c: E2 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 62 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 62 00 BF 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 76 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [15:44: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 76 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:47]wFMCommunicate OK [15:44:47]SAM_PROTO_GetFieldsCounters done [15:44:47]requested_item shift.num is exist - process it [15:44:47]requested_item shift.opened is exist - process it [15:44:47]req_shift_opened [15:44:47]FM_GetShiftState [15:44:47]SAM_PROTO_GetShiftState [15:44:47]wFMCommunicate request_size=4 [15:44:47]MH_SAM_APDU [15:44:47]CAPDU: 80 13 01 00 [15:44:47]Write to MH i2c: E2 08 00 C0 0F 80 13 01 00 00 00 00 00 4C [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:47]Read from MH i2c: E2 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 0E 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 0E 00 C0 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 24 [15:44:47]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:44:47]wFMCommunicate OK [15:44:47]SAM_PROTO_GetShiftState done [15:44:47]FM_GetShiftState done [15:44:47]req_shift_opened done [15:44:47]requested_item shift.open_date is exist - process it [15:44:47]req_shift_open_date [15:44:47]req_shift_open_date done [15:44:47]produce_requested_data done [15:44:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118134,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:44:47]process_action_free close_receipt [15:44:47]json_value_free [15:44:47]json_value_free done [15:44:47]process_json_proto returns [15:44:47]Send response to host [15:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118134,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:44:47]free response buf [15:44:47]execute_script done [15:44:47]execute_script returns [15:44:47]free content buf [15:44:47]Sock 7.Close socket [15:44:47]Sock 7.Thread stoped [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:53]accept exits with 9 [15:45:53]New connection [15:45:53]New thread 3066695012 created [15:45:53]Thread 3066551652 joined [15:45:53]Waiting for new connection... [15:45:53] Sock 9.Parse request [15:45:53]Sock 9.Check first char [15:45:53]Sock 9.First char is OK [15:45:53]request: POST /json_proto HTTP/1.0 [15:45:53]Method: POST [15:45:53]URL: /json_proto [15:45:53]Method is POST - this is cgi request [15:45:53]url: /json_proto [15:45:53]query_string will be loaded in cgi processing [15:45:53]execute_cgi json_proto POST (null) [15:45:53]execute_cgi path=json_proto method=POST [15:45:53]POST find Content-Length [15:45:53]Host: 172.17.96.67:8080 [15:45:53]Content-Length: 677 [15:45:53]Content-Type: application/json [15:45:53] [15:45:53]POST finish read [15:45:53]Found Content-Length = 677 [15:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:53]execute_script... [15:45: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)245932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:53]POST & json_proto [15:45:53]process_json_proto [15:45:53]json parsed OK: [15:45:53]protocol is kg_v1.0 [15:45:53]action value=close_receipt [15:45:53]process_action close_receipt [15:45:53]cmd_close_receipt [15:45:53]MH_GetDate [15:45:53]Write to MH i2c: F0 00 00 C1 0F BF [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: F0 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: F0 09 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: F0 09 00 C1 0F 00 B2 54 22 67 47 6C 1F 67 90 [15:45:53]GetLastDocTimeStamp 1730303084 [15:45:53]current date 1730303154 [15:45:53]FM_GetShiftState [15:45:53]SAM_PROTO_GetShiftState [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 13 01 00 [15:45:53]Write to MH i2c: E2 08 00 C2 0F 80 13 01 00 00 00 00 00 4E [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 0E 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 0E 00 C2 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 26 [15:45:53]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:45:53]wFMCommunicate OK [15:45:53]SAM_PROTO_GetShiftState done [15:45:53]FM_GetShiftState done [15:45:53]opened in 1730246605 [15:45:53]opened+sec_in_day 1730333005 [15:45:53]quantity*price = 50041 [15:45:53]sum+1 = 50042 [15:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 195 30.10.2024 15:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118135 ФПД: 261811236497892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154554&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118135&fm=261811236497892&tin=02508201610067®Number=0000000000091782&sum=50000 [15:45:54]StoreToDocumentArchive [15:45:54]shift 545 fd 118135 [15:45:54]save to /storage/0545/doc_00118135 [15:45:54]save last doc name /storage/0545/doc_00118135 to /storage/kkm_last_doc_name [15:45:54]save OK [15:45:54]Clear old archive folders... [15:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:54]tlvbuf is 000FA1C0 [15:45:54]SAM_PROTO_ClearQueue [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 09 00 00 [15:45:54]Write to MH i2c: E2 08 00 CF 0F 80 09 00 00 00 00 00 00 50 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 CF 0F 00 90 00 52 [15:45:54]RAPDU: 90 00 [15:45:54]wFMCommunicate OK [15:45:54]SAM_PROTO_ClearQueue done [15:45:54]KKMCreateOFDPacket [15:45:54]OFDProtocolAddRootSTLVToBuf [15:45:54]FM_MakeSignedData [15:45:54]FM_MakeSignedData [15:45:54]SAM_PROTO_SignData [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 0D 01 02 [15:45:54]Write to MH i2c: E2 08 00 D0 0F 80 0D 01 02 00 00 00 00 58 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 D0 0F 00 90 00 53 [15:45:54]RAPDU: 90 00 [15:45:54]wFMCommunicate OK [15:45:54]wFMCommunicate request_size=255 [15:45:54]MH_SAM_APDU [15:45: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 32 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 C3 00 00 00 F4 03 04 00 B2 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 77 CD 01 00 35 04 06 00 EE [15:45:54]Write to MH i2c: E2 02 01 D1 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 B2 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 77 CD 01 00 35 04 06 00 EE 00 00 92 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 D1 0F 00 90 00 54 [15:45:54]RAPDU: 90 00 [15:45:54]wFMCommunicate OK [15:45:54]wFMCommunicate request_size=10 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 0D 02 02 05 1D AD BF E9 E4 [15:45:54]Write to MH i2c: E2 0D 00 D2 0F 80 0D 02 02 05 00 1D AD BF E9 E4 00 00 BB [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 03 00 D2 0F 00 90 00 55 [15:45:54]RAPDU: 90 00 [15:45:54]wFMCommunicate OK [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 0D 03 02 [15:45:54]Write to MH i2c: E2 08 00 D3 0F 80 0D 03 02 00 00 00 00 5D [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0B 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0B 00 D3 0F 00 D4 9F 05 77 36 6E 22 C2 90 00 D5 [15:45:54]RAPDU: D4 9F 05 77 36 6E 22 C2 90 00 [15:45:54]wFMCommunicate OK [15:45:54]SAM_PROTO_SignData done [15:45:54]FM_MakeSignedData done [15:45:54]CreateOFDProtocolMessage [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 11 00 00 [15:45:54]Write to MH i2c: E2 08 00 D4 0F 80 11 00 00 00 00 00 00 5D [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 D4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B4 [15:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:45:54]wFMCommunicate OK [15:45:54]CreateOFDProtocolMessage done [15:45:54]OFDSenderStorePacket 118135 [15:45:54]StoreOFDPacket docnum=118135 [15:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7E 85 07 01 B3 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 B2 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 77 CD 01 00 35 04 06 00 EE 1D AD BF E9 E4 D4 9F 05 77 36 6E 22 C2 [15:45:54]CheckFolder [15:45:54]dirname=/storage/ofd_packets [15:45:54]CheckFolder done [15:45:54]ProducePacketName [15:45:54]name=ofd_packets/00118135 [15:45:54]NVStorageSaveData ofd_packets/00118135 [15:45:54]File name is /storage/ofd_packets/00118135 [15:45:54]Write 301 bytes [15:45:54]NVStorageSaveData done [15:45:54]OFDSenderStorePacket done [15:45:54]KKMCreateOFDPacket done [15:45:54]NVStorageSaveData kkm_last_timestamp [15:45:54]File name is /storage/kkm_last_timestamp [15:45:54]Write 4 bytes [15:45:54]NVStorageSaveData done [15:45:54]ExternCall_PrintAddStr [15:45:54]wPrintStart [15:45:54]Write to MH i2c: 01 00 00 D5 0F E4 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 D5 0F 00 00 00 00 00 FF 0F F9 [15:45:54]RasterBufferAndPrint [15:45:54]line Счет N : (1)245932 [15:45:54]line ИНН: 02508201610067 [15:45:54]line Контрольно-Кассовый Чек [15:45:54]line ПРОДАЖА [15:45:54]line ТРК (МРК, ГНК) : 11 [15:45:54]line Товар: 2710124130 [15:45:54]line Аи-92-К-2 [15:45:54]line 7.480 * 66.90 [15:45:54]line = 500.41 [15:45:54]line НДС 12% НСП 1% [15:45:54]line > о реализуемом товаре [15:45:54]line ОКРУГЛЕНИЕ: -0.41 [15:45:54]line ИТОГО: 500.00 [15:45:54]line Внесено: 500.00 [15:45:54]line СДАЧА: 0.00 [15:45:54]line НСП 1% : 4.43 [15:45:54]line НДС 12% : 53.14 [15:45:54]line Наличными: 500.00 [15:45:54]line Безнал.: 0.00 [15:45:54]line Место: АЗС № 173 "Партнер Нефть" [15:45:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:45:54]line СНО: Общий режим [15:45:54]line Чек 195 30.10.2024 15:45 [15:45:54]line Смена: 545 ФФД: 1.0 [15:45:54]line ЗНМ: 0300000115 [15:45:54]line РНМ: 0000000000091782 [15:45:54]line Версия ККМ: 001 [15:45:54]line ФМ: 0000000000871767 [15:45:54]line ФД: 118135 [15:45:54]line ФПД: 261811236497892 [15:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154554&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118135&fm=261811236497892&tin=02508201610067®Number=0000000000091782&sum=50000 [15:45:55]written 0, free lines is 4095 [15:45:55]OFD Sender: Processing packet 118135 [packets to send 77, broken 76] [15:45:55]ProducePacketName [15:45:55]name=ofd_packets/00118135 [15:45:55]OFD Sender: To server: pG, [15:45:55]CommunicateWithHost lk.salyk.kg:30040 [15:45:55]ConnectInit lk.salyk.kg [15:45:55]Connected sock=10 [15:45: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 36 37 0F 01 00 00 7E 85 07 01 B3 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 B2 54 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 77 CD 01 00 35 04 06 00 EE 1D AD BF E9 E4 D4 9F 05 77 36 6E 22 C2 [15:45: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 36 37 4F 00 00 00 98 9F 47 00 EE 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 77 CD 01 00 F4 03 04 00 69 00 22 67 B6 04 01 00 00 D8 1E 8A 8B E5 ED 91 2A [15:45:55]CommunicateWithHost err = 0 [15:45:55]CheckOFDResponse [15:45:55]1017 (14) - 77093643461234 [15:45:55]1041 (16) - 0000000000871767 [15:45:55]1040 (4) - 118135 [15:45:55]1012 (4) - 30.10.2024 09:46 [15:45:55]1206 (1) - 0 [15:45:55]OFD Sender: Remove packet 118135 [15:45:55]ProducePacketName [15:45:55]name=ofd_packets/00118135 [15:45:55]NVStorageDeleteData [15:45:55]Write to MH i2c: 01 00 00 FF 0F 0E [15:45:55]Write i2c OK [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: 01 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: 01 07 00 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: 01 07 00 FF 0F 00 00 00 00 00 B4 0C D5 [15:45:55]RasterBufferAndPrint [15:45:55]line [15:45:55]line [15:45:55]line [15:45:55]line [15:45:55]line [15:45:55]written 0, free lines is 3258 [15:45:55]MH_Cut [15:45:55]Write to MH i2c: D1 01 00 06 10 01 E8 [15:45:55]Write i2c OK [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: D1 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: D1 01 00 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: D1 01 00 06 10 00 E7 [15:45:55]Write to MH i2c: 01 00 00 07 10 17 [15:45:55]Write i2c OK [15:45:55]MH_I2C_Read... [15:45:55]OFD Sender: No OFD packet to send [15:45:56]*** Cut start [15:45:56]*** Purtial cut [15:45:56]*** Stage 1: CUTSNS_PIN = 1 [15:45:56]Read from MH i2c: 01 [15:45:56]MH_I2C_Read... [15:45:56]*** Stop cut motor [15:45:56]*** Cut end [15:45:56]Read from MH i2c: 01 07 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: 01 07 00 07 10 00 00 00 00 00 FF 0F 2C [15:45:56]process_action close_receipt done [15:45:56]requested_data is exist [15:45:56]produce_requested_data [15:45:56]requested_item fm.sn is exist - process it [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 11 00 00 [15:45:56]Write to MH i2c: E2 08 00 08 10 80 11 00 00 00 00 00 00 92 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:56]Read from MH i2c: E2 17 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 17 00 08 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E9 [15:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:45:56]wFMCommunicate OK [15:45:56]requested_item fd.num is exist - process it [15:45:56]SAM_PROTO_GetFieldsCounters [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 13 00 00 [15:45:56]Write to MH i2c: E2 08 00 09 10 80 13 00 00 00 00 00 00 95 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 62 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 62 00 09 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 77 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [15:45: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 77 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:56]wFMCommunicate OK [15:45:56]SAM_PROTO_GetFieldsCounters done [15:45:56]requested_item shift.num is exist - process it [15:45:56]requested_item shift.opened is exist - process it [15:45:56]req_shift_opened [15:45:56]FM_GetShiftState [15:45:56]SAM_PROTO_GetShiftState [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 13 01 00 [15:45:56]Write to MH i2c: E2 08 00 0A 10 80 13 01 00 00 00 00 00 97 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0E 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0E 00 0A 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6F [15:45:56]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:45:56]wFMCommunicate OK [15:45:56]SAM_PROTO_GetShiftState done [15:45:56]FM_GetShiftState done [15:45:56]req_shift_opened done [15:45:56]requested_item shift.open_date is exist - process it [15:45:56]req_shift_open_date [15:45:56]req_shift_open_date done [15:45:56]produce_requested_data done [15:45:56]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118135,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:45:56]process_action_free close_receipt [15:45:56]json_value_free [15:45:56]json_value_free done [15:45:56]process_json_proto returns [15:45:56]Send response to host [15:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118135,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:45:56]free response buf [15:45:56]execute_script done [15:45:56]execute_script returns [15:45:56]free content buf [15:45:56]Sock 9.Close socket [15:45:56]Sock 9.Thread stoped [15:46:00]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:31]accept exits with 7 [15:47:31]New connection [15:47:31]New thread 3066551652 created [15:47:31]Thread 3066695012 joined [15:47:31]Waiting for new connection... [15:47:31] Sock 7.Parse request [15:47:31]Sock 7.Check first char [15:47:31]Sock 7.First char is OK [15:47:31]request: POST /json_proto HTTP/1.0 [15:47:31]Method: POST [15:47:31]URL: /json_proto [15:47:31]Method is POST - this is cgi request [15:47:31]url: /json_proto [15:47:31]query_string will be loaded in cgi processing [15:47:31]execute_cgi json_proto POST (null) [15:47:31]execute_cgi path=json_proto method=POST [15:47:31]POST find Content-Length [15:47:31]Host: 172.17.96.67:8080 [15:47:31]Content-Length: 678 [15:47:31]Content-Type: application/json [15:47:31] [15:47:31]POST finish read [15:47:31]Found Content-Length = 678 [15:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:47:31]execute_script... [15: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)245933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:47:31]POST & json_proto [15:47:31]process_json_proto [15:47:31]json parsed OK: [15:47:31]protocol is kg_v1.0 [15:47:31]action value=close_receipt [15:47:31]process_action close_receipt [15:47:31]cmd_close_receipt [15:47:31]MH_GetDate [15:47:31]Write to MH i2c: F0 00 00 0B 10 0A [15:47:31]Write i2c OK [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: F0 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: F0 09 00 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: F0 09 00 0B 10 00 14 55 22 67 47 6C 1F 67 3E [15:47:31]GetLastDocTimeStamp 1730303154 [15:47:31]current date 1730303252 [15:47:31]FM_GetShiftState [15:47:31]SAM_PROTO_GetShiftState [15:47:31]wFMCommunicate request_size=4 [15:47:31]MH_SAM_APDU [15:47:31]CAPDU: 80 13 01 00 [15:47:31]Write to MH i2c: E2 08 00 0C 10 80 13 01 00 00 00 00 00 99 [15:47:31]Write i2c OK [15:47:31]MH_I2C_Read... [15:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:31]Read from MH i2c: E2 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 0E 00 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 0E 00 0C 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 71 [15:47:31]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:47:31]wFMCommunicate OK [15:47:31]SAM_PROTO_GetShiftState done [15:47:31]FM_GetShiftState done [15:47:31]opened in 1730246605 [15:47:31]opened+sec_in_day 1730333005 [15:47:31]quantity*price = 80012 [15:47:31]sum+1 = 80013 [15:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 196 30.10.2024 15:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118136 ФПД: 266492357854719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154732&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118136&fm=266492357854719&tin=02508201610067®Number=0000000000091782&sum=80000 [15:47:32]StoreToDocumentArchive [15:47:32]shift 545 fd 118136 [15:47:32]save to /storage/0545/doc_00118136 [15:47:32]save last doc name /storage/0545/doc_00118136 to /storage/kkm_last_doc_name [15:47:32]save OK [15:47:32]Clear old archive folders... [15:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:32]tlvbuf is 000E2B40 [15:47:32]SAM_PROTO_ClearQueue [15:47:32]wFMCommunicate request_size=4 [15:47:32]MH_SAM_APDU [15:47:32]CAPDU: 80 09 00 00 [15:47:32]Write to MH i2c: E2 08 00 19 10 80 09 00 00 00 00 00 00 9B [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:32]Read from MH i2c: E2 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 19 10 00 90 00 9D [15:47:32]RAPDU: 90 00 [15:47:32]wFMCommunicate OK [15:47:32]SAM_PROTO_ClearQueue done [15:47:32]KKMCreateOFDPacket [15:47:32]OFDProtocolAddRootSTLVToBuf [15:47:32]FM_MakeSignedData [15:47:32]FM_MakeSignedData [15:47:32]SAM_PROTO_SignData [15:47:32]wFMCommunicate request_size=4 [15:47:32]MH_SAM_APDU [15:47:32]CAPDU: 80 0D 01 02 [15:47:32]Write to MH i2c: E2 08 00 1A 10 80 0D 01 02 00 00 00 00 A3 [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:32]Read from MH i2c: E2 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 1A 10 00 90 00 9E [15:47:32]RAPDU: 90 00 [15:47:32]wFMCommunicate OK [15:47:32]wFMCommunicate request_size=255 [15:47:32]MH_SAM_APDU [15: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 32 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 C4 00 00 00 F4 03 04 00 14 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 78 CD 01 00 35 04 06 00 F2 [15:47:32]Write to MH i2c: E2 02 01 1B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C4 00 00 00 F4 03 04 00 14 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 78 CD 01 00 35 04 06 00 F2 00 00 32 [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:32]Read from MH i2c: E2 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 1B 10 00 90 00 9F [15:47:32]RAPDU: 90 00 [15:47:32]wFMCommunicate OK [15:47:32]wFMCommunicate request_size=10 [15:47:32]MH_SAM_APDU [15:47:32]CAPDU: 80 0D 02 02 05 5F 96 53 45 FF [15:47:32]Write to MH i2c: E2 0D 00 1C 10 80 0D 02 02 05 00 5F 96 53 45 FF 00 00 3C [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:32]Read from MH i2c: E2 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 03 00 1C 10 00 90 00 A0 [15:47:32]RAPDU: 90 00 [15:47:32]wFMCommunicate OK [15:47:32]wFMCommunicate request_size=4 [15:47:32]MH_SAM_APDU [15:47:32]CAPDU: 80 0D 03 02 [15:47:32]Write to MH i2c: E2 08 00 1D 10 80 0D 03 02 00 00 00 00 A8 [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:32]Read from MH i2c: E2 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 0B 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 0B 00 1D 10 00 ED F4 27 05 B2 AA 0D C6 90 00 E5 [15:47:32]RAPDU: ED F4 27 05 B2 AA 0D C6 90 00 [15:47:32]wFMCommunicate OK [15:47:32]SAM_PROTO_SignData done [15:47:32]FM_MakeSignedData done [15:47:32]CreateOFDProtocolMessage [15:47:32]wFMCommunicate request_size=4 [15:47:32]MH_SAM_APDU [15:47:32]CAPDU: 80 11 00 00 [15:47:32]Write to MH i2c: E2 08 00 1E 10 80 11 00 00 00 00 00 00 A8 [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:32]Read from MH i2c: E2 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 17 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: E2 17 00 1E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FF [15:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:47:32]wFMCommunicate OK [15:47:32]CreateOFDProtocolMessage done [15:47:32]OFDSenderStorePacket 118136 [15:47:32]StoreOFDPacket docnum=118136 [15:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 47 E6 07 01 D9 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 32 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 C4 00 00 00 F4 03 04 00 14 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 78 CD 01 00 35 04 06 00 F2 5F 96 53 45 FF ED F4 27 05 B2 AA 0D C6 [15:47:32]CheckFolder [15:47:32]dirname=/storage/ofd_packets [15:47:32]CheckFolder done [15:47:32]ProducePacketName [15:47:32]name=ofd_packets/00118136 [15:47:32]NVStorageSaveData ofd_packets/00118136 [15:47:32]File name is /storage/ofd_packets/00118136 [15:47:32]Write 301 bytes [15:47:32]NVStorageSaveData done [15:47:32]OFDSenderStorePacket done [15:47:32]KKMCreateOFDPacket done [15:47:32]NVStorageSaveData kkm_last_timestamp [15:47:32]File name is /storage/kkm_last_timestamp [15:47:32]Write 4 bytes [15:47:32]NVStorageSaveData done [15:47:32]ExternCall_PrintAddStr [15:47:32]wPrintStart [15:47:32]Write to MH i2c: 01 00 00 1F 10 2F [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: 01 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: 01 07 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 FF 0F 44 [15:47:32]RasterBufferAndPrint [15:47:32]line Счет N : (1)245933 [15:47:32]line ИНН: 02508201610067 [15:47:32]line Контрольно-Кассовый Чек [15:47:32]line ПРОДАЖА [15:47:32]line ТРК (МРК, ГНК) : 21 [15:47:32]line Товар: 2710124130 [15:47:32]line Аи-92-К-2 [15:47:32]line 11.960 * 66.90 [15:47:32]line = 800.12 [15:47:32]line НДС 12% НСП 1% [15:47:32]line > о реализуемом товаре [15:47:32]line ОКРУГЛЕНИЕ: -0.12 [15:47:32]line ИТОГО: 800.00 [15:47:32]line Внесено: 800.00 [15:47:32]line СДАЧА: 0.00 [15:47:32]line НСП 1% : 7.08 [15:47:32]line НДС 12% : 84.97 [15:47:32]line Наличными: 800.00 [15:47:32]line Безнал.: 0.00 [15:47:32]line Место: АЗС № 173 "Партнер Нефть" [15:47:32]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:47:32]line СНО: Общий режим [15:47:32]line Чек 196 30.10.2024 15:47 [15:47:32]line Смена: 545 ФФД: 1.0 [15:47:32]line ЗНМ: 0300000115 [15:47:32]line РНМ: 0000000000091782 [15:47:32]line Версия ККМ: 001 [15:47:32]line ФМ: 0000000000871767 [15:47:32]line ФД: 118136 [15:47:32]line ФПД: 266492357854719 [15:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154732&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118136&fm=266492357854719&tin=02508201610067®Number=0000000000091782&sum=80000 [15:47:33]OFD Sender: Processing packet 118136 [packets to send 77, broken 76] [15:47:33]ProducePacketName [15:47:33]name=ofd_packets/00118136 [15:47:33]OFD Sender: To server: pG, [15:47:33]CommunicateWithHost lk.salyk.kg:30040 [15:47:33]ConnectInit lk.salyk.kg [15:47:33]written 0, free lines is 4095 [15:47:33]Connected sock=10 [15: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 36 37 0F 01 00 00 47 E6 07 01 D9 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 32 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 C4 00 00 00 F4 03 04 00 14 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 78 CD 01 00 35 04 06 00 F2 5F 96 53 45 FF ED F4 27 05 B2 AA 0D C6 [15: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 36 37 4F 00 00 00 48 10 47 00 C8 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 36 37 10 04 04 00 78 CD 01 00 F4 03 04 00 CB 00 22 67 B6 04 01 00 00 39 AF C0 FF 15 6A 04 92 [15:47:33]CommunicateWithHost err = 0 [15:47:33]CheckOFDResponse [15:47:33]1017 (14) - 77093643461234 [15:47:33]1041 (16) - 0000000000871767 [15:47:33]1040 (4) - 118136 [15:47:33]1012 (4) - 30.10.2024 09:47 [15:47:33]1206 (1) - 0 [15:47:33]OFD Sender: Remove packet 118136 [15:47:33]ProducePacketName [15:47:33]name=ofd_packets/00118136 [15:47:33]NVStorageDeleteData [15:47:33]Write to MH i2c: 01 00 00 49 10 59 [15:47:33]Write i2c OK [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: 01 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: 01 07 00 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: 01 07 00 49 10 00 00 00 00 00 B9 0C 25 [15:47:33]RasterBufferAndPrint [15:47:33]line [15:47:33]line [15:47:33]line [15:47:33]line [15:47:33]line [15:47:33]written 0, free lines is 3265 [15:47:33]MH_Cut [15:47:33]Write to MH i2c: D1 01 00 50 10 01 32 [15:47:33]Write i2c OK [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: D1 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: D1 01 00 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: D1 01 00 50 10 00 31 [15:47:33]Write to MH i2c: 01 00 00 51 10 61 [15:47:33]Write i2c OK [15:47:33]MH_I2C_Read... [15:47:34]OFD Sender: No OFD packet to send [15:47:34]*** Cut start [15:47:34]*** Purtial cut [15:47:34]*** Stage 1: CUTSNS_PIN = 1 [15:47:34]Read from MH i2c: 01 [15:47:34]MH_I2C_Read... [15:47:34]*** Stop cut motor [15:47:34]*** Cut end [15:47:34]Read from MH i2c: 01 07 00 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: 01 07 00 51 10 00 00 00 00 00 FF 0F 76 [15:47:34]process_action close_receipt done [15:47:34]requested_data is exist [15:47:34]produce_requested_data [15:47:34]requested_item fm.sn is exist - process it [15:47:34]wFMCommunicate request_size=4 [15:47:34]MH_SAM_APDU [15:47:34]CAPDU: 80 11 00 00 [15:47:34]Write to MH i2c: E2 08 00 52 10 80 11 00 00 00 00 00 00 DC [15:47:34]Write i2c OK [15:47:34]MH_I2C_Read... [15:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:34]Read from MH i2c: E2 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: E2 17 00 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: E2 17 00 52 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 33 [15:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:47:34]wFMCommunicate OK [15:47:34]requested_item fd.num is exist - process it [15:47:34]SAM_PROTO_GetFieldsCounters [15:47:34]wFMCommunicate request_size=4 [15:47:34]MH_SAM_APDU [15:47:34]CAPDU: 80 13 00 00 [15:47:34]Write to MH i2c: E2 08 00 53 10 80 13 00 00 00 00 00 00 DF [15:47:34]Write i2c OK [15:47:34]MH_I2C_Read... [15:47:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:34]Read from MH i2c: E2 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: E2 62 00 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: E2 62 00 53 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 78 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [15:47: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 78 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:34]wFMCommunicate OK [15:47:34]SAM_PROTO_GetFieldsCounters done [15:47:34]requested_item shift.num is exist - process it [15:47:34]requested_item shift.opened is exist - process it [15:47:34]req_shift_opened [15:47:34]FM_GetShiftState [15:47:34]SAM_PROTO_GetShiftState [15:47:34]wFMCommunicate request_size=4 [15:47:34]MH_SAM_APDU [15:47:34]CAPDU: 80 13 01 00 [15:47:34]Write to MH i2c: E2 08 00 54 10 80 13 01 00 00 00 00 00 E1 [15:47:34]Write i2c OK [15:47:34]MH_I2C_Read... [15:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:35]Read from MH i2c: E2 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 0E 00 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 0E 00 54 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B9 [15:47:35]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:47:35]wFMCommunicate OK [15:47:35]SAM_PROTO_GetShiftState done [15:47:35]FM_GetShiftState done [15:47:35]req_shift_opened done [15:47:35]requested_item shift.open_date is exist - process it [15:47:35]req_shift_open_date [15:47:35]req_shift_open_date done [15:47:35]produce_requested_data done [15:47:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118136,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:47:35]process_action_free close_receipt [15:47:35]json_value_free [15:47:35]json_value_free done [15:47:35]process_json_proto returns [15:47:35]Send response to host [15:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118136,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:47:35]free response buf [15:47:35]execute_script done [15:47:35]execute_script returns [15:47:35]free content buf [15:47:35]Sock 7.Close socket [15:47:35]Sock 7.Thread stoped [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:38]accept exits with 9 [15:48:38]New connection [15:48:38]New thread 3066695012 created [15:48:38]Thread 3066551652 joined [15:48:38]Waiting for new connection... [15:48:38] Sock 9.Parse request [15:48:38]Sock 9.Check first char [15:48:38]Sock 9.First char is OK [15:48:38]request: POST /json_proto HTTP/1.0 [15:48:38]Method: POST [15:48:38]URL: /json_proto [15:48:38]Method is POST - this is cgi request [15:48:38]url: /json_proto [15:48:38]query_string will be loaded in cgi processing [15:48:38]execute_cgi json_proto POST (null) [15:48:38]execute_cgi path=json_proto method=POST [15:48:38]POST find Content-Length [15:48:38]Host: 172.17.96.67:8080 [15:48:38]Content-Length: 677 [15:48:38]Content-Type: application/json [15:48:38] [15:48:38]POST finish read [15:48:38]Found Content-Length = 677 [15:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.820, "sum" : 590.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:38]execute_script... [15:48: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)245934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.820, "sum" : 590.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:38]POST & json_proto [15:48:38]process_json_proto [15:48:38]json parsed OK: [15:48:38]protocol is kg_v1.0 [15:48:38]action value=close_receipt [15:48:38]process_action close_receipt [15:48:38]cmd_close_receipt [15:48:38]MH_GetDate [15:48:38]Write to MH i2c: F0 00 00 55 10 54 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 09 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 09 00 55 10 00 58 55 22 67 47 6C 1F 67 CC [15:48:38]GetLastDocTimeStamp 1730303252 [15:48:38]current date 1730303320 [15:48:38]FM_GetShiftState [15:48:38]SAM_PROTO_GetShiftState [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 13 01 00 [15:48:38]Write to MH i2c: E2 08 00 56 10 80 13 01 00 00 00 00 00 E3 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0E 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0E 00 56 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BB [15:48:38]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:48:38]wFMCommunicate OK [15:48:38]SAM_PROTO_GetShiftState done [15:48:38]FM_GetShiftState done [15:48:38]opened in 1730246605 [15:48:38]opened+sec_in_day 1730333005 [15:48:38]quantity*price = 59005 [15:48:38]sum+1 = 59007 [15:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 590.00 Внесено: 590.00 СДАЧА: 0.00 НСП 1% : 5.22 НДС 12% : 62.66 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 197 30.10.2024 15:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118137 ФПД: 180091024024602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154840&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118137&fm=180091024024602&tin=02508201610067®Number=0000000000091782&sum=59000 [15:48:39]StoreToDocumentArchive [15:48:39]shift 545 fd 118137 [15:48:39]save to /storage/0545/doc_00118137 [15:48:39]save last doc name /storage/0545/doc_00118137 to /storage/kkm_last_doc_name [15:48:39]save OK [15:48:39]Clear old archive folders... [15:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:39]tlvbuf is 0011ED40 [15:48:39]SAM_PROTO_ClearQueue [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 09 00 00 [15:48:39]Write to MH i2c: E2 08 00 63 10 80 09 00 00 00 00 00 00 E5 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 63 10 00 90 00 E7 [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_ClearQueue done [15:48:39]KKMCreateOFDPacket [15:48:39]OFDProtocolAddRootSTLVToBuf [15:48:39]FM_MakeSignedData [15:48:39]FM_MakeSignedData [15:48:39]SAM_PROTO_SignData [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 01 02 [15:48:39]Write to MH i2c: E2 08 00 64 10 80 0D 01 02 00 00 00 00 ED [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 64 10 00 90 00 E8 [15:48:40]RAPDU: 90 00 [15:48:40]wFMCommunicate OK [15:48:40]wFMCommunicate request_size=255 [15:48:40]MH_SAM_APDU [15:48: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 32 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 58 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 79 CD 01 00 35 04 06 00 A3 [15:48:40]Write to MH i2c: E2 02 01 65 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 58 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 79 CD 01 00 35 04 06 00 A3 00 00 92 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 65 10 00 90 00 E9 [15:48:40]RAPDU: 90 00 [15:48:40]wFMCommunicate OK [15:48:40]wFMCommunicate request_size=10 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 0D 02 02 05 CA B5 83 A4 1A [15:48:40]Write to MH i2c: E2 0D 00 66 10 80 0D 02 02 05 00 CA B5 83 A4 1A 00 00 BA [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 66 10 00 90 00 EA [15:48:40]RAPDU: 90 00 [15:48:40]wFMCommunicate OK [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 0D 03 02 [15:48:40]Write to MH i2c: E2 08 00 67 10 80 0D 03 02 00 00 00 00 F2 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0B 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0B 00 67 10 00 A6 CF E2 51 CA B0 11 19 90 00 3F [15:48:40]RAPDU: A6 CF E2 51 CA B0 11 19 90 00 [15:48:40]wFMCommunicate OK [15:48:40]SAM_PROTO_SignData done [15:48:40]FM_MakeSignedData done [15:48:40]CreateOFDProtocolMessage [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 11 00 00 [15:48:40]Write to MH i2c: E2 08 00 68 10 80 11 00 00 00 00 00 00 F2 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 17 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 17 00 68 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 49 [15:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:48:40]wFMCommunicate OK [15:48:40]CreateOFDProtocolMessage done [15:48:40]OFDSenderStorePacket 118137 [15:48:40]StoreOFDPacket docnum=118137 [15:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 19 93 07 01 BA 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 58 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 79 CD 01 00 35 04 06 00 A3 CA B5 83 A4 1A A6 CF E2 51 CA B0 11 19 [15:48:40]CheckFolder [15:48:40]dirname=/storage/ofd_packets [15:48:40]CheckFolder done [15:48:40]ProducePacketName [15:48:40]name=ofd_packets/00118137 [15:48:40]NVStorageSaveData ofd_packets/00118137 [15:48:40]File name is /storage/ofd_packets/00118137 [15:48:40]Write 301 bytes [15:48:40]NVStorageSaveData done [15:48:40]OFDSenderStorePacket done [15:48:40]KKMCreateOFDPacket done [15:48:40]NVStorageSaveData kkm_last_timestamp [15:48:40]File name is /storage/kkm_last_timestamp [15:48:40]Write 4 bytes [15:48:40]NVStorageSaveData done [15:48:40]ExternCall_PrintAddStr [15:48:40]wPrintStart [15:48:40]Write to MH i2c: 01 00 00 69 10 79 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 69 10 00 00 00 00 00 FF 0F 8E [15:48:40]RasterBufferAndPrint [15:48:40]line Счет N : (1)245934 [15:48:40]line ИНН: 02508201610067 [15:48:40]line Контрольно-Кассовый Чек [15:48:40]line ПРОДАЖА [15:48:40]line ТРК (МРК, ГНК) : 11 [15:48:40]line Товар: 2710124130 [15:48:40]line Аи-92-К-2 [15:48:40]line 8.820 * 66.90 [15:48:40]line = 590.06 [15:48:40]line НДС 12% НСП 1% [15:48:40]line > о реализуемом товаре [15:48:40]line ОКРУГЛЕНИЕ: -0.06 [15:48:40]line ИТОГО: 590.00 [15:48:40]line Внесено: 590.00 [15:48:40]line СДАЧА: 0.00 [15:48:40]line НСП 1% : 5.22 [15:48:40]line НДС 12% : 62.66 [15:48:40]line Наличными: 590.00 [15:48:40]line Безнал.: 0.00 [15:48:40]line Место: АЗС № 173 "Партнер Нефть" [15:48:40]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:48:40]line СНО: Общий режим [15:48:40]line Чек 197 30.10.2024 15:48 [15:48:40]line Смена: 545 ФФД: 1.0 [15:48:40]line ЗНМ: 0300000115 [15:48:40]line РНМ: 0000000000091782 [15:48:40]line Версия ККМ: 001 [15:48:40]line ФМ: 0000000000871767 [15:48:40]line ФД: 118137 [15:48:40]line ФПД: 180091024024602 [15:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154840&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118137&fm=180091024024602&tin=02508201610067®Number=0000000000091782&sum=59000 [15:48:40]OFD Sender: Processing packet 118137 [packets to send 77, broken 76] [15:48:40]ProducePacketName [15:48:40]name=ofd_packets/00118137 [15:48:40]OFD Sender: To server: pG, [15:48:40]CommunicateWithHost lk.salyk.kg:30040 [15:48:40]ConnectInit lk.salyk.kg [15:48:40]written 0, free lines is 4095 [15:48:40]Connected sock=10 [15:48: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 36 37 0F 01 00 00 19 93 07 01 BA 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 58 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 79 CD 01 00 35 04 06 00 A3 CA B5 83 A4 1A A6 CF E2 51 CA B0 11 19 [15:48: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 36 37 4F 00 00 00 64 8B 47 00 31 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 79 CD 01 00 F4 03 04 00 0F 01 22 67 B6 04 01 00 00 28 67 75 12 F7 66 BA 9A [15:48:41]CommunicateWithHost err = 0 [15:48:41]CheckOFDResponse [15:48:41]1017 (14) - 77093643461234 [15:48:41]1041 (16) - 0000000000871767 [15:48:41]1040 (4) - 118137 [15:48:41]1012 (4) - 30.10.2024 09:49 [15:48:41]1206 (1) - 0 [15:48:41]OFD Sender: Remove packet 118137 [15:48:41]ProducePacketName [15:48:41]name=ofd_packets/00118137 [15:48:41]NVStorageDeleteData [15:48:41]Write to MH i2c: 01 00 00 93 10 A3 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 93 10 00 00 00 00 00 B7 0C 6D [15:48:41]RasterBufferAndPrint [15:48:41]line [15:48:41]line [15:48:41]line [15:48:41]line [15:48:41]line [15:48:41]written 0, free lines is 3262 [15:48:41]MH_Cut [15:48:41]Write to MH i2c: D1 01 00 9A 10 01 7C [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: D1 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: D1 01 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: D1 01 00 9A 10 00 7B [15:48:41]Write to MH i2c: 01 00 00 9B 10 AB [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]OFD Sender: No OFD packet to send [15:48:42]*** Cut start [15:48:42]*** Purtial cut [15:48:42]*** Stage 1: CUTSNS_PIN = 1 [15:48:42]Read from MH i2c: 01 [15:48:42]MH_I2C_Read... [15:48:42]*** Stop cut motor [15:48:42]*** Cut end [15:48:42]Read from MH i2c: 01 07 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: 01 07 00 9B 10 00 00 00 00 00 FF 0F C0 [15:48:42]process_action close_receipt done [15:48:42]requested_data is exist [15:48:42]produce_requested_data [15:48:42]requested_item fm.sn is exist - process it [15:48:42]wFMCommunicate request_size=4 [15:48:42]MH_SAM_APDU [15:48:42]CAPDU: 80 11 00 00 [15:48:42]Write to MH i2c: E2 08 00 9C 10 80 11 00 00 00 00 00 00 26 [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:42]Read from MH i2c: E2 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 17 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 17 00 9C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7D [15:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:48:42]wFMCommunicate OK [15:48:42]requested_item fd.num is exist - process it [15:48:42]SAM_PROTO_GetFieldsCounters [15:48:42]wFMCommunicate request_size=4 [15:48:42]MH_SAM_APDU [15:48:42]CAPDU: 80 13 00 00 [15:48:42]Write to MH i2c: E2 08 00 9D 10 80 13 00 00 00 00 00 00 29 [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:42]Read from MH i2c: E2 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 62 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 62 00 9D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 79 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [15:48: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 79 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:42]wFMCommunicate OK [15:48:42]SAM_PROTO_GetFieldsCounters done [15:48:42]requested_item shift.num is exist - process it [15:48:42]requested_item shift.opened is exist - process it [15:48:42]req_shift_opened [15:48:42]FM_GetShiftState [15:48:42]SAM_PROTO_GetShiftState [15:48:42]wFMCommunicate request_size=4 [15:48:42]MH_SAM_APDU [15:48:42]CAPDU: 80 13 01 00 [15:48:42]Write to MH i2c: E2 08 00 9E 10 80 13 01 00 00 00 00 00 2B [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:42]Read from MH i2c: E2 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 0E 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 0E 00 9E 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 03 [15:48:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:48:42]wFMCommunicate OK [15:48:42]SAM_PROTO_GetShiftState done [15:48:42]FM_GetShiftState done [15:48:42]req_shift_opened done [15:48:42]requested_item shift.open_date is exist - process it [15:48:42]req_shift_open_date [15:48:42]req_shift_open_date done [15:48:42]produce_requested_data done [15:48:42]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118137,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:48:42]process_action_free close_receipt [15:48:42]json_value_free [15:48:42]json_value_free done [15:48:42]process_json_proto returns [15:48:42]Send response to host [15:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118137,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:48:42]free response buf [15:48:42]execute_script done [15:48:42]execute_script returns [15:48:42]free content buf [15:48:42]Sock 9.Close socket [15:48:42]Sock 9.Thread stoped [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:42]accept exits with 7 [15:49:42]New connection [15:49:42]New thread 3066551652 created [15:49:42]Thread 3066695012 joined [15:49:42]Waiting for new connection... [15:49:42] Sock 7.Parse request [15:49:42]Sock 7.Check first char [15:49:42]Sock 7.First char is OK [15:49:42]request: POST /json_proto HTTP/1.0 [15:49:42]Method: POST [15:49:42]URL: /json_proto [15:49:42]Method is POST - this is cgi request [15:49:42]url: /json_proto [15:49:42]query_string will be loaded in cgi processing [15:49:42]execute_cgi json_proto POST (null) [15:49:42]execute_cgi path=json_proto method=POST [15:49:42]POST find Content-Length [15:49:42]Host: 172.17.96.67:8080 [15:49:42]Content-Length: 766 [15:49:42]Content-Type: application/json [15:49:42] [15:49:42]POST finish read [15:49:42]Found Content-Length = 766 [15:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:42]execute_script... [15:49: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)245935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:42]POST & json_proto [15:49:42]process_json_proto [15:49:42]json parsed OK: [15:49:42]protocol is kg_v1.0 [15:49:42]action value=close_receipt [15:49:42]process_action close_receipt [15:49:42]cmd_close_receipt [15:49:42]MH_GetDate [15:49:42]Write to MH i2c: F0 00 00 9F 10 9E [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: F0 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: F0 09 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: F0 09 00 9F 10 00 98 55 22 67 47 6C 1F 67 56 [15:49:42]GetLastDocTimeStamp 1730303320 [15:49:42]current date 1730303384 [15:49:42]FM_GetShiftState [15:49:42]SAM_PROTO_GetShiftState [15:49:42]wFMCommunicate request_size=4 [15:49:42]MH_SAM_APDU [15:49:42]CAPDU: 80 13 01 00 [15:49:42]Write to MH i2c: E2 08 00 A0 10 80 13 01 00 00 00 00 00 2D [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:42]Read from MH i2c: E2 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 0E 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 0E 00 A0 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 05 [15:49:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:49:42]wFMCommunicate OK [15:49:42]SAM_PROTO_GetShiftState done [15:49:42]FM_GetShiftState done [15:49:42]opened in 1730246605 [15:49:42]opened+sec_in_day 1730333005 [15:49:42]quantity*price = 30038 [15:49:42]sum+1 = 30039 [15:49:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 198 30.10.2024 15:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118138 ФПД: 255718978879848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154944&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118138&fm=255718978879848&tin=02508201610067®Number=0000000000091782&sum=30038 [15:49:43]StoreToDocumentArchive [15:49:43]shift 545 fd 118138 [15:49:43]save to /storage/0545/doc_00118138 [15:49:43]save last doc name /storage/0545/doc_00118138 to /storage/kkm_last_doc_name [15:49:43]save OK [15:49:43]Clear old archive folders... [15:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:43]tlvbuf is 00148970 [15:49:43]SAM_PROTO_ClearQueue [15:49:43]wFMCommunicate request_size=4 [15:49:43]MH_SAM_APDU [15:49:43]CAPDU: 80 09 00 00 [15:49:43]Write to MH i2c: E2 08 00 AD 10 80 09 00 00 00 00 00 00 2F [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:43]Read from MH i2c: E2 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 AD 10 00 90 00 31 [15:49:43]RAPDU: 90 00 [15:49:43]wFMCommunicate OK [15:49:43]SAM_PROTO_ClearQueue done [15:49:43]KKMCreateOFDPacket [15:49:43]OFDProtocolAddRootSTLVToBuf [15:49:43]FM_MakeSignedData [15:49:43]FM_MakeSignedData [15:49:43]SAM_PROTO_SignData [15:49:43]wFMCommunicate request_size=4 [15:49:43]MH_SAM_APDU [15:49:43]CAPDU: 80 0D 01 02 [15:49:43]Write to MH i2c: E2 08 00 AE 10 80 0D 01 02 00 00 00 00 37 [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:43]Read from MH i2c: E2 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 03 00 AE 10 00 90 00 32 [15:49:43]RAPDU: 90 00 [15:49:43]wFMCommunicate OK [15:49:43]wFMCommunicate request_size=255 [15:49:43]MH_SAM_APDU [15:49:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 98 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7A CD 01 00 35 04 06 00 E8 [15:49:43]Write to MH i2c: E2 02 01 AF 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 98 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7A CD 01 00 35 04 06 00 E8 00 00 98 [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]wFMCommunicate request_size=10 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 02 02 05 93 36 E6 01 68 [15:49:44]Write to MH i2c: E2 0D 00 B0 10 80 0D 02 02 05 00 93 36 E6 01 68 00 00 5C [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 B0 10 00 90 00 34 [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 03 02 [15:49:44]Write to MH i2c: E2 08 00 B1 10 80 0D 03 02 00 00 00 00 3C [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 0B 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 0B 00 B1 10 00 70 B5 B9 10 7B BD 68 33 90 00 FE [15:49:44]RAPDU: 70 B5 B9 10 7B BD 68 33 90 00 [15:49:44]wFMCommunicate OK [15:49:44]SAM_PROTO_SignData done [15:49:44]FM_MakeSignedData done [15:49:44]CreateOFDProtocolMessage [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 11 00 00 [15:49:44]Write to MH i2c: E2 08 00 B2 10 80 11 00 00 00 00 00 00 3C [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 17 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 17 00 B2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 93 [15:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:49:44]wFMCommunicate OK [15:49:44]CreateOFDProtocolMessage done [15:49:44]OFDSenderStorePacket 118138 [15:49:44]StoreOFDPacket docnum=118138 [15:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CD C6 07 01 FB 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 98 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7A CD 01 00 35 04 06 00 E8 93 36 E6 01 68 70 B5 B9 10 7B BD 68 33 [15:49:44]CheckFolder [15:49:44]dirname=/storage/ofd_packets [15:49:44]CheckFolder done [15:49:44]ProducePacketName [15:49:44]name=ofd_packets/00118138 [15:49:44]NVStorageSaveData ofd_packets/00118138 [15:49:44]File name is /storage/ofd_packets/00118138 [15:49:44]Write 301 bytes [15:49:44]NVStorageSaveData done [15:49:44]OFDSenderStorePacket done [15:49:44]KKMCreateOFDPacket done [15:49:44]NVStorageSaveData kkm_last_timestamp [15:49:44]File name is /storage/kkm_last_timestamp [15:49:44]Write 4 bytes [15:49:44]NVStorageSaveData done [15:49:44]ExternCall_PrintAddStr [15:49:44]wPrintStart [15:49:44]Write to MH i2c: 01 00 00 B3 10 C3 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 FF 0F D8 [15:49:44]RasterBufferAndPrint [15:49:44]line Счет N : (1)245935 [15:49:44]line ИНН: 02508201610067 [15:49:44]line Контрольно-Кассовый Чек [15:49:44]line ПРОДАЖА [15:49:44]line ТРК (МРК, ГНК) : 21 [15:49:44]line Товар: 2710124130 [15:49:44]line Аи-92-К-2 [15:49:44]line 4.490 * 66.90 [15:49:44]line = 300.38 [15:49:44]line НДС 12% НСП 1% [15:49:44]line > о реализуемом товаре [15:49:44]line ИТОГО: 300.38 [15:49:44]line НСП 1% : 2.66 [15:49:44]line НДС 12% : 31.90 [15:49:44]line Наличными: 0.00 [15:49:44]line Безнал.: 300.38 [15:49:44]line Место: АЗС № 173 "Партнер Нефть" [15:49:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:49:44]line СНО: Общий режим [15:49:44]line Чек 198 30.10.2024 15:49 [15:49:44]line Смена: 545 ФФД: 1.0 [15:49:44]line ЗНМ: 0300000115 [15:49:44]line РНМ: 0000000000091782 [15:49:44]line Версия ККМ: 001 [15:49:44]line Платежная система: Mbank [15:49:44]line ФМ: 0000000000871767 [15:49:44]line ФД: 118138 [15:49:44]line ФПД: 255718978879848 [15:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154944&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118138&fm=255718978879848&tin=02508201610067®Number=0000000000091782&sum=30038 [15:49:44]written 0, free lines is 4095 [15:49:44]OFD Sender: Processing packet 118138 [packets to send 77, broken 76] [15:49:44]ProducePacketName [15:49:44]name=ofd_packets/00118138 [15:49:44]OFD Sender: To server: pG, [15:49:44]CommunicateWithHost lk.salyk.kg:30040 [15:49:44]ConnectInit lk.salyk.kg [15:49:44]Write to MH i2c: 01 00 00 DB 10 EB [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 DB 10 00 00 00 00 00 E4 0C E2 [15:49:44]RasterBufferAndPrint [15:49:44]line [15:49:44]line [15:49:44]line [15:49:44]line [15:49:44]line [15:49:44]written 0, free lines is 3306 [15:49:44]Connected sock=10 [15:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CD C6 07 01 FB 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 98 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7A CD 01 00 35 04 06 00 E8 93 36 E6 01 68 70 B5 B9 10 7B BD 68 33 [15:49:44]MH_Cut [15:49:44]Write to MH i2c: D1 01 00 E2 10 01 C4 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: D1 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: D1 01 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: D1 01 00 E2 10 00 C3 [15:49:44]Write to MH i2c: 01 00 00 E3 10 F3 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49: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 36 37 4F 00 00 00 34 69 47 00 AE 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7A CD 01 00 F4 03 04 00 4F 01 22 67 B6 04 01 00 00 7D 10 AF 21 2D 3D 82 28 [15:49:45]CommunicateWithHost err = 0 [15:49:45]CheckOFDResponse [15:49:45]1017 (14) - 77093643461234 [15:49:45]1041 (16) - 0000000000871767 [15:49:45]1040 (4) - 118138 [15:49:45]1012 (4) - 30.10.2024 09:50 [15:49:45]1206 (1) - 0 [15:49:45]OFD Sender: Remove packet 118138 [15:49:45]ProducePacketName [15:49:45]name=ofd_packets/00118138 [15:49:45]NVStorageDeleteData [15:49:45]OFD Sender: No OFD packet to send [15:49:45]*** Cut start [15:49:45]*** Purtial cut [15:49:45]*** Stage 1: CUTSNS_PIN = 1 [15:49:45]Read from MH i2c: 01 [15:49:45]MH_I2C_Read... [15:49:45]*** Stop cut motor [15:49:45]*** Cut end [15:49:45]Read from MH i2c: 01 07 00 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 FF 0F 08 [15:49:45]process_action close_receipt done [15:49:45]requested_data is exist [15:49:45]produce_requested_data [15:49:45]requested_item fm.sn is exist - process it [15:49:45]wFMCommunicate request_size=4 [15:49:45]MH_SAM_APDU [15:49:45]CAPDU: 80 11 00 00 [15:49:45]Write to MH i2c: E2 08 00 E4 10 80 11 00 00 00 00 00 00 6E [15:49:45]Write i2c OK [15:49:45]MH_I2C_Read... [15:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:45]Read from MH i2c: E2 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: E2 17 00 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: E2 17 00 E4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C5 [15:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:49:45]wFMCommunicate OK [15:49:45]requested_item fd.num is exist - process it [15:49:45]SAM_PROTO_GetFieldsCounters [15:49:45]wFMCommunicate request_size=4 [15:49:45]MH_SAM_APDU [15:49:45]CAPDU: 80 13 00 00 [15:49:45]Write to MH i2c: E2 08 00 E5 10 80 13 00 00 00 00 00 00 71 [15:49:45]Write i2c OK [15:49:45]MH_I2C_Read... [15:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:46]Read from MH i2c: E2 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 62 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 62 00 E5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [15:49: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:46]wFMCommunicate OK [15:49:46]SAM_PROTO_GetFieldsCounters done [15:49:46]requested_item shift.num is exist - process it [15:49:46]requested_item shift.opened is exist - process it [15:49:46]req_shift_opened [15:49:46]FM_GetShiftState [15:49:46]SAM_PROTO_GetShiftState [15:49:46]wFMCommunicate request_size=4 [15:49:46]MH_SAM_APDU [15:49:46]CAPDU: 80 13 01 00 [15:49:46]Write to MH i2c: E2 08 00 E6 10 80 13 01 00 00 00 00 00 73 [15:49:46]Write i2c OK [15:49:46]MH_I2C_Read... [15:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:46]Read from MH i2c: E2 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 0E 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 0E 00 E6 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4B [15:49:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:49:46]wFMCommunicate OK [15:49:46]SAM_PROTO_GetShiftState done [15:49:46]FM_GetShiftState done [15:49:46]req_shift_opened done [15:49:46]requested_item shift.open_date is exist - process it [15:49:46]req_shift_open_date [15:49:46]req_shift_open_date done [15:49:46]produce_requested_data done [15:49:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118138,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:49:46]process_action_free close_receipt [15:49:46]json_value_free [15:49:46]json_value_free done [15:49:46]process_json_proto returns [15:49:46]Send response to host [15:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118138,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:49:46]free response buf [15:49:46]execute_script done [15:49:46]execute_script returns [15:49:46]free content buf [15:49:46]Sock 7.Close socket [15:49:46]Sock 7.Thread stoped [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:08]accept exits with 9 [15:50:08]New connection [15:50:08]New thread 3066695012 created [15:50:08]Thread 3066551652 joined [15:50:08]Waiting for new connection... [15:50:08] Sock 9.Parse request [15:50:08]Sock 9.Check first char [15:50:08]Sock 9.First char is OK [15:50:08]request: POST /json_proto HTTP/1.0 [15:50:08]Method: POST [15:50:08]URL: /json_proto [15:50:08]Method is POST - this is cgi request [15:50:08]url: /json_proto [15:50:08]query_string will be loaded in cgi processing [15:50:08]execute_cgi json_proto POST (null) [15:50:08]execute_cgi path=json_proto method=POST [15:50:08]POST find Content-Length [15:50:08]Host: 172.17.96.67:8080 [15:50:08]Content-Length: 677 [15:50:08]Content-Type: application/json [15:50:08] [15:50:08]POST finish read [15:50:08]Found Content-Length = 677 [15:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:50:08]execute_script... [15:50: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)245936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:50:08]POST & json_proto [15:50:08]process_json_proto [15:50:08]json parsed OK: [15:50:08]protocol is kg_v1.0 [15:50:08]action value=close_receipt [15:50:08]process_action close_receipt [15:50:08]cmd_close_receipt [15:50:08]MH_GetDate [15:50:08]Write to MH i2c: F0 00 00 E7 10 E6 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: F0 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: F0 09 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: F0 09 00 E7 10 00 B1 55 22 67 47 6C 1F 67 B7 [15:50:08]GetLastDocTimeStamp 1730303384 [15:50:08]current date 1730303409 [15:50:08]FM_GetShiftState [15:50:08]SAM_PROTO_GetShiftState [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 13 01 00 [15:50:08]Write to MH i2c: E2 08 00 E8 10 80 13 01 00 00 00 00 00 75 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:08]Read from MH i2c: E2 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 0E 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 0E 00 E8 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4D [15:50:08]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:50:08]wFMCommunicate OK [15:50:08]SAM_PROTO_GetShiftState done [15:50:08]FM_GetShiftState done [15:50:08]opened in 1730246605 [15:50:08]opened+sec_in_day 1730333005 [15:50:08]quantity*price = 20003 [15:50:08]sum+1 = 20004 [15:50:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 199 30.10.2024 15:50 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118139 ФПД: 88396447225241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T155009&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118139&fm=88396447225241&tin=02508201610067®Number=0000000000091782&sum=20000 [15:50:09]StoreToDocumentArchive [15:50:09]shift 545 fd 118139 [15:50:09]save to /storage/0545/doc_00118139 [15:50:09]save last doc name /storage/0545/doc_00118139 to /storage/kkm_last_doc_name [15:50:09]save OK [15:50:09]Clear old archive folders... [15:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:09]tlvbuf is 001481E0 [15:50:09]SAM_PROTO_ClearQueue [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 09 00 00 [15:50:09]Write to MH i2c: E2 08 00 F5 10 80 09 00 00 00 00 00 00 77 [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [15:50:09]RAPDU: 90 00 [15:50:09]wFMCommunicate OK [15:50:09]SAM_PROTO_ClearQueue done [15:50:09]KKMCreateOFDPacket [15:50:09]OFDProtocolAddRootSTLVToBuf [15:50:09]FM_MakeSignedData [15:50:09]FM_MakeSignedData [15:50:09]SAM_PROTO_SignData [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 0D 01 02 [15:50:09]Write to MH i2c: E2 08 00 F6 10 80 0D 01 02 00 00 00 00 7F [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [15:50:09]RAPDU: 90 00 [15:50:09]wFMCommunicate OK [15:50:09]wFMCommunicate request_size=255 [15:50:09]MH_SAM_APDU [15:50: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 32 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 C7 00 00 00 F4 03 04 00 B1 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7B CD 01 00 35 04 06 00 50 [15:50:09]Write to MH i2c: E2 02 01 F7 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C7 00 00 00 F4 03 04 00 B1 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7B CD 01 00 35 04 06 00 50 00 00 E5 [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 F7 10 00 90 00 7B [15:50:09]RAPDU: 90 00 [15:50:09]wFMCommunicate OK [15:50:09]wFMCommunicate request_size=10 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 0D 02 02 05 65 66 D6 15 99 [15:50:09]Write to MH i2c: E2 0D 00 F8 10 80 0D 02 02 05 00 65 66 D6 15 99 00 00 DB [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [15:50:09]RAPDU: 90 00 [15:50:09]wFMCommunicate OK [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 0D 03 02 [15:50:09]Write to MH i2c: E2 08 00 F9 10 80 0D 03 02 00 00 00 00 84 [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0B 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0B 00 F9 10 00 5C DA 63 C2 5F 2C EA 39 90 00 8E [15:50:09]RAPDU: 5C DA 63 C2 5F 2C EA 39 90 00 [15:50:09]wFMCommunicate OK [15:50:09]SAM_PROTO_SignData done [15:50:09]FM_MakeSignedData done [15:50:09]CreateOFDProtocolMessage [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 11 00 00 [15:50:09]Write to MH i2c: E2 08 00 FA 10 80 11 00 00 00 00 00 00 84 [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 17 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 17 00 FA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DB [15:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:50:09]wFMCommunicate OK [15:50:09]CreateOFDProtocolMessage done [15:50:09]OFDSenderStorePacket 118139 [15:50:09]StoreOFDPacket docnum=118139 [15:50:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C2 96 07 01 44 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 32 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 C7 00 00 00 F4 03 04 00 B1 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7B CD 01 00 35 04 06 00 50 65 66 D6 15 99 5C DA 63 C2 5F 2C EA 39 [15:50:09]CheckFolder [15:50:09]dirname=/storage/ofd_packets [15:50:09]CheckFolder done [15:50:09]ProducePacketName [15:50:09]name=ofd_packets/00118139 [15:50:09]NVStorageSaveData ofd_packets/00118139 [15:50:09]File name is /storage/ofd_packets/00118139 [15:50:09]Write 301 bytes [15:50:09]NVStorageSaveData done [15:50:09]OFDSenderStorePacket done [15:50:09]KKMCreateOFDPacket done [15:50:09]NVStorageSaveData kkm_last_timestamp [15:50:09]File name is /storage/kkm_last_timestamp [15:50:09]Write 4 bytes [15:50:09]NVStorageSaveData done [15:50:09]ExternCall_PrintAddStr [15:50:09]wPrintStart [15:50:09]Write to MH i2c: 01 00 00 FB 10 0B [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: 01 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: 01 07 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [15:50:09]RasterBufferAndPrint [15:50:09]line Счет N : (1)245936 [15:50:09]line ИНН: 02508201610067 [15:50:09]line Контрольно-Кассовый Чек [15:50:09]line ПРОДАЖА [15:50:09]line ТРК (МРК, ГНК) : 21 [15:50:09]line Товар: 2710124130 [15:50:09]line Аи-92-К-2 [15:50:09]line 2.990 * 66.90 [15:50:09]line = 200.03 [15:50:09]line НДС 12% НСП 1% [15:50:09]line > о реализуемом товаре [15:50:09]line ОКРУГЛЕНИЕ: -0.03 [15:50:09]line ИТОГО: 200.00 [15:50:09]line Внесено: 200.00 [15:50:09]line СДАЧА: 0.00 [15:50:09]line НСП 1% : 1.77 [15:50:09]line НДС 12% : 21.24 [15:50:09]line Наличными: 200.00 [15:50:09]line Безнал.: 0.00 [15:50:09]line Место: АЗС № 173 "Партнер Нефть" [15:50:09]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [15:50:09]line СНО: Общий режим [15:50:09]line Чек 199 30.10.2024 15:50 [15:50:09]line Смена: 545 ФФД: 1.0 [15:50:09]line ЗНМ: 0300000115 [15:50:09]line РНМ: 0000000000091782 [15:50:09]line Версия ККМ: 001 [15:50:09]line ФМ: 0000000000871767 [15:50:09]line ФД: 118139 [15:50:09]line ФПД: 88396447225241 [15:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T155009&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118139&fm=88396447225241&tin=02508201610067®Number=0000000000091782&sum=20000 [15:50:10]OFD Sender: Processing packet 118139 [packets to send 77, broken 76] [15:50:10]ProducePacketName [15:50:10]name=ofd_packets/00118139 [15:50:10]OFD Sender: To server: pG, [15:50:10]CommunicateWithHost lk.salyk.kg:30040 [15:50:10]ConnectInit lk.salyk.kg [15:50:10]written 0, free lines is 4095 [15:50:10]Connected sock=10 [15:50: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 36 37 0F 01 00 00 C2 96 07 01 44 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 32 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 C7 00 00 00 F4 03 04 00 B1 55 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7B CD 01 00 35 04 06 00 50 65 66 D6 15 99 5C DA 63 C2 5F 2C EA 39 [15:50: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 36 37 4F 00 00 00 42 0B 47 00 B6 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7B CD 01 00 F4 03 04 00 68 01 22 67 B6 04 01 00 00 97 36 E0 3F 28 E8 B5 F1 [15:50:10]CommunicateWithHost err = 0 [15:50:10]CheckOFDResponse [15:50:10]1017 (14) - 77093643461234 [15:50:10]1041 (16) - 0000000000871767 [15:50:10]1040 (4) - 118139 [15:50:10]1012 (4) - 30.10.2024 09:50 [15:50:10]1206 (1) - 0 [15:50:10]OFD Sender: Remove packet 118139 [15:50:10]ProducePacketName [15:50:10]name=ofd_packets/00118139 [15:50:10]NVStorageDeleteData [15:50:10]Write to MH i2c: 01 00 00 25 11 36 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: 01 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: 01 07 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: 01 07 00 25 11 00 00 00 00 00 B8 0C 01 [15:50:10]RasterBufferAndPrint [15:50:10]line [15:50:10]line [15:50:10]line [15:50:10]line [15:50:10]line [15:50:10]written 0, free lines is 3262 [15:50:10]MH_Cut [15:50:10]Write to MH i2c: D1 01 00 2C 11 01 0F [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: D1 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: D1 01 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: D1 01 00 2C 11 00 0E [15:50:10]Write to MH i2c: 01 00 00 2D 11 3E [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]OFD Sender: No OFD packet to send [15:50:11]*** Cut start [15:50:11]*** Purtial cut [15:50:11]*** Stage 1: CUTSNS_PIN = 1 [15:50:11]Read from MH i2c: 01 [15:50:11]MH_I2C_Read... [15:50:11]*** Stop cut motor [15:50:11]*** Cut end [15:50:11]Read from MH i2c: 01 07 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: 01 07 00 2D 11 00 00 00 00 00 FF 0F 53 [15:50:11]process_action close_receipt done [15:50:11]requested_data is exist [15:50:11]produce_requested_data [15:50:11]requested_item fm.sn is exist - process it [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 11 00 00 [15:50:11]Write to MH i2c: E2 08 00 2E 11 80 11 00 00 00 00 00 00 B9 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 17 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 17 00 2E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 10 [15:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [15:50:11]wFMCommunicate OK [15:50:11]requested_item fd.num is exist - process it [15:50:11]SAM_PROTO_GetFieldsCounters [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 13 00 00 [15:50:11]Write to MH i2c: E2 08 00 2F 11 80 13 00 00 00 00 00 00 BC [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 62 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 62 00 2F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [15:50:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:11]wFMCommunicate OK [15:50:11]SAM_PROTO_GetFieldsCounters done [15:50:11]requested_item shift.num is exist - process it [15:50:11]requested_item shift.opened is exist - process it [15:50:11]req_shift_opened [15:50:11]FM_GetShiftState [15:50:11]SAM_PROTO_GetShiftState [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 13 01 00 [15:50:11]Write to MH i2c: E2 08 00 30 11 80 13 01 00 00 00 00 00 BE [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 0E 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 0E 00 30 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 96 [15:50:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [15:50:11]wFMCommunicate OK [15:50:11]SAM_PROTO_GetShiftState done [15:50:11]FM_GetShiftState done [15:50:11]req_shift_opened done [15:50:11]requested_item shift.open_date is exist - process it [15:50:11]req_shift_open_date [15:50:11]req_shift_open_date done [15:50:11]produce_requested_data done [15:50:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118139,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [15:50:11]process_action_free close_receipt [15:50:11]json_value_free [15:50:11]json_value_free done [15:50:11]process_json_proto returns [15:50:11]Send response to host [15:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118139,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [15:50:11]free response buf [15:50:11]execute_script done [15:50:11]execute_script returns [15:50:11]free content buf [15:50:11]Sock 9.Close socket [15:50:11]Sock 9.Thread stoped [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]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]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08: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:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:41]accept exits with 7 [16:10:41]New connection [16:10:41]New thread 3066551652 created [16:10:41]Thread 3066695012 joined [16:10:41]Waiting for new connection... [16:10:41] Sock 7.Parse request [16:10:41]Sock 7.Check first char [16:10:41]Sock 7.First char is OK [16:10:41]request: POST /json_proto HTTP/1.0 [16:10:41]Method: POST [16:10:41]URL: /json_proto [16:10:41]Method is POST - this is cgi request [16:10:41]url: /json_proto [16:10:41]query_string will be loaded in cgi processing [16:10:41]execute_cgi json_proto POST (null) [16:10:41]execute_cgi path=json_proto method=POST [16:10:41]POST find Content-Length [16:10:41]Host: 172.17.96.67:8080 [16:10:41]Content-Length: 677 [16:10:41]Content-Type: application/json [16:10:41] [16:10:41]POST finish read [16:10:41]Found Content-Length = 677 [16:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:41]execute_script... [16:10:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:41]POST & json_proto [16:10:41]process_json_proto [16:10:41]json parsed OK: [16:10:41]protocol is kg_v1.0 [16:10:41]action value=close_receipt [16:10:41]process_action close_receipt [16:10:41]cmd_close_receipt [16:10:41]MH_GetDate [16:10:41]Write to MH i2c: F0 00 00 31 11 31 [16:10:41]Write i2c OK [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: F0 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: F0 09 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: F0 09 00 31 11 00 83 5A 22 67 47 6C 1F 67 D9 [16:10:41]GetLastDocTimeStamp 1730303409 [16:10:41]current date 1730304643 [16:10:41]FM_GetShiftState [16:10:41]SAM_PROTO_GetShiftState [16:10:41]wFMCommunicate request_size=4 [16:10:41]MH_SAM_APDU [16:10:41]CAPDU: 80 13 01 00 [16:10:41]Write to MH i2c: E2 08 00 32 11 80 13 01 00 00 00 00 00 C0 [16:10:41]Write i2c OK [16:10:41]MH_I2C_Read... [16:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:41]Read from MH i2c: E2 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 0E 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 0E 00 32 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 98 [16:10:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:10:41]wFMCommunicate OK [16:10:41]SAM_PROTO_GetShiftState done [16:10:41]FM_GetShiftState done [16:10:41]opened in 1730246605 [16:10:41]opened+sec_in_day 1730333005 [16:10:41]quantity*price = 30038 [16:10:41]sum+1 = 30039 [16:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 200 30.10.2024 16:10 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118140 ФПД: 5228755408251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161043&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118140&fm=5228755408251&tin=02508201610067®Number=0000000000091782&sum=30000 [16:10:43]StoreToDocumentArchive [16:10:43]shift 545 fd 118140 [16:10:43]save to /storage/0545/doc_00118140 [16:10:43]save last doc name /storage/0545/doc_00118140 to /storage/kkm_last_doc_name [16:10:43]save OK [16:10:43]Clear old archive folders... [16:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:43]tlvbuf is 000D1A40 [16:10:43]SAM_PROTO_ClearQueue [16:10:43]wFMCommunicate request_size=4 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 09 00 00 [16:10:43]Write to MH i2c: E2 08 00 3F 11 80 09 00 00 00 00 00 00 C2 [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [16:10:43]RAPDU: 90 00 [16:10:43]wFMCommunicate OK [16:10:43]SAM_PROTO_ClearQueue done [16:10:43]KKMCreateOFDPacket [16:10:43]OFDProtocolAddRootSTLVToBuf [16:10:43]FM_MakeSignedData [16:10:43]FM_MakeSignedData [16:10:43]SAM_PROTO_SignData [16:10:43]wFMCommunicate request_size=4 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 0D 01 02 [16:10:43]Write to MH i2c: E2 08 00 40 11 80 0D 01 02 00 00 00 00 CA [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [16:10:43]RAPDU: 90 00 [16:10:43]wFMCommunicate OK [16:10:43]wFMCommunicate request_size=255 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 83 5A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7C CD 01 00 35 04 06 00 04 [16:10:43]Write to MH i2c: E2 02 01 41 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 83 5A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7C CD 01 00 35 04 06 00 04 00 00 EF [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [16:10:43]RAPDU: 90 00 [16:10:43]wFMCommunicate OK [16:10:43]wFMCommunicate request_size=10 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 0D 02 02 05 C1 6A 1B D5 7B [16:10:43]Write to MH i2c: E2 0D 00 42 11 80 0D 02 02 05 00 C1 6A 1B D5 7B 00 00 6D [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 03 00 42 11 00 90 00 C7 [16:10:43]RAPDU: 90 00 [16:10:43]wFMCommunicate OK [16:10:43]wFMCommunicate request_size=4 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 0D 03 02 [16:10:43]Write to MH i2c: E2 08 00 43 11 80 0D 03 02 00 00 00 00 CF [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 0B 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 0B 00 43 11 00 07 1B 3D 7D 96 3D D4 2E 90 00 81 [16:10:43]RAPDU: 07 1B 3D 7D 96 3D D4 2E 90 00 [16:10:43]wFMCommunicate OK [16:10:43]SAM_PROTO_SignData done [16:10:43]FM_MakeSignedData done [16:10:43]CreateOFDProtocolMessage [16:10:43]wFMCommunicate request_size=4 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 11 00 00 [16:10:43]Write to MH i2c: E2 08 00 44 11 80 11 00 00 00 00 00 00 CF [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 17 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 17 00 44 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 26 [16:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:10:43]wFMCommunicate OK [16:10:43]CreateOFDProtocolMessage done [16:10:43]OFDSenderStorePacket 118140 [16:10:43]StoreOFDPacket docnum=118140 [16:10:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5F EC 07 01 C4 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 83 5A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7C CD 01 00 35 04 06 00 04 C1 6A 1B D5 7B 07 1B 3D 7D 96 3D D4 2E [16:10:43]CheckFolder [16:10:43]dirname=/storage/ofd_packets [16:10:43]CheckFolder done [16:10:43]ProducePacketName [16:10:43]name=ofd_packets/00118140 [16:10:43]NVStorageSaveData ofd_packets/00118140 [16:10:43]File name is /storage/ofd_packets/00118140 [16:10:43]Write 301 bytes [16:10:43]NVStorageSaveData done [16:10:43]OFDSenderStorePacket done [16:10:43]KKMCreateOFDPacket done [16:10:43]NVStorageSaveData kkm_last_timestamp [16:10:43]File name is /storage/kkm_last_timestamp [16:10:43]Write 4 bytes [16:10:43]NVStorageSaveData done [16:10:43]ExternCall_PrintAddStr [16:10:43]wPrintStart [16:10:43]Write to MH i2c: 01 00 00 45 11 56 [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: 01 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: 01 07 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 FF 0F 6B [16:10:43]RasterBufferAndPrint [16:10:43]line Счет N : (1)245937 [16:10:43]line ИНН: 02508201610067 [16:10:43]line Контрольно-Кассовый Чек [16:10:43]line ПРОДАЖА [16:10:43]line ТРК (МРК, ГНК) : 21 [16:10:43]line Товар: 2710124130 [16:10:43]line Аи-92-К-2 [16:10:43]line 4.490 * 66.90 [16:10:43]line = 300.38 [16:10:43]line НДС 12% НСП 1% [16:10:43]line > о реализуемом товаре [16:10:43]line ОКРУГЛЕНИЕ: -0.38 [16:10:43]line ИТОГО: 300.00 [16:10:43]line Внесено: 300.00 [16:10:43]line СДАЧА: 0.00 [16:10:43]line НСП 1% : 2.66 [16:10:43]line НДС 12% : 31.90 [16:10:43]line Наличными: 300.00 [16:10:43]line Безнал.: 0.00 [16:10:43]line Место: АЗС № 173 "Партнер Нефть" [16:10:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:10:43]line СНО: Общий режим [16:10:43]line Чек 200 30.10.2024 16:10 [16:10:43]line Смена: 545 ФФД: 1.0 [16:10:43]line ЗНМ: 0300000115 [16:10:43]line РНМ: 0000000000091782 [16:10:43]line Версия ККМ: 001 [16:10:43]line ФМ: 0000000000871767 [16:10:43]line ФД: 118140 [16:10:43]line ФПД: 5228755408251 [16:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161043&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118140&fm=5228755408251&tin=02508201610067®Number=0000000000091782&sum=30000 [16:10:43]written 0, free lines is 4095 [16:10:43]OFD Sender: Processing packet 118140 [packets to send 77, broken 76] [16:10:43]ProducePacketName [16:10:43]name=ofd_packets/00118140 [16:10:43]OFD Sender: To server: pG, [16:10:43]CommunicateWithHost lk.salyk.kg:30040 [16:10:43]ConnectInit lk.salyk.kg [16:10:44]Connected sock=10 [16:10: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 36 37 0F 01 00 00 5F EC 07 01 C4 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 83 5A 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7C CD 01 00 35 04 06 00 04 C1 6A 1B D5 7B 07 1B 3D 7D 96 3D D4 2E [16:10:44]Write to MH i2c: 01 00 00 6F 11 80 [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: 01 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: 01 07 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 C7 0C 5A [16:10:44]RasterBufferAndPrint [16:10:44]line [16:10:44]line [16:10:44]line [16:10:44]line [16:10:44]line [16:10:44]written 0, free lines is 3278 [16:10:44]MH_Cut [16:10:44]Write to MH i2c: D1 01 00 76 11 01 59 [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: D1 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: D1 01 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: D1 01 00 76 11 00 58 [16:10:44]Write to MH i2c: 01 00 00 77 11 88 [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 1C 1B 47 00 27 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7C CD 01 00 F4 03 04 00 3A 06 22 67 B6 04 01 00 00 0C E8 51 CD 9D 38 8D EB [16:10:44]CommunicateWithHost err = 0 [16:10:44]CheckOFDResponse [16:10:44]1017 (14) - 77093643461234 [16:10:44]1041 (16) - 0000000000871767 [16:10:44]1040 (4) - 118140 [16:10:44]1012 (4) - 30.10.2024 10:11 [16:10:44]1206 (1) - 0 [16:10:44]OFD Sender: Remove packet 118140 [16:10:44]ProducePacketName [16:10:44]name=ofd_packets/00118140 [16:10:44]NVStorageDeleteData [16:10:44]OFD Sender: No OFD packet to send [16:10:44]*** Cut start [16:10:44]*** Purtial cut [16:10:44]*** Stage 1: CUTSNS_PIN = 1 [16:10:45]Read from MH i2c: 01 [16:10:45]MH_I2C_Read... [16:10:45]*** Stop cut motor [16:10:45]*** Cut end [16:10:45]Read from MH i2c: 01 07 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 FF 0F 9D [16:10:45]process_action close_receipt done [16:10:45]requested_data is exist [16:10:45]produce_requested_data [16:10:45]requested_item fm.sn is exist - process it [16:10:45]wFMCommunicate request_size=4 [16:10:45]MH_SAM_APDU [16:10:45]CAPDU: 80 11 00 00 [16:10:45]Write to MH i2c: E2 08 00 78 11 80 11 00 00 00 00 00 00 03 [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:45]Read from MH i2c: E2 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 17 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 17 00 78 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5A [16:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:10:45]wFMCommunicate OK [16:10:45]requested_item fd.num is exist - process it [16:10:45]SAM_PROTO_GetFieldsCounters [16:10:45]wFMCommunicate request_size=4 [16:10:45]MH_SAM_APDU [16:10:45]CAPDU: 80 13 00 00 [16:10:45]Write to MH i2c: E2 08 00 79 11 80 13 00 00 00 00 00 00 06 [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:45]Read from MH i2c: E2 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 62 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 62 00 79 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7C CD 01 00 0E 04 04 00 21 02 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 F2 [16:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:45]wFMCommunicate OK [16:10:45]SAM_PROTO_GetFieldsCounters done [16:10:45]requested_item shift.num is exist - process it [16:10:45]requested_item shift.opened is exist - process it [16:10:45]req_shift_opened [16:10:45]FM_GetShiftState [16:10:45]SAM_PROTO_GetShiftState [16:10:45]wFMCommunicate request_size=4 [16:10:45]MH_SAM_APDU [16:10:45]CAPDU: 80 13 01 00 [16:10:45]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:45]Read from MH i2c: E2 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 0E 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E0 [16:10:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:10:45]wFMCommunicate OK [16:10:45]SAM_PROTO_GetShiftState done [16:10:45]FM_GetShiftState done [16:10:45]req_shift_opened done [16:10:45]requested_item shift.open_date is exist - process it [16:10:45]req_shift_open_date [16:10:45]req_shift_open_date done [16:10:45]produce_requested_data done [16:10:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118140,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:10:45]process_action_free close_receipt [16:10:45]json_value_free [16:10:45]json_value_free done [16:10:45]process_json_proto returns [16:10:45]Send response to host [16:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118140,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:10:45]free response buf [16:10:45]execute_script done [16:10:45]execute_script returns [16:10:45]free content buf [16:10:45]Sock 7.Close socket [16:10:45]Sock 7.Thread stoped [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:47]accept exits with 9 [16:13:47]New connection [16:13:47]New thread 3066695012 created [16:13:47]Thread 3066551652 joined [16:13:47]Waiting for new connection... [16:13:47] Sock 9.Parse request [16:13:47]Sock 9.Check first char [16:13:47]Sock 9.First char is OK [16:13:47]request: POST /json_proto HTTP/1.0 [16:13:47]Method: POST [16:13:47]URL: /json_proto [16:13:47]Method is POST - this is cgi request [16:13:47]url: /json_proto [16:13:47]query_string will be loaded in cgi processing [16:13:47]execute_cgi json_proto POST (null) [16:13:47]execute_cgi path=json_proto method=POST [16:13:47]POST find Content-Length [16:13:47]Host: 172.17.96.67:8080 [16:13:47]Content-Length: 679 [16:13:47]Content-Type: application/json [16:13:47] [16:13:47]POST finish read [16:13:47]Found Content-Length = 679 [16:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:13:47]execute_script... [16:13:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:13:47]POST & json_proto [16:13:47]process_json_proto [16:13:47]json parsed OK: [16:13:47]protocol is kg_v1.0 [16:13:47]action value=close_receipt [16:13:47]process_action close_receipt [16:13:47]cmd_close_receipt [16:13:47]MH_GetDate [16:13:47]Write to MH i2c: F0 00 00 7B 11 7B [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: F0 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: F0 09 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: F0 09 00 7B 11 00 3C 5B 22 67 47 6C 1F 67 DD [16:13:47]GetLastDocTimeStamp 1730304643 [16:13:47]current date 1730304828 [16:13:47]FM_GetShiftState [16:13:47]SAM_PROTO_GetShiftState [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 13 01 00 [16:13:47]Write to MH i2c: E2 08 00 7C 11 80 13 01 00 00 00 00 00 0A [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0E 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0E 00 7C 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E2 [16:13:47]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:13:47]wFMCommunicate OK [16:13:47]SAM_PROTO_GetShiftState done [16:13:47]FM_GetShiftState done [16:13:47]opened in 1730246605 [16:13:47]opened+sec_in_day 1730333005 [16:13:47]quantity*price = 100050 [16:13:47]sum+1 = 100052 [16:13:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 201 30.10.2024 16:13 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118141 ФПД: 11427274632896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161348&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118141&fm=11427274632896&tin=02508201610067®Number=0000000000091782&sum=100000 [16:13:48]StoreToDocumentArchive [16:13:48]shift 545 fd 118141 [16:13:48]save to /storage/0545/doc_00118141 [16:13:48]save last doc name /storage/0545/doc_00118141 to /storage/kkm_last_doc_name [16:13:48]save OK [16:13:48]Clear old archive folders... [16:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:48]tlvbuf is 000B6950 [16:13:48]SAM_PROTO_ClearQueue [16:13:48]wFMCommunicate request_size=4 [16:13:48]MH_SAM_APDU [16:13:48]CAPDU: 80 09 00 00 [16:13:48]Write to MH i2c: E2 08 00 89 11 80 09 00 00 00 00 00 00 0C [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:48]Read from MH i2c: E2 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [16:13:48]RAPDU: 90 00 [16:13:48]wFMCommunicate OK [16:13:48]SAM_PROTO_ClearQueue done [16:13:48]KKMCreateOFDPacket [16:13:48]OFDProtocolAddRootSTLVToBuf [16:13:48]FM_MakeSignedData [16:13:48]FM_MakeSignedData [16:13:48]SAM_PROTO_SignData [16:13:48]wFMCommunicate request_size=4 [16:13:48]MH_SAM_APDU [16:13:48]CAPDU: 80 0D 01 02 [16:13:48]Write to MH i2c: E2 08 00 8A 11 80 0D 01 02 00 00 00 00 14 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:48]Read from MH i2c: E2 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [16:13:48]RAPDU: 90 00 [16:13:48]wFMCommunicate OK [16:13:48]wFMCommunicate request_size=255 [16:13:48]MH_SAM_APDU [16:13:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 3C 5B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CD 01 00 35 04 06 00 0A 64 9E A5 [16:13:48]Write to MH i2c: E2 02 01 8B 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 3C 5B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CD 01 00 35 04 06 00 0A 64 9E A5 00 00 A4 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:48]Read from MH i2c: E2 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [16:13:48]RAPDU: 90 00 [16:13:48]wFMCommunicate OK [16:13:48]wFMCommunicate request_size=7 [16:13:48]MH_SAM_APDU [16:13:48]CAPDU: 80 0D 02 02 02 2E C0 [16:13:48]Write to MH i2c: E2 0A 00 8C 11 80 0D 02 02 02 00 2E C0 00 00 09 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:48]Read from MH i2c: E2 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 03 00 8C 11 00 90 00 11 [16:13:48]RAPDU: 90 00 [16:13:48]wFMCommunicate OK [16:13:48]wFMCommunicate request_size=4 [16:13:48]MH_SAM_APDU [16:13:48]CAPDU: 80 0D 03 02 [16:13:48]Write to MH i2c: E2 08 00 8D 11 80 0D 03 02 00 00 00 00 19 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:48]Read from MH i2c: E2 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 0B 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 0B 00 8D 11 00 8F 9E 94 B1 D8 23 76 88 90 00 85 [16:13:48]RAPDU: 8F 9E 94 B1 D8 23 76 88 90 00 [16:13:48]wFMCommunicate OK [16:13:48]SAM_PROTO_SignData done [16:13:48]FM_MakeSignedData done [16:13:48]CreateOFDProtocolMessage [16:13:48]wFMCommunicate request_size=4 [16:13:48]MH_SAM_APDU [16:13:48]CAPDU: 80 11 00 00 [16:13:48]Write to MH i2c: E2 08 00 8E 11 80 11 00 00 00 00 00 00 19 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:48]Read from MH i2c: E2 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 17 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 17 00 8E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 70 [16:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:13:48]wFMCommunicate OK [16:13:48]CreateOFDProtocolMessage done [16:13:48]OFDSenderStorePacket 118141 [16:13:48]StoreOFDPacket docnum=118141 [16:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 CC 7A 04 01 E4 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 3C 5B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CD 01 00 35 04 06 00 0A 64 9E A5 2E C0 8F 9E 94 B1 D8 23 76 88 [16:13:48]CheckFolder [16:13:48]dirname=/storage/ofd_packets [16:13:48]CheckFolder done [16:13:48]ProducePacketName [16:13:48]name=ofd_packets/00118141 [16:13:48]NVStorageSaveData ofd_packets/00118141 [16:13:48]File name is /storage/ofd_packets/00118141 [16:13:48]Write 298 bytes [16:13:48]NVStorageSaveData done [16:13:48]OFDSenderStorePacket done [16:13:48]KKMCreateOFDPacket done [16:13:48]NVStorageSaveData kkm_last_timestamp [16:13:48]File name is /storage/kkm_last_timestamp [16:13:48]Write 4 bytes [16:13:48]NVStorageSaveData done [16:13:48]ExternCall_PrintAddStr [16:13:48]wPrintStart [16:13:48]Write to MH i2c: 01 00 00 8F 11 A0 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [16:13:48]RasterBufferAndPrint [16:13:48]line Счет N : (1)245938 [16:13:48]line ИНН: 02508201610067 [16:13:48]line Контрольно-Кассовый Чек [16:13:48]line ПРОДАЖА [16:13:48]line ТРК (МРК, ГНК) : 13 [16:13:48]line Товар: 2710194210 [16:13:48]line ДТ-К-2 [16:13:48]line 13.130 * 76.20 [16:13:48]line = 1000.51 [16:13:48]line НДС 12% НСП 1% [16:13:48]line > о реализуемом товаре [16:13:48]line ОКРУГЛЕНИЕ: -0.51 [16:13:48]line ИТОГО: 1000.00 [16:13:48]line Внесено: 1000.00 [16:13:48]line СДАЧА: 0.00 [16:13:48]line НСП 1% : 8.85 [16:13:48]line НДС 12% : 106.25 [16:13:48]line Наличными: 1000.00 [16:13:48]line Безнал.: 0.00 [16:13:48]line Место: АЗС № 173 "Партнер Нефть" [16:13:48]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:13:48]line СНО: Общий режим [16:13:48]line Чек 201 30.10.2024 16:13 [16:13:48]line Смена: 545 ФФД: 1.0 [16:13:48]line ЗНМ: 0300000115 [16:13:48]line РНМ: 0000000000091782 [16:13:48]line Версия ККМ: 001 [16:13:48]line ФМ: 0000000000871767 [16:13:48]line ФД: 118141 [16:13:48]line ФПД: 11427274632896 [16:13:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161348&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118141&fm=11427274632896&tin=02508201610067®Number=0000000000091782&sum=100000 [16:13:49]OFD Sender: Processing packet 118141 [packets to send 77, broken 76] [16:13:49]ProducePacketName [16:13:49]name=ofd_packets/00118141 [16:13:49]OFD Sender: To server: pG, [16:13:49]CommunicateWithHost lk.salyk.kg:30040 [16:13:49]ConnectInit lk.salyk.kg [16:13:49]written 0, free lines is 4095 [16:13:49]Connected sock=7 [16:13: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 36 37 0C 01 00 00 CC 7A 04 01 E4 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 3C 5B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CD 01 00 35 04 06 00 0A 64 9E A5 2E C0 8F 9E 94 B1 D8 23 76 88 [16:13: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 36 37 4F 00 00 00 08 69 47 00 04 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7D CD 01 00 F4 03 04 00 F4 06 22 67 B6 04 01 00 00 BF 64 C0 AD 53 B8 CB E0 [16:13:49]CommunicateWithHost err = 0 [16:13:49]CheckOFDResponse [16:13:49]1017 (14) - 77093643461234 [16:13:49]1041 (16) - 0000000000871767 [16:13:49]1040 (4) - 118141 [16:13:49]1012 (4) - 30.10.2024 10:14 [16:13:49]1206 (1) - 0 [16:13:49]OFD Sender: Remove packet 118141 [16:13:49]ProducePacketName [16:13:49]name=ofd_packets/00118141 [16:13:49]NVStorageDeleteData [16:13:49]Write to MH i2c: 01 00 00 B9 11 CA [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: 01 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: 01 07 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: 01 07 00 B9 11 00 00 00 00 00 C8 0C A5 [16:13:49]RasterBufferAndPrint [16:13:49]line [16:13:49]line [16:13:49]line [16:13:49]line [16:13:49]line [16:13:49]written 0, free lines is 3281 [16:13:49]MH_Cut [16:13:49]Write to MH i2c: D1 01 00 C0 11 01 A3 [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: D1 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: D1 01 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: D1 01 00 C0 11 00 A2 [16:13:49]Write to MH i2c: 01 00 00 C1 11 D2 [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:50]OFD Sender: No OFD packet to send [16:13:50]*** Cut start [16:13:50]*** Purtial cut [16:13:50]*** Stage 1: CUTSNS_PIN = 1 [16:13:50]Read from MH i2c: 01 [16:13:50]MH_I2C_Read... [16:13:50]*** Stop cut motor [16:13:50]*** Cut end [16:13:50]Read from MH i2c: 01 07 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: 01 07 00 C1 11 00 00 00 00 00 FF 0F E7 [16:13:50]process_action close_receipt done [16:13:50]requested_data is exist [16:13:50]produce_requested_data [16:13:50]requested_item fm.sn is exist - process it [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 11 00 00 [16:13:50]Write to MH i2c: E2 08 00 C2 11 80 11 00 00 00 00 00 00 4D [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 17 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 17 00 C2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A4 [16:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:13:50]wFMCommunicate OK [16:13:50]requested_item fd.num is exist - process it [16:13:50]SAM_PROTO_GetFieldsCounters [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 13 00 00 [16:13:50]Write to MH i2c: E2 08 00 C3 11 80 13 00 00 00 00 00 00 50 [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:51]Read from MH i2c: E2 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 62 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 62 00 C3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7D CD 01 00 0E 04 04 00 21 02 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 40 [16:13: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:51]wFMCommunicate OK [16:13:51]SAM_PROTO_GetFieldsCounters done [16:13:51]requested_item shift.num is exist - process it [16:13:51]requested_item shift.opened is exist - process it [16:13:51]req_shift_opened [16:13:51]FM_GetShiftState [16:13:51]SAM_PROTO_GetShiftState [16:13:51]wFMCommunicate request_size=4 [16:13:51]MH_SAM_APDU [16:13:51]CAPDU: 80 13 01 00 [16:13:51]Write to MH i2c: E2 08 00 C4 11 80 13 01 00 00 00 00 00 52 [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:51]Read from MH i2c: E2 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 0E 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 0E 00 C4 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2A [16:13:51]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:13:51]wFMCommunicate OK [16:13:51]SAM_PROTO_GetShiftState done [16:13:51]FM_GetShiftState done [16:13:51]req_shift_opened done [16:13:51]requested_item shift.open_date is exist - process it [16:13:51]req_shift_open_date [16:13:51]req_shift_open_date done [16:13:51]produce_requested_data done [16:13:51]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118141,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:13:51]process_action_free close_receipt [16:13:51]json_value_free [16:13:51]json_value_free done [16:13:51]process_json_proto returns [16:13:51]Send response to host [16:13:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118141,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:13:51]free response buf [16:13:51]execute_script done [16:13:51]execute_script returns [16:13:51]free content buf [16:13:51]Sock 9.Close socket [16:13:51]Sock 9.Thread stoped [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:27]accept exits with 10 [16:14:27]New connection [16:14:27]New thread 3066551652 created [16:14:27]Thread 3066695012 joined [16:14:27]Waiting for new connection... [16:14:27] Sock 10.Parse request [16:14:27]Sock 10.Check first char [16:14:27]Sock 10.First char is OK [16:14:27]request: POST /json_proto HTTP/1.0 [16:14:27]Method: POST [16:14:27]URL: /json_proto [16:14:27]Method is POST - this is cgi request [16:14:27]url: /json_proto [16:14:27]query_string will be loaded in cgi processing [16:14:27]execute_cgi json_proto POST (null) [16:14:27]execute_cgi path=json_proto method=POST [16:14:27]POST find Content-Length [16:14:27]Host: 172.17.96.67:8080 [16:14:27]Content-Length: 679 [16:14:27]Content-Type: application/json [16:14:27] [16:14:27]POST finish read [16:14:27]Found Content-Length = 679 [16:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:14:27]execute_script... [16:14: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)245939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:14:27]POST & json_proto [16:14:27]process_json_proto [16:14:27]json parsed OK: [16:14:27]protocol is kg_v1.0 [16:14:27]action value=close_receipt [16:14:27]process_action close_receipt [16:14:27]cmd_close_receipt [16:14:27]MH_GetDate [16:14:27]Write to MH i2c: F0 00 00 C5 11 C5 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: F0 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: F0 09 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: F0 09 00 C5 11 00 64 5B 22 67 47 6C 1F 67 4F [16:14:27]GetLastDocTimeStamp 1730304828 [16:14:27]current date 1730304868 [16:14:27]FM_GetShiftState [16:14:27]SAM_PROTO_GetShiftState [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 13 01 00 [16:14:27]Write to MH i2c: E2 08 00 C6 11 80 13 01 00 00 00 00 00 54 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 0E 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 0E 00 C6 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2C [16:14:27]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:14:27]wFMCommunicate OK [16:14:27]SAM_PROTO_GetShiftState done [16:14:27]FM_GetShiftState done [16:14:27]opened in 1730246605 [16:14:27]opened+sec_in_day 1730333005 [16:14:27]quantity*price = 100050 [16:14:27]sum+1 = 100052 [16:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре [16:22:27]line ОКРУГЛЕНИЕ: -0.51 [16:22:27]line ИТОГО: 1000.00 [16:22:27]line Внесено: 1000.00 [16:22:27]line СДАЧА: 0.00 [16:22:27]line НСП 1% : 8.85 [16:22:27]line НДС 12% : 106.25 [16:22:27]line Наличными: 1000.00 [16:22:27]line Безнал.: 0.00 [16:22:27]line Место: АЗС № 173 "Партнер Нефть" [16:22:27]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:22:27]line СНО: Общий режим [16:22:27]line Чек 202 30.10.2024 16:14 [16:22:27]line Смена: 545 ФФД: 1.0 [16:22:27]line ЗНМ: 0300000115 [16:22:27]line РНМ: 0000000000091782 [16:22:27]line Версия ККМ: 001 [16:22:27]line ФМ: 0000000000871767 [16:22:27]line ФД: 118142 [16:22:27]line ФПД: 73770503955857 [16:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161428&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118142&fm=73770503955857&tin=02508201610067®Number=0000000000091782&sum=100000 [16:22:27]written 0, free lines is 4095 [16:22:28]Write to MH i2c: 01 00 00 47 00 47 [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 07 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 B3 0C 0D [16:22:28]RasterBufferAndPrint [16:22:28]line [16:22:28]line [16:22:28]line [16:22:28]line [16:22:28]line [16:22:28]written 0, free lines is 3264 [16:22:28]MH_Cut [16:22:28]Write to MH i2c: D1 01 00 4E 00 01 20 [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: D1 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: D1 01 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: D1 01 00 4E 00 00 1F [16:22:28]Write to MH i2c: 01 00 00 4F 00 4F [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:29]*** Cut start [16:22:29]*** Purtial cut [16:22:29]*** Stage 1: CUTSNS_PIN = 1 [16:22:29]Read from MH i2c: 01 [16:22:29]MH_I2C_Read... [16:22:29]*** Stop cut motor [16:22:29]*** Cut end [16:22:29]Read from MH i2c: 01 07 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [16:22:29]process_action print_doc done [16:22:29]requested_data is exist [16:22:29]produce_requested_data [16:22:29]produce_requested_data return (null) [16:22:29]process_action_free print_doc [16:22:29]json_value_free [16:22:29]json_value_free done [16:22:29]process_json_proto returns [16:22:29]Send response to host [16:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:22:29]free response buf [16:22:29]execute_script done [16:22:29]execute_script returns [16:22:29]free content buf [16:22:29]Sock 9.Close socket [16:22:29]Sock 9.Thread stoped [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:50]accept exits with 7 [16:22:50]New connection [16:22:50]New thread 3067133284 created [16:22:50]Thread 3067276644 joined [16:22:50]Waiting for new connection... [16:22:50] Sock 7.Parse request [16:22:50]Sock 7.Check first char [16:22:50]Sock 7.First char is OK [16:22:50]request: POST /json_proto HTTP/1.0 [16:22:50]Method: POST [16:22:50]URL: /json_proto [16:22:50]Method is POST - this is cgi request [16:22:50]url: /json_proto [16:22:50]query_string will be loaded in cgi processing [16:22:50]execute_cgi json_proto POST (null) [16:22:50]execute_cgi path=json_proto method=POST [16:22:50]POST find Content-Length [16:22:50]Host: 172.17.96.67:8080 [16:22:50]Content-Length: 677 [16:22:50]Content-Type: application/json [16:22:50] [16:22:50]POST finish read [16:22:50]Found Content-Length = 677 [16:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:22:50]execute_script... [16:22: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)245941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:22:50]POST & json_proto [16:22:50]process_json_proto [16:22:50]json parsed OK: [16:22:50]protocol is kg_v1.0 [16:22:50]action value=close_receipt [16:22:50]process_action close_receipt [16:22:50]cmd_close_receipt [16:22:50]MH_GetDate [16:22:50]Write to MH i2c: F0 00 00 50 00 3F [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: F0 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: F0 09 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: F0 09 00 50 00 00 5A 5D 22 67 47 6C 1F 67 C1 [16:22:50]GetLastDocTimeStamp 1730304868 [16:22:50]current date 1730305370 [16:22:50]FM_GetShiftState [16:22:50]SAM_PROTO_GetShiftState [16:22:50]wFMCommunicate request_size=4 [16:22:50]MH_SAM_APDU [16:22:50]CAPDU: 80 13 01 00 [16:22:50]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 0E 00 [16:22:50]MH_I2C_Read... [16:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:50]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A6 [16:22:50]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:22:50]wFMCommunicate OK [16:22:50]SAM_PROTO_GetShiftState done [16:22:50]FM_GetShiftState done [16:22:50]opened in 1730246605 [16:22:50]opened+sec_in_day 1730333005 [16:22:50]quantity*price = 30038 [16:22:50]sum+1 = 30039 [16:22: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 203 30.10.2024 16:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118143 ФПД: 206267928104755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162250&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118143&fm=206267928104755&tin=02508201610067®Number=0000000000091782&sum=30000 [16:22:51]StoreToDocumentArchive [16:22:51]shift 545 fd 118143 [16:22:51]save to /storage/0545/doc_00118143 [16:22:51]save last doc name /storage/0545/doc_00118143 to /storage/kkm_last_doc_name [16:22:51]save OK [16:22:51]Clear old archive folders... [16:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:51]tlvbuf is 00209A60 [16:22:51]SAM_PROTO_ClearQueue [16:22:51]wFMCommunicate request_size=4 [16:22:51]MH_SAM_APDU [16:22:51]CAPDU: 80 09 00 00 [16:22:51]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_ClearQueue done [16:22:52]KKMCreateOFDPacket [16:22:52]OFDProtocolAddRootSTLVToBuf [16:22:52]FM_MakeSignedData [16:22:52]FM_MakeSignedData [16:22:52]SAM_PROTO_SignData [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 01 02 [16:22:52]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=255 [16:22:52]MH_SAM_APDU [16:22: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 32 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 CB 00 00 00 F4 03 04 00 5A 5D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CD 01 00 35 04 06 00 BB [16:22:52]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CB 00 00 00 F4 03 04 00 5A 5D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CD 01 00 35 04 06 00 BB 00 00 94 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=10 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 02 02 05 99 7E 95 4F 33 [16:22:52]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 99 7E 95 4F 33 00 00 13 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 03 02 [16:22:52]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0B 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0B 00 62 00 00 35 5F D8 25 5B 07 83 D1 90 00 25 [16:22:52]RAPDU: 35 5F D8 25 5B 07 83 D1 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_SignData done [16:22:52]FM_MakeSignedData done [16:22:52]CreateOFDProtocolMessage [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 11 00 00 [16:22:52]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 34 [16:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:22:52]wFMCommunicate OK [16:22:52]CreateOFDProtocolMessage done [16:22:52]OFDSenderStorePacket 118143 [16:22:52]StoreOFDPacket docnum=118143 [16:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0A E6 07 01 40 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 32 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 CB 00 00 00 F4 03 04 00 5A 5D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CD 01 00 35 04 06 00 BB 99 7E 95 4F 33 35 5F D8 25 5B 07 83 D1 [16:22:52]CheckFolder [16:22:52]dirname=/storage/ofd_packets [16:22:52]CheckFolder done [16:22:52]ProducePacketName [16:22:52]name=ofd_packets/00118143 [16:22:52]NVStorageSaveData ofd_packets/00118143 [16:22:52]File name is /storage/ofd_packets/00118143 [16:22:52]Write 301 bytes [16:22:52]NVStorageSaveData done [16:22:52]OFDSenderStorePacket done [16:22:52]KKMCreateOFDPacket done [16:22:52]NVStorageSaveData kkm_last_timestamp [16:22:52]File name is /storage/kkm_last_timestamp [16:22:52]Write 4 bytes [16:22:52]NVStorageSaveData done [16:22:52]ExternCall_PrintAddStr [16:22:52]wPrintStart [16:22:52]Write to MH i2c: 01 00 00 64 00 64 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:22:52]RasterBufferAndPrint [16:22:52]line Счет N : (1)245941 [16:22:52]line ИНН: 02508201610067 [16:22:52]line Контрольно-Кассовый Чек [16:22:52]line ПРОДАЖА [16:22:52]line ТРК (МРК, ГНК) : 21 [16:22:52]line Товар: 2710124130 [16:22:52]line Аи-92-К-2 [16:22:52]line 4.490 * 66.90 [16:22:52]line = 300.38 [16:22:52]line НДС 12% НСП 1% [16:22:52]line > о реализуемом товаре [16:22:52]line ОКРУГЛЕНИЕ: -0.38 [16:22:52]line ИТОГО: 300.00 [16:22:52]line Внесено: 300.00 [16:22:52]line СДАЧА: 0.00 [16:22:52]line НСП 1% : 2.66 [16:22:52]line НДС 12% : 31.90 [16:22:52]line Наличными: 300.00 [16:22:52]line Безнал.: 0.00 [16:22:52]line Место: АЗС № 173 "Партнер Нефть" [16:22:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:22:52]line СНО: Общий режим [16:22:52]line Чек 203 30.10.2024 16:22 [16:22:52]line Смена: 545 ФФД: 1.0 [16:22:52]line ЗНМ: 0300000115 [16:22:52]line РНМ: 0000000000091782 [16:22:52]line Версия ККМ: 001 [16:22:52]line ФМ: 0000000000871767 [16:22:52]line ФД: 118143 [16:22:52]line ФПД: 206267928104755 [16:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162250&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118143&fm=206267928104755&tin=02508201610067®Number=0000000000091782&sum=30000 [16:22:52]OFD Sender: Processing packet 118143 [packets to send 77, broken 76] [16:22:52]ProducePacketName [16:22:52]name=ofd_packets/00118143 [16:22:52]OFD Sender: To server: pG, [16:22:52]CommunicateWithHost lk.salyk.kg:30040 [16:22:52]ConnectInit lk.salyk.kg [16:22:52]written 0, free lines is 4095 [16:22:52]Connected sock=10 [16:22: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 36 37 0F 01 00 00 0A E6 07 01 40 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 32 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 CB 00 00 00 F4 03 04 00 5A 5D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 7F CD 01 00 35 04 06 00 BB 99 7E 95 4F 33 35 5F D8 25 5B 07 83 D1 [16:22: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 36 37 4F 00 00 00 1F C5 47 00 AB 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 36 37 10 04 04 00 7F CD 01 00 F4 03 04 00 12 09 22 67 B6 04 01 00 00 FD 13 5A 4E DD B5 DB 93 [16:22:53]CommunicateWithHost err = 0 [16:22:53]CheckOFDResponse [16:22:53]1017 (14) - 77093643461234 [16:22:53]1041 (16) - 0000000000871767 [16:22:53]1040 (4) - 118143 [16:22:53]1012 (4) - 30.10.2024 10:23 [16:22:53]1206 (1) - 0 [16:22:53]OFD Sender: Remove packet 118143 [16:22:53]ProducePacketName [16:22:53]name=ofd_packets/00118143 [16:22:53]NVStorageDeleteData [16:22:53]Write to MH i2c: 01 00 00 8E 00 8E [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 07 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 B7 0C 58 [16:22:53]RasterBufferAndPrint [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]written 0, free lines is 3262 [16:22:53]MH_Cut [16:22:53]Write to MH i2c: D1 01 00 95 00 01 67 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 01 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 01 00 95 00 00 66 [16:22:53]Write to MH i2c: 01 00 00 96 00 96 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]OFD Sender: No OFD packet to send [16:22:54]*** Cut start [16:22:54]*** Purtial cut [16:22:54]*** Stage 1: CUTSNS_PIN = 1 [16:22:54]Read from MH i2c: 01 [16:22:54]MH_I2C_Read... [16:22:54]*** Stop cut motor [16:22:54]*** Cut end [16:22:54]Read from MH i2c: 01 07 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [16:22:54]process_action close_receipt done [16:22:54]requested_data is exist [16:22:54]produce_requested_data [16:22:54]requested_item fm.sn is exist - process it [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 11 00 00 [16:22:54]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 17 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 68 [16:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:22:54]wFMCommunicate OK [16:22:54]requested_item fd.num is exist - process it [16:22:54]SAM_PROTO_GetFieldsCounters [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 13 00 00 [16:22:54]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 62 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7F CD 01 00 0E 04 04 00 21 02 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 0C [16:22: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 7F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:54]wFMCommunicate OK [16:22:54]SAM_PROTO_GetFieldsCounters done [16:22:54]requested_item shift.num is exist - process it [16:22:54]requested_item shift.opened is exist - process it [16:22:54]req_shift_opened [16:22:54]FM_GetShiftState [16:22:54]SAM_PROTO_GetShiftState [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 13 01 00 [16:22:54]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 0E 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EE [16:22:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:22:54]wFMCommunicate OK [16:22:54]SAM_PROTO_GetShiftState done [16:22:54]FM_GetShiftState done [16:22:54]req_shift_opened done [16:22:54]requested_item shift.open_date is exist - process it [16:22:54]req_shift_open_date [16:22:54]req_shift_open_date done [16:22:54]produce_requested_data done [16:22:54]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118143,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:22:54]process_action_free close_receipt [16:22:54]json_value_free [16:22:54]json_value_free done [16:22:54]process_json_proto returns [16:22:54]Send response to host [16:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118143,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:22:54]free response buf [16:22:54]execute_script done [16:22:54]execute_script returns [16:22:54]free content buf [16:22:54]Sock 7.Close socket [16:22:54]Sock 7.Thread stoped [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:37]accept exits with 9 [16:25:37]New connection [16:25:37]New thread 3067276644 created [16:25:37]Thread 3067133284 joined [16:25:37]Waiting for new connection... [16:25:37] Sock 9.Parse request [16:25:37]Sock 9.Check first char [16:25:37]Sock 9.First char is OK [16:25:37]request: POST /json_proto HTTP/1.0 [16:25:37]Method: POST [16:25:37]URL: /json_proto [16:25:37]Method is POST - this is cgi request [16:25:37]url: /json_proto [16:25:37]query_string will be loaded in cgi processing [16:25:37]execute_cgi json_proto POST (null) [16:25:37]execute_cgi path=json_proto method=POST [16:25:37]POST find Content-Length [16:25:37]Host: 172.17.96.67:8080 [16:25:37]Content-Length: 677 [16:25:37]Content-Type: application/json [16:25:37] [16:25:37]POST finish read [16:25:37]Found Content-Length = 677 [16:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:25:37]execute_script... [16:25: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)245942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:25:37]POST & json_proto [16:25:37]process_json_proto [16:25:37]json parsed OK: [16:25:37]protocol is kg_v1.0 [16:25:37]action value=close_receipt [16:25:37]process_action close_receipt [16:25:37]cmd_close_receipt [16:25:37]MH_GetDate [16:25:37]Write to MH i2c: F0 00 00 9A 00 89 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: F0 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: F0 09 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: F0 09 00 9A 00 00 01 5E 22 67 47 6C 1F 67 B3 [16:25:37]GetLastDocTimeStamp 1730305370 [16:25:37]current date 1730305537 [16:25:37]FM_GetShiftState [16:25:37]SAM_PROTO_GetShiftState [16:25:37]wFMCommunicate request_size=4 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 13 01 00 [16:25:37]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 0E 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F0 [16:25:37]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:25:37]wFMCommunicate OK [16:25:37]SAM_PROTO_GetShiftState done [16:25:37]FM_GetShiftState done [16:25:37]opened in 1730246605 [16:25:37]opened+sec_in_day 1730333005 [16:25:37]quantity*price = 20003 [16:25:37]sum+1 = 20004 [16:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 204 30.10.2024 16:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118144 ФПД: 84378119109859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162537&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118144&fm=84378119109859&tin=02508201610067®Number=0000000000091782&sum=20000 [16:25:38]StoreToDocumentArchive [16:25:38]shift 545 fd 118144 [16:25:38]save to /storage/0545/doc_00118144 [16:25:38]save last doc name /storage/0545/doc_00118144 to /storage/kkm_last_doc_name [16:25:38]save OK [16:25:38]Clear old archive folders... [16:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:38]tlvbuf is 0021EA60 [16:25:38]SAM_PROTO_ClearQueue [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 09 00 00 [16:25:38]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [16:25:38]RAPDU: 90 00 [16:25:38]wFMCommunicate OK [16:25:38]SAM_PROTO_ClearQueue done [16:25:38]KKMCreateOFDPacket [16:25:38]OFDProtocolAddRootSTLVToBuf [16:25:38]FM_MakeSignedData [16:25:38]FM_MakeSignedData [16:25:38]SAM_PROTO_SignData [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 0D 01 02 [16:25:38]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [16:25:38]RAPDU: 90 00 [16:25:38]wFMCommunicate OK [16:25:38]wFMCommunicate request_size=255 [16:25:38]MH_SAM_APDU [16:25: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 32 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 CC 00 00 00 F4 03 04 00 01 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CD 01 00 35 04 06 00 4C [16:25:38]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CC 00 00 00 F4 03 04 00 01 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CD 01 00 35 04 06 00 4C 00 00 E7 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]OFD Sender: No OFD packet to send [16:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [16:25:38]RAPDU: 90 00 [16:25:38]wFMCommunicate OK [16:25:38]wFMCommunicate request_size=10 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 0D 02 02 05 BD CF D0 FC E3 [16:25:38]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 BD CF D0 FC E3 00 00 6A [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [16:25:38]RAPDU: 90 00 [16:25:38]wFMCommunicate OK [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 0D 03 02 [16:25:38]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0B 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0B 00 AC 00 00 C6 33 35 7D 25 A3 3D 28 90 00 00 [16:25:38]RAPDU: C6 33 35 7D 25 A3 3D 28 90 00 [16:25:38]wFMCommunicate OK [16:25:38]SAM_PROTO_SignData done [16:25:38]FM_MakeSignedData done [16:25:38]CreateOFDProtocolMessage [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 11 00 00 [16:25:38]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 17 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7E [16:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:25:38]wFMCommunicate OK [16:25:38]CreateOFDProtocolMessage done [16:25:38]OFDSenderStorePacket 118144 [16:25:38]StoreOFDPacket docnum=118144 [16:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 FD 78 07 01 D3 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 32 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 CC 00 00 00 F4 03 04 00 01 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CD 01 00 35 04 06 00 4C BD CF D0 FC E3 C6 33 35 7D 25 A3 3D 28 [16:25:38]CheckFolder [16:25:38]dirname=/storage/ofd_packets [16:25:38]CheckFolder done [16:25:38]ProducePacketName [16:25:38]name=ofd_packets/00118144 [16:25:38]NVStorageSaveData ofd_packets/00118144 [16:25:38]File name is /storage/ofd_packets/00118144 [16:25:38]Write 301 bytes [16:25:38]NVStorageSaveData done [16:25:38]OFDSenderStorePacket done [16:25:38]KKMCreateOFDPacket done [16:25:38]NVStorageSaveData kkm_last_timestamp [16:25:38]File name is /storage/kkm_last_timestamp [16:25:38]Write 4 bytes [16:25:38]NVStorageSaveData done [16:25:38]ExternCall_PrintAddStr [16:25:38]wPrintStart [16:25:38]Write to MH i2c: 01 00 00 AE 00 AE [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: 01 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: 01 07 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [16:25:38]RasterBufferAndPrint [16:25:38]line Счет N : (1)245942 [16:25:38]line ИНН: 02508201610067 [16:25:38]line Контрольно-Кассовый Чек [16:25:38]line ПРОДАЖА [16:25:38]line ТРК (МРК, ГНК) : 21 [16:25:38]line Товар: 2710124130 [16:25:38]line Аи-92-К-2 [16:25:38]line 2.990 * 66.90 [16:25:38]line = 200.03 [16:25:38]line НДС 12% НСП 1% [16:25:38]line > о реализуемом товаре [16:25:38]line ОКРУГЛЕНИЕ: -0.03 [16:25:38]line ИТОГО: 200.00 [16:25:38]line Внесено: 200.00 [16:25:38]line СДАЧА: 0.00 [16:25:38]line НСП 1% : 1.77 [16:25:38]line НДС 12% : 21.24 [16:25:38]line Наличными: 200.00 [16:25:38]line Безнал.: 0.00 [16:25:38]line Место: АЗС № 173 "Партнер Нефть" [16:25:38]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:25:38]line СНО: Общий режим [16:25:38]line Чек 204 30.10.2024 16:25 [16:25:38]line Смена: 545 ФФД: 1.0 [16:25:38]line ЗНМ: 0300000115 [16:25:38]line РНМ: 0000000000091782 [16:25:38]line Версия ККМ: 001 [16:25:38]line ФМ: 0000000000871767 [16:25:38]line ФД: 118144 [16:25:38]line ФПД: 84378119109859 [16:25:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162537&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118144&fm=84378119109859&tin=02508201610067®Number=0000000000091782&sum=20000 [16:25:39]OFD Sender: Processing packet 118144 [packets to send 77, broken 76] [16:25:39]ProducePacketName [16:25:39]name=ofd_packets/00118144 [16:25:39]OFD Sender: To server: pG, [16:25:39]CommunicateWithHost lk.salyk.kg:30040 [16:25:39]ConnectInit lk.salyk.kg [16:25:39]written 0, free lines is 4095 [16:25:39]Connected sock=10 [16:25: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 36 37 0F 01 00 00 FD 78 07 01 D3 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 32 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 CC 00 00 00 F4 03 04 00 01 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 80 CD 01 00 35 04 06 00 4C BD CF D0 FC E3 C6 33 35 7D 25 A3 3D 28 [16:25: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 36 37 4F 00 00 00 83 F0 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 36 37 10 04 04 00 80 CD 01 00 F4 03 04 00 B8 09 22 67 B6 04 01 00 00 5F E0 71 27 89 0F DD 27 [16:25:39]CommunicateWithHost err = 0 [16:25:39]CheckOFDResponse [16:25:39]1017 (14) - 77093643461234 [16:25:39]1041 (16) - 0000000000871767 [16:25:39]1040 (4) - 118144 [16:25:39]1012 (4) - 30.10.2024 10:26 [16:25:39]1206 (1) - 0 [16:25:39]OFD Sender: Remove packet 118144 [16:25:39]ProducePacketName [16:25:39]name=ofd_packets/00118144 [16:25:39]NVStorageDeleteData [16:25:39]Write to MH i2c: 01 00 00 D8 00 D8 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 B2 0C 9D [16:25:39]RasterBufferAndPrint [16:25:39]line [16:25:39]line [16:25:39]line [16:25:39]line [16:25:39]line [16:25:39]written 0, free lines is 3254 [16:25:39]MH_Cut [16:25:39]Write to MH i2c: D1 01 00 DF 00 01 B1 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: D1 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: D1 01 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: D1 01 00 DF 00 00 B0 [16:25:39]Write to MH i2c: 01 00 00 E0 00 E0 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:40]OFD Sender: No OFD packet to send [16:25:40]*** Cut start [16:25:40]*** Purtial cut [16:25:40]*** Stage 1: CUTSNS_PIN = 1 [16:25:40]Read from MH i2c: 01 [16:25:40]MH_I2C_Read... [16:25:40]*** Stop cut motor [16:25:40]*** Cut end [16:25:40]Read from MH i2c: 01 07 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [16:25:40]process_action close_receipt done [16:25:40]requested_data is exist [16:25:40]produce_requested_data [16:25:40]requested_item fm.sn is exist - process it [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 11 00 00 [16:25:40]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B2 [16:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:25:40]wFMCommunicate OK [16:25:40]requested_item fd.num is exist - process it [16:25:40]SAM_PROTO_GetFieldsCounters [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 13 00 00 [16:25:40]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:41]Read from MH i2c: E2 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 62 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 62 00 E2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 80 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [16:25: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 80 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:41]wFMCommunicate OK [16:25:41]SAM_PROTO_GetFieldsCounters done [16:25:41]requested_item shift.num is exist - process it [16:25:41]requested_item shift.opened is exist - process it [16:25:41]req_shift_opened [16:25:41]FM_GetShiftState [16:25:41]SAM_PROTO_GetShiftState [16:25:41]wFMCommunicate request_size=4 [16:25:41]MH_SAM_APDU [16:25:41]CAPDU: 80 13 01 00 [16:25:41]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:41]Read from MH i2c: E2 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 0E 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 38 [16:25:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:25:41]wFMCommunicate OK [16:25:41]SAM_PROTO_GetShiftState done [16:25:41]FM_GetShiftState done [16:25:41]req_shift_opened done [16:25:41]requested_item shift.open_date is exist - process it [16:25:41]req_shift_open_date [16:25:41]req_shift_open_date done [16:25:41]produce_requested_data done [16:25:41]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118144,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:25:41]process_action_free close_receipt [16:25:41]json_value_free [16:25:41]json_value_free done [16:25:41]process_json_proto returns [16:25:41]Send response to host [16:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118144,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:25:41]free response buf [16:25:41]execute_script done [16:25:41]execute_script returns [16:25:41]free content buf [16:25:41]Sock 9.Close socket [16:25:41]Sock 9.Thread stoped [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:02]accept exits with 7 [16:28:02]New connection [16:28:02]New thread 3067133284 created [16:28:02]Thread 3067276644 joined [16:28:02]Waiting for new connection... [16:28:02] Sock 7.Parse request [16:28:02]Sock 7.Check first char [16:28:02]Sock 7.First char is OK [16:28:02]request: POST /json_proto HTTP/1.0 [16:28:02]Method: POST [16:28:02]URL: /json_proto [16:28:02]Method is POST - this is cgi request [16:28:02]url: /json_proto [16:28:02]query_string will be loaded in cgi processing [16:28:02]execute_cgi json_proto POST (null) [16:28:02]execute_cgi path=json_proto method=POST [16:28:02]POST find Content-Length [16:28:02]Host: 172.17.96.67:8080 [16:28:02]Content-Length: 677 [16:28:02]Content-Type: application/json [16:28:02] [16:28:02]POST finish read [16:28:02]Found Content-Length = 677 [16:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:02]execute_script... [16:28: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)245943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:02]POST & json_proto [16:28:02]process_json_proto [16:28:02]json parsed OK: [16:28:02]protocol is kg_v1.0 [16:28:02]action value=close_receipt [16:28:02]process_action close_receipt [16:28:02]cmd_close_receipt [16:28:02]MH_GetDate [16:28:02]Write to MH i2c: F0 00 00 E4 00 D3 [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: F0 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: F0 09 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: F0 09 00 E4 00 00 92 5E 22 67 47 6C 1F 67 8E [16:28:02]GetLastDocTimeStamp 1730305537 [16:28:02]current date 1730305682 [16:28:02]FM_GetShiftState [16:28:02]SAM_PROTO_GetShiftState [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 13 01 00 [16:28:02]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3A [16:28:02]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_GetShiftState done [16:28:02]FM_GetShiftState done [16:28:02]opened in 1730246605 [16:28:02]opened+sec_in_day 1730333005 [16:28:02]quantity*price = 50041 [16:28:02]sum+1 = 50042 [16:28:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 205 30.10.2024 16:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118145 ФПД: 26660649685386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162802&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118145&fm=26660649685386&tin=02508201610067®Number=0000000000091782&sum=50000 [16:28:03]StoreToDocumentArchive [16:28:03]shift 545 fd 118145 [16:28:03]save to /storage/0545/doc_00118145 [16:28:03]save last doc name /storage/0545/doc_00118145 to /storage/kkm_last_doc_name [16:28:03]save OK [16:28:03]Clear old archive folders... [16:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:03]tlvbuf is 0021E640 [16:28:03]SAM_PROTO_ClearQueue [16:28:03]wFMCommunicate request_size=4 [16:28:03]MH_SAM_APDU [16:28:03]CAPDU: 80 09 00 00 [16:28:03]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:03]Read from MH i2c: E2 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [16:28:03]RAPDU: 90 00 [16:28:03]wFMCommunicate OK [16:28:03]SAM_PROTO_ClearQueue done [16:28:03]KKMCreateOFDPacket [16:28:03]OFDProtocolAddRootSTLVToBuf [16:28:03]FM_MakeSignedData [16:28:03]FM_MakeSignedData [16:28:03]SAM_PROTO_SignData [16:28:03]wFMCommunicate request_size=4 [16:28:03]MH_SAM_APDU [16:28:03]CAPDU: 80 0D 01 02 [16:28:03]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:03]Read from MH i2c: E2 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [16:28:03]RAPDU: 90 00 [16:28:03]wFMCommunicate OK [16:28:03]wFMCommunicate request_size=255 [16:28:03]MH_SAM_APDU [16:28: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 32 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 92 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CD 01 00 35 04 06 00 18 [16:28:03]Write to MH i2c: E2 02 01 F4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 92 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CD 01 00 35 04 06 00 18 00 00 CE [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:04]Read from MH i2c: E2 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 03 00 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [16:28:04]RAPDU: 90 00 [16:28:04]wFMCommunicate OK [16:28:04]wFMCommunicate request_size=10 [16:28:04]MH_SAM_APDU [16:28:04]CAPDU: 80 0D 02 02 05 3F 6A 8D D1 8A [16:28:04]Write to MH i2c: E2 0D 00 F5 00 80 0D 02 02 05 00 3F 6A 8D D1 8A 00 00 0A [16:28:04]Write i2c OK [16:28:04]MH_I2C_Read... [16:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:04]Read from MH i2c: E2 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 03 00 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [16:28:04]RAPDU: 90 00 [16:28:04]wFMCommunicate OK [16:28:04]wFMCommunicate request_size=4 [16:28:04]MH_SAM_APDU [16:28:04]CAPDU: 80 0D 03 02 [16:28:04]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [16:28:04]Write i2c OK [16:28:04]MH_I2C_Read... [16:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:04]Read from MH i2c: E2 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 0B 00 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 0B 00 F6 00 00 3C 85 52 ED 8A F8 B7 4F 90 00 FA [16:28:04]RAPDU: 3C 85 52 ED 8A F8 B7 4F 90 00 [16:28:04]wFMCommunicate OK [16:28:04]SAM_PROTO_SignData done [16:28:04]FM_MakeSignedData done [16:28:04]CreateOFDProtocolMessage [16:28:04]wFMCommunicate request_size=4 [16:28:04]MH_SAM_APDU [16:28:04]CAPDU: 80 11 00 00 [16:28:04]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [16:28:04]Write i2c OK [16:28:04]MH_I2C_Read... [16:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:04]Read from MH i2c: E2 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 17 00 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C8 [16:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:28:04]wFMCommunicate OK [16:28:04]CreateOFDProtocolMessage done [16:28:04]OFDSenderStorePacket 118145 [16:28:04]StoreOFDPacket docnum=118145 [16:28:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0F 7F 07 01 3D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 92 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CD 01 00 35 04 06 00 18 3F 6A 8D D1 8A 3C 85 52 ED 8A F8 B7 4F [16:28:04]CheckFolder [16:28:04]dirname=/storage/ofd_packets [16:28:04]CheckFolder done [16:28:04]ProducePacketName [16:28:04]name=ofd_packets/00118145 [16:28:04]NVStorageSaveData ofd_packets/00118145 [16:28:04]File name is /storage/ofd_packets/00118145 [16:28:04]Write 301 bytes [16:28:04]NVStorageSaveData done [16:28:04]OFDSenderStorePacket done [16:28:04]KKMCreateOFDPacket done [16:28:04]NVStorageSaveData kkm_last_timestamp [16:28:04]File name is /storage/kkm_last_timestamp [16:28:04]Write 4 bytes [16:28:04]NVStorageSaveData done [16:28:04]ExternCall_PrintAddStr [16:28:04]wPrintStart [16:28:04]Write to MH i2c: 01 00 00 F8 00 F8 [16:28:04]Write i2c OK [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: 01 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: 01 07 00 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [16:28:04]RasterBufferAndPrint [16:28:04]line Счет N : (1)245943 [16:28:04]line ИНН: 02508201610067 [16:28:04]line Контрольно-Кассовый Чек [16:28:04]line ПРОДАЖА [16:28:04]line ТРК (МРК, ГНК) : 21 [16:28:04]line Товар: 2710124130 [16:28:04]line Аи-92-К-2 [16:28:04]line 7.480 * 66.90 [16:28:04]line = 500.41 [16:28:04]line НДС 12% НСП 1% [16:28:04]line > о реализуемом товаре [16:28:04]line ОКРУГЛЕНИЕ: -0.41 [16:28:04]line ИТОГО: 500.00 [16:28:04]line Внесено: 500.00 [16:28:04]line СДАЧА: 0.00 [16:28:04]line НСП 1% : 4.43 [16:28:04]line НДС 12% : 53.14 [16:28:04]line Наличными: 500.00 [16:28:04]line Безнал.: 0.00 [16:28:04]line Место: АЗС № 173 "Партнер Нефть" [16:28:04]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:28:04]line СНО: Общий режим [16:28:04]line Чек 205 30.10.2024 16:28 [16:28:04]line Смена: 545 ФФД: 1.0 [16:28:04]line ЗНМ: 0300000115 [16:28:04]line РНМ: 0000000000091782 [16:28:04]line Версия ККМ: 001 [16:28:04]line ФМ: 0000000000871767 [16:28:04]line ФД: 118145 [16:28:04]line ФПД: 26660649685386 [16:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162802&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118145&fm=26660649685386&tin=02508201610067®Number=0000000000091782&sum=50000 [16:28:04]OFD Sender: Processing packet 118145 [packets to send 77, broken 76] [16:28:04]ProducePacketName [16:28:04]name=ofd_packets/00118145 [16:28:04]OFD Sender: To server: pG, [16:28:04]CommunicateWithHost lk.salyk.kg:30040 [16:28:04]ConnectInit lk.salyk.kg [16:28:04]written 0, free lines is 4095 [16:28:04]Connected sock=11 [16:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0F 7F 07 01 3D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 92 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 81 CD 01 00 35 04 06 00 18 3F 6A 8D D1 8A 3C 85 52 ED 8A F8 B7 4F [16:28: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 36 37 4F 00 00 00 42 A2 47 00 9F 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 36 37 10 04 04 00 81 CD 01 00 F4 03 04 00 4A 0A 22 67 B6 04 01 00 00 A4 00 31 F4 E6 EF C2 B6 [16:28:04]CommunicateWithHost err = 0 [16:28:04]CheckOFDResponse [16:28:04]1017 (14) - 77093643461234 [16:28:04]1041 (16) - 0000000000871767 [16:28:04]1040 (4) - 118145 [16:28:04]1012 (4) - 30.10.2024 10:28 [16:28:04]1206 (1) - 0 [16:28:04]OFD Sender: Remove packet 118145 [16:28:04]ProducePacketName [16:28:04]name=ofd_packets/00118145 [16:28:04]NVStorageDeleteData [16:28:05]Write to MH i2c: 01 00 00 22 01 23 [16:28:05]Write i2c OK [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: 01 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: 01 07 00 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 BC 0C F2 [16:28:05]RasterBufferAndPrint [16:28:05]line [16:28:05]line [16:28:05]line [16:28:05]line [16:28:05]line [16:28:05]written 0, free lines is 3266 [16:28:05]MH_Cut [16:28:05]Write to MH i2c: D1 01 00 29 01 01 FC [16:28:05]Write i2c OK [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: D1 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: D1 01 00 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: D1 01 00 29 01 00 FB [16:28:05]Write to MH i2c: 01 00 00 2A 01 2B [16:28:05]Write i2c OK [16:28:05]MH_I2C_Read... [16:28:05]OFD Sender: No OFD packet to send [16:28:05]*** Cut start [16:28:05]*** Purtial cut [16:28:05]*** Stage 1: CUTSNS_PIN = 1 [16:28:06]Read from MH i2c: 01 [16:28:06]MH_I2C_Read... [16:28:06]*** Stop cut motor [16:28:06]*** Cut end [16:28:06]Read from MH i2c: 01 07 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 FF 0F 40 [16:28:06]process_action close_receipt done [16:28:06]requested_data is exist [16:28:06]produce_requested_data [16:28:06]requested_item fm.sn is exist - process it [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 11 00 00 [16:28:06]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 17 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FD [16:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:28:06]wFMCommunicate OK [16:28:06]requested_item fd.num is exist - process it [16:28:06]SAM_PROTO_GetFieldsCounters [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 13 00 00 [16:28:06]Write to MH i2c: E2 08 00 2C 01 80 13 00 00 00 00 00 00 A9 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 62 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 62 00 2C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 81 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [16:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 81 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:06]wFMCommunicate OK [16:28:06]SAM_PROTO_GetFieldsCounters done [16:28:06]requested_item shift.num is exist - process it [16:28:06]requested_item shift.opened is exist - process it [16:28:06]req_shift_opened [16:28:06]FM_GetShiftState [16:28:06]SAM_PROTO_GetShiftState [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 13 01 00 [16:28:06]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 0E 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 0E 00 2D 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 83 [16:28:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:28:06]wFMCommunicate OK [16:28:06]SAM_PROTO_GetShiftState done [16:28:06]FM_GetShiftState done [16:28:06]req_shift_opened done [16:28:06]requested_item shift.open_date is exist - process it [16:28:06]req_shift_open_date [16:28:06]req_shift_open_date done [16:28:06]produce_requested_data done [16:28:06]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118145,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:28:06]process_action_free close_receipt [16:28:06]json_value_free [16:28:06]json_value_free done [16:28:06]process_json_proto returns [16:28:06]Send response to host [16:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118145,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:28:06]free response buf [16:28:06]execute_script done [16:28:06]execute_script returns [16:28:06]free content buf [16:28:06]Sock 7.Close socket [16:28:06]Sock 7.Thread stoped [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:21]accept exits with 9 [16:28:21]New connection [16:28:21]New thread 3067276644 created [16:28:21]Thread 3067133284 joined [16:28:21]Waiting for new connection... [16:28:21] Sock 9.Parse request [16:28:21]Sock 9.Check first char [16:28:21]Sock 9.First char is OK [16:28:21]request: POST /json_proto HTTP/1.0 [16:28:21]Method: POST [16:28:21]URL: /json_proto [16:28:21]Method is POST - this is cgi request [16:28:21]url: /json_proto [16:28:21]query_string will be loaded in cgi processing [16:28:21]execute_cgi json_proto POST (null) [16:28:21]execute_cgi path=json_proto method=POST [16:28:21]POST find Content-Length [16:28:21]Host: 172.17.96.67:8080 [16:28:21]Content-Length: 677 [16:28:21]Content-Type: application/json [16:28:21] [16:28:21]POST finish read [16:28:21]Found Content-Length = 677 [16:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:28:21]execute_script... [16:28: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)245944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:28:21]POST & json_proto [16:28:21]process_json_proto [16:28:21]json parsed OK: [16:28:21]protocol is kg_v1.0 [16:28:21]action value=close_receipt [16:28:21]process_action close_receipt [16:28:21]cmd_close_receipt [16:28:21]MH_GetDate [16:28:21]Write to MH i2c: F0 00 00 2E 01 1E [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: F0 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: F0 09 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: F0 09 00 2E 01 00 A5 5E 22 67 47 6C 1F 67 EC [16:28:21]GetLastDocTimeStamp 1730305682 [16:28:21]current date 1730305701 [16:28:21]FM_GetShiftState [16:28:21]SAM_PROTO_GetShiftState [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 13 01 00 [16:28:21]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 0E 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 85 [16:28:21]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:28:21]wFMCommunicate OK [16:28:21]SAM_PROTO_GetShiftState done [16:28:21]FM_GetShiftState done [16:28:21]opened in 1730246605 [16:28:21]opened+sec_in_day 1730333005 [16:28:21]quantity*price = 40006 [16:28:21]sum+1 = 40007 [16:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 206 30.10.2024 16:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118146 ФПД: 18067021876093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162821&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118146&fm=18067021876093&tin=02508201610067®Number=0000000000091782&sum=40000 [16:28:22]StoreToDocumentArchive [16:28:22]shift 545 fd 118146 [16:28:22]save to /storage/0545/doc_00118146 [16:28:22]save last doc name /storage/0545/doc_00118146 to /storage/kkm_last_doc_name [16:28:22]save OK [16:28:22]Clear old archive folders... [16:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:22]tlvbuf is 001C9930 [16:28:22]SAM_PROTO_ClearQueue [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 09 00 00 [16:28:22]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]SAM_PROTO_ClearQueue done [16:28:22]KKMCreateOFDPacket [16:28:22]OFDProtocolAddRootSTLVToBuf [16:28:22]FM_MakeSignedData [16:28:22]FM_MakeSignedData [16:28:22]SAM_PROTO_SignData [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 0D 01 02 [16:28:22]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]wFMCommunicate request_size=255 [16:28:22]MH_SAM_APDU [16:28: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A5 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CD 01 00 35 04 06 00 10 [16:28:22]Write to MH i2c: E2 02 01 3E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A5 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CD 01 00 35 04 06 00 10 00 00 F5 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]wFMCommunicate request_size=10 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 0D 02 02 05 6E 8E 6B CB 7D [16:28:22]Write to MH i2c: E2 0D 00 3F 01 80 0D 02 02 05 00 6E 8E 6B CB 7D 00 00 73 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 0D 03 02 [16:28:22]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 0B 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 0B 00 40 01 00 DC 69 D2 D3 FE 5E EA 7F 90 00 6C [16:28:22]RAPDU: DC 69 D2 D3 FE 5E EA 7F 90 00 [16:28:22]wFMCommunicate OK [16:28:22]SAM_PROTO_SignData done [16:28:22]FM_MakeSignedData done [16:28:22]CreateOFDProtocolMessage [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 11 00 00 [16:28:22]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 17 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 13 [16:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:28:22]wFMCommunicate OK [16:28:22]CreateOFDProtocolMessage done [16:28:22]OFDSenderStorePacket 118146 [16:28:22]StoreOFDPacket docnum=118146 [16:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E1 0E 07 01 B5 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A5 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CD 01 00 35 04 06 00 10 6E 8E 6B CB 7D DC 69 D2 D3 FE 5E EA 7F [16:28:22]CheckFolder [16:28:22]dirname=/storage/ofd_packets [16:28:22]CheckFolder done [16:28:22]ProducePacketName [16:28:22]name=ofd_packets/00118146 [16:28:22]NVStorageSaveData ofd_packets/00118146 [16:28:22]File name is /storage/ofd_packets/00118146 [16:28:22]Write 301 bytes [16:28:22]NVStorageSaveData done [16:28:22]OFDSenderStorePacket done [16:28:22]KKMCreateOFDPacket done [16:28:22]NVStorageSaveData kkm_last_timestamp [16:28:22]File name is /storage/kkm_last_timestamp [16:28:22]Write 4 bytes [16:28:22]NVStorageSaveData done [16:28:22]ExternCall_PrintAddStr [16:28:22]wPrintStart [16:28:22]Write to MH i2c: 01 00 00 42 01 43 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 07 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [16:28:22]RasterBufferAndPrint [16:28:22]line Счет N : (1)245944 [16:28:22]line ИНН: 02508201610067 [16:28:22]line Контрольно-Кассовый Чек [16:28:22]line ПРОДАЖА [16:28:22]line ТРК (МРК, ГНК) : 11 [16:28:22]line Товар: 2710124130 [16:28:22]line Аи-92-К-2 [16:28:22]line 5.980 * 66.90 [16:28:22]line = 400.06 [16:28:22]line НДС 12% НСП 1% [16:28:22]line > о реализуемом товаре [16:28:22]line ОКРУГЛЕНИЕ: -0.06 [16:28:22]line ИТОГО: 400.00 [16:28:22]line Внесено: 400.00 [16:28:22]line СДАЧА: 0.00 [16:28:22]line НСП 1% : 3.54 [16:28:22]line НДС 12% : 42.48 [16:28:22]line Наличными: 400.00 [16:28:22]line Безнал.: 0.00 [16:28:22]line Место: АЗС № 173 "Партнер Нефть" [16:28:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:28:22]line СНО: Общий режим [16:28:22]line Чек 206 30.10.2024 16:28 [16:28:22]line Смена: 545 ФФД: 1.0 [16:28:22]line ЗНМ: 0300000115 [16:28:22]line РНМ: 0000000000091782 [16:28:22]line Версия ККМ: 001 [16:28:22]line ФМ: 0000000000871767 [16:28:22]line ФД: 118146 [16:28:22]line ФПД: 18067021876093 [16:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162821&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118146&fm=18067021876093&tin=02508201610067®Number=0000000000091782&sum=40000 [16:28:23]written 0, free lines is 4095 [16:28:23]OFD Sender: Processing packet 118146 [packets to send 77, broken 76] [16:28:23]ProducePacketName [16:28:23]name=ofd_packets/00118146 [16:28:23]OFD Sender: To server: pG, [16:28:23]CommunicateWithHost lk.salyk.kg:30040 [16:28:23]ConnectInit lk.salyk.kg [16:28:23]Connected sock=10 [16:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E1 0E 07 01 B5 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A5 5E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 82 CD 01 00 35 04 06 00 10 6E 8E 6B CB 7D DC 69 D2 D3 FE 5E EA 7F [16:28: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 36 37 4F 00 00 00 1A 22 47 00 42 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 36 37 10 04 04 00 82 CD 01 00 F4 03 04 00 5C 0A 22 67 B6 04 01 00 00 87 81 68 BA 51 E0 68 5F [16:28:23]CommunicateWithHost err = 0 [16:28:23]CheckOFDResponse [16:28:23]1017 (14) - 77093643461234 [16:28:23]1041 (16) - 0000000000871767 [16:28:23]1040 (4) - 118146 [16:28:23]1012 (4) - 30.10.2024 10:28 [16:28:23]1206 (1) - 0 [16:28:23]OFD Sender: Remove packet 118146 [16:28:23]ProducePacketName [16:28:23]name=ofd_packets/00118146 [16:28:23]NVStorageDeleteData [16:28:23]Write to MH i2c: 01 00 00 6C 01 6D [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: 01 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: 01 07 00 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 B4 0C 34 [16:28:23]RasterBufferAndPrint [16:28:23]line [16:28:23]line [16:28:23]line [16:28:23]line [16:28:23]line [16:28:23]written 0, free lines is 3258 [16:28:23]MH_Cut [16:28:23]Write to MH i2c: D1 01 00 73 01 01 46 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: D1 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: D1 01 00 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: D1 01 00 73 01 00 45 [16:28:23]Write to MH i2c: 01 00 00 74 01 75 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]OFD Sender: No OFD packet to send [16:28:24]*** Cut start [16:28:24]*** Purtial cut [16:28:24]*** Stage 1: CUTSNS_PIN = 1 [16:28:24]Read from MH i2c: 01 [16:28:24]MH_I2C_Read... [16:28:24]*** Stop cut motor [16:28:24]*** Cut end [16:28:24]Read from MH i2c: 01 07 00 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [16:28:24]process_action close_receipt done [16:28:24]requested_data is exist [16:28:24]produce_requested_data [16:28:24]requested_item fm.sn is exist - process it [16:28:24]wFMCommunicate request_size=4 [16:28:24]MH_SAM_APDU [16:28:24]CAPDU: 80 11 00 00 [16:28:24]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [16:28:24]Write i2c OK [16:28:24]MH_I2C_Read... [16:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:24]Read from MH i2c: E2 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 17 00 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 17 00 75 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 47 [16:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:28:24]wFMCommunicate OK [16:28:24]requested_item fd.num is exist - process it [16:28:24]SAM_PROTO_GetFieldsCounters [16:28:24]wFMCommunicate request_size=4 [16:28:24]MH_SAM_APDU [16:28:24]CAPDU: 80 13 00 00 [16:28:24]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [16:28:24]Write i2c OK [16:28:24]MH_I2C_Read... [16:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:24]Read from MH i2c: E2 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 62 00 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 82 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [16:28:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 82 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:24]wFMCommunicate OK [16:28:24]SAM_PROTO_GetFieldsCounters done [16:28:24]requested_item shift.num is exist - process it [16:28:24]requested_item shift.opened is exist - process it [16:28:24]req_shift_opened [16:28:24]FM_GetShiftState [16:28:24]SAM_PROTO_GetShiftState [16:28:24]wFMCommunicate request_size=4 [16:28:24]MH_SAM_APDU [16:28:24]CAPDU: 80 13 01 00 [16:28:24]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [16:28:24]Write i2c OK [16:28:24]MH_I2C_Read... [16:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:24]Read from MH i2c: E2 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 0E 00 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CD [16:28:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:28:24]wFMCommunicate OK [16:28:24]SAM_PROTO_GetShiftState done [16:28:24]FM_GetShiftState done [16:28:24]req_shift_opened done [16:28:24]requested_item shift.open_date is exist - process it [16:28:24]req_shift_open_date [16:28:24]req_shift_open_date done [16:28:24]produce_requested_data done [16:28:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118146,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:28:24]process_action_free close_receipt [16:28:24]json_value_free [16:28:24]json_value_free done [16:28:24]process_json_proto returns [16:28:24]Send response to host [16:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118146,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:28:24]free response buf [16:28:24]execute_script done [16:28:24]execute_script returns [16:28:24]free content buf [16:28:24]Sock 9.Close socket [16:28:24]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:21]accept exits with 7 [16:30:21]New connection [16:30:21]New thread 3067133284 created [16:30:21]Thread 3067276644 joined [16:30:21]Waiting for new connection... [16:30:21] Sock 7.Parse request [16:30:21]Sock 7.Check first char [16:30:21]Sock 7.First char is OK [16:30:21]request: POST /json_proto HTTP/1.0 [16:30:21]Method: POST [16:30:21]URL: /json_proto [16:30:21]Method is POST - this is cgi request [16:30:21]url: /json_proto [16:30:21]query_string will be loaded in cgi processing [16:30:21]execute_cgi json_proto POST (null) [16:30:21]execute_cgi path=json_proto method=POST [16:30:21]POST find Content-Length [16:30:21]Host: 172.17.96.67:8080 [16:30:21]Content-Length: 677 [16:30:21]Content-Type: application/json [16:30:21] [16:30:21]POST finish read [16:30:21]Found Content-Length = 677 [16:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:30:21]execute_script... [16:30: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)245945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:30:21]POST & json_proto [16:30:21]process_json_proto [16:30:21]json parsed OK: [16:30:21]protocol is kg_v1.0 [16:30:21]action value=close_receipt [16:30:21]process_action close_receipt [16:30:21]cmd_close_receipt [16:30:21]MH_GetDate [16:30:21]Write to MH i2c: F0 00 00 78 01 68 [16:30:21]Write i2c OK [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: F0 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: F0 09 00 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: F0 09 00 78 01 00 1D 5F 22 67 47 6C 1F 67 AF [16:30:21]GetLastDocTimeStamp 1730305701 [16:30:21]current date 1730305821 [16:30:21]FM_GetShiftState [16:30:21]SAM_PROTO_GetShiftState [16:30:21]wFMCommunicate request_size=4 [16:30:21]MH_SAM_APDU [16:30:21]CAPDU: 80 13 01 00 [16:30:21]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [16:30:21]Write i2c OK [16:30:21]MH_I2C_Read... [16:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:21]Read from MH i2c: E2 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 0E 00 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CF [16:30:21]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:30:21]wFMCommunicate OK [16:30:21]SAM_PROTO_GetShiftState done [16:30:21]FM_GetShiftState done [16:30:21]opened in 1730246605 [16:30:21]opened+sec_in_day 1730333005 [16:30:21]quantity*price = 50041 [16:30:21]sum+1 = 50042 [16:30: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 207 30.10.2024 16:30 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118147 ФПД: 214340974785968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163021&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118147&fm=214340974785968&tin=02508201610067®Number=0000000000091782&sum=50000 [16:30:22]StoreToDocumentArchive [16:30:22]shift 545 fd 118147 [16:30:22]save to /storage/0545/doc_00118147 [16:30:22]save last doc name /storage/0545/doc_00118147 to /storage/kkm_last_doc_name [16:30:22]save OK [16:30:22]Clear old archive folders... [16:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:22]tlvbuf is 00222D50 [16:30:22]SAM_PROTO_ClearQueue [16:30:22]wFMCommunicate request_size=4 [16:30:22]MH_SAM_APDU [16:30:22]CAPDU: 80 09 00 00 [16:30:22]Write to MH i2c: E2 08 00 86 01 80 09 00 00 00 00 00 00 F9 [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [16:30:22]RAPDU: 90 00 [16:30:22]wFMCommunicate OK [16:30:22]SAM_PROTO_ClearQueue done [16:30:22]KKMCreateOFDPacket [16:30:22]OFDProtocolAddRootSTLVToBuf [16:30:22]FM_MakeSignedData [16:30:22]FM_MakeSignedData [16:30:22]SAM_PROTO_SignData [16:30:22]wFMCommunicate request_size=4 [16:30:22]MH_SAM_APDU [16:30:22]CAPDU: 80 0D 01 02 [16:30:22]Write to MH i2c: E2 08 00 87 01 80 0D 01 02 00 00 00 00 01 [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [16:30:22]RAPDU: 90 00 [16:30:22]wFMCommunicate OK [16:30:22]wFMCommunicate request_size=255 [16:30:22]MH_SAM_APDU [16:30: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 32 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 CF 00 00 00 F4 03 04 00 1D 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CD 01 00 35 04 06 00 C2 [16:30:22]Write to MH i2c: E2 02 01 88 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CF 00 00 00 F4 03 04 00 1D 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CD 01 00 35 04 06 00 C2 00 00 9D [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [16:30:22]RAPDU: 90 00 [16:30:22]wFMCommunicate OK [16:30:22]wFMCommunicate request_size=10 [16:30:22]MH_SAM_APDU [16:30:22]CAPDU: 80 0D 02 02 05 F1 25 A9 B5 B0 [16:30:22]Write to MH i2c: E2 0D 00 89 01 80 0D 02 02 05 00 F1 25 A9 B5 B0 00 00 32 [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [16:30:22]RAPDU: 90 00 [16:30:22]wFMCommunicate OK [16:30:22]wFMCommunicate request_size=4 [16:30:22]MH_SAM_APDU [16:30:22]CAPDU: 80 0D 03 02 [16:30:22]Write to MH i2c: E2 08 00 8A 01 80 0D 03 02 00 00 00 00 06 [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 0B 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 0B 00 8A 01 00 07 40 0A CC A8 29 B1 4C 90 00 F2 [16:30:22]RAPDU: 07 40 0A CC A8 29 B1 4C 90 00 [16:30:22]wFMCommunicate OK [16:30:22]SAM_PROTO_SignData done [16:30:22]FM_MakeSignedData done [16:30:22]CreateOFDProtocolMessage [16:30:22]wFMCommunicate request_size=4 [16:30:22]MH_SAM_APDU [16:30:22]CAPDU: 80 11 00 00 [16:30:22]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 17 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5D [16:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:30:22]wFMCommunicate OK [16:30:22]CreateOFDProtocolMessage done [16:30:22]OFDSenderStorePacket 118147 [16:30:22]StoreOFDPacket docnum=118147 [16:30:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4A BD 07 01 CF 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 32 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 CF 00 00 00 F4 03 04 00 1D 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CD 01 00 35 04 06 00 C2 F1 25 A9 B5 B0 07 40 0A CC A8 29 B1 4C [16:30:22]CheckFolder [16:30:22]dirname=/storage/ofd_packets [16:30:22]CheckFolder done [16:30:22]ProducePacketName [16:30:22]name=ofd_packets/00118147 [16:30:22]NVStorageSaveData ofd_packets/00118147 [16:30:22]File name is /storage/ofd_packets/00118147 [16:30:22]Write 301 bytes [16:30:22]NVStorageSaveData done [16:30:22]OFDSenderStorePacket done [16:30:22]KKMCreateOFDPacket done [16:30:22]NVStorageSaveData kkm_last_timestamp [16:30:22]File name is /storage/kkm_last_timestamp [16:30:22]Write 4 bytes [16:30:22]NVStorageSaveData done [16:30:22]ExternCall_PrintAddStr [16:30:22]wPrintStart [16:30:22]Write to MH i2c: 01 00 00 8C 01 8D [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: 01 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: 01 07 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [16:30:22]RasterBufferAndPrint [16:30:22]line Счет N : (1)245945 [16:30:22]line ИНН: 02508201610067 [16:30:22]line Контрольно-Кассовый Чек [16:30:22]line ПРОДАЖА [16:30:22]line ТРК (МРК, ГНК) : 11 [16:30:22]line Товар: 2710124130 [16:30:22]line Аи-92-К-2 [16:30:22]line 7.480 * 66.90 [16:30:22]line = 500.41 [16:30:22]line НДС 12% НСП 1% [16:30:22]line > о реализуемом товаре [16:30:22]line ОКРУГЛЕНИЕ: -0.41 [16:30:22]line ИТОГО: 500.00 [16:30:22]line Внесено: 500.00 [16:30:22]line СДАЧА: 0.00 [16:30:22]line НСП 1% : 4.43 [16:30:22]line НДС 12% : 53.14 [16:30:22]line Наличными: 500.00 [16:30:22]line Безнал.: 0.00 [16:30:22]line Место: АЗС № 173 "Партнер Нефть" [16:30:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:30:22]line СНО: Общий режим [16:30:22]line Чек 207 30.10.2024 16:30 [16:30:22]line Смена: 545 ФФД: 1.0 [16:30:22]line ЗНМ: 0300000115 [16:30:22]line РНМ: 0000000000091782 [16:30:22]line Версия ККМ: 001 [16:30:22]line ФМ: 0000000000871767 [16:30:22]line ФД: 118147 [16:30:22]line ФПД: 214340974785968 [16:30:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163021&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118147&fm=214340974785968&tin=02508201610067®Number=0000000000091782&sum=50000 [16:30:23]written 0, free lines is 4095 [16:30:23]OFD Sender: Processing packet 118147 [packets to send 77, broken 76] [16:30:23]ProducePacketName [16:30:23]name=ofd_packets/00118147 [16:30:23]OFD Sender: To server: pG, [16:30:23]CommunicateWithHost lk.salyk.kg:30040 [16:30:23]ConnectInit lk.salyk.kg [16:30:23]Connected sock=11 [16:30:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4A BD 07 01 CF 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 32 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 CF 00 00 00 F4 03 04 00 1D 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 83 CD 01 00 35 04 06 00 C2 F1 25 A9 B5 B0 07 40 0A CC A8 29 B1 4C [16:30: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 36 37 4F 00 00 00 82 4F 47 00 54 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 36 37 10 04 04 00 83 CD 01 00 F4 03 04 00 D4 0A 22 67 B6 04 01 00 00 FD 55 5C 9B 30 25 5A E8 [16:30:23]CommunicateWithHost err = 0 [16:30:23]CheckOFDResponse [16:30:23]1017 (14) - 77093643461234 [16:30:23]1041 (16) - 0000000000871767 [16:30:23]1040 (4) - 118147 [16:30:23]1012 (4) - 30.10.2024 10:30 [16:30:23]1206 (1) - 0 [16:30:23]OFD Sender: Remove packet 118147 [16:30:23]ProducePacketName [16:30:23]name=ofd_packets/00118147 [16:30:23]NVStorageDeleteData [16:30:23]Write to MH i2c: 01 00 00 B6 01 B7 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 07 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 BB 0C 85 [16:30:23]RasterBufferAndPrint [16:30:23]line [16:30:23]line [16:30:23]line [16:30:23]line [16:30:23]line [16:30:23]written 0, free lines is 3267 [16:30:23]MH_Cut [16:30:23]Write to MH i2c: D1 01 00 BD 01 01 90 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: D1 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: D1 01 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: D1 01 00 BD 01 00 8F [16:30:23]Write to MH i2c: 01 00 00 BE 01 BF [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:24]OFD Sender: No OFD packet to send [16:30:24]*** Cut start [16:30:24]*** Purtial cut [16:30:24]*** Stage 1: CUTSNS_PIN = 1 [16:30:24]Read from MH i2c: 01 [16:30:24]MH_I2C_Read... [16:30:24]*** Stop cut motor [16:30:24]*** Cut end [16:30:24]Read from MH i2c: 01 07 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 FF 0F D4 [16:30:24]process_action close_receipt done [16:30:24]requested_data is exist [16:30:24]produce_requested_data [16:30:24]requested_item fm.sn is exist - process it [16:30:24]wFMCommunicate request_size=4 [16:30:24]MH_SAM_APDU [16:30:24]CAPDU: 80 11 00 00 [16:30:24]Write to MH i2c: E2 08 00 BF 01 80 11 00 00 00 00 00 00 3A [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:24]Read from MH i2c: E2 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 17 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 17 00 BF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 91 [16:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:30:24]wFMCommunicate OK [16:30:24]requested_item fd.num is exist - process it [16:30:24]SAM_PROTO_GetFieldsCounters [16:30:24]wFMCommunicate request_size=4 [16:30:24]MH_SAM_APDU [16:30:24]CAPDU: 80 13 00 00 [16:30:24]Write to MH i2c: E2 08 00 C0 01 80 13 00 00 00 00 00 00 3D [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:24]Read from MH i2c: E2 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 62 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 62 00 C0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 83 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:30: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 83 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:24]wFMCommunicate OK [16:30:24]SAM_PROTO_GetFieldsCounters done [16:30:24]requested_item shift.num is exist - process it [16:30:24]requested_item shift.opened is exist - process it [16:30:24]req_shift_opened [16:30:24]FM_GetShiftState [16:30:24]SAM_PROTO_GetShiftState [16:30:24]wFMCommunicate request_size=4 [16:30:24]MH_SAM_APDU [16:30:24]CAPDU: 80 13 01 00 [16:30:24]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 0E 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 17 [16:30:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:30:25]wFMCommunicate OK [16:30:25]SAM_PROTO_GetShiftState done [16:30:25]FM_GetShiftState done [16:30:25]req_shift_opened done [16:30:25]requested_item shift.open_date is exist - process it [16:30:25]req_shift_open_date [16:30:25]req_shift_open_date done [16:30:25]produce_requested_data done [16:30:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118147,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:30:25]process_action_free close_receipt [16:30:25]json_value_free [16:30:25]json_value_free done [16:30:25]process_json_proto returns [16:30:25]Send response to host [16:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118147,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:30:25]free response buf [16:30:25]execute_script done [16:30:25]execute_script returns [16:30:25]free content buf [16:30:25]Sock 7.Close socket [16:30:25]Sock 7.Thread stoped [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:23]accept exits with 10 [16:32:23]New connection [16:32:23]New thread 3067276644 created [16:32:23]Thread 3067133284 joined [16:32:23]Waiting for new connection... [16:32:23] Sock 10.Parse request [16:32:23]Sock 10.Check first char [16:32:23]Sock 10.First char is OK [16:32:23]request: POST /json_proto HTTP/1.0 [16:32:23]Method: POST [16:32:23]URL: /json_proto [16:32:23]Method is POST - this is cgi request [16:32:23]url: /json_proto [16:32:23]query_string will be loaded in cgi processing [16:32:23]execute_cgi json_proto POST (null) [16:32:23]execute_cgi path=json_proto method=POST [16:32:23]POST find Content-Length [16:32:23]Host: 172.17.96.67:8080 [16:32:23]Content-Length: 677 [16:32:23]Content-Type: application/json [16:32:23] [16:32:23]POST finish read [16:32:23]Found Content-Length = 677 [16:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:32:23]execute_script... [16:32: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)245947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:32:23]POST & json_proto [16:32:23]process_json_proto [16:32:23]json parsed OK: [16:32:23]protocol is kg_v1.0 [16:32:23]action value=close_receipt [16:32:23]process_action close_receipt [16:32:23]cmd_close_receipt [16:32:23]MH_GetDate [16:32:23]Write to MH i2c: F0 00 00 C2 01 B2 [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: F0 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: F0 09 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: F0 09 00 C2 01 00 97 5F 22 67 47 6C 1F 67 73 [16:32:23]GetLastDocTimeStamp 1730305821 [16:32:23]current date 1730305943 [16:32:23]FM_GetShiftState [16:32:23]SAM_PROTO_GetShiftState [16:32:23]wFMCommunicate request_size=4 [16:32:23]MH_SAM_APDU [16:32:23]CAPDU: 80 13 01 00 [16:32:23]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:23]Read from MH i2c: E2 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: E2 0E 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 19 [16:32:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:32:23]wFMCommunicate OK [16:32:23]SAM_PROTO_GetShiftState done [16:32:23]FM_GetShiftState done [16:32:23]opened in 1730246605 [16:32:23]opened+sec_in_day 1730333005 [16:32:23]quantity*price = 50041 [16:32:23]sum+1 = 50042 [16:32:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 208 30.10.2024 16:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118148 ФПД: 52566593973306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163223&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118148&fm=52566593973306&tin=02508201610067®Number=0000000000091782&sum=50000 [16:32:24]StoreToDocumentArchive [16:32:24]shift 545 fd 118148 [16:32:24]save to /storage/0545/doc_00118148 [16:32:24]save last doc name /storage/0545/doc_00118148 to /storage/kkm_last_doc_name [16:32:24]save OK [16:32:24]Clear old archive folders... [16:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:24]tlvbuf is 0023F730 [16:32:24]SAM_PROTO_ClearQueue [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 09 00 00 [16:32:24]Write to MH i2c: E2 08 00 D0 01 80 09 00 00 00 00 00 00 43 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [16:32:24]RAPDU: 90 00 [16:32:24]wFMCommunicate OK [16:32:24]SAM_PROTO_ClearQueue done [16:32:24]KKMCreateOFDPacket [16:32:24]OFDProtocolAddRootSTLVToBuf [16:32:24]FM_MakeSignedData [16:32:24]FM_MakeSignedData [16:32:24]SAM_PROTO_SignData [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 0D 01 02 [16:32:24]Write to MH i2c: E2 08 00 D1 01 80 0D 01 02 00 00 00 00 4B [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [16:32:24]RAPDU: 90 00 [16:32:24]wFMCommunicate OK [16:32:24]wFMCommunicate request_size=255 [16:32:24]MH_SAM_APDU [16:32: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 32 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 D0 00 00 00 F4 03 04 00 97 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CD 01 00 35 04 06 00 2F [16:32:24]Write to MH i2c: E2 02 01 D2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D0 00 00 00 F4 03 04 00 97 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CD 01 00 35 04 06 00 2F 00 00 D0 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [16:32:24]RAPDU: 90 00 [16:32:24]wFMCommunicate OK [16:32:24]wFMCommunicate request_size=10 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 0D 02 02 05 CF 1D 29 2C 3A [16:32:24]Write to MH i2c: E2 0D 00 D3 01 80 0D 02 02 05 00 CF 1D 29 2C 3A 00 00 D3 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [16:32:24]RAPDU: 90 00 [16:32:24]wFMCommunicate OK [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 0D 03 02 [16:32:24]Write to MH i2c: E2 08 00 D4 01 80 0D 03 02 00 00 00 00 50 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0B 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0B 00 D4 01 00 83 82 FF 4F 9D 07 E2 E8 90 00 12 [16:32:24]RAPDU: 83 82 FF 4F 9D 07 E2 E8 90 00 [16:32:24]wFMCommunicate OK [16:32:24]SAM_PROTO_SignData done [16:32:24]FM_MakeSignedData done [16:32:24]CreateOFDProtocolMessage [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 11 00 00 [16:32:24]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 17 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A7 [16:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:32:24]wFMCommunicate OK [16:32:24]CreateOFDProtocolMessage done [16:32:24]OFDSenderStorePacket 118148 [16:32:24]StoreOFDPacket docnum=118148 [16:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A4 05 07 01 83 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 32 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 D0 00 00 00 F4 03 04 00 97 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CD 01 00 35 04 06 00 2F CF 1D 29 2C 3A 83 82 FF 4F 9D 07 E2 E8 [16:32:24]CheckFolder [16:32:24]dirname=/storage/ofd_packets [16:32:24]CheckFolder done [16:32:24]ProducePacketName [16:32:24]name=ofd_packets/00118148 [16:32:24]NVStorageSaveData ofd_packets/00118148 [16:32:24]File name is /storage/ofd_packets/00118148 [16:32:24]Write 301 bytes [16:32:24]NVStorageSaveData done [16:32:24]OFDSenderStorePacket done [16:32:24]KKMCreateOFDPacket done [16:32:24]NVStorageSaveData kkm_last_timestamp [16:32:24]File name is /storage/kkm_last_timestamp [16:32:24]Write 4 bytes [16:32:24]NVStorageSaveData done [16:32:24]ExternCall_PrintAddStr [16:32:24]wPrintStart [16:32:24]Write to MH i2c: 01 00 00 D6 01 D7 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: 01 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: 01 07 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [16:32:24]RasterBufferAndPrint [16:32:24]line Счет N : (1)245947 [16:32:24]line ИНН: 02508201610067 [16:32:24]line Контрольно-Кассовый Чек [16:32:24]line ПРОДАЖА [16:32:24]line ТРК (МРК, ГНК) : 21 [16:32:24]line Товар: 2710124130 [16:32:24]line Аи-92-К-2 [16:32:24]line 7.480 * 66.90 [16:32:24]line = 500.41 [16:32:24]line НДС 12% НСП 1% [16:32:24]line > о реализуемом товаре [16:32:24]line ОКРУГЛЕНИЕ: -0.41 [16:32:24]line ИТОГО: 500.00 [16:32:24]line Внесено: 500.00 [16:32:24]line СДАЧА: 0.00 [16:32:24]line НСП 1% : 4.43 [16:32:24]line НДС 12% : 53.14 [16:32:24]line Наличными: 500.00 [16:32:24]line Безнал.: 0.00 [16:32:24]line Место: АЗС № 173 "Партнер Нефть" [16:32:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:32:24]line СНО: Общий режим [16:32:24]line Чек 208 30.10.2024 16:32 [16:32:24]line Смена: 545 ФФД: 1.0 [16:32:24]line ЗНМ: 0300000115 [16:32:24]line РНМ: 0000000000091782 [16:32:24]line Версия ККМ: 001 [16:32:24]line ФМ: 0000000000871767 [16:32:24]line ФД: 118148 [16:32:24]line ФПД: 52566593973306 [16:32:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163223&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118148&fm=52566593973306&tin=02508201610067®Number=0000000000091782&sum=50000 [16:32:25]OFD Sender: Processing packet 118148 [packets to send 77, broken 76] [16:32:25]written 0, free lines is 4095 [16:32:25]ProducePacketName [16:32:25]name=ofd_packets/00118148 [16:32:25]OFD Sender: To server: pG, [16:32:25]CommunicateWithHost lk.salyk.kg:30040 [16:32:25]ConnectInit lk.salyk.kg [16:32:25]Connected sock=9 [16:32: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 36 37 0F 01 00 00 A4 05 07 01 83 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 32 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 D0 00 00 00 F4 03 04 00 97 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CD 01 00 35 04 06 00 2F CF 1D 29 2C 3A 83 82 FF 4F 9D 07 E2 E8 [16:32: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 36 37 4F 00 00 00 1F 8D 47 00 0A 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 84 CD 01 00 F4 03 04 00 4E 0B 22 67 B6 04 01 00 00 7E C9 78 B2 AA F7 A0 5F [16:32:25]CommunicateWithHost err = 0 [16:32:25]CheckOFDResponse [16:32:25]1017 (14) - 77093643461234 [16:32:25]1041 (16) - 0000000000871767 [16:32:25]1040 (4) - 118148 [16:32:25]1012 (4) - 30.10.2024 10:32 [16:32:25]1206 (1) - 0 [16:32:25]OFD Sender: Remove packet 118148 [16:32:25]ProducePacketName [16:32:25]name=ofd_packets/00118148 [16:32:25]NVStorageDeleteData [16:32:25]Write to MH i2c: 01 00 00 00 02 02 [16:32:25]Write i2c OK [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: 01 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: 01 07 00 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 C0 0C D5 [16:32:25]RasterBufferAndPrint [16:32:25]line [16:32:25]line [16:32:25]line [16:32:25]line [16:32:25]line [16:32:25]written 0, free lines is 3270 [16:32:25]MH_Cut [16:32:25]Write to MH i2c: D1 01 00 07 02 01 DB [16:32:25]Write i2c OK [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: D1 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: D1 01 00 [16:32:25]MH_I2C_Read... [16:32:25]Read from MH i2c: D1 01 00 07 02 00 DA [16:32:25]Write to MH i2c: 01 00 00 08 02 0A [16:32:25]Write i2c OK [16:32:25]MH_I2C_Read... [16:32:26]OFD Sender: No OFD packet to send [16:32:26]*** Cut start [16:32:26]*** Purtial cut [16:32:26]*** Stage 1: CUTSNS_PIN = 1 [16:32:26]Read from MH i2c: 01 [16:32:26]MH_I2C_Read... [16:32:26]*** Stop cut motor [16:32:26]*** Cut end [16:32:26]Read from MH i2c: 01 07 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [16:32:26]process_action close_receipt done [16:32:26]requested_data is exist [16:32:26]produce_requested_data [16:32:26]requested_item fm.sn is exist - process it [16:32:26]wFMCommunicate request_size=4 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 11 00 00 [16:32:26]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 17 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DC [16:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:32:26]wFMCommunicate OK [16:32:26]requested_item fd.num is exist - process it [16:32:26]SAM_PROTO_GetFieldsCounters [16:32:26]wFMCommunicate request_size=4 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 13 00 00 [16:32:26]Write to MH i2c: E2 08 00 0A 02 80 13 00 00 00 00 00 00 88 [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 62 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 62 00 0A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 84 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:32: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 84 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:26]wFMCommunicate OK [16:32:26]SAM_PROTO_GetFieldsCounters done [16:32:26]requested_item shift.num is exist - process it [16:32:26]requested_item shift.opened is exist - process it [16:32:26]req_shift_opened [16:32:26]FM_GetShiftState [16:32:26]SAM_PROTO_GetShiftState [16:32:26]wFMCommunicate request_size=4 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 13 01 00 [16:32:26]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:27]Read from MH i2c: E2 [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: E2 0E 00 [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 62 [16:32:27]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:32:27]wFMCommunicate OK [16:32:27]SAM_PROTO_GetShiftState done [16:32:27]FM_GetShiftState done [16:32:27]req_shift_opened done [16:32:27]requested_item shift.open_date is exist - process it [16:32:27]req_shift_open_date [16:32:27]req_shift_open_date done [16:32:27]produce_requested_data done [16:32:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118148,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:32:27]process_action_free close_receipt [16:32:27]json_value_free [16:32:27]json_value_free done [16:32:27]process_json_proto returns [16:32:27]Send response to host [16:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118148,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:32:27]free response buf [16:32:27]execute_script done [16:32:27]execute_script returns [16:32:27]free content buf [16:32:27]Sock 10.Close socket [16:32:27]Sock 10.Thread stoped [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:55]accept exits with 7 [16:32:55]New connection [16:32:55]New thread 3067133284 created [16:32:55]Thread 3067276644 joined [16:32:55]Waiting for new connection... [16:32:55] Sock 7.Parse request [16:32:55]Sock 7.Check first char [16:32:55]Sock 7.First char is OK [16:32:55]request: POST /json_proto HTTP/1.0 [16:32:55]Method: POST [16:32:55]URL: /json_proto [16:32:55]Method is POST - this is cgi request [16:32:55]url: /json_proto [16:32:55]query_string will be loaded in cgi processing [16:32:55]execute_cgi json_proto POST (null) [16:32:55]execute_cgi path=json_proto method=POST [16:32:55]POST find Content-Length [16:32:55]Host: 172.17.96.67:8080 [16:32:55]Content-Length: 677 [16:32:55]Content-Type: application/json [16:32:55] [16:32:55]POST finish read [16:32:55]Found Content-Length = 677 [16:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:32:55]execute_script... [16:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:32:55]POST & json_proto [16:32:55]process_json_proto [16:32:55]json parsed OK: [16:32:55]protocol is kg_v1.0 [16:32:55]action value=close_receipt [16:32:55]process_action close_receipt [16:32:55]cmd_close_receipt [16:32:55]MH_GetDate [16:32:55]Write to MH i2c: F0 00 00 0C 02 FD [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: F0 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: F0 09 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: F0 09 00 0C 02 00 B7 5F 22 67 47 6C 1F 67 DE [16:32:55]GetLastDocTimeStamp 1730305943 [16:32:55]current date 1730305975 [16:32:55]FM_GetShiftState [16:32:55]SAM_PROTO_GetShiftState [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 13 01 00 [16:32:55]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 0E 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 64 [16:32:55]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:32:55]wFMCommunicate OK [16:32:55]SAM_PROTO_GetShiftState done [16:32:55]FM_GetShiftState done [16:32:55]opened in 1730246605 [16:32:55]opened+sec_in_day 1730333005 [16:32:55]quantity*price = 40006 [16:32:55]sum+1 = 40007 [16:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 209 30.10.2024 16:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118149 ФПД: 18239138985787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163255&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118149&fm=18239138985787&tin=02508201610067®Number=0000000000091782&sum=40000 [16:32:56]StoreToDocumentArchive [16:32:56]shift 545 fd 118149 [16:32:56]save to /storage/0545/doc_00118149 [16:32:56]save last doc name /storage/0545/doc_00118149 to /storage/kkm_last_doc_name [16:32:56]save OK [16:32:56]Clear old archive folders... [16:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:56]tlvbuf is B6F29880 [16:32:56]SAM_PROTO_ClearQueue [16:32:56]wFMCommunicate request_size=4 [16:32:56]MH_SAM_APDU [16:32:56]CAPDU: 80 09 00 00 [16:32:56]Write to MH i2c: E2 08 00 1A 02 80 09 00 00 00 00 00 00 8E [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:56]Read from MH i2c: E2 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 03 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [16:32:56]RAPDU: 90 00 [16:32:56]wFMCommunicate OK [16:32:56]SAM_PROTO_ClearQueue done [16:32:56]KKMCreateOFDPacket [16:32:56]OFDProtocolAddRootSTLVToBuf [16:32:56]FM_MakeSignedData [16:32:56]FM_MakeSignedData [16:32:56]SAM_PROTO_SignData [16:32:56]wFMCommunicate request_size=4 [16:32:56]MH_SAM_APDU [16:32:56]CAPDU: 80 0D 01 02 [16:32:56]Write to MH i2c: E2 08 00 1B 02 80 0D 01 02 00 00 00 00 96 [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:56]Read from MH i2c: E2 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 03 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [16:32:56]RAPDU: 90 00 [16:32:56]wFMCommunicate OK [16:32:56]wFMCommunicate request_size=255 [16:32:56]MH_SAM_APDU [16:32: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 32 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 D1 00 00 00 F4 03 04 00 B7 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CD 01 00 35 04 06 00 10 [16:32:56]Write to MH i2c: E2 02 01 1C 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D1 00 00 00 F4 03 04 00 B7 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CD 01 00 35 04 06 00 10 00 00 ED [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:57]Read from MH i2c: E2 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 03 00 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [16:32:57]RAPDU: 90 00 [16:32:57]wFMCommunicate OK [16:32:57]wFMCommunicate request_size=10 [16:32:57]MH_SAM_APDU [16:32:57]CAPDU: 80 0D 02 02 05 96 A1 66 77 3B [16:32:57]Write to MH i2c: E2 0D 00 1D 02 80 0D 02 02 05 00 96 A1 66 77 3B 00 00 F2 [16:32:57]Write i2c OK [16:32:57]MH_I2C_Read... [16:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:57]Read from MH i2c: E2 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 03 00 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [16:32:57]RAPDU: 90 00 [16:32:57]wFMCommunicate OK [16:32:57]wFMCommunicate request_size=4 [16:32:57]MH_SAM_APDU [16:32:57]CAPDU: 80 0D 03 02 [16:32:57]Write to MH i2c: E2 08 00 1E 02 80 0D 03 02 00 00 00 00 9B [16:32:57]Write i2c OK [16:32:57]MH_I2C_Read... [16:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:57]Read from MH i2c: E2 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 0B 00 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 0B 00 1E 02 00 6E D0 D6 6E 1F 22 BA 41 90 00 5A [16:32:57]RAPDU: 6E D0 D6 6E 1F 22 BA 41 90 00 [16:32:57]wFMCommunicate OK [16:32:57]SAM_PROTO_SignData done [16:32:57]FM_MakeSignedData done [16:32:57]CreateOFDProtocolMessage [16:32:57]wFMCommunicate request_size=4 [16:32:57]MH_SAM_APDU [16:32:57]CAPDU: 80 11 00 00 [16:32:57]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [16:32:57]Write i2c OK [16:32:57]MH_I2C_Read... [16:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:57]Read from MH i2c: E2 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 17 00 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F2 [16:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:32:57]wFMCommunicate OK [16:32:57]CreateOFDProtocolMessage done [16:32:57]OFDSenderStorePacket 118149 [16:32:57]StoreOFDPacket docnum=118149 [16:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0A B3 07 01 5F 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 32 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 D1 00 00 00 F4 03 04 00 B7 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CD 01 00 35 04 06 00 10 96 A1 66 77 3B 6E D0 D6 6E 1F 22 BA 41 [16:32:57]CheckFolder [16:32:57]dirname=/storage/ofd_packets [16:32:57]CheckFolder done [16:32:57]ProducePacketName [16:32:57]name=ofd_packets/00118149 [16:32:57]NVStorageSaveData ofd_packets/00118149 [16:32:57]File name is /storage/ofd_packets/00118149 [16:32:57]Write 301 bytes [16:32:57]NVStorageSaveData done [16:32:57]OFDSenderStorePacket done [16:32:57]KKMCreateOFDPacket done [16:32:57]NVStorageSaveData kkm_last_timestamp [16:32:57]File name is /storage/kkm_last_timestamp [16:32:57]Write 4 bytes [16:32:57]NVStorageSaveData done [16:32:57]ExternCall_PrintAddStr [16:32:57]wPrintStart [16:32:57]Write to MH i2c: 01 00 00 20 02 22 [16:32:57]Write i2c OK [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: 01 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: 01 07 00 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [16:32:57]RasterBufferAndPrint [16:32:57]line Счет N : (1)245948 [16:32:57]line ИНН: 02508201610067 [16:32:57]line Контрольно-Кассовый Чек [16:32:57]line ПРОДАЖА [16:32:57]line ТРК (МРК, ГНК) : 11 [16:32:57]line Товар: 2710124130 [16:32:57]line Аи-92-К-2 [16:32:57]line 5.980 * 66.90 [16:32:57]line = 400.06 [16:32:57]line НДС 12% НСП 1% [16:32:57]line > о реализуемом товаре [16:32:57]line ОКРУГЛЕНИЕ: -0.06 [16:32:57]line ИТОГО: 400.00 [16:32:57]line Внесено: 400.00 [16:32:57]line СДАЧА: 0.00 [16:32:57]line НСП 1% : 3.54 [16:32:57]line НДС 12% : 42.48 [16:32:57]line Наличными: 400.00 [16:32:57]line Безнал.: 0.00 [16:32:57]line Место: АЗС № 173 "Партнер Нефть" [16:32:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:32:57]line СНО: Общий режим [16:32:57]line Чек 209 30.10.2024 16:32 [16:32:57]line Смена: 545 ФФД: 1.0 [16:32:57]line ЗНМ: 0300000115 [16:32:57]line РНМ: 0000000000091782 [16:32:57]line Версия ККМ: 001 [16:32:57]line ФМ: 0000000000871767 [16:32:57]line ФД: 118149 [16:32:57]line ФПД: 18239138985787 [16:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163255&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118149&fm=18239138985787&tin=02508201610067®Number=0000000000091782&sum=40000 [16:32:57]OFD Sender: Processing packet 118149 [packets to send 77, broken 76] [16:32:57]ProducePacketName [16:32:57]name=ofd_packets/00118149 [16:32:57]OFD Sender: To server: pG, [16:32:57]CommunicateWithHost lk.salyk.kg:30040 [16:32:57]ConnectInit lk.salyk.kg [16:32:57]written 0, free lines is 4095 [16:32:57]Connected sock=10 [16:32: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 36 37 0F 01 00 00 0A B3 07 01 5F 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 32 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 D1 00 00 00 F4 03 04 00 B7 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CD 01 00 35 04 06 00 10 96 A1 66 77 3B 6E D0 D6 6E 1F 22 BA 41 [16:32: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 36 37 4F 00 00 00 1C 6F 47 00 94 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 85 CD 01 00 F4 03 04 00 6E 0B 22 67 B6 04 01 00 00 AB 40 EF AD 8B 25 A5 CD [16:32:57]CommunicateWithHost err = 0 [16:32:57]CheckOFDResponse [16:32:57]1017 (14) - 77093643461234 [16:32:57]1041 (16) - 0000000000871767 [16:32:57]1040 (4) - 118149 [16:32:57]1012 (4) - 30.10.2024 10:33 [16:32:57]1206 (1) - 0 [16:32:57]OFD Sender: Remove packet 118149 [16:32:57]ProducePacketName [16:32:57]name=ofd_packets/00118149 [16:32:57]NVStorageDeleteData [16:32:57]Write to MH i2c: 01 00 00 4A 02 4C [16:32:57]Write i2c OK [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: 01 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: 01 07 00 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 C2 0C 21 [16:32:57]RasterBufferAndPrint [16:32:57]line [16:32:57]line [16:32:57]line [16:32:57]line [16:32:57]line [16:32:57]written 0, free lines is 3272 [16:32:57]MH_Cut [16:32:57]Write to MH i2c: D1 01 00 51 02 01 25 [16:32:57]Write i2c OK [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: D1 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: D1 01 00 [16:32:57]MH_I2C_Read... [16:32:57]Read from MH i2c: D1 01 00 51 02 00 24 [16:32:57]Write to MH i2c: 01 00 00 52 02 54 [16:32:57]Write i2c OK [16:32:57]MH_I2C_Read... [16:32:58]OFD Sender: No OFD packet to send [16:32:58]*** Cut start [16:32:58]*** Purtial cut [16:32:58]*** Stage 1: CUTSNS_PIN = 1 [16:32:59]Read from MH i2c: 01 [16:32:59]MH_I2C_Read... [16:32:59]*** Stop cut motor [16:32:59]Read from MH i2c: 01 07 00 [16:32:59]MH_I2C_Read... [16:32:59]*** Cut end [16:32:59]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 FF 0F 69 [16:32:59]process_action close_receipt done [16:32:59]requested_data is exist [16:32:59]produce_requested_data [16:32:59]requested_item fm.sn is exist - process it [16:32:59]wFMCommunicate request_size=4 [16:32:59]MH_SAM_APDU [16:32:59]CAPDU: 80 11 00 00 [16:32:59]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [16:32:59]Write i2c OK [16:32:59]MH_I2C_Read... [16:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:59]Read from MH i2c: E2 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: E2 17 00 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 26 [16:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:32:59]wFMCommunicate OK [16:32:59]requested_item fd.num is exist - process it [16:32:59]SAM_PROTO_GetFieldsCounters [16:32:59]wFMCommunicate request_size=4 [16:32:59]MH_SAM_APDU [16:32:59]CAPDU: 80 13 00 00 [16:32:59]Write to MH i2c: E2 08 00 54 02 80 13 00 00 00 00 00 00 D2 [16:32:59]Write i2c OK [16:32:59]MH_I2C_Read... [16:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:59]Read from MH i2c: E2 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: E2 62 00 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: E2 62 00 54 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 85 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 85 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:59]wFMCommunicate OK [16:32:59]SAM_PROTO_GetFieldsCounters done [16:32:59]requested_item shift.num is exist - process it [16:32:59]requested_item shift.opened is exist - process it [16:32:59]req_shift_opened [16:32:59]FM_GetShiftState [16:32:59]SAM_PROTO_GetShiftState [16:32:59]wFMCommunicate request_size=4 [16:32:59]MH_SAM_APDU [16:32:59]CAPDU: 80 13 01 00 [16:32:59]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [16:32:59]Write i2c OK [16:32:59]MH_I2C_Read... [16:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:59]Read from MH i2c: E2 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: E2 0E 00 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AC [16:32:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:32:59]wFMCommunicate OK [16:32:59]SAM_PROTO_GetShiftState done [16:32:59]FM_GetShiftState done [16:32:59]req_shift_opened done [16:32:59]requested_item shift.open_date is exist - process it [16:32:59]req_shift_open_date [16:32:59]req_shift_open_date done [16:32:59]produce_requested_data done [16:32:59]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118149,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:32:59]process_action_free close_receipt [16:32:59]json_value_free [16:32:59]json_value_free done [16:32:59]process_json_proto returns [16:32:59]Send response to host [16:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118149,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:32:59]free response buf [16:32:59]execute_script done [16:32:59]execute_script returns [16:32:59]free content buf [16:32:59]Sock 7.Close socket [16:32:59]Sock 7.Thread stoped [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:00]accept exits with 9 [16:34:00]New connection [16:34:00]New thread 3067276644 created [16:34:00]Thread 3067133284 joined [16:34:00]Waiting for new connection... [16:34:00] Sock 9.Parse request [16:34:00]Sock 9.Check first char [16:34:00]Sock 9.First char is OK [16:34:00]request: POST /json_proto HTTP/1.0 [16:34:00]Method: POST [16:34:00]URL: /json_proto [16:34:00]Method is POST - this is cgi request [16:34:00]url: /json_proto [16:34:00]query_string will be loaded in cgi processing [16:34:00]execute_cgi json_proto POST (null) [16:34:00]execute_cgi path=json_proto method=POST [16:34:00]POST find Content-Length [16:34:00]Host: 172.17.96.67:8080 [16:34:00]Content-Length: 677 [16:34:00]Content-Type: application/json [16:34:00] [16:34:00]POST finish read [16:34:00]Found Content-Length = 677 [16:34:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:34:00]execute_script... [16:34: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)245949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:34:00]POST & json_proto [16:34:00]process_json_proto [16:34:00]json parsed OK: [16:34:00]protocol is kg_v1.0 [16:34:00]action value=close_receipt [16:34:00]process_action close_receipt [16:34:00]cmd_close_receipt [16:34:00]MH_GetDate [16:34:00]Write to MH i2c: F0 00 00 56 02 47 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: F0 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: F0 09 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: F0 09 00 56 02 00 F8 5F 22 67 47 6C 1F 67 69 [16:34:00]GetLastDocTimeStamp 1730305975 [16:34:00]current date 1730306040 [16:34:00]FM_GetShiftState [16:34:00]SAM_PROTO_GetShiftState [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 13 01 00 [16:34:00]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AE [16:34:00]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_GetShiftState done [16:34:00]FM_GetShiftState done [16:34:00]opened in 1730246605 [16:34:00]opened+sec_in_day 1730333005 [16:34:00]quantity*price = 50041 [16:34:00]sum+1 = 50042 [16:34:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 210 30.10.2024 16:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118150 ФПД: 200942460684192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163400&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118150&fm=200942460684192&tin=02508201610067®Number=0000000000091782&sum=50000 [16:34:01]StoreToDocumentArchive [16:34:01]shift 545 fd 118150 [16:34:01]save to /storage/0545/doc_00118150 [16:34:01]save last doc name /storage/0545/doc_00118150 to /storage/kkm_last_doc_name [16:34:01]save OK [16:34:01]Clear old archive folders... [16:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:01]tlvbuf is 0021EC00 [16:34:01]SAM_PROTO_ClearQueue [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 09 00 00 [16:34:01]Write to MH i2c: E2 08 00 64 02 80 09 00 00 00 00 00 00 D8 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [16:34:01]RAPDU: 90 00 [16:34:01]wFMCommunicate OK [16:34:01]SAM_PROTO_ClearQueue done [16:34:01]KKMCreateOFDPacket [16:34:01]OFDProtocolAddRootSTLVToBuf [16:34:01]FM_MakeSignedData [16:34:01]FM_MakeSignedData [16:34:01]SAM_PROTO_SignData [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 0D 01 02 [16:34:01]Write to MH i2c: E2 08 00 65 02 80 0D 01 02 00 00 00 00 E0 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [16:34:01]RAPDU: 90 00 [16:34:01]wFMCommunicate OK [16:34:01]wFMCommunicate request_size=255 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D2 00 00 00 F4 03 04 00 F8 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CD 01 00 35 04 06 00 B6 [16:34:01]Write to MH i2c: E2 02 01 66 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D2 00 00 00 F4 03 04 00 F8 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CD 01 00 35 04 06 00 B6 00 00 51 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [16:34:02]RAPDU: 90 00 [16:34:02]wFMCommunicate OK [16:34:02]wFMCommunicate request_size=10 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 0D 02 02 05 C1 8F FD 47 A0 [16:34:02]Write to MH i2c: E2 0D 00 67 02 80 0D 02 02 05 00 C1 8F FD 47 A0 00 00 21 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [16:34:02]RAPDU: 90 00 [16:34:02]wFMCommunicate OK [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 0D 03 02 [16:34:02]Write to MH i2c: E2 08 00 68 02 80 0D 03 02 00 00 00 00 E5 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0B 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0B 00 68 02 00 99 F6 93 86 95 02 DF C7 90 00 CB [16:34:02]RAPDU: 99 F6 93 86 95 02 DF C7 90 00 [16:34:02]wFMCommunicate OK [16:34:02]SAM_PROTO_SignData done [16:34:02]FM_MakeSignedData done [16:34:02]CreateOFDProtocolMessage [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 11 00 00 [16:34:02]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 17 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3C [16:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:34:02]wFMCommunicate OK [16:34:02]CreateOFDProtocolMessage done [16:34:02]OFDSenderStorePacket 118150 [16:34:02]StoreOFDPacket docnum=118150 [16:34:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 03 BF 07 01 71 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D2 00 00 00 F4 03 04 00 F8 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CD 01 00 35 04 06 00 B6 C1 8F FD 47 A0 99 F6 93 86 95 02 DF C7 [16:34:02]CheckFolder [16:34:02]dirname=/storage/ofd_packets [16:34:02]CheckFolder done [16:34:02]ProducePacketName [16:34:02]name=ofd_packets/00118150 [16:34:02]NVStorageSaveData ofd_packets/00118150 [16:34:02]File name is /storage/ofd_packets/00118150 [16:34:02]Write 301 bytes [16:34:02]NVStorageSaveData done [16:34:02]OFDSenderStorePacket done [16:34:02]KKMCreateOFDPacket done [16:34:02]NVStorageSaveData kkm_last_timestamp [16:34:02]File name is /storage/kkm_last_timestamp [16:34:02]Write 4 bytes [16:34:02]NVStorageSaveData done [16:34:02]ExternCall_PrintAddStr [16:34:02]wPrintStart [16:34:02]Write to MH i2c: 01 00 00 6A 02 6C [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 07 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [16:34:02]RasterBufferAndPrint [16:34:02]line Счет N : (1)245949 [16:34:02]line ИНН: 02508201610067 [16:34:02]line Контрольно-Кассовый Чек [16:34:02]line ПРОДАЖА [16:34:02]line ТРК (МРК, ГНК) : 21 [16:34:02]line Товар: 2710124130 [16:34:02]line Аи-92-К-2 [16:34:02]line 7.480 * 66.90 [16:34:02]line = 500.41 [16:34:02]line НДС 12% НСП 1% [16:34:02]line > о реализуемом товаре [16:34:02]line ОКРУГЛЕНИЕ: -0.41 [16:34:02]line ИТОГО: 500.00 [16:34:02]line Внесено: 500.00 [16:34:02]line СДАЧА: 0.00 [16:34:02]line НСП 1% : 4.43 [16:34:02]line НДС 12% : 53.14 [16:34:02]line Наличными: 500.00 [16:34:02]line Безнал.: 0.00 [16:34:02]line Место: АЗС № 173 "Партнер Нефть" [16:34:02]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:34:02]line СНО: Общий режим [16:34:02]line Чек 210 30.10.2024 16:34 [16:34:02]line Смена: 545 ФФД: 1.0 [16:34:02]line ЗНМ: 0300000115 [16:34:02]line РНМ: 0000000000091782 [16:34:02]line Версия ККМ: 001 [16:34:02]line ФМ: 0000000000871767 [16:34:02]line ФД: 118150 [16:34:02]line ФПД: 200942460684192 [16:34:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163400&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118150&fm=200942460684192&tin=02508201610067®Number=0000000000091782&sum=50000 [16:34:02]OFD Sender: Processing packet 118150 [packets to send 77, broken 76] [16:34:02]ProducePacketName [16:34:02]name=ofd_packets/00118150 [16:34:02]OFD Sender: To server: pG, [16:34:02]CommunicateWithHost lk.salyk.kg:30040 [16:34:02]ConnectInit lk.salyk.kg [16:34:02]written 0, free lines is 4095 [16:34:02]Connected sock=10 [16:34: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 36 37 0F 01 00 00 03 BF 07 01 71 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D2 00 00 00 F4 03 04 00 F8 5F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CD 01 00 35 04 06 00 B6 C1 8F FD 47 A0 99 F6 93 86 95 02 DF C7 [16:34: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 36 37 4F 00 00 00 87 C4 47 00 38 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 86 CD 01 00 F4 03 04 00 AF 0B 22 67 B6 04 01 00 00 47 8D 54 B7 57 4E 68 52 [16:34:02]CommunicateWithHost err = 0 [16:34:02]CheckOFDResponse [16:34:02]1017 (14) - 77093643461234 [16:34:02]1041 (16) - 0000000000871767 [16:34:02]1040 (4) - 118150 [16:34:02]1012 (4) - 30.10.2024 10:34 [16:34:02]1206 (1) - 0 [16:34:02]OFD Sender: Remove packet 118150 [16:34:02]ProducePacketName [16:34:02]name=ofd_packets/00118150 [16:34:02]NVStorageDeleteData [16:34:03]Write to MH i2c: 01 00 00 94 02 96 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: 01 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: 01 07 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 BA 0C 63 [16:34:03]RasterBufferAndPrint [16:34:03]line [16:34:03]line [16:34:03]line [16:34:03]line [16:34:03]line [16:34:03]written 0, free lines is 3265 [16:34:03]MH_Cut [16:34:03]Write to MH i2c: D1 01 00 9B 02 01 6F [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: D1 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: D1 01 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: D1 01 00 9B 02 00 6E [16:34:03]Write to MH i2c: 01 00 00 9C 02 9E [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]OFD Sender: No OFD packet to send [16:34:03]*** Cut start [16:34:03]*** Purtial cut [16:34:03]*** Stage 1: CUTSNS_PIN = 1 [16:34:04]Read from MH i2c: 01 [16:34:04]MH_I2C_Read... [16:34:04]*** Stop cut motor [16:34:04]*** Cut end [16:34:04]Read from MH i2c: 01 07 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 FF 0F B3 [16:34:04]process_action close_receipt done [16:34:04]requested_data is exist [16:34:04]produce_requested_data [16:34:04]requested_item fm.sn is exist - process it [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 11 00 00 [16:34:04]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 17 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 70 [16:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:34:04]wFMCommunicate OK [16:34:04]requested_item fd.num is exist - process it [16:34:04]SAM_PROTO_GetFieldsCounters [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 13 00 00 [16:34:04]Write to MH i2c: E2 08 00 9E 02 80 13 00 00 00 00 00 00 1C [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 62 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 62 00 9E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 86 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [16:34: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 86 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:04]wFMCommunicate OK [16:34:04]SAM_PROTO_GetFieldsCounters done [16:34:04]requested_item shift.num is exist - process it [16:34:04]requested_item shift.opened is exist - process it [16:34:04]req_shift_opened [16:34:04]FM_GetShiftState [16:34:04]SAM_PROTO_GetShiftState [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 13 01 00 [16:34:04]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:04]Read from MH i2c: E2 0E 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F6 [16:34:04]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:34:04]wFMCommunicate OK [16:34:04]SAM_PROTO_GetShiftState done [16:34:04]FM_GetShiftState done [16:34:04]req_shift_opened done [16:34:04]requested_item shift.open_date is exist - process it [16:34:04]req_shift_open_date [16:34:04]req_shift_open_date done [16:34:04]produce_requested_data done [16:34:04]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118150,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:34:04]process_action_free close_receipt [16:34:04]json_value_free [16:34:04]json_value_free done [16:34:04]process_json_proto returns [16:34:04]Send response to host [16:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118150,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:34:04]free response buf [16:34:04]execute_script done [16:34:04]execute_script returns [16:34:04]free content buf [16:34:04]Sock 9.Close socket [16:34:04]Sock 9.Thread stoped [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:52]accept exits with 7 [16:34:52]New connection [16:34:52]New thread 3067133284 created [16:34:52]Thread 3067276644 joined [16:34:52]Waiting for new connection... [16:34:52] Sock 7.Parse request [16:34:52]Sock 7.Check first char [16:34:52]Sock 7.First char is OK [16:34:52]request: POST /json_proto HTTP/1.0 [16:34:52]Method: POST [16:34:52]URL: /json_proto [16:34:52]Method is POST - this is cgi request [16:34:52]url: /json_proto [16:34:52]query_string will be loaded in cgi processing [16:34:52]execute_cgi json_proto POST (null) [16:34:52]execute_cgi path=json_proto method=POST [16:34:52]POST find Content-Length [16:34:52]Host: 172.17.96.67:8080 [16:34:52]Content-Length: 677 [16:34:52]Content-Type: application/json [16:34:52] [16:34:52]POST finish read [16:34:52]Found Content-Length = 677 [16:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:34:52]execute_script... [16:34: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)245951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:34:52]POST & json_proto [16:34:52]process_json_proto [16:34:52]json parsed OK: [16:34:52]protocol is kg_v1.0 [16:34:52]action value=close_receipt [16:34:52]process_action close_receipt [16:34:52]cmd_close_receipt [16:34:52]MH_GetDate [16:34:52]Write to MH i2c: F0 00 00 A0 02 91 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: F0 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: F0 09 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: F0 09 00 A0 02 00 2C 60 22 67 47 6C 1F 67 E8 [16:34:52]GetLastDocTimeStamp 1730306040 [16:34:52]current date 1730306092 [16:34:52]FM_GetShiftState [16:34:52]SAM_PROTO_GetShiftState [16:34:52]wFMCommunicate request_size=4 [16:34:52]MH_SAM_APDU [16:34:52]CAPDU: 80 13 01 00 [16:34:52]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:52]Read from MH i2c: E2 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 0E 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F8 [16:34:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:34:52]wFMCommunicate OK [16:34:52]SAM_PROTO_GetShiftState done [16:34:52]FM_GetShiftState done [16:34:52]opened in 1730246605 [16:34:52]opened+sec_in_day 1730333005 [16:34:52]quantity*price = 20003 [16:34:52]sum+1 = 20004 [16:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 211 30.10.2024 16:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118151 ФПД: 32065871186194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163452&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118151&fm=32065871186194&tin=02508201610067®Number=0000000000091782&sum=20000 [16:34:53]StoreToDocumentArchive [16:34:53]shift 545 fd 118151 [16:34:53]save to /storage/0545/doc_00118151 [16:34:53]save last doc name /storage/0545/doc_00118151 to /storage/kkm_last_doc_name [16:34:53]save OK [16:34:53]Clear old archive folders... [16:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:53]tlvbuf is 00220560 [16:34:53]SAM_PROTO_ClearQueue [16:34:53]wFMCommunicate request_size=4 [16:34:53]MH_SAM_APDU [16:34:53]CAPDU: 80 09 00 00 [16:34:53]Write to MH i2c: E2 08 00 AE 02 80 09 00 00 00 00 00 00 22 [16:34:53]Write i2c OK [16:34:53]MH_I2C_Read... [16:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:53]Read from MH i2c: E2 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: E2 03 00 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [16:34:53]RAPDU: 90 00 [16:34:53]wFMCommunicate OK [16:34:53]SAM_PROTO_ClearQueue done [16:34:53]KKMCreateOFDPacket [16:34:53]OFDProtocolAddRootSTLVToBuf [16:34:53]FM_MakeSignedData [16:34:53]FM_MakeSignedData [16:34:53]SAM_PROTO_SignData [16:34:53]wFMCommunicate request_size=4 [16:34:53]MH_SAM_APDU [16:34:53]CAPDU: 80 0D 01 02 [16:34:53]Write to MH i2c: E2 08 00 AF 02 80 0D 01 02 00 00 00 00 2A [16:34:53]Write i2c OK [16:34:53]MH_I2C_Read... [16:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:53]Read from MH i2c: E2 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: E2 03 00 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [16:34:53]RAPDU: 90 00 [16:34:53]wFMCommunicate OK [16:34:53]wFMCommunicate request_size=255 [16:34:53]MH_SAM_APDU [16:34: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 32 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 D3 00 00 00 F4 03 04 00 2C 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CD 01 00 35 04 06 00 1D [16:34:53]Write to MH i2c: E2 02 01 B0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D3 00 00 00 F4 03 04 00 2C 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CD 01 00 35 04 06 00 1D 00 00 FB [16:34:53]Write i2c OK [16:34:53]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [16:34:54]RAPDU: 90 00 [16:34:54]wFMCommunicate OK [16:34:54]wFMCommunicate request_size=10 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 0D 02 02 05 29 EA DC 89 12 [16:34:54]Write to MH i2c: E2 0D 00 B1 02 80 0D 02 02 05 00 29 EA DC 89 12 00 00 C1 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [16:34:54]RAPDU: 90 00 [16:34:54]wFMCommunicate OK [16:34:54]wFMCommunicate request_size=4 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 0D 03 02 [16:34:54]Write to MH i2c: E2 08 00 B2 02 80 0D 03 02 00 00 00 00 2F [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 0B 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 0B 00 B2 02 00 44 7E C8 43 E6 41 EE 45 90 00 57 [16:34:54]RAPDU: 44 7E C8 43 E6 41 EE 45 90 00 [16:34:54]wFMCommunicate OK [16:34:54]SAM_PROTO_SignData done [16:34:54]FM_MakeSignedData done [16:34:54]CreateOFDProtocolMessage [16:34:54]wFMCommunicate request_size=4 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 11 00 00 [16:34:54]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 17 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 86 [16:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:34:54]wFMCommunicate OK [16:34:54]CreateOFDProtocolMessage done [16:34:54]OFDSenderStorePacket 118151 [16:34:54]StoreOFDPacket docnum=118151 [16:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EE 86 07 01 10 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 2C 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CD 01 00 35 04 06 00 1D 29 EA DC 89 12 44 7E C8 43 E6 41 EE 45 [16:34:54]CheckFolder [16:34:54]dirname=/storage/ofd_packets [16:34:54]CheckFolder done [16:34:54]ProducePacketName [16:34:54]name=ofd_packets/00118151 [16:34:54]NVStorageSaveData ofd_packets/00118151 [16:34:54]File name is /storage/ofd_packets/00118151 [16:34:54]Write 301 bytes [16:34:54]NVStorageSaveData done [16:34:54]OFDSenderStorePacket done [16:34:54]KKMCreateOFDPacket done [16:34:54]NVStorageSaveData kkm_last_timestamp [16:34:54]File name is /storage/kkm_last_timestamp [16:34:54]Write 4 bytes [16:34:54]NVStorageSaveData done [16:34:54]ExternCall_PrintAddStr [16:34:54]wPrintStart [16:34:54]Write to MH i2c: 01 00 00 B4 02 B6 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 07 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [16:34:54]RasterBufferAndPrint [16:34:54]line Счет N : (1)245951 [16:34:54]line ИНН: 02508201610067 [16:34:54]line Контрольно-Кассовый Чек [16:34:54]line ПРОДАЖА [16:34:54]line ТРК (МРК, ГНК) : 21 [16:34:54]line Товар: 2710124130 [16:34:54]line Аи-92-К-2 [16:34:54]line 2.990 * 66.90 [16:34:54]line = 200.03 [16:34:54]line НДС 12% НСП 1% [16:34:54]line > о реализуемом товаре [16:34:54]line ОКРУГЛЕНИЕ: -0.03 [16:34:54]line ИТОГО: 200.00 [16:34:54]line Внесено: 200.00 [16:34:54]line СДАЧА: 0.00 [16:34:54]line НСП 1% : 1.77 [16:34:54]line НДС 12% : 21.24 [16:34:54]line Наличными: 200.00 [16:34:54]line Безнал.: 0.00 [16:34:54]line Место: АЗС № 173 "Партнер Нефть" [16:34:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:34:54]line СНО: Общий режим [16:34:54]line Чек 211 30.10.2024 16:34 [16:34:54]line Смена: 545 ФФД: 1.0 [16:34:54]line ЗНМ: 0300000115 [16:34:54]line РНМ: 0000000000091782 [16:34:54]line Версия ККМ: 001 [16:34:54]line ФМ: 0000000000871767 [16:34:54]line ФД: 118151 [16:34:54]line ФПД: 32065871186194 [16:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163452&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118151&fm=32065871186194&tin=02508201610067®Number=0000000000091782&sum=20000 [16:34:54]written 0, free lines is 4095 [16:34:54]OFD Sender: Processing packet 118151 [packets to send 77, broken 76] [16:34:54]ProducePacketName [16:34:54]name=ofd_packets/00118151 [16:34:54]OFD Sender: To server: pG, [16:34:54]CommunicateWithHost lk.salyk.kg:30040 [16:34:54]ConnectInit lk.salyk.kg [16:34:54]Connected sock=10 [16:34: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 36 37 0F 01 00 00 EE 86 07 01 10 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 2C 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 87 CD 01 00 35 04 06 00 1D 29 EA DC 89 12 44 7E C8 43 E6 41 EE 45 [16:34: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 36 37 4F 00 00 00 C4 ED 47 00 E4 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 36 37 10 04 04 00 87 CD 01 00 F4 03 04 00 E4 0B 22 67 B6 04 01 00 00 04 66 AE 12 A3 F7 D7 E6 [16:34:55]CommunicateWithHost err = 0 [16:34:55]CheckOFDResponse [16:34:55]1017 (14) - 77093643461234 [16:34:55]1041 (16) - 0000000000871767 [16:34:55]1040 (4) - 118151 [16:34:55]1012 (4) - 30.10.2024 10:35 [16:34:55]1206 (1) - 0 [16:34:55]OFD Sender: Remove packet 118151 [16:34:55]ProducePacketName [16:34:55]name=ofd_packets/00118151 [16:34:55]NVStorageDeleteData [16:34:55]Write to MH i2c: 01 00 00 DE 02 E0 [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: 01 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: 01 07 00 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 B3 0C A6 [16:34:55]RasterBufferAndPrint [16:34:55]line [16:34:55]line [16:34:55]line [16:34:55]line [16:34:55]line [16:34:55]written 0, free lines is 3257 [16:34:55]MH_Cut [16:34:55]Write to MH i2c: D1 01 00 E5 02 01 B9 [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: D1 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: D1 01 00 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: D1 01 00 E5 02 00 B8 [16:34:55]Write to MH i2c: 01 00 00 E6 02 E8 [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]OFD Sender: No OFD packet to send [16:34:55]*** Cut start [16:34:55]*** Purtial cut [16:34:55]*** Stage 1: CUTSNS_PIN = 1 [16:34:56]Read from MH i2c: 01 [16:34:56]MH_I2C_Read... [16:34:56]*** Stop cut motor [16:34:56]*** Cut end [16:34:56]Read from MH i2c: 01 07 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 FF 0F FD [16:34:56]process_action close_receipt done [16:34:56]requested_data is exist [16:34:56]produce_requested_data [16:34:56]requested_item fm.sn is exist - process it [16:34:56]wFMCommunicate request_size=4 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 11 00 00 [16:34:56]Write to MH i2c: E2 08 00 E7 02 80 11 00 00 00 00 00 00 63 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 17 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 17 00 E7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BA [16:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:34:56]wFMCommunicate OK [16:34:56]requested_item fd.num is exist - process it [16:34:56]SAM_PROTO_GetFieldsCounters [16:34:56]wFMCommunicate request_size=4 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 13 00 00 [16:34:56]Write to MH i2c: E2 08 00 E8 02 80 13 00 00 00 00 00 00 66 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 62 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 62 00 E8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 87 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [16:34: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 87 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:56]wFMCommunicate OK [16:34:56]SAM_PROTO_GetFieldsCounters done [16:34:56]requested_item shift.num is exist - process it [16:34:56]requested_item shift.opened is exist - process it [16:34:56]req_shift_opened [16:34:56]FM_GetShiftState [16:34:56]SAM_PROTO_GetShiftState [16:34:56]wFMCommunicate request_size=4 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 13 01 00 [16:34:56]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 0E 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 40 [16:34:56]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:34:56]wFMCommunicate OK [16:34:56]SAM_PROTO_GetShiftState done [16:34:56]FM_GetShiftState done [16:34:56]req_shift_opened done [16:34:56]requested_item shift.open_date is exist - process it [16:34:56]req_shift_open_date [16:34:56]req_shift_open_date done [16:34:56]produce_requested_data done [16:34:56]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118151,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:34:56]process_action_free close_receipt [16:34:56]json_value_free [16:34:56]json_value_free done [16:34:56]process_json_proto returns [16:34:56]Send response to host [16:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118151,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:34:56]free response buf [16:34:56]execute_script done [16:34:56]execute_script returns [16:34:56]free content buf [16:34:56]Sock 7.Close socket [16:34:56]Sock 7.Thread stoped [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:07]accept exits with 9 [16:35:07]New connection [16:35:07]New thread 3067276644 created [16:35:07]Thread 3067133284 joined [16:35:07]Waiting for new connection... [16:35:07] Sock 9.Parse request [16:35:07]Sock 9.Check first char [16:35:07]Sock 9.First char is OK [16:35:07]request: POST /json_proto HTTP/1.0 [16:35:07]Method: POST [16:35:07]URL: /json_proto [16:35:07]Method is POST - this is cgi request [16:35:07]url: /json_proto [16:35:07]query_string will be loaded in cgi processing [16:35:07]execute_cgi json_proto POST (null) [16:35:07]execute_cgi path=json_proto method=POST [16:35:07]POST find Content-Length [16:35:07]Host: 172.17.96.67:8080 [16:35:07]Content-Length: 677 [16:35:07]Content-Type: application/json [16:35:07] [16:35:07]POST finish read [16:35:07]Found Content-Length = 677 [16:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:35:07]execute_script... [16:35: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)245952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:35:07]POST & json_proto [16:35:07]process_json_proto [16:35:07]json parsed OK: [16:35:07]protocol is kg_v1.0 [16:35:07]action value=close_receipt [16:35:07]process_action close_receipt [16:35:07]cmd_close_receipt [16:35:07]MH_GetDate [16:35:07]Write to MH i2c: F0 00 00 EA 02 DB [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: F0 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: F0 09 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: F0 09 00 EA 02 00 3B 60 22 67 47 6C 1F 67 41 [16:35:07]GetLastDocTimeStamp 1730306092 [16:35:07]current date 1730306107 [16:35:07]FM_GetShiftState [16:35:07]SAM_PROTO_GetShiftState [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 13 01 00 [16:35:07]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 42 [16:35:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_GetShiftState done [16:35:07]FM_GetShiftState done [16:35:07]opened in 1730246605 [16:35:07]opened+sec_in_day 1730333005 [16:35:07]quantity*price = 24017 [16:35:07]sum+1 = 24018 [16:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 212 30.10.2024 16:35 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118152 ФПД: 127087218763558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163507&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118152&fm=127087218763558&tin=02508201610067®Number=0000000000091782&sum=24000 [16:35:08]StoreToDocumentArchive [16:35:08]shift 545 fd 118152 [16:35:08]save to /storage/0545/doc_00118152 [16:35:08]save last doc name /storage/0545/doc_00118152 to /storage/kkm_last_doc_name [16:35:08]save OK [16:35:08]Clear old archive folders... [16:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:08]tlvbuf is B6EF7390 [16:35:08]SAM_PROTO_ClearQueue [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 09 00 00 [16:35:08]Write to MH i2c: E2 08 00 F8 02 80 09 00 00 00 00 00 00 6C [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_ClearQueue done [16:35:08]KKMCreateOFDPacket [16:35:08]OFDProtocolAddRootSTLVToBuf [16:35:08]FM_MakeSignedData [16:35:08]FM_MakeSignedData [16:35:08]SAM_PROTO_SignData [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 01 02 [16:35:08]Write to MH i2c: E2 08 00 F9 02 80 0D 01 02 00 00 00 00 74 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=255 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 00 00 00 F4 03 04 00 3B 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CD 01 00 35 04 06 00 73 [16:35:08]Write to MH i2c: E2 02 01 FA 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 00 00 00 F4 03 04 00 3B 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CD 01 00 35 04 06 00 73 00 00 F0 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=10 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 02 02 05 95 CC 87 A7 26 [16:35:08]Write to MH i2c: E2 0D 00 FB 02 80 0D 02 02 05 00 95 CC 87 A7 26 00 00 36 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 03 02 [16:35:08]Write to MH i2c: E2 08 00 FC 02 80 0D 03 02 00 00 00 00 79 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0B 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0B 00 FC 02 00 ED 1A 59 D7 E3 85 A6 50 90 00 0F [16:35:08]RAPDU: ED 1A 59 D7 E3 85 A6 50 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_SignData done [16:35:08]FM_MakeSignedData done [16:35:08]CreateOFDProtocolMessage [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 11 00 00 [16:35:08]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 17 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D0 [16:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:35:08]wFMCommunicate OK [16:35:08]CreateOFDProtocolMessage done [16:35:08]OFDSenderStorePacket 118152 [16:35:08]StoreOFDPacket docnum=118152 [16:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A0 51 07 01 A5 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 32 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 D4 00 00 00 F4 03 04 00 3B 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CD 01 00 35 04 06 00 73 95 CC 87 A7 26 ED 1A 59 D7 E3 85 A6 50 [16:35:08]CheckFolder [16:35:08]dirname=/storage/ofd_packets [16:35:08]CheckFolder done [16:35:08]ProducePacketName [16:35:08]name=ofd_packets/00118152 [16:35:08]NVStorageSaveData ofd_packets/00118152 [16:35:08]File name is /storage/ofd_packets/00118152 [16:35:08]Write 301 bytes [16:35:08]NVStorageSaveData done [16:35:08]OFDSenderStorePacket done [16:35:08]KKMCreateOFDPacket done [16:35:08]NVStorageSaveData kkm_last_timestamp [16:35:08]File name is /storage/kkm_last_timestamp [16:35:08]Write 4 bytes [16:35:08]NVStorageSaveData done [16:35:08]ExternCall_PrintAddStr [16:35:08]wPrintStart [16:35:08]Write to MH i2c: 01 00 00 FE 02 00 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [16:35:08]RasterBufferAndPrint [16:35:08]line Счет N : (1)245952 [16:35:08]line ИНН: 02508201610067 [16:35:08]line Контрольно-Кассовый Чек [16:35:08]line ПРОДАЖА [16:35:08]line ТРК (МРК, ГНК) : 11 [16:35:08]line Товар: 2710124130 [16:35:08]line Аи-92-К-2 [16:35:08]line 3.590 * 66.90 [16:35:08]line = 240.17 [16:35:08]line НДС 12% НСП 1% [16:35:08]line > о реализуемом товаре [16:35:08]line ОКРУГЛЕНИЕ: -0.17 [16:35:08]line ИТОГО: 240.00 [16:35:08]line Внесено: 240.00 [16:35:08]line СДАЧА: 0.00 [16:35:08]line НСП 1% : 2.12 [16:35:08]line НДС 12% : 25.50 [16:35:08]line Наличными: 240.00 [16:35:08]line Безнал.: 0.00 [16:35:08]line Место: АЗС № 173 "Партнер Нефть" [16:35:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:35:08]line СНО: Общий режим [16:35:08]line Чек 212 30.10.2024 16:35 [16:35:08]line Смена: 545 ФФД: 1.0 [16:35:08]line ЗНМ: 0300000115 [16:35:08]line РНМ: 0000000000091782 [16:35:08]line Версия ККМ: 001 [16:35:08]line ФМ: 0000000000871767 [16:35:08]line ФД: 118152 [16:35:08]line ФПД: 127087218763558 [16:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163507&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118152&fm=127087218763558&tin=02508201610067®Number=0000000000091782&sum=24000 [16:35:09]written 0, free lines is 4095 [16:35:09]OFD Sender: Processing packet 118152 [packets to send 77, broken 76] [16:35:09]ProducePacketName [16:35:09]name=ofd_packets/00118152 [16:35:09]OFD Sender: To server: pG, [16:35:09]CommunicateWithHost lk.salyk.kg:30040 [16:35:09]ConnectInit lk.salyk.kg [16:35:09]Connected sock=10 [16:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A0 51 07 01 A5 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 32 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 D4 00 00 00 F4 03 04 00 3B 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 88 CD 01 00 35 04 06 00 73 95 CC 87 A7 26 ED 1A 59 D7 E3 85 A6 50 [16:35: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 36 37 4F 00 00 00 1A 87 47 00 36 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 36 37 10 04 04 00 88 CD 01 00 F4 03 04 00 F2 0B 22 67 B6 04 01 00 00 20 42 BE A7 E7 86 CA 5F [16:35:09]CommunicateWithHost err = 0 [16:35:09]CheckOFDResponse [16:35:09]1017 (14) - 77093643461234 [16:35:09]1041 (16) - 0000000000871767 [16:35:09]1040 (4) - 118152 [16:35:09]1012 (4) - 30.10.2024 10:35 [16:35:09]1206 (1) - 0 [16:35:09]OFD Sender: Remove packet 118152 [16:35:09]ProducePacketName [16:35:09]name=ofd_packets/00118152 [16:35:09]NVStorageDeleteData [16:35:09]Write to MH i2c: 01 00 00 28 03 2B [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 BA 0C F8 [16:35:09]RasterBufferAndPrint [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]written 0, free lines is 3266 [16:35:09]MH_Cut [16:35:09]Write to MH i2c: D1 01 00 2F 03 01 04 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 2F 03 00 03 [16:35:09]Write to MH i2c: 01 00 00 30 03 33 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:10]OFD Sender: No OFD packet to send [16:35:10]*** Cut start [16:35:10]*** Purtial cut [16:35:10]*** Stage 1: CUTSNS_PIN = 1 [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]*** Stop cut motor [16:35:10]*** Cut end [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [16:35:10]process_action close_receipt done [16:35:10]requested_data is exist [16:35:10]produce_requested_data [16:35:10]requested_item fm.sn is exist - process it [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 11 00 00 [16:35:10]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 05 [16:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:35:10]wFMCommunicate OK [16:35:10]requested_item fd.num is exist - process it [16:35:10]SAM_PROTO_GetFieldsCounters [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 00 00 [16:35:10]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 62 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 62 00 32 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 88 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [16:35: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 88 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:10]wFMCommunicate OK [16:35:10]SAM_PROTO_GetFieldsCounters done [16:35:10]requested_item shift.num is exist - process it [16:35:10]requested_item shift.opened is exist - process it [16:35:10]req_shift_opened [16:35:10]FM_GetShiftState [16:35:10]SAM_PROTO_GetShiftState [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 01 00 [16:35:10]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8B [16:35:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetShiftState done [16:35:11]FM_GetShiftState done [16:35:11]req_shift_opened done [16:35:11]requested_item shift.open_date is exist - process it [16:35:11]req_shift_open_date [16:35:11]req_shift_open_date done [16:35:11]produce_requested_data done [16:35:11]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118152,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:35:11]process_action_free close_receipt [16:35:11]json_value_free [16:35:11]json_value_free done [16:35:11]process_json_proto returns [16:35:11]Send response to host [16:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118152,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:35:11]free response buf [16:35:11]execute_script done [16:35:11]execute_script returns [16:35:11]free content buf [16:35:11]Sock 9.Close socket [16:35:11]Sock 9.Thread stoped [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:38]accept exits with 7 [16:36:38]New connection [16:36:38]New thread 3067133284 created [16:36:38]Thread 3067276644 joined [16:36:38]Waiting for new connection... [16:36:38] Sock 7.Parse request [16:36:38]Sock 7.Check first char [16:36:38]Sock 7.First char is OK [16:36:38]request: POST /json_proto HTTP/1.0 [16:36:38]Method: POST [16:36:38]URL: /json_proto [16:36:38]Method is POST - this is cgi request [16:36:38]url: /json_proto [16:36:38]query_string will be loaded in cgi processing [16:36:38]execute_cgi json_proto POST (null) [16:36:38]execute_cgi path=json_proto method=POST [16:36:38]POST find Content-Length [16:36:38]Host: 172.17.96.67:8080 [16:36:38]Content-Length: 677 [16:36:38]Content-Type: application/json [16:36:38] [16:36:38]POST finish read [16:36:38]Found Content-Length = 677 [16:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:36:38]execute_script... [16:36: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)245953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:36:38]POST & json_proto [16:36:38]process_json_proto [16:36:38]json parsed OK: [16:36:38]protocol is kg_v1.0 [16:36:38]action value=close_receipt [16:36:38]process_action close_receipt [16:36:38]cmd_close_receipt [16:36:38]MH_GetDate [16:36:38]Write to MH i2c: F0 00 00 34 03 26 [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: F0 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: F0 09 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: F0 09 00 34 03 00 97 60 22 67 47 6C 1F 67 E8 [16:36:38]GetLastDocTimeStamp 1730306107 [16:36:38]current date 1730306199 [16:36:38]FM_GetShiftState [16:36:38]SAM_PROTO_GetShiftState [16:36:38]wFMCommunicate request_size=4 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 13 01 00 [16:36:38]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 0E 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8D [16:36:38]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:36:38]wFMCommunicate OK [16:36:38]SAM_PROTO_GetShiftState done [16:36:38]FM_GetShiftState done [16:36:38]opened in 1730246605 [16:36:38]opened+sec_in_day 1730333005 [16:36:38]quantity*price = 40006 [16:36:38]sum+1 = 40007 [16:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 213 30.10.2024 16:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118153 ФПД: 143066608323577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163639&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118153&fm=143066608323577&tin=02508201610067®Number=0000000000091782&sum=40000 [16:36:40]StoreToDocumentArchive [16:36:40]shift 545 fd 118153 [16:36:40]save to /storage/0545/doc_00118153 [16:36:40]save last doc name /storage/0545/doc_00118153 to /storage/kkm_last_doc_name [16:36:40]save OK [16:36:40]Clear old archive folders... [16:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:40]tlvbuf is 001C6940 [16:36:40]SAM_PROTO_ClearQueue [16:36:40]wFMCommunicate request_size=4 [16:36:40]MH_SAM_APDU [16:36:40]CAPDU: 80 09 00 00 [16:36:40]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [16:36:40]Write i2c OK [16:36:40]MH_I2C_Read... [16:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:40]OFD Sender: No OFD packet to send [16:36:40]Read from MH i2c: E2 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [16:36:40]RAPDU: 90 00 [16:36:40]wFMCommunicate OK [16:36:40]SAM_PROTO_ClearQueue done [16:36:40]KKMCreateOFDPacket [16:36:40]OFDProtocolAddRootSTLVToBuf [16:36:40]FM_MakeSignedData [16:36:40]FM_MakeSignedData [16:36:40]SAM_PROTO_SignData [16:36:40]wFMCommunicate request_size=4 [16:36:40]MH_SAM_APDU [16:36:40]CAPDU: 80 0D 01 02 [16:36:40]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [16:36:40]Write i2c OK [16:36:40]MH_I2C_Read... [16:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:40]Read from MH i2c: E2 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [16:36:40]RAPDU: 90 00 [16:36:40]wFMCommunicate OK [16:36:40]wFMCommunicate request_size=255 [16:36:40]MH_SAM_APDU [16:36: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 32 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 D5 00 00 00 F4 03 04 00 97 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CD 01 00 35 04 06 00 82 [16:36:40]Write to MH i2c: E2 02 01 44 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 00 00 00 F4 03 04 00 97 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CD 01 00 35 04 06 00 82 00 00 71 [16:36:40]Write i2c OK [16:36:40]MH_I2C_Read... [16:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:40]Read from MH i2c: E2 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [16:36:40]RAPDU: 90 00 [16:36:40]wFMCommunicate OK [16:36:40]wFMCommunicate request_size=10 [16:36:40]MH_SAM_APDU [16:36:40]CAPDU: 80 0D 02 02 05 1E 4A 5E 4B F9 [16:36:40]Write to MH i2c: E2 0D 00 45 03 80 0D 02 02 05 00 1E 4A 5E 4B F9 00 00 D6 [16:36:40]Write i2c OK [16:36:40]MH_I2C_Read... [16:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:40]Read from MH i2c: E2 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [16:36:40]RAPDU: 90 00 [16:36:40]wFMCommunicate OK [16:36:40]wFMCommunicate request_size=4 [16:36:40]MH_SAM_APDU [16:36:40]CAPDU: 80 0D 03 02 [16:36:40]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [16:36:40]Write i2c OK [16:36:40]MH_I2C_Read... [16:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:40]Read from MH i2c: E2 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 0B 00 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 0B 00 46 03 00 DE 73 00 B3 2D A6 84 3F 90 00 5F [16:36:40]RAPDU: DE 73 00 B3 2D A6 84 3F 90 00 [16:36:40]wFMCommunicate OK [16:36:40]SAM_PROTO_SignData done [16:36:40]FM_MakeSignedData done [16:36:40]CreateOFDProtocolMessage [16:36:40]wFMCommunicate request_size=4 [16:36:40]MH_SAM_APDU [16:36:40]CAPDU: 80 11 00 00 [16:36:40]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [16:36:40]Write i2c OK [16:36:40]MH_I2C_Read... [16:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:40]Read from MH i2c: E2 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 17 00 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1B [16:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:36:40]wFMCommunicate OK [16:36:40]CreateOFDProtocolMessage done [16:36:40]OFDSenderStorePacket 118153 [16:36:40]StoreOFDPacket docnum=118153 [16:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1F CC 07 01 35 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 32 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 D5 00 00 00 F4 03 04 00 97 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CD 01 00 35 04 06 00 82 1E 4A 5E 4B F9 DE 73 00 B3 2D A6 84 3F [16:36:40]CheckFolder [16:36:40]dirname=/storage/ofd_packets [16:36:40]CheckFolder done [16:36:40]ProducePacketName [16:36:40]name=ofd_packets/00118153 [16:36:40]NVStorageSaveData ofd_packets/00118153 [16:36:40]File name is /storage/ofd_packets/00118153 [16:36:40]Write 301 bytes [16:36:40]NVStorageSaveData done [16:36:40]OFDSenderStorePacket done [16:36:40]KKMCreateOFDPacket done [16:36:40]NVStorageSaveData kkm_last_timestamp [16:36:40]File name is /storage/kkm_last_timestamp [16:36:40]Write 4 bytes [16:36:40]NVStorageSaveData done [16:36:40]ExternCall_PrintAddStr [16:36:40]wPrintStart [16:36:40]Write to MH i2c: 01 00 00 48 03 4B [16:36:40]Write i2c OK [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: 01 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: 01 07 00 [16:36:40]MH_I2C_Read... [16:36:40]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [16:36:40]RasterBufferAndPrint [16:36:40]line Счет N : (1)245953 [16:36:40]line ИНН: 02508201610067 [16:36:40]line Контрольно-Кассовый Чек [16:36:40]line ПРОДАЖА [16:36:40]line ТРК (МРК, ГНК) : 21 [16:36:40]line Товар: 2710124130 [16:36:40]line Аи-92-К-2 [16:36:40]line 5.980 * 66.90 [16:36:40]line = 400.06 [16:36:40]line НДС 12% НСП 1% [16:36:40]line > о реализуемом товаре [16:36:40]line ОКРУГЛЕНИЕ: -0.06 [16:36:40]line ИТОГО: 400.00 [16:36:40]line Внесено: 400.00 [16:36:40]line СДАЧА: 0.00 [16:36:40]line НСП 1% : 3.54 [16:36:40]line НДС 12% : 42.48 [16:36:40]line Наличными: 400.00 [16:36:40]line Безнал.: 0.00 [16:36:40]line Место: АЗС № 173 "Партнер Нефть" [16:36:40]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:36:40]line СНО: Общий режим [16:36:40]line Чек 213 30.10.2024 16:36 [16:36:40]line Смена: 545 ФФД: 1.0 [16:36:40]line ЗНМ: 0300000115 [16:36:40]line РНМ: 0000000000091782 [16:36:40]line Версия ККМ: 001 [16:36:40]line ФМ: 0000000000871767 [16:36:40]line ФД: 118153 [16:36:40]line ФПД: 143066608323577 [16:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163639&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118153&fm=143066608323577&tin=02508201610067®Number=0000000000091782&sum=40000 [16:36:40]OFD Sender: Processing packet 118153 [packets to send 77, broken 76] [16:36:40]ProducePacketName [16:36:40]name=ofd_packets/00118153 [16:36:40]OFD Sender: To server: pG, [16:36:40]CommunicateWithHost lk.salyk.kg:30040 [16:36:40]ConnectInit lk.salyk.kg [16:36:40]written 0, free lines is 4095 [16:36:41]Connected sock=10 [16:36: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 36 37 0F 01 00 00 1F CC 07 01 35 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 32 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 D5 00 00 00 F4 03 04 00 97 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CD 01 00 35 04 06 00 82 1E 4A 5E 4B F9 DE 73 00 B3 2D A6 84 3F [16:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 90 0B 47 00 BB B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 89 CD 01 00 F4 03 04 00 4E 0C 22 67 B6 04 01 00 00 15 31 02 16 56 28 DE EF [16:36:41]CommunicateWithHost err = 0 [16:36:41]CheckOFDResponse [16:36:41]1017 (14) - 77093643461234 [16:36:41]1041 (16) - 0000000000871767 [16:36:41]1040 (4) - 118153 [16:36:41]1012 (4) - 30.10.2024 10:37 [16:36:41]1206 (1) - 0 [16:36:41]OFD Sender: Remove packet 118153 [16:36:41]ProducePacketName [16:36:41]name=ofd_packets/00118153 [16:36:41]NVStorageDeleteData [16:36:41]Write to MH i2c: 01 00 00 72 03 75 [16:36:41]Write i2c OK [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: 01 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: 01 07 00 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 B4 0C 3C [16:36:41]RasterBufferAndPrint [16:36:41]line [16:36:41]line [16:36:41]line [16:36:41]line [16:36:41]line [16:36:41]written 0, free lines is 3258 [16:36:41]MH_Cut [16:36:41]Write to MH i2c: D1 01 00 79 03 01 4E [16:36:41]Write i2c OK [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: D1 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: D1 01 00 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: D1 01 00 79 03 00 4D [16:36:41]Write to MH i2c: 01 00 00 7A 03 7D [16:36:41]Write i2c OK [16:36:41]MH_I2C_Read... [16:36:41]OFD Sender: No OFD packet to send [16:36:42]*** Cut start [16:36:42]*** Purtial cut [16:36:42]*** Stage 1: CUTSNS_PIN = 1 [16:36:42]Read from MH i2c: 01 [16:36:42]MH_I2C_Read... [16:36:42]*** Stop cut motor [16:36:42]*** Cut end [16:36:42]Read from MH i2c: 01 07 00 [16:36:42]MH_I2C_Read... [16:36:42]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 FF 0F 92 [16:36:42]process_action close_receipt done [16:36:42]requested_data is exist [16:36:42]produce_requested_data [16:36:42]requested_item fm.sn is exist - process it [16:36:42]wFMCommunicate request_size=4 [16:36:42]MH_SAM_APDU [16:36:42]CAPDU: 80 11 00 00 [16:36:42]Write to MH i2c: E2 08 00 7B 03 80 11 00 00 00 00 00 00 F8 [16:36:42]Write i2c OK [16:36:42]MH_I2C_Read... [16:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:42]Read from MH i2c: E2 [16:36:42]MH_I2C_Read... [16:36:42]Read from MH i2c: E2 17 00 [16:36:42]MH_I2C_Read... [16:36:42]Read from MH i2c: E2 17 00 7B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4F [16:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:36:42]wFMCommunicate OK [16:36:42]requested_item fd.num is exist - process it [16:36:42]SAM_PROTO_GetFieldsCounters [16:36:42]wFMCommunicate request_size=4 [16:36:42]MH_SAM_APDU [16:36:42]CAPDU: 80 13 00 00 [16:36:42]Write to MH i2c: E2 08 00 7C 03 80 13 00 00 00 00 00 00 FB [16:36:42]Write i2c OK [16:36:42]MH_I2C_Read... [16:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:42]Read from MH i2c: E2 [16:36:42]MH_I2C_Read... [16:36:42]Read from MH i2c: E2 62 00 [16:36:42]MH_I2C_Read... [16:36:42]Read from MH i2c: E2 62 00 7C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 89 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:36: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 89 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:42]wFMCommunicate OK [16:36:42]SAM_PROTO_GetFieldsCounters done [16:36:42]requested_item shift.num is exist - process it [16:36:42]requested_item shift.opened is exist - process it [16:36:42]req_shift_opened [16:36:42]FM_GetShiftState [16:36:42]SAM_PROTO_GetShiftState [16:36:42]wFMCommunicate request_size=4 [16:36:42]MH_SAM_APDU [16:36:42]CAPDU: 80 13 01 00 [16:36:42]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [16:36:42]Write i2c OK [16:36:42]MH_I2C_Read... [16:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:42]Read from MH i2c: E2 [16:36:42]MH_I2C_Read... [16:36:42]Read from MH i2c: E2 0E 00 [16:36:42]MH_I2C_Read... [16:36:42]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D5 [16:36:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:36:42]wFMCommunicate OK [16:36:42]SAM_PROTO_GetShiftState done [16:36:42]FM_GetShiftState done [16:36:42]req_shift_opened done [16:36:42]requested_item shift.open_date is exist - process it [16:36:42]req_shift_open_date [16:36:42]req_shift_open_date done [16:36:42]produce_requested_data done [16:36:42]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118153,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:36:42]process_action_free close_receipt [16:36:42]json_value_free [16:36:42]json_value_free done [16:36:42]process_json_proto returns [16:36:42]Send response to host [16:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118153,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:36:42]free response buf [16:36:42]execute_script done [16:36:42]execute_script returns [16:36:42]free content buf [16:36:42]Sock 7.Close socket [16:36:42]Sock 7.Thread stoped [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]accept exits with 9 [16:37:26]New connection [16:37:26]New thread 3067276644 created [16:37:26]Thread 3067133284 joined [16:37:26]Waiting for new connection... [16:37:26] Sock 9.Parse request [16:37:26]Sock 9.Check first char [16:37:26]Sock 9.First char is OK [16:37:26]request: POST /json_proto HTTP/1.0 [16:37:26]Method: POST [16:37:26]URL: /json_proto [16:37:26]Method is POST - this is cgi request [16:37:26]url: /json_proto [16:37:26]query_string will be loaded in cgi processing [16:37:26]execute_cgi json_proto POST (null) [16:37:26]execute_cgi path=json_proto method=POST [16:37:26]POST find Content-Length [16:37:26]Host: 172.17.96.67:8080 [16:37:26]Content-Length: 674 [16:37:26]Content-Type: application/json [16:37:26] [16:37:26]POST finish read [16:37:26]Found Content-Length = 674 [16:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:37:26]execute_script... [16:37: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)245954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:37:26]POST & json_proto [16:37:26]process_json_proto [16:37:26]json parsed OK: [16:37:26]protocol is kg_v1.0 [16:37:26]action value=close_receipt [16:37:26]process_action close_receipt [16:37:26]cmd_close_receipt [16:37:26]MH_GetDate [16:37:26]Write to MH i2c: F0 00 00 7E 03 70 [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: F0 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: F0 09 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: F0 09 00 7E 03 00 C6 60 22 67 47 6C 1F 67 61 [16:37:26]GetLastDocTimeStamp 1730306199 [16:37:26]current date 1730306246 [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 7F 03 80 13 01 00 00 00 00 00 FF [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]OFD Sender: No OFD packet to send [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 7F 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D7 [16:37:26]RAPDU: 09 00 01 CD 77 21 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]opened in 1730246605 [16:37:26]opened+sec_in_day 1730333005 [16:37:26]quantity*price = 50063 [16:37:26]sum+1 = 50064 [16:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 214 30.10.2024 16:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118154 ФПД: 147140833230175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163727&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118154&fm=147140833230175&tin=02508201610067®Number=0000000000091782&sum=50000 [16:37:27]StoreToDocumentArchive [16:37:27]shift 545 fd 118154 [16:37:27]save to /storage/0545/doc_00118154 [16:37:27]save last doc name /storage/0545/doc_00118154 to /storage/kkm_last_doc_name [16:37:27]save OK [16:37:27]Clear old archive folders... [16:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:37:27]tlvbuf is 00220430 [16:37:27]SAM_PROTO_ClearQueue [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 09 00 00 [16:37:27]Write to MH i2c: E2 08 00 8C 03 80 09 00 00 00 00 00 00 01 [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [16:37:28]RAPDU: 90 00 [16:37:28]wFMCommunicate OK [16:37:28]SAM_PROTO_ClearQueue done [16:37:28]KKMCreateOFDPacket [16:37:28]OFDProtocolAddRootSTLVToBuf [16:37:28]FM_MakeSignedData [16:37:28]FM_MakeSignedData [16:37:28]SAM_PROTO_SignData [16:37:28]wFMCommunicate request_size=4 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 0D 01 02 [16:37:28]Write to MH i2c: E2 08 00 8D 03 80 0D 01 02 00 00 00 00 09 [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [16:37:28]RAPDU: 90 00 [16:37:28]wFMCommunicate OK [16:37:28]wFMCommunicate request_size=255 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D6 00 00 00 F4 03 04 00 C7 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CD 01 00 35 04 06 00 85 D2 E5 18 [16:37:28]Write to MH i2c: E2 02 01 8E 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D6 00 00 00 F4 03 04 00 C7 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CD 01 00 35 04 06 00 85 D2 E5 18 00 00 6E [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [16:37:28]RAPDU: 90 00 [16:37:28]wFMCommunicate OK [16:37:28]wFMCommunicate request_size=7 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 0D 02 02 02 BD 5F [16:37:28]Write to MH i2c: E2 0A 00 8F 03 80 0D 02 02 02 00 BD 5F 00 00 2C [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [16:37:28]RAPDU: 90 00 [16:37:28]wFMCommunicate OK [16:37:28]wFMCommunicate request_size=4 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 0D 03 02 [16:37:28]Write to MH i2c: E2 08 00 90 03 80 0D 03 02 00 00 00 00 0E [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 0B 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 0B 00 90 03 00 A0 BB 83 DB CD D5 FC C2 90 00 28 [16:37:28]RAPDU: A0 BB 83 DB CD D5 FC C2 90 00 [16:37:28]wFMCommunicate OK [16:37:28]SAM_PROTO_SignData done [16:37:28]FM_MakeSignedData done [16:37:28]CreateOFDProtocolMessage [16:37:28]wFMCommunicate request_size=4 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 11 00 00 [16:37:28]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 17 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 17 00 91 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 65 [16:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:37:28]wFMCommunicate OK [16:37:28]CreateOFDProtocolMessage done [16:37:28]OFDSenderStorePacket 118154 [16:37:28]StoreOFDPacket docnum=118154 [16:37:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 1B 6E 04 01 5A 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 C7 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CD 01 00 35 04 06 00 85 D2 E5 18 BD 5F A0 BB 83 DB CD D5 FC C2 [16:37:28]CheckFolder [16:37:28]dirname=/storage/ofd_packets [16:37:28]CheckFolder done [16:37:28]ProducePacketName [16:37:28]name=ofd_packets/00118154 [16:37:28]NVStorageSaveData ofd_packets/00118154 [16:37:28]File name is /storage/ofd_packets/00118154 [16:37:28]Write 298 bytes [16:37:28]NVStorageSaveData done [16:37:28]OFDSenderStorePacket done [16:37:28]KKMCreateOFDPacket done [16:37:28]NVStorageSaveData kkm_last_timestamp [16:37:28]File name is /storage/kkm_last_timestamp [16:37:28]Write 4 bytes [16:37:28]NVStorageSaveData done [16:37:28]ExternCall_PrintAddStr [16:37:28]wPrintStart [16:37:28]Write to MH i2c: 01 00 00 92 03 95 [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: 01 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: 01 07 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 FF 0F AA [16:37:28]RasterBufferAndPrint [16:37:28]line Счет N : (1)245954 [16:37:28]line ИНН: 02508201610067 [16:37:28]line Контрольно-Кассовый Чек [16:37:28]line ПРОДАЖА [16:37:28]line ТРК (МРК, ГНК) : 13 [16:37:28]line Товар: 2710194210 [16:37:28]line ДТ-К-2 [16:37:28]line 6.570 * 76.20 [16:37:28]line = 500.63 [16:37:28]line НДС 12% НСП 1% [16:37:28]line > о реализуемом товаре [16:37:28]line ОКРУГЛЕНИЕ: -0.63 [16:37:28]line ИТОГО: 500.00 [16:37:28]line Внесено: 500.00 [16:37:28]line СДАЧА: 0.00 [16:37:28]line НСП 1% : 4.43 [16:37:28]line НДС 12% : 53.16 [16:37:28]line Наличными: 500.00 [16:37:28]line Безнал.: 0.00 [16:37:28]line Место: АЗС № 173 "Партнер Нефть" [16:37:28]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:37:28]line СНО: Общий режим [16:37:28]line Чек 214 30.10.2024 16:37 [16:37:28]line Смена: 545 ФФД: 1.0 [16:37:28]line ЗНМ: 0300000115 [16:37:28]line РНМ: 0000000000091782 [16:37:28]line Версия ККМ: 001 [16:37:28]line ФМ: 0000000000871767 [16:37:28]line ФД: 118154 [16:37:28]line ФПД: 147140833230175 [16:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163727&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118154&fm=147140833230175&tin=02508201610067®Number=0000000000091782&sum=50000 [16:37:28]OFD Sender: Processing packet 118154 [packets to send 77, broken 76] [16:37:28]written 0, free lines is 4095 [16:37:28]ProducePacketName [16:37:28]name=ofd_packets/00118154 [16:37:28]OFD Sender: To server: pG, [16:37:28]CommunicateWithHost lk.salyk.kg:30040 [16:37:28]ConnectInit lk.salyk.kg [16:37:28]Connected sock=10 [16:37: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 36 37 0C 01 00 00 1B 6E 04 01 5A 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 C7 60 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8A CD 01 00 35 04 06 00 85 D2 E5 18 BD 5F A0 BB 83 DB CD D5 FC C2 [16:37: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 36 37 4F 00 00 00 23 AA 47 00 15 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 36 37 10 04 04 00 8A CD 01 00 F4 03 04 00 7E 0C 22 67 B6 04 01 00 00 E9 E1 C8 E8 FC 88 0D B6 [16:37:29]CommunicateWithHost err = 0 [16:37:29]CheckOFDResponse [16:37:29]1017 (14) - 77093643461234 [16:37:29]1041 (16) - 0000000000871767 [16:37:29]1040 (4) - 118154 [16:37:29]1012 (4) - 30.10.2024 10:37 [16:37:29]1206 (1) - 0 [16:37:29]OFD Sender: Remove packet 118154 [16:37:29]ProducePacketName [16:37:29]name=ofd_packets/00118154 [16:37:29]NVStorageDeleteData [16:37:29]Write to MH i2c: 01 00 00 BC 03 BF [16:37:29]Write i2c OK [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: 01 [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: 01 07 00 [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: 01 07 00 BC 03 00 00 00 00 00 BE 0C 90 [16:37:29]RasterBufferAndPrint [16:37:29]line [16:37:29]line [16:37:29]line [16:37:29]line [16:37:29]line [16:37:29]written 0, free lines is 3268 [16:37:29]MH_Cut [16:37:29]Write to MH i2c: D1 01 00 C3 03 01 98 [16:37:29]Write i2c OK [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: D1 [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: D1 01 00 [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: D1 01 00 C3 03 00 97 [16:37:29]Write to MH i2c: 01 00 00 C4 03 C7 [16:37:29]Write i2c OK [16:37:29]MH_I2C_Read... [16:37:29]OFD Sender: No OFD packet to send [16:37:30]*** Cut start [16:37:30]*** Purtial cut [16:37:30]*** Stage 1: CUTSNS_PIN = 1 [16:37:30]Read from MH i2c: 01 [16:37:30]MH_I2C_Read... [16:37:30]*** Stop cut motor [16:37:30]*** Cut end [16:37:30]Read from MH i2c: 01 07 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [16:37:30]process_action close_receipt done [16:37:30]requested_data is exist [16:37:30]produce_requested_data [16:37:30]requested_item fm.sn is exist - process it [16:37:30]wFMCommunicate request_size=4 [16:37:30]MH_SAM_APDU [16:37:30]CAPDU: 80 11 00 00 [16:37:30]Write to MH i2c: E2 08 00 C5 03 80 11 00 00 00 00 00 00 42 [16:37:30]Write i2c OK [16:37:30]MH_I2C_Read... [16:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:30]Read from MH i2c: E2 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 17 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 17 00 C5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 99 [16:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:37:30]wFMCommunicate OK [16:37:30]requested_item fd.num is exist - process it [16:37:30]SAM_PROTO_GetFieldsCounters [16:37:30]wFMCommunicate request_size=4 [16:37:30]MH_SAM_APDU [16:37:30]CAPDU: 80 13 00 00 [16:37:30]Write to MH i2c: E2 08 00 C6 03 80 13 00 00 00 00 00 00 45 [16:37:30]Write i2c OK [16:37:30]MH_I2C_Read... [16:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:30]Read from MH i2c: E2 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 62 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 62 00 C6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [16:37: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:30]wFMCommunicate OK [16:37:30]SAM_PROTO_GetFieldsCounters done [16:37:30]requested_item shift.num is exist - process it [16:37:30]requested_item shift.opened is exist - process it [16:37:30]req_shift_opened [16:37:30]FM_GetShiftState [16:37:30]SAM_PROTO_GetShiftState [16:37:30]wFMCommunicate request_size=4 [16:37:30]MH_SAM_APDU [16:37:30]CAPDU: 80 13 01 00 [16:37:30]Write to MH i2c: E2 08 00 C7 03 80 13 01 00 00 00 00 00 47 [16:37:30]Write i2c OK [16:37:30]MH_I2C_Read... [16:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:30]Read from MH i2c: E2 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 0E 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 0E 00 C7 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1F [16:37:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:37:30]wFMCommunicate OK [16:37:30]SAM_PROTO_GetShiftState done [16:37:30]FM_GetShiftState done [16:37:30]req_shift_opened done [16:37:30]requested_item shift.open_date is exist - process it [16:37:30]req_shift_open_date [16:37:30]req_shift_open_date done [16:37:30]produce_requested_data done [16:37:30]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118154,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:37:30]process_action_free close_receipt [16:37:30]json_value_free [16:37:30]json_value_free done [16:37:30]process_json_proto returns [16:37:30]Send response to host [16:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118154,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:37:30]free response buf [16:37:30]execute_script done [16:37:30]execute_script returns [16:37:30]free content buf [16:37:30]Sock 9.Close socket [16:37:30]Sock 9.Thread stoped [16:37:32]int [16:37:32]Write to MH i2c: 01 00 00 C8 03 CB [16:37:32]*** FLAG_PRN_PAP1 set [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: 01 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: 01 07 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: 01 07 00 C8 03 00 01 00 00 00 FF 0F E1 [16:37:32]state=0 [16:37:32]No paper [16:37:33]int [16:37:33]Write to MH i2c: 01 00 00 C9 03 CC [16:37:33]*** FLAG_PRN_PAP2 set [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 07 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 07 00 C9 03 00 03 00 00 00 FF 0F E4 [16:37:33]state=0 [16:37:33]No paper [16:37:33]Cover opened [16:37:34]OFD Sender: No OFD packet to send [16:37:38]int [16:37:38]Write to MH i2c: 01 00 00 CA 03 CD [16:37:38]*** FLAG_PRN_PAP1 reset [16:37:38]*** FLAG_PRN_PAP2 reset [16:37:38]Write i2c OK [16:37:38]MH_I2C_Read... [16:37:38]Read from MH i2c: 01 [16:37:38]MH_I2C_Read... [16:37:38]Read from MH i2c: 01 07 00 [16:37:38]MH_I2C_Read... [16:37:38]Read from MH i2c: 01 07 00 CA 03 00 00 00 00 00 FF 0F E2 [16:37:38]state=3 [16:37:38]Cover closed [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:22]accept exits with 7 [16:43:22]New connection [16:43:22]New thread 3067133284 created [16:43:22]Thread 3067276644 joined [16:43:22]Waiting for new connection... [16:43:22] Sock 7.Parse request [16:43:22]Sock 7.Check first char [16:43:22]Sock 7.First char is OK [16:43:22]request: POST /json_proto HTTP/1.0 [16:43:22]Method: POST [16:43:22]URL: /json_proto [16:43:22]Method is POST - this is cgi request [16:43:22]url: /json_proto [16:43:22]query_string will be loaded in cgi processing [16:43:22]execute_cgi json_proto POST (null) [16:43:22]execute_cgi path=json_proto method=POST [16:43:22]POST find Content-Length [16:43:22]Host: 172.17.96.67:8080 [16:43:22]Content-Length: 677 [16:43:22]Content-Type: application/json [16:43:22] [16:43:22]POST finish read [16:43:22]Found Content-Length = 677 [16:43:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:43:22]execute_script... [16:43: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)245955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:43:22]POST & json_proto [16:43:22]process_json_proto [16:43:22]json parsed OK: [16:43:22]protocol is kg_v1.0 [16:43:22]action value=close_receipt [16:43:22]process_action close_receipt [16:43:22]cmd_close_receipt [16:43:22]MH_GetDate [16:43:22]Write to MH i2c: F0 00 00 CB 03 BD [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: F0 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: F0 09 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: F0 09 00 CB 03 00 2A 62 22 67 47 6C 1F 67 14 [16:43:22]GetLastDocTimeStamp 1730306247 [16:43:22]current date 1730306602 [16:43:22]FM_GetShiftState [16:43:22]SAM_PROTO_GetShiftState [16:43:22]wFMCommunicate request_size=4 [16:43:22]MH_SAM_APDU [16:43:22]CAPDU: 80 13 01 00 [16:43:22]Write to MH i2c: E2 08 00 CC 03 80 13 01 00 00 00 00 00 4C [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:22]Read from MH i2c: E2 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 0E 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 0E 00 CC 03 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 24 [16:43:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:43:22]wFMCommunicate OK [16:43:22]SAM_PROTO_GetShiftState done [16:43:22]FM_GetShiftState done [16:43:22]opened in 1730246605 [16:43:22]opened+sec_in_day 1730333005 [16:43:22]quantity*price = 20003 [16:43:22]sum+1 = 20004 [16:43:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 215 30.10.2024 16:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118155 ФПД: 204235671307291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164322&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118155&fm=204235671307291&tin=02508201610067®Number=0000000000091782&sum=20000 [16:43:23]StoreToDocumentArchive [16:43:23]shift 545 fd 118155 [16:43:23]save to /storage/0545/doc_00118155 [16:43:23]save last doc name /storage/0545/doc_00118155 to /storage/kkm_last_doc_name [16:43:23]save OK [16:43:23]Clear old archive folders... [16:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:23]tlvbuf is 001C80A0 [16:43:23]SAM_PROTO_ClearQueue [16:43:23]wFMCommunicate request_size=4 [16:43:23]MH_SAM_APDU [16:43:23]CAPDU: 80 09 00 00 [16:43:23]Write to MH i2c: E2 08 00 D9 03 80 09 00 00 00 00 00 00 4E [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:23]Read from MH i2c: E2 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [16:43:23]RAPDU: 90 00 [16:43:23]wFMCommunicate OK [16:43:23]SAM_PROTO_ClearQueue done [16:43:23]KKMCreateOFDPacket [16:43:23]OFDProtocolAddRootSTLVToBuf [16:43:23]FM_MakeSignedData [16:43:23]FM_MakeSignedData [16:43:23]SAM_PROTO_SignData [16:43:23]wFMCommunicate request_size=4 [16:43:23]MH_SAM_APDU [16:43:23]CAPDU: 80 0D 01 02 [16:43:23]Write to MH i2c: E2 08 00 DA 03 80 0D 01 02 00 00 00 00 56 [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:23]Read from MH i2c: E2 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [16:43:23]RAPDU: 90 00 [16:43:23]wFMCommunicate OK [16:43:23]wFMCommunicate request_size=255 [16:43:23]MH_SAM_APDU [16:43: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 32 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 D7 00 00 00 F4 03 04 00 2A 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CD 01 00 35 04 06 00 B9 [16:43:23]Write to MH i2c: E2 02 01 DB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D7 00 00 00 F4 03 04 00 2A 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CD 01 00 35 04 06 00 B9 00 00 CB [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:23]Read from MH i2c: E2 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [16:43:23]RAPDU: 90 00 [16:43:23]wFMCommunicate OK [16:43:23]wFMCommunicate request_size=10 [16:43:23]MH_SAM_APDU [16:43:23]CAPDU: 80 0D 02 02 05 C0 52 A3 84 1B [16:43:23]Write to MH i2c: E2 0D 00 DC 03 80 0D 02 02 05 00 C0 52 A3 84 1B 00 00 B7 [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:23]Read from MH i2c: E2 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [16:43:23]RAPDU: 90 00 [16:43:23]wFMCommunicate OK [16:43:23]wFMCommunicate request_size=4 [16:43:23]MH_SAM_APDU [16:43:23]CAPDU: 80 0D 03 02 [16:43:23]Write to MH i2c: E2 08 00 DD 03 80 0D 03 02 00 00 00 00 5B [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:23]Read from MH i2c: E2 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 0B 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 0B 00 DD 03 00 79 1A 77 CA C2 C1 1D 40 90 00 10 [16:43:23]RAPDU: 79 1A 77 CA C2 C1 1D 40 90 00 [16:43:23]wFMCommunicate OK [16:43:23]SAM_PROTO_SignData done [16:43:23]FM_MakeSignedData done [16:43:23]CreateOFDProtocolMessage [16:43:23]wFMCommunicate request_size=4 [16:43:23]MH_SAM_APDU [16:43:23]CAPDU: 80 11 00 00 [16:43:23]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:23]Read from MH i2c: E2 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 17 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B2 [16:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:43:23]wFMCommunicate OK [16:43:23]CreateOFDProtocolMessage done [16:43:23]OFDSenderStorePacket 118155 [16:43:23]StoreOFDPacket docnum=118155 [16:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 60 D5 07 01 03 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D7 00 00 00 F4 03 04 00 2A 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CD 01 00 35 04 06 00 B9 C0 52 A3 84 1B 79 1A 77 CA C2 C1 1D 40 [16:43:23]CheckFolder [16:43:23]dirname=/storage/ofd_packets [16:43:23]CheckFolder done [16:43:23]ProducePacketName [16:43:23]name=ofd_packets/00118155 [16:43:23]NVStorageSaveData ofd_packets/00118155 [16:43:23]File name is /storage/ofd_packets/00118155 [16:43:23]Write 301 bytes [16:43:23]NVStorageSaveData done [16:43:23]OFDSenderStorePacket done [16:43:23]KKMCreateOFDPacket done [16:43:23]NVStorageSaveData kkm_last_timestamp [16:43:23]File name is /storage/kkm_last_timestamp [16:43:23]Write 4 bytes [16:43:23]NVStorageSaveData done [16:43:23]ExternCall_PrintAddStr [16:43:23]wPrintStart [16:43:23]Write to MH i2c: 01 00 00 DF 03 E2 [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: 01 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: 01 07 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 FF 0F F7 [16:43:23]RasterBufferAndPrint [16:43:23]line Счет N : (1)245955 [16:43:23]line ИНН: 02508201610067 [16:43:23]line Контрольно-Кассовый Чек [16:43:23]line ПРОДАЖА [16:43:23]line ТРК (МРК, ГНК) : 11 [16:43:23]line Товар: 2710124130 [16:43:23]line Аи-92-К-2 [16:43:23]line 2.990 * 66.90 [16:43:23]line = 200.03 [16:43:23]line НДС 12% НСП 1% [16:43:23]line > о реализуемом товаре [16:43:23]line ОКРУГЛЕНИЕ: -0.03 [16:43:23]line ИТОГО: 200.00 [16:43:23]line Внесено: 200.00 [16:43:23]line СДАЧА: 0.00 [16:43:23]line НСП 1% : 1.77 [16:43:23]line НДС 12% : 21.24 [16:43:23]line Наличными: 200.00 [16:43:23]line Безнал.: 0.00 [16:43:23]line Место: АЗС № 173 "Партнер Нефть" [16:43:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:43:23]line СНО: Общий режим [16:43:23]line Чек 215 30.10.2024 16:43 [16:43:23]line Смена: 545 ФФД: 1.0 [16:43:23]line ЗНМ: 0300000115 [16:43:23]line РНМ: 0000000000091782 [16:43:23]line Версия ККМ: 001 [16:43:23]line ФМ: 0000000000871767 [16:43:23]line ФД: 118155 [16:43:23]line ФПД: 204235671307291 [16:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164322&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118155&fm=204235671307291&tin=02508201610067®Number=0000000000091782&sum=20000 [16:43:24]written 0, free lines is 4095 [16:43:24]OFD Sender: Processing packet 118155 [packets to send 77, broken 76] [16:43:24]ProducePacketName [16:43:24]name=ofd_packets/00118155 [16:43:24]OFD Sender: To server: pG, [16:43:24]CommunicateWithHost lk.salyk.kg:30040 [16:43:24]ConnectInit lk.salyk.kg [16:43:24]Connected sock=10 [16:43: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 36 37 0F 01 00 00 60 D5 07 01 03 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D7 00 00 00 F4 03 04 00 2A 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CD 01 00 35 04 06 00 B9 C0 52 A3 84 1B 79 1A 77 CA C2 C1 1D 40 [16:43: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 36 37 4F 00 00 00 AA 6D 47 00 2F 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8B CD 01 00 F4 03 04 00 E1 0D 22 67 B6 04 01 00 00 C2 BC FC D3 F6 DB A3 64 [16:43:24]CommunicateWithHost err = 0 [16:43:24]CheckOFDResponse [16:43:24]1017 (14) - 77093643461234 [16:43:24]1041 (16) - 0000000000871767 [16:43:24]1040 (4) - 118155 [16:43:24]1012 (4) - 30.10.2024 10:43 [16:43:24]1206 (1) - 0 [16:43:24]OFD Sender: Remove packet 118155 [16:43:24]ProducePacketName [16:43:24]name=ofd_packets/00118155 [16:43:24]NVStorageDeleteData [16:43:24]Write to MH i2c: 01 00 00 09 04 0D [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: 01 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: 01 07 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 B9 0C D9 [16:43:24]RasterBufferAndPrint [16:43:24]line [16:43:24]line [16:43:24]line [16:43:24]line [16:43:24]line [16:43:24]written 0, free lines is 3265 [16:43:24]MH_Cut [16:43:24]Write to MH i2c: D1 01 00 10 04 01 E6 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: D1 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: D1 01 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: D1 01 00 10 04 00 E5 [16:43:24]Write to MH i2c: 01 00 00 11 04 15 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]OFD Sender: No OFD packet to send [16:43:25]*** Cut start [16:43:25]*** Purtial cut [16:43:25]*** Stage 1: CUTSNS_PIN = 1 [16:43:25]Read from MH i2c: 01 [16:43:25]MH_I2C_Read... [16:43:25]*** Stop cut motor [16:43:25]*** Cut end [16:43:25]Read from MH i2c: 01 07 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [16:43:25]process_action close_receipt done [16:43:25]requested_data is exist [16:43:25]produce_requested_data [16:43:25]requested_item fm.sn is exist - process it [16:43:25]wFMCommunicate request_size=4 [16:43:25]MH_SAM_APDU [16:43:25]CAPDU: 80 11 00 00 [16:43:25]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [16:43:25]Write i2c OK [16:43:25]MH_I2C_Read... [16:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:25]Read from MH i2c: E2 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 17 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E7 [16:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:43:25]wFMCommunicate OK [16:43:25]requested_item fd.num is exist - process it [16:43:25]SAM_PROTO_GetFieldsCounters [16:43:25]wFMCommunicate request_size=4 [16:43:25]MH_SAM_APDU [16:43:25]CAPDU: 80 13 00 00 [16:43:25]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [16:43:25]Write i2c OK [16:43:25]MH_I2C_Read... [16:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:25]Read from MH i2c: E2 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 62 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 62 00 13 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [16:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:25]wFMCommunicate OK [16:43:25]SAM_PROTO_GetFieldsCounters done [16:43:25]requested_item shift.num is exist - process it [16:43:25]requested_item shift.opened is exist - process it [16:43:25]req_shift_opened [16:43:25]FM_GetShiftState [16:43:25]SAM_PROTO_GetShiftState [16:43:25]wFMCommunicate request_size=4 [16:43:25]MH_SAM_APDU [16:43:25]CAPDU: 80 13 01 00 [16:43:25]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [16:43:25]Write i2c OK [16:43:25]MH_I2C_Read... [16:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:25]Read from MH i2c: E2 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 0E 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6D [16:43:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:43:25]wFMCommunicate OK [16:43:25]SAM_PROTO_GetShiftState done [16:43:25]FM_GetShiftState done [16:43:25]req_shift_opened done [16:43:25]requested_item shift.open_date is exist - process it [16:43:25]req_shift_open_date [16:43:25]req_shift_open_date done [16:43:25]produce_requested_data done [16:43:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118155,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:43:25]process_action_free close_receipt [16:43:25]json_value_free [16:43:25]json_value_free done [16:43:25]process_json_proto returns [16:43:25]Send response to host [16:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118155,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:43:25]free response buf [16:43:25]execute_script done [16:43:25]execute_script returns [16:43:25]free content buf [16:43:25]Sock 7.Close socket [16:43:25]Sock 7.Thread stoped [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:08]accept exits with 9 [16:46:08]New connection [16:46:08]New thread 3067276644 created [16:46:08]Thread 3067133284 joined [16:46:08]Waiting for new connection... [16:46:08] Sock 9.Parse request [16:46:08]Sock 9.Check first char [16:46:08]Sock 9.First char is OK [16:46:08]request: POST /json_proto HTTP/1.0 [16:46:08]Method: POST [16:46:08]URL: /json_proto [16:46:08]Method is POST - this is cgi request [16:46:08]url: /json_proto [16:46:08]query_string will be loaded in cgi processing [16:46:08]execute_cgi json_proto POST (null) [16:46:08]execute_cgi path=json_proto method=POST [16:46:08]POST find Content-Length [16:46:08]Host: 172.17.96.67:8080 [16:46:08]Content-Length: 679 [16:46:08]Content-Type: application/json [16:46:08] [16:46:08]POST finish read [16:46:08]Found Content-Length = 679 [16:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:08]execute_script... [16:46: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)245956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:08]POST & json_proto [16:46:08]process_json_proto [16:46:08]json parsed OK: [16:46:08]protocol is kg_v1.0 [16:46:08]action value=close_receipt [16:46:08]process_action close_receipt [16:46:08]cmd_close_receipt [16:46:08]MH_GetDate [16:46:08]Write to MH i2c: F0 00 00 15 04 08 [16:46:08]Write i2c OK [16:46:08]MH_I2C_Read... [16:46:08]Read from MH i2c: F0 [16:46:08]MH_I2C_Read... [16:46:08]Read from MH i2c: F0 09 00 [16:46:08]MH_I2C_Read... [16:46:08]Read from MH i2c: F0 09 00 15 04 00 D0 62 22 67 47 6C 1F 67 05 [16:46:08]GetLastDocTimeStamp 1730306602 [16:46:08]current date 1730306768 [16:46:08]FM_GetShiftState [16:46:08]SAM_PROTO_GetShiftState [16:46:08]wFMCommunicate request_size=4 [16:46:08]MH_SAM_APDU [16:46:08]CAPDU: 80 13 01 00 [16:46:08]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [16:46:08]Write i2c OK [16:46:08]MH_I2C_Read... [16:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:08]Read from MH i2c: E2 [16:46:08]MH_I2C_Read... [16:46:08]Read from MH i2c: E2 0E 00 [16:46:08]MH_I2C_Read... [16:46:08]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6F [16:46:08]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:46:08]wFMCommunicate OK [16:46:08]SAM_PROTO_GetShiftState done [16:46:08]FM_GetShiftState done [16:46:08]opened in 1730246605 [16:46:08]opened+sec_in_day 1730333005 [16:46:08]quantity*price = 100050 [16:46:08]sum+1 = 100052 [16:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 216 30.10.2024 16:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118156 ФПД: 201485718964050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164609&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118156&fm=201485718964050&tin=02508201610067®Number=0000000000091782&sum=100000 [16:46:09]StoreToDocumentArchive [16:46:09]shift 545 fd 118156 [16:46:09]save to /storage/0545/doc_00118156 [16:46:09]save last doc name /storage/0545/doc_00118156 to /storage/kkm_last_doc_name [16:46:09]save OK [16:46:09]Clear old archive folders... [16:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:46:09]tlvbuf is 00229CE0 [16:46:09]SAM_PROTO_ClearQueue [16:46:09]wFMCommunicate request_size=4 [16:46:09]MH_SAM_APDU [16:46:09]CAPDU: 80 09 00 00 [16:46:09]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [16:46:09]Write i2c OK [16:46:09]MH_I2C_Read... [16:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:10]Read from MH i2c: E2 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [16:46:10]RAPDU: 90 00 [16:46:10]wFMCommunicate OK [16:46:10]SAM_PROTO_ClearQueue done [16:46:10]KKMCreateOFDPacket [16:46:10]OFDProtocolAddRootSTLVToBuf [16:46:10]FM_MakeSignedData [16:46:10]FM_MakeSignedData [16:46:10]SAM_PROTO_SignData [16:46:10]wFMCommunicate request_size=4 [16:46:10]MH_SAM_APDU [16:46:10]CAPDU: 80 0D 01 02 [16:46:10]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:10]Read from MH i2c: E2 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [16:46:10]RAPDU: 90 00 [16:46:10]wFMCommunicate OK [16:46:10]wFMCommunicate request_size=255 [16:46:10]MH_SAM_APDU [16:46:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 D1 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CD 01 00 35 04 06 00 B7 40 0C B4 [16:46:10]Write to MH i2c: E2 02 01 25 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 D1 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CD 01 00 35 04 06 00 B7 40 0C B4 00 00 F1 [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]OFD Sender: No OFD packet to send [16:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:10]Read from MH i2c: E2 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [16:46:10]RAPDU: 90 00 [16:46:10]wFMCommunicate OK [16:46:10]wFMCommunicate request_size=7 [16:46:10]MH_SAM_APDU [16:46:10]CAPDU: 80 0D 02 02 02 C7 52 [16:46:10]Write to MH i2c: E2 0A 00 26 04 80 0D 02 02 02 00 C7 52 00 00 C1 [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:10]Read from MH i2c: E2 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [16:46:10]RAPDU: 90 00 [16:46:10]wFMCommunicate OK [16:46:10]wFMCommunicate request_size=4 [16:46:10]MH_SAM_APDU [16:46:10]CAPDU: 80 0D 03 02 [16:46:10]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:10]Read from MH i2c: E2 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 0B 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 0B 00 27 04 00 5C 98 FC F6 92 5E 2B 47 90 00 EF [16:46:10]RAPDU: 5C 98 FC F6 92 5E 2B 47 90 00 [16:46:10]wFMCommunicate OK [16:46:10]SAM_PROTO_SignData done [16:46:10]FM_MakeSignedData done [16:46:10]CreateOFDProtocolMessage [16:46:10]wFMCommunicate request_size=4 [16:46:10]MH_SAM_APDU [16:46:10]CAPDU: 80 11 00 00 [16:46:10]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:10]Read from MH i2c: E2 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 17 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FD [16:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:46:10]wFMCommunicate OK [16:46:10]CreateOFDProtocolMessage done [16:46:10]OFDSenderStorePacket 118156 [16:46:10]StoreOFDPacket docnum=118156 [16:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 70 18 04 01 48 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 D1 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CD 01 00 35 04 06 00 B7 40 0C B4 C7 52 5C 98 FC F6 92 5E 2B 47 [16:46:10]CheckFolder [16:46:10]dirname=/storage/ofd_packets [16:46:10]CheckFolder done [16:46:10]ProducePacketName [16:46:10]name=ofd_packets/00118156 [16:46:10]NVStorageSaveData ofd_packets/00118156 [16:46:10]File name is /storage/ofd_packets/00118156 [16:46:10]Write 298 bytes [16:46:10]NVStorageSaveData done [16:46:10]OFDSenderStorePacket done [16:46:10]KKMCreateOFDPacket done [16:46:10]NVStorageSaveData kkm_last_timestamp [16:46:10]File name is /storage/kkm_last_timestamp [16:46:10]Write 4 bytes [16:46:10]NVStorageSaveData done [16:46:10]ExternCall_PrintAddStr [16:46:10]wPrintStart [16:46:10]Write to MH i2c: 01 00 00 29 04 2D [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: 01 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: 01 07 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [16:46:10]RasterBufferAndPrint [16:46:10]line Счет N : (1)245956 [16:46:10]line ИНН: 02508201610067 [16:46:10]line Контрольно-Кассовый Чек [16:46:10]line ПРОДАЖА [16:46:10]line ТРК (МРК, ГНК) : 23 [16:46:10]line Товар: 2710194210 [16:46:10]line ДТ-К-2 [16:46:10]line 13.130 * 76.20 [16:46:10]line = 1000.51 [16:46:10]line НДС 12% НСП 1% [16:46:10]line > о реализуемом товаре [16:46:10]line ОКРУГЛЕНИЕ: -0.51 [16:46:10]line ИТОГО: 1000.00 [16:46:10]line Внесено: 1000.00 [16:46:10]line СДАЧА: 0.00 [16:46:10]line НСП 1% : 8.85 [16:46:10]line НДС 12% : 106.25 [16:46:10]line Наличными: 1000.00 [16:46:10]line Безнал.: 0.00 [16:46:10]line Место: АЗС № 173 "Партнер Нефть" [16:46:10]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:46:10]line СНО: Общий режим [16:46:10]line Чек 216 30.10.2024 16:46 [16:46:10]line Смена: 545 ФФД: 1.0 [16:46:10]line ЗНМ: 0300000115 [16:46:10]line РНМ: 0000000000091782 [16:46:10]line Версия ККМ: 001 [16:46:10]line ФМ: 0000000000871767 [16:46:10]line ФД: 118156 [16:46:10]line ФПД: 201485718964050 [16:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164609&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118156&fm=201485718964050&tin=02508201610067®Number=0000000000091782&sum=100000 [16:46:10]written 0, free lines is 4095 [16:46:10]OFD Sender: Processing packet 118156 [packets to send 77, broken 76] [16:46:10]ProducePacketName [16:46:10]name=ofd_packets/00118156 [16:46:10]OFD Sender: To server: pG, [16:46:10]CommunicateWithHost lk.salyk.kg:30040 [16:46:10]ConnectInit lk.salyk.kg [16:46:10]Connected sock=10 [16:46: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 36 37 0C 01 00 00 70 18 04 01 48 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 D1 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8C CD 01 00 35 04 06 00 B7 40 0C B4 C7 52 5C 98 FC F6 92 5E 2B 47 [16:46: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 36 37 4F 00 00 00 F2 8D 47 00 4F 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 36 37 10 04 04 00 8C CD 01 00 F4 03 04 00 88 0E 22 67 B6 04 01 00 00 96 70 F3 20 8F EE 06 B1 [16:46:11]CommunicateWithHost err = 0 [16:46:11]CheckOFDResponse [16:46:11]1017 (14) - 77093643461234 [16:46:11]1041 (16) - 0000000000871767 [16:46:11]1040 (4) - 118156 [16:46:11]1012 (4) - 30.10.2024 10:46 [16:46:11]1206 (1) - 0 [16:46:11]OFD Sender: Remove packet 118156 [16:46:11]ProducePacketName [16:46:11]name=ofd_packets/00118156 [16:46:11]NVStorageDeleteData [16:46:11]Write to MH i2c: 01 00 00 53 04 57 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: 01 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: 01 07 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 C1 0C 2B [16:46:11]RasterBufferAndPrint [16:46:11]line [16:46:11]line [16:46:11]line [16:46:11]line [16:46:11]line [16:46:11]written 0, free lines is 3271 [16:46:11]MH_Cut [16:46:11]Write to MH i2c: D1 01 00 5A 04 01 30 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: D1 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: D1 01 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: D1 01 00 5A 04 00 2F [16:46:11]Write to MH i2c: 01 00 00 5B 04 5F [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]OFD Sender: No OFD packet to send [16:46:12]*** Cut start [16:46:12]*** Purtial cut [16:46:12]*** Stage 1: CUTSNS_PIN = 1 [16:46:12]Read from MH i2c: 01 [16:46:12]MH_I2C_Read... [16:46:12]*** Stop cut motor [16:46:12]*** Cut end [16:46:12]Read from MH i2c: 01 07 00 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [16:46:12]process_action close_receipt done [16:46:12]requested_data is exist [16:46:12]produce_requested_data [16:46:12]requested_item fm.sn is exist - process it [16:46:12]wFMCommunicate request_size=4 [16:46:12]MH_SAM_APDU [16:46:12]CAPDU: 80 11 00 00 [16:46:12]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:12]Read from MH i2c: E2 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: E2 17 00 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 31 [16:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:46:12]wFMCommunicate OK [16:46:12]requested_item fd.num is exist - process it [16:46:12]SAM_PROTO_GetFieldsCounters [16:46:12]wFMCommunicate request_size=4 [16:46:12]MH_SAM_APDU [16:46:12]CAPDU: 80 13 00 00 [16:46:12]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:12]Read from MH i2c: E2 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: E2 62 00 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8C CD 01 00 0E 04 04 00 21 02 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 09 [16:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8C CD 01 00 0E 04 04 00 21 02 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 [16:46:12]wFMCommunicate OK [16:46:12]SAM_PROTO_GetFieldsCounters done [16:46:12]requested_item shift.num is exist - process it [16:46:12]requested_item shift.opened is exist - process it [16:46:12]req_shift_opened [16:46:12]FM_GetShiftState [16:46:12]SAM_PROTO_GetShiftState [16:46:12]wFMCommunicate request_size=4 [16:46:12]MH_SAM_APDU [16:46:12]CAPDU: 80 13 01 00 [16:46:12]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:12]Read from MH i2c: E2 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: E2 0E 00 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B7 [16:46:12]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:46:12]wFMCommunicate OK [16:46:12]SAM_PROTO_GetShiftState done [16:46:12]FM_GetShiftState done [16:46:12]req_shift_opened done [16:46:12]requested_item shift.open_date is exist - process it [16:46:12]req_shift_open_date [16:46:12]req_shift_open_date done [16:46:12]produce_requested_data done [16:46:12]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118156,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:46:12]process_action_free close_receipt [16:46:12]json_value_free [16:46:12]json_value_free done [16:46:12]process_json_proto returns [16:46:12]Send response to host [16:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118156,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:46:12]free response buf [16:46:12]execute_script done [16:46:12]execute_script returns [16:46:12]free content buf [16:46:12]Sock 9.Close socket [16:46:12]Sock 9.Thread stoped [16:46:12]accept exits with 7 [16:46:12]New connection [16:46:12]New thread 3067133284 created [16:46:12]Thread 3067276644 joined [16:46:12]Waiting for new connection... [16:46:12] Sock 7.Parse request [16:46:12]Sock 7.Check first char [16:46:12]Sock 7.First char is OK [16:46:12]request: POST /json_proto HTTP/1.0 [16:46:12]Method: POST [16:46:12]URL: /json_proto [16:46:12]Method is POST - this is cgi request [16:46:12]url: /json_proto [16:46:12]query_string will be loaded in cgi processing [16:46:12]execute_cgi json_proto POST (null) [16:46:12]execute_cgi path=json_proto method=POST [16:46:12]POST find Content-Length [16:46:12]Host: 172.17.96.67:8080 [16:46:12]Content-Length: 677 [16:46:12]Content-Type: application/json [16:46:12] [16:46:12]POST finish read [16:46:12]Found Content-Length = 677 [16:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:46:12]execute_script... [16:46: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)245957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:46:12]POST & json_proto [16:46:12]process_json_proto [16:46:12]json parsed OK: [16:46:12]protocol is kg_v1.0 [16:46:12]action value=close_receipt [16:46:12]process_action close_receipt [16:46:12]cmd_close_receipt [16:46:12]MH_GetDate [16:46:12]Write to MH i2c: F0 00 00 5F 04 52 [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: F0 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: F0 09 00 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: F0 09 00 5F 04 00 D5 62 22 67 47 6C 1F 67 54 [16:46:12]GetLastDocTimeStamp 1730306769 [16:46:12]current date 1730306773 [16:46:12]FM_GetShiftState [16:46:12]SAM_PROTO_GetShiftState [16:46:12]wFMCommunicate request_size=4 [16:46:12]MH_SAM_APDU [16:46:12]CAPDU: 80 13 01 00 [16:46:12]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:13]Read from MH i2c: E2 [16:46:13]MH_I2C_Read... [16:46:13]Read from MH i2c: E2 0E 00 [16:46:13]MH_I2C_Read... [16:46:13]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B9 [16:46:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:46:13]wFMCommunicate OK [16:46:13]SAM_PROTO_GetShiftState done [16:46:13]FM_GetShiftState done [16:46:13]opened in 1730246605 [16:46:13]opened+sec_in_day 1730333005 [16:46:13]quantity*price = 20003 [16:46:13]sum+1 = 20004 [16:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 217 30.10.2024 16:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118157 ФПД: 124295078852305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164613&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118157&fm=124295078852305&tin=02508201610067®Number=0000000000091782&sum=20000 [16:46:14]StoreToDocumentArchive [16:46:14]shift 545 fd 118157 [16:46:14]save to /storage/0545/doc_00118157 [16:46:14]save last doc name /storage/0545/doc_00118157 to /storage/kkm_last_doc_name [16:46:14]save OK [16:46:14]Clear old archive folders... [16:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:14]tlvbuf is 001D8930 [16:46:14]SAM_PROTO_ClearQueue [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 09 00 00 [16:46:14]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]SAM_PROTO_ClearQueue done [16:46:14]KKMCreateOFDPacket [16:46:14]OFDProtocolAddRootSTLVToBuf [16:46:14]FM_MakeSignedData [16:46:14]FM_MakeSignedData [16:46:14]SAM_PROTO_SignData [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 0D 01 02 [16:46:14]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]wFMCommunicate request_size=255 [16:46:14]MH_SAM_APDU [16:46: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 32 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 D9 00 00 00 F4 03 04 00 D5 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CD 01 00 35 04 06 00 71 [16:46:14]Write to MH i2c: E2 02 01 6F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D9 00 00 00 F4 03 04 00 D5 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CD 01 00 35 04 06 00 71 00 00 C7 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]wFMCommunicate request_size=10 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 0D 02 02 05 0B B4 05 B6 D1 [16:46:14]Write to MH i2c: E2 0D 00 70 04 80 0D 02 02 05 00 0B B4 05 B6 D1 00 00 43 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [16:46:14]RAPDU: 90 00 [16:46:14]wFMCommunicate OK [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 0D 03 02 [16:46:14]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0B 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 0B 00 71 04 00 90 69 6E A1 77 37 9C 25 90 00 68 [16:46:15]RAPDU: 90 69 6E A1 77 37 9C 25 90 00 [16:46:15]wFMCommunicate OK [16:46:15]SAM_PROTO_SignData done [16:46:15]FM_MakeSignedData done [16:46:15]CreateOFDProtocolMessage [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 11 00 00 [16:46:15]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 17 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 47 [16:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:46:15]wFMCommunicate OK [16:46:15]CreateOFDProtocolMessage done [16:46:15]OFDSenderStorePacket 118157 [16:46:15]StoreOFDPacket docnum=118157 [16:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 01 1E 07 01 4D 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D9 00 00 00 F4 03 04 00 D5 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CD 01 00 35 04 06 00 71 0B B4 05 B6 D1 90 69 6E A1 77 37 9C 25 [16:46:15]CheckFolder [16:46:15]dirname=/storage/ofd_packets [16:46:15]CheckFolder done [16:46:15]ProducePacketName [16:46:15]name=ofd_packets/00118157 [16:46:15]NVStorageSaveData ofd_packets/00118157 [16:46:15]File name is /storage/ofd_packets/00118157 [16:46:15]Write 301 bytes [16:46:15]NVStorageSaveData done [16:46:15]OFDSenderStorePacket done [16:46:15]KKMCreateOFDPacket done [16:46:15]NVStorageSaveData kkm_last_timestamp [16:46:15]File name is /storage/kkm_last_timestamp [16:46:15]Write 4 bytes [16:46:15]NVStorageSaveData done [16:46:15]ExternCall_PrintAddStr [16:46:15]wPrintStart [16:46:15]Write to MH i2c: 01 00 00 73 04 77 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 [16:46:15]MH_I2C_Read... [16:46:15]OFD Sender: Processing packet 118157 [packets to send 77, broken 76] [16:46:15]ProducePacketName [16:46:15]name=ofd_packets/00118157 [16:46:15]OFD Sender: To server: pG, [16:46:15]CommunicateWithHost lk.salyk.kg:30040 [16:46:15]ConnectInit lk.salyk.kg [16:46:15]Read from MH i2c: 01 07 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [16:46:15]RasterBufferAndPrint [16:46:15]line Счет N : (1)245957 [16:46:15]line ИНН: 02508201610067 [16:46:15]line Контрольно-Кассовый Чек [16:46:15]line ПРОДАЖА [16:46:15]line ТРК (МРК, ГНК) : 11 [16:46:15]line Товар: 2710124130 [16:46:15]line Аи-92-К-2 [16:46:15]line 2.990 * 66.90 [16:46:15]line = 200.03 [16:46:15]line НДС 12% НСП 1% [16:46:15]line > о реализуемом товаре [16:46:15]line ОКРУГЛЕНИЕ: -0.03 [16:46:15]line ИТОГО: 200.00 [16:46:15]line Внесено: 200.00 [16:46:15]line СДАЧА: 0.00 [16:46:15]line НСП 1% : 1.77 [16:46:15]line НДС 12% : 21.24 [16:46:15]line Наличными: 200.00 [16:46:15]line Безнал.: 0.00 [16:46:15]line Место: АЗС № 173 "Партнер Нефть" [16:46:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:46:15]line СНО: Общий режим [16:46:15]line Чек 217 30.10.2024 16:46 [16:46:15]line Смена: 545 ФФД: 1.0 [16:46:15]line ЗНМ: 0300000115 [16:46:15]line РНМ: 0000000000091782 [16:46:15]line Версия ККМ: 001 [16:46:15]line ФМ: 0000000000871767 [16:46:15]line ФД: 118157 [16:46:15]line ФПД: 124295078852305 [16:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164613&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118157&fm=124295078852305&tin=02508201610067®Number=0000000000091782&sum=20000 [16:46:15]written 0, free lines is 4095 [16:46:15]Connected sock=11 [16:46: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 36 37 0F 01 00 00 01 1E 07 01 4D 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D9 00 00 00 F4 03 04 00 D5 62 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8D CD 01 00 35 04 06 00 71 0B B4 05 B6 D1 90 69 6E A1 77 37 9C 25 [16:46: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 36 37 4F 00 00 00 16 DD 47 00 C3 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 36 37 10 04 04 00 8D CD 01 00 F4 03 04 00 8C 0E 22 67 B6 04 01 00 00 06 20 C2 33 35 DD 12 FB [16:46:15]CommunicateWithHost err = 0 [16:46:15]CheckOFDResponse [16:46:15]1017 (14) - 77093643461234 [16:46:15]1041 (16) - 0000000000871767 [16:46:15]1040 (4) - 118157 [16:46:15]1012 (4) - 30.10.2024 10:46 [16:46:15]1206 (1) - 0 [16:46:15]OFD Sender: Remove packet 118157 [16:46:15]ProducePacketName [16:46:15]name=ofd_packets/00118157 [16:46:15]NVStorageDeleteData [16:46:15]Write to MH i2c: 01 00 00 9D 04 A1 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 07 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 C2 0C 76 [16:46:15]RasterBufferAndPrint [16:46:15]line [16:46:15]line [16:46:15]line [16:46:15]line [16:46:15]line [16:46:15]written 0, free lines is 3275 [16:46:15]MH_Cut [16:46:15]Write to MH i2c: D1 01 00 A4 04 01 7A [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: D1 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: D1 01 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: D1 01 00 A4 04 00 79 [16:46:15]Write to MH i2c: 01 00 00 A5 04 A9 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:16]OFD Sender: No OFD packet to send [16:46:16]*** Cut start [16:46:16]*** Purtial cut [16:46:16]*** Stage 1: CUTSNS_PIN = 1 [16:46:16]Read from MH i2c: 01 [16:46:16]MH_I2C_Read... [16:46:16]*** Stop cut motor [16:46:16]*** Cut end [16:46:16]Read from MH i2c: 01 07 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 FF 0F BE [16:46:16]process_action close_receipt done [16:46:16]requested_data is exist [16:46:16]produce_requested_data [16:46:16]requested_item fm.sn is exist - process it [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 11 00 00 [16:46:16]Write to MH i2c: E2 08 00 A6 04 80 11 00 00 00 00 00 00 24 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 17 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 17 00 A6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7B [16:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:46:17]wFMCommunicate OK [16:46:17]requested_item fd.num is exist - process it [16:46:17]SAM_PROTO_GetFieldsCounters [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 13 00 00 [16:46:17]Write to MH i2c: E2 08 00 A7 04 80 13 00 00 00 00 00 00 27 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 62 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 62 00 A7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8D CD 01 00 0E 04 04 00 21 02 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 57 [16:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8D CD 01 00 0E 04 04 00 21 02 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 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_GetFieldsCounters done [16:46:17]requested_item shift.num is exist - process it [16:46:17]requested_item shift.opened is exist - process it [16:46:17]req_shift_opened [16:46:17]FM_GetShiftState [16:46:17]SAM_PROTO_GetShiftState [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 13 01 00 [16:46:17]Write to MH i2c: E2 08 00 A8 04 80 13 01 00 00 00 00 00 29 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0E 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0E 00 A8 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 01 [16:46:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_GetShiftState done [16:46:17]FM_GetShiftState done [16:46:17]req_shift_opened done [16:46:17]requested_item shift.open_date is exist - process it [16:46:17]req_shift_open_date [16:46:17]req_shift_open_date done [16:46:17]produce_requested_data done [16:46:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118157,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:46:17]process_action_free close_receipt [16:46:17]json_value_free [16:46:17]json_value_free done [16:46:17]process_json_proto returns [16:46:17]Send response to host [16:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118157,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:46:17]free response buf [16:46:17]execute_script done [16:46:17]execute_script returns [16:46:17]free content buf [16:46:17]Sock 7.Close socket [16:46:17]Sock 7.Thread stoped [16:46:18]int [16:46:18]Write to MH i2c: 01 00 00 A9 04 AD [16:46:18]*** FLAG_PRN_PAP1 set [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 A9 04 00 01 00 00 00 FF 0F C3 [16:46:18]state=0 [16:46:18]No paper [16:46:18]int [16:46:18]Write to MH i2c: 01 00 00 AA 04 AE [16:46:18]*** FLAG_PRN_PAP2 set [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 AA 04 00 03 00 00 00 FF 0F C6 [16:46:18]state=0 [16:46:18]No paper [16:46:18]Cover opened [16:46:20]int [16:46:20]Write to MH i2c: 01 00 00 AB 04 AF [16:46:20]*** FLAG_PRN_PAP2 reset [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 AB 04 00 01 00 00 00 FF 0F C5 [16:46:20]state=3 [16:46:20]No paper [16:46:20]Cover closed [16:46:20]int [16:46:20]Write to MH i2c: 01 00 00 AC 04 B0 [16:46:20]*** FLAG_PRN_PAP2 set [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 AC 04 00 03 00 00 00 FF 0F C8 [16:46:20]state=0 [16:46:20]No paper [16:46:20]Cover opened [16:46:20]int [16:46:20]Write to MH i2c: 01 00 00 AD 04 B1 [16:46:20]*** FLAG_PRN_PAP2 reset [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 AD 04 00 01 00 00 00 FF 0F C7 [16:46:20]state=3 [16:46:20]No paper [16:46:20]Cover closed [16:46:21]int [16:46:21]Write to MH i2c: 01 00 00 AE 04 B2 [16:46:21]*** FLAG_PRN_PAP2 set [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 07 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 07 00 AE 04 00 03 00 00 00 FF 0F CA [16:46:21]state=0 [16:46:21]No paper [16:46:21]Cover opened [16:46:21]OFD Sender: No OFD packet to send [16:46:24]int [16:46:24]Write to MH i2c: 01 00 00 AF 04 B3 [16:46:24]*** FLAG_PRN_PAP1 reset [16:46:24]*** FLAG_PRN_PAP2 reset [16:46:24]Write i2c OK [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: 01 [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: 01 07 00 [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [16:46:24]state=3 [16:46:24]Cover closed [16:46:26]OFD Sender: No OFD packet to send [16:46:28]int [16:46:28]Write to MH i2c: 01 00 00 B0 04 B4 [16:46:28]*** FLAG_PRN_PAP1 set [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: 01 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: 01 07 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: 01 07 00 B0 04 00 01 00 00 00 FF 0F CA [16:46:28]state=0 [16:46:28]No paper [16:46:28]int [16:46:28]Write to MH i2c: 01 00 00 B1 04 B5 [16:46:28]*** FLAG_PRN_PAP2 set [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: 01 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: 01 07 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: 01 07 00 B1 04 00 03 00 00 00 FF 0F CD [16:46:28]state=0 [16:46:28]No paper [16:46:28]Cover opened [16:46:31]OFD Sender: No OFD packet to send [16:46:33]Write to MH i2c: 01 00 00 B2 04 B6 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 B2 04 00 03 00 00 00 FF 0F CE [16:46:33]state=3 [16:46:33]No paper [16:46:33]Cover opened [16:46:36]OFD Sender: No OFD packet to send [16:46:38]Write to MH i2c: 01 00 00 B3 04 B7 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 B3 04 00 03 00 00 00 FF 0F CF [16:46:38]state=3 [16:46:38]No paper [16:46:38]Cover opened [16:46:41]OFD Sender: No OFD packet to send [16:46:43]Write to MH i2c: 01 00 00 B4 04 B8 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 07 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 07 00 B4 04 00 03 00 00 00 FF 0F D0 [16:46:43]state=3 [16:46:43]No paper [16:46:43]Cover opened [16:46:46]OFD Sender: No OFD packet to send [16:46:48]Write to MH i2c: 01 00 00 B5 04 B9 [16:46:48]Write i2c OK [16:46:48]MH_I2C_Read... [16:46:48]Read from MH i2c: 01 [16:46:48]MH_I2C_Read... [16:46:48]Read from MH i2c: 01 07 00 [16:46:48]MH_I2C_Read... [16:46:48]Read from MH i2c: 01 07 00 B5 04 00 03 00 00 00 FF 0F D1 [16:46:48]state=3 [16:46:48]No paper [16:46:48]Cover opened [16:46:51]OFD Sender: No OFD packet to send [16:46:53]int [16:46:53]Write to MH i2c: 01 00 00 B6 04 BA [16:46:53]*** FLAG_PRN_PAP1 reset [16:46:53]*** FLAG_PRN_PAP2 reset [16:46:53]Write i2c OK [16:46:53]MH_I2C_Read... [16:46:53]Read from MH i2c: 01 [16:46:53]MH_I2C_Read... [16:46:53]Read from MH i2c: 01 07 00 [16:46:53]MH_I2C_Read... [16:46:53]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [16:46:53]state=3 [16:46:53]Cover closed [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:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52: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: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:28]recv_with_timeout no data received [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: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:42]accept exits with 9 [16:58:42]New connection [16:58:42]New thread 3067276644 created [16:58:42]Thread 3067133284 joined [16:58:42]Waiting for new connection... [16:58:42] Sock 9.Parse request [16:58:42]Sock 9.Check first char [16:58:42]Sock 9.First char is OK [16:58:42]request: POST /json_proto HTTP/1.0 [16:58:42]Method: POST [16:58:42]URL: /json_proto [16:58:42]Method is POST - this is cgi request [16:58:42]url: /json_proto [16:58:42]query_string will be loaded in cgi processing [16:58:42]execute_cgi json_proto POST (null) [16:58:42]execute_cgi path=json_proto method=POST [16:58:42]POST find Content-Length [16:58:42]Host: 172.17.96.67:8080 [16:58:42]Content-Length: 677 [16:58:42]Content-Type: application/json [16:58:42] [16:58:42]POST finish read [16:58:42]Found Content-Length = 677 [16:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:58:42]execute_script... [16:58: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)245958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:58:42]POST & json_proto [16:58:42]process_json_proto [16:58:42]json parsed OK: [16:58:42]protocol is kg_v1.0 [16:58:42]action value=close_receipt [16:58:42]process_action close_receipt [16:58:42]cmd_close_receipt [16:58:42]MH_GetDate [16:58:42]Write to MH i2c: F0 00 00 B7 04 AA [16:58:42]Write i2c OK [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: F0 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: F0 09 00 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: F0 09 00 B7 04 00 C2 65 22 67 47 6C 1F 67 9C [16:58:42]GetLastDocTimeStamp 1730306773 [16:58:42]current date 1730307522 [16:58:42]FM_GetShiftState [16:58:42]SAM_PROTO_GetShiftState [16:58:42]wFMCommunicate request_size=4 [16:58:42]MH_SAM_APDU [16:58:42]CAPDU: 80 13 01 00 [16:58:42]Write to MH i2c: E2 08 00 B8 04 80 13 01 00 00 00 00 00 39 [16:58:42]Write i2c OK [16:58:42]MH_I2C_Read... [16:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:42]Read from MH i2c: E2 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: E2 0E 00 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: E2 0E 00 B8 04 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 11 [16:58:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:58:42]wFMCommunicate OK [16:58:42]SAM_PROTO_GetShiftState done [16:58:42]FM_GetShiftState done [16:58:42]opened in 1730246605 [16:58:42]opened+sec_in_day 1730333005 [16:58:42]quantity*price = 50041 [16:58:42]sum+1 = 50042 [16:58:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 218 30.10.2024 16:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118158 ФПД: 85747967939578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165842&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118158&fm=85747967939578&tin=02508201610067®Number=0000000000091782&sum=50000 [16:58:43]StoreToDocumentArchive [16:58:43]shift 545 fd 118158 [16:58:43]save to /storage/0545/doc_00118158 [16:58:43]save last doc name /storage/0545/doc_00118158 to /storage/kkm_last_doc_name [16:58:43]save OK [16:58:43]Clear old archive folders... [16:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:43]tlvbuf is 00232130 [16:58:43]SAM_PROTO_ClearQueue [16:58:43]wFMCommunicate request_size=4 [16:58:43]MH_SAM_APDU [16:58:43]CAPDU: 80 09 00 00 [16:58:43]Write to MH i2c: E2 08 00 C5 04 80 09 00 00 00 00 00 00 3B [16:58:43]Write i2c OK [16:58:43]MH_I2C_Read... [16:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:43]Read from MH i2c: E2 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 03 00 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [16:58:43]RAPDU: 90 00 [16:58:43]wFMCommunicate OK [16:58:43]SAM_PROTO_ClearQueue done [16:58:43]KKMCreateOFDPacket [16:58:43]OFDProtocolAddRootSTLVToBuf [16:58:43]FM_MakeSignedData [16:58:43]FM_MakeSignedData [16:58:43]SAM_PROTO_SignData [16:58:43]wFMCommunicate request_size=4 [16:58:43]MH_SAM_APDU [16:58:43]CAPDU: 80 0D 01 02 [16:58:43]Write to MH i2c: E2 08 00 C6 04 80 0D 01 02 00 00 00 00 43 [16:58:43]Write i2c OK [16:58:43]MH_I2C_Read... [16:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:43]Read from MH i2c: E2 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 03 00 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [16:58:43]RAPDU: 90 00 [16:58:43]wFMCommunicate OK [16:58:43]wFMCommunicate request_size=255 [16:58:43]MH_SAM_APDU [16:58:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C2 65 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CD 01 00 35 04 06 00 4D [16:58:43]Write to MH i2c: E2 02 01 C7 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C2 65 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CD 01 00 35 04 06 00 4D 00 00 2B [16:58:43]Write i2c OK [16:58:43]MH_I2C_Read... [16:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:44]Read from MH i2c: E2 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 03 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [16:58:44]RAPDU: 90 00 [16:58:44]wFMCommunicate OK [16:58:44]wFMCommunicate request_size=10 [16:58:44]MH_SAM_APDU [16:58:44]CAPDU: 80 0D 02 02 05 FC C1 2B 53 FA [16:58:44]Write to MH i2c: E2 0D 00 C8 04 80 0D 02 02 05 00 FC C1 2B 53 FA 00 00 85 [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:44]Read from MH i2c: E2 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 03 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [16:58:44]RAPDU: 90 00 [16:58:44]wFMCommunicate OK [16:58:44]wFMCommunicate request_size=4 [16:58:44]MH_SAM_APDU [16:58:44]CAPDU: 80 0D 03 02 [16:58:44]Write to MH i2c: E2 08 00 C9 04 80 0D 03 02 00 00 00 00 48 [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:44]Read from MH i2c: E2 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 0B 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 0B 00 C9 04 00 3A CE D2 5D C1 FF 25 1F 90 00 84 [16:58:44]RAPDU: 3A CE D2 5D C1 FF 25 1F 90 00 [16:58:44]wFMCommunicate OK [16:58:44]SAM_PROTO_SignData done [16:58:44]FM_MakeSignedData done [16:58:44]CreateOFDProtocolMessage [16:58:44]wFMCommunicate request_size=4 [16:58:44]MH_SAM_APDU [16:58:44]CAPDU: 80 11 00 00 [16:58:44]Write to MH i2c: E2 08 00 CA 04 80 11 00 00 00 00 00 00 48 [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:44]Read from MH i2c: E2 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 17 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 17 00 CA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9F [16:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:58:44]wFMCommunicate OK [16:58:44]CreateOFDProtocolMessage done [16:58:44]OFDSenderStorePacket 118158 [16:58:44]StoreOFDPacket docnum=118158 [16:58:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 71 4A 07 01 C9 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C2 65 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CD 01 00 35 04 06 00 4D FC C1 2B 53 FA 3A CE D2 5D C1 FF 25 1F [16:58:44]CheckFolder [16:58:44]dirname=/storage/ofd_packets [16:58:44]CheckFolder done [16:58:44]ProducePacketName [16:58:44]name=ofd_packets/00118158 [16:58:44]NVStorageSaveData ofd_packets/00118158 [16:58:44]File name is /storage/ofd_packets/00118158 [16:58:44]Write 301 bytes [16:58:44]NVStorageSaveData done [16:58:44]OFDSenderStorePacket done [16:58:44]KKMCreateOFDPacket done [16:58:44]NVStorageSaveData kkm_last_timestamp [16:58:44]File name is /storage/kkm_last_timestamp [16:58:44]Write 4 bytes [16:58:44]NVStorageSaveData done [16:58:44]ExternCall_PrintAddStr [16:58:44]wPrintStart [16:58:44]Write to MH i2c: 01 00 00 CB 04 CF [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: 01 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: 01 07 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: 01 07 00 CB 04 00 00 00 00 00 FF 0F E4 [16:58:44]RasterBufferAndPrint [16:58:44]line Счет N : (1)245958 [16:58:44]line ИНН: 02508201610067 [16:58:44]line Контрольно-Кассовый Чек [16:58:44]line ПРОДАЖА [16:58:44]line ТРК (МРК, ГНК) : 11 [16:58:44]line Товар: 2710124130 [16:58:44]line Аи-92-К-2 [16:58:44]line 7.480 * 66.90 [16:58:44]line = 500.41 [16:58:44]line НДС 12% НСП 1% [16:58:44]line > о реализуемом товаре [16:58:44]line ОКРУГЛЕНИЕ: -0.41 [16:58:44]line ИТОГО: 500.00 [16:58:44]line Внесено: 500.00 [16:58:44]line СДАЧА: 0.00 [16:58:44]line НСП 1% : 4.43 [16:58:44]line НДС 12% : 53.14 [16:58:44]line Наличными: 500.00 [16:58:44]line Безнал.: 0.00 [16:58:44]line Место: АЗС № 173 "Партнер Нефть" [16:58:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [16:58:44]line СНО: Общий режим [16:58:44]line Чек 218 30.10.2024 16:58 [16:58:44]line Смена: 545 ФФД: 1.0 [16:58:44]line ЗНМ: 0300000115 [16:58:44]line РНМ: 0000000000091782 [16:58:44]line Версия ККМ: 001 [16:58:44]line ФМ: 0000000000871767 [16:58:44]line ФД: 118158 [16:58:44]line ФПД: 85747967939578 [16:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165842&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118158&fm=85747967939578&tin=02508201610067®Number=0000000000091782&sum=50000 [16:58:44]written 0, free lines is 4095 [16:58:44]OFD Sender: Processing packet 118158 [packets to send 77, broken 76] [16:58:44]ProducePacketName [16:58:44]name=ofd_packets/00118158 [16:58:44]OFD Sender: To server: pG, [16:58:44]CommunicateWithHost lk.salyk.kg:30040 [16:58:44]ConnectInit lk.salyk.kg [16:58:44]Connected sock=10 [16:58: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 36 37 0F 01 00 00 71 4A 07 01 C9 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C2 65 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8E CD 01 00 35 04 06 00 4D FC C1 2B 53 FA 3A CE D2 5D C1 FF 25 1F [16:58:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 B4 68 47 00 F7 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 36 37 10 04 04 00 8E CD 01 00 F4 03 04 00 79 11 22 67 B6 04 01 00 00 E6 34 8E 0A 9B 21 E6 DB [16:58:44]CommunicateWithHost err = 0 [16:58:44]CheckOFDResponse [16:58:44]1017 (14) - 77093643461234 [16:58:44]1041 (16) - 0000000000871767 [16:58:44]1040 (4) - 118158 [16:58:44]1012 (4) - 30.10.2024 10:59 [16:58:44]1206 (1) - 0 [16:58:44]OFD Sender: Remove packet 118158 [16:58:44]ProducePacketName [16:58:44]name=ofd_packets/00118158 [16:58:44]NVStorageDeleteData [16:58:44]Write to MH i2c: 01 00 00 F5 04 F9 [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: 01 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: 01 07 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: 01 07 00 F5 04 00 00 00 00 00 C7 0C D3 [16:58:44]RasterBufferAndPrint [16:58:44]line [16:58:44]line [16:58:44]line [16:58:44]line [16:58:44]line [16:58:44]written 0, free lines is 3276 [16:58:44]MH_Cut [16:58:44]Write to MH i2c: D1 01 00 FC 04 01 D2 [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: D1 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: D1 01 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: D1 01 00 FC 04 00 D1 [16:58:44]Write to MH i2c: 01 00 00 FD 04 01 [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:45]OFD Sender: No OFD packet to send [16:58:45]*** Cut start [16:58:45]*** Purtial cut [16:58:45]*** Stage 1: CUTSNS_PIN = 1 [16:58:45]Read from MH i2c: 01 [16:58:45]MH_I2C_Read... [16:58:45]*** Stop cut motor [16:58:45]*** Cut end [16:58:45]Read from MH i2c: 01 07 00 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 FF 0F 16 [16:58:45]process_action close_receipt done [16:58:45]requested_data is exist [16:58:45]produce_requested_data [16:58:45]requested_item fm.sn is exist - process it [16:58:45]wFMCommunicate request_size=4 [16:58:45]MH_SAM_APDU [16:58:45]CAPDU: 80 11 00 00 [16:58:45]Write to MH i2c: E2 08 00 FE 04 80 11 00 00 00 00 00 00 7C [16:58:45]Write i2c OK [16:58:45]MH_I2C_Read... [16:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:45]Read from MH i2c: E2 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: E2 17 00 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: E2 17 00 FE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D3 [16:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [16:58:45]wFMCommunicate OK [16:58:45]requested_item fd.num is exist - process it [16:58:45]SAM_PROTO_GetFieldsCounters [16:58:45]wFMCommunicate request_size=4 [16:58:45]MH_SAM_APDU [16:58:45]CAPDU: 80 13 00 00 [16:58:45]Write to MH i2c: E2 08 00 FF 04 80 13 00 00 00 00 00 00 7F [16:58:45]Write i2c OK [16:58:45]MH_I2C_Read... [16:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:46]Read from MH i2c: E2 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 62 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 62 00 FF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8E CD 01 00 0E 04 04 00 21 02 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 B3 [16:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8E CD 01 00 0E 04 04 00 21 02 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 [16:58:46]wFMCommunicate OK [16:58:46]SAM_PROTO_GetFieldsCounters done [16:58:46]requested_item shift.num is exist - process it [16:58:46]requested_item shift.opened is exist - process it [16:58:46]req_shift_opened [16:58:46]FM_GetShiftState [16:58:46]SAM_PROTO_GetShiftState [16:58:46]wFMCommunicate request_size=4 [16:58:46]MH_SAM_APDU [16:58:46]CAPDU: 80 13 01 00 [16:58:46]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [16:58:46]Write i2c OK [16:58:46]MH_I2C_Read... [16:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:46]Read from MH i2c: E2 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 0E 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5A [16:58:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [16:58:46]wFMCommunicate OK [16:58:46]SAM_PROTO_GetShiftState done [16:58:46]FM_GetShiftState done [16:58:46]req_shift_opened done [16:58:46]requested_item shift.open_date is exist - process it [16:58:46]req_shift_open_date [16:58:46]req_shift_open_date done [16:58:46]produce_requested_data done [16:58:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118158,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [16:58:46]process_action_free close_receipt [16:58:46]json_value_free [16:58:46]json_value_free done [16:58:46]process_json_proto returns [16:58:46]Send response to host [16:58:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118158,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [16:58:46]free response buf [16:58:46]execute_script done [16:58:46]execute_script returns [16:58:46]free content buf [16:58:46]Sock 9.Close socket [16:58:46]Sock 9.Thread stoped [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:04]accept exits with 7 [17:00:04]New connection [17:00:04]New thread 3067133284 created [17:00:04]Thread 3067276644 joined [17:00:04]Waiting for new connection... [17:00:04] Sock 7.Parse request [17:00:04]Sock 7.Check first char [17:00:04]Sock 7.First char is OK [17:00:04]request: POST /json_proto HTTP/1.0 [17:00:04]Method: POST [17:00:04]URL: /json_proto [17:00:04]Method is POST - this is cgi request [17:00:04]url: /json_proto [17:00:04]query_string will be loaded in cgi processing [17:00:04]execute_cgi json_proto POST (null) [17:00:04]execute_cgi path=json_proto method=POST [17:00:04]POST find Content-Length [17:00:04]Host: 172.17.96.67:8080 [17:00:04]Content-Length: 679 [17:00:04]Content-Type: application/json [17:00:04] [17:00:04]POST finish read [17:00:04]Found Content-Length = 679 [17:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [17:00:04]execute_script... [17:00:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [17:00:04]POST & json_proto [17:00:04]process_json_proto [17:00:04]json parsed OK: [17:00:04]protocol is kg_v1.0 [17:00:04]action value=close_receipt [17:00:04]process_action close_receipt [17:00:04]cmd_close_receipt [17:00:04]MH_GetDate [17:00:04]Write to MH i2c: F0 00 00 01 05 F5 [17:00:04]Write i2c OK [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: F0 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: F0 09 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: F0 09 00 01 05 00 14 66 22 67 47 6C 1F 67 3A [17:00:04]GetLastDocTimeStamp 1730307522 [17:00:04]current date 1730307604 [17:00:04]FM_GetShiftState [17:00:04]SAM_PROTO_GetShiftState [17:00:04]wFMCommunicate request_size=4 [17:00:04]MH_SAM_APDU [17:00:04]CAPDU: 80 13 01 00 [17:00:04]Write to MH i2c: E2 08 00 02 05 80 13 01 00 00 00 00 00 84 [17:00:04]Write i2c OK [17:00:04]MH_I2C_Read... [17:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:04]Read from MH i2c: E2 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 0E 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 0E 00 02 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5C [17:00:04]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:00:04]wFMCommunicate OK [17:00:04]SAM_PROTO_GetShiftState done [17:00:04]FM_GetShiftState done [17:00:04]opened in 1730246605 [17:00:04]opened+sec_in_day 1730333005 [17:00:04]quantity*price = 150037 [17:00:04]sum+1 = 150039 [17:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 219 30.10.2024 17:00 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118159 ФПД: 249028723090604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170005&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118159&fm=249028723090604&tin=02508201610067®Number=0000000000091782&sum=150000 [17:00:05]StoreToDocumentArchive [17:00:05]shift 545 fd 118159 [17:00:05]save to /storage/0545/doc_00118159 [17:00:05]save last doc name /storage/0545/doc_00118159 to /storage/kkm_last_doc_name [17:00:05]save OK [17:00:05]Clear old archive folders... [17:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:00:05]tlvbuf is 002105D0 [17:00:05]SAM_PROTO_ClearQueue [17:00:05]wFMCommunicate request_size=4 [17:00:05]MH_SAM_APDU [17:00:05]CAPDU: 80 09 00 00 [17:00:05]Write to MH i2c: E2 08 00 0F 05 80 09 00 00 00 00 00 00 86 [17:00:05]Write i2c OK [17:00:05]MH_I2C_Read... [17:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:05]Read from MH i2c: E2 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 03 00 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [17:00:05]RAPDU: 90 00 [17:00:05]wFMCommunicate OK [17:00:05]SAM_PROTO_ClearQueue done [17:00:05]KKMCreateOFDPacket [17:00:05]OFDProtocolAddRootSTLVToBuf [17:00:05]FM_MakeSignedData [17:00:05]FM_MakeSignedData [17:00:05]SAM_PROTO_SignData [17:00:05]wFMCommunicate request_size=4 [17:00:05]MH_SAM_APDU [17:00:05]CAPDU: 80 0D 01 02 [17:00:05]Write to MH i2c: E2 08 00 10 05 80 0D 01 02 00 00 00 00 8E [17:00:05]Write i2c OK [17:00:05]MH_I2C_Read... [17:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:05]Read from MH i2c: E2 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 03 00 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [17:00:05]RAPDU: 90 00 [17:00:05]wFMCommunicate OK [17:00:05]wFMCommunicate request_size=255 [17:00:05]MH_SAM_APDU [17:00:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DB 00 00 00 F4 03 04 00 15 66 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CD 01 00 35 04 06 00 E2 7D 84 94 [17:00:05]Write to MH i2c: E2 02 01 11 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DB 00 00 00 F4 03 04 00 15 66 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CD 01 00 35 04 06 00 E2 7D 84 94 00 00 63 [17:00:05]Write i2c OK [17:00:05]MH_I2C_Read... [17:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:06]Read from MH i2c: E2 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 03 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [17:00:06]RAPDU: 90 00 [17:00:06]wFMCommunicate OK [17:00:06]wFMCommunicate request_size=7 [17:00:06]MH_SAM_APDU [17:00:06]CAPDU: 80 0D 02 02 02 24 AC [17:00:06]Write to MH i2c: E2 0A 00 12 05 80 0D 02 02 02 00 24 AC 00 00 65 [17:00:06]Write i2c OK [17:00:06]MH_I2C_Read... [17:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:06]Read from MH i2c: E2 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 03 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [17:00:06]RAPDU: 90 00 [17:00:06]wFMCommunicate OK [17:00:06]wFMCommunicate request_size=4 [17:00:06]MH_SAM_APDU [17:00:06]CAPDU: 80 0D 03 02 [17:00:06]Write to MH i2c: E2 08 00 13 05 80 0D 03 02 00 00 00 00 93 [17:00:06]Write i2c OK [17:00:06]MH_I2C_Read... [17:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:06]Read from MH i2c: E2 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 0B 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 0B 00 13 05 00 C0 06 0F 5C C2 23 6D 95 90 00 AC [17:00:06]RAPDU: C0 06 0F 5C C2 23 6D 95 90 00 [17:00:06]wFMCommunicate OK [17:00:06]SAM_PROTO_SignData done [17:00:06]FM_MakeSignedData done [17:00:06]CreateOFDProtocolMessage [17:00:06]wFMCommunicate request_size=4 [17:00:06]MH_SAM_APDU [17:00:06]CAPDU: 80 11 00 00 [17:00:06]Write to MH i2c: E2 08 00 14 05 80 11 00 00 00 00 00 00 93 [17:00:06]Write i2c OK [17:00:06]MH_I2C_Read... [17:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:06]Read from MH i2c: E2 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 17 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 17 00 14 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EA [17:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:00:06]wFMCommunicate OK [17:00:06]CreateOFDProtocolMessage done [17:00:06]OFDSenderStorePacket 118159 [17:00:06]StoreOFDPacket docnum=118159 [17:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 2B A7 04 01 6C 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 DB 00 00 00 F4 03 04 00 15 66 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CD 01 00 35 04 06 00 E2 7D 84 94 24 AC C0 06 0F 5C C2 23 6D 95 [17:00:06]CheckFolder [17:00:06]dirname=/storage/ofd_packets [17:00:06]CheckFolder done [17:00:06]ProducePacketName [17:00:06]name=ofd_packets/00118159 [17:00:06]NVStorageSaveData ofd_packets/00118159 [17:00:06]File name is /storage/ofd_packets/00118159 [17:00:06]Write 298 bytes [17:00:06]NVStorageSaveData done [17:00:06]OFDSenderStorePacket done [17:00:06]KKMCreateOFDPacket done [17:00:06]NVStorageSaveData kkm_last_timestamp [17:00:06]File name is /storage/kkm_last_timestamp [17:00:06]Write 4 bytes [17:00:06]NVStorageSaveData done [17:00:06]ExternCall_PrintAddStr [17:00:06]wPrintStart [17:00:06]Write to MH i2c: 01 00 00 15 05 1A [17:00:06]Write i2c OK [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: 01 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: 01 07 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: 01 07 00 15 05 00 00 00 00 00 FF 0F 2F [17:00:06]RasterBufferAndPrint [17:00:06]line Счет N : (1)245959 [17:00:06]line ИНН: 02508201610067 [17:00:06]line Контрольно-Кассовый Чек [17:00:06]line ПРОДАЖА [17:00:06]line ТРК (МРК, ГНК) : 23 [17:00:06]line Товар: 2710194210 [17:00:06]line ДТ-К-2 [17:00:06]line 19.690 * 76.20 [17:00:06]line = 1500.38 [17:00:06]line НДС 12% НСП 1% [17:00:06]line > о реализуемом товаре [17:00:06]line ОКРУГЛЕНИЕ: -0.38 [17:00:06]line ИТОГО: 1500.00 [17:00:06]line Внесено: 1500.00 [17:00:06]line СДАЧА: 0.00 [17:00:06]line НСП 1% : 13.28 [17:00:06]line НДС 12% : 159.33 [17:00:06]line Наличными: 1500.00 [17:00:06]line Безнал.: 0.00 [17:00:06]line Место: АЗС № 173 "Партнер Нефть" [17:00:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:00:06]line СНО: Общий режим [17:00:06]line Чек 219 30.10.2024 17:00 [17:00:06]line Смена: 545 ФФД: 1.0 [17:00:06]line ЗНМ: 0300000115 [17:00:06]line РНМ: 0000000000091782 [17:00:06]line Версия ККМ: 001 [17:00:06]line ФМ: 0000000000871767 [17:00:06]line ФД: 118159 [17:00:06]line ФПД: 249028723090604 [17:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170005&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118159&fm=249028723090604&tin=02508201610067®Number=0000000000091782&sum=150000 [17:00:06]OFD Sender: Processing packet 118159 [packets to send 77, broken 76] [17:00:06]ProducePacketName [17:00:06]name=ofd_packets/00118159 [17:00:06]OFD Sender: To server: pG, [17:00:06]CommunicateWithHost lk.salyk.kg:30040 [17:00:06]ConnectInit lk.salyk.kg [17:00:06]written 0, free lines is 4095 [17:00:06]Connected sock=10 [17:00: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 36 37 0C 01 00 00 2B A7 04 01 6C 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 DB 00 00 00 F4 03 04 00 15 66 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 8F CD 01 00 35 04 06 00 E2 7D 84 94 24 AC C0 06 0F 5C C2 23 6D 95 [17:00: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 36 37 4F 00 00 00 16 DE 47 00 37 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 36 37 10 04 04 00 8F CD 01 00 F4 03 04 00 CC 11 22 67 B6 04 01 00 00 9E 58 D2 B1 0B 96 CE 0D [17:00:07]CommunicateWithHost err = 0 [17:00:07]CheckOFDResponse [17:00:07]1017 (14) - 77093643461234 [17:00:07]1041 (16) - 0000000000871767 [17:00:07]1040 (4) - 118159 [17:00:07]1012 (4) - 30.10.2024 11:00 [17:00:07]1206 (1) - 0 [17:00:07]OFD Sender: Remove packet 118159 [17:00:07]ProducePacketName [17:00:07]name=ofd_packets/00118159 [17:00:07]NVStorageDeleteData [17:00:07]Write to MH i2c: 01 00 00 3F 05 44 [17:00:07]Write i2c OK [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: 01 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: 01 07 00 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: 01 07 00 3F 05 00 00 00 00 00 CB 0C 22 [17:00:07]RasterBufferAndPrint [17:00:07]line [17:00:07]line [17:00:07]line [17:00:07]line [17:00:07]line [17:00:07]written 0, free lines is 3281 [17:00:07]MH_Cut [17:00:07]Write to MH i2c: D1 01 00 46 05 01 1D [17:00:07]Write i2c OK [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: D1 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: D1 01 00 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: D1 01 00 46 05 00 1C [17:00:07]Write to MH i2c: 01 00 00 47 05 4C [17:00:07]Write i2c OK [17:00:07]MH_I2C_Read... [17:00:07]OFD Sender: No OFD packet to send [17:00:07]*** Cut start [17:00:07]*** Purtial cut [17:00:07]*** Stage 1: CUTSNS_PIN = 1 [17:00:08]Read from MH i2c: 01 [17:00:08]MH_I2C_Read... [17:00:08]*** Stop cut motor [17:00:08]*** Cut end [17:00:08]Read from MH i2c: 01 07 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: 01 07 00 47 05 00 00 00 00 00 FF 0F 61 [17:00:08]process_action close_receipt done [17:00:08]requested_data is exist [17:00:08]produce_requested_data [17:00:08]requested_item fm.sn is exist - process it [17:00:08]wFMCommunicate request_size=4 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 11 00 00 [17:00:08]Write to MH i2c: E2 08 00 48 05 80 11 00 00 00 00 00 00 C7 [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 17 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 17 00 48 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1E [17:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:00:08]wFMCommunicate OK [17:00:08]requested_item fd.num is exist - process it [17:00:08]SAM_PROTO_GetFieldsCounters [17:00:08]wFMCommunicate request_size=4 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 13 00 00 [17:00:08]Write to MH i2c: E2 08 00 49 05 80 13 00 00 00 00 00 00 CA [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 62 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 62 00 49 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8F CD 01 00 0E 04 04 00 21 02 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 02 [17:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 8F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:08]wFMCommunicate OK [17:00:08]SAM_PROTO_GetFieldsCounters done [17:00:08]requested_item shift.num is exist - process it [17:00:08]requested_item shift.opened is exist - process it [17:00:08]req_shift_opened [17:00:08]FM_GetShiftState [17:00:08]SAM_PROTO_GetShiftState [17:00:08]wFMCommunicate request_size=4 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 13 01 00 [17:00:08]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 0E 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A4 [17:00:08]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:00:08]wFMCommunicate OK [17:00:08]SAM_PROTO_GetShiftState done [17:00:08]FM_GetShiftState done [17:00:08]req_shift_opened done [17:00:08]requested_item shift.open_date is exist - process it [17:00:08]req_shift_open_date [17:00:08]req_shift_open_date done [17:00:08]produce_requested_data done [17:00:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118159,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:00:08]process_action_free close_receipt [17:00:08]json_value_free [17:00:08]json_value_free done [17:00:08]process_json_proto returns [17:00:08]Send response to host [17:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118159,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:00:08]free response buf [17:00:08]execute_script done [17:00:08]execute_script returns [17:00:08]free content buf [17:00:08]Sock 7.Close socket [17:00:08]Sock 7.Thread stoped [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:42]accept exits with 9 [17:07:42]New connection [17:07:42]New thread 3067276644 created [17:07:42]Thread 3067133284 joined [17:07:42]Waiting for new connection... [17:07:42] Sock 9.Parse request [17:07:42]Sock 9.Check first char [17:07:42]Sock 9.First char is OK [17:07:42]request: POST /json_proto HTTP/1.0 [17:07:42]Method: POST [17:07:42]URL: /json_proto [17:07:42]Method is POST - this is cgi request [17:07:42]url: /json_proto [17:07:42]query_string will be loaded in cgi processing [17:07:42]execute_cgi json_proto POST (null) [17:07:42]execute_cgi path=json_proto method=POST [17:07:42]POST find Content-Length [17:07:42]Host: 172.17.96.67:8080 [17:07:42]Content-Length: 677 [17:07:42]Content-Type: application/json [17:07:42] [17:07:42]POST finish read [17:07:42]Found Content-Length = 677 [17:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:07:42]execute_script... [17:07: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)245960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:07:42]POST & json_proto [17:07:42]process_json_proto [17:07:42]json parsed OK: [17:07:42]protocol is kg_v1.0 [17:07:42]action value=close_receipt [17:07:42]process_action close_receipt [17:07:42]cmd_close_receipt [17:07:42]MH_GetDate [17:07:42]Write to MH i2c: F0 00 00 4B 05 3F [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: F0 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: F0 09 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: F0 09 00 4B 05 00 DE 67 22 67 47 6C 1F 67 4F [17:07:42]GetLastDocTimeStamp 1730307605 [17:07:42]current date 1730308062 [17:07:42]FM_GetShiftState [17:07:42]SAM_PROTO_GetShiftState [17:07:42]wFMCommunicate request_size=4 [17:07:42]MH_SAM_APDU [17:07:42]CAPDU: 80 13 01 00 [17:07:42]Write to MH i2c: E2 08 00 4C 05 80 13 01 00 00 00 00 00 CE [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:42]Read from MH i2c: E2 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 0E 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 0E 00 4C 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A6 [17:07:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:07:42]wFMCommunicate OK [17:07:42]SAM_PROTO_GetShiftState done [17:07:42]FM_GetShiftState done [17:07:42]opened in 1730246605 [17:07:42]opened+sec_in_day 1730333005 [17:07:42]quantity*price = 25020 [17:07:42]sum+1 = 25022 [17:07:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 220 30.10.2024 17:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118160 ФПД: 52281779883756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170742&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118160&fm=52281779883756&tin=02508201610067®Number=0000000000091782&sum=25000 [17:07:43]StoreToDocumentArchive [17:07:43]shift 545 fd 118160 [17:07:43]save to /storage/0545/doc_00118160 [17:07:43]save last doc name /storage/0545/doc_00118160 to /storage/kkm_last_doc_name [17:07:43]save OK [17:07:43]Clear old archive folders... [17:07:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:43]tlvbuf is 00231E30 [17:07:43]SAM_PROTO_ClearQueue [17:07:43]wFMCommunicate request_size=4 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 09 00 00 [17:07:43]Write to MH i2c: E2 08 00 59 05 80 09 00 00 00 00 00 00 D0 [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:43]Read from MH i2c: E2 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [17:07:43]RAPDU: 90 00 [17:07:43]wFMCommunicate OK [17:07:43]SAM_PROTO_ClearQueue done [17:07:43]KKMCreateOFDPacket [17:07:43]OFDProtocolAddRootSTLVToBuf [17:07:43]FM_MakeSignedData [17:07:43]FM_MakeSignedData [17:07:43]SAM_PROTO_SignData [17:07:43]wFMCommunicate request_size=4 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 0D 01 02 [17:07:43]Write to MH i2c: E2 08 00 5A 05 80 0D 01 02 00 00 00 00 D8 [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:43]Read from MH i2c: E2 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [17:07:43]RAPDU: 90 00 [17:07:43]wFMCommunicate OK [17:07:43]wFMCommunicate request_size=255 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DC 00 00 00 F4 03 04 00 DE 67 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CD 01 00 35 04 06 00 2F [17:07:43]Write to MH i2c: E2 02 01 5B 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DC 00 00 00 F4 03 04 00 DE 67 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CD 01 00 35 04 06 00 2F 00 00 9D [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:43]Read from MH i2c: E2 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [17:07:43]RAPDU: 90 00 [17:07:43]wFMCommunicate OK [17:07:43]wFMCommunicate request_size=10 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 0D 02 02 05 8C CC EB 0E EC [17:07:43]Write to MH i2c: E2 0D 00 5C 05 80 0D 02 02 05 00 8C CC EB 0E EC 00 00 22 [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:43]Read from MH i2c: E2 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [17:07:43]RAPDU: 90 00 [17:07:43]wFMCommunicate OK [17:07:43]wFMCommunicate request_size=4 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 0D 03 02 [17:07:43]Write to MH i2c: E2 08 00 5D 05 80 0D 03 02 00 00 00 00 DD [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:43]Read from MH i2c: E2 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 0B 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 0B 00 5D 05 00 4F 21 CC B9 DA B9 FF 72 90 00 D7 [17:07:43]RAPDU: 4F 21 CC B9 DA B9 FF 72 90 00 [17:07:43]wFMCommunicate OK [17:07:43]SAM_PROTO_SignData done [17:07:43]FM_MakeSignedData done [17:07:43]CreateOFDProtocolMessage [17:07:43]wFMCommunicate request_size=4 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 11 00 00 [17:07:43]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:43]Read from MH i2c: E2 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 17 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 34 [17:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:07:43]wFMCommunicate OK [17:07:43]CreateOFDProtocolMessage done [17:07:43]OFDSenderStorePacket 118160 [17:07:43]StoreOFDPacket docnum=118160 [17:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 84 86 07 01 B8 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DC 00 00 00 F4 03 04 00 DE 67 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CD 01 00 35 04 06 00 2F 8C CC EB 0E EC 4F 21 CC B9 DA B9 FF 72 [17:07:43]CheckFolder [17:07:43]dirname=/storage/ofd_packets [17:07:43]CheckFolder done [17:07:43]ProducePacketName [17:07:43]name=ofd_packets/00118160 [17:07:43]NVStorageSaveData ofd_packets/00118160 [17:07:43]File name is /storage/ofd_packets/00118160 [17:07:43]Write 301 bytes [17:07:43]NVStorageSaveData done [17:07:43]OFDSenderStorePacket done [17:07:43]KKMCreateOFDPacket done [17:07:43]NVStorageSaveData kkm_last_timestamp [17:07:43]File name is /storage/kkm_last_timestamp [17:07:43]Write 4 bytes [17:07:43]NVStorageSaveData done [17:07:43]ExternCall_PrintAddStr [17:07:43]wPrintStart [17:07:43]Write to MH i2c: 01 00 00 5F 05 64 [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: 01 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: 01 07 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 FF 0F 79 [17:07:43]RasterBufferAndPrint [17:07:43]line Счет N : (1)245960 [17:07:43]line ИНН: 02508201610067 [17:07:43]line Контрольно-Кассовый Чек [17:07:43]line ПРОДАЖА [17:07:43]line ТРК (МРК, ГНК) : 21 [17:07:43]line Товар: 2710124130 [17:07:43]line Аи-92-К-2 [17:07:43]line 3.740 * 66.90 [17:07:43]line = 250.21 [17:07:43]line НДС 12% НСП 1% [17:07:43]line > о реализуемом товаре [17:07:43]line ОКРУГЛЕНИЕ: -0.21 [17:07:43]line ИТОГО: 250.00 [17:07:43]line Внесено: 250.00 [17:07:43]line СДАЧА: 0.00 [17:07:43]line НСП 1% : 2.21 [17:07:43]line НДС 12% : 26.57 [17:07:43]line Наличными: 250.00 [17:07:43]line Безнал.: 0.00 [17:07:43]line Место: АЗС № 173 "Партнер Нефть" [17:07:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:07:43]line СНО: Общий режим [17:07:43]line Чек 220 30.10.2024 17:07 [17:07:43]line Смена: 545 ФФД: 1.0 [17:07:43]line ЗНМ: 0300000115 [17:07:43]line РНМ: 0000000000091782 [17:07:43]line Версия ККМ: 001 [17:07:43]line ФМ: 0000000000871767 [17:07:43]line ФД: 118160 [17:07:43]line ФПД: 52281779883756 [17:07:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170742&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118160&fm=52281779883756&tin=02508201610067®Number=0000000000091782&sum=25000 [17:07:44]OFD Sender: Processing packet 118160 [packets to send 77, broken 76] [17:07:44]ProducePacketName [17:07:44]name=ofd_packets/00118160 [17:07:44]OFD Sender: To server: pG, [17:07:44]CommunicateWithHost lk.salyk.kg:30040 [17:07:44]ConnectInit lk.salyk.kg [17:07:44]written 0, free lines is 4095 [17:07:44]Connected sock=10 [17:07: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 36 37 0F 01 00 00 84 86 07 01 B8 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DC 00 00 00 F4 03 04 00 DE 67 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 90 CD 01 00 35 04 06 00 2F 8C CC EB 0E EC 4F 21 CC B9 DA B9 FF 72 [17:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 D0 F0 47 00 D3 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 36 37 10 04 04 00 90 CD 01 00 F4 03 04 00 95 13 22 67 B6 04 01 00 00 2B B4 35 5A 8A 8A 05 B6 [17:07:44]CommunicateWithHost err = 0 [17:07:44]CheckOFDResponse [17:07:44]1017 (14) - 77093643461234 [17:07:44]1041 (16) - 0000000000871767 [17:07:44]1040 (4) - 118160 [17:07:44]1012 (4) - 30.10.2024 11:08 [17:07:44]1206 (1) - 0 [17:07:44]OFD Sender: Remove packet 118160 [17:07:44]ProducePacketName [17:07:44]name=ofd_packets/00118160 [17:07:44]NVStorageDeleteData [17:07:44]Write to MH i2c: 01 00 00 89 05 8E [17:07:44]Write i2c OK [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: 01 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: 01 07 00 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 BC 0C 5D [17:07:44]RasterBufferAndPrint [17:07:44]line [17:07:44]line [17:07:44]line [17:07:44]line [17:07:44]line [17:07:44]written 0, free lines is 3266 [17:07:44]MH_Cut [17:07:44]Write to MH i2c: D1 01 00 90 05 01 67 [17:07:44]Write i2c OK [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: D1 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: D1 01 00 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: D1 01 00 90 05 00 66 [17:07:44]Write to MH i2c: 01 00 00 91 05 96 [17:07:44]Write i2c OK [17:07:44]MH_I2C_Read... [17:07:45]OFD Sender: No OFD packet to send [17:07:45]*** Cut start [17:07:45]*** Purtial cut [17:07:45]*** Stage 1: CUTSNS_PIN = 1 [17:07:45]Read from MH i2c: 01 [17:07:45]MH_I2C_Read... [17:07:45]*** Stop cut motor [17:07:45]Read from MH i2c: 01 *** Cut end [17:07:45]07 00 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [17:07:45]process_action close_receipt done [17:07:45]requested_data is exist [17:07:45]produce_requested_data [17:07:45]requested_item fm.sn is exist - process it [17:07:45]wFMCommunicate request_size=4 [17:07:45]MH_SAM_APDU [17:07:45]CAPDU: 80 11 00 00 [17:07:45]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [17:07:45]Write i2c OK [17:07:45]MH_I2C_Read... [17:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:45]Read from MH i2c: E2 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: E2 17 00 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 68 [17:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:07:45]wFMCommunicate OK [17:07:45]requested_item fd.num is exist - process it [17:07:45]SAM_PROTO_GetFieldsCounters [17:07:45]wFMCommunicate request_size=4 [17:07:45]MH_SAM_APDU [17:07:45]CAPDU: 80 13 00 00 [17:07:45]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [17:07:45]Write i2c OK [17:07:45]MH_I2C_Read... [17:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:46]Read from MH i2c: E2 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 62 00 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 62 00 93 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 90 CD 01 00 0E 04 04 00 21 02 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 50 [17:07: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 90 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:46]wFMCommunicate OK [17:07:46]SAM_PROTO_GetFieldsCounters done [17:07:46]requested_item shift.num is exist - process it [17:07:46]requested_item shift.opened is exist - process it [17:07:46]req_shift_opened [17:07:46]FM_GetShiftState [17:07:46]SAM_PROTO_GetShiftState [17:07:46]wFMCommunicate request_size=4 [17:07:46]MH_SAM_APDU [17:07:46]CAPDU: 80 13 01 00 [17:07:46]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [17:07:46]Write i2c OK [17:07:46]MH_I2C_Read... [17:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:46]Read from MH i2c: E2 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EE [17:07:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:07:46]wFMCommunicate OK [17:07:46]SAM_PROTO_GetShiftState done [17:07:46]FM_GetShiftState done [17:07:46]req_shift_opened done [17:07:46]requested_item shift.open_date is exist - process it [17:07:46]req_shift_open_date [17:07:46]req_shift_open_date done [17:07:46]produce_requested_data done [17:07:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118160,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:07:46]process_action_free close_receipt [17:07:46]json_value_free [17:07:46]json_value_free done [17:07:46]process_json_proto returns [17:07:46]Send response to host [17:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118160,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:07:46]free response buf [17:07:46]execute_script done [17:07:46]execute_script returns [17:07:46]free content buf [17:07:46]Sock 9.Close socket [17:07:46]Sock 9.Thread stoped [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:40]accept exits with 7 [17:09:40]New connection [17:09:40]New thread 3067133284 created [17:09:40]Thread 3067276644 joined [17:09:40]Waiting for new connection... [17:09:40] Sock 7.Parse request [17:09:40]Sock 7.Check first char [17:09:40]Sock 7.First char is OK [17:09:40]request: POST /json_proto HTTP/1.0 [17:09:40]Method: POST [17:09:40]URL: /json_proto [17:09:40]Method is POST - this is cgi request [17:09:40]url: /json_proto [17:09:40]query_string will be loaded in cgi processing [17:09:40]execute_cgi json_proto POST (null) [17:09:40]execute_cgi path=json_proto method=POST [17:09:40]POST find Content-Length [17:09:40]Host: 172.17.96.67:8080 [17:09:40]Content-Length: 677 [17:09:40]Content-Type: application/json [17:09:40] [17:09:40]POST finish read [17:09:40]Found Content-Length = 677 [17:09:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:09:40]execute_script... [17:09: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)245961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:09:40]POST & json_proto [17:09:40]process_json_proto [17:09:40]json parsed OK: [17:09:40]protocol is kg_v1.0 [17:09:40]action value=close_receipt [17:09:40]process_action close_receipt [17:09:40]cmd_close_receipt [17:09:40]MH_GetDate [17:09:40]Write to MH i2c: F0 00 00 95 05 89 [17:09:40]Write i2c OK [17:09:40]MH_I2C_Read... [17:09:40]Read from MH i2c: F0 [17:09:40]MH_I2C_Read... [17:09:40]Read from MH i2c: F0 09 00 [17:09:40]MH_I2C_Read... [17:09:40]Read from MH i2c: F0 09 00 95 05 00 54 68 22 67 47 6C 1F 67 10 [17:09:40]GetLastDocTimeStamp 1730308062 [17:09:40]current date 1730308180 [17:09:40]FM_GetShiftState [17:09:40]SAM_PROTO_GetShiftState [17:09:40]wFMCommunicate request_size=4 [17:09:40]MH_SAM_APDU [17:09:40]CAPDU: 80 13 01 00 [17:09:40]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [17:09:40]Write i2c OK [17:09:40]MH_I2C_Read... [17:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:40]Read from MH i2c: E2 [17:09:40]MH_I2C_Read... [17:09:40]Read from MH i2c: E2 0E 00 [17:09:40]MH_I2C_Read... [17:09:40]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F0 [17:09:40]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:09:40]wFMCommunicate OK [17:09:40]SAM_PROTO_GetShiftState done [17:09:40]FM_GetShiftState done [17:09:40]opened in 1730246605 [17:09:40]opened+sec_in_day 1730333005 [17:09:40]quantity*price = 50041 [17:09:40]sum+1 = 50042 [17: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 221 30.10.2024 17:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118161 ФПД: 35872557106501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170940&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118161&fm=35872557106501&tin=02508201610067®Number=0000000000091782&sum=50000 [17:09:41]StoreToDocumentArchive [17:09:41]shift 545 fd 118161 [17:09:41]save to /storage/0545/doc_00118161 [17:09:41]save last doc name /storage/0545/doc_00118161 to /storage/kkm_last_doc_name [17:09:41]save OK [17:09:41]Clear old archive folders... [17:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:41]tlvbuf is 00233A30 [17:09:41]SAM_PROTO_ClearQueue [17:09:41]wFMCommunicate request_size=4 [17:09:41]MH_SAM_APDU [17:09:41]CAPDU: 80 09 00 00 [17:09:41]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [17:09:41]Write i2c OK [17:09:41]MH_I2C_Read... [17:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:41]Read from MH i2c: E2 [17:09:41]MH_I2C_Read... [17:09:41]Read from MH i2c: E2 03 00 [17:09:41]MH_I2C_Read... [17:09:41]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [17:09:41]RAPDU: 90 00 [17:09:41]wFMCommunicate OK [17:09:41]SAM_PROTO_ClearQueue done [17:09:41]KKMCreateOFDPacket [17:09:41]OFDProtocolAddRootSTLVToBuf [17:09:41]FM_MakeSignedData [17:09:41]FM_MakeSignedData [17:09:41]SAM_PROTO_SignData [17:09:41]wFMCommunicate request_size=4 [17:09:41]MH_SAM_APDU [17:09:41]CAPDU: 80 0D 01 02 [17:09:41]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [17:09:41]Write i2c OK [17:09:41]MH_I2C_Read... [17:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:41]Read from MH i2c: E2 [17:09:41]MH_I2C_Read... [17:09:41]Read from MH i2c: E2 03 00 [17:09:41]MH_I2C_Read... [17:09:41]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [17:09:41]RAPDU: 90 00 [17:09:41]wFMCommunicate OK [17:09:41]wFMCommunicate request_size=255 [17:09:41]MH_SAM_APDU [17: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 32 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 54 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CD 01 00 35 04 06 00 20 [17:09:41]Write to MH i2c: E2 02 01 A5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 54 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CD 01 00 35 04 06 00 20 00 00 78 [17:09:41]Write i2c OK [17:09:41]MH_I2C_Read... [17:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 03 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [17:09:42]RAPDU: 90 00 [17:09:42]wFMCommunicate OK [17:09:42]wFMCommunicate request_size=10 [17:09:42]MH_SAM_APDU [17:09:42]CAPDU: 80 0D 02 02 05 A0 3B 06 05 45 [17:09:42]Write to MH i2c: E2 0D 00 A6 05 80 0D 02 02 05 00 A0 3B 06 05 45 00 00 5A [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 03 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [17:09:42]RAPDU: 90 00 [17:09:42]wFMCommunicate OK [17:09:42]wFMCommunicate request_size=4 [17:09:42]MH_SAM_APDU [17:09:42]CAPDU: 80 0D 03 02 [17:09:42]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 0B 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 0B 00 A7 05 00 58 96 FD 77 27 83 B5 C4 90 00 AD [17:09:42]RAPDU: 58 96 FD 77 27 83 B5 C4 90 00 [17:09:42]wFMCommunicate OK [17:09:42]SAM_PROTO_SignData done [17:09:42]FM_MakeSignedData done [17:09:42]CreateOFDProtocolMessage [17:09:42]wFMCommunicate request_size=4 [17:09:42]MH_SAM_APDU [17:09:42]CAPDU: 80 11 00 00 [17:09:42]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 17 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7E [17:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:09:42]wFMCommunicate OK [17:09:42]CreateOFDProtocolMessage done [17:09:42]OFDSenderStorePacket 118161 [17:09:42]StoreOFDPacket docnum=118161 [17:09:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 3A E9 07 01 4B C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 54 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CD 01 00 35 04 06 00 20 A0 3B 06 05 45 58 96 FD 77 27 83 B5 C4 [17:09:42]CheckFolder [17:09:42]dirname=/storage/ofd_packets [17:09:42]CheckFolder done [17:09:42]ProducePacketName [17:09:42]name=ofd_packets/00118161 [17:09:42]NVStorageSaveData ofd_packets/00118161 [17:09:42]File name is /storage/ofd_packets/00118161 [17:09:42]Write 301 bytes [17:09:42]NVStorageSaveData done [17:09:42]OFDSenderStorePacket done [17:09:42]KKMCreateOFDPacket done [17:09:42]NVStorageSaveData kkm_last_timestamp [17:09:42]File name is /storage/kkm_last_timestamp [17:09:42]Write 4 bytes [17:09:42]NVStorageSaveData done [17:09:42]ExternCall_PrintAddStr [17:09:42]wPrintStart [17:09:42]Write to MH i2c: 01 00 00 A9 05 AE [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: 01 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: 01 07 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [17:09:42]RasterBufferAndPrint [17:09:42]line Счет N : (1)245961 [17:09:42]line ИНН: 02508201610067 [17:09:42]line Контрольно-Кассовый Чек [17:09:42]line ПРОДАЖА [17:09:42]line ТРК (МРК, ГНК) : 11 [17:09:42]line Товар: 2710124130 [17:09:42]line Аи-92-К-2 [17:09:42]line 7.480 * 66.90 [17:09:42]line = 500.41 [17:09:42]line НДС 12% НСП 1% [17:09:42]line > о реализуемом товаре [17:09:42]line ОКРУГЛЕНИЕ: -0.41 [17:09:42]line ИТОГО: 500.00 [17:09:42]line Внесено: 500.00 [17:09:42]line СДАЧА: 0.00 [17:09:42]line НСП 1% : 4.43 [17:09:42]line НДС 12% : 53.14 [17:09:42]line Наличными: 500.00 [17:09:42]line Безнал.: 0.00 [17:09:42]line Место: АЗС № 173 "Партнер Нефть" [17:09:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:09:42]line СНО: Общий режим [17:09:42]line Чек 221 30.10.2024 17:09 [17:09:42]line Смена: 545 ФФД: 1.0 [17:09:42]line ЗНМ: 0300000115 [17:09:42]line РНМ: 0000000000091782 [17:09:42]line Версия ККМ: 001 [17:09:42]line ФМ: 0000000000871767 [17:09:42]line ФД: 118161 [17:09:42]line ФПД: 35872557106501 [17:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170940&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118161&fm=35872557106501&tin=02508201610067®Number=0000000000091782&sum=50000 [17:09:42]written 0, free lines is 4095 [17:09:42]OFD Sender: Processing packet 118161 [packets to send 77, broken 76] [17:09:42]ProducePacketName [17:09:42]name=ofd_packets/00118161 [17:09:42]OFD Sender: To server: pG, [17:09:42]CommunicateWithHost lk.salyk.kg:30040 [17:09:42]ConnectInit lk.salyk.kg [17:09:42]Connected sock=9 [17: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 36 37 0F 01 00 00 3A E9 07 01 4B C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 54 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 91 CD 01 00 35 04 06 00 20 A0 3B 06 05 45 58 96 FD 77 27 83 B5 C4 [17: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 36 37 4F 00 00 00 3F F1 47 00 21 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 36 37 10 04 04 00 91 CD 01 00 F4 03 04 00 0B 14 22 67 B6 04 01 00 00 82 A1 26 F2 C1 AE 7F 70 [17:09:42]CommunicateWithHost err = 0 [17:09:42]CheckOFDResponse [17:09:42]1017 (14) - 77093643461234 [17:09:42]1041 (16) - 0000000000871767 [17:09:42]1040 (4) - 118161 [17:09:42]1012 (4) - 30.10.2024 11:10 [17:09:42]1206 (1) - 0 [17:09:42]OFD Sender: Remove packet 118161 [17:09:42]ProducePacketName [17:09:42]name=ofd_packets/00118161 [17:09:42]NVStorageDeleteData [17:09:42]Write to MH i2c: 01 00 00 D3 05 D8 [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: 01 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: 01 07 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 C6 0C B1 [17:09:42]RasterBufferAndPrint [17:09:42]line [17:09:42]line [17:09:42]line [17:09:42]line [17:09:42]line [17:09:42]written 0, free lines is 3278 [17:09:42]MH_Cut [17:09:42]Write to MH i2c: D1 01 00 DA 05 01 B1 [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: D1 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: D1 01 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: D1 01 00 DA 05 00 B0 [17:09:42]Write to MH i2c: 01 00 00 DB 05 E0 [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:43]OFD Sender: No OFD packet to send [17:09:43]*** Cut start [17:09:43]*** Purtial cut [17:09:43]*** Stage 1: CUTSNS_PIN = 1 [17:09:43]Read from MH i2c: 01 [17:09:43]MH_I2C_Read... [17:09:43]*** Stop cut motor [17:09:43]*** Cut end [17:09:43]Read from MH i2c: 01 07 00 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [17:09:43]process_action close_receipt done [17:09:43]requested_data is exist [17:09:43]produce_requested_data [17:09:43]requested_item fm.sn is exist - process it [17:09:43]wFMCommunicate request_size=4 [17:09:43]MH_SAM_APDU [17:09:43]CAPDU: 80 11 00 00 [17:09:43]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [17:09:43]Write i2c OK [17:09:43]MH_I2C_Read... [17:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:43]Read from MH i2c: E2 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 17 00 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B2 [17:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:09:43]wFMCommunicate OK [17:09:43]requested_item fd.num is exist - process it [17:09:43]SAM_PROTO_GetFieldsCounters [17:09:43]wFMCommunicate request_size=4 [17:09:43]MH_SAM_APDU [17:09:43]CAPDU: 80 13 00 00 [17:09:43]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [17:09:43]Write i2c OK [17:09:43]MH_I2C_Read... [17:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:43]Read from MH i2c: E2 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 62 00 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 91 CD 01 00 0E 04 04 00 21 02 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 9E [17:09: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 91 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:43]wFMCommunicate OK [17:09:43]SAM_PROTO_GetFieldsCounters done [17:09:43]requested_item shift.num is exist - process it [17:09:43]requested_item shift.opened is exist - process it [17:09:43]req_shift_opened [17:09:43]FM_GetShiftState [17:09:43]SAM_PROTO_GetShiftState [17:09:43]wFMCommunicate request_size=4 [17:09:43]MH_SAM_APDU [17:09:43]CAPDU: 80 13 01 00 [17:09:43]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [17:09:43]Write i2c OK [17:09:43]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 0E 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 38 [17:09:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:09:44]wFMCommunicate OK [17:09:44]SAM_PROTO_GetShiftState done [17:09:44]FM_GetShiftState done [17:09:44]req_shift_opened done [17:09:44]requested_item shift.open_date is exist - process it [17:09:44]req_shift_open_date [17:09:44]req_shift_open_date done [17:09:44]produce_requested_data done [17:09:44]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118161,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:09:44]process_action_free close_receipt [17:09:44]json_value_free [17:09:44]json_value_free done [17:09:44]process_json_proto returns [17:09:44]Send response to host [17:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118161,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:09:44]free response buf [17:09:44]execute_script done [17:09:44]execute_script returns [17:09:44]free content buf [17:09:44]Sock 7.Close socket [17:09:44]Sock 7.Thread stoped [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:03]accept exits with 10 [17:10:03]New connection [17:10:03]New thread 3067276644 created [17:10:03]Thread 3067133284 joined [17:10:03]Waiting for new connection... [17:10:03] Sock 10.Parse request [17:10:03]Sock 10.Check first char [17:10:03]Sock 10.First char is OK [17:10:03]request: POST /json_proto HTTP/1.0 [17:10:03]Method: POST [17:10:03]URL: /json_proto [17:10:03]Method is POST - this is cgi request [17:10:03]url: /json_proto [17:10:03]query_string will be loaded in cgi processing [17:10:03]execute_cgi json_proto POST (null) [17:10:03]execute_cgi path=json_proto method=POST [17:10:03]POST find Content-Length [17:10:03]Host: 172.17.96.67:8080 [17:10:03]Content-Length: 677 [17:10:03]Content-Type: application/json [17:10:03] [17:10:03]POST finish read [17:10:03]Found Content-Length = 677 [17:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:03]execute_script... [17:10: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)245962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:03]POST & json_proto [17:10:03]process_json_proto [17:10:03]json parsed OK: [17:10:03]protocol is kg_v1.0 [17:10:03]action value=close_receipt [17:10:03]process_action close_receipt [17:10:03]cmd_close_receipt [17:10:03]MH_GetDate [17:10:03]Write to MH i2c: F0 00 00 DF 05 D3 [17:10:03]Write i2c OK [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: F0 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: F0 09 00 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: F0 09 00 DF 05 00 6C 68 22 67 47 6C 1F 67 72 [17:10:03]GetLastDocTimeStamp 1730308180 [17:10:03]current date 1730308204 [17:10:03]FM_GetShiftState [17:10:03]SAM_PROTO_GetShiftState [17:10:03]wFMCommunicate request_size=4 [17:10:03]MH_SAM_APDU [17:10:03]CAPDU: 80 13 01 00 [17:10:03]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [17:10:03]Write i2c OK [17:10:03]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 0E 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3A [17:10:04]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:10:04]wFMCommunicate OK [17:10:04]SAM_PROTO_GetShiftState done [17:10:04]FM_GetShiftState done [17:10:04]opened in 1730246605 [17:10:04]opened+sec_in_day 1730333005 [17:10:04]quantity*price = 50041 [17:10:04]sum+1 = 50042 [17:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 222 30.10.2024 17:10 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118162 ФПД: 114118398675574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171004&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118162&fm=114118398675574&tin=02508201610067®Number=0000000000091782&sum=50000 [17:10:05]StoreToDocumentArchive [17:10:05]shift 545 fd 118162 [17:10:05]save to /storage/0545/doc_00118162 [17:10:05]save last doc name /storage/0545/doc_00118162 to /storage/kkm_last_doc_name [17:10:05]save OK [17:10:05]Clear old archive folders... [17:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:05]tlvbuf is 0022A3F0 [17:10:05]SAM_PROTO_ClearQueue [17:10:05]wFMCommunicate request_size=4 [17:10:05]MH_SAM_APDU [17:10:05]CAPDU: 80 09 00 00 [17:10:05]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [17:10:05]RAPDU: 90 00 [17:10:05]wFMCommunicate OK [17:10:05]SAM_PROTO_ClearQueue done [17:10:05]KKMCreateOFDPacket [17:10:05]OFDProtocolAddRootSTLVToBuf [17:10:05]FM_MakeSignedData [17:10:05]FM_MakeSignedData [17:10:05]SAM_PROTO_SignData [17:10:05]wFMCommunicate request_size=4 [17:10:05]MH_SAM_APDU [17:10:05]CAPDU: 80 0D 01 02 [17:10:05]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [17:10:05]RAPDU: 90 00 [17:10:05]wFMCommunicate OK [17:10:05]wFMCommunicate request_size=255 [17:10:05]MH_SAM_APDU [17:10: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 32 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 6C 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CD 01 00 35 04 06 00 67 [17:10:05]Write to MH i2c: E2 02 01 EF 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6C 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CD 01 00 35 04 06 00 67 00 00 23 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [17:10:05]RAPDU: 90 00 [17:10:05]wFMCommunicate OK [17:10:05]wFMCommunicate request_size=10 [17:10:05]MH_SAM_APDU [17:10:05]CAPDU: 80 0D 02 02 05 CA 42 9D 8A 76 [17:10:05]Write to MH i2c: E2 0D 00 F0 05 80 0D 02 02 05 00 CA 42 9D 8A 76 00 00 22 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [17:10:05]RAPDU: 90 00 [17:10:05]wFMCommunicate OK [17:10:05]wFMCommunicate request_size=4 [17:10:05]MH_SAM_APDU [17:10:05]CAPDU: 80 0D 03 02 [17:10:05]Write to MH i2c: E2 08 00 F1 05 80 0D 03 02 00 00 00 00 71 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 0B 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 0B 00 F1 05 00 06 0D EF FF 2C 57 47 18 90 00 55 [17:10:05]RAPDU: 06 0D EF FF 2C 57 47 18 90 00 [17:10:05]wFMCommunicate OK [17:10:05]SAM_PROTO_SignData done [17:10:05]FM_MakeSignedData done [17:10:05]CreateOFDProtocolMessage [17:10:05]wFMCommunicate request_size=4 [17:10:05]MH_SAM_APDU [17:10:05]CAPDU: 80 11 00 00 [17:10:05]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 17 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C8 [17:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:10:05]wFMCommunicate OK [17:10:05]CreateOFDProtocolMessage done [17:10:05]OFDSenderStorePacket 118162 [17:10:05]StoreOFDPacket docnum=118162 [17:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 9D 30 07 01 E8 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6C 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CD 01 00 35 04 06 00 67 CA 42 9D 8A 76 06 0D EF FF 2C 57 47 18 [17:10:05]CheckFolder [17:10:05]dirname=/storage/ofd_packets [17:10:05]CheckFolder done [17:10:05]ProducePacketName [17:10:05]name=ofd_packets/00118162 [17:10:05]NVStorageSaveData ofd_packets/00118162 [17:10:05]File name is /storage/ofd_packets/00118162 [17:10:05]Write 301 bytes [17:10:05]NVStorageSaveData done [17:10:05]OFDSenderStorePacket done [17:10:05]KKMCreateOFDPacket done [17:10:05]NVStorageSaveData kkm_last_timestamp [17:10:05]File name is /storage/kkm_last_timestamp [17:10:05]Write 4 bytes [17:10:05]NVStorageSaveData done [17:10:05]ExternCall_PrintAddStr [17:10:05]wPrintStart [17:10:05]Write to MH i2c: 01 00 00 F3 05 F8 [17:10:05]OFD Sender: Processing packet 118162 [packets to send 77, broken 76] [17:10:05]ProducePacketName [17:10:05]name=ofd_packets/00118162 [17:10:05]OFD Sender: To server: pG, [17:10:05]CommunicateWithHost lk.salyk.kg:30040 [17:10:05]ConnectInit lk.salyk.kg [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: 01 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: 01 07 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [17:10:05]RasterBufferAndPrint [17:10:05]line Счет N : (1)245962 [17:10:05]line ИНН: 02508201610067 [17:10:05]line Контрольно-Кассовый Чек [17:10:05]line ПРОДАЖА [17:10:05]line ТРК (МРК, ГНК) : 21 [17:10:05]line Товар: 2710124130 [17:10:05]line Аи-92-К-2 [17:10:05]line 7.480 * 66.90 [17:10:05]line = 500.41 [17:10:05]line НДС 12% НСП 1% [17:10:05]line > о реализуемом товаре [17:10:05]line ОКРУГЛЕНИЕ: -0.41 [17:10:05]line ИТОГО: 500.00 [17:10:05]line Внесено: 500.00 [17:10:05]line СДАЧА: 0.00 [17:10:05]line НСП 1% : 4.43 [17:10:05]line НДС 12% : 53.14 [17:10:05]line Наличными: 500.00 [17:10:05]line Безнал.: 0.00 [17:10:05]line Место: АЗС № 173 "Партнер Нефть" [17:10:05]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:10:05]line СНО: Общий режим [17:10:05]line Чек 222 30.10.2024 17:10 [17:10:05]line Смена: 545 ФФД: 1.0 [17:10:05]line ЗНМ: 0300000115 [17:10:05]line РНМ: 0000000000091782 [17:10:05]line Версия ККМ: 001 [17:10:05]line ФМ: 0000000000871767 [17:10:05]line ФД: 118162 [17:10:05]line ФПД: 114118398675574 [17:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171004&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118162&fm=114118398675574&tin=02508201610067®Number=0000000000091782&sum=50000 [17:10:06]Connected sock=9 [17:10: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 36 37 0F 01 00 00 9D 30 07 01 E8 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6C 68 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 92 CD 01 00 35 04 06 00 67 CA 42 9D 8A 76 06 0D EF FF 2C 57 47 18 [17:10:06]written 0, free lines is 4095 [17:10: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 36 37 4F 00 00 00 A3 DF 47 00 DC 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 36 37 10 04 04 00 92 CD 01 00 F4 03 04 00 23 14 22 67 B6 04 01 00 00 9A 5C 37 56 3C 2D D7 08 [17:10:06]CommunicateWithHost err = 0 [17:10:06]CheckOFDResponse [17:10:06]1017 (14) - 77093643461234 [17:10:06]1041 (16) - 0000000000871767 [17:10:06]1040 (4) - 118162 [17:10:06]1012 (4) - 30.10.2024 11:10 [17:10:06]1206 (1) - 0 [17:10:06]OFD Sender: Remove packet 118162 [17:10:06]ProducePacketName [17:10:06]name=ofd_packets/00118162 [17:10:06]NVStorageDeleteData [17:10:06]Write to MH i2c: 01 00 00 1D 06 23 [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: 01 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: 01 07 00 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 C1 0C F7 [17:10:06]RasterBufferAndPrint [17:10:06]line [17:10:06]line [17:10:06]line [17:10:06]line [17:10:06]line [17:10:06]written 0, free lines is 3272 [17:10:06]MH_Cut [17:10:06]Write to MH i2c: D1 01 00 24 06 01 FC [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: D1 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: D1 01 00 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: D1 01 00 24 06 00 FB [17:10:06]Write to MH i2c: 01 00 00 25 06 2B [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:06]OFD Sender: No OFD packet to send [17:10:07]*** Cut start [17:10:07]*** Purtial cut [17:10:07]*** Stage 1: CUTSNS_PIN = 1 [17:10:07]Read from MH i2c: 01 [17:10:07]MH_I2C_Read... [17:10:07]*** Stop cut motor [17:10:07]*** Cut end [17:10:07]Read from MH i2c: 01 07 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [17:10:07]process_action close_receipt done [17:10:07]requested_data is exist [17:10:07]produce_requested_data [17:10:07]requested_item fm.sn is exist - process it [17:10:07]wFMCommunicate request_size=4 [17:10:07]MH_SAM_APDU [17:10:07]CAPDU: 80 11 00 00 [17:10:07]Write to MH i2c: E2 08 00 26 06 80 11 00 00 00 00 00 00 A6 [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 17 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 17 00 26 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FD [17:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:10:07]wFMCommunicate OK [17:10:07]requested_item fd.num is exist - process it [17:10:07]SAM_PROTO_GetFieldsCounters [17:10:07]wFMCommunicate request_size=4 [17:10:07]MH_SAM_APDU [17:10:07]CAPDU: 80 13 00 00 [17:10:07]Write to MH i2c: E2 08 00 27 06 80 13 00 00 00 00 00 00 A9 [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 62 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 62 00 27 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 92 CD 01 00 0E 04 04 00 21 02 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 ED [17:10: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 92 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:07]wFMCommunicate OK [17:10:07]SAM_PROTO_GetFieldsCounters done [17:10:07]requested_item shift.num is exist - process it [17:10:07]requested_item shift.opened is exist - process it [17:10:07]req_shift_opened [17:10:07]FM_GetShiftState [17:10:07]SAM_PROTO_GetShiftState [17:10:07]wFMCommunicate request_size=4 [17:10:07]MH_SAM_APDU [17:10:07]CAPDU: 80 13 01 00 [17:10:07]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 0E 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 83 [17:10:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:10:07]wFMCommunicate OK [17:10:07]SAM_PROTO_GetShiftState done [17:10:07]FM_GetShiftState done [17:10:07]req_shift_opened done [17:10:07]requested_item shift.open_date is exist - process it [17:10:07]req_shift_open_date [17:10:07]req_shift_open_date done [17:10:07]produce_requested_data done [17:10:07]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118162,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:10:07]process_action_free close_receipt [17:10:07]json_value_free [17:10:07]json_value_free done [17:10:07]process_json_proto returns [17:10:07]Send response to host [17:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118162,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:10:07]free response buf [17:10:07]execute_script done [17:10:07]execute_script returns [17:10:07]free content buf [17:10:07]Sock 10.Close socket [17:10:07]Sock 10.Thread stoped [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:43]accept exits with 7 [17:14:43]New connection [17:14:43]New thread 3067133284 created [17:14:43]Thread 3067276644 joined [17:14:43]Waiting for new connection... [17:14:43] Sock 7.Parse request [17:14:43]Sock 7.Check first char [17:14:43]Sock 7.First char is OK [17:14:43]request: POST /json_proto HTTP/1.0 [17:14:43]Method: POST [17:14:43]URL: /json_proto [17:14:43]Method is POST - this is cgi request [17:14:43]url: /json_proto [17:14:43]query_string will be loaded in cgi processing [17:14:43]execute_cgi json_proto POST (null) [17:14:43]execute_cgi path=json_proto method=POST [17:14:43]POST find Content-Length [17:14:43]Host: 172.17.96.67:8080 [17:14:43]Content-Length: 677 [17:14:43]Content-Type: application/json [17:14:43] [17:14:43]POST finish read [17:14:43]Found Content-Length = 677 [17:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:43]execute_script... [17:14: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)245964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:43]POST & json_proto [17:14:43]process_json_proto [17:14:43]json parsed OK: [17:14:43]protocol is kg_v1.0 [17:14:43]action value=close_receipt [17:14:43]process_action close_receipt [17:14:43]cmd_close_receipt [17:14:43]MH_GetDate [17:14:43]Write to MH i2c: F0 00 00 29 06 1E [17:14:43]Write i2c OK [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: F0 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: F0 09 00 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: F0 09 00 29 06 00 83 69 22 67 47 6C 1F 67 D5 [17:14:43]GetLastDocTimeStamp 1730308204 [17:14:43]current date 1730308483 [17:14:43]FM_GetShiftState [17:14:43]SAM_PROTO_GetShiftState [17:14:43]wFMCommunicate request_size=4 [17:14:43]MH_SAM_APDU [17:14:43]CAPDU: 80 13 01 00 [17:14:43]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [17:14:43]Write i2c OK [17:14:43]MH_I2C_Read... [17:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:43]Read from MH i2c: E2 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: E2 0E 00 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 85 [17:14:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:14:43]wFMCommunicate OK [17:14:43]SAM_PROTO_GetShiftState done [17:14:43]FM_GetShiftState done [17:14:43]opened in 1730246605 [17:14:43]opened+sec_in_day 1730333005 [17:14:43]quantity*price = 27027 [17:14:43]sum+1 = 27029 [17:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 223 30.10.2024 17:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118163 ФПД: 8015894255005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171444&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118163&fm=8015894255005&tin=02508201610067®Number=0000000000091782&sum=27000 [17:14:44]StoreToDocumentArchive [17:14:44]shift 545 fd 118163 [17:14:44]save to /storage/0545/doc_00118163 [17:14:44]save last doc name /storage/0545/doc_00118163 to /storage/kkm_last_doc_name [17:14:44]save OK [17:14:44]Clear old archive folders... [17:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:44]tlvbuf is 00219DE0 [17:14:44]SAM_PROTO_ClearQueue [17:14:44]wFMCommunicate request_size=4 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 09 00 00 [17:14:44]Write to MH i2c: E2 08 00 37 06 80 09 00 00 00 00 00 00 AF [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [17:14:44]RAPDU: 90 00 [17:14:44]wFMCommunicate OK [17:14:44]SAM_PROTO_ClearQueue done [17:14:44]KKMCreateOFDPacket [17:14:44]OFDProtocolAddRootSTLVToBuf [17:14:44]FM_MakeSignedData [17:14:44]FM_MakeSignedData [17:14:44]SAM_PROTO_SignData [17:14:44]wFMCommunicate request_size=4 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 0D 01 02 [17:14:44]Write to MH i2c: E2 08 00 38 06 80 0D 01 02 00 00 00 00 B7 [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [17:14:44]RAPDU: 90 00 [17:14:44]wFMCommunicate OK [17:14:44]wFMCommunicate request_size=255 [17:14:44]MH_SAM_APDU [17:14: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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 84 69 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CD 01 00 35 04 06 00 07 [17:14:44]Write to MH i2c: E2 02 01 39 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 84 69 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CD 01 00 35 04 06 00 07 00 00 A6 [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 03 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [17:14:45]RAPDU: 90 00 [17:14:45]wFMCommunicate OK [17:14:45]wFMCommunicate request_size=10 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 0D 02 02 05 4A 58 87 95 9D [17:14:45]Write to MH i2c: E2 0D 00 3A 06 80 0D 02 02 05 00 4A 58 87 95 9D 00 00 1F [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 03 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [17:14:45]RAPDU: 90 00 [17:14:45]wFMCommunicate OK [17:14:45]wFMCommunicate request_size=4 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 0D 03 02 [17:14:45]Write to MH i2c: E2 08 00 3B 06 80 0D 03 02 00 00 00 00 BC [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0B 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0B 00 3B 06 00 4C 37 1B 8F FF DF 81 38 90 00 81 [17:14:45]RAPDU: 4C 37 1B 8F FF DF 81 38 90 00 [17:14:45]wFMCommunicate OK [17:14:45]SAM_PROTO_SignData done [17:14:45]FM_MakeSignedData done [17:14:45]CreateOFDProtocolMessage [17:14:45]wFMCommunicate request_size=4 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 11 00 00 [17:14:45]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 17 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 13 [17:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:14:45]wFMCommunicate OK [17:14:45]CreateOFDProtocolMessage done [17:14:45]OFDSenderStorePacket 118163 [17:14:45]StoreOFDPacket docnum=118163 [17:14:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 36 9B 07 01 BD 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 84 69 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CD 01 00 35 04 06 00 07 4A 58 87 95 9D 4C 37 1B 8F FF DF 81 38 [17:14:45]CheckFolder [17:14:45]dirname=/storage/ofd_packets [17:14:45]CheckFolder done [17:14:45]ProducePacketName [17:14:45]name=ofd_packets/00118163 [17:14:45]NVStorageSaveData ofd_packets/00118163 [17:14:45]File name is /storage/ofd_packets/00118163 [17:14:45]Write 301 bytes [17:14:45]NVStorageSaveData done [17:14:45]OFDSenderStorePacket done [17:14:45]KKMCreateOFDPacket done [17:14:45]NVStorageSaveData kkm_last_timestamp [17:14:45]File name is /storage/kkm_last_timestamp [17:14:45]Write 4 bytes [17:14:45]NVStorageSaveData done [17:14:45]ExternCall_PrintAddStr [17:14:45]wPrintStart [17:14:45]Write to MH i2c: 01 00 00 3D 06 43 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: 01 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: 01 07 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [17:14:45]RasterBufferAndPrint [17:14:45]line Счет N : (1)245964 [17:14:45]line ИНН: 02508201610067 [17:14:45]line Контрольно-Кассовый Чек [17:14:45]line ПРОДАЖА [17:14:45]line ТРК (МРК, ГНК) : 11 [17:14:45]line Товар: 2710124130 [17:14:45]line Аи-92-К-2 [17:14:45]line 4.040 * 66.90 [17:14:45]line = 270.28 [17:14:45]line НДС 12% НСП 1% [17:14:45]line > о реализуемом товаре [17:14:45]line ОКРУГЛЕНИЕ: -0.28 [17:14:45]line ИТОГО: 270.00 [17:14:45]line Внесено: 270.00 [17:14:45]line СДАЧА: 0.00 [17:14:45]line НСП 1% : 2.39 [17:14:45]line НДС 12% : 28.70 [17:14:45]line Наличными: 270.00 [17:14:45]line Безнал.: 0.00 [17:14:45]line Место: АЗС № 173 "Партнер Нефть" [17:14:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:14:45]line СНО: Общий режим [17:14:45]line Чек 223 30.10.2024 17:14 [17:14:45]line Смена: 545 ФФД: 1.0 [17:14:45]line ЗНМ: 0300000115 [17:14:45]line РНМ: 0000000000091782 [17:14:45]line Версия ККМ: 001 [17:14:45]line ФМ: 0000000000871767 [17:14:45]line ФД: 118163 [17:14:45]line ФПД: 8015894255005 [17:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171444&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118163&fm=8015894255005&tin=02508201610067®Number=0000000000091782&sum=27000 [17:14:45]written 0, free lines is 4095 [17:14:45]OFD Sender: Processing packet 118163 [packets to send 77, broken 76] [17:14:45]ProducePacketName [17:14:45]name=ofd_packets/00118163 [17:14:45]OFD Sender: To server: pG, [17:14:45]CommunicateWithHost lk.salyk.kg:30040 [17:14:45]ConnectInit lk.salyk.kg [17:14:45]Connected sock=10 [17:14: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 36 37 0F 01 00 00 36 9B 07 01 BD 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 84 69 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CD 01 00 35 04 06 00 07 4A 58 87 95 9D 4C 37 1B 8F FF DF 81 38 [17:14: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 36 37 4F 00 00 00 33 B3 47 00 C1 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 93 CD 01 00 F4 03 04 00 3A 15 22 67 B6 04 01 00 00 8D DB 5D 2A F2 6E 2B 96 [17:14:45]CommunicateWithHost err = 0 [17:14:45]CheckOFDResponse [17:14:45]1017 (14) - 77093643461234 [17:14:45]1041 (16) - 0000000000871767 [17:14:45]1040 (4) - 118163 [17:14:45]1012 (4) - 30.10.2024 11:15 [17:14:45]1206 (1) - 0 [17:14:45]OFD Sender: Remove packet 118163 [17:14:45]ProducePacketName [17:14:45]name=ofd_packets/00118163 [17:14:45]NVStorageDeleteData [17:14:45]Write to MH i2c: 01 00 00 67 06 6D [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: 01 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: 01 07 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: 01 07 00 67 06 00 00 00 00 00 BE 0C 3E [17:14:45]RasterBufferAndPrint [17:14:45]line [17:14:45]line [17:14:45]line [17:14:45]line [17:14:45]line [17:14:45]written 0, free lines is 3268 [17:14:45]MH_Cut [17:14:45]Write to MH i2c: D1 01 00 6E 06 01 46 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: D1 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: D1 01 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: D1 01 00 6E 06 00 45 [17:14:45]Write to MH i2c: 01 00 00 6F 06 75 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:46]OFD Sender: No OFD packet to send [17:14:46]*** Cut start [17:14:46]*** Purtial cut [17:14:46]*** Stage 1: CUTSNS_PIN = 1 [17:14:46]Read from MH i2c: 01 [17:14:46]MH_I2C_Read... [17:14:46]*** Stop cut motor [17:14:46]*** Cut end [17:14:46]Read from MH i2c: 01 07 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: 01 07 00 6F 06 00 00 00 00 00 FF 0F 8A [17:14:46]process_action close_receipt done [17:14:46]requested_data is exist [17:14:46]produce_requested_data [17:14:46]requested_item fm.sn is exist - process it [17:14:46]wFMCommunicate request_size=4 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 11 00 00 [17:14:46]Write to MH i2c: E2 08 00 70 06 80 11 00 00 00 00 00 00 F0 [17:14:46]Write i2c OK [17:14:46]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 70 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 47 [17:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:14:47]wFMCommunicate OK [17:14:47]requested_item fd.num is exist - process it [17:14:47]SAM_PROTO_GetFieldsCounters [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 13 00 00 [17:14:47]Write to MH i2c: E2 08 00 71 06 80 13 00 00 00 00 00 00 F3 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 62 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 62 00 71 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 93 CD 01 00 0E 04 04 00 21 02 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 3B [17:14: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 93 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:47]wFMCommunicate OK [17:14:47]SAM_PROTO_GetFieldsCounters done [17:14:47]requested_item shift.num is exist - process it [17:14:47]requested_item shift.opened is exist - process it [17:14:47]req_shift_opened [17:14:47]FM_GetShiftState [17:14:47]SAM_PROTO_GetShiftState [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 13 01 00 [17:14:47]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:47]Read from MH i2c: E2 0E 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CD [17:14:47]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:14:47]wFMCommunicate OK [17:14:47]SAM_PROTO_GetShiftState done [17:14:47]FM_GetShiftState done [17:14:47]req_shift_opened done [17:14:47]requested_item shift.open_date is exist - process it [17:14:47]req_shift_open_date [17:14:47]req_shift_open_date done [17:14:47]produce_requested_data done [17:14:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118163,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:14:47]process_action_free close_receipt [17:14:47]json_value_free [17:14:47]json_value_free done [17:14:47]process_json_proto returns [17:14:47]Send response to host [17:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118163,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:14:47]free response buf [17:14:47]execute_script done [17:14:47]execute_script returns [17:14:47]free content buf [17:14:47]Sock 7.Close socket [17:14:47]Sock 7.Thread stoped [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24: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:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [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:42]accept exits with 9 [17:29:42]New connection [17:29:42]New thread 3067276644 created [17:29:42]Thread 3067133284 joined [17:29:42]Waiting for new connection... [17:29:42] Sock 9.Parse request [17:29:42]Sock 9.Check first char [17:29:42]Sock 9.First char is OK [17:29:42]request: POST /json_proto HTTP/1.0 [17:29:42]Method: POST [17:29:42]URL: /json_proto [17:29:42]Method is POST - this is cgi request [17:29:42]url: /json_proto [17:29:42]query_string will be loaded in cgi processing [17:29:42]execute_cgi json_proto POST (null) [17:29:42]execute_cgi path=json_proto method=POST [17:29:42]POST find Content-Length [17:29:42]Host: 172.17.96.67:8080 [17:29:42]Content-Length: 679 [17:29:42]Content-Type: application/json [17:29:42] [17:29:42]POST finish read [17:29:42]Found Content-Length = 679 [17:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [17:29:42]execute_script... [17:29:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [17:29:42]POST & json_proto [17:29:42]process_json_proto [17:29:42]json parsed OK: [17:29:42]protocol is kg_v1.0 [17:29:42]action value=close_receipt [17:29:42]process_action close_receipt [17:29:42]cmd_close_receipt [17:29:42]MH_GetDate [17:29:42]Write to MH i2c: F0 00 00 73 06 68 [17:29:42]Write i2c OK [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: F0 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: F0 09 00 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: F0 09 00 73 06 00 07 6D 22 67 47 6C 1F 67 A7 [17:29:42]GetLastDocTimeStamp 1730308484 [17:29:42]current date 1730309383 [17:29:42]FM_GetShiftState [17:29:42]SAM_PROTO_GetShiftState [17:29:42]wFMCommunicate request_size=4 [17:29:42]MH_SAM_APDU [17:29:42]CAPDU: 80 13 01 00 [17:29:42]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [17:29:43]Write i2c OK [17:29:43]MH_I2C_Read... [17:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:43]Read from MH i2c: E2 [17:29:43]MH_I2C_Read... [17:29:43]Read from MH i2c: E2 0E 00 [17:29:43]MH_I2C_Read... [17:29:43]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CF [17:29:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:29:43]wFMCommunicate OK [17:29:43]SAM_PROTO_GetShiftState done [17:29:43]FM_GetShiftState done [17:29:43]opened in 1730246605 [17:29:43]opened+sec_in_day 1730333005 [17:29:43]quantity*price = 100050 [17:29:43]sum+1 = 100052 [17:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 224 30.10.2024 17:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118164 ФПД: 130400791798035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118164&fm=130400791798035&tin=02508201610067®Number=0000000000091782&sum=100000 [17:29:44]StoreToDocumentArchive [17:29:44]shift 545 fd 118164 [17:29:44]save to /storage/0545/doc_00118164 [17:29:44]save last doc name /storage/0545/doc_00118164 to /storage/kkm_last_doc_name [17:29:44]save OK [17:29:44]Clear old archive folders... [17:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:29:44]tlvbuf is 0021B850 [17:29:44]SAM_PROTO_ClearQueue [17:29:44]wFMCommunicate request_size=4 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 09 00 00 [17:29:44]Write to MH i2c: E2 08 00 81 06 80 09 00 00 00 00 00 00 F9 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [17:29:44]RAPDU: 90 00 [17:29:44]wFMCommunicate OK [17:29:44]SAM_PROTO_ClearQueue done [17:29:44]KKMCreateOFDPacket [17:29:44]OFDProtocolAddRootSTLVToBuf [17:29:44]FM_MakeSignedData [17:29:44]FM_MakeSignedData [17:29:44]SAM_PROTO_SignData [17:29:44]wFMCommunicate request_size=4 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 0D 01 02 [17:29:44]Write to MH i2c: E2 08 00 82 06 80 0D 01 02 00 00 00 00 01 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [17:29:44]RAPDU: 90 00 [17:29:44]wFMCommunicate OK [17:29:44]wFMCommunicate request_size=255 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 07 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CD 01 00 35 04 06 00 76 99 4C DF [17:29:44]Write to MH i2c: E2 02 01 83 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 07 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CD 01 00 35 04 06 00 76 99 4C DF 00 00 25 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [17:29:44]RAPDU: 90 00 [17:29:44]wFMCommunicate OK [17:29:44]wFMCommunicate request_size=7 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 0D 02 02 02 A1 13 [17:29:44]Write to MH i2c: E2 0A 00 84 06 80 0D 02 02 02 00 A1 13 00 00 BC [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [17:29:44]RAPDU: 90 00 [17:29:44]wFMCommunicate OK [17:29:44]wFMCommunicate request_size=4 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 0D 03 02 [17:29:44]Write to MH i2c: E2 08 00 85 06 80 0D 03 02 00 00 00 00 06 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 0B 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 0B 00 85 06 00 F3 58 A6 7D 94 A9 2D EB 90 00 CA [17:29:44]RAPDU: F3 58 A6 7D 94 A9 2D EB 90 00 [17:29:44]wFMCommunicate OK [17:29:44]SAM_PROTO_SignData done [17:29:44]FM_MakeSignedData done [17:29:44]CreateOFDProtocolMessage [17:29:44]wFMCommunicate request_size=4 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 11 00 00 [17:29:44]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 17 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5D [17:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:29:44]wFMCommunicate OK [17:29:44]CreateOFDProtocolMessage done [17:29:44]OFDSenderStorePacket 118164 [17:29:44]StoreOFDPacket docnum=118164 [17:29:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 48 0B 04 01 49 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E0 00 00 00 F4 03 04 00 07 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CD 01 00 35 04 06 00 76 99 4C DF A1 13 F3 58 A6 7D 94 A9 2D EB [17:29:44]CheckFolder [17:29:44]dirname=/storage/ofd_packets [17:29:44]CheckFolder done [17:29:44]ProducePacketName [17:29:44]name=ofd_packets/00118164 [17:29:44]NVStorageSaveData ofd_packets/00118164 [17:29:44]File name is /storage/ofd_packets/00118164 [17:29:44]Write 298 bytes [17:29:44]NVStorageSaveData done [17:29:44]OFDSenderStorePacket done [17:29:44]KKMCreateOFDPacket done [17:29:44]NVStorageSaveData kkm_last_timestamp [17:29:44]File name is /storage/kkm_last_timestamp [17:29:44]Write 4 bytes [17:29:44]NVStorageSaveData done [17:29:44]ExternCall_PrintAddStr [17:29:44]wPrintStart [17:29:44]Write to MH i2c: 01 00 00 87 06 8D [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 87 06 00 00 00 00 00 FF 0F A2 [17:29:44]RasterBufferAndPrint [17:29:44]line Счет N : (1)245965 [17:29:44]line ИНН: 02508201610067 [17:29:44]line Контрольно-Кассовый Чек [17:29:44]line ПРОДАЖА [17:29:44]line ТРК (МРК, ГНК) : 23 [17:29:44]line Товар: 2710194210 [17:29:44]line ДТ-К-2 [17:29:44]line 13.130 * 76.20 [17:29:44]line = 1000.51 [17:29:44]line НДС 12% НСП 1% [17:29:44]line > о реализуемом товаре [17:29:44]line ОКРУГЛЕНИЕ: -0.51 [17:29:44]line ИТОГО: 1000.00 [17:29:44]line Внесено: 1000.00 [17:29:44]line СДАЧА: 0.00 [17:29:44]line НСП 1% : 8.85 [17:29:44]line НДС 12% : 106.25 [17:29:44]line Наличными: 1000.00 [17:29:44]line Безнал.: 0.00 [17:29:44]line Место: АЗС № 173 "Партнер Нефть" [17:29:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:29:44]line СНО: Общий режим [17:29:44]line Чек 224 30.10.2024 17:29 [17:29:44]line Смена: 545 ФФД: 1.0 [17:29:44]line ЗНМ: 0300000115 [17:29:44]line РНМ: 0000000000091782 [17:29:44]line Версия ККМ: 001 [17:29:44]line ФМ: 0000000000871767 [17:29:44]line ФД: 118164 [17:29:44]line ФПД: 130400791798035 [17:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172943&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118164&fm=130400791798035&tin=02508201610067®Number=0000000000091782&sum=100000 [17:29:45]OFD Sender: Processing packet 118164 [packets to send 77, broken 76] [17:29:45]ProducePacketName [17:29:45]name=ofd_packets/00118164 [17:29:45]OFD Sender: To server: pG, [17:29:45]CommunicateWithHost lk.salyk.kg:30040 [17:29:45]ConnectInit lk.salyk.kg [17:29:45]written 0, free lines is 4095 [17:29:45]Connected sock=10 [17:29: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 36 37 0C 01 00 00 48 0B 04 01 49 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E0 00 00 00 F4 03 04 00 07 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CD 01 00 35 04 06 00 76 99 4C DF A1 13 F3 58 A6 7D 94 A9 2D EB [17:29: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 36 37 4F 00 00 00 6D 35 47 00 BC F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 94 CD 01 00 F4 03 04 00 BE 18 22 67 B6 04 01 00 00 44 53 FC 8B BB 3B A3 A3 [17:29:45]CommunicateWithHost err = 0 [17:29:45]CheckOFDResponse [17:29:45]1017 (14) - 77093643461234 [17:29:45]1041 (16) - 0000000000871767 [17:29:45]1040 (4) - 118164 [17:29:45]1012 (4) - 30.10.2024 11:30 [17:29:45]1206 (1) - 0 [17:29:45]OFD Sender: Remove packet 118164 [17:29:45]ProducePacketName [17:29:45]name=ofd_packets/00118164 [17:29:45]NVStorageDeleteData [17:29:45]Write to MH i2c: 01 00 00 B1 06 B7 [17:29:45]Write i2c OK [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: 01 [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: 01 07 00 [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 B7 0C 81 [17:29:45]RasterBufferAndPrint [17:29:45]line [17:29:45]line [17:29:45]line [17:29:45]line [17:29:45]line [17:29:45]written 0, free lines is 3264 [17:29:45]MH_Cut [17:29:45]Write to MH i2c: D1 01 00 B8 06 01 90 [17:29:45]Write i2c OK [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: D1 [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: D1 01 00 [17:29:45]MH_I2C_Read... [17:29:45]Read from MH i2c: D1 01 00 B8 06 00 8F [17:29:45]Write to MH i2c: 01 00 00 B9 06 BF [17:29:45]Write i2c OK [17:29:45]MH_I2C_Read... [17:29:45]OFD Sender: No OFD packet to send [17:29:46]*** Cut start [17:29:46]*** Purtial cut [17:29:46]*** Stage 1: CUTSNS_PIN = 1 [17:29:46]Read from MH i2c: 01 [17:29:46]MH_I2C_Read... [17:29:46]*** Stop cut motor [17:29:46]Read from MH i2c: 01 07 00 [17:29:46]MH_I2C_Read... [17:29:46]*** Cut end [17:29:46]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 FF 0F D4 [17:29:46]process_action close_receipt done [17:29:46]requested_data is exist [17:29:46]produce_requested_data [17:29:46]requested_item fm.sn is exist - process it [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 11 00 00 [17:29:46]Write to MH i2c: E2 08 00 BA 06 80 11 00 00 00 00 00 00 3A [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 17 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 17 00 BA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 91 [17:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:29:46]wFMCommunicate OK [17:29:46]requested_item fd.num is exist - process it [17:29:46]SAM_PROTO_GetFieldsCounters [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 13 00 00 [17:29:46]Write to MH i2c: E2 08 00 BB 06 80 13 00 00 00 00 00 00 3D [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 62 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 62 00 BB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 94 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [17:29: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 94 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:46]wFMCommunicate OK [17:29:46]SAM_PROTO_GetFieldsCounters done [17:29:46]requested_item shift.num is exist - process it [17:29:46]requested_item shift.opened is exist - process it [17:29:46]req_shift_opened [17:29:46]FM_GetShiftState [17:29:46]SAM_PROTO_GetShiftState [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 13 01 00 [17:29:46]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 0E 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 17 [17:29:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:29:46]wFMCommunicate OK [17:29:46]SAM_PROTO_GetShiftState done [17:29:46]FM_GetShiftState done [17:29:46]req_shift_opened done [17:29:46]requested_item shift.open_date is exist - process it [17:29:46]req_shift_open_date [17:29:46]req_shift_open_date done [17:29:46]produce_requested_data done [17:29:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118164,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:29:46]process_action_free close_receipt [17:29:46]json_value_free [17:29:46]json_value_free done [17:29:46]process_json_proto returns [17:29:46]Send response to host [17:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118164,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:29:46]free response buf [17:29:46]execute_script done [17:29:46]execute_script returns [17:29:46]free content buf [17:29:46]Sock 9.Close socket [17:29:46]Sock 9.Thread stoped [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:52]accept exits with 7 [17:30:52]New connection [17:30:52]New thread 3067133284 created [17:30:52]Thread 3067276644 joined [17:30:52]Waiting for new connection... [17:30:52] Sock 7.Parse request [17:30:52]Sock 7.Check first char [17:30:52]Sock 7.First char is OK [17:30:52]request: POST /json_proto HTTP/1.0 [17:30:52]Method: POST [17:30:52]URL: /json_proto [17:30:52]Method is POST - this is cgi request [17:30:52]url: /json_proto [17:30:52]query_string will be loaded in cgi processing [17:30:52]execute_cgi json_proto POST (null) [17:30:52]execute_cgi path=json_proto method=POST [17:30:52]POST find Content-Length [17:30:52]Host: 172.17.96.67:8080 [17:30:52]Content-Length: 677 [17:30:52]Content-Type: application/json [17:30:52] [17:30:52]POST finish read [17:30:52]Found Content-Length = 677 [17:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:30:52]execute_script... [17:30: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)245966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:30:52]POST & json_proto [17:30:52]process_json_proto [17:30:52]json parsed OK: [17:30:52]protocol is kg_v1.0 [17:30:52]action value=close_receipt [17:30:52]process_action close_receipt [17:30:52]cmd_close_receipt [17:30:52]MH_GetDate [17:30:52]Write to MH i2c: F0 00 00 BD 06 B2 [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: F0 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: F0 09 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: F0 09 00 BD 06 00 4C 6D 22 67 47 6C 1F 67 36 [17:30:52]GetLastDocTimeStamp 1730309383 [17:30:52]current date 1730309452 [17:30:52]FM_GetShiftState [17:30:52]SAM_PROTO_GetShiftState [17:30:52]wFMCommunicate request_size=4 [17:30:52]MH_SAM_APDU [17:30:52]CAPDU: 80 13 01 00 [17:30:52]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:52]Read from MH i2c: E2 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 0E 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 19 [17:30:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:30:52]wFMCommunicate OK [17:30:52]SAM_PROTO_GetShiftState done [17:30:52]FM_GetShiftState done [17:30:52]opened in 1730246605 [17:30:52]opened+sec_in_day 1730333005 [17:30:52]quantity*price = 40006 [17:30:52]sum+1 = 40007 [17:30: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 225 30.10.2024 17:30 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118165 ФПД: 153185107882791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173052&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118165&fm=153185107882791&tin=02508201610067®Number=0000000000091782&sum=40000 [17:30:53]StoreToDocumentArchive [17:30:53]shift 545 fd 118165 [17:30:53]save to /storage/0545/doc_00118165 [17:30:53]save last doc name /storage/0545/doc_00118165 to /storage/kkm_last_doc_name [17:30:53]save OK [17:30:53]Clear old archive folders... [17:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:53]tlvbuf is 001C6C60 [17:30:53]SAM_PROTO_ClearQueue [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 09 00 00 [17:30:53]Write to MH i2c: E2 08 00 CB 06 80 09 00 00 00 00 00 00 43 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [17:30:53]RAPDU: 90 00 [17:30:53]wFMCommunicate OK [17:30:53]SAM_PROTO_ClearQueue done [17:30:53]KKMCreateOFDPacket [17:30:53]OFDProtocolAddRootSTLVToBuf [17:30:53]FM_MakeSignedData [17:30:53]FM_MakeSignedData [17:30:53]SAM_PROTO_SignData [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 0D 01 02 [17:30:53]Write to MH i2c: E2 08 00 CC 06 80 0D 01 02 00 00 00 00 4B [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [17:30:53]RAPDU: 90 00 [17:30:53]wFMCommunicate OK [17:30:53]wFMCommunicate request_size=255 [17:30:53]MH_SAM_APDU [17:30: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 32 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 E1 00 00 00 F4 03 04 00 4C 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CD 01 00 35 04 06 00 8B [17:30:53]Write to MH i2c: E2 02 01 CD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E1 00 00 00 F4 03 04 00 4C 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CD 01 00 35 04 06 00 8B 00 00 E0 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [17:30:53]RAPDU: 90 00 [17:30:53]wFMCommunicate OK [17:30:53]wFMCommunicate request_size=10 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 0D 02 02 05 52 2F F0 B3 27 [17:30:53]Write to MH i2c: E2 0D 00 CE 06 80 0D 02 02 05 00 52 2F F0 B3 27 00 00 A3 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [17:30:53]RAPDU: 90 00 [17:30:53]wFMCommunicate OK [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 0D 03 02 [17:30:53]Write to MH i2c: E2 08 00 CF 06 80 0D 03 02 00 00 00 00 50 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 0B 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 0B 00 CF 06 00 D7 53 B9 B9 F0 0A 25 C5 90 00 D1 [17:30:53]RAPDU: D7 53 B9 B9 F0 0A 25 C5 90 00 [17:30:53]wFMCommunicate OK [17:30:53]SAM_PROTO_SignData done [17:30:53]FM_MakeSignedData done [17:30:53]CreateOFDProtocolMessage [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 11 00 00 [17:30:53]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 17 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A7 [17:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:30:53]wFMCommunicate OK [17:30:53]CreateOFDProtocolMessage done [17:30:53]OFDSenderStorePacket 118165 [17:30:53]StoreOFDPacket docnum=118165 [17:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 47 AE 07 01 4C 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 32 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 E1 00 00 00 F4 03 04 00 4C 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CD 01 00 35 04 06 00 8B 52 2F F0 B3 27 D7 53 B9 B9 F0 0A 25 C5 [17:30:53]CheckFolder [17:30:53]dirname=/storage/ofd_packets [17:30:53]CheckFolder done [17:30:53]ProducePacketName [17:30:53]name=ofd_packets/00118165 [17:30:53]NVStorageSaveData ofd_packets/00118165 [17:30:53]File name is /storage/ofd_packets/00118165 [17:30:53]Write 301 bytes [17:30:53]NVStorageSaveData done [17:30:53]OFDSenderStorePacket done [17:30:53]KKMCreateOFDPacket done [17:30:53]NVStorageSaveData kkm_last_timestamp [17:30:53]File name is /storage/kkm_last_timestamp [17:30:53]Write 4 bytes [17:30:53]NVStorageSaveData done [17:30:53]ExternCall_PrintAddStr [17:30:53]wPrintStart [17:30:53]Write to MH i2c: 01 00 00 D1 06 D7 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: 01 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: 01 07 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [17:30:53]RasterBufferAndPrint [17:30:53]line Счет N : (1)245966 [17:30:53]line ИНН: 02508201610067 [17:30:53]line Контрольно-Кассовый Чек [17:30:53]line ПРОДАЖА [17:30:53]line ТРК (МРК, ГНК) : 21 [17:30:53]line Товар: 2710124130 [17:30:53]line Аи-92-К-2 [17:30:53]line 5.980 * 66.90 [17:30:53]line = 400.06 [17:30:53]line НДС 12% НСП 1% [17:30:53]line > о реализуемом товаре [17:30:53]line ОКРУГЛЕНИЕ: -0.06 [17:30:53]line ИТОГО: 400.00 [17:30:53]line Внесено: 400.00 [17:30:53]line СДАЧА: 0.00 [17:30:53]line НСП 1% : 3.54 [17:30:53]line НДС 12% : 42.48 [17:30:53]line Наличными: 400.00 [17:30:53]line Безнал.: 0.00 [17:30:53]line Место: АЗС № 173 "Партнер Нефть" [17:30:53]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:30:53]line СНО: Общий режим [17:30:53]line Чек 225 30.10.2024 17:30 [17:30:53]line Смена: 545 ФФД: 1.0 [17:30:53]line ЗНМ: 0300000115 [17:30:53]line РНМ: 0000000000091782 [17:30:53]line Версия ККМ: 001 [17:30:53]line ФМ: 0000000000871767 [17:30:53]line ФД: 118165 [17:30:53]line ФПД: 153185107882791 [17:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173052&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118165&fm=153185107882791&tin=02508201610067®Number=0000000000091782&sum=40000 [17:30:54]written 0, free lines is 4095 [17:30:54]OFD Sender: Processing packet 118165 [packets to send 77, broken 76] [17:30:54]ProducePacketName [17:30:54]name=ofd_packets/00118165 [17:30:54]OFD Sender: To server: pG, [17:30:54]CommunicateWithHost lk.salyk.kg:30040 [17:30:54]ConnectInit lk.salyk.kg [17:30:54]Connected sock=10 [17:30: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 36 37 0F 01 00 00 47 AE 07 01 4C 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 32 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 E1 00 00 00 F4 03 04 00 4C 6D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 95 CD 01 00 35 04 06 00 8B 52 2F F0 B3 27 D7 53 B9 B9 F0 0A 25 C5 [17:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 82 A2 47 00 C7 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 36 37 10 04 04 00 95 CD 01 00 F4 03 04 00 03 19 22 67 B6 04 01 00 00 F6 BB CD 76 F7 6B 6D 3E [17:30:54]CommunicateWithHost err = 0 [17:30:54]CheckOFDResponse [17:30:54]1017 (14) - 77093643461234 [17:30:54]1041 (16) - 0000000000871767 [17:30:54]1040 (4) - 118165 [17:30:54]1012 (4) - 30.10.2024 11:31 [17:30:54]1206 (1) - 0 [17:30:54]OFD Sender: Remove packet 118165 [17:30:54]ProducePacketName [17:30:54]name=ofd_packets/00118165 [17:30:54]NVStorageDeleteData [17:30:54]Write to MH i2c: 01 00 00 FB 06 01 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: 01 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: 01 07 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: 01 07 00 FB 06 00 00 00 00 00 C6 0C DA [17:30:54]RasterBufferAndPrint [17:30:54]line [17:30:54]line [17:30:54]line [17:30:54]line [17:30:54]line [17:30:54]written 0, free lines is 3275 [17:30:54]MH_Cut [17:30:54]Write to MH i2c: D1 01 00 02 07 01 DB [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: D1 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: D1 01 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: D1 01 00 02 07 00 DA [17:30:54]Write to MH i2c: 01 00 00 03 07 0A [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]OFD Sender: No OFD packet to send [17:30:55]*** Cut start [17:30:55]*** Purtial cut [17:30:55]*** Stage 1: CUTSNS_PIN = 1 [17:30:55]Read from MH i2c: 01 [17:30:55]MH_I2C_Read... [17:30:55]*** Stop cut motor [17:30:55]*** Cut end [17:30:55]Read from MH i2c: 01 07 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 FF 0F 1F [17:30:55]process_action close_receipt done [17:30:55]requested_data is exist [17:30:55]produce_requested_data [17:30:55]requested_item fm.sn is exist - process it [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 11 00 00 [17:30:55]Write to MH i2c: E2 08 00 04 07 80 11 00 00 00 00 00 00 85 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 17 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 17 00 04 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DC [17:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:30:55]wFMCommunicate OK [17:30:55]requested_item fd.num is exist - process it [17:30:55]SAM_PROTO_GetFieldsCounters [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 13 00 00 [17:30:55]Write to MH i2c: E2 08 00 05 07 80 13 00 00 00 00 00 00 88 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 62 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 62 00 05 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 95 CD 01 00 0E 04 04 00 21 02 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 D8 [17:30:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 95 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:55]wFMCommunicate OK [17:30:55]SAM_PROTO_GetFieldsCounters done [17:30:55]requested_item shift.num is exist - process it [17:30:55]requested_item shift.opened is exist - process it [17:30:55]req_shift_opened [17:30:55]FM_GetShiftState [17:30:55]SAM_PROTO_GetShiftState [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 13 01 00 [17:30:55]Write to MH i2c: E2 08 00 06 07 80 13 01 00 00 00 00 00 8A [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 0E 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 0E 00 06 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 62 [17:30:55]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:30:55]wFMCommunicate OK [17:30:55]SAM_PROTO_GetShiftState done [17:30:55]FM_GetShiftState done [17:30:55]req_shift_opened done [17:30:55]requested_item shift.open_date is exist - process it [17:30:55]req_shift_open_date [17:30:55]req_shift_open_date done [17:30:55]produce_requested_data done [17:30:55]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118165,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:30:55]process_action_free close_receipt [17:30:55]json_value_free [17:30:55]json_value_free done [17:30:55]process_json_proto returns [17:30:55]Send response to host [17:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118165,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:30:55]free response buf [17:30:55]execute_script done [17:30:55]execute_script returns [17:30:55]free content buf [17:30:55]Sock 7.Close socket [17:30:55]Sock 7.Thread stoped [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:33]accept exits with 9 [17:36:33]New connection [17:36:33]New thread 3067276644 created [17:36:33]Thread 3067133284 joined [17:36:33]Waiting for new connection... [17:36:33] Sock 9.Parse request [17:36:33]Sock 9.Check first char [17:36:33]Sock 9.First char is OK [17:36:33]request: POST /json_proto HTTP/1.0 [17:36:33]Method: POST [17:36:33]URL: /json_proto [17:36:33]Method is POST - this is cgi request [17:36:33]url: /json_proto [17:36:33]query_string will be loaded in cgi processing [17:36:33]execute_cgi json_proto POST (null) [17:36:33]execute_cgi path=json_proto method=POST [17:36:33]POST find Content-Length [17:36:33]Host: 172.17.96.67:8080 [17:36:33]Content-Length: 677 [17:36:33]Content-Type: application/json [17:36:33] [17:36:33]POST finish read [17:36:33]Found Content-Length = 677 [17:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:36:33]execute_script... [17:36:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:36:33]POST & json_proto [17:36:33]process_json_proto [17:36:33]json parsed OK: [17:36:33]protocol is kg_v1.0 [17:36:33]action value=close_receipt [17:36:33]process_action close_receipt [17:36:33]cmd_close_receipt [17:36:33]MH_GetDate [17:36:33]Write to MH i2c: F0 00 00 07 07 FD [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 09 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 09 00 07 07 00 A2 6E 22 67 47 6C 1F 67 D8 [17:36:33]GetLastDocTimeStamp 1730309452 [17:36:33]current date 1730309794 [17:36:33]FM_GetShiftState [17:36:33]SAM_PROTO_GetShiftState [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 01 00 [17:36:33]Write to MH i2c: E2 08 00 08 07 80 13 01 00 00 00 00 00 8C [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 08 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 64 [17:36:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_GetShiftState done [17:36:33]FM_GetShiftState done [17:36:33]opened in 1730246605 [17:36:33]opened+sec_in_day 1730333005 [17:36:33]quantity*price = 60009 [17:36:33]sum+1 = 60010 [17:36:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 226 30.10.2024 17:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118166 ФПД: 176602018032639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118166&fm=176602018032639&tin=02508201610067®Number=0000000000091782&sum=60000 [17:36:34]StoreToDocumentArchive [17:36:34]shift 545 fd 118166 [17:36:34]save to /storage/0545/doc_00118166 [17:36:34]save last doc name /storage/0545/doc_00118166 to /storage/kkm_last_doc_name [17:36:34]save OK [17:36:34]Clear old archive folders... [17:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:34]tlvbuf is B6EF7240 [17:36:34]SAM_PROTO_ClearQueue [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 09 00 00 [17:36:34]Write to MH i2c: E2 08 00 15 07 80 09 00 00 00 00 00 00 8E [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [17:36:34]RAPDU: 90 00 [17:36:34]wFMCommunicate OK [17:36:34]SAM_PROTO_ClearQueue done [17:36:34]KKMCreateOFDPacket [17:36:34]OFDProtocolAddRootSTLVToBuf [17:36:34]FM_MakeSignedData [17:36:34]FM_MakeSignedData [17:36:34]SAM_PROTO_SignData [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 0D 01 02 [17:36:34]Write to MH i2c: E2 08 00 16 07 80 0D 01 02 00 00 00 00 96 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [17:36:34]RAPDU: 90 00 [17:36:34]wFMCommunicate OK [17:36:34]wFMCommunicate request_size=255 [17:36:34]MH_SAM_APDU [17:36: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 32 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 E2 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CD 01 00 35 04 06 00 A0 [17:36:34]Write to MH i2c: E2 02 01 17 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E2 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CD 01 00 35 04 06 00 A0 00 00 A7 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=10 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 02 02 05 9E 5C 8D 2B FF [17:36:35]Write to MH i2c: E2 0D 00 18 07 80 0D 02 02 05 00 9E 5C 8D 2B FF 00 00 54 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 03 02 [17:36:35]Write to MH i2c: E2 08 00 19 07 80 0D 03 02 00 00 00 00 9B [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 19 07 00 3C D2 92 15 9B D6 4E A8 90 00 B8 [17:36:35]RAPDU: 3C D2 92 15 9B D6 4E A8 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_SignData done [17:36:35]FM_MakeSignedData done [17:36:35]CreateOFDProtocolMessage [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 11 00 00 [17:36:35]Write to MH i2c: E2 08 00 1A 07 80 11 00 00 00 00 00 00 9B [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]OFD Sender: No OFD packet to send [17:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 1A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F2 [17:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:36:35]wFMCommunicate OK [17:36:35]CreateOFDProtocolMessage done [17:36:35]OFDSenderStorePacket 118166 [17:36:35]StoreOFDPacket docnum=118166 [17:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 23 E8 07 01 04 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E2 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CD 01 00 35 04 06 00 A0 9E 5C 8D 2B FF 3C D2 92 15 9B D6 4E A8 [17:36:35]CheckFolder [17:36:35]dirname=/storage/ofd_packets [17:36:35]CheckFolder done [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00118166 [17:36:35]NVStorageSaveData ofd_packets/00118166 [17:36:35]File name is /storage/ofd_packets/00118166 [17:36:35]Write 301 bytes [17:36:35]NVStorageSaveData done [17:36:35]OFDSenderStorePacket done [17:36:35]KKMCreateOFDPacket done [17:36:35]NVStorageSaveData kkm_last_timestamp [17:36:35]File name is /storage/kkm_last_timestamp [17:36:35]Write 4 bytes [17:36:35]NVStorageSaveData done [17:36:35]ExternCall_PrintAddStr [17:36:35]wPrintStart [17:36:35]Write to MH i2c: 01 00 00 1B 07 22 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 1B 07 00 00 00 00 00 FF 0F 37 [17:36:35]RasterBufferAndPrint [17:36:35]line Счет N : (1)245967 [17:36:35]line ИНН: 02508201610067 [17:36:35]line Контрольно-Кассовый Чек [17:36:35]line ПРОДАЖА [17:36:35]line ТРК (МРК, ГНК) : 11 [17:36:35]line Товар: 2710124130 [17:36:35]line Аи-92-К-2 [17:36:35]line 8.970 * 66.90 [17:36:35]line = 600.09 [17:36:35]line НДС 12% НСП 1% [17:36:35]line > о реализуемом товаре [17:36:35]line ОКРУГЛЕНИЕ: -0.09 [17:36:35]line ИТОГО: 600.00 [17:36:35]line Внесено: 600.00 [17:36:35]line СДАЧА: 0.00 [17:36:35]line НСП 1% : 5.31 [17:36:35]line НДС 12% : 63.73 [17:36:35]line Наличными: 600.00 [17:36:35]line Безнал.: 0.00 [17:36:35]line Место: АЗС № 173 "Партнер Нефть" [17:36:35]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:36:35]line СНО: Общий режим [17:36:35]line Чек 226 30.10.2024 17:36 [17:36:35]line Смена: 545 ФФД: 1.0 [17:36:35]line ЗНМ: 0300000115 [17:36:35]line РНМ: 0000000000091782 [17:36:35]line Версия ККМ: 001 [17:36:35]line ФМ: 0000000000871767 [17:36:35]line ФД: 118166 [17:36:35]line ФПД: 176602018032639 [17:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118166&fm=176602018032639&tin=02508201610067®Number=0000000000091782&sum=60000 [17:36:35]OFD Sender: Processing packet 118166 [packets to send 77, broken 76] [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00118166 [17:36:35]OFD Sender: To server: pG, [17:36:35]CommunicateWithHost lk.salyk.kg:30040 [17:36:35]ConnectInit lk.salyk.kg [17:36:35]written 0, free lines is 4095 [17:36:35]Connected sock=10 [17:36: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 36 37 0F 01 00 00 23 E8 07 01 04 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E2 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CD 01 00 35 04 06 00 A0 9E 5C 8D 2B FF 3C D2 92 15 9B D6 4E A8 [17:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 57 E1 47 00 A6 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 96 CD 01 00 F4 03 04 00 59 1A 22 67 B6 04 01 00 00 41 6E 93 92 E8 6E 86 7B [17:36:36]CommunicateWithHost err = 0 [17:36:36]CheckOFDResponse [17:36:36]1017 (14) - 77093643461234 [17:36:36]1041 (16) - 0000000000871767 [17:36:36]1040 (4) - 118166 [17:36:36]1012 (4) - 30.10.2024 11:36 [17:36:36]1206 (1) - 0 [17:36:36]OFD Sender: Remove packet 118166 [17:36:36]ProducePacketName [17:36:36]name=ofd_packets/00118166 [17:36:36]NVStorageDeleteData [17:36:36]Write to MH i2c: 01 00 00 45 07 4C [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 45 07 00 00 00 00 00 C0 0C 1F [17:36:36]RasterBufferAndPrint [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]written 0, free lines is 3270 [17:36:36]MH_Cut [17:36:36]Write to MH i2c: D1 01 00 4C 07 01 25 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 4C 07 00 24 [17:36:36]Write to MH i2c: 01 00 00 4D 07 54 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]OFD Sender: No OFD packet to send [17:36:36]*** Cut start [17:36:36]*** Purtial cut [17:36:36]*** Stage 1: CUTSNS_PIN = 1 [17:36:37]Read from MH i2c: 01 [17:36:37]MH_I2C_Read... [17:36:37]*** Stop cut motor [17:36:37]*** Cut end [17:36:37]Read from MH i2c: 01 07 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 FF 0F 69 [17:36:37]process_action close_receipt done [17:36:37]requested_data is exist [17:36:37]produce_requested_data [17:36:37]requested_item fm.sn is exist - process it [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 11 00 00 [17:36:37]Write to MH i2c: E2 08 00 4E 07 80 11 00 00 00 00 00 00 CF [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 17 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 17 00 4E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 26 [17:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:36:37]wFMCommunicate OK [17:36:37]requested_item fd.num is exist - process it [17:36:37]SAM_PROTO_GetFieldsCounters [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 13 00 00 [17:36:37]Write to MH i2c: E2 08 00 4F 07 80 13 00 00 00 00 00 00 D2 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 62 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 62 00 4F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 96 CD 01 00 0E 04 04 00 21 02 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 26 [17:36: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 96 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:37]wFMCommunicate OK [17:36:37]SAM_PROTO_GetFieldsCounters done [17:36:37]requested_item shift.num is exist - process it [17:36:37]requested_item shift.opened is exist - process it [17:36:37]req_shift_opened [17:36:37]FM_GetShiftState [17:36:37]SAM_PROTO_GetShiftState [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 13 01 00 [17:36:37]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 0E 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AC [17:36:37]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:36:37]wFMCommunicate OK [17:36:37]SAM_PROTO_GetShiftState done [17:36:37]FM_GetShiftState done [17:36:37]req_shift_opened done [17:36:37]requested_item shift.open_date is exist - process it [17:36:37]req_shift_open_date [17:36:37]req_shift_open_date done [17:36:37]produce_requested_data done [17:36:37]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118166,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:36:37]process_action_free close_receipt [17:36:37]json_value_free [17:36:37]json_value_free done [17:36:37]process_json_proto returns [17:36:37]Send response to host [17:36:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118166,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:36:37]free response buf [17:36:37]execute_script done [17:36:37]execute_script returns [17:36:37]free content buf [17:36:37]Sock 9.Close socket [17:36:37]Sock 9.Thread stoped [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:22]accept exits with 7 [17:40:22]New connection [17:40:22]New thread 3067133284 created [17:40:22]Thread 3067276644 joined [17:40:22]Waiting for new connection... [17:40:22] Sock 7.Parse request [17:40:22]Sock 7.Check first char [17:40:22]Sock 7.First char is OK [17:40:22]request: POST /json_proto HTTP/1.0 [17:40:22]Method: POST [17:40:22]URL: /json_proto [17:40:22]Method is POST - this is cgi request [17:40:22]url: /json_proto [17:40:22]query_string will be loaded in cgi processing [17:40:22]execute_cgi json_proto POST (null) [17:40:22]execute_cgi path=json_proto method=POST [17:40:22]POST find Content-Length [17:40:22]Host: 172.17.96.67:8080 [17:40:22]Content-Length: 677 [17:40:22]Content-Type: application/json [17:40:22] [17:40:22]POST finish read [17:40:22]Found Content-Length = 677 [17:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:40:22]execute_script... [17:40: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)245968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:40:22]POST & json_proto [17:40:22]process_json_proto [17:40:22]json parsed OK: [17:40:22]protocol is kg_v1.0 [17:40:22]action value=close_receipt [17:40:22]process_action close_receipt [17:40:22]cmd_close_receipt [17:40:22]MH_GetDate [17:40:22]Write to MH i2c: F0 00 00 51 07 47 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: F0 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: F0 09 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: F0 09 00 51 07 00 86 6F 22 67 47 6C 1F 67 07 [17:40:22]GetLastDocTimeStamp 1730309794 [17:40:22]current date 1730310022 [17:40:22]FM_GetShiftState [17:40:22]SAM_PROTO_GetShiftState [17:40:22]wFMCommunicate request_size=4 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 13 01 00 [17:40:22]Write to MH i2c: E2 08 00 52 07 80 13 01 00 00 00 00 00 D6 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:22]Read from MH i2c: E2 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 0E 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 0E 00 52 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 AE [17:40:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:40:22]wFMCommunicate OK [17:40:22]SAM_PROTO_GetShiftState done [17:40:22]FM_GetShiftState done [17:40:22]opened in 1730246605 [17:40:22]opened+sec_in_day 1730333005 [17:40:22]quantity*price = 50041 [17:40:22]sum+1 = 50042 [17:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 227 30.10.2024 17:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118167 ФПД: 44673752736661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174022&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118167&fm=44673752736661&tin=02508201610067®Number=0000000000091782&sum=50000 [17:40:23]StoreToDocumentArchive [17:40:23]shift 545 fd 118167 [17:40:23]save to /storage/0545/doc_00118167 [17:40:23]save last doc name /storage/0545/doc_00118167 to /storage/kkm_last_doc_name [17:40:23]save OK [17:40:23]Clear old archive folders... [17:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:23]tlvbuf is 001C6840 [17:40:23]SAM_PROTO_ClearQueue [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 09 00 00 [17:40:23]Write to MH i2c: E2 08 00 5F 07 80 09 00 00 00 00 00 00 D8 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_ClearQueue done [17:40:23]KKMCreateOFDPacket [17:40:23]OFDProtocolAddRootSTLVToBuf [17:40:23]FM_MakeSignedData [17:40:23]FM_MakeSignedData [17:40:23]SAM_PROTO_SignData [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 01 02 [17:40:23]Write to MH i2c: E2 08 00 60 07 80 0D 01 02 00 00 00 00 E0 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=255 [17:40:23]MH_SAM_APDU [17:40: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 32 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 E3 00 00 00 F4 03 04 00 86 6F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CD 01 00 35 04 06 00 28 [17:40:23]Write to MH i2c: E2 02 01 61 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E3 00 00 00 F4 03 04 00 86 6F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CD 01 00 35 04 06 00 28 00 00 83 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=10 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 02 02 05 A1 6B 29 A3 95 [17:40:23]Write to MH i2c: E2 0D 00 62 07 80 0D 02 02 05 00 A1 6B 29 A3 95 00 00 5A [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 03 02 [17:40:23]Write to MH i2c: E2 08 00 63 07 80 0D 03 02 00 00 00 00 E5 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0B 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0B 00 63 07 00 DE 8A 41 D6 7A 56 1F E0 90 00 34 [17:40:23]RAPDU: DE 8A 41 D6 7A 56 1F E0 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_SignData done [17:40:23]FM_MakeSignedData done [17:40:23]CreateOFDProtocolMessage [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 11 00 00 [17:40:23]Write to MH i2c: E2 08 00 64 07 80 11 00 00 00 00 00 00 E5 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 64 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3C [17:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:40:23]wFMCommunicate OK [17:40:23]CreateOFDProtocolMessage done [17:40:23]OFDSenderStorePacket 118167 [17:40:23]StoreOFDPacket docnum=118167 [17:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 93 43 07 01 DF EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E3 00 00 00 F4 03 04 00 86 6F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CD 01 00 35 04 06 00 28 A1 6B 29 A3 95 DE 8A 41 D6 7A 56 1F E0 [17:40:23]CheckFolder [17:40:23]dirname=/storage/ofd_packets [17:40:23]CheckFolder done [17:40:23]ProducePacketName [17:40:23]name=ofd_packets/00118167 [17:40:23]NVStorageSaveData ofd_packets/00118167 [17:40:23]File name is /storage/ofd_packets/00118167 [17:40:23]Write 301 bytes [17:40:23]NVStorageSaveData done [17:40:23]OFDSenderStorePacket done [17:40:23]KKMCreateOFDPacket done [17:40:23]NVStorageSaveData kkm_last_timestamp [17:40:23]File name is /storage/kkm_last_timestamp [17:40:23]Write 4 bytes [17:40:23]NVStorageSaveData done [17:40:23]ExternCall_PrintAddStr [17:40:23]wPrintStart [17:40:23]Write to MH i2c: 01 00 00 65 07 6C [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 FF 0F 81 [17:40:23]RasterBufferAndPrint [17:40:23]line Счет N : (1)245968 [17:40:23]line ИНН: 02508201610067 [17:40:23]line Контрольно-Кассовый Чек [17:40:23]line ПРОДАЖА [17:40:23]line ТРК (МРК, ГНК) : 11 [17:40:23]line Товар: 2710124130 [17:40:23]line Аи-92-К-2 [17:40:23]line 7.480 * 66.90 [17:40:23]line = 500.41 [17:40:23]line НДС 12% НСП 1% [17:40:23]line > о реализуемом товаре [17:40:23]line ОКРУГЛЕНИЕ: -0.41 [17:40:23]line ИТОГО: 500.00 [17:40:23]line Внесено: 500.00 [17:40:23]line СДАЧА: 0.00 [17:40:23]line НСП 1% : 4.43 [17:40:23]line НДС 12% : 53.14 [17:40:23]line Наличными: 500.00 [17:40:23]line Безнал.: 0.00 [17:40:23]line Место: АЗС № 173 "Партнер Нефть" [17:40:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:40:23]line СНО: Общий режим [17:40:23]line Чек 227 30.10.2024 17:40 [17:40:23]line Смена: 545 ФФД: 1.0 [17:40:23]line ЗНМ: 0300000115 [17:40:23]line РНМ: 0000000000091782 [17:40:23]line Версия ККМ: 001 [17:40:23]line ФМ: 0000000000871767 [17:40:23]line ФД: 118167 [17:40:23]line ФПД: 44673752736661 [17:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174022&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118167&fm=44673752736661&tin=02508201610067®Number=0000000000091782&sum=50000 [17:40:24]written 0, free lines is 4095 [17:40:24]OFD Sender: Processing packet 118167 [packets to send 77, broken 76] [17:40:24]ProducePacketName [17:40:24]name=ofd_packets/00118167 [17:40:24]OFD Sender: To server: pG, [17:40:24]CommunicateWithHost lk.salyk.kg:30040 [17:40:24]ConnectInit lk.salyk.kg [17:40:24]Connected sock=9 [17:40: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 36 37 0F 01 00 00 93 43 07 01 DF EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E3 00 00 00 F4 03 04 00 86 6F 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 97 CD 01 00 35 04 06 00 28 A1 6B 29 A3 95 DE 8A 41 D6 7A 56 1F E0 [17:40: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 36 37 4F 00 00 00 12 3B 47 00 1A 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 36 37 10 04 04 00 97 CD 01 00 F4 03 04 00 3D 1B 22 67 B6 04 01 00 00 0A 51 AF 5B F3 90 A6 8B [17:40:24]CommunicateWithHost err = 0 [17:40:24]CheckOFDResponse [17:40:24]1017 (14) - 77093643461234 [17:40:24]1041 (16) - 0000000000871767 [17:40:24]1040 (4) - 118167 [17:40:24]1012 (4) - 30.10.2024 11:40 [17:40:24]1206 (1) - 0 [17:40:24]OFD Sender: Remove packet 118167 [17:40:24]ProducePacketName [17:40:24]name=ofd_packets/00118167 [17:40:24]NVStorageDeleteData [17:40:24]Write to MH i2c: 01 00 00 8F 07 96 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 BA 0C 63 [17:40:24]RasterBufferAndPrint [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]written 0, free lines is 3264 [17:40:24]MH_Cut [17:40:24]Write to MH i2c: D1 01 00 96 07 01 6F [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 96 07 00 6E [17:40:24]Write to MH i2c: 01 00 00 97 07 9E [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:25]OFD Sender: No OFD packet to send [17:40:25]*** Cut start [17:40:25]*** Purtial cut [17:40:25]*** Stage 1: CUTSNS_PIN = 1 [17:40:25]Read from MH i2c: 01 [17:40:25]MH_I2C_Read... [17:40:25]*** Stop cut motor [17:40:25]*** Cut end [17:40:25]Read from MH i2c: 01 07 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 FF 0F B3 [17:40:25]process_action close_receipt done [17:40:25]requested_data is exist [17:40:25]produce_requested_data [17:40:25]requested_item fm.sn is exist - process it [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 11 00 00 [17:40:25]Write to MH i2c: E2 08 00 98 07 80 11 00 00 00 00 00 00 19 [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 17 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 17 00 98 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 70 [17:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:40:25]wFMCommunicate OK [17:40:25]requested_item fd.num is exist - process it [17:40:25]SAM_PROTO_GetFieldsCounters [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 13 00 00 [17:40:25]Write to MH i2c: E2 08 00 99 07 80 13 00 00 00 00 00 00 1C [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 62 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 62 00 99 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 97 CD 01 00 0E 04 04 00 21 02 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 74 [17:40: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 97 CD 01 00 0E 04 04 00 21 02 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 [17:40:25]wFMCommunicate OK [17:40:25]SAM_PROTO_GetFieldsCounters done [17:40:25]requested_item shift.num is exist - process it [17:40:25]requested_item shift.opened is exist - process it [17:40:25]req_shift_opened [17:40:25]FM_GetShiftState [17:40:25]SAM_PROTO_GetShiftState [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 13 01 00 [17:40:25]Write to MH i2c: E2 08 00 9A 07 80 13 01 00 00 00 00 00 1E [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:26]Read from MH i2c: E2 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 0E 00 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 0E 00 9A 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F6 [17:40:26]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:40:26]wFMCommunicate OK [17:40:26]SAM_PROTO_GetShiftState done [17:40:26]FM_GetShiftState done [17:40:26]req_shift_opened done [17:40:26]requested_item shift.open_date is exist - process it [17:40:26]req_shift_open_date [17:40:26]req_shift_open_date done [17:40:26]produce_requested_data done [17:40:26]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118167,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:40:26]process_action_free close_receipt [17:40:26]json_value_free [17:40:26]json_value_free done [17:40:26]process_json_proto returns [17:40:26]Send response to host [17:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118167,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:40:26]free response buf [17:40:26]execute_script done [17:40:26]execute_script returns [17:40:26]free content buf [17:40:26]Sock 7.Close socket [17:40:26]Sock 7.Thread stoped [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:23]accept exits with 10 [17:43:23]New connection [17:43:23]New thread 3067276644 created [17:43:23]Thread 3067133284 joined [17:43:23]Waiting for new connection... [17:43:23] Sock 10.Parse request [17:43:23]Sock 10.Check first char [17:43:23]Sock 10.First char is OK [17:43:23]request: POST /json_proto HTTP/1.0 [17:43:23]Method: POST [17:43:23]URL: /json_proto [17:43:23]Method is POST - this is cgi request [17:43:23]url: /json_proto [17:43:23]query_string will be loaded in cgi processing [17:43:23]execute_cgi json_proto POST (null) [17:43:23]execute_cgi path=json_proto method=POST [17:43:23]POST find Content-Length [17:43:23]Host: 172.17.96.67:8080 [17:43:23]Content-Length: 677 [17:43:23]Content-Type: application/json [17:43:23] [17:43:23]POST finish read [17:43:23]Found Content-Length = 677 [17:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:23]execute_script... [17:43: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)245969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:23]POST & json_proto [17:43:23]process_json_proto [17:43:23]json parsed OK: [17:43:23]protocol is kg_v1.0 [17:43:23]action value=close_receipt [17:43:23]process_action close_receipt [17:43:23]cmd_close_receipt [17:43:23]MH_GetDate [17:43:23]Write to MH i2c: F0 00 00 9B 07 91 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: F0 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: F0 09 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: F0 09 00 9B 07 00 3B 70 22 67 47 6C 1F 67 07 [17:43:23]GetLastDocTimeStamp 1730310022 [17:43:23]current date 1730310203 [17:43:23]FM_GetShiftState [17:43:23]SAM_PROTO_GetShiftState [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 13 01 00 [17:43:23]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0E 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F8 [17:43:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:43:23]wFMCommunicate OK [17:43:23]SAM_PROTO_GetShiftState done [17:43:23]FM_GetShiftState done [17:43:23]opened in 1730246605 [17:43:23]opened+sec_in_day 1730333005 [17:43:23]quantity*price = 30038 [17:43:23]sum+1 = 30039 [17:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 228 30.10.2024 17:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118168 ФПД: 80189751118906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174323&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118168&fm=80189751118906&tin=02508201610067®Number=0000000000091782&sum=30000 [17:43:24]StoreToDocumentArchive [17:43:24]shift 545 fd 118168 [17:43:24]save to /storage/0545/doc_00118168 [17:43:24]save last doc name /storage/0545/doc_00118168 to /storage/kkm_last_doc_name [17:43:24]save OK [17:43:24]Clear old archive folders... [17:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:24]tlvbuf is 001C8140 [17:43:24]SAM_PROTO_ClearQueue [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 09 00 00 [17:43:24]Write to MH i2c: E2 08 00 A9 07 80 09 00 00 00 00 00 00 22 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 A9 07 00 90 00 24 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]SAM_PROTO_ClearQueue done [17:43:24]KKMCreateOFDPacket [17:43:24]OFDProtocolAddRootSTLVToBuf [17:43:24]FM_MakeSignedData [17:43:24]FM_MakeSignedData [17:43:24]SAM_PROTO_SignData [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 01 02 [17:43:24]Write to MH i2c: E2 08 00 AA 07 80 0D 01 02 00 00 00 00 2A [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]wFMCommunicate request_size=255 [17:43:24]MH_SAM_APDU [17:43: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 32 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 E4 00 00 00 F4 03 04 00 3B 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CD 01 00 35 04 06 00 48 [17:43:24]Write to MH i2c: E2 02 01 AB 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E4 00 00 00 F4 03 04 00 3B 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CD 01 00 35 04 06 00 48 00 00 99 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]wFMCommunicate request_size=10 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 02 02 05 EE A1 A1 4C 3A [17:43:24]Write to MH i2c: E2 0D 00 AC 07 80 0D 02 02 05 00 EE A1 A1 4C 3A 00 00 ED [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 03 02 [17:43:24]Write to MH i2c: E2 08 00 AD 07 80 0D 03 02 00 00 00 00 2F [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 0B 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 0B 00 AD 07 00 68 54 EC 9A 10 C8 8D 90 90 00 67 [17:43:25]RAPDU: 68 54 EC 9A 10 C8 8D 90 90 00 [17:43:25]wFMCommunicate OK [17:43:25]SAM_PROTO_SignData done [17:43:25]FM_MakeSignedData done [17:43:25]CreateOFDProtocolMessage [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 11 00 00 [17:43:25]Write to MH i2c: E2 08 00 AE 07 80 11 00 00 00 00 00 00 2F [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 17 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 17 00 AE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 86 [17:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:43:25]wFMCommunicate OK [17:43:25]CreateOFDProtocolMessage done [17:43:25]OFDSenderStorePacket 118168 [17:43:25]StoreOFDPacket docnum=118168 [17:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 89 8D 07 01 14 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E4 00 00 00 F4 03 04 00 3B 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CD 01 00 35 04 06 00 48 EE A1 A1 4C 3A 68 54 EC 9A 10 C8 8D 90 [17:43:25]CheckFolder [17:43:25]dirname=/storage/ofd_packets [17:43:25]CheckFolder done [17:43:25]ProducePacketName [17:43:25]name=ofd_packets/00118168 [17:43:25]NVStorageSaveData ofd_packets/00118168 [17:43:25]File name is /storage/ofd_packets/00118168 [17:43:25]Write 301 bytes [17:43:25]NVStorageSaveData done [17:43:25]OFDSenderStorePacket done [17:43:25]KKMCreateOFDPacket done [17:43:25]NVStorageSaveData kkm_last_timestamp [17:43:25]File name is /storage/kkm_last_timestamp [17:43:25]Write 4 bytes [17:43:25]NVStorageSaveData done [17:43:25]ExternCall_PrintAddStr [17:43:25]wPrintStart [17:43:25]Write to MH i2c: 01 00 00 AF 07 B6 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [17:43:25]RasterBufferAndPrint [17:43:25]line Счет N : (1)245969 [17:43:25]line ИНН: 02508201610067 [17:43:25]line Контрольно-Кассовый Чек [17:43:25]line ПРОДАЖА [17:43:25]line ТРК (МРК, ГНК) : 21 [17:43:25]line Товар: 2710124130 [17:43:25]line Аи-92-К-2 [17:43:25]line 4.490 * 66.90 [17:43:25]line = 300.38 [17:43:25]line НДС 12% НСП 1% [17:43:25]line > о реализуемом товаре [17:43:25]line ОКРУГЛЕНИЕ: -0.38 [17:43:25]line ИТОГО: 300.00 [17:43:25]line Внесено: 300.00 [17:43:25]line СДАЧА: 0.00 [17:43:25]line НСП 1% : 2.66 [17:43:25]line НДС 12% : 31.90 [17:43:25]line Наличными: 300.00 [17:43:25]line Безнал.: 0.00 [17:43:25]line Место: АЗС № 173 "Партнер Нефть" [17:43:25]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:43:25]line СНО: Общий режим [17:43:25]line Чек 228 30.10.2024 17:43 [17:43:25]line Смена: 545 ФФД: 1.0 [17:43:25]line ЗНМ: 0300000115 [17:43:25]line РНМ: 0000000000091782 [17:43:25]line Версия ККМ: 001 [17:43:25]line ФМ: 0000000000871767 [17:43:25]line ФД: 118168 [17:43:25]line ФПД: 80189751118906 [17:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174323&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118168&fm=80189751118906&tin=02508201610067®Number=0000000000091782&sum=30000 [17:43:25]written 0, free lines is 4095 [17:43:25]OFD Sender: Processing packet 118168 [packets to send 77, broken 76] [17:43:25]ProducePacketName [17:43:25]name=ofd_packets/00118168 [17:43:25]OFD Sender: To server: pG, [17:43:25]CommunicateWithHost lk.salyk.kg:30040 [17:43:25]ConnectInit lk.salyk.kg [17:43:25]Connected sock=9 [17:43: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 36 37 0F 01 00 00 89 8D 07 01 14 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E4 00 00 00 F4 03 04 00 3B 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 98 CD 01 00 35 04 06 00 48 EE A1 A1 4C 3A 68 54 EC 9A 10 C8 8D 90 [17:43: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 36 37 4F 00 00 00 7F 87 47 00 02 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 36 37 10 04 04 00 98 CD 01 00 F4 03 04 00 F2 1B 22 67 B6 04 01 00 00 0E F9 4D 0A FB 71 9C 0E [17:43:25]CommunicateWithHost err = 0 [17:43:25]CheckOFDResponse [17:43:25]1017 (14) - 77093643461234 [17:43:25]1041 (16) - 0000000000871767 [17:43:25]1040 (4) - 118168 [17:43:25]1012 (4) - 30.10.2024 11:43 [17:43:25]1206 (1) - 0 [17:43:25]OFD Sender: Remove packet 118168 [17:43:25]ProducePacketName [17:43:25]name=ofd_packets/00118168 [17:43:25]NVStorageDeleteData [17:43:25]Write to MH i2c: 01 00 00 D9 07 E0 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 B9 0C AC [17:43:25]RasterBufferAndPrint [17:43:25]line [17:43:25]line [17:43:25]line [17:43:25]line [17:43:25]line [17:43:25]written 0, free lines is 3266 [17:43:25]MH_Cut [17:43:25]Write to MH i2c: D1 01 00 E0 07 01 B9 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: D1 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: D1 01 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: D1 01 00 E0 07 00 B8 [17:43:25]Write to MH i2c: 01 00 00 E1 07 E8 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:26]OFD Sender: No OFD packet to send [17:43:26]*** Cut start [17:43:26]*** Purtial cut [17:43:26]*** Stage 1: CUTSNS_PIN = 1 [17:43:26]Read from MH i2c: 01 [17:43:26]MH_I2C_Read... [17:43:26]*** Stop cut motor [17:43:26]*** Cut end [17:43:26]Read from MH i2c: 01 07 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 FF 0F FD [17:43:26]process_action close_receipt done [17:43:26]requested_data is exist [17:43:26]produce_requested_data [17:43:26]requested_item fm.sn is exist - process it [17:43:26]wFMCommunicate request_size=4 [17:43:26]MH_SAM_APDU [17:43:26]CAPDU: 80 11 00 00 [17:43:26]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [17:43:26]Write i2c OK [17:43:26]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 17 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 17 00 E2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BA [17:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:43:27]wFMCommunicate OK [17:43:27]requested_item fd.num is exist - process it [17:43:27]SAM_PROTO_GetFieldsCounters [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 13 00 00 [17:43:27]Write to MH i2c: E2 08 00 E3 07 80 13 00 00 00 00 00 00 66 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 E3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 98 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:43: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 98 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetFieldsCounters done [17:43:27]requested_item shift.num is exist - process it [17:43:27]requested_item shift.opened is exist - process it [17:43:27]req_shift_opened [17:43:27]FM_GetShiftState [17:43:27]SAM_PROTO_GetShiftState [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 13 01 00 [17:43:27]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:27]Read from MH i2c: E2 0E 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 40 [17:43:27]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetShiftState done [17:43:27]FM_GetShiftState done [17:43:27]req_shift_opened done [17:43:27]requested_item shift.open_date is exist - process it [17:43:27]req_shift_open_date [17:43:27]req_shift_open_date done [17:43:27]produce_requested_data done [17:43:27]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118168,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:43:27]process_action_free close_receipt [17:43:27]json_value_free [17:43:27]json_value_free done [17:43:27]process_json_proto returns [17:43:27]Send response to host [17:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118168,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:43:27]free response buf [17:43:27]execute_script done [17:43:27]execute_script returns [17:43:27]free content buf [17:43:27]Sock 10.Close socket [17:43:27]Sock 10.Thread stoped [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:20]accept exits with 7 [17:46:20]New connection [17:46:20]New thread 3067133284 created [17:46:20]Thread 3067276644 joined [17:46:20]Waiting for new connection... [17:46:20] Sock 7.Parse request [17:46:20]Sock 7.Check first char [17:46:20]Sock 7.First char is OK [17:46:20]request: POST /json_proto HTTP/1.0 [17:46:20]Method: POST [17:46:20]URL: /json_proto [17:46:20]Method is POST - this is cgi request [17:46:20]url: /json_proto [17:46:20]query_string will be loaded in cgi processing [17:46:20]execute_cgi json_proto POST (null) [17:46:20]execute_cgi path=json_proto method=POST [17:46:20]POST find Content-Length [17:46:20]Host: 172.17.96.67:8080 [17:46:20]Content-Length: 679 [17:46:20]Content-Type: application/json [17:46:20] [17:46:20]POST finish read [17:46:20]Found Content-Length = 679 [17:46:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [17:46:20]execute_script... [17:46: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)245970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [17:46:20]POST & json_proto [17:46:20]process_json_proto [17:46:20]json parsed OK: [17:46:20]protocol is kg_v1.0 [17:46:20]action value=close_receipt [17:46:20]process_action close_receipt [17:46:20]cmd_close_receipt [17:46:20]MH_GetDate [17:46:20]Write to MH i2c: F0 00 00 E5 07 DB [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: F0 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: F0 09 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: F0 09 00 E5 07 00 ED 70 22 67 47 6C 1F 67 03 [17:46:20]GetLastDocTimeStamp 1730310203 [17:46:20]current date 1730310381 [17:46:20]FM_GetShiftState [17:46:20]SAM_PROTO_GetShiftState [17:46:20]wFMCommunicate request_size=4 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 13 01 00 [17:46:20]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 0E 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 42 [17:46:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:46:20]wFMCommunicate OK [17:46:20]SAM_PROTO_GetShiftState done [17:46:20]FM_GetShiftState done [17:46:20]opened in 1730246605 [17:46:20]opened+sec_in_day 1730333005 [17:46:20]quantity*price = 150037 [17:46:20]sum+1 = 150039 [17:46:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 229 30.10.2024 17:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118169 ФПД: 219870736800049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174621&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118169&fm=219870736800049&tin=02508201610067®Number=0000000000091782&sum=150000 [17:46:21]StoreToDocumentArchive [17:46:21]shift 545 fd 118169 [17:46:21]save to /storage/0545/doc_00118169 [17:46:21]save last doc name /storage/0545/doc_00118169 to /storage/kkm_last_doc_name [17:46:21]save OK [17:46:21]Clear old archive folders... [17:46:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:46:21]tlvbuf is 0024A8B0 [17:46:21]SAM_PROTO_ClearQueue [17:46:21]wFMCommunicate request_size=4 [17:46:21]MH_SAM_APDU [17:46:21]CAPDU: 80 09 00 00 [17:46:21]Write to MH i2c: E2 08 00 F3 07 80 09 00 00 00 00 00 00 6C [17:46:21]Write i2c OK [17:46:21]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [17:46:22]RAPDU: 90 00 [17:46:22]wFMCommunicate OK [17:46:22]SAM_PROTO_ClearQueue done [17:46:22]KKMCreateOFDPacket [17:46:22]OFDProtocolAddRootSTLVToBuf [17:46:22]FM_MakeSignedData [17:46:22]FM_MakeSignedData [17:46:22]SAM_PROTO_SignData [17:46:22]wFMCommunicate request_size=4 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 0D 01 02 [17:46:22]Write to MH i2c: E2 08 00 F4 07 80 0D 01 02 00 00 00 00 74 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [17:46:22]RAPDU: 90 00 [17:46:22]wFMCommunicate OK [17:46:22]wFMCommunicate request_size=255 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E5 00 00 00 F4 03 04 00 ED 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CD 01 00 35 04 06 00 C7 F8 A5 29 [17:46:22]Write to MH i2c: E2 02 01 F5 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 ED 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CD 01 00 35 04 06 00 C7 F8 A5 29 00 00 55 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [17:46:22]RAPDU: 90 00 [17:46:22]wFMCommunicate OK [17:46:22]wFMCommunicate request_size=7 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 0D 02 02 02 D9 31 [17:46:22]Write to MH i2c: E2 0A 00 F6 07 80 0D 02 02 02 00 D9 31 00 00 85 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [17:46:22]RAPDU: 90 00 [17:46:22]wFMCommunicate OK [17:46:22]wFMCommunicate request_size=4 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 0D 03 02 [17:46:22]Write to MH i2c: E2 08 00 F7 07 80 0D 03 02 00 00 00 00 79 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 0B 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 0B 00 F7 07 00 53 26 66 D9 6D 7B EA A4 90 00 A8 [17:46:22]RAPDU: 53 26 66 D9 6D 7B EA A4 90 00 [17:46:22]wFMCommunicate OK [17:46:22]SAM_PROTO_SignData done [17:46:22]FM_MakeSignedData done [17:46:22]CreateOFDProtocolMessage [17:46:22]wFMCommunicate request_size=4 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 11 00 00 [17:46:22]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 17 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 17 00 F8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D0 [17:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:46:22]wFMCommunicate OK [17:46:22]CreateOFDProtocolMessage done [17:46:22]OFDSenderStorePacket 118169 [17:46:22]StoreOFDPacket docnum=118169 [17:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 12 E5 04 01 13 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 ED 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CD 01 00 35 04 06 00 C7 F8 A5 29 D9 31 53 26 66 D9 6D 7B EA A4 [17:46:22]CheckFolder [17:46:22]dirname=/storage/ofd_packets [17:46:22]CheckFolder done [17:46:22]ProducePacketName [17:46:22]name=ofd_packets/00118169 [17:46:22]NVStorageSaveData ofd_packets/00118169 [17:46:22]File name is /storage/ofd_packets/00118169 [17:46:22]Write 298 bytes [17:46:22]NVStorageSaveData done [17:46:22]OFDSenderStorePacket done [17:46:22]KKMCreateOFDPacket done [17:46:22]NVStorageSaveData kkm_last_timestamp [17:46:22]File name is /storage/kkm_last_timestamp [17:46:22]Write 4 bytes [17:46:22]NVStorageSaveData done [17:46:22]ExternCall_PrintAddStr [17:46:22]wPrintStart [17:46:22]Write to MH i2c: 01 00 00 F9 07 00 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: 01 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: 01 07 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [17:46:22]RasterBufferAndPrint [17:46:22]line Счет N : (1)245970 [17:46:22]line ИНН: 02508201610067 [17:46:22]line Контрольно-Кассовый Чек [17:46:22]line ПРОДАЖА [17:46:22]line ТРК (МРК, ГНК) : 23 [17:46:22]line Товар: 2710194210 [17:46:22]line ДТ-К-2 [17:46:22]line 19.690 * 76.20 [17:46:22]line = 1500.38 [17:46:22]line НДС 12% НСП 1% [17:46:22]line > о реализуемом товаре [17:46:22]line ОКРУГЛЕНИЕ: -0.38 [17:46:22]line ИТОГО: 1500.00 [17:46:22]line Внесено: 1500.00 [17:46:22]line СДАЧА: 0.00 [17:46:22]line НСП 1% : 13.28 [17:46:22]line НДС 12% : 159.33 [17:46:22]line Наличными: 1500.00 [17:46:22]line Безнал.: 0.00 [17:46:22]line Место: АЗС № 173 "Партнер Нефть" [17:46:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:46:22]line СНО: Общий режим [17:46:22]line Чек 229 30.10.2024 17:46 [17:46:22]line Смена: 545 ФФД: 1.0 [17:46:22]line ЗНМ: 0300000115 [17:46:22]line РНМ: 0000000000091782 [17:46:22]line Версия ККМ: 001 [17:46:22]line ФМ: 0000000000871767 [17:46:22]line ФД: 118169 [17:46:22]line ФПД: 219870736800049 [17:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174621&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118169&fm=219870736800049&tin=02508201610067®Number=0000000000091782&sum=150000 [17:46:22]OFD Sender: Processing packet 118169 [packets to send 77, broken 76] [17:46:22]ProducePacketName [17:46:22]name=ofd_packets/00118169 [17:46:22]OFD Sender: To server: pG, [17:46:22]CommunicateWithHost lk.salyk.kg:30040 [17:46:22]ConnectInit lk.salyk.kg [17:46:22]written 0, free lines is 4095 [17:46:22]Connected sock=10 [17:46: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 36 37 0C 01 00 00 12 E5 04 01 13 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 ED 70 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 99 CD 01 00 35 04 06 00 C7 F8 A5 29 D9 31 53 26 66 D9 6D 7B EA A4 [17:46: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 36 37 4F 00 00 00 9B CC 47 00 0A 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 36 37 10 04 04 00 99 CD 01 00 F4 03 04 00 A4 1C 22 67 B6 04 01 00 00 23 E6 EC 0E D1 8A 2D 0E [17:46:23]CommunicateWithHost err = 0 [17:46:23]CheckOFDResponse [17:46:23]1017 (14) - 77093643461234 [17:46:23]1041 (16) - 0000000000871767 [17:46:23]1040 (4) - 118169 [17:46:23]1012 (4) - 30.10.2024 11:46 [17:46:23]1206 (1) - 0 [17:46:23]OFD Sender: Remove packet 118169 [17:46:23]ProducePacketName [17:46:23]name=ofd_packets/00118169 [17:46:23]NVStorageDeleteData [17:46:23]Write to MH i2c: 01 00 00 23 08 2B [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: 01 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: 01 07 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 BE 0C FC [17:46:23]RasterBufferAndPrint [17:46:23]line [17:46:23]line [17:46:23]line [17:46:23]line [17:46:23]line [17:46:23]written 0, free lines is 3268 [17:46:23]MH_Cut [17:46:23]Write to MH i2c: D1 01 00 2A 08 01 04 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: D1 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: D1 01 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: D1 01 00 2A 08 00 03 [17:46:23]Write to MH i2c: 01 00 00 2B 08 33 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]OFD Sender: No OFD packet to send [17:46:24]*** Cut start [17:46:24]*** Purtial cut [17:46:24]*** Stage 1: CUTSNS_PIN = 1 [17:46:24]Read from MH i2c: 01 [17:46:24]MH_I2C_Read... [17:46:24]*** Stop cut motor [17:46:24]*** Cut end [17:46:24]Read from MH i2c: 01 07 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 FF 0F 48 [17:46:24]process_action close_receipt done [17:46:24]requested_data is exist [17:46:24]produce_requested_data [17:46:24]requested_item fm.sn is exist - process it [17:46:24]wFMCommunicate request_size=4 [17:46:24]MH_SAM_APDU [17:46:24]CAPDU: 80 11 00 00 [17:46:24]Write to MH i2c: E2 08 00 2C 08 80 11 00 00 00 00 00 00 AE [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 17 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 17 00 2C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 05 [17:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:46:24]wFMCommunicate OK [17:46:24]requested_item fd.num is exist - process it [17:46:24]SAM_PROTO_GetFieldsCounters [17:46:24]wFMCommunicate request_size=4 [17:46:24]MH_SAM_APDU [17:46:24]CAPDU: 80 13 00 00 [17:46:24]Write to MH i2c: E2 08 00 2D 08 80 13 00 00 00 00 00 00 B1 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 62 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 62 00 2D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 99 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 99 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:24]wFMCommunicate OK [17:46:24]SAM_PROTO_GetFieldsCounters done [17:46:24]requested_item shift.num is exist - process it [17:46:24]requested_item shift.opened is exist - process it [17:46:24]req_shift_opened [17:46:24]FM_GetShiftState [17:46:24]SAM_PROTO_GetShiftState [17:46:24]wFMCommunicate request_size=4 [17:46:24]MH_SAM_APDU [17:46:24]CAPDU: 80 13 01 00 [17:46:24]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 0E 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8B [17:46:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:46:24]wFMCommunicate OK [17:46:24]SAM_PROTO_GetShiftState done [17:46:24]FM_GetShiftState done [17:46:24]req_shift_opened done [17:46:24]requested_item shift.open_date is exist - process it [17:46:24]req_shift_open_date [17:46:24]req_shift_open_date done [17:46:24]produce_requested_data done [17:46:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118169,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:46:24]process_action_free close_receipt [17:46:24]json_value_free [17:46:24]json_value_free done [17:46:24]process_json_proto returns [17:46:24]Send response to host [17:46:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118169,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:46:24]free response buf [17:46:24]execute_script done [17:46:24]execute_script returns [17:46:24]free content buf [17:46:24]Sock 7.Close socket [17:46:24]Sock 7.Thread stoped [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:06]accept exits with 9 [17:51:06]New connection [17:51:06]New thread 3067276644 created [17:51:06]Thread 3067133284 joined [17:51:06]Waiting for new connection... [17:51:06] Sock 9.Parse request [17:51:06]Sock 9.Check first char [17:51:06]Sock 9.First char is OK [17:51:06]request: POST /json_proto HTTP/1.0 [17:51:06]Method: POST [17:51:06]URL: /json_proto [17:51:06]Method is POST - this is cgi request [17:51:06]url: /json_proto [17:51:06]query_string will be loaded in cgi processing [17:51:06]execute_cgi json_proto POST (null) [17:51:06]execute_cgi path=json_proto method=POST [17:51:06]POST find Content-Length [17:51:06]Host: 172.17.96.67:8080 [17:51:06]Content-Length: 677 [17:51:06]Content-Type: application/json [17:51:06] [17:51:06]POST finish read [17:51:06]Found Content-Length = 677 [17:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:51:06]execute_script... [17:51: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)245971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:51:06]POST & json_proto [17:51:06]process_json_proto [17:51:06]json parsed OK: [17:51:06]protocol is kg_v1.0 [17:51:06]action value=close_receipt [17:51:06]process_action close_receipt [17:51:06]cmd_close_receipt [17:51:06]MH_GetDate [17:51:06]Write to MH i2c: F0 00 00 2F 08 26 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: F0 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: F0 09 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: F0 09 00 2F 08 00 0A 72 22 67 47 6C 1F 67 6D [17:51:06]GetLastDocTimeStamp 1730310381 [17:51:06]current date 1730310666 [17:51:06]FM_GetShiftState [17:51:06]SAM_PROTO_GetShiftState [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 13 01 00 [17:51:06]Write to MH i2c: E2 08 00 30 08 80 13 01 00 00 00 00 00 B5 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0E 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0E 00 30 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8D [17:51:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_GetShiftState done [17:51:06]FM_GetShiftState done [17:51:06]opened in 1730246605 [17:51:06]opened+sec_in_day 1730333005 [17:51:06]quantity*price = 50041 [17:51:06]sum+1 = 50042 [17:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 230 30.10.2024 17:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118170 ФПД: 190913303425884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T175106&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118170&fm=190913303425884&tin=02508201610067®Number=0000000000091782&sum=50000 [17:51:07]StoreToDocumentArchive [17:51:07]shift 545 fd 118170 [17:51:07]save to /storage/0545/doc_00118170 [17:51:07]save last doc name /storage/0545/doc_00118170 to /storage/kkm_last_doc_name [17:51:07]save OK [17:51:07]Clear old archive folders... [17:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:07]tlvbuf is 0021B670 [17:51:07]SAM_PROTO_ClearQueue [17:51:07]wFMCommunicate request_size=4 [17:51:07]MH_SAM_APDU [17:51:07]CAPDU: 80 09 00 00 [17:51:07]Write to MH i2c: E2 08 00 3D 08 80 09 00 00 00 00 00 00 B7 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [17:51:07]RAPDU: 90 00 [17:51:07]wFMCommunicate OK [17:51:07]SAM_PROTO_ClearQueue done [17:51:07]KKMCreateOFDPacket [17:51:07]OFDProtocolAddRootSTLVToBuf [17:51:07]FM_MakeSignedData [17:51:07]FM_MakeSignedData [17:51:07]SAM_PROTO_SignData [17:51:07]wFMCommunicate request_size=4 [17:51:07]MH_SAM_APDU [17:51:07]CAPDU: 80 0D 01 02 [17:51:07]Write to MH i2c: E2 08 00 3E 08 80 0D 01 02 00 00 00 00 BF [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [17:51:07]RAPDU: 90 00 [17:51:07]wFMCommunicate OK [17:51:07]wFMCommunicate request_size=255 [17:51:07]MH_SAM_APDU [17:51: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 32 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 E6 00 00 00 F4 03 04 00 0A 72 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CD 01 00 35 04 06 00 AD [17:51:07]Write to MH i2c: E2 02 01 3F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E6 00 00 00 F4 03 04 00 0A 72 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CD 01 00 35 04 06 00 AD 00 00 74 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [17:51:07]RAPDU: 90 00 [17:51:07]wFMCommunicate OK [17:51:07]wFMCommunicate request_size=10 [17:51:07]MH_SAM_APDU [17:51:07]CAPDU: 80 0D 02 02 05 A2 77 A2 33 5C [17:51:07]Write to MH i2c: E2 0D 00 40 08 80 0D 02 02 05 00 A2 77 A2 33 5C 00 00 16 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [17:51:07]RAPDU: 90 00 [17:51:07]wFMCommunicate OK [17:51:07]wFMCommunicate request_size=4 [17:51:07]MH_SAM_APDU [17:51:07]CAPDU: 80 0D 03 02 [17:51:07]Write to MH i2c: E2 08 00 41 08 80 0D 03 02 00 00 00 00 C4 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 0B 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 0B 00 41 08 00 3D E9 D4 01 18 49 CA 77 90 00 62 [17:51:07]RAPDU: 3D E9 D4 01 18 49 CA 77 90 00 [17:51:07]wFMCommunicate OK [17:51:07]SAM_PROTO_SignData done [17:51:07]FM_MakeSignedData done [17:51:07]CreateOFDProtocolMessage [17:51:07]wFMCommunicate request_size=4 [17:51:07]MH_SAM_APDU [17:51:07]CAPDU: 80 11 00 00 [17:51:07]Write to MH i2c: E2 08 00 42 08 80 11 00 00 00 00 00 00 C4 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 17 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 17 00 42 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1B [17:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:51:07]wFMCommunicate OK [17:51:07]CreateOFDProtocolMessage done [17:51:07]OFDSenderStorePacket 118170 [17:51:07]StoreOFDPacket docnum=118170 [17:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 F6 EF 07 01 DB EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E6 00 00 00 F4 03 04 00 0A 72 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CD 01 00 35 04 06 00 AD A2 77 A2 33 5C 3D E9 D4 01 18 49 CA 77 [17:51:07]CheckFolder [17:51:07]dirname=/storage/ofd_packets [17:51:07]CheckFolder done [17:51:07]ProducePacketName [17:51:07]name=ofd_packets/00118170 [17:51:07]NVStorageSaveData ofd_packets/00118170 [17:51:07]File name is /storage/ofd_packets/00118170 [17:51:07]Write 301 bytes [17:51:07]NVStorageSaveData done [17:51:07]OFDSenderStorePacket done [17:51:07]KKMCreateOFDPacket done [17:51:07]NVStorageSaveData kkm_last_timestamp [17:51:07]File name is /storage/kkm_last_timestamp [17:51:07]Write 4 bytes [17:51:07]NVStorageSaveData done [17:51:07]ExternCall_PrintAddStr [17:51:07]wPrintStart [17:51:07]Write to MH i2c: 01 00 00 43 08 4B [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 43 08 00 00 00 00 00 FF 0F 60 [17:51:07]RasterBufferAndPrint [17:51:07]line Счет N : (1)245971 [17:51:07]line ИНН: 02508201610067 [17:51:07]line Контрольно-Кассовый Чек [17:51:07]line ПРОДАЖА [17:51:07]line ТРК (МРК, ГНК) : 11 [17:51:07]line Товар: 2710124130 [17:51:07]line Аи-92-К-2 [17:51:07]line 7.480 * 66.90 [17:51:07]line = 500.41 [17:51:07]line НДС 12% НСП 1% [17:51:07]line > о реализуемом товаре [17:51:07]line ОКРУГЛЕНИЕ: -0.41 [17:51:07]line ИТОГО: 500.00 [17:51:07]line Внесено: 500.00 [17:51:07]line СДАЧА: 0.00 [17:51:07]line НСП 1% : 4.43 [17:51:07]line НДС 12% : 53.14 [17:51:07]line Наличными: 500.00 [17:51:07]line Безнал.: 0.00 [17:51:07]line Место: АЗС № 173 "Партнер Нефть" [17:51:07]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:51:07]line СНО: Общий режим [17:51:07]line Чек 230 30.10.2024 17:51 [17:51:07]line Смена: 545 ФФД: 1.0 [17:51:07]line ЗНМ: 0300000115 [17:51:07]line РНМ: 0000000000091782 [17:51:07]line Версия ККМ: 001 [17:51:07]line ФМ: 0000000000871767 [17:51:07]line ФД: 118170 [17:51:07]line ФПД: 190913303425884 [17:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T175106&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118170&fm=190913303425884&tin=02508201610067®Number=0000000000091782&sum=50000 [17:51:08]OFD Sender: Processing packet 118170 [packets to send 77, broken 76] [17:51:08]ProducePacketName [17:51:08]name=ofd_packets/00118170 [17:51:08]OFD Sender: To server: pG, [17:51:08]CommunicateWithHost lk.salyk.kg:30040 [17:51:08]ConnectInit lk.salyk.kg [17:51:08]written 0, free lines is 4095 [17:51:08]Connected sock=10 [17:51: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 36 37 0F 01 00 00 F6 EF 07 01 DB EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E6 00 00 00 F4 03 04 00 0A 72 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CD 01 00 35 04 06 00 AD A2 77 A2 33 5C 3D E9 D4 01 18 49 CA 77 [17: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 36 37 4F 00 00 00 1F 3C 47 00 70 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9A CD 01 00 F4 03 04 00 C1 1D 22 67 B6 04 01 00 00 A1 98 63 B2 8B 53 DD 0C [17:51:08]CommunicateWithHost err = 0 [17:51:08]CheckOFDResponse [17:51:08]1017 (14) - 77093643461234 [17:51:08]1041 (16) - 0000000000871767 [17:51:08]1040 (4) - 118170 [17:51:08]1012 (4) - 30.10.2024 11:51 [17:51:08]1206 (1) - 0 [17:51:08]OFD Sender: Remove packet 118170 [17:51:08]ProducePacketName [17:51:08]name=ofd_packets/00118170 [17:51:08]NVStorageDeleteData [17:51:08]Write to MH i2c: 01 00 00 6D 08 75 [17:51:08]Write i2c OK [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: 01 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: 01 07 00 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 B9 0C 41 [17:51:08]RasterBufferAndPrint [17:51:08]line [17:51:08]line [17:51:08]line [17:51:08]line [17:51:08]line [17:51:08]written 0, free lines is 3263 [17:51:08]MH_Cut [17:51:08]Write to MH i2c: D1 01 00 74 08 01 4E [17:51:08]Write i2c OK [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: D1 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: D1 01 00 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: D1 01 00 74 08 00 4D [17:51:08]Write to MH i2c: 01 00 00 75 08 7D [17:51:08]Write i2c OK [17:51:08]MH_I2C_Read... [17:51:09]OFD Sender: No OFD packet to send [17:51:09]*** Cut start [17:51:09]*** Purtial cut [17:51:09]*** Stage 1: CUTSNS_PIN = 1 [17:51:09]Read from MH i2c: 01 [17:51:09]MH_I2C_Read... [17:51:09]*** Stop cut motor [17:51:09]*** Cut end [17:51:09]Read from MH i2c: 01 07 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: 01 07 00 75 08 00 00 00 00 00 FF 0F 92 [17:51:09]process_action close_receipt done [17:51:09]requested_data is exist [17:51:09]produce_requested_data [17:51:09]requested_item fm.sn is exist - process it [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 11 00 00 [17:51:09]Write to MH i2c: E2 08 00 76 08 80 11 00 00 00 00 00 00 F8 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 76 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4F [17:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:51:09]wFMCommunicate OK [17:51:09]requested_item fd.num is exist - process it [17:51:09]SAM_PROTO_GetFieldsCounters [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 13 00 00 [17:51:09]Write to MH i2c: E2 08 00 77 08 80 13 00 00 00 00 00 00 FB [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 77 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [17: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9A CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetFieldsCounters done [17:51:09]requested_item shift.num is exist - process it [17:51:09]requested_item shift.opened is exist - process it [17:51:09]req_shift_opened [17:51:09]FM_GetShiftState [17:51:09]SAM_PROTO_GetShiftState [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 13 01 00 [17:51:09]Write to MH i2c: E2 08 00 78 08 80 13 01 00 00 00 00 00 FD [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 78 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D5 [17:51:09]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetShiftState done [17:51:09]FM_GetShiftState done [17:51:09]req_shift_opened done [17:51:09]requested_item shift.open_date is exist - process it [17:51:09]req_shift_open_date [17:51:09]req_shift_open_date done [17:51:09]produce_requested_data done [17:51:09]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118170,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:51:09]process_action_free close_receipt [17:51:09]json_value_free [17:51:09]json_value_free done [17:51:09]process_json_proto returns [17:51:09]Send response to host [17:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118170,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:51:09]free response buf [17:51:09]execute_script done [17:51:09]execute_script returns [17:51:09]free content buf [17:51:09]Sock 9.Close socket [17:51:09]Sock 9.Thread stoped [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:20]accept exits with 7 [17:58:20]New connection [17:58:20]New thread 3067133284 created [17:58:20]Thread 3067276644 joined [17:58:20]Waiting for new connection... [17:58:20] Sock 7.Parse request [17:58:20]Sock 7.Check first char [17:58:20]Sock 7.First char is OK [17:58:20]request: POST /json_proto HTTP/1.0 [17:58:20]Method: POST [17:58:20]URL: /json_proto [17:58:20]Method is POST - this is cgi request [17:58:20]url: /json_proto [17:58:20]query_string will be loaded in cgi processing [17:58:20]execute_cgi json_proto POST (null) [17:58:20]execute_cgi path=json_proto method=POST [17:58:20]POST find Content-Length [17:58:20]Host: 172.17.96.67:8080 [17:58:20]Content-Length: 682 [17:58:20]Content-Type: application/json [17:58:20] [17:58:20]POST finish read [17:58:20]Found Content-Length = 682 [17:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:58:20]execute_script... [17:58: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)245972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:58:20]POST & json_proto [17:58:20]process_json_proto [17:58:20]json parsed OK: [17:58:20]protocol is kg_v1.0 [17:58:20]action value=close_receipt [17:58:20]process_action close_receipt [17:58:20]cmd_close_receipt [17:58:20]MH_GetDate [17:58:20]Write to MH i2c: F0 00 00 79 08 70 [17:58:20]Write i2c OK [17:58:20]MH_I2C_Read... [17:58:20]Read from MH i2c: F0 [17:58:20]MH_I2C_Read... [17:58:20]Read from MH i2c: F0 09 00 [17:58:20]MH_I2C_Read... [17:58:20]Read from MH i2c: F0 09 00 79 08 00 BD 73 22 67 47 6C 1F 67 6B [17:58:20]GetLastDocTimeStamp 1730310666 [17:58:20]current date 1730311101 [17:58:20]FM_GetShiftState [17:58:20]SAM_PROTO_GetShiftState [17:58:20]wFMCommunicate request_size=4 [17:58:20]MH_SAM_APDU [17:58:20]CAPDU: 80 13 01 00 [17:58:20]Write to MH i2c: E2 08 00 7A 08 80 13 01 00 00 00 00 00 FF [17:58:20]Write i2c OK [17:58:20]MH_I2C_Read... [17:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:20]Read from MH i2c: E2 [17:58:20]MH_I2C_Read... [17:58:20]Read from MH i2c: E2 0E 00 [17:58:20]MH_I2C_Read... [17:58:20]Read from MH i2c: E2 0E 00 7A 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D7 [17:58:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:58:20]wFMCommunicate OK [17:58:20]SAM_PROTO_GetShiftState done [17:58:20]FM_GetShiftState done [17:58:20]opened in 1730246605 [17:58:20]opened+sec_in_day 1730333005 [17:58:20]quantity*price = 100015 [17:58:20]sum+1 = 100017 [17:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 231 30.10.2024 17:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118171 ФПД: 167928045508942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T175821&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118171&fm=167928045508942&tin=02508201610067®Number=0000000000091782&sum=100000 [17:58:21]StoreToDocumentArchive [17:58:21]shift 545 fd 118171 [17:58:21]save to /storage/0545/doc_00118171 [17:58:21]save last doc name /storage/0545/doc_00118171 to /storage/kkm_last_doc_name [17:58:21]save OK [17:58:21]Clear old archive folders... [17:58:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:21]tlvbuf is 00219AB0 [17:58:21]SAM_PROTO_ClearQueue [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 09 00 00 [17:58:21]Write to MH i2c: E2 08 00 87 08 80 09 00 00 00 00 00 00 01 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [17:58:21]RAPDU: 90 00 [17:58:21]wFMCommunicate OK [17:58:21]SAM_PROTO_ClearQueue done [17:58:21]KKMCreateOFDPacket [17:58:21]OFDProtocolAddRootSTLVToBuf [17:58:21]FM_MakeSignedData [17:58:21]FM_MakeSignedData [17:58:21]SAM_PROTO_SignData [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 0D 01 02 [17:58:21]Write to MH i2c: E2 08 00 88 08 80 0D 01 02 00 00 00 00 09 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [17:58:21]RAPDU: 90 00 [17:58:21]wFMCommunicate OK [17:58:21]wFMCommunicate request_size=255 [17:58:21]MH_SAM_APDU [17:58: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 32 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 E7 00 00 00 F4 03 04 00 BD 73 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CD 01 00 35 04 06 00 98 [17:58:21]Write to MH i2c: E2 02 01 89 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E7 00 00 00 F4 03 04 00 BD 73 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CD 01 00 35 04 06 00 98 00 00 59 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]wFMCommunicate request_size=10 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 0D 02 02 05 BA CB 80 19 4E [17:58:22]Write to MH i2c: E2 0D 00 8A 08 80 0D 02 02 05 00 BA CB 80 19 4E 00 00 82 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 0D 03 02 [17:58:22]Write to MH i2c: E2 08 00 8B 08 80 0D 03 02 00 00 00 00 0E [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 0B 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 0B 00 8B 08 00 29 42 08 8F 9E 56 D9 7B 90 00 59 [17:58:22]RAPDU: 29 42 08 8F 9E 56 D9 7B 90 00 [17:58:22]wFMCommunicate OK [17:58:22]SAM_PROTO_SignData done [17:58:22]FM_MakeSignedData done [17:58:22]CreateOFDProtocolMessage [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 11 00 00 [17:58:22]Write to MH i2c: E2 08 00 8C 08 80 11 00 00 00 00 00 00 0E [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 17 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 17 00 8C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 65 [17:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:58:22]wFMCommunicate OK [17:58:22]CreateOFDProtocolMessage done [17:58:22]OFDSenderStorePacket 118171 [17:58:22]StoreOFDPacket docnum=118171 [17:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C8 A9 07 01 7A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E7 00 00 00 F4 03 04 00 BD 73 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CD 01 00 35 04 06 00 98 BA CB 80 19 4E 29 42 08 8F 9E 56 D9 7B [17:58:22]CheckFolder [17:58:22]dirname=/storage/ofd_packets [17:58:22]CheckFolder done [17:58:22]ProducePacketName [17:58:22]name=ofd_packets/00118171 [17:58:22]NVStorageSaveData ofd_packets/00118171 [17:58:22]File name is /storage/ofd_packets/00118171 [17:58:22]Write 301 bytes [17:58:22]NVStorageSaveData done [17:58:22]OFDSenderStorePacket done [17:58:22]KKMCreateOFDPacket done [17:58:22]NVStorageSaveData kkm_last_timestamp [17:58:22]File name is /storage/kkm_last_timestamp [17:58:22]Write 4 bytes [17:58:22]NVStorageSaveData done [17:58:22]ExternCall_PrintAddStr [17:58:22]wPrintStart [17:58:22]Write to MH i2c: 01 00 00 8D 08 95 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 07 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 07 00 8D 08 00 00 00 00 00 FF 0F AA [17:58:22]RasterBufferAndPrint [17:58:22]line Счет N : (1)245972 [17:58:22]line ИНН: 02508201610067 [17:58:22]line Контрольно-Кассовый Чек [17:58:22]line ПРОДАЖА [17:58:22]line ТРК (МРК, ГНК) : 11 [17:58:22]line Товар: 2710124130 [17:58:22]line Аи-92-К-2 [17:58:22]line 14.950 * 66.90 [17:58:22]line = 1000.16 [17:58:22]line НДС 12% НСП 1% [17:58:22]line > о реализуемом товаре [17:58:22]line ОКРУГЛЕНИЕ: -0.16 [17:58:22]line ИТОГО: 1000.00 [17:58:22]line Внесено: 1000.00 [17:58:22]line СДАЧА: 0.00 [17:58:22]line НСП 1% : 8.85 [17:58:22]line НДС 12% : 106.21 [17:58:22]line Наличными: 1000.00 [17:58:22]line Безнал.: 0.00 [17:58:22]line Место: АЗС № 173 "Партнер Нефть" [17:58:22]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [17:58:22]line СНО: Общий режим [17:58:22]line Чек 231 30.10.2024 17:58 [17:58:22]line Смена: 545 ФФД: 1.0 [17:58:22]line ЗНМ: 0300000115 [17:58:22]line РНМ: 0000000000091782 [17:58:22]line Версия ККМ: 001 [17:58:22]line ФМ: 0000000000871767 [17:58:22]line ФД: 118171 [17:58:22]line ФПД: 167928045508942 [17:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T175821&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118171&fm=167928045508942&tin=02508201610067®Number=0000000000091782&sum=100000 [17:58:22]OFD Sender: Processing packet 118171 [packets to send 77, broken 76] [17:58:22]ProducePacketName [17:58:22]name=ofd_packets/00118171 [17:58:22]OFD Sender: To server: pG, [17:58:22]CommunicateWithHost lk.salyk.kg:30040 [17:58:22]ConnectInit lk.salyk.kg [17:58:22]written 0, free lines is 4095 [17:58:22]Connected sock=10 [17:58: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 36 37 0F 01 00 00 C8 A9 07 01 7A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E7 00 00 00 F4 03 04 00 BD 73 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CD 01 00 35 04 06 00 98 BA CB 80 19 4E 29 42 08 8F 9E 56 D9 7B [17:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 6D 84 47 00 80 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9B CD 01 00 F4 03 04 00 74 1F 22 67 B6 04 01 00 00 D5 F1 AA E9 23 14 F2 3B [17:58:22]CommunicateWithHost err = 0 [17:58:22]CheckOFDResponse [17:58:22]1017 (14) - 77093643461234 [17:58:22]1041 (16) - 0000000000871767 [17:58:22]1040 (4) - 118171 [17:58:22]1012 (4) - 30.10.2024 11:58 [17:58:22]1206 (1) - 0 [17:58:22]OFD Sender: Remove packet 118171 [17:58:22]ProducePacketName [17:58:22]name=ofd_packets/00118171 [17:58:22]NVStorageDeleteData [17:58:23]Write to MH i2c: 01 00 00 B7 08 BF [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 BA 0C 8C [17:58:23]RasterBufferAndPrint [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]written 0, free lines is 3265 [17:58:23]MH_Cut [17:58:23]Write to MH i2c: D1 01 00 BE 08 01 98 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: D1 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: D1 01 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: D1 01 00 BE 08 00 97 [17:58:23]Write to MH i2c: 01 00 00 BF 08 C7 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]OFD Sender: No OFD packet to send [17:58:23]*** Cut start [17:58:23]*** Purtial cut [17:58:23]*** Stage 1: CUTSNS_PIN = 1 [17:58:24]Read from MH i2c: 01 [17:58:24]MH_I2C_Read... [17:58:24]*** Stop cut motor [17:58:24]*** Cut end [17:58:24]Read from MH i2c: 01 07 00 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: 01 07 00 BF 08 00 00 00 00 00 FF 0F DC [17:58:24]process_action close_receipt done [17:58:24]requested_data is exist [17:58:24]produce_requested_data [17:58:24]requested_item fm.sn is exist - process it [17:58:24]wFMCommunicate request_size=4 [17:58:24]MH_SAM_APDU [17:58:24]CAPDU: 80 11 00 00 [17:58:24]Write to MH i2c: E2 08 00 C0 08 80 11 00 00 00 00 00 00 42 [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:24]Read from MH i2c: E2 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: E2 17 00 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: E2 17 00 C0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 99 [17:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [17:58:24]wFMCommunicate OK [17:58:24]requested_item fd.num is exist - process it [17:58:24]SAM_PROTO_GetFieldsCounters [17:58:24]wFMCommunicate request_size=4 [17:58:24]MH_SAM_APDU [17:58:24]CAPDU: 80 13 00 00 [17:58:24]Write to MH i2c: E2 08 00 C1 08 80 13 00 00 00 00 00 00 45 [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:24]Read from MH i2c: E2 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: E2 62 00 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: E2 62 00 C1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [17:58: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9B CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:24]wFMCommunicate OK [17:58:24]SAM_PROTO_GetFieldsCounters done [17:58:24]requested_item shift.num is exist - process it [17:58:24]requested_item shift.opened is exist - process it [17:58:24]req_shift_opened [17:58:24]FM_GetShiftState [17:58:24]SAM_PROTO_GetShiftState [17:58:24]wFMCommunicate request_size=4 [17:58:24]MH_SAM_APDU [17:58:24]CAPDU: 80 13 01 00 [17:58:24]Write to MH i2c: E2 08 00 C2 08 80 13 01 00 00 00 00 00 47 [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:24]Read from MH i2c: E2 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: E2 0E 00 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: E2 0E 00 C2 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1F [17:58:24]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [17:58:24]wFMCommunicate OK [17:58:24]SAM_PROTO_GetShiftState done [17:58:24]FM_GetShiftState done [17:58:24]req_shift_opened done [17:58:24]requested_item shift.open_date is exist - process it [17:58:24]req_shift_open_date [17:58:24]req_shift_open_date done [17:58:24]produce_requested_data done [17:58:24]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118171,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [17:58:24]process_action_free close_receipt [17:58:24]json_value_free [17:58:24]json_value_free done [17:58:24]process_json_proto returns [17:58:24]Send response to host [17:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118171,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [17:58:24]free response buf [17:58:24]execute_script done [17:58:24]execute_script returns [17:58:24]free content buf [17:58:24]Sock 7.Close socket [17:58:24]Sock 7.Thread stoped [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:07]accept exits with 9 [18:01:07]New connection [18:01:07]New thread 3067276644 created [18:01:07]Thread 3067133284 joined [18:01:07]Waiting for new connection... [18:01:07] Sock 9.Parse request [18:01:07]Sock 9.Check first char [18:01:07]Sock 9.First char is OK [18:01:07]request: POST /json_proto HTTP/1.0 [18:01:07]Method: POST [18:01:07]URL: /json_proto [18:01:07]Method is POST - this is cgi request [18:01:07]url: /json_proto [18:01:07]query_string will be loaded in cgi processing [18:01:07]execute_cgi json_proto POST (null) [18:01:07]execute_cgi path=json_proto method=POST [18:01:07]POST find Content-Length [18:01:07]Host: 172.17.96.67:8080 [18:01:07]Content-Length: 677 [18:01:07]Content-Type: application/json [18:01:07] [18:01:07]POST finish read [18:01:07]Found Content-Length = 677 [18:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:01:07]execute_script... [18:01: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)245973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:01:07]POST & json_proto [18:01:07]process_json_proto [18:01:07]json parsed OK: [18:01:07]protocol is kg_v1.0 [18:01:07]action value=close_receipt [18:01:07]process_action close_receipt [18:01:07]cmd_close_receipt [18:01:07]MH_GetDate [18:01:07]Write to MH i2c: F0 00 00 C3 08 BA [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: F0 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: F0 09 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: F0 09 00 C3 08 00 63 74 22 67 47 6C 1F 67 5C [18:01:07]GetLastDocTimeStamp 1730311101 [18:01:07]current date 1730311267 [18:01:07]FM_GetShiftState [18:01:07]SAM_PROTO_GetShiftState [18:01:07]wFMCommunicate request_size=4 [18:01:07]MH_SAM_APDU [18:01:07]CAPDU: 80 13 01 00 [18:01:07]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:07]Read from MH i2c: E2 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 0E 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 21 [18:01:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:01:07]wFMCommunicate OK [18:01:07]SAM_PROTO_GetShiftState done [18:01:07]FM_GetShiftState done [18:01:07]opened in 1730246605 [18:01:07]opened+sec_in_day 1730333005 [18:01:07]quantity*price = 35055 [18:01:07]sum+1 = 35057 [18:01:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 232 30.10.2024 18:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118172 ФПД: 247907954436477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180107&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118172&fm=247907954436477&tin=02508201610067®Number=0000000000091782&sum=35000 [18:01:08]StoreToDocumentArchive [18:01:08]shift 545 fd 118172 [18:01:08]save to /storage/0545/doc_00118172 [18:01:08]save last doc name /storage/0545/doc_00118172 to /storage/kkm_last_doc_name [18:01:08]save OK [18:01:08]Clear old archive folders... [18:01:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:08]tlvbuf is 00219C60 [18:01:08]SAM_PROTO_ClearQueue [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 09 00 00 [18:01:08]Write to MH i2c: E2 08 00 D1 08 80 09 00 00 00 00 00 00 4B [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]SAM_PROTO_ClearQueue done [18:01:08]KKMCreateOFDPacket [18:01:08]OFDProtocolAddRootSTLVToBuf [18:01:08]FM_MakeSignedData [18:01:08]FM_MakeSignedData [18:01:08]SAM_PROTO_SignData [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 0D 01 02 [18:01:08]Write to MH i2c: E2 08 00 D2 08 80 0D 01 02 00 00 00 00 53 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]wFMCommunicate request_size=255 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E8 00 00 00 F4 03 04 00 63 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CD 01 00 35 04 06 00 E1 [18:01:08]Write to MH i2c: E2 02 01 D3 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E8 00 00 00 F4 03 04 00 63 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CD 01 00 35 04 06 00 E1 00 00 A6 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]OFD Sender: No OFD packet to send [18:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]wFMCommunicate request_size=10 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 0D 02 02 05 78 91 8F A9 7D [18:01:08]Write to MH i2c: E2 0D 00 D4 08 80 0D 02 02 05 00 78 91 8F A9 7D 00 00 1E [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 0D 03 02 [18:01:08]Write to MH i2c: E2 08 00 D5 08 80 0D 03 02 00 00 00 00 58 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 0B 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 0B 00 D5 08 00 6A C1 01 22 BE 41 B9 43 90 00 A2 [18:01:08]RAPDU: 6A C1 01 22 BE 41 B9 43 90 00 [18:01:08]wFMCommunicate OK [18:01:08]SAM_PROTO_SignData done [18:01:08]FM_MakeSignedData done [18:01:08]CreateOFDProtocolMessage [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 11 00 00 [18:01:08]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 17 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 17 00 D6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AF [18:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:01:08]wFMCommunicate OK [18:01:08]CreateOFDProtocolMessage done [18:01:08]OFDSenderStorePacket 118172 [18:01:08]StoreOFDPacket docnum=118172 [18:01:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 12 19 07 01 38 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 32 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 E8 00 00 00 F4 03 04 00 63 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CD 01 00 35 04 06 00 E1 78 91 8F A9 7D 6A C1 01 22 BE 41 B9 43 [18:01:08]CheckFolder [18:01:08]dirname=/storage/ofd_packets [18:01:08]CheckFolder done [18:01:08]ProducePacketName [18:01:08]name=ofd_packets/00118172 [18:01:08]NVStorageSaveData ofd_packets/00118172 [18:01:08]File name is /storage/ofd_packets/00118172 [18:01:08]Write 301 bytes [18:01:08]NVStorageSaveData done [18:01:08]OFDSenderStorePacket done [18:01:08]KKMCreateOFDPacket done [18:01:08]NVStorageSaveData kkm_last_timestamp [18:01:08]File name is /storage/kkm_last_timestamp [18:01:08]Write 4 bytes [18:01:08]NVStorageSaveData done [18:01:08]ExternCall_PrintAddStr [18:01:08]wPrintStart [18:01:08]Write to MH i2c: 01 00 00 D7 08 DF [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: 01 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: 01 07 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [18:01:08]RasterBufferAndPrint [18:01:08]line Счет N : (1)245973 [18:01:08]line ИНН: 02508201610067 [18:01:08]line Контрольно-Кассовый Чек [18:01:08]line ПРОДАЖА [18:01:08]line ТРК (МРК, ГНК) : 11 [18:01:08]line Товар: 2710124130 [18:01:08]line Аи-92-К-2 [18:01:08]line 5.240 * 66.90 [18:01:08]line = 350.56 [18:01:08]line НДС 12% НСП 1% [18:01:08]line > о реализуемом товаре [18:01:08]line ОКРУГЛЕНИЕ: -0.56 [18:01:08]line ИТОГО: 350.00 [18:01:08]line Внесено: 350.00 [18:01:08]line СДАЧА: 0.00 [18:01:08]line НСП 1% : 3.10 [18:01:08]line НДС 12% : 37.23 [18:01:08]line Наличными: 350.00 [18:01:08]line Безнал.: 0.00 [18:01:08]line Место: АЗС № 173 "Партнер Нефть" [18:01:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:01:08]line СНО: Общий режим [18:01:08]line Чек 232 30.10.2024 18:01 [18:01:08]line Смена: 545 ФФД: 1.0 [18:01:08]line ЗНМ: 0300000115 [18:01:08]line РНМ: 0000000000091782 [18:01:08]line Версия ККМ: 001 [18:01:08]line ФМ: 0000000000871767 [18:01:08]line ФД: 118172 [18:01:08]line ФПД: 247907954436477 [18:01:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180107&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118172&fm=247907954436477&tin=02508201610067®Number=0000000000091782&sum=35000 [18:01:08]written 0, free lines is 4095 [18:01:08]OFD Sender: Processing packet 118172 [packets to send 77, broken 76] [18:01:08]ProducePacketName [18:01:08]name=ofd_packets/00118172 [18:01:08]OFD Sender: To server: pG, [18:01:08]CommunicateWithHost lk.salyk.kg:30040 [18:01:08]ConnectInit lk.salyk.kg [18:01:08]Connected sock=10 [18: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 36 37 0F 01 00 00 12 19 07 01 38 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 32 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 E8 00 00 00 F4 03 04 00 63 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9C CD 01 00 35 04 06 00 E1 78 91 8F A9 7D 6A C1 01 22 BE 41 B9 43 [18: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 36 37 4F 00 00 00 46 A6 47 00 19 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 36 37 10 04 04 00 9C CD 01 00 F4 03 04 00 1A 20 22 67 B6 04 01 00 00 74 4F 77 E2 04 EA D0 A2 [18:01:09]CommunicateWithHost err = 0 [18:01:09]CheckOFDResponse [18:01:09]1017 (14) - 77093643461234 [18:01:09]1041 (16) - 0000000000871767 [18:01:09]1040 (4) - 118172 [18:01:09]1012 (4) - 30.10.2024 12:01 [18:01:09]1206 (1) - 0 [18:01:09]OFD Sender: Remove packet 118172 [18:01:09]ProducePacketName [18:01:09]name=ofd_packets/00118172 [18:01:09]NVStorageDeleteData [18:01:09]Write to MH i2c: 01 00 00 01 09 0A [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 07 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 07 00 01 09 00 00 00 00 00 BB 0C D8 [18:01:09]RasterBufferAndPrint [18:01:09]line [18:01:09]line [18:01:09]line [18:01:09]line [18:01:09]line [18:01:09]written 0, free lines is 3268 [18:01:09]MH_Cut [18:01:09]Write to MH i2c: D1 01 00 08 09 01 E3 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: D1 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: D1 01 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: D1 01 00 08 09 00 E2 [18:01:09]Write to MH i2c: 01 00 00 09 09 12 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]OFD Sender: No OFD packet to send [18:01:10]*** Cut start [18:01:10]*** Purtial cut [18:01:10]*** Stage 1: CUTSNS_PIN = 1 [18:01:10]Read from MH i2c: 01 [18:01:10]MH_I2C_Read... [18:01:10]*** Stop cut motor [18:01:10]*** Cut end [18:01:10]Read from MH i2c: 01 07 00 [18:01:10]MH_I2C_Read... [18:01:10]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 FF 0F 27 [18:01:10]process_action close_receipt done [18:01:10]requested_data is exist [18:01:10]produce_requested_data [18:01:10]requested_item fm.sn is exist - process it [18:01:10]wFMCommunicate request_size=4 [18:01:10]MH_SAM_APDU [18:01:10]CAPDU: 80 11 00 00 [18:01:10]Write to MH i2c: E2 08 00 0A 09 80 11 00 00 00 00 00 00 8D [18:01:10]Write i2c OK [18:01:10]MH_I2C_Read... [18:01:10]Read from MH i2c: E2 [18:01:10]MH_I2C_Read... [18:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:10]Read from MH i2c: E2 17 00 [18:01:10]MH_I2C_Read... [18:01:10]Read from MH i2c: E2 17 00 0A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E4 [18:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:01:10]wFMCommunicate OK [18:01:10]requested_item fd.num is exist - process it [18:01:10]SAM_PROTO_GetFieldsCounters [18:01:10]wFMCommunicate request_size=4 [18:01:10]MH_SAM_APDU [18:01:10]CAPDU: 80 13 00 00 [18:01:10]Write to MH i2c: E2 08 00 0B 09 80 13 00 00 00 00 00 00 90 [18:01:10]Write i2c OK [18:01:10]MH_I2C_Read... [18:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:10]Read from MH i2c: E2 [18:01:10]MH_I2C_Read... [18:01:10]Read from MH i2c: E2 62 00 [18:01:10]MH_I2C_Read... [18:01:10]Read from MH i2c: E2 62 00 0B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [18: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9C CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:10]wFMCommunicate OK [18:01:10]SAM_PROTO_GetFieldsCounters done [18:01:10]requested_item shift.num is exist - process it [18:01:10]requested_item shift.opened is exist - process it [18:01:10]req_shift_opened [18:01:10]FM_GetShiftState [18:01:10]SAM_PROTO_GetShiftState [18:01:10]wFMCommunicate request_size=4 [18:01:10]MH_SAM_APDU [18:01:10]CAPDU: 80 13 01 00 [18:01:10]Write to MH i2c: E2 08 00 0C 09 80 13 01 00 00 00 00 00 92 [18:01:10]Write i2c OK [18:01:10]MH_I2C_Read... [18:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:10]Read from MH i2c: E2 [18:01:10]MH_I2C_Read... [18:01:10]Read from MH i2c: E2 0E 00 [18:01:10]MH_I2C_Read... [18:01:10]Read from MH i2c: E2 0E 00 0C 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6A [18:01:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:01:10]wFMCommunicate OK [18:01:10]SAM_PROTO_GetShiftState done [18:01:10]FM_GetShiftState done [18:01:10]req_shift_opened done [18:01:10]requested_item shift.open_date is exist - process it [18:01:10]req_shift_open_date [18:01:10]req_shift_open_date done [18:01:10]produce_requested_data done [18:01:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118172,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [18:01:10]process_action_free close_receipt [18:01:10]json_value_free [18:01:10]json_value_free done [18:01:10]process_json_proto returns [18:01:10]Send response to host [18:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118172,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [18:01:10]free response buf [18:01:10]execute_script done [18:01:10]execute_script returns [18:01:10]free content buf [18:01:10]Sock 9.Close socket [18:01:10]Sock 9.Thread stoped [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:00]accept exits with 7 [18:03:00]New connection [18:03:00]New thread 3067133284 created [18:03:00]Thread 3067276644 joined [18:03:00]Waiting for new connection... [18:03:00] Sock 7.Parse request [18:03:00]Sock 7.Check first char [18:03:00]Sock 7.First char is OK [18:03:00]request: POST /json_proto HTTP/1.0 [18:03:00]Method: POST [18:03:00]URL: /json_proto [18:03:00]Method is POST - this is cgi request [18:03:00]url: /json_proto [18:03:00]query_string will be loaded in cgi processing [18:03:00]execute_cgi json_proto POST (null) [18:03:00]execute_cgi path=json_proto method=POST [18:03:00]POST find Content-Length [18:03:00]Host: 172.17.96.67:8080 [18:03:00]Content-Length: 677 [18:03:00]Content-Type: application/json [18:03:00] [18:03:00]POST finish read [18:03:00]Found Content-Length = 677 [18:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:03:00]execute_script... [18:03:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:03:00]POST & json_proto [18:03:00]process_json_proto [18:03:00]json parsed OK: [18:03:00]protocol is kg_v1.0 [18:03:00]action value=close_receipt [18:03:00]process_action close_receipt [18:03:00]cmd_close_receipt [18:03:00]MH_GetDate [18:03:00]Write to MH i2c: F0 00 00 0D 09 05 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: F0 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: F0 09 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: F0 09 00 0D 09 00 D5 74 22 67 47 6C 1F 67 19 [18:03:00]GetLastDocTimeStamp 1730311267 [18:03:00]current date 1730311381 [18:03:00]FM_GetShiftState [18:03:00]SAM_PROTO_GetShiftState [18:03:00]wFMCommunicate request_size=4 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 13 01 00 [18:03:00]Write to MH i2c: E2 08 00 0E 09 80 13 01 00 00 00 00 00 94 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 0E 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 0E 00 0E 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6C [18:03:00]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:03:00]wFMCommunicate OK [18:03:00]SAM_PROTO_GetShiftState done [18:03:00]FM_GetShiftState done [18:03:00]opened in 1730246605 [18:03:00]opened+sec_in_day 1730333005 [18:03:00]quantity*price = 20003 [18:03:00]sum+1 = 20004 [18:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 233 30.10.2024 18:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118173 ФПД: 223751530892926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180301&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118173&fm=223751530892926&tin=02508201610067®Number=0000000000091782&sum=20000 [18:03:02]StoreToDocumentArchive [18:03:02]shift 545 fd 118173 [18:03:02]save to /storage/0545/doc_00118173 [18:03:02]save last doc name /storage/0545/doc_00118173 to /storage/kkm_last_doc_name [18:03:02]save OK [18:03:02]Clear old archive folders... [18:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:02]tlvbuf is 0022B1C0 [18:03:02]SAM_PROTO_ClearQueue [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 09 00 00 [18:03:02]Write to MH i2c: E2 08 00 1B 09 80 09 00 00 00 00 00 00 96 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [18:03:02]RAPDU: 90 00 [18:03:02]wFMCommunicate OK [18:03:02]SAM_PROTO_ClearQueue done [18:03:02]KKMCreateOFDPacket [18:03:02]OFDProtocolAddRootSTLVToBuf [18:03:02]FM_MakeSignedData [18:03:02]FM_MakeSignedData [18:03:02]SAM_PROTO_SignData [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 0D 01 02 [18:03:02]Write to MH i2c: E2 08 00 1C 09 80 0D 01 02 00 00 00 00 9E [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [18:03:02]RAPDU: 90 00 [18:03:02]wFMCommunicate OK [18:03:02]wFMCommunicate request_size=255 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 00 00 00 F4 03 04 00 D5 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CD 01 00 35 04 06 00 CB [18:03:02]Write to MH i2c: E2 02 01 1D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 00 00 00 F4 03 04 00 D5 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CD 01 00 35 04 06 00 CB 00 00 06 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [18:03:02]RAPDU: 90 00 [18:03:02]wFMCommunicate OK [18:03:02]wFMCommunicate request_size=10 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 0D 02 02 05 80 36 84 4E 7E [18:03:02]Write to MH i2c: E2 0D 00 1E 09 80 0D 02 02 05 00 80 36 84 4E 7E 00 00 B1 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [18:03:02]RAPDU: 90 00 [18:03:02]wFMCommunicate OK [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 0D 03 02 [18:03:02]Write to MH i2c: E2 08 00 1F 09 80 0D 03 02 00 00 00 00 A3 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0B 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0B 00 1F 09 00 9E E8 44 5D E5 5E E4 42 90 00 34 [18:03:02]RAPDU: 9E E8 44 5D E5 5E E4 42 90 00 [18:03:02]wFMCommunicate OK [18:03:02]SAM_PROTO_SignData done [18:03:02]FM_MakeSignedData done [18:03:02]CreateOFDProtocolMessage [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 11 00 00 [18:03:02]Write to MH i2c: E2 08 00 20 09 80 11 00 00 00 00 00 00 A3 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 17 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 17 00 20 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FA [18:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:03:02]wFMCommunicate OK [18:03:02]CreateOFDProtocolMessage done [18:03:02]OFDSenderStorePacket 118173 [18:03:02]StoreOFDPacket docnum=118173 [18:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 48 DF 07 01 D8 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 00 00 00 F4 03 04 00 D5 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CD 01 00 35 04 06 00 CB 80 36 84 4E 7E 9E E8 44 5D E5 5E E4 42 [18:03:02]CheckFolder [18:03:02]dirname=/storage/ofd_packets [18:03:02]CheckFolder done [18:03:02]ProducePacketName [18:03:02]name=ofd_packets/00118173 [18:03:02]NVStorageSaveData ofd_packets/00118173 [18:03:02]File name is /storage/ofd_packets/00118173 [18:03:02]Write 301 bytes [18:03:02]NVStorageSaveData done [18:03:02]OFDSenderStorePacket done [18:03:02]KKMCreateOFDPacket done [18:03:02]NVStorageSaveData kkm_last_timestamp [18:03:02]File name is /storage/kkm_last_timestamp [18:03:02]Write 4 bytes [18:03:02]NVStorageSaveData done [18:03:02]ExternCall_PrintAddStr [18:03:02]wPrintStart [18:03:02]Write to MH i2c: 01 00 00 21 09 2A [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: 01 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: 01 07 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: 01 07 00 21 09 00 00 00 00 00 FF 0F 3F [18:03:02]RasterBufferAndPrint [18:03:02]line Счет N : (1)245974 [18:03:02]line ИНН: 02508201610067 [18:03:02]line Контрольно-Кассовый Чек [18:03:02]line ПРОДАЖА [18:03:02]line ТРК (МРК, ГНК) : 11 [18:03:02]line Товар: 2710124130 [18:03:02]line Аи-92-К-2 [18:03:02]line 2.990 * 66.90 [18:03:02]line = 200.03 [18:03:02]line НДС 12% НСП 1% [18:03:02]line > о реализуемом товаре [18:03:02]line ОКРУГЛЕНИЕ: -0.03 [18:03:02]line ИТОГО: 200.00 [18:03:02]line Внесено: 200.00 [18:03:02]line СДАЧА: 0.00 [18:03:02]line НСП 1% : 1.77 [18:03:02]line НДС 12% : 21.24 [18:03:02]line Наличными: 200.00 [18:03:02]line Безнал.: 0.00 [18:03:02]line Место: АЗС № 173 "Партнер Нефть" [18:03:02]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:03:02]line СНО: Общий режим [18:03:02]line Чек 233 30.10.2024 18:03 [18:03:02]line Смена: 545 ФФД: 1.0 [18:03:02]line ЗНМ: 0300000115 [18:03:02]line РНМ: 0000000000091782 [18:03:02]line Версия ККМ: 001 [18:03:02]line ФМ: 0000000000871767 [18:03:02]line ФД: 118173 [18:03:02]line ФПД: 223751530892926 [18:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180301&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118173&fm=223751530892926&tin=02508201610067®Number=0000000000091782&sum=20000 [18:03:02]written 0, free lines is 4095 [18:03:02]OFD Sender: Processing packet 118173 [packets to send 77, broken 76] [18:03:02]ProducePacketName [18:03:02]name=ofd_packets/00118173 [18:03:02]OFD Sender: To server: pG, [18:03:02]CommunicateWithHost lk.salyk.kg:30040 [18:03:02]ConnectInit lk.salyk.kg [18:03:03]Connected sock=10 [18:03: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 36 37 0F 01 00 00 48 DF 07 01 D8 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 00 00 00 F4 03 04 00 D5 74 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CD 01 00 35 04 06 00 CB 80 36 84 4E 7E 9E E8 44 5D E5 5E E4 42 [18:03: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 36 37 4F 00 00 00 5D 30 47 00 B8 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9D CD 01 00 F4 03 04 00 8C 20 22 67 B6 04 01 00 00 FA A9 0A 75 E2 B9 28 E4 [18:03:03]CommunicateWithHost err = 0 [18:03:03]CheckOFDResponse [18:03:03]1017 (14) - 77093643461234 [18:03:03]1041 (16) - 0000000000871767 [18:03:03]1040 (4) - 118173 [18:03:03]1012 (4) - 30.10.2024 12:03 [18:03:03]1206 (1) - 0 [18:03:03]OFD Sender: Remove packet 118173 [18:03:03]ProducePacketName [18:03:03]name=ofd_packets/00118173 [18:03:03]NVStorageDeleteData [18:03:03]Write to MH i2c: 01 00 00 4B 09 54 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 07 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 CB 0C 32 [18:03:03]RasterBufferAndPrint [18:03:03]line [18:03:03]line [18:03:03]line [18:03:03]line [18:03:03]line [18:03:03]written 0, free lines is 3281 [18:03:03]MH_Cut [18:03:03]Write to MH i2c: D1 01 00 52 09 01 2D [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: D1 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: D1 01 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: D1 01 00 52 09 00 2C [18:03:03]Write to MH i2c: 01 00 00 53 09 5C [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]OFD Sender: No OFD packet to send [18:03:04]*** Cut start [18:03:04]*** Purtial cut [18:03:04]*** Stage 1: CUTSNS_PIN = 1 [18:03:04]Read from MH i2c: 01 [18:03:04]MH_I2C_Read... [18:03:04]*** Stop cut motor [18:03:04]*** Cut end [18:03:04]Read from MH i2c: 01 07 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 FF 0F 71 [18:03:04]process_action close_receipt done [18:03:04]requested_data is exist [18:03:04]produce_requested_data [18:03:04]requested_item fm.sn is exist - process it [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 11 00 00 [18:03:04]Write to MH i2c: E2 08 00 54 09 80 11 00 00 00 00 00 00 D7 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 54 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2E [18:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:03:04]wFMCommunicate OK [18:03:04]requested_item fd.num is exist - process it [18:03:04]SAM_PROTO_GetFieldsCounters [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 13 00 00 [18:03:04]Write to MH i2c: E2 08 00 55 09 80 13 00 00 00 00 00 00 DA [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 62 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 62 00 55 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [18:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9D CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_GetFieldsCounters done [18:03:04]requested_item shift.num is exist - process it [18:03:04]requested_item shift.opened is exist - process it [18:03:04]req_shift_opened [18:03:04]FM_GetShiftState [18:03:04]SAM_PROTO_GetShiftState [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 13 01 00 [18:03:04]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0E 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B4 [18:03:04]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_GetShiftState done [18:03:04]FM_GetShiftState done [18:03:04]req_shift_opened done [18:03:04]requested_item shift.open_date is exist - process it [18:03:04]req_shift_open_date [18:03:04]req_shift_open_date done [18:03:04]produce_requested_data done [18:03:04]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118173,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [18:03:04]process_action_free close_receipt [18:03:04]json_value_free [18:03:04]json_value_free done [18:03:04]process_json_proto returns [18:03:04]Send response to host [18:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118173,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [18:03:04]free response buf [18:03:04]execute_script done [18:03:04]execute_script returns [18:03:04]free content buf [18:03:04]Sock 7.Close socket [18:03:04]Sock 7.Thread stoped [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:44]accept exits with 9 [18:05:44]New connection [18:05:44]New thread 3067276644 created [18:05:44]Thread 3067133284 joined [18:05:44]Waiting for new connection... [18:05:44] Sock 9.Parse request [18:05:44]Sock 9.Check first char [18:05:44]Sock 9.First char is OK [18:05:44]request: POST /json_proto HTTP/1.0 [18:05:44]Method: POST [18:05:44]URL: /json_proto [18:05:44]Method is POST - this is cgi request [18:05:44]url: /json_proto [18:05:44]query_string will be loaded in cgi processing [18:05:44]execute_cgi json_proto POST (null) [18:05:44]execute_cgi path=json_proto method=POST [18:05:44]POST find Content-Length [18:05:44]Host: 172.17.96.67:8080 [18:05:44]Content-Length: 677 [18:05:44]Content-Type: application/json [18:05:44] [18:05:44]POST finish read [18:05:44]Found Content-Length = 677 [18:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:05:44]execute_script... [18:05:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:05:44]POST & json_proto [18:05:44]process_json_proto [18:05:44]json parsed OK: [18:05:44]protocol is kg_v1.0 [18:05:44]action value=close_receipt [18:05:44]process_action close_receipt [18:05:44]cmd_close_receipt [18:05:44]MH_GetDate [18:05:44]Write to MH i2c: F0 00 00 57 09 4F [18:05:44]Write i2c OK [18:05:44]MH_I2C_Read... [18:05:44]Read from MH i2c: F0 [18:05:44]MH_I2C_Read... [18:05:44]Read from MH i2c: F0 09 00 [18:05:44]MH_I2C_Read... [18:05:44]Read from MH i2c: F0 09 00 57 09 00 79 75 22 67 47 6C 1F 67 08 [18:05:44]GetLastDocTimeStamp 1730311381 [18:05:44]current date 1730311545 [18:05:44]FM_GetShiftState [18:05:44]SAM_PROTO_GetShiftState [18:05:44]wFMCommunicate request_size=4 [18:05:44]MH_SAM_APDU [18:05:44]CAPDU: 80 13 01 00 [18:05:44]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [18:05:44]Write i2c OK [18:05:44]MH_I2C_Read... [18:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:44]Read from MH i2c: E2 [18:05:44]MH_I2C_Read... [18:05:44]Read from MH i2c: E2 0E 00 [18:05:44]MH_I2C_Read... [18:05:44]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B6 [18:05:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:05:44]wFMCommunicate OK [18:05:44]SAM_PROTO_GetShiftState done [18:05:44]FM_GetShiftState done [18:05:44]opened in 1730246605 [18:05:44]opened+sec_in_day 1730333005 [18:05:44]quantity*price = 50041 [18:05:44]sum+1 = 50042 [18:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 234 30.10.2024 18:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118174 ФПД: 80786797577939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180545&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118174&fm=80786797577939&tin=02508201610067®Number=0000000000091782&sum=50000 [18:05:45]StoreToDocumentArchive [18:05:45]shift 545 fd 118174 [18:05:45]save to /storage/0545/doc_00118174 [18:05:45]save last doc name /storage/0545/doc_00118174 to /storage/kkm_last_doc_name [18:05:45]save OK [18:05:45]Clear old archive folders... [18:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:45]tlvbuf is 002327F0 [18:05:45]SAM_PROTO_ClearQueue [18:05:45]wFMCommunicate request_size=4 [18:05:45]MH_SAM_APDU [18:05:45]CAPDU: 80 09 00 00 [18:05:45]Write to MH i2c: E2 08 00 65 09 80 09 00 00 00 00 00 00 E0 [18:05:45]Write i2c OK [18:05:45]MH_I2C_Read... [18:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:45]Read from MH i2c: E2 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: E2 03 00 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [18:05:45]RAPDU: 90 00 [18:05:45]wFMCommunicate OK [18:05:45]SAM_PROTO_ClearQueue done [18:05:45]KKMCreateOFDPacket [18:05:45]OFDProtocolAddRootSTLVToBuf [18:05:45]FM_MakeSignedData [18:05:45]FM_MakeSignedData [18:05:45]SAM_PROTO_SignData [18:05:45]wFMCommunicate request_size=4 [18:05:45]MH_SAM_APDU [18:05:45]CAPDU: 80 0D 01 02 [18:05:45]Write to MH i2c: E2 08 00 66 09 80 0D 01 02 00 00 00 00 E8 [18:05:45]Write i2c OK [18:05:45]MH_I2C_Read... [18:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:45]Read from MH i2c: E2 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: E2 03 00 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [18:05:45]RAPDU: 90 00 [18:05:45]wFMCommunicate OK [18:05:45]wFMCommunicate request_size=255 [18:05:45]MH_SAM_APDU [18:05: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 32 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 EA 00 00 00 F4 03 04 00 79 75 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CD 01 00 35 04 06 00 49 [18:05:45]Write to MH i2c: E2 02 01 67 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 79 75 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CD 01 00 35 04 06 00 49 00 00 B3 [18:05:45]Write i2c OK [18:05:45]MH_I2C_Read... [18:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:46]Read from MH i2c: E2 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 03 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [18:05:46]RAPDU: 90 00 [18:05:46]wFMCommunicate OK [18:05:46]wFMCommunicate request_size=10 [18:05:46]MH_SAM_APDU [18:05:46]CAPDU: 80 0D 02 02 05 79 A4 5F 46 D3 [18:05:46]Write to MH i2c: E2 0D 00 68 09 80 0D 02 02 05 00 79 A4 5F 46 D3 00 00 8A [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:46]Read from MH i2c: E2 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 03 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [18:05:46]RAPDU: 90 00 [18:05:46]wFMCommunicate OK [18:05:46]wFMCommunicate request_size=4 [18:05:46]MH_SAM_APDU [18:05:46]CAPDU: 80 0D 03 02 [18:05:46]Write to MH i2c: E2 08 00 69 09 80 0D 03 02 00 00 00 00 ED [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:46]Read from MH i2c: E2 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 0B 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 0B 00 69 09 00 F3 F6 2B 57 09 09 EB E4 90 00 3A [18:05:46]RAPDU: F3 F6 2B 57 09 09 EB E4 90 00 [18:05:46]wFMCommunicate OK [18:05:46]SAM_PROTO_SignData done [18:05:46]FM_MakeSignedData done [18:05:46]CreateOFDProtocolMessage [18:05:46]wFMCommunicate request_size=4 [18:05:46]MH_SAM_APDU [18:05:46]CAPDU: 80 11 00 00 [18:05:46]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:46]Read from MH i2c: E2 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 17 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 44 [18:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:05:46]wFMCommunicate OK [18:05:46]CreateOFDProtocolMessage done [18:05:46]OFDSenderStorePacket 118174 [18:05:46]StoreOFDPacket docnum=118174 [18:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8B A1 07 01 2D 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 79 75 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CD 01 00 35 04 06 00 49 79 A4 5F 46 D3 F3 F6 2B 57 09 09 EB E4 [18:05:46]CheckFolder [18:05:46]dirname=/storage/ofd_packets [18:05:46]CheckFolder done [18:05:46]ProducePacketName [18:05:46]name=ofd_packets/00118174 [18:05:46]NVStorageSaveData ofd_packets/00118174 [18:05:46]File name is /storage/ofd_packets/00118174 [18:05:46]Write 301 bytes [18:05:46]NVStorageSaveData done [18:05:46]OFDSenderStorePacket done [18:05:46]KKMCreateOFDPacket done [18:05:46]NVStorageSaveData kkm_last_timestamp [18:05:46]File name is /storage/kkm_last_timestamp [18:05:46]Write 4 bytes [18:05:46]NVStorageSaveData done [18:05:46]ExternCall_PrintAddStr [18:05:46]wPrintStart [18:05:46]Write to MH i2c: 01 00 00 6B 09 74 [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: 01 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: 01 07 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [18:05:46]RasterBufferAndPrint [18:05:46]line Счет N : (1)245975 [18:05:46]line ИНН: 02508201610067 [18:05:46]line Контрольно-Кассовый Чек [18:05:46]line ПРОДАЖА [18:05:46]line ТРК (МРК, ГНК) : 21 [18:05:46]line Товар: 2710124130 [18:05:46]line Аи-92-К-2 [18:05:46]line 7.480 * 66.90 [18:05:46]line = 500.41 [18:05:46]line НДС 12% НСП 1% [18:05:46]line > о реализуемом товаре [18:05:46]line ОКРУГЛЕНИЕ: -0.41 [18:05:46]line ИТОГО: 500.00 [18:05:46]line Внесено: 500.00 [18:05:46]line СДАЧА: 0.00 [18:05:46]line НСП 1% : 4.43 [18:05:46]line НДС 12% : 53.14 [18:05:46]line Наличными: 500.00 [18:05:46]line Безнал.: 0.00 [18:05:46]line Место: АЗС № 173 "Партнер Нефть" [18:05:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:05:46]line СНО: Общий режим [18:05:46]line Чек 234 30.10.2024 18:05 [18:05:46]line Смена: 545 ФФД: 1.0 [18:05:46]line ЗНМ: 0300000115 [18:05:46]line РНМ: 0000000000091782 [18:05:46]line Версия ККМ: 001 [18:05:46]line ФМ: 0000000000871767 [18:05:46]line ФД: 118174 [18:05:46]line ФПД: 80786797577939 [18:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180545&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118174&fm=80786797577939&tin=02508201610067®Number=0000000000091782&sum=50000 [18:05:46]written 0, free lines is 4095 [18:05:46]OFD Sender: Processing packet 118174 [packets to send 77, broken 76] [18:05:46]ProducePacketName [18:05:46]name=ofd_packets/00118174 [18:05:46]OFD Sender: To server: pG, [18:05:46]CommunicateWithHost lk.salyk.kg:30040 [18:05:46]ConnectInit lk.salyk.kg [18:05:46]Connected sock=10 [18:05:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 8B A1 07 01 2D 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 79 75 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CD 01 00 35 04 06 00 49 79 A4 5F 46 D3 F3 F6 2B 57 09 09 EB E4 [18:05:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 94 E1 47 00 3F 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9E CD 01 00 F4 03 04 00 30 21 22 67 B6 04 01 00 00 CA 47 BE 0C 2E FA A5 81 [18:05:46]CommunicateWithHost err = 0 [18:05:46]CheckOFDResponse [18:05:46]1017 (14) - 77093643461234 [18:05:46]1041 (16) - 0000000000871767 [18:05:46]1040 (4) - 118174 [18:05:46]1012 (4) - 30.10.2024 12:06 [18:05:46]1206 (1) - 0 [18:05:46]OFD Sender: Remove packet 118174 [18:05:46]ProducePacketName [18:05:46]name=ofd_packets/00118174 [18:05:46]NVStorageDeleteData [18:05:46]Write to MH i2c: 01 00 00 95 09 9E [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: 01 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: 01 07 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: 01 07 00 95 09 00 00 00 00 00 B4 0C 65 [18:05:46]RasterBufferAndPrint [18:05:46]line [18:05:46]line [18:05:46]line [18:05:46]line [18:05:46]line [18:05:46]written 0, free lines is 3257 [18:05:46]MH_Cut [18:05:46]Write to MH i2c: D1 01 00 9C 09 01 77 [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: D1 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: D1 01 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: D1 01 00 9C 09 00 76 [18:05:46]Write to MH i2c: 01 00 00 9D 09 A6 [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:47]OFD Sender: No OFD packet to send [18:05:47]*** Cut start [18:05:47]*** Purtial cut [18:05:47]*** Stage 1: CUTSNS_PIN = 1 [18:05:48]Read from MH i2c: 01 [18:05:48]MH_I2C_Read... [18:05:48]*** Stop cut motor [18:05:48]*** Cut end [18:05:48]Read from MH i2c: 01 07 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 07 00 9D 09 00 00 00 00 00 FF 0F BB [18:05:48]process_action close_receipt done [18:05:48]requested_data is exist [18:05:48]produce_requested_data [18:05:48]requested_item fm.sn is exist - process it [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 11 00 00 [18:05:48]Write to MH i2c: E2 08 00 9E 09 80 11 00 00 00 00 00 00 21 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 9E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 78 [18:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:05:48]wFMCommunicate OK [18:05:48]requested_item fd.num is exist - process it [18:05:48]SAM_PROTO_GetFieldsCounters [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 13 00 00 [18:05:48]Write to MH i2c: E2 08 00 9F 09 80 13 00 00 00 00 00 00 24 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 62 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 62 00 9F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [18:05:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9E CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_GetFieldsCounters done [18:05:48]requested_item shift.num is exist - process it [18:05:48]requested_item shift.opened is exist - process it [18:05:48]req_shift_opened [18:05:48]FM_GetShiftState [18:05:48]SAM_PROTO_GetShiftState [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 13 01 00 [18:05:48]Write to MH i2c: E2 08 00 A0 09 80 13 01 00 00 00 00 00 26 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0E 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0E 00 A0 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FE [18:05:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_GetShiftState done [18:05:48]FM_GetShiftState done [18:05:48]req_shift_opened done [18:05:48]requested_item shift.open_date is exist - process it [18:05:48]req_shift_open_date [18:05:48]req_shift_open_date done [18:05:48]produce_requested_data done [18:05:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118174,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [18:05:48]process_action_free close_receipt [18:05:48]json_value_free [18:05:48]json_value_free done [18:05:48]process_json_proto returns [18:05:48]Send response to host [18:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118174,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [18:05:48]free response buf [18:05:48]execute_script done [18:05:48]execute_script returns [18:05:48]free content buf [18:05:48]Sock 9.Close socket [18:05:48]Sock 9.Thread stoped [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:02]accept exits with 7 [18:18:02]New connection [18:18:02]New thread 3067133284 created [18:18:02]Thread 3067276644 joined [18:18:02]Waiting for new connection... [18:18:02] Sock 7.Parse request [18:18:02]Sock 7.Check first char [18:18:02]Sock 7.First char is OK [18:18:02]request: POST /json_proto HTTP/1.0 [18:18:02]Method: POST [18:18:02]URL: /json_proto [18:18:02]Method is POST - this is cgi request [18:18:02]url: /json_proto [18:18:02]query_string will be loaded in cgi processing [18:18:02]execute_cgi json_proto POST (null) [18:18:02]execute_cgi path=json_proto method=POST [18:18:02]POST find Content-Length [18:18:02]Host: 172.17.96.67:8080 [18:18:02]Content-Length: 677 [18:18:02]Content-Type: application/json [18:18:02] [18:18:02]POST finish read [18:18:02]Found Content-Length = 677 [18:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:02]execute_script... [18:18: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)245976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:02]POST & json_proto [18:18:02]process_json_proto [18:18:02]json parsed OK: [18:18:02]protocol is kg_v1.0 [18:18:02]action value=close_receipt [18:18:02]process_action close_receipt [18:18:02]cmd_close_receipt [18:18:02]MH_GetDate [18:18:02]Write to MH i2c: F0 00 00 A1 09 99 [18:18:02]Write i2c OK [18:18:02]MH_I2C_Read... [18:18:02]Read from MH i2c: F0 [18:18:02]MH_I2C_Read... [18:18:02]Read from MH i2c: F0 09 00 [18:18:02]MH_I2C_Read... [18:18:02]Read from MH i2c: F0 09 00 A1 09 00 5A 78 22 67 47 6C 1F 67 36 [18:18:02]GetLastDocTimeStamp 1730311545 [18:18:02]current date 1730312282 [18:18:02]FM_GetShiftState [18:18:02]SAM_PROTO_GetShiftState [18:18:02]wFMCommunicate request_size=4 [18:18:02]MH_SAM_APDU [18:18:02]CAPDU: 80 13 01 00 [18:18:02]Write to MH i2c: E2 08 00 A2 09 80 13 01 00 00 00 00 00 28 [18:18:02]Write i2c OK [18:18:02]MH_I2C_Read... [18:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:02]Read from MH i2c: E2 [18:18:02]MH_I2C_Read... [18:18:02]Read from MH i2c: E2 0E 00 [18:18:02]MH_I2C_Read... [18:18:02]Read from MH i2c: E2 0E 00 A2 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 00 [18:18:02]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:18:02]wFMCommunicate OK [18:18:02]SAM_PROTO_GetShiftState done [18:18:02]FM_GetShiftState done [18:18:02]opened in 1730246605 [18:18:02]opened+sec_in_day 1730333005 [18:18:02]quantity*price = 30038 [18:18:02]sum+1 = 30039 [18:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 235 30.10.2024 18:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118175 ФПД: 143518372716228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181802&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118175&fm=143518372716228&tin=02508201610067®Number=0000000000091782&sum=30000 [18:18:03]StoreToDocumentArchive [18:18:03]shift 545 fd 118175 [18:18:03]save to /storage/0545/doc_00118175 [18:18:03]save last doc name /storage/0545/doc_00118175 to /storage/kkm_last_doc_name [18:18:03]save OK [18:18:03]Clear old archive folders... [18:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:03]tlvbuf is 0023EC60 [18:18:03]SAM_PROTO_ClearQueue [18:18:03]wFMCommunicate request_size=4 [18:18:03]MH_SAM_APDU [18:18:03]CAPDU: 80 09 00 00 [18:18:03]Write to MH i2c: E2 08 00 AF 09 80 09 00 00 00 00 00 00 2A [18:18:03]Write i2c OK [18:18:03]MH_I2C_Read... [18:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:03]Read from MH i2c: E2 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [18:18:03]RAPDU: 90 00 [18:18:03]wFMCommunicate OK [18:18:03]SAM_PROTO_ClearQueue done [18:18:03]KKMCreateOFDPacket [18:18:03]OFDProtocolAddRootSTLVToBuf [18:18:03]FM_MakeSignedData [18:18:03]FM_MakeSignedData [18:18:03]SAM_PROTO_SignData [18:18:03]wFMCommunicate request_size=4 [18:18:03]MH_SAM_APDU [18:18:03]CAPDU: 80 0D 01 02 [18:18:03]Write to MH i2c: E2 08 00 B0 09 80 0D 01 02 00 00 00 00 32 [18:18:03]Write i2c OK [18:18:03]MH_I2C_Read... [18:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:03]Read from MH i2c: E2 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [18:18:03]RAPDU: 90 00 [18:18:03]wFMCommunicate OK [18:18:03]wFMCommunicate request_size=255 [18:18:03]MH_SAM_APDU [18:18: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 32 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 EB 00 00 00 F4 03 04 00 5A 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CD 01 00 35 04 06 00 82 [18:18:03]Write to MH i2c: E2 02 01 B1 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EB 00 00 00 F4 03 04 00 5A 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CD 01 00 35 04 06 00 82 00 00 10 [18:18:03]Write i2c OK [18:18:03]MH_I2C_Read... [18:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:03]Read from MH i2c: E2 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [18:18:03]RAPDU: 90 00 [18:18:03]wFMCommunicate OK [18:18:03]wFMCommunicate request_size=10 [18:18:03]MH_SAM_APDU [18:18:03]CAPDU: 80 0D 02 02 05 87 79 9F DE C4 [18:18:03]Write to MH i2c: E2 0D 00 B2 09 80 0D 02 02 05 00 87 79 9F DE C4 00 00 80 [18:18:03]Write i2c OK [18:18:03]MH_I2C_Read... [18:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:03]Read from MH i2c: E2 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [18:18:03]RAPDU: 90 00 [18:18:03]wFMCommunicate OK [18:18:03]wFMCommunicate request_size=4 [18:18:03]MH_SAM_APDU [18:18:03]CAPDU: 80 0D 03 02 [18:18:03]Write to MH i2c: E2 08 00 B3 09 80 0D 03 02 00 00 00 00 37 [18:18:03]Write i2c OK [18:18:03]MH_I2C_Read... [18:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:04]Read from MH i2c: E2 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: E2 0B 00 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: E2 0B 00 B3 09 00 2C 7E 7C D3 27 F0 4D 05 90 00 9A [18:18:04]RAPDU: 2C 7E 7C D3 27 F0 4D 05 90 00 [18:18:04]wFMCommunicate OK [18:18:04]SAM_PROTO_SignData done [18:18:04]FM_MakeSignedData done [18:18:04]CreateOFDProtocolMessage [18:18:04]wFMCommunicate request_size=4 [18:18:04]MH_SAM_APDU [18:18:04]CAPDU: 80 11 00 00 [18:18:04]Write to MH i2c: E2 08 00 B4 09 80 11 00 00 00 00 00 00 37 [18:18:04]Write i2c OK [18:18:04]MH_I2C_Read... [18:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:04]Read from MH i2c: E2 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: E2 17 00 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: E2 17 00 B4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8E [18:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:18:04]wFMCommunicate OK [18:18:04]CreateOFDProtocolMessage done [18:18:04]OFDSenderStorePacket 118175 [18:18:04]StoreOFDPacket docnum=118175 [18:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 44 2C 07 01 7F 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EB 00 00 00 F4 03 04 00 5A 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CD 01 00 35 04 06 00 82 87 79 9F DE C4 2C 7E 7C D3 27 F0 4D 05 [18:18:04]CheckFolder [18:18:04]dirname=/storage/ofd_packets [18:18:04]CheckFolder done [18:18:04]ProducePacketName [18:18:04]name=ofd_packets/00118175 [18:18:04]NVStorageSaveData ofd_packets/00118175 [18:18:04]File name is /storage/ofd_packets/00118175 [18:18:04]Write 301 bytes [18:18:04]NVStorageSaveData done [18:18:04]OFDSenderStorePacket done [18:18:04]KKMCreateOFDPacket done [18:18:04]NVStorageSaveData kkm_last_timestamp [18:18:04]File name is /storage/kkm_last_timestamp [18:18:04]Write 4 bytes [18:18:04]NVStorageSaveData done [18:18:04]ExternCall_PrintAddStr [18:18:04]wPrintStart [18:18:04]Write to MH i2c: 01 00 00 B5 09 BE [18:18:04]Write i2c OK [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 07 00 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 07 00 B5 09 00 00 00 00 00 FF 0F D3 [18:18:04]RasterBufferAndPrint [18:18:04]line Счет N : (1)245976 [18:18:04]line ИНН: 02508201610067 [18:18:04]line Контрольно-Кассовый Чек [18:18:04]line ПРОДАЖА [18:18:04]line ТРК (МРК, ГНК) : 21 [18:18:04]line Товар: 2710124130 [18:18:04]line Аи-92-К-2 [18:18:04]line 4.490 * 66.90 [18:18:04]line = 300.38 [18:18:04]line НДС 12% НСП 1% [18:18:04]line > о реализуемом товаре [18:18:04]line ОКРУГЛЕНИЕ: -0.38 [18:18:04]line ИТОГО: 300.00 [18:18:04]line Внесено: 300.00 [18:18:04]line СДАЧА: 0.00 [18:18:04]line НСП 1% : 2.66 [18:18:04]line НДС 12% : 31.90 [18:18:04]line Наличными: 300.00 [18:18:04]line Безнал.: 0.00 [18:18:04]line Место: АЗС № 173 "Партнер Нефть" [18:18:04]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:18:04]line СНО: Общий режим [18:18:04]line Чек 235 30.10.2024 18:18 [18:18:04]line Смена: 545 ФФД: 1.0 [18:18:04]line ЗНМ: 0300000115 [18:18:04]line РНМ: 0000000000091782 [18:18:04]line Версия ККМ: 001 [18:18:04]line ФМ: 0000000000871767 [18:18:04]line ФД: 118175 [18:18:04]line ФПД: 143518372716228 [18:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181802&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118175&fm=143518372716228&tin=02508201610067®Number=0000000000091782&sum=30000 [18:18:04]written 0, free lines is 4095 [18:18:04]OFD Sender: Processing packet 118175 [packets to send 77, broken 76] [18:18:04]ProducePacketName [18:18:04]name=ofd_packets/00118175 [18:18:04]OFD Sender: To server: pG, [18:18:04]CommunicateWithHost lk.salyk.kg:30040 [18:18:04]ConnectInit lk.salyk.kg [18:18:04]Connected sock=11 [18:18: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 36 37 0F 01 00 00 44 2C 07 01 7F 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EB 00 00 00 F4 03 04 00 5A 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 9F CD 01 00 35 04 06 00 82 87 79 9F DE C4 2C 7E 7C D3 27 F0 4D 05 [18:18: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 36 37 4F 00 00 00 AE 56 47 00 09 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 36 37 10 04 04 00 9F CD 01 00 F4 03 04 00 11 24 22 67 B6 04 01 00 00 B5 C4 AE BE 9A CD 9B F1 [18:18:04]CommunicateWithHost err = 0 [18:18:04]CheckOFDResponse [18:18:04]1017 (14) - 77093643461234 [18:18:04]1041 (16) - 0000000000871767 [18:18:04]1040 (4) - 118175 [18:18:04]1012 (4) - 30.10.2024 12:18 [18:18:04]1206 (1) - 0 [18:18:04]OFD Sender: Remove packet 118175 [18:18:04]ProducePacketName [18:18:04]name=ofd_packets/00118175 [18:18:04]NVStorageDeleteData [18:18:04]Write to MH i2c: 01 00 00 DF 09 E8 [18:18:04]Write i2c OK [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 07 00 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 B8 0C B3 [18:18:04]RasterBufferAndPrint [18:18:04]line [18:18:04]line [18:18:04]line [18:18:04]line [18:18:04]line [18:18:04]written 0, free lines is 3263 [18:18:04]MH_Cut [18:18:04]Write to MH i2c: D1 01 00 E6 09 01 C1 [18:18:04]Write i2c OK [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: D1 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: D1 01 00 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: D1 01 00 E6 09 00 C0 [18:18:04]Write to MH i2c: 01 00 00 E7 09 F0 [18:18:04]Write i2c OK [18:18:04]MH_I2C_Read... [18:18:05]OFD Sender: No OFD packet to send [18:18:05]*** Cut start [18:18:05]*** Purtial cut [18:18:05]*** Stage 1: CUTSNS_PIN = 1 [18:18:05]Read from MH i2c: 01 [18:18:05]MH_I2C_Read... [18:18:05]*** Stop cut motor [18:18:05]*** Cut end [18:18:05]Read from MH i2c: 01 07 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [18:18:05]process_action close_receipt done [18:18:05]requested_data is exist [18:18:05]produce_requested_data [18:18:05]requested_item fm.sn is exist - process it [18:18:05]wFMCommunicate request_size=4 [18:18:05]MH_SAM_APDU [18:18:05]CAPDU: 80 11 00 00 [18:18:05]Write to MH i2c: E2 08 00 E8 09 80 11 00 00 00 00 00 00 6B [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:06]Read from MH i2c: E2 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: E2 17 00 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: E2 17 00 E8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C2 [18:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:18:06]wFMCommunicate OK [18:18:06]requested_item fd.num is exist - process it [18:18:06]SAM_PROTO_GetFieldsCounters [18:18:06]wFMCommunicate request_size=4 [18:18:06]MH_SAM_APDU [18:18:06]CAPDU: 80 13 00 00 [18:18:06]Write to MH i2c: E2 08 00 E9 09 80 13 00 00 00 00 00 00 6E [18:18:06]Write i2c OK [18:18:06]MH_I2C_Read... [18:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:06]Read from MH i2c: E2 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: E2 62 00 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: E2 62 00 E9 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [18:18: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 9F CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:06]wFMCommunicate OK [18:18:06]SAM_PROTO_GetFieldsCounters done [18:18:06]requested_item shift.num is exist - process it [18:18:06]requested_item shift.opened is exist - process it [18:18:06]req_shift_opened [18:18:06]FM_GetShiftState [18:18:06]SAM_PROTO_GetShiftState [18:18:06]wFMCommunicate request_size=4 [18:18:06]MH_SAM_APDU [18:18:06]CAPDU: 80 13 01 00 [18:18:06]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [18:18:06]Write i2c OK [18:18:06]MH_I2C_Read... [18:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:06]Read from MH i2c: E2 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: E2 0E 00 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 48 [18:18:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:18:06]wFMCommunicate OK [18:18:06]SAM_PROTO_GetShiftState done [18:18:06]FM_GetShiftState done [18:18:06]req_shift_opened done [18:18:06]requested_item shift.open_date is exist - process it [18:18:06]req_shift_open_date [18:18:06]req_shift_open_date done [18:18:06]produce_requested_data done [18:18:06]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118175,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [18:18:06]process_action_free close_receipt [18:18:06]json_value_free [18:18:06]json_value_free done [18:18:06]process_json_proto returns [18:18:06]Send response to host [18:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118175,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [18:18:06]free response buf [18:18:06]execute_script done [18:18:06]execute_script returns [18:18:06]free content buf [18:18:06]Sock 7.Close socket [18:18:06]Sock 7.Thread stoped [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:53]accept exits with 10 [18:18:53]New connection [18:18:53]New thread 3067276644 created [18:18:53]Thread 3067133284 joined [18:18:53]Waiting for new connection... [18:18:53] Sock 10.Parse request [18:18:53]Sock 10.Check first char [18:18:53]Sock 10.First char is OK [18:18:53]request: POST /json_proto HTTP/1.0 [18:18:53]Method: POST [18:18:53]URL: /json_proto [18:18:53]Method is POST - this is cgi request [18:18:53]url: /json_proto [18:18:53]query_string will be loaded in cgi processing [18:18:53]execute_cgi json_proto POST (null) [18:18:53]execute_cgi path=json_proto method=POST [18:18:53]POST find Content-Length [18:18:53]Host: 172.17.96.67:8080 [18:18:53]Content-Length: 682 [18:18:53]Content-Type: application/json [18:18:53] [18:18:53]POST finish read [18:18:53]Found Content-Length = 682 [18:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:53]execute_script... [18:18: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)245977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:53]POST & json_proto [18:18:53]process_json_proto [18:18:53]json parsed OK: [18:18:53]protocol is kg_v1.0 [18:18:53]action value=close_receipt [18:18:53]process_action close_receipt [18:18:53]cmd_close_receipt [18:18:53]MH_GetDate [18:18:53]Write to MH i2c: F0 00 00 EB 09 E3 [18:18:53]Write i2c OK [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: F0 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: F0 09 00 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: F0 09 00 EB 09 00 8E 78 22 67 47 6C 1F 67 B4 [18:18:53]GetLastDocTimeStamp 1730312282 [18:18:53]current date 1730312334 [18:18:53]FM_GetShiftState [18:18:53]SAM_PROTO_GetShiftState [18:18:53]wFMCommunicate request_size=4 [18:18:53]MH_SAM_APDU [18:18:53]CAPDU: 80 13 01 00 [18:18:53]Write to MH i2c: E2 08 00 EC 09 80 13 01 00 00 00 00 00 72 [18:18:53]Write i2c OK [18:18:53]MH_I2C_Read... [18:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:53]Read from MH i2c: E2 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 0E 00 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 0E 00 EC 09 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4A [18:18:53]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:18:53]wFMCommunicate OK [18:18:53]SAM_PROTO_GetShiftState done [18:18:53]FM_GetShiftState done [18:18:53]opened in 1730246605 [18:18:53]opened+sec_in_day 1730333005 [18:18:53]quantity*price = 100015 [18:18:53]sum+1 = 100017 [18:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 236 30.10.2024 18:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118176 ФПД: 176989046372760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181854&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118176&fm=176989046372760&tin=02508201610067®Number=0000000000091782&sum=100000 [18:18:55]StoreToDocumentArchive [18:18:55]shift 545 fd 118176 [18:18:55]save to /storage/0545/doc_00118176 [18:18:55]save last doc name /storage/0545/doc_00118176 to /storage/kkm_last_doc_name [18:18:55]save OK [18:18:55]Clear old archive folders... [18:18:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:55]tlvbuf is 001EAF40 [18:18:55]SAM_PROTO_ClearQueue [18:18:55]wFMCommunicate request_size=4 [18:18:55]MH_SAM_APDU [18:18:55]CAPDU: 80 09 00 00 [18:18:55]Write to MH i2c: E2 08 00 F9 09 80 09 00 00 00 00 00 00 74 [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:55]Read from MH i2c: E2 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 F9 09 00 90 00 76 [18:18:55]RAPDU: 90 00 [18:18:55]wFMCommunicate OK [18:18:55]SAM_PROTO_ClearQueue done [18:18:55]KKMCreateOFDPacket [18:18:55]OFDProtocolAddRootSTLVToBuf [18:18:55]FM_MakeSignedData [18:18:55]FM_MakeSignedData [18:18:55]SAM_PROTO_SignData [18:18:55]wFMCommunicate request_size=4 [18:18:55]MH_SAM_APDU [18:18:55]CAPDU: 80 0D 01 02 [18:18:55]Write to MH i2c: E2 08 00 FA 09 80 0D 01 02 00 00 00 00 7C [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:55]Read from MH i2c: E2 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [18:18:55]RAPDU: 90 00 [18:18:55]wFMCommunicate OK [18:18:55]wFMCommunicate request_size=255 [18:18:55]MH_SAM_APDU [18:18: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 32 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 EC 00 00 00 F4 03 04 00 8E 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CD 01 00 35 04 06 00 A0 [18:18:55]Write to MH i2c: E2 02 01 FB 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EC 00 00 00 F4 03 04 00 8E 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CD 01 00 35 04 06 00 A0 00 00 B4 [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]OFD Sender: No OFD packet to send [18:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:55]Read from MH i2c: E2 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [18:18:55]RAPDU: 90 00 [18:18:55]wFMCommunicate OK [18:18:55]wFMCommunicate request_size=10 [18:18:55]MH_SAM_APDU [18:18:55]CAPDU: 80 0D 02 02 05 F8 79 3C F9 98 [18:18:55]Write to MH i2c: E2 0D 00 FC 09 80 0D 02 02 05 00 F8 79 3C F9 98 00 00 C7 [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:55]Read from MH i2c: E2 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [18:18:55]RAPDU: 90 00 [18:18:55]wFMCommunicate OK [18:18:55]wFMCommunicate request_size=4 [18:18:55]MH_SAM_APDU [18:18:55]CAPDU: 80 0D 03 02 [18:18:55]Write to MH i2c: E2 08 00 FD 09 80 0D 03 02 00 00 00 00 81 [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:55]Read from MH i2c: E2 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 0B 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 0B 00 FD 09 00 A6 71 D8 B6 5F 76 03 55 90 00 54 [18:18:55]RAPDU: A6 71 D8 B6 5F 76 03 55 90 00 [18:18:55]wFMCommunicate OK [18:18:55]SAM_PROTO_SignData done [18:18:55]FM_MakeSignedData done [18:18:55]CreateOFDProtocolMessage [18:18:55]wFMCommunicate request_size=4 [18:18:55]MH_SAM_APDU [18:18:55]CAPDU: 80 11 00 00 [18:18:55]Write to MH i2c: E2 08 00 FE 09 80 11 00 00 00 00 00 00 81 [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:55]Read from MH i2c: E2 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 17 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: E2 17 00 FE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D8 [18:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:18:55]wFMCommunicate OK [18:18:55]CreateOFDProtocolMessage done [18:18:55]OFDSenderStorePacket 118176 [18:18:55]StoreOFDPacket docnum=118176 [18:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 6A 01 07 01 CC 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EC 00 00 00 F4 03 04 00 8E 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CD 01 00 35 04 06 00 A0 F8 79 3C F9 98 A6 71 D8 B6 5F 76 03 55 [18:18:55]CheckFolder [18:18:55]dirname=/storage/ofd_packets [18:18:55]CheckFolder done [18:18:55]ProducePacketName [18:18:55]name=ofd_packets/00118176 [18:18:55]NVStorageSaveData ofd_packets/00118176 [18:18:55]File name is /storage/ofd_packets/00118176 [18:18:55]Write 301 bytes [18:18:55]NVStorageSaveData done [18:18:55]OFDSenderStorePacket done [18:18:55]KKMCreateOFDPacket done [18:18:55]NVStorageSaveData kkm_last_timestamp [18:18:55]File name is /storage/kkm_last_timestamp [18:18:55]Write 4 bytes [18:18:55]NVStorageSaveData done [18:18:55]ExternCall_PrintAddStr [18:18:55]wPrintStart [18:18:55]Write to MH i2c: 01 00 00 FF 09 08 [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: 01 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: 01 07 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 FF 0F 1D [18:18:55]RasterBufferAndPrint [18:18:55]line Счет N : (1)245977 [18:18:55]line ИНН: 02508201610067 [18:18:55]line Контрольно-Кассовый Чек [18:18:55]line ПРОДАЖА [18:18:55]line ТРК (МРК, ГНК) : 11 [18:18:55]line Товар: 2710124130 [18:18:55]line Аи-92-К-2 [18:18:55]line 14.950 * 66.90 [18:18:55]line = 1000.16 [18:18:55]line НДС 12% НСП 1% [18:18:55]line > о реализуемом товаре [18:18:55]line ОКРУГЛЕНИЕ: -0.16 [18:18:55]line ИТОГО: 1000.00 [18:18:55]line Внесено: 1000.00 [18:18:55]line СДАЧА: 0.00 [18:18:55]line НСП 1% : 8.85 [18:18:55]line НДС 12% : 106.21 [18:18:55]line Наличными: 1000.00 [18:18:55]line Безнал.: 0.00 [18:18:55]line Место: АЗС № 173 "Партнер Нефть" [18:18:55]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:18:55]line СНО: Общий режим [18:18:55]line Чек 236 30.10.2024 18:18 [18:18:55]line Смена: 545 ФФД: 1.0 [18:18:55]line ЗНМ: 0300000115 [18:18:55]line РНМ: 0000000000091782 [18:18:55]line Версия ККМ: 001 [18:18:55]line ФМ: 0000000000871767 [18:18:55]line ФД: 118176 [18:18:55]line ФПД: 176989046372760 [18:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181854&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118176&fm=176989046372760&tin=02508201610067®Number=0000000000091782&sum=100000 [18:18:55]written 0, free lines is 4095 [18:18:55]OFD Sender: Processing packet 118176 [packets to send 77, broken 76] [18:18:55]ProducePacketName [18:18:55]name=ofd_packets/00118176 [18:18:55]OFD Sender: To server: pG, [18:18:55]CommunicateWithHost lk.salyk.kg:30040 [18:18:55]ConnectInit lk.salyk.kg [18:18:55]Connected sock=11 [18:18: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 36 37 0F 01 00 00 6A 01 07 01 CC 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EC 00 00 00 F4 03 04 00 8E 78 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CD 01 00 35 04 06 00 A0 F8 79 3C F9 98 A6 71 D8 B6 5F 76 03 55 [18:18: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 36 37 4F 00 00 00 68 03 47 00 D4 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A0 CD 01 00 F4 03 04 00 45 24 22 67 B6 04 01 00 00 63 30 57 49 7F 7D 53 6A [18:18:56]CommunicateWithHost err = 0 [18:18:56]CheckOFDResponse [18:18:56]1017 (14) - 77093643461234 [18:18:56]1041 (16) - 0000000000871767 [18:18:56]1040 (4) - 118176 [18:18:56]1012 (4) - 30.10.2024 12:19 [18:18:56]1206 (1) - 0 [18:18:56]OFD Sender: Remove packet 118176 [18:18:56]ProducePacketName [18:18:56]name=ofd_packets/00118176 [18:18:56]NVStorageDeleteData [18:18:56]Write to MH i2c: 01 00 00 29 0A 33 [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: 01 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: 01 07 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: 01 07 00 29 0A 00 00 00 00 00 D2 0C 18 [18:18:56]RasterBufferAndPrint [18:18:56]line [18:18:56]line [18:18:56]line [18:18:56]line [18:18:56]line [18:18:56]written 0, free lines is 3298 [18:18:56]MH_Cut [18:18:56]Write to MH i2c: D1 01 00 30 0A 01 0C [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: D1 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: D1 01 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: D1 01 00 30 0A 00 0B [18:18:56]Write to MH i2c: 01 00 00 31 0A 3B [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]OFD Sender: No OFD packet to send [18:18:56]*** Cut start [18:18:56]*** Purtial cut [18:18:56]*** Stage 1: CUTSNS_PIN = 1 [18:18:57]Read from MH i2c: 01 [18:18:57]MH_I2C_Read... [18:18:57]*** Stop cut motor [18:18:57]*** Cut end [18:18:57]Read from MH i2c: 01 07 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: 01 07 00 31 0A 00 00 00 00 00 FF 0F 50 [18:18:57]process_action close_receipt done [18:18:57]requested_data is exist [18:18:57]produce_requested_data [18:18:57]requested_item fm.sn is exist - process it [18:18:57]wFMCommunicate request_size=4 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 11 00 00 [18:18:57]Write to MH i2c: E2 08 00 32 0A 80 11 00 00 00 00 00 00 B6 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:57]Read from MH i2c: E2 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 17 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 17 00 32 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0D [18:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:18:57]wFMCommunicate OK [18:18:57]requested_item fd.num is exist - process it [18:18:57]SAM_PROTO_GetFieldsCounters [18:18:57]wFMCommunicate request_size=4 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 13 00 00 [18:18:57]Write to MH i2c: E2 08 00 33 0A 80 13 00 00 00 00 00 00 B9 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:57]Read from MH i2c: E2 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 62 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 62 00 33 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A0 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:18: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A0 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:57]wFMCommunicate OK [18:18:57]SAM_PROTO_GetFieldsCounters done [18:18:57]requested_item shift.num is exist - process it [18:18:57]requested_item shift.opened is exist - process it [18:18:57]req_shift_opened [18:18:57]FM_GetShiftState [18:18:57]SAM_PROTO_GetShiftState [18:18:57]wFMCommunicate request_size=4 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 13 01 00 [18:18:57]Write to MH i2c: E2 08 00 34 0A 80 13 01 00 00 00 00 00 BB [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:57]Read from MH i2c: E2 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 0E 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 0E 00 34 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 93 [18:18:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:18:57]wFMCommunicate OK [18:18:57]SAM_PROTO_GetShiftState done [18:18:57]FM_GetShiftState done [18:18:57]req_shift_opened done [18:18:57]requested_item shift.open_date is exist - process it [18:18:57]req_shift_open_date [18:18:57]req_shift_open_date done [18:18:57]produce_requested_data done [18:18:57]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118176,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [18:18:57]process_action_free close_receipt [18:18:57]json_value_free [18:18:57]json_value_free done [18:18:57]process_json_proto returns [18:18:57]Send response to host [18:18:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118176,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [18:18:57]free response buf [18:18:57]execute_script done [18:18:57]execute_script returns [18:18:57]free content buf [18:18:57]Sock 10.Close socket [18:18:57]Sock 10.Thread stoped [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:54]ConnectInit Can't connect to host [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [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:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:38]accept exits with 7 [18:54:38]New connection [18:54:38]New thread 3067133284 created [18:54:38]Thread 3067276644 joined [18:54:38]Waiting for new connection... [18:54:38] Sock 7.Parse request [18:54:38]Sock 7.Check first char [18:54:38]Sock 7.First char is OK [18:54:38]request: POST /json_proto HTTP/1.0 [18:54:38]Method: POST [18:54:38]URL: /json_proto [18:54:38]Method is POST - this is cgi request [18:54:38]url: /json_proto [18:54:38]query_string will be loaded in cgi processing [18:54:38]execute_cgi json_proto POST (null) [18:54:38]execute_cgi path=json_proto method=POST [18:54:38]POST find Content-Length [18:54:38]Host: 172.17.96.67:8080 [18:54:38]Content-Length: 677 [18:54:38]Content-Type: application/json [18:54:38] [18:54:38]POST finish read [18:54:38]Found Content-Length = 677 [18:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:54:38]execute_script... [18:54: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)245978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:54:38]POST & json_proto [18:54:38]process_json_proto [18:54:38]json parsed OK: [18:54:38]protocol is kg_v1.0 [18:54:38]action value=close_receipt [18:54:38]process_action close_receipt [18:54:38]cmd_close_receipt [18:54:38]MH_GetDate [18:54:38]Write to MH i2c: F0 00 00 35 0A 2E [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 09 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: F0 09 00 35 0A 00 EF 80 22 67 47 6C 1F 67 68 [18:54:38]GetLastDocTimeStamp 1730312334 [18:54:38]current date 1730314479 [18:54:38]FM_GetShiftState [18:54:38]SAM_PROTO_GetShiftState [18:54:38]wFMCommunicate request_size=4 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 13 01 00 [18:54:38]Write to MH i2c: E2 08 00 36 0A 80 13 01 00 00 00 00 00 BD [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 0E 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 0E 00 36 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 95 [18:54:38]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:54:38]wFMCommunicate OK [18:54:38]SAM_PROTO_GetShiftState done [18:54:38]FM_GetShiftState done [18:54:38]opened in 1730246605 [18:54:38]opened+sec_in_day 1730333005 [18:54:38]quantity*price = 20003 [18:54:38]sum+1 = 20004 [18:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 237 30.10.2024 18:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118177 ФПД: 243754433175776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T185439&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118177&fm=243754433175776&tin=02508201610067®Number=0000000000091782&sum=20000 [18:54:40]StoreToDocumentArchive [18:54:40]shift 545 fd 118177 [18:54:40]save to /storage/0545/doc_00118177 [18:54:40]save last doc name /storage/0545/doc_00118177 to /storage/kkm_last_doc_name [18:54:40]save OK [18:54:40]Clear old archive folders... [18:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:40]tlvbuf is 0023EA20 [18:54:40]SAM_PROTO_ClearQueue [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 09 00 00 [18:54:40]Write to MH i2c: E2 08 00 43 0A 80 09 00 00 00 00 00 00 BF [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]SAM_PROTO_ClearQueue done [18:54:40]KKMCreateOFDPacket [18:54:40]OFDProtocolAddRootSTLVToBuf [18:54:40]FM_MakeSignedData [18:54:40]FM_MakeSignedData [18:54:40]SAM_PROTO_SignData [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 01 02 [18:54:40]Write to MH i2c: E2 08 00 44 0A 80 0D 01 02 00 00 00 00 C7 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=255 [18:54:40]MH_SAM_APDU [18:54: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 32 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 ED 00 00 00 F4 03 04 00 EF 80 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CD 01 00 35 04 06 00 DD [18:54:40]Write to MH i2c: E2 02 01 45 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 ED 00 00 00 F4 03 04 00 EF 80 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CD 01 00 35 04 06 00 DD 00 00 6F [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=10 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 02 02 05 B1 80 66 E0 E0 [18:54:40]Write to MH i2c: E2 0D 00 46 0A 80 0D 02 02 05 00 B1 80 66 E0 E0 00 00 2B [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [18:54:40]RAPDU: 90 00 [18:54:40]wFMCommunicate OK [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 0D 03 02 [18:54:40]Write to MH i2c: E2 08 00 47 0A 80 0D 03 02 00 00 00 00 CC [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0B 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0B 00 47 0A 00 33 CD FE 65 3A 94 70 25 90 00 93 [18:54:40]RAPDU: 33 CD FE 65 3A 94 70 25 90 00 [18:54:40]wFMCommunicate OK [18:54:40]SAM_PROTO_SignData done [18:54:40]FM_MakeSignedData done [18:54:40]CreateOFDProtocolMessage [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 11 00 00 [18:54:40]Write to MH i2c: E2 08 00 48 0A 80 11 00 00 00 00 00 00 CC [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 48 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 23 [18:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:54:40]wFMCommunicate OK [18:54:40]CreateOFDProtocolMessage done [18:54:40]OFDSenderStorePacket 118177 [18:54:40]StoreOFDPacket docnum=118177 [18:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 EA D8 07 01 D9 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 ED 00 00 00 F4 03 04 00 EF 80 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CD 01 00 35 04 06 00 DD B1 80 66 E0 E0 33 CD FE 65 3A 94 70 25 [18:54:40]CheckFolder [18:54:40]dirname=/storage/ofd_packets [18:54:40]CheckFolder done [18:54:40]ProducePacketName [18:54:40]name=ofd_packets/00118177 [18:54:40]NVStorageSaveData ofd_packets/00118177 [18:54:40]File name is /storage/ofd_packets/00118177 [18:54:40]Write 301 bytes [18:54:40]NVStorageSaveData done [18:54:40]OFDSenderStorePacket done [18:54:40]KKMCreateOFDPacket done [18:54:40]NVStorageSaveData kkm_last_timestamp [18:54:40]File name is /storage/kkm_last_timestamp [18:54:40]Write 4 bytes [18:54:40]NVStorageSaveData done [18:54:40]OFD Sender: Processing packet 118177 [packets to send 77, broken 76] [18:54:40]ProducePacketName [18:54:40]name=ofd_packets/00118177 [18:54:40]OFD Sender: To server: pG, [18:54:40]CommunicateWithHost lk.salyk.kg:30040 [18:54:40]ConnectInit lk.salyk.kg [18:54:40]ExternCall_PrintAddStr [18:54:40]wPrintStart [18:54:40]Write to MH i2c: 01 00 00 49 0A 53 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 49 0A 00 00 00 00 00 FF 0F 68 [18:54:40]RasterBufferAndPrint [18:54:40]line Счет N : (1)245978 [18:54:40]line ИНН: 02508201610067 [18:54:40]line Контрольно-Кассовый Чек [18:54:40]line ПРОДАЖА [18:54:40]line ТРК (МРК, ГНК) : 21 [18:54:40]line Товар: 2710124130 [18:54:40]line Аи-92-К-2 [18:54:40]line 2.990 * 66.90 [18:54:40]line = 200.03 [18:54:40]line НДС 12% НСП 1% [18:54:40]line > о реализуемом товаре [18:54:40]line ОКРУГЛЕНИЕ: -0.03 [18:54:40]line ИТОГО: 200.00 [18:54:40]line Внесено: 200.00 [18:54:40]line СДАЧА: 0.00 [18:54:40]line НСП 1% : 1.77 [18:54:40]line НДС 12% : 21.24 [18:54:40]line Наличными: 200.00 [18:54:40]line Безнал.: 0.00 [18:54:40]line Место: АЗС № 173 "Партнер Нефть" [18:54:40]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:54:40]line СНО: Общий режим [18:54:40]line Чек 237 30.10.2024 18:54 [18:54:40]line Смена: 545 ФФД: 1.0 [18:54:40]line ЗНМ: 0300000115 [18:54:40]line РНМ: 0000000000091782 [18:54:40]line Версия ККМ: 001 [18:54:40]line ФМ: 0000000000871767 [18:54:40]line ФД: 118177 [18:54:40]line ФПД: 243754433175776 [18:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T185439&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118177&fm=243754433175776&tin=02508201610067®Number=0000000000091782&sum=20000 [18:54:40]Connected sock=11 [18:54: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 36 37 0F 01 00 00 EA D8 07 01 D9 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 ED 00 00 00 F4 03 04 00 EF 80 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CD 01 00 35 04 06 00 DD B1 80 66 E0 E0 33 CD FE 65 3A 94 70 25 [18:54:40]written 0, free lines is 4095 [18:54: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 36 37 4F 00 00 00 C5 7A 47 00 7E E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A1 CD 01 00 F4 03 04 00 A6 2C 22 67 B6 04 01 00 00 36 DA 38 75 9E 44 AD 13 [18:54:41]CommunicateWithHost err = 0 [18:54:41]CheckOFDResponse [18:54:41]1017 (14) - 77093643461234 [18:54:41]1041 (16) - 0000000000871767 [18:54:41]1040 (4) - 118177 [18:54:41]1012 (4) - 30.10.2024 12:55 [18:54:41]1206 (1) - 0 [18:54:41]OFD Sender: Remove packet 118177 [18:54:41]ProducePacketName [18:54:41]name=ofd_packets/00118177 [18:54:41]NVStorageDeleteData [18:54:41]Write to MH i2c: 01 00 00 73 0A 7D [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 07 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 B6 0C 46 [18:54:41]RasterBufferAndPrint [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]line [18:54:41]written 0, free lines is 3258 [18:54:41]MH_Cut [18:54:41]Write to MH i2c: D1 01 00 7A 0A 01 56 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 01 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: D1 01 00 7A 0A 00 55 [18:54:41]Write to MH i2c: 01 00 00 7B 0A 85 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]OFD Sender: No OFD packet to send [18:54:42]*** Cut start [18:54:42]*** Purtial cut [18:54:42]*** Stage 1: CUTSNS_PIN = 1 [18:54:42]Read from MH i2c: 01 [18:54:42]MH_I2C_Read... [18:54:42]*** Stop cut motor [18:54:42]*** Cut end [18:54:42]Read from MH i2c: 01 07 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 FF 0F 9A [18:54:42]process_action close_receipt done [18:54:42]requested_data is exist [18:54:42]produce_requested_data [18:54:42]requested_item fm.sn is exist - process it [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 11 00 00 [18:54:42]Write to MH i2c: E2 08 00 7C 0A 80 11 00 00 00 00 00 00 00 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 17 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 17 00 7C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 57 [18:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:54:42]wFMCommunicate OK [18:54:42]requested_item fd.num is exist - process it [18:54:42]SAM_PROTO_GetFieldsCounters [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 13 00 00 [18:54:42]Write to MH i2c: E2 08 00 7D 0A 80 13 00 00 00 00 00 00 03 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 62 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 62 00 7D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [18:54: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_GetFieldsCounters done [18:54:42]requested_item shift.num is exist - process it [18:54:42]requested_item shift.opened is exist - process it [18:54:42]req_shift_opened [18:54:42]FM_GetShiftState [18:54:42]SAM_PROTO_GetShiftState [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 13 01 00 [18:54:42]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DD [18:54:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_GetShiftState done [18:54:42]FM_GetShiftState done [18:54:42]req_shift_opened done [18:54:42]requested_item shift.open_date is exist - process it [18:54:42]req_shift_open_date [18:54:42]req_shift_open_date done [18:54:42]produce_requested_data done [18:54:42]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118177,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [18:54:42]process_action_free close_receipt [18:54:42]json_value_free [18:54:42]json_value_free done [18:54:42]process_json_proto returns [18:54:42]Send response to host [18:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118177,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [18:54:42]free response buf [18:54:42]execute_script done [18:54:42]execute_script returns [18:54:42]free content buf [18:54:42]Sock 7.Close socket [18:54:42]Sock 7.Thread stoped [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]accept exits with 9 [18:55:16]New connection [18:55:16]New thread 3067276644 created [18:55:16]Thread 3067133284 joined [18:55:16]Waiting for new connection... [18:55:16] Sock 9.Parse request [18:55:16]Sock 9.Check first char [18:55:16]Sock 9.First char is OK [18:55:16]request: POST /json_proto HTTP/1.0 [18:55:16]Method: POST [18:55:16]URL: /json_proto [18:55:16]Method is POST - this is cgi request [18:55:16]url: /json_proto [18:55:16]query_string will be loaded in cgi processing [18:55:16]execute_cgi json_proto POST (null) [18:55:16]execute_cgi path=json_proto method=POST [18:55:16]POST find Content-Length [18:55:16]Host: 172.17.96.67:8080 [18:55:16]Content-Length: 682 [18:55:16]Content-Type: application/json [18:55:16] [18:55:16]POST finish read [18:55:16]Found Content-Length = 682 [18:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:55:16]execute_script... [18:55: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)245979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:55:16]POST & json_proto [18:55:16]process_json_proto [18:55:16]json parsed OK: [18:55:16]protocol is kg_v1.0 [18:55:16]action value=close_receipt [18:55:16]process_action close_receipt [18:55:16]cmd_close_receipt [18:55:16]MH_GetDate [18:55:16]Write to MH i2c: F0 00 00 7F 0A 78 [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 09 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 09 00 7F 0A 00 15 81 22 67 47 6C 1F 67 D9 [18:55:16]GetLastDocTimeStamp 1730314479 [18:55:16]current date 1730314517 [18:55:16]FM_GetShiftState [18:55:16]SAM_PROTO_GetShiftState [18:55:16]wFMCommunicate request_size=4 [18:55:16]MH_SAM_APDU [18:55:16]CAPDU: 80 13 01 00 [18:55:16]Write to MH i2c: E2 08 00 80 0A 80 13 01 00 00 00 00 00 07 [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:16]Read from MH i2c: E2 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0E 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0E 00 80 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DF [18:55:16]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:55:16]wFMCommunicate OK [18:55:16]SAM_PROTO_GetShiftState done [18:55:16]FM_GetShiftState done [18:55:16]opened in 1730246605 [18:55:16]opened+sec_in_day 1730333005 [18:55:16]quantity*price = 100015 [18:55:16]sum+1 = 100017 [18:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 238 30.10.2024 18:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118178 ФПД: 46944756487604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T185517&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118178&fm=46944756487604&tin=02508201610067®Number=0000000000091782&sum=100000 [18:55:17]StoreToDocumentArchive [18:55:17]shift 545 fd 118178 [18:55:17]save to /storage/0545/doc_00118178 [18:55:17]save last doc name /storage/0545/doc_00118178 to /storage/kkm_last_doc_name [18:55:17]save OK [18:55:17]Clear old archive folders... [18:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:17]tlvbuf is 00247BC0 [18:55:17]SAM_PROTO_ClearQueue [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 09 00 00 [18:55:17]Write to MH i2c: E2 08 00 8D 0A 80 09 00 00 00 00 00 00 09 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [18:55:17]RAPDU: 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_ClearQueue done [18:55:17]KKMCreateOFDPacket [18:55:17]OFDProtocolAddRootSTLVToBuf [18:55:17]FM_MakeSignedData [18:55:17]FM_MakeSignedData [18:55:17]SAM_PROTO_SignData [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 0D 01 02 [18:55:17]Write to MH i2c: E2 08 00 8E 0A 80 0D 01 02 00 00 00 00 11 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [18:55:17]RAPDU: 90 00 [18:55:17]wFMCommunicate OK [18:55:17]wFMCommunicate request_size=255 [18:55:17]MH_SAM_APDU [18:55: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 32 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 EE 00 00 00 F4 03 04 00 15 81 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CD 01 00 35 04 06 00 2A [18:55:17]Write to MH i2c: E2 02 01 8F 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EE 00 00 00 F4 03 04 00 15 81 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CD 01 00 35 04 06 00 2A 00 00 67 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [18:55:18]RAPDU: 90 00 [18:55:18]wFMCommunicate OK [18:55:18]wFMCommunicate request_size=10 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 02 02 05 B2 2D 88 D5 B4 [18:55:18]Write to MH i2c: E2 0D 00 90 0A 80 0D 02 02 05 00 B2 2D 88 D5 B4 00 00 0E [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [18:55:18]RAPDU: 90 00 [18:55:18]wFMCommunicate OK [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 03 02 [18:55:18]Write to MH i2c: E2 08 00 91 0A 80 0D 03 02 00 00 00 00 16 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0B 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0B 00 91 0A 00 59 25 2E 56 27 A6 59 99 90 00 D8 [18:55:18]RAPDU: 59 25 2E 56 27 A6 59 99 90 00 [18:55:18]wFMCommunicate OK [18:55:18]SAM_PROTO_SignData done [18:55:18]FM_MakeSignedData done [18:55:18]CreateOFDProtocolMessage [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 11 00 00 [18:55:18]Write to MH i2c: E2 08 00 92 0A 80 11 00 00 00 00 00 00 16 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 17 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 17 00 92 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6D [18:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:55:18]wFMCommunicate OK [18:55:18]CreateOFDProtocolMessage done [18:55:18]OFDSenderStorePacket 118178 [18:55:18]StoreOFDPacket docnum=118178 [18:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5A D5 07 01 44 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 15 81 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CD 01 00 35 04 06 00 2A B2 2D 88 D5 B4 59 25 2E 56 27 A6 59 99 [18:55:18]CheckFolder [18:55:18]dirname=/storage/ofd_packets [18:55:18]CheckFolder done [18:55:18]ProducePacketName [18:55:18]name=ofd_packets/00118178 [18:55:18]NVStorageSaveData ofd_packets/00118178 [18:55:18]File name is /storage/ofd_packets/00118178 [18:55:18]Write 301 bytes [18:55:18]NVStorageSaveData done [18:55:18]OFDSenderStorePacket done [18:55:18]KKMCreateOFDPacket done [18:55:18]NVStorageSaveData kkm_last_timestamp [18:55:18]File name is /storage/kkm_last_timestamp [18:55:18]Write 4 bytes [18:55:18]NVStorageSaveData done [18:55:18]ExternCall_PrintAddStr [18:55:18]wPrintStart [18:55:18]Write to MH i2c: 01 00 00 93 0A 9D [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 93 0A 00 00 00 00 00 FF 0F B2 [18:55:18]RasterBufferAndPrint [18:55:18]line Счет N : (1)245979 [18:55:18]line ИНН: 02508201610067 [18:55:18]line Контрольно-Кассовый Чек [18:55:18]line ПРОДАЖА [18:55:18]line ТРК (МРК, ГНК) : 11 [18:55:18]line Товар: 2710124130 [18:55:18]line Аи-92-К-2 [18:55:18]line 14.950 * 66.90 [18:55:18]line = 1000.16 [18:55:18]line НДС 12% НСП 1% [18:55:18]line > о реализуемом товаре [18:55:18]line ОКРУГЛЕНИЕ: -0.16 [18:55:18]line ИТОГО: 1000.00 [18:55:18]line Внесено: 1000.00 [18:55:18]line СДАЧА: 0.00 [18:55:18]line НСП 1% : 8.85 [18:55:18]line НДС 12% : 106.21 [18:55:18]line Наличными: 1000.00 [18:55:18]line Безнал.: 0.00 [18:55:18]line Место: АЗС № 173 "Партнер Нефть" [18:55:18]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [18:55:18]line СНО: Общий режим [18:55:18]line Чек 238 30.10.2024 18:55 [18:55:18]line Смена: 545 ФФД: 1.0 [18:55:18]line ЗНМ: 0300000115 [18:55:18]line РНМ: 0000000000091782 [18:55:18]line Версия ККМ: 001 [18:55:18]line ФМ: 0000000000871767 [18:55:18]line ФД: 118178 [18:55:18]line ФПД: 46944756487604 [18:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T185517&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118178&fm=46944756487604&tin=02508201610067®Number=0000000000091782&sum=100000 [18:55:18]OFD Sender: Processing packet 118178 [packets to send 77, broken 76] [18:55:18]ProducePacketName [18:55:18]name=ofd_packets/00118178 [18:55:18]OFD Sender: To server: pG, [18:55:18]CommunicateWithHost lk.salyk.kg:30040 [18:55:18]ConnectInit lk.salyk.kg [18:55:18]written 0, free lines is 4095 [18:55:18]Connected sock=10 [18:55: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 36 37 0F 01 00 00 5A D5 07 01 44 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 15 81 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A2 CD 01 00 35 04 06 00 2A B2 2D 88 D5 B4 59 25 2E 56 27 A6 59 99 [18:55: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 36 37 4F 00 00 00 AD 7E 47 00 D4 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 36 37 10 04 04 00 A2 CD 01 00 F4 03 04 00 CC 2C 22 67 B6 04 01 00 00 68 87 1F 84 71 25 87 64 [18:55:18]CommunicateWithHost err = 0 [18:55:18]CheckOFDResponse [18:55:18]1017 (14) - 77093643461234 [18:55:18]1041 (16) - 0000000000871767 [18:55:18]1040 (4) - 118178 [18:55:18]1012 (4) - 30.10.2024 12:55 [18:55:18]1206 (1) - 0 [18:55:18]OFD Sender: Remove packet 118178 [18:55:18]ProducePacketName [18:55:18]name=ofd_packets/00118178 [18:55:18]NVStorageDeleteData [18:55:18]Write to MH i2c: 01 00 00 BD 0A C7 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 C2 0C 9C [18:55:18]RasterBufferAndPrint [18:55:18]line [18:55:18]line [18:55:18]line [18:55:18]line [18:55:18]line [18:55:18]written 0, free lines is 3272 [18:55:18]MH_Cut [18:55:18]Write to MH i2c: D1 01 00 C4 0A 01 A0 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: D1 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: D1 01 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: D1 01 00 C4 0A 00 9F [18:55:18]Write to MH i2c: 01 00 00 C5 0A CF [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:19]OFD Sender: No OFD packet to send [18:55:19]*** Cut start [18:55:19]*** Purtial cut [18:55:19]*** Stage 1: CUTSNS_PIN = 1 [18:55:20]Read from MH i2c: 01 [18:55:20]MH_I2C_Read... [18:55:20]*** Stop cut motor [18:55:20]*** Cut end [18:55:20]Read from MH i2c: 01 07 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [18:55:20]process_action close_receipt done [18:55:20]requested_data is exist [18:55:20]produce_requested_data [18:55:20]requested_item fm.sn is exist - process it [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 11 00 00 [18:55:20]Write to MH i2c: E2 08 00 C6 0A 80 11 00 00 00 00 00 00 4A [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 17 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 17 00 C6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A1 [18:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [18:55:20]wFMCommunicate OK [18:55:20]requested_item fd.num is exist - process it [18:55:20]SAM_PROTO_GetFieldsCounters [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 13 00 00 [18:55:20]Write to MH i2c: E2 08 00 C7 0A 80 13 00 00 00 00 00 00 4D [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 62 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 62 00 C7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [18:55: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:20]wFMCommunicate OK [18:55:20]SAM_PROTO_GetFieldsCounters done [18:55:20]requested_item shift.num is exist - process it [18:55:20]requested_item shift.opened is exist - process it [18:55:20]req_shift_opened [18:55:20]FM_GetShiftState [18:55:20]SAM_PROTO_GetShiftState [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 13 01 00 [18:55:20]Write to MH i2c: E2 08 00 C8 0A 80 13 01 00 00 00 00 00 4F [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 0E 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 0E 00 C8 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 27 [18:55:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [18:55:20]wFMCommunicate OK [18:55:20]SAM_PROTO_GetShiftState done [18:55:20]FM_GetShiftState done [18:55:20]req_shift_opened done [18:55:20]requested_item shift.open_date is exist - process it [18:55:20]req_shift_open_date [18:55:20]req_shift_open_date done [18:55:20]produce_requested_data done [18:55:20]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118178,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [18:55:20]process_action_free close_receipt [18:55:20]json_value_free [18:55:20]json_value_free done [18:55:20]process_json_proto returns [18:55:20]Send response to host [18:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118178,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [18:55:20]free response buf [18:55:20]execute_script done [18:55:20]execute_script returns [18:55:20]free content buf [18:55:20]Sock 9.Close socket [18:55:20]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]accept exits with 7 [19:05:19]New connection [19:05:19]New thread 3067133284 created [19:05:19]Thread 3067276644 joined [19:05:19]Waiting for new connection... [19:05:19]OFD Sender: No OFD packet to send [19:05:19] Sock 7.Parse request [19:05:19]Sock 7.Check first char [19:05:19]Sock 7.First char is OK [19:05:19]request: POST /json_proto HTTP/1.0 [19:05:19]Method: POST [19:05:19]URL: /json_proto [19:05:19]Method is POST - this is cgi request [19:05:19]url: /json_proto [19:05:19]query_string will be loaded in cgi processing [19:05:19]execute_cgi json_proto POST (null) [19:05:19]execute_cgi path=json_proto method=POST [19:05:19]POST find Content-Length [19:05:19]Host: 172.17.96.67:8080 [19:05:19]Content-Length: 673 [19:05:19]Content-Type: application/json [19:05:19] [19:05:19]POST finish read [19:05:19]Found Content-Length = 673 [19:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.010, "sum" : 67.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 67.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:19]execute_script... [19:05:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.010, "sum" : 67.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 67.00, "total" : 67.00, "payments": [ { "type": 0, "sum" : 67.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:19]POST & json_proto [19:05:19]process_json_proto [19:05:19]json parsed OK: [19:05:19]protocol is kg_v1.0 [19:05:19]action value=close_receipt [19:05:19]process_action close_receipt [19:05:19]cmd_close_receipt [19:05:19]MH_GetDate [19:05:19]Write to MH i2c: F0 00 00 C9 0A C2 [19:05:19]Write i2c OK [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: F0 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: F0 09 00 [19:05:19]MH_I2C_Read... [19:05:19]Read from MH i2c: F0 09 00 C9 0A 00 70 83 22 67 47 6C 1F 67 80 [19:05:19]GetLastDocTimeStamp 1730314517 [19:05:19]current date 1730315120 [19:05:19]FM_GetShiftState [19:05:19]SAM_PROTO_GetShiftState [19:05:19]wFMCommunicate request_size=4 [19:05:19]MH_SAM_APDU [19:05:19]CAPDU: 80 13 01 00 [19:05:19]Write to MH i2c: E2 08 00 CA 0A 80 13 01 00 00 00 00 00 51 [19:05:19]Write i2c OK [19:05:19]MH_I2C_Read... [19:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:20]Read from MH i2c: E2 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 0E 00 [19:05:20]MH_I2C_Read... [19:05:20]Read from MH i2c: E2 0E 00 CA 0A 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 29 [19:05:20]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:05:20]wFMCommunicate OK [19:05:20]SAM_PROTO_GetShiftState done [19:05:20]FM_GetShiftState done [19:05:20]opened in 1730246605 [19:05:20]opened+sec_in_day 1730333005 [19:05:20]quantity*price = 6756 [19:05:20]sum+1 = 6758 [19:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 67.00 Внесено: 67.00 СДАЧА: 0.00 НСП 1% : 0.60 НДС 12% : 7.18 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 239 30.10.2024 19:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118179 ФПД: 133286087619625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190520&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118179&fm=133286087619625&tin=02508201610067®Number=0000000000091782&sum=6700 [19:05:21]StoreToDocumentArchive [19:05:21]shift 545 fd 118179 [19:05:21]save to /storage/0545/doc_00118179 [19:05:21]save last doc name /storage/0545/doc_00118179 to /storage/kkm_last_doc_name [19:05:21]save OK [19:05:21]Clear old archive folders... [19:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:21]tlvbuf is 0021DCA0 [19:05:21]SAM_PROTO_ClearQueue [19:05:21]wFMCommunicate request_size=4 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 09 00 00 [19:05:21]Write to MH i2c: E2 08 00 D7 0A 80 09 00 00 00 00 00 00 53 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [19:05:21]RAPDU: 90 00 [19:05:21]wFMCommunicate OK [19:05:21]SAM_PROTO_ClearQueue done [19:05:21]KKMCreateOFDPacket [19:05:21]OFDProtocolAddRootSTLVToBuf [19:05:21]FM_MakeSignedData [19:05:21]FM_MakeSignedData [19:05:21]SAM_PROTO_SignData [19:05:21]wFMCommunicate request_size=4 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 0D 01 02 [19:05:21]Write to MH i2c: E2 08 00 D8 0A 80 0D 01 02 00 00 00 00 5B [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [19:05:21]RAPDU: 90 00 [19:05:21]wFMCommunicate OK [19:05:21]wFMCommunicate request_size=255 [19:05:21]MH_SAM_APDU [19:05: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 32 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 EF 00 00 00 F4 03 04 00 70 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CD 01 00 35 04 06 00 79 [19:05:21]Write to MH i2c: E2 02 01 D9 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 70 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CD 01 00 35 04 06 00 79 00 00 28 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [19:05:21]RAPDU: 90 00 [19:05:21]wFMCommunicate OK [19:05:21]wFMCommunicate request_size=10 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 0D 02 02 05 39 15 E7 F4 29 [19:05:21]Write to MH i2c: E2 0D 00 DA 0A 80 0D 02 02 05 00 39 15 E7 F4 29 00 00 BA [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 03 00 DA 0A 00 90 00 58 [19:05:21]RAPDU: 90 00 [19:05:21]wFMCommunicate OK [19:05:21]wFMCommunicate request_size=4 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 0D 03 02 [19:05:21]Write to MH i2c: E2 08 00 DB 0A 80 0D 03 02 00 00 00 00 60 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 0B 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 0B 00 DB 0A 00 1B A3 90 16 65 F6 EC 92 90 00 9E [19:05:21]RAPDU: 1B A3 90 16 65 F6 EC 92 90 00 [19:05:21]wFMCommunicate OK [19:05:21]SAM_PROTO_SignData done [19:05:21]FM_MakeSignedData done [19:05:21]CreateOFDProtocolMessage [19:05:21]wFMCommunicate request_size=4 [19:05:21]MH_SAM_APDU [19:05:21]CAPDU: 80 11 00 00 [19:05:21]Write to MH i2c: E2 08 00 DC 0A 80 11 00 00 00 00 00 00 60 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:21]Read from MH i2c: E2 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 17 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: E2 17 00 DC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B7 [19:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:05:21]wFMCommunicate OK [19:05:21]CreateOFDProtocolMessage done [19:05:21]OFDSenderStorePacket 118179 [19:05:21]StoreOFDPacket docnum=118179 [19:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CA E0 07 01 A9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 70 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CD 01 00 35 04 06 00 79 39 15 E7 F4 29 1B A3 90 16 65 F6 EC 92 [19:05:21]CheckFolder [19:05:21]dirname=/storage/ofd_packets [19:05:21]CheckFolder done [19:05:21]ProducePacketName [19:05:21]name=ofd_packets/00118179 [19:05:21]NVStorageSaveData ofd_packets/00118179 [19:05:21]File name is /storage/ofd_packets/00118179 [19:05:21]Write 301 bytes [19:05:21]NVStorageSaveData done [19:05:21]OFDSenderStorePacket done [19:05:21]KKMCreateOFDPacket done [19:05:21]NVStorageSaveData kkm_last_timestamp [19:05:21]File name is /storage/kkm_last_timestamp [19:05:21]Write 4 bytes [19:05:21]NVStorageSaveData done [19:05:21]ExternCall_PrintAddStr [19:05:21]wPrintStart [19:05:21]Write to MH i2c: 01 00 00 DD 0A E7 [19:05:21]Write i2c OK [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: 01 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: 01 07 00 [19:05:21]MH_I2C_Read... [19:05:21]Read from MH i2c: 01 07 00 DD 0A 00 00 00 00 00 FF 0F FC [19:05:21]RasterBufferAndPrint [19:05:21]line Счет N : (1)245980 [19:05:21]line ИНН: 02508201610067 [19:05:21]line Контрольно-Кассовый Чек [19:05:21]line ПРОДАЖА [19:05:21]line ТРК (МРК, ГНК) : 21 [19:05:21]line Товар: 2710124130 [19:05:21]line Аи-92-К-2 [19:05:21]line 1.010 * 66.90 [19:05:21]line = 67.57 [19:05:21]line НДС 12% НСП 1% [19:05:21]line > о реализуемом товаре [19:05:21]line ОКРУГЛЕНИЕ: -0.57 [19:05:21]line ИТОГО: 67.00 [19:05:21]line Внесено: 67.00 [19:05:21]line СДАЧА: 0.00 [19:05:21]line НСП 1% : 0.60 [19:05:21]line НДС 12% : 7.18 [19:05:21]line Наличными: 67.00 [19:05:21]line Безнал.: 0.00 [19:05:21]line Место: АЗС № 173 "Партнер Нефть" [19:05:21]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:05:21]line СНО: Общий режим [19:05:21]line Чек 239 30.10.2024 19:05 [19:05:21]line Смена: 545 ФФД: 1.0 [19:05:21]line ЗНМ: 0300000115 [19:05:21]line РНМ: 0000000000091782 [19:05:21]line Версия ККМ: 001 [19:05:21]line ФМ: 0000000000871767 [19:05:21]line ФД: 118179 [19:05:21]line ФПД: 133286087619625 [19:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190520&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118179&fm=133286087619625&tin=02508201610067®Number=0000000000091782&sum=6700 [19:05:21]written 0, free lines is 4095 [19:05:21]OFD Sender: Processing packet 118179 [packets to send 77, broken 76] [19:05:21]ProducePacketName [19:05:21]name=ofd_packets/00118179 [19:05:22]OFD Sender: To server: pG, [19:05:22]CommunicateWithHost lk.salyk.kg:30040 [19:05:22]ConnectInit lk.salyk.kg [19:05:22]Connected sock=9 [19:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 CA E0 07 01 A9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 70 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A3 CD 01 00 35 04 06 00 79 39 15 E7 F4 29 1B A3 90 16 65 F6 EC 92 [19:05:22]Write to MH i2c: 01 00 00 07 0B 12 [19:05:22]Write i2c OK [19:05:22]MH_I2C_Read... [19:05:22]Read from MH i2c: 01 [19:05:22]MH_I2C_Read... [19:05:22]Read from MH i2c: 01 07 00 [19:05:22]MH_I2C_Read... [19:05:22]Read from MH i2c: 01 07 00 07 0B 00 00 00 00 00 C2 0C E7 [19:05:22]RasterBufferAndPrint [19:05:22]line [19:05:22]line [19:05:22]line [19:05:22]line [19:05:22]line [19:05:22]written 0, free lines is 3272 [19:05:22]MH_Cut [19:05:22]Write to MH i2c: D1 01 00 0E 0B 01 EB [19:05:22]Write i2c OK [19:05:22]MH_I2C_Read... [19:05:22]Read from MH i2c: D1 [19:05:22]MH_I2C_Read... [19:05:22]Read from MH i2c: D1 01 00 [19:05:22]MH_I2C_Read... [19:05:22]Read from MH i2c: D1 01 00 0E 0B 00 EA [19:05:22]Write to MH i2c: 01 00 00 0F 0B 1A [19:05:22]Write i2c OK [19:05:22]MH_I2C_Read... [19:05: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 36 37 4F 00 00 00 85 EE 47 00 44 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 36 37 10 04 04 00 A3 CD 01 00 F4 03 04 00 27 2F 22 67 B6 04 01 00 00 80 C4 0A A4 25 F1 7C 28 [19:05:22]CommunicateWithHost err = 0 [19:05:22]CheckOFDResponse [19:05:22]1017 (14) - 77093643461234 [19:05:22]1041 (16) - 0000000000871767 [19:05:22]1040 (4) - 118179 [19:05:22]1012 (4) - 30.10.2024 13:05 [19:05:22]1206 (1) - 0 [19:05:22]OFD Sender: Remove packet 118179 [19:05:22]ProducePacketName [19:05:22]name=ofd_packets/00118179 [19:05:22]NVStorageDeleteData [19:05:22]OFD Sender: No OFD packet to send [19:05:22]*** Cut start [19:05:22]*** Purtial cut [19:05:22]*** Stage 1: CUTSNS_PIN = 1 [19:05:23]Read from MH i2c: 01 [19:05:23]MH_I2C_Read... [19:05:23]*** Stop cut motor [19:05:23]*** Cut end [19:05:23]Read from MH i2c: 01 07 00 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: 01 07 00 0F 0B 00 00 00 00 00 FF 0F 2F [19:05:23]process_action close_receipt done [19:05:23]requested_data is exist [19:05:23]produce_requested_data [19:05:23]requested_item fm.sn is exist - process it [19:05:23]wFMCommunicate request_size=4 [19:05:23]MH_SAM_APDU [19:05:23]CAPDU: 80 11 00 00 [19:05:23]Write to MH i2c: E2 08 00 10 0B 80 11 00 00 00 00 00 00 95 [19:05:23]Write i2c OK [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 [19:05:23]MH_I2C_Read... [19:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:23]Read from MH i2c: E2 17 00 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 17 00 10 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EC [19:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:05:23]wFMCommunicate OK [19:05:23]requested_item fd.num is exist - process it [19:05:23]SAM_PROTO_GetFieldsCounters [19:05:23]wFMCommunicate request_size=4 [19:05:23]MH_SAM_APDU [19:05:23]CAPDU: 80 13 00 00 [19:05:23]Write to MH i2c: E2 08 00 11 0B 80 13 00 00 00 00 00 00 98 [19:05:23]Write i2c OK [19:05:23]MH_I2C_Read... [19:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:23]Read from MH i2c: E2 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 62 00 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 62 00 11 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A3 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [19:05: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A3 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:23]wFMCommunicate OK [19:05:23]SAM_PROTO_GetFieldsCounters done [19:05:23]requested_item shift.num is exist - process it [19:05:23]requested_item shift.opened is exist - process it [19:05:23]req_shift_opened [19:05:23]FM_GetShiftState [19:05:23]SAM_PROTO_GetShiftState [19:05:23]wFMCommunicate request_size=4 [19:05:23]MH_SAM_APDU [19:05:23]CAPDU: 80 13 01 00 [19:05:23]Write to MH i2c: E2 08 00 12 0B 80 13 01 00 00 00 00 00 9A [19:05:23]Write i2c OK [19:05:23]MH_I2C_Read... [19:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:23]Read from MH i2c: E2 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 0E 00 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 0E 00 12 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 72 [19:05:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:05:23]wFMCommunicate OK [19:05:23]SAM_PROTO_GetShiftState done [19:05:23]FM_GetShiftState done [19:05:23]req_shift_opened done [19:05:23]requested_item shift.open_date is exist - process it [19:05:23]req_shift_open_date [19:05:23]req_shift_open_date done [19:05:23]produce_requested_data done [19:05:23]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118179,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:05:23]process_action_free close_receipt [19:05:23]json_value_free [19:05:23]json_value_free done [19:05:23]process_json_proto returns [19:05:23]Send response to host [19:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118179,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:05:23]free response buf [19:05:23]execute_script done [19:05:23]execute_script returns [19:05:23]free content buf [19:05:23]Sock 7.Close socket [19:05:23]Sock 7.Thread stoped [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]accept exits with 10 [19:05:42]New connection [19:05:42]New thread 3067276644 created [19:05:42]Thread 3067133284 joined [19:05:42]Waiting for new connection... [19:05:42] Sock 10.Parse request [19:05:42]Sock 10.Check first char [19:05:42]Sock 10.First char is OK [19:05:42]request: POST /json_proto HTTP/1.0 [19:05:42]Method: POST [19:05:42]URL: /json_proto [19:05:42]Method is POST - this is cgi request [19:05:42]url: /json_proto [19:05:42]query_string will be loaded in cgi processing [19:05:42]execute_cgi json_proto POST (null) [19:05:42]execute_cgi path=json_proto method=POST [19:05:42]POST find Content-Length [19:05:42]Host: 172.17.96.67:8080 [19:05:42]Content-Length: 677 [19:05:42]Content-Type: application/json [19:05:42] [19:05:42]POST finish read [19:05:42]Found Content-Length = 677 [19:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.990, "sum" : 133.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:42]execute_script... [19:05:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.990, "sum" : 133.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:42]POST & json_proto [19:05:42]process_json_proto [19:05:42]json parsed OK: [19:05:42]protocol is kg_v1.0 [19:05:42]action value=close_receipt [19:05:42]process_action close_receipt [19:05:42]cmd_close_receipt [19:05:42]MH_GetDate [19:05:42]Write to MH i2c: F0 00 00 13 0B 0D [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: F0 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: F0 09 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: F0 09 00 13 0B 00 87 83 22 67 47 6C 1F 67 E2 [19:05:42]GetLastDocTimeStamp 1730315120 [19:05:42]current date 1730315143 [19:05:42]FM_GetShiftState [19:05:42]SAM_PROTO_GetShiftState [19:05:42]wFMCommunicate request_size=4 [19:05:42]MH_SAM_APDU [19:05:42]CAPDU: 80 13 01 00 [19:05:42]Write to MH i2c: E2 08 00 14 0B 80 13 01 00 00 00 00 00 9C [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]OFD Sender: No OFD packet to send [19:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:42]Read from MH i2c: E2 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 0E 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 0E 00 14 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 74 [19:05:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:05:42]wFMCommunicate OK [19:05:42]SAM_PROTO_GetShiftState done [19:05:42]FM_GetShiftState done [19:05:42]opened in 1730246605 [19:05:42]opened+sec_in_day 1730333005 [19:05:42]quantity*price = 13313 [19:05:42]sum+1 = 13314 [19:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.14 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 240 30.10.2024 19:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118180 ФПД: 150334911814339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190543&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118180&fm=150334911814339&tin=02508201610067®Number=0000000000091782&sum=13300 [19:05:44]StoreToDocumentArchive [19:05:44]shift 545 fd 118180 [19:05:44]save to /storage/0545/doc_00118180 [19:05:44]save last doc name /storage/0545/doc_00118180 to /storage/kkm_last_doc_name [19:05:44]save OK [19:05:44]Clear old archive folders... [19:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:44]tlvbuf is 00232CD0 [19:05:44]SAM_PROTO_ClearQueue [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 09 00 00 [19:05:44]Write to MH i2c: E2 08 00 21 0B 80 09 00 00 00 00 00 00 9E [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 21 0B 00 90 00 A0 [19:05:44]RAPDU: 90 00 [19:05:44]wFMCommunicate OK [19:05:44]SAM_PROTO_ClearQueue done [19:05:44]KKMCreateOFDPacket [19:05:44]OFDProtocolAddRootSTLVToBuf [19:05:44]FM_MakeSignedData [19:05:44]FM_MakeSignedData [19:05:44]SAM_PROTO_SignData [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 0D 01 02 [19:05:44]Write to MH i2c: E2 08 00 22 0B 80 0D 01 02 00 00 00 00 A6 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [19:05:44]RAPDU: 90 00 [19:05:44]wFMCommunicate OK [19:05:44]wFMCommunicate request_size=255 [19:05:44]MH_SAM_APDU [19:05: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 32 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 87 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CD 01 00 35 04 06 00 88 [19:05:44]Write to MH i2c: E2 02 01 23 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 87 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CD 01 00 35 04 06 00 88 00 00 E0 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [19:05:44]RAPDU: 90 00 [19:05:44]wFMCommunicate OK [19:05:44]wFMCommunicate request_size=10 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 0D 02 02 05 BA 93 04 1A C3 [19:05:44]Write to MH i2c: E2 0D 00 24 0B 80 0D 02 02 05 00 BA 93 04 1A C3 00 00 E1 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [19:05:44]RAPDU: 90 00 [19:05:44]wFMCommunicate OK [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 0D 03 02 [19:05:44]Write to MH i2c: E2 08 00 25 0B 80 0D 03 02 00 00 00 00 AB [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 0B 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 0B 00 25 0B 00 30 61 79 CB ED 0E 1B F7 90 00 8E [19:05:44]RAPDU: 30 61 79 CB ED 0E 1B F7 90 00 [19:05:44]wFMCommunicate OK [19:05:44]SAM_PROTO_SignData done [19:05:44]FM_MakeSignedData done [19:05:44]CreateOFDProtocolMessage [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 11 00 00 [19:05:44]Write to MH i2c: E2 08 00 26 0B 80 11 00 00 00 00 00 00 AB [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 17 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 17 00 26 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 02 [19:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:05:44]wFMCommunicate OK [19:05:44]CreateOFDProtocolMessage done [19:05:44]OFDSenderStorePacket 118180 [19:05:44]StoreOFDPacket docnum=118180 [19:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 E6 4E 07 01 94 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 87 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CD 01 00 35 04 06 00 88 BA 93 04 1A C3 30 61 79 CB ED 0E 1B F7 [19:05:44]CheckFolder [19:05:44]dirname=/storage/ofd_packets [19:05:44]CheckFolder done [19:05:44]ProducePacketName [19:05:44]name=ofd_packets/00118180 [19:05:44]NVStorageSaveData ofd_packets/00118180 [19:05:44]File name is /storage/ofd_packets/00118180 [19:05:44]Write 301 bytes [19:05:44]NVStorageSaveData done [19:05:44]OFDSenderStorePacket done [19:05:44]KKMCreateOFDPacket done [19:05:44]NVStorageSaveData kkm_last_timestamp [19:05:44]File name is /storage/kkm_last_timestamp [19:05:44]Write 4 bytes [19:05:44]NVStorageSaveData done [19:05:44]ExternCall_PrintAddStr [19:05:44]wPrintStart [19:05:44]Write to MH i2c: 01 00 00 27 0B 32 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: 01 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: 01 07 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 FF 0F 47 [19:05:44]RasterBufferAndPrint [19:05:44]line Счет N : (1)245981 [19:05:44]line ИНН: 02508201610067 [19:05:44]line Контрольно-Кассовый Чек [19:05:44]line ПРОДАЖА [19:05:44]line ТРК (МРК, ГНК) : 21 [19:05:44]line Товар: 2710124130 [19:05:44]line Аи-92-К-2 [19:05:44]line 1.990 * 66.90 [19:05:44]line = 133.13 [19:05:44]line НДС 12% НСП 1% [19:05:44]line > о реализуемом товаре [19:05:44]line ОКРУГЛЕНИЕ: -0.13 [19:05:44]line ИТОГО: 133.00 [19:05:44]line Внесено: 133.00 [19:05:44]line СДАЧА: 0.00 [19:05:44]line НСП 1% : 1.18 [19:05:44]line НДС 12% : 14.14 [19:05:44]line Наличными: 133.00 [19:05:44]line Безнал.: 0.00 [19:05:44]line Место: АЗС № 173 "Партнер Нефть" [19:05:44]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:05:44]line СНО: Общий режим [19:05:44]line Чек 240 30.10.2024 19:05 [19:05:44]line Смена: 545 ФФД: 1.0 [19:05:44]line ЗНМ: 0300000115 [19:05:44]line РНМ: 0000000000091782 [19:05:44]line Версия ККМ: 001 [19:05:44]line ФМ: 0000000000871767 [19:05:44]line ФД: 118180 [19:05:44]line ФПД: 150334911814339 [19:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190543&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118180&fm=150334911814339&tin=02508201610067®Number=0000000000091782&sum=13300 [19:05:44]written 0, free lines is 4095 [19:05:44]OFD Sender: Processing packet 118180 [packets to send 77, broken 76] [19:05:44]ProducePacketName [19:05:44]name=ofd_packets/00118180 [19:05:44]OFD Sender: To server: pG, [19:05:44]CommunicateWithHost lk.salyk.kg:30040 [19:05:44]ConnectInit lk.salyk.kg [19:05:45]Connected sock=9 [19:05: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 36 37 0F 01 00 00 E6 4E 07 01 94 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 87 83 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A4 CD 01 00 35 04 06 00 88 BA 93 04 1A C3 30 61 79 CB ED 0E 1B F7 [19:05: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 36 37 4F 00 00 00 5A 68 47 00 73 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 36 37 10 04 04 00 A4 CD 01 00 F4 03 04 00 3E 2F 22 67 B6 04 01 00 00 59 CF 33 8B D3 7F A7 10 [19:05:45]CommunicateWithHost err = 0 [19:05:45]CheckOFDResponse [19:05:45]1017 (14) - 77093643461234 [19:05:45]1041 (16) - 0000000000871767 [19:05:45]1040 (4) - 118180 [19:05:45]1012 (4) - 30.10.2024 13:06 [19:05:45]1206 (1) - 0 [19:05:45]OFD Sender: Remove packet 118180 [19:05:45]ProducePacketName [19:05:45]name=ofd_packets/00118180 [19:05:45]NVStorageDeleteData [19:05:45]Write to MH i2c: 01 00 00 51 0B 5C [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: 01 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: 01 07 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: 01 07 00 51 0B 00 00 00 00 00 B0 0C 1F [19:05:45]RasterBufferAndPrint [19:05:45]line [19:05:45]line [19:05:45]line [19:05:45]line [19:05:45]line [19:05:45]written 0, free lines is 3254 [19:05:45]MH_Cut [19:05:45]Write to MH i2c: D1 01 00 58 0B 01 35 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: D1 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: D1 01 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: D1 01 00 58 0B 00 34 [19:05:45]Write to MH i2c: 01 00 00 59 0B 64 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]OFD Sender: No OFD packet to send [19:05:46]*** Cut start [19:05:46]*** Purtial cut [19:05:46]*** Stage 1: CUTSNS_PIN = 1 [19:05:46]Read from MH i2c: 01 [19:05:46]MH_I2C_Read... [19:05:46]*** Stop cut motor [19:05:46]*** Cut end [19:05:46]Read from MH i2c: 01 07 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: 01 07 00 59 0B 00 00 00 00 00 FF 0F 79 [19:05:46]process_action close_receipt done [19:05:46]requested_data is exist [19:05:46]produce_requested_data [19:05:46]requested_item fm.sn is exist - process it [19:05:46]wFMCommunicate request_size=4 [19:05:46]MH_SAM_APDU [19:05:46]CAPDU: 80 11 00 00 [19:05:46]Write to MH i2c: E2 08 00 5A 0B 80 11 00 00 00 00 00 00 DF [19:05:46]Write i2c OK [19:05:46]MH_I2C_Read... [19:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:46]Read from MH i2c: E2 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 17 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 17 00 5A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 36 [19:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:05:46]wFMCommunicate OK [19:05:46]requested_item fd.num is exist - process it [19:05:46]SAM_PROTO_GetFieldsCounters [19:05:46]wFMCommunicate request_size=4 [19:05:46]MH_SAM_APDU [19:05:46]CAPDU: 80 13 00 00 [19:05:46]Write to MH i2c: E2 08 00 5B 0B 80 13 00 00 00 00 00 00 E2 [19:05:46]Write i2c OK [19:05:46]MH_I2C_Read... [19:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:46]Read from MH i2c: E2 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 62 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 62 00 5B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A4 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [19:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A4 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:46]wFMCommunicate OK [19:05:46]SAM_PROTO_GetFieldsCounters done [19:05:46]requested_item shift.num is exist - process it [19:05:46]requested_item shift.opened is exist - process it [19:05:46]req_shift_opened [19:05:46]FM_GetShiftState [19:05:46]SAM_PROTO_GetShiftState [19:05:46]wFMCommunicate request_size=4 [19:05:46]MH_SAM_APDU [19:05:46]CAPDU: 80 13 01 00 [19:05:46]Write to MH i2c: E2 08 00 5C 0B 80 13 01 00 00 00 00 00 E4 [19:05:46]Write i2c OK [19:05:46]MH_I2C_Read... [19:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:46]Read from MH i2c: E2 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 0E 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 0E 00 5C 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BC [19:05:46]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:05:46]wFMCommunicate OK [19:05:46]SAM_PROTO_GetShiftState done [19:05:46]FM_GetShiftState done [19:05:46]req_shift_opened done [19:05:46]requested_item shift.open_date is exist - process it [19:05:46]req_shift_open_date [19:05:46]req_shift_open_date done [19:05:46]produce_requested_data done [19:05:46]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118180,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:05:46]process_action_free close_receipt [19:05:46]json_value_free [19:05:46]json_value_free done [19:05:46]process_json_proto returns [19:05:46]Send response to host [19:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118180,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:05:46]free response buf [19:05:46]execute_script done [19:05:46]execute_script returns [19:05:46]free content buf [19:05:46]Sock 10.Close socket [19:05:46]Sock 10.Thread stoped [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:26]accept exits with 7 [19:08:26]New connection [19:08:26]New thread 3067133284 created [19:08:26]Thread 3067276644 joined [19:08:26]Waiting for new connection... [19:08:26] Sock 7.Parse request [19:08:26]Sock 7.Check first char [19:08:26]Sock 7.First char is OK [19:08:26]request: POST /json_proto HTTP/1.0 [19:08:26]Method: POST [19:08:26]URL: /json_proto [19:08:26]Method is POST - this is cgi request [19:08:26]url: /json_proto [19:08:26]query_string will be loaded in cgi processing [19:08:26]execute_cgi json_proto POST (null) [19:08:26]execute_cgi path=json_proto method=POST [19:08:26]POST find Content-Length [19:08:26]Host: 172.17.96.67:8080 [19:08:26]Content-Length: 677 [19:08:26]Content-Type: application/json [19:08:26] [19:08:26]POST finish read [19:08:26]Found Content-Length = 677 [19:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:08:26]execute_script... [19:08:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:08:26]POST & json_proto [19:08:26]process_json_proto [19:08:26]json parsed OK: [19:08:26]protocol is kg_v1.0 [19:08:26]action value=close_receipt [19:08:26]process_action close_receipt [19:08:26]cmd_close_receipt [19:08:26]MH_GetDate [19:08:26]Write to MH i2c: F0 00 00 5D 0B 57 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: F0 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: F0 09 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: F0 09 00 5D 0B 00 2B 84 22 67 47 6C 1F 67 D1 [19:08:26]GetLastDocTimeStamp 1730315143 [19:08:26]current date 1730315307 [19:08:26]FM_GetShiftState [19:08:26]SAM_PROTO_GetShiftState [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 13 01 00 [19:08:26]Write to MH i2c: E2 08 00 5E 0B 80 13 01 00 00 00 00 00 E6 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 0E 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 0E 00 5E 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BE [19:08:26]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:08:26]wFMCommunicate OK [19:08:26]SAM_PROTO_GetShiftState done [19:08:26]FM_GetShiftState done [19:08:26]opened in 1730246605 [19:08:26]opened+sec_in_day 1730333005 [19:08:26]quantity*price = 50041 [19:08:26]sum+1 = 50042 [19:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 241 30.10.2024 19:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118181 ФПД: 247621576313401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190827&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118181&fm=247621576313401&tin=02508201610067®Number=0000000000091782&sum=50000 [19:08:27]StoreToDocumentArchive [19:08:27]shift 545 fd 118181 [19:08:27]save to /storage/0545/doc_00118181 [19:08:27]save last doc name /storage/0545/doc_00118181 to /storage/kkm_last_doc_name [19:08:27]save OK [19:08:27]Clear old archive folders... [19:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:27]tlvbuf is 0021E310 [19:08:27]SAM_PROTO_ClearQueue [19:08:27]wFMCommunicate request_size=4 [19:08:27]MH_SAM_APDU [19:08:27]CAPDU: 80 09 00 00 [19:08:27]Write to MH i2c: E2 08 00 6B 0B 80 09 00 00 00 00 00 00 E8 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:27]Read from MH i2c: E2 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 03 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [19:08:27]RAPDU: 90 00 [19:08:27]wFMCommunicate OK [19:08:27]SAM_PROTO_ClearQueue done [19:08:27]KKMCreateOFDPacket [19:08:27]OFDProtocolAddRootSTLVToBuf [19:08:27]FM_MakeSignedData [19:08:27]FM_MakeSignedData [19:08:27]SAM_PROTO_SignData [19:08:27]wFMCommunicate request_size=4 [19:08:27]MH_SAM_APDU [19:08:27]CAPDU: 80 0D 01 02 [19:08:27]Write to MH i2c: E2 08 00 6C 0B 80 0D 01 02 00 00 00 00 F0 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:27]Read from MH i2c: E2 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 03 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [19:08:27]RAPDU: 90 00 [19:08:27]wFMCommunicate OK [19:08:27]wFMCommunicate request_size=255 [19:08:27]MH_SAM_APDU [19:08: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 32 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 F1 00 00 00 F4 03 04 00 2B 84 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CD 01 00 35 04 06 00 E1 [19:08:27]Write to MH i2c: E2 02 01 6D 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F1 00 00 00 F4 03 04 00 2B 84 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CD 01 00 35 04 06 00 E1 00 00 22 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:27]Read from MH i2c: E2 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 03 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [19:08:27]RAPDU: 90 00 [19:08:27]wFMCommunicate OK [19:08:27]wFMCommunicate request_size=10 [19:08:27]MH_SAM_APDU [19:08:27]CAPDU: 80 0D 02 02 05 35 E4 18 4A 39 [19:08:27]Write to MH i2c: E2 0D 00 6E 0B 80 0D 02 02 05 00 35 E4 18 4A 39 00 00 B1 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:28]Read from MH i2c: E2 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 03 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [19:08:28]RAPDU: 90 00 [19:08:28]wFMCommunicate OK [19:08:28]wFMCommunicate request_size=4 [19:08:28]MH_SAM_APDU [19:08:28]CAPDU: 80 0D 03 02 [19:08:28]Write to MH i2c: E2 08 00 6F 0B 80 0D 03 02 00 00 00 00 F5 [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:28]Read from MH i2c: E2 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 0B 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 0B 00 6F 0B 00 AB 7C 3E FC 24 98 9B FE 90 00 AC [19:08:28]RAPDU: AB 7C 3E FC 24 98 9B FE 90 00 [19:08:28]wFMCommunicate OK [19:08:28]SAM_PROTO_SignData done [19:08:28]FM_MakeSignedData done [19:08:28]CreateOFDProtocolMessage [19:08:28]wFMCommunicate request_size=4 [19:08:28]MH_SAM_APDU [19:08:28]CAPDU: 80 11 00 00 [19:08:28]Write to MH i2c: E2 08 00 70 0B 80 11 00 00 00 00 00 00 F5 [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:28]Read from MH i2c: E2 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 17 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: E2 17 00 70 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4C [19:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:08:28]wFMCommunicate OK [19:08:28]CreateOFDProtocolMessage done [19:08:28]OFDSenderStorePacket 118181 [19:08:28]StoreOFDPacket docnum=118181 [19:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5F CD 07 01 EF 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F1 00 00 00 F4 03 04 00 2B 84 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CD 01 00 35 04 06 00 E1 35 E4 18 4A 39 AB 7C 3E FC 24 98 9B FE [19:08:28]CheckFolder [19:08:28]dirname=/storage/ofd_packets [19:08:28]CheckFolder done [19:08:28]ProducePacketName [19:08:28]name=ofd_packets/00118181 [19:08:28]NVStorageSaveData ofd_packets/00118181 [19:08:28]File name is /storage/ofd_packets/00118181 [19:08:28]Write 301 bytes [19:08:28]NVStorageSaveData done [19:08:28]OFDSenderStorePacket done [19:08:28]KKMCreateOFDPacket done [19:08:28]NVStorageSaveData kkm_last_timestamp [19:08:28]File name is /storage/kkm_last_timestamp [19:08:28]Write 4 bytes [19:08:28]NVStorageSaveData done [19:08:28]OFD Sender: Processing packet 118181 [packets to send 77, broken 76] [19:08:28]ProducePacketName [19:08:28]name=ofd_packets/00118181 [19:08:28]OFD Sender: To server: pG, [19:08:28]CommunicateWithHost lk.salyk.kg:30040 [19:08:28]ConnectInit lk.salyk.kg [19:08:28]ExternCall_PrintAddStr [19:08:28]wPrintStart [19:08:28]Write to MH i2c: 01 00 00 71 0B 7C [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 07 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 07 00 71 0B 00 00 00 00 00 FF 0F 91 [19:08:28]RasterBufferAndPrint [19:08:28]line Счет N : (1)245982 [19:08:28]line ИНН: 02508201610067 [19:08:28]line Контрольно-Кассовый Чек [19:08:28]line ПРОДАЖА [19:08:28]line ТРК (МРК, ГНК) : 11 [19:08:28]line Товар: 2710124130 [19:08:28]line Аи-92-К-2 [19:08:28]line 7.480 * 66.90 [19:08:28]line = 500.41 [19:08:28]line НДС 12% НСП 1% [19:08:28]line > о реализуемом товаре [19:08:28]line ОКРУГЛЕНИЕ: -0.41 [19:08:28]line ИТОГО: 500.00 [19:08:28]line Внесено: 500.00 [19:08:28]line СДАЧА: 0.00 [19:08:28]line НСП 1% : 4.43 [19:08:28]line НДС 12% : 53.14 [19:08:28]line Наличными: 500.00 [19:08:28]line Безнал.: 0.00 [19:08:28]line Место: АЗС № 173 "Партнер Нефть" [19:08:28]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:08:28]line СНО: Общий режим [19:08:28]line Чек 241 30.10.2024 19:08 [19:08:28]line Смена: 545 ФФД: 1.0 [19:08:28]line ЗНМ: 0300000115 [19:08:28]line РНМ: 0000000000091782 [19:08:28]line Версия ККМ: 001 [19:08:28]line ФМ: 0000000000871767 [19:08:28]line ФД: 118181 [19:08:28]line ФПД: 247621576313401 [19:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190827&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118181&fm=247621576313401&tin=02508201610067®Number=0000000000091782&sum=50000 [19:08:28]Connected sock=11 [19:08: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 36 37 0F 01 00 00 5F CD 07 01 EF 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F1 00 00 00 F4 03 04 00 2B 84 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A5 CD 01 00 35 04 06 00 E1 35 E4 18 4A 39 AB 7C 3E FC 24 98 9B FE [19:08:28]written 0, free lines is 4095 [19:08: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 36 37 4F 00 00 00 45 AA 47 00 C3 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 36 37 10 04 04 00 A5 CD 01 00 F4 03 04 00 E1 2F 22 67 B6 04 01 00 00 5E B0 B9 1A 46 89 F2 2F [19:08:28]CommunicateWithHost err = 0 [19:08:28]CheckOFDResponse [19:08:28]1017 (14) - 77093643461234 [19:08:28]1041 (16) - 0000000000871767 [19:08:28]1040 (4) - 118181 [19:08:28]1012 (4) - 30.10.2024 13:08 [19:08:28]1206 (1) - 0 [19:08:28]OFD Sender: Remove packet 118181 [19:08:28]ProducePacketName [19:08:28]name=ofd_packets/00118181 [19:08:28]NVStorageDeleteData [19:08:28]Write to MH i2c: 01 00 00 9B 0B A6 [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 07 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 07 00 9B 0B 00 00 00 00 00 B7 0C 70 [19:08:28]RasterBufferAndPrint [19:08:28]line [19:08:28]line [19:08:28]line [19:08:28]line [19:08:28]line [19:08:28]written 0, free lines is 3262 [19:08:28]MH_Cut [19:08:28]Write to MH i2c: D1 01 00 A2 0B 01 7F [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: D1 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: D1 01 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: D1 01 00 A2 0B 00 7E [19:08:28]Write to MH i2c: 01 00 00 A3 0B AE [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:29]OFD Sender: No OFD packet to send [19:08:29]*** Cut start [19:08:29]*** Purtial cut [19:08:29]*** Stage 1: CUTSNS_PIN = 1 [19:08:30]Read from MH i2c: 01 [19:08:30]MH_I2C_Read... [19:08:30]*** Stop cut motor [19:08:30]*** Cut end [19:08:30]Read from MH i2c: 01 07 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 FF 0F C3 [19:08:30]process_action close_receipt done [19:08:30]requested_data is exist [19:08:30]produce_requested_data [19:08:30]requested_item fm.sn is exist - process it [19:08:30]wFMCommunicate request_size=4 [19:08:30]MH_SAM_APDU [19:08:30]CAPDU: 80 11 00 00 [19:08:30]Write to MH i2c: E2 08 00 A4 0B 80 11 00 00 00 00 00 00 29 [19:08:30]Write i2c OK [19:08:30]MH_I2C_Read... [19:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:30]Read from MH i2c: E2 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 17 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 17 00 A4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 80 [19:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:08:30]wFMCommunicate OK [19:08:30]requested_item fd.num is exist - process it [19:08:30]SAM_PROTO_GetFieldsCounters [19:08:30]wFMCommunicate request_size=4 [19:08:30]MH_SAM_APDU [19:08:30]CAPDU: 80 13 00 00 [19:08:30]Write to MH i2c: E2 08 00 A5 0B 80 13 00 00 00 00 00 00 2C [19:08:30]Write i2c OK [19:08:30]MH_I2C_Read... [19:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:30]Read from MH i2c: E2 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 62 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 62 00 A5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A5 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [19:08: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A5 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:30]wFMCommunicate OK [19:08:30]SAM_PROTO_GetFieldsCounters done [19:08:30]requested_item shift.num is exist - process it [19:08:30]requested_item shift.opened is exist - process it [19:08:30]req_shift_opened [19:08:30]FM_GetShiftState [19:08:30]SAM_PROTO_GetShiftState [19:08:30]wFMCommunicate request_size=4 [19:08:30]MH_SAM_APDU [19:08:30]CAPDU: 80 13 01 00 [19:08:30]Write to MH i2c: E2 08 00 A6 0B 80 13 01 00 00 00 00 00 2E [19:08:30]Write i2c OK [19:08:30]MH_I2C_Read... [19:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:30]Read from MH i2c: E2 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 0E 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 0E 00 A6 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 06 [19:08:30]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:08:30]wFMCommunicate OK [19:08:30]SAM_PROTO_GetShiftState done [19:08:30]FM_GetShiftState done [19:08:30]req_shift_opened done [19:08:30]requested_item shift.open_date is exist - process it [19:08:30]req_shift_open_date [19:08:30]req_shift_open_date done [19:08:30]produce_requested_data done [19:08:30]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118181,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:08:30]process_action_free close_receipt [19:08:30]json_value_free [19:08:30]json_value_free done [19:08:30]process_json_proto returns [19:08:30]Send response to host [19:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118181,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:08:30]free response buf [19:08:30]execute_script done [19:08:30]execute_script returns [19:08:30]free content buf [19:08:30]Sock 7.Close socket [19:08:30]Sock 7.Thread stoped [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:41]accept exits with 9 [19:14:41]New connection [19:14:41]New thread 3067276644 created [19:14:41]Thread 3067133284 joined [19:14:41]Waiting for new connection... [19:14:41] Sock 9.Parse request [19:14:41]Sock 9.Check first char [19:14:41]Sock 9.First char is OK [19:14:41]request: POST /json_proto HTTP/1.0 [19:14:41]Method: POST [19:14:41]URL: /json_proto [19:14:41]Method is POST - this is cgi request [19:14:41]url: /json_proto [19:14:41]query_string will be loaded in cgi processing [19:14:41]execute_cgi json_proto POST (null) [19:14:41]execute_cgi path=json_proto method=POST [19:14:41]POST find Content-Length [19:14:41]Host: 172.17.96.67:8080 [19:14:41]Content-Length: 763 [19:14:41]Content-Type: application/json [19:14:41] [19:14:41]POST finish read [19:14:41]Found Content-Length = 763 [19:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:41]execute_script... [19:14:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:41]POST & json_proto [19:14:41]process_json_proto [19:14:41]json parsed OK: [19:14:41]protocol is kg_v1.0 [19:14:41]action value=close_receipt [19:14:41]process_action close_receipt [19:14:41]cmd_close_receipt [19:14:41]MH_GetDate [19:14:41]Write to MH i2c: F0 00 00 A7 0B A1 [19:14:41]Write i2c OK [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: F0 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: F0 09 00 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: F0 09 00 A7 0B 00 A2 85 22 67 47 6C 1F 67 93 [19:14:41]GetLastDocTimeStamp 1730315307 [19:14:41]current date 1730315682 [19:14:41]FM_GetShiftState [19:14:41]SAM_PROTO_GetShiftState [19:14:41]wFMCommunicate request_size=4 [19:14:41]MH_SAM_APDU [19:14:41]CAPDU: 80 13 01 00 [19:14:41]Write to MH i2c: E2 08 00 A8 0B 80 13 01 00 00 00 00 00 30 [19:14:41]Write i2c OK [19:14:41]MH_I2C_Read... [19:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:41]Read from MH i2c: E2 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 0E 00 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 0E 00 A8 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 08 [19:14:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:14:41]wFMCommunicate OK [19:14:41]SAM_PROTO_GetShiftState done [19:14:41]FM_GetShiftState done [19:14:41]opened in 1730246605 [19:14:41]opened+sec_in_day 1730333005 [19:14:41]quantity*price = 70027 [19:14:41]sum+1 = 70029 [19:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.28 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.28 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 242 30.10.2024 19:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118182 ФПД: 112507769755141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118182&fm=112507769755141&tin=02508201610067®Number=0000000000091782&sum=70028 [19:14:42]StoreToDocumentArchive [19:14:42]shift 545 fd 118182 [19:14:42]save to /storage/0545/doc_00118182 [19:14:42]save last doc name /storage/0545/doc_00118182 to /storage/kkm_last_doc_name [19:14:42]save OK [19:14:42]Clear old archive folders... [19:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:14:42]tlvbuf is 00232450 [19:14:42]SAM_PROTO_ClearQueue [19:14:42]wFMCommunicate request_size=4 [19:14:42]MH_SAM_APDU [19:14:42]CAPDU: 80 09 00 00 [19:14:42]Write to MH i2c: E2 08 00 B5 0B 80 09 00 00 00 00 00 00 32 [19:14:42]Write i2c OK [19:14:42]MH_I2C_Read... [19:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:42]Read from MH i2c: E2 [19:14:42]MH_I2C_Read... [19:14:42]Read from MH i2c: E2 03 00 [19:14:42]MH_I2C_Read... [19:14:42]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [19:14:42]RAPDU: 90 00 [19:14:42]wFMCommunicate OK [19:14:42]SAM_PROTO_ClearQueue done [19:14:42]KKMCreateOFDPacket [19:14:42]OFDProtocolAddRootSTLVToBuf [19:14:42]FM_MakeSignedData [19:14:42]FM_MakeSignedData [19:14:42]SAM_PROTO_SignData [19:14:42]wFMCommunicate request_size=4 [19:14:42]MH_SAM_APDU [19:14:42]CAPDU: 80 0D 01 02 [19:14:42]Write to MH i2c: E2 08 00 B6 0B 80 0D 01 02 00 00 00 00 3A [19:14:42]Write i2c OK [19:14:42]MH_I2C_Read... [19:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:42]Read from MH i2c: E2 [19:14:42]MH_I2C_Read... [19:14:42]Read from MH i2c: E2 03 00 [19:14:42]MH_I2C_Read... [19:14:42]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [19:14:42]RAPDU: 90 00 [19:14:42]wFMCommunicate OK [19:14:42]wFMCommunicate request_size=255 [19:14:42]MH_SAM_APDU [19:14:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A2 85 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CD 01 00 35 04 06 00 66 53 41 A6 [19:14:42]Write to MH i2c: E2 02 01 B7 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A2 85 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CD 01 00 35 04 06 00 66 53 41 A6 00 00 CF [19:14:42]Write i2c OK [19:14:42]MH_I2C_Read... [19:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:43]Read from MH i2c: E2 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 03 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [19:14:43]RAPDU: 90 00 [19:14:43]wFMCommunicate OK [19:14:43]wFMCommunicate request_size=7 [19:14:43]MH_SAM_APDU [19:14:43]CAPDU: 80 0D 02 02 02 96 05 [19:14:43]Write to MH i2c: E2 0A 00 B8 0B 80 0D 02 02 02 00 96 05 00 00 DC [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:43]Read from MH i2c: E2 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 03 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [19:14:43]RAPDU: 90 00 [19:14:43]wFMCommunicate OK [19:14:43]wFMCommunicate request_size=4 [19:14:43]MH_SAM_APDU [19:14:43]CAPDU: 80 0D 03 02 [19:14:43]Write to MH i2c: E2 08 00 B9 0B 80 0D 03 02 00 00 00 00 3F [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:43]Read from MH i2c: E2 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 0B 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 0B 00 B9 0B 00 6E B5 92 D8 4D AC C0 BB 90 00 41 [19:14:43]RAPDU: 6E B5 92 D8 4D AC C0 BB 90 00 [19:14:43]wFMCommunicate OK [19:14:43]SAM_PROTO_SignData done [19:14:43]FM_MakeSignedData done [19:14:43]CreateOFDProtocolMessage [19:14:43]wFMCommunicate request_size=4 [19:14:43]MH_SAM_APDU [19:14:43]CAPDU: 80 11 00 00 [19:14:43]Write to MH i2c: E2 08 00 BA 0B 80 11 00 00 00 00 00 00 3F [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:43]Read from MH i2c: E2 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 17 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 17 00 BA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 96 [19:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:14:43]wFMCommunicate OK [19:14:43]CreateOFDProtocolMessage done [19:14:43]OFDSenderStorePacket 118182 [19:14:43]StoreOFDPacket docnum=118182 [19:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 4C 7B 04 01 98 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A2 85 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CD 01 00 35 04 06 00 66 53 41 A6 96 05 6E B5 92 D8 4D AC C0 BB [19:14:43]CheckFolder [19:14:43]dirname=/storage/ofd_packets [19:14:43]CheckFolder done [19:14:43]ProducePacketName [19:14:43]name=ofd_packets/00118182 [19:14:43]NVStorageSaveData ofd_packets/00118182 [19:14:43]File name is /storage/ofd_packets/00118182 [19:14:43]Write 298 bytes [19:14:43]NVStorageSaveData done [19:14:43]OFDSenderStorePacket done [19:14:43]KKMCreateOFDPacket done [19:14:43]NVStorageSaveData kkm_last_timestamp [19:14:43]File name is /storage/kkm_last_timestamp [19:14:43]Write 4 bytes [19:14:43]NVStorageSaveData done [19:14:43]ExternCall_PrintAddStr [19:14:43]wPrintStart [19:14:43]Write to MH i2c: 01 00 00 BB 0B C6 [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: 01 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: 01 07 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: 01 07 00 BB 0B 00 00 00 00 00 FF 0F DB [19:14:43]RasterBufferAndPrint [19:14:43]line Счет N : (1)245983 [19:14:43]line ИНН: 02508201610067 [19:14:43]line Контрольно-Кассовый Чек [19:14:43]line ПРОДАЖА [19:14:43]line ТРК (МРК, ГНК) : 13 [19:14:43]line Товар: 2710194210 [19:14:43]line ДТ-К-2 [19:14:43]line 9.190 * 76.20 [19:14:43]line = 700.28 [19:14:43]line НДС 12% НСП 1% [19:14:43]line > о реализуемом товаре [19:14:43]line ИТОГО: 700.28 [19:14:43]line НСП 1% : 6.20 [19:14:43]line НДС 12% : 74.37 [19:14:43]line Наличными: 0.00 [19:14:43]line Безнал.: 700.28 [19:14:43]line Место: АЗС № 173 "Партнер Нефть" [19:14:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:14:43]line СНО: Общий режим [19:14:43]line Чек 242 30.10.2024 19:14 [19:14:43]line Смена: 545 ФФД: 1.0 [19:14:43]line ЗНМ: 0300000115 [19:14:43]line РНМ: 0000000000091782 [19:14:43]line Версия ККМ: 001 [19:14:43]line Платежная система: Mbank [19:14:43]line ФМ: 0000000000871767 [19:14:43]line ФД: 118182 [19:14:43]line ФПД: 112507769755141 [19:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191442&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118182&fm=112507769755141&tin=02508201610067®Number=0000000000091782&sum=70028 [19:14:43]OFD Sender: Processing packet 118182 [packets to send 77, broken 76] [19:14:43]ProducePacketName [19:14:43]name=ofd_packets/00118182 [19:14:43]OFD Sender: To server: pG, [19:14:43]CommunicateWithHost lk.salyk.kg:30040 [19:14:43]ConnectInit lk.salyk.kg [19:14:43]written 0, free lines is 4095 [19:14:43]Connected sock=10 [19:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 4C 7B 04 01 98 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A2 85 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CD 01 00 35 04 06 00 66 53 41 A6 96 05 6E B5 92 D8 4D AC C0 BB [19:14: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 36 37 4F 00 00 00 76 66 47 00 D4 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A6 CD 01 00 F4 03 04 00 59 31 22 67 B6 04 01 00 00 05 2C CA 14 6A 08 82 DD [19:14:44]CommunicateWithHost err = 0 [19:14:44]CheckOFDResponse [19:14:44]1017 (14) - 77093643461234 [19:14:44]1041 (16) - 0000000000871767 [19:14:44]1040 (4) - 118182 [19:14:44]1012 (4) - 30.10.2024 13:15 [19:14:44]1206 (1) - 0 [19:14:44]OFD Sender: Remove packet 118182 [19:14:44]ProducePacketName [19:14:44]name=ofd_packets/00118182 [19:14:44]NVStorageDeleteData [19:14:44]Write to MH i2c: 01 00 00 E3 0B EE [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: 01 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: 01 07 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 DE 0C DF [19:14:44]RasterBufferAndPrint [19:14:44]line [19:14:44]line [19:14:44]line [19:14:44]line [19:14:44]line [19:14:44]written 0, free lines is 3300 [19:14:44]MH_Cut [19:14:44]Write to MH i2c: D1 01 00 EA 0B 01 C7 [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: D1 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: D1 01 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: D1 01 00 EA 0B 00 C6 [19:14:44]Write to MH i2c: 01 00 00 EB 0B F6 [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]OFD Sender: No OFD packet to send [19:14:44]*** Cut start [19:14:44]*** Purtial cut [19:14:44]*** Stage 1: CUTSNS_PIN = 1 [19:14:45]Read from MH i2c: 01 [19:14:45]MH_I2C_Read... [19:14:45]*** Stop cut motor [19:14:45]*** Cut end [19:14:45]Read from MH i2c: 01 07 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 FF 0F 0B [19:14:45]process_action close_receipt done [19:14:45]requested_data is exist [19:14:45]produce_requested_data [19:14:45]requested_item fm.sn is exist - process it [19:14:45]wFMCommunicate request_size=4 [19:14:45]MH_SAM_APDU [19:14:45]CAPDU: 80 11 00 00 [19:14:45]Write to MH i2c: E2 08 00 EC 0B 80 11 00 00 00 00 00 00 71 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:45]Read from MH i2c: E2 17 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 17 00 EC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C8 [19:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:14:45]wFMCommunicate OK [19:14:45]requested_item fd.num is exist - process it [19:14:45]SAM_PROTO_GetFieldsCounters [19:14:45]wFMCommunicate request_size=4 [19:14:45]MH_SAM_APDU [19:14:45]CAPDU: 80 13 00 00 [19:14:45]Write to MH i2c: E2 08 00 ED 0B 80 13 00 00 00 00 00 00 74 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 62 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 62 00 ED 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A6 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [19:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A6 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:45]wFMCommunicate OK [19:14:45]SAM_PROTO_GetFieldsCounters done [19:14:45]requested_item shift.num is exist - process it [19:14:45]requested_item shift.opened is exist - process it [19:14:45]req_shift_opened [19:14:45]FM_GetShiftState [19:14:45]SAM_PROTO_GetShiftState [19:14:45]wFMCommunicate request_size=4 [19:14:45]MH_SAM_APDU [19:14:45]CAPDU: 80 13 01 00 [19:14:45]Write to MH i2c: E2 08 00 EE 0B 80 13 01 00 00 00 00 00 76 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:45]Read from MH i2c: E2 0E 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 0E 00 EE 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 4E [19:14:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:14:45]wFMCommunicate OK [19:14:45]SAM_PROTO_GetShiftState done [19:14:45]FM_GetShiftState done [19:14:45]req_shift_opened done [19:14:45]requested_item shift.open_date is exist - process it [19:14:45]req_shift_open_date [19:14:45]req_shift_open_date done [19:14:45]produce_requested_data done [19:14:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118182,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:14:45]process_action_free close_receipt [19:14:45]json_value_free [19:14:45]json_value_free done [19:14:45]process_json_proto returns [19:14:45]Send response to host [19:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118182,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:14:45]free response buf [19:14:45]execute_script done [19:14:45]execute_script returns [19:14:45]free content buf [19:14:45]Sock 9.Close socket [19:14:45]Sock 9.Thread stoped [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]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:25]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [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:41]accept exits with 7 [19:24:41]New connection [19:24:41]New thread 3067133284 created [19:24:41]Thread 3067276644 joined [19:24:41]Waiting for new connection... [19:24:41] Sock 7.Parse request [19:24:41]Sock 7.Check first char [19:24:41]Sock 7.First char is OK [19:24:41]request: POST /json_proto HTTP/1.0 [19:24:41]Method: POST [19:24:41]URL: /json_proto [19:24:41]Method is POST - this is cgi request [19:24:41]url: /json_proto [19:24:41]query_string will be loaded in cgi processing [19:24:41]execute_cgi json_proto POST (null) [19:24:41]execute_cgi path=json_proto method=POST [19:24:41]POST find Content-Length [19:24:41]Host: 172.17.96.67:8080 [19:24:41]Content-Length: 677 [19:24:41]Content-Type: application/json [19:24:41] [19:24:41]POST finish read [19:24:41]Found Content-Length = 677 [19:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:24:41]execute_script... [19:24:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:24:41]POST & json_proto [19:24:41]process_json_proto [19:24:41]json parsed OK: [19:24:41]protocol is kg_v1.0 [19:24:41]action value=close_receipt [19:24:41]process_action close_receipt [19:24:41]cmd_close_receipt [19:24:41]MH_GetDate [19:24:41]Write to MH i2c: F0 00 00 EF 0B E9 [19:24:41]Write i2c OK [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: F0 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: F0 09 00 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: F0 09 00 EF 0B 00 F9 87 22 67 47 6C 1F 67 34 [19:24:41]GetLastDocTimeStamp 1730315682 [19:24:41]current date 1730316281 [19:24:41]FM_GetShiftState [19:24:41]SAM_PROTO_GetShiftState [19:24:41]wFMCommunicate request_size=4 [19:24:41]MH_SAM_APDU [19:24:41]CAPDU: 80 13 01 00 [19:24:41]Write to MH i2c: E2 08 00 F0 0B 80 13 01 00 00 00 00 00 78 [19:24:41]Write i2c OK [19:24:41]MH_I2C_Read... [19:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:41]Read from MH i2c: E2 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: E2 0E 00 [19:24:41]MH_I2C_Read... [19:24:41]Read from MH i2c: E2 0E 00 F0 0B 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 50 [19:24:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:24:41]wFMCommunicate OK [19:24:41]SAM_PROTO_GetShiftState done [19:24:41]FM_GetShiftState done [19:24:41]opened in 1730246605 [19:24:41]opened+sec_in_day 1730333005 [19:24:41]quantity*price = 50041 [19:24:41]sum+1 = 50042 [19:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 243 30.10.2024 19:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118183 ФПД: 277284097611729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192441&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118183&fm=277284097611729&tin=02508201610067®Number=0000000000091782&sum=50000 [19:24:42]StoreToDocumentArchive [19:24:42]shift 545 fd 118183 [19:24:42]save to /storage/0545/doc_00118183 [19:24:42]save last doc name /storage/0545/doc_00118183 to /storage/kkm_last_doc_name [19:24:42]save OK [19:24:42]Clear old archive folders... [19:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:42]tlvbuf is 0021A500 [19:24:42]SAM_PROTO_ClearQueue [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 09 00 00 [19:24:42]Write to MH i2c: E2 08 00 FD 0B 80 09 00 00 00 00 00 00 7A [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 FD 0B 00 90 00 7C [19:24:42]RAPDU: 90 00 [19:24:42]wFMCommunicate OK [19:24:42]SAM_PROTO_ClearQueue done [19:24:42]KKMCreateOFDPacket [19:24:42]OFDProtocolAddRootSTLVToBuf [19:24:42]FM_MakeSignedData [19:24:42]FM_MakeSignedData [19:24:42]SAM_PROTO_SignData [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 0D 01 02 [19:24:42]Write to MH i2c: E2 08 00 FE 0B 80 0D 01 02 00 00 00 00 82 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [19:24:42]RAPDU: 90 00 [19:24:42]wFMCommunicate OK [19:24:42]wFMCommunicate request_size=255 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F3 00 00 00 F4 03 04 00 F9 87 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CD 01 00 35 04 06 00 FC [19:24:42]Write to MH i2c: E2 02 01 FF 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F3 00 00 00 F4 03 04 00 F9 87 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CD 01 00 35 04 06 00 FC 00 00 A4 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [19:24:42]RAPDU: 90 00 [19:24:42]wFMCommunicate OK [19:24:42]wFMCommunicate request_size=10 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 0D 02 02 05 30 3C 23 D7 D1 [19:24:42]Write to MH i2c: E2 0D 00 00 0C 80 0D 02 02 05 00 30 3C 23 D7 D1 00 00 C7 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [19:24:42]RAPDU: 90 00 [19:24:42]wFMCommunicate OK [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 0D 03 02 [19:24:42]Write to MH i2c: E2 08 00 01 0C 80 0D 03 02 00 00 00 00 88 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 0B 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 0B 00 01 0C 00 F8 C7 F7 05 C3 CD FF 4A 90 00 1D [19:24:42]RAPDU: F8 C7 F7 05 C3 CD FF 4A 90 00 [19:24:42]wFMCommunicate OK [19:24:42]SAM_PROTO_SignData done [19:24:42]FM_MakeSignedData done [19:24:42]CreateOFDProtocolMessage [19:24:42]wFMCommunicate request_size=4 [19:24:42]MH_SAM_APDU [19:24:42]CAPDU: 80 11 00 00 [19:24:42]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:42]Read from MH i2c: E2 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 17 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: E2 17 00 02 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 DF [19:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:24:42]wFMCommunicate OK [19:24:42]CreateOFDProtocolMessage done [19:24:42]OFDSenderStorePacket 118183 [19:24:42]StoreOFDPacket docnum=118183 [19:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 21 52 07 01 8E 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 32 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 F3 00 00 00 F4 03 04 00 F9 87 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CD 01 00 35 04 06 00 FC 30 3C 23 D7 D1 F8 C7 F7 05 C3 CD FF 4A [19:24:42]CheckFolder [19:24:42]dirname=/storage/ofd_packets [19:24:42]CheckFolder done [19:24:42]ProducePacketName [19:24:42]name=ofd_packets/00118183 [19:24:42]NVStorageSaveData ofd_packets/00118183 [19:24:42]File name is /storage/ofd_packets/00118183 [19:24:42]Write 301 bytes [19:24:42]NVStorageSaveData done [19:24:42]OFDSenderStorePacket done [19:24:42]KKMCreateOFDPacket done [19:24:42]NVStorageSaveData kkm_last_timestamp [19:24:42]File name is /storage/kkm_last_timestamp [19:24:42]Write 4 bytes [19:24:42]NVStorageSaveData done [19:24:42]ExternCall_PrintAddStr [19:24:42]wPrintStart [19:24:42]Write to MH i2c: 01 00 00 03 0C 0F [19:24:42]Write i2c OK [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: 01 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: 01 07 00 [19:24:42]MH_I2C_Read... [19:24:42]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 FF 0F 24 [19:24:42]RasterBufferAndPrint [19:24:42]line Счет N : (1)245984 [19:24:42]line ИНН: 02508201610067 [19:24:42]line Контрольно-Кассовый Чек [19:24:42]line ПРОДАЖА [19:24:42]line ТРК (МРК, ГНК) : 21 [19:24:42]line Товар: 2710124130 [19:24:42]line Аи-92-К-2 [19:24:42]line 7.480 * 66.90 [19:24:42]line = 500.41 [19:24:42]line НДС 12% НСП 1% [19:24:42]line > о реализуемом товаре [19:24:42]line ОКРУГЛЕНИЕ: -0.41 [19:24:42]line ИТОГО: 500.00 [19:24:42]line Внесено: 500.00 [19:24:42]line СДАЧА: 0.00 [19:24:42]line НСП 1% : 4.43 [19:24:42]line НДС 12% : 53.14 [19:24:42]line Наличными: 500.00 [19:24:42]line Безнал.: 0.00 [19:24:42]line Место: АЗС № 173 "Партнер Нефть" [19:24:42]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:24:42]line СНО: Общий режим [19:24:42]line Чек 243 30.10.2024 19:24 [19:24:42]line Смена: 545 ФФД: 1.0 [19:24:42]line ЗНМ: 0300000115 [19:24:42]line РНМ: 0000000000091782 [19:24:42]line Версия ККМ: 001 [19:24:42]line ФМ: 0000000000871767 [19:24:42]line ФД: 118183 [19:24:42]line ФПД: 277284097611729 [19:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192441&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118183&fm=277284097611729&tin=02508201610067®Number=0000000000091782&sum=50000 [19:24:43]written 0, free lines is 4095 [19:24:43]OFD Sender: Processing packet 118183 [packets to send 77, broken 76] [19:24:43]ProducePacketName [19:24:43]name=ofd_packets/00118183 [19:24:43]OFD Sender: To server: pG, [19:24:43]CommunicateWithHost lk.salyk.kg:30040 [19:24:43]ConnectInit lk.salyk.kg [19:24:43]Connected sock=10 [19:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 21 52 07 01 8E 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 32 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 F3 00 00 00 F4 03 04 00 F9 87 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CD 01 00 35 04 06 00 FC 30 3C 23 D7 D1 F8 C7 F7 05 C3 CD FF 4A [19:24: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 36 37 4F 00 00 00 07 ED 47 00 7D 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A7 CD 01 00 F4 03 04 00 B0 33 22 67 B6 04 01 00 00 FC 07 9F BA C7 0C 9D 01 [19:24:43]CommunicateWithHost err = 0 [19:24:43]CheckOFDResponse [19:24:43]1017 (14) - 77093643461234 [19:24:43]1041 (16) - 0000000000871767 [19:24:43]1040 (4) - 118183 [19:24:43]1012 (4) - 30.10.2024 13:25 [19:24:43]1206 (1) - 0 [19:24:43]OFD Sender: Remove packet 118183 [19:24:43]ProducePacketName [19:24:43]name=ofd_packets/00118183 [19:24:43]NVStorageDeleteData [19:24:43]Write to MH i2c: 01 00 00 2D 0C 39 [19:24:43]Write i2c OK [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: 01 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: 01 07 00 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 BE 0C 0A [19:24:43]RasterBufferAndPrint [19:24:43]line [19:24:43]line [19:24:43]line [19:24:43]line [19:24:43]line [19:24:43]written 0, free lines is 3268 [19:24:43]MH_Cut [19:24:43]Write to MH i2c: D1 01 00 34 0C 01 12 [19:24:43]Write i2c OK [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: D1 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: D1 01 00 [19:24:43]MH_I2C_Read... [19:24:43]Read from MH i2c: D1 01 00 34 0C 00 11 [19:24:43]Write to MH i2c: 01 00 00 35 0C 41 [19:24:43]Write i2c OK [19:24:43]MH_I2C_Read... [19:24:44]OFD Sender: No OFD packet to send [19:24:44]*** Cut start [19:24:44]*** Purtial cut [19:24:44]*** Stage 1: CUTSNS_PIN = 1 [19:24:44]Read from MH i2c: 01 [19:24:44]MH_I2C_Read... [19:24:44]*** Stop cut motor [19:24:44]*** Cut end [19:24:44]Read from MH i2c: 01 07 00 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 FF 0F 56 [19:24:44]process_action close_receipt done [19:24:44]requested_data is exist [19:24:44]produce_requested_data [19:24:44]requested_item fm.sn is exist - process it [19:24:44]wFMCommunicate request_size=4 [19:24:44]MH_SAM_APDU [19:24:44]CAPDU: 80 11 00 00 [19:24:44]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [19:24:44]Write i2c OK [19:24:44]MH_I2C_Read... [19:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:44]Read from MH i2c: E2 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 17 00 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 17 00 36 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 13 [19:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:24:44]wFMCommunicate OK [19:24:44]requested_item fd.num is exist - process it [19:24:44]SAM_PROTO_GetFieldsCounters [19:24:44]wFMCommunicate request_size=4 [19:24:44]MH_SAM_APDU [19:24:44]CAPDU: 80 13 00 00 [19:24:44]Write to MH i2c: E2 08 00 37 0C 80 13 00 00 00 00 00 00 BF [19:24:44]Write i2c OK [19:24:44]MH_I2C_Read... [19:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:44]Read from MH i2c: E2 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 62 00 [19:24:44]MH_I2C_Read... [19:24:44]Read from MH i2c: E2 62 00 37 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A7 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:24: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A7 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:44]wFMCommunicate OK [19:24:44]SAM_PROTO_GetFieldsCounters done [19:24:44]requested_item shift.num is exist - process it [19:24:44]requested_item shift.opened is exist - process it [19:24:44]req_shift_opened [19:24:44]FM_GetShiftState [19:24:44]SAM_PROTO_GetShiftState [19:24:44]wFMCommunicate request_size=4 [19:24:44]MH_SAM_APDU [19:24:44]CAPDU: 80 13 01 00 [19:24:44]Write to MH i2c: E2 08 00 38 0C 80 13 01 00 00 00 00 00 C1 [19:24:44]Write i2c OK [19:24:44]MH_I2C_Read... [19:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:45]Read from MH i2c: E2 [19:24:45]MH_I2C_Read... [19:24:45]Read from MH i2c: E2 0E 00 [19:24:45]MH_I2C_Read... [19:24:45]Read from MH i2c: E2 0E 00 38 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 99 [19:24:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:24:45]wFMCommunicate OK [19:24:45]SAM_PROTO_GetShiftState done [19:24:45]FM_GetShiftState done [19:24:45]req_shift_opened done [19:24:45]requested_item shift.open_date is exist - process it [19:24:45]req_shift_open_date [19:24:45]req_shift_open_date done [19:24:45]produce_requested_data done [19:24:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118183,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:24:45]process_action_free close_receipt [19:24:45]json_value_free [19:24:45]json_value_free done [19:24:45]process_json_proto returns [19:24:45]Send response to host [19:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118183,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:24:45]free response buf [19:24:45]execute_script done [19:24:45]execute_script returns [19:24:45]free content buf [19:24:45]Sock 7.Close socket [19:24:45]Sock 7.Thread stoped [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:56]accept exits with 9 [19:27:56]New connection [19:27:56]New thread 3067276644 created [19:27:56]Thread 3067133284 joined [19:27:56]Waiting for new connection... [19:27:56] Sock 9.Parse request [19:27:56]Sock 9.Check first char [19:27:56]Sock 9.First char is OK [19:27:56]request: POST /json_proto HTTP/1.0 [19:27:56]Method: POST [19:27:56]URL: /json_proto [19:27:56]Method is POST - this is cgi request [19:27:56]url: /json_proto [19:27:56]query_string will be loaded in cgi processing [19:27:56]execute_cgi json_proto POST (null) [19:27:56]execute_cgi path=json_proto method=POST [19:27:56]POST find Content-Length [19:27:56]Host: 172.17.96.67:8080 [19:27:56]Content-Length: 677 [19:27:56]Content-Type: application/json [19:27:56] [19:27:56]POST finish read [19:27:56]Found Content-Length = 677 [19:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:27:56]execute_script... [19:27: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)245985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:27:56]POST & json_proto [19:27:56]process_json_proto [19:27:56]json parsed OK: [19:27:56]protocol is kg_v1.0 [19:27:56]action value=close_receipt [19:27:56]process_action close_receipt [19:27:56]cmd_close_receipt [19:27:56]MH_GetDate [19:27:56]Write to MH i2c: F0 00 00 39 0C 34 [19:27:56]Write i2c OK [19:27:56]MH_I2C_Read... [19:27:56]Read from MH i2c: F0 [19:27:56]MH_I2C_Read... [19:27:56]Read from MH i2c: F0 09 00 [19:27:56]MH_I2C_Read... [19:27:56]Read from MH i2c: F0 09 00 39 0C 00 BD 88 22 67 47 6C 1F 67 44 [19:27:56]GetLastDocTimeStamp 1730316281 [19:27:56]current date 1730316477 [19:27:56]FM_GetShiftState [19:27:56]SAM_PROTO_GetShiftState [19:27:56]wFMCommunicate request_size=4 [19:27:56]MH_SAM_APDU [19:27:56]CAPDU: 80 13 01 00 [19:27:56]Write to MH i2c: E2 08 00 3A 0C 80 13 01 00 00 00 00 00 C3 [19:27:56]Write i2c OK [19:27:56]MH_I2C_Read... [19:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:56]Read from MH i2c: E2 [19:27:56]MH_I2C_Read... [19:27:56]Read from MH i2c: E2 0E 00 [19:27:56]MH_I2C_Read... [19:27:56]Read from MH i2c: E2 0E 00 3A 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 9B [19:27:56]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:27:56]wFMCommunicate OK [19:27:56]SAM_PROTO_GetShiftState done [19:27:56]FM_GetShiftState done [19:27:56]opened in 1730246605 [19:27:56]opened+sec_in_day 1730333005 [19:27:56]quantity*price = 40006 [19:27:56]sum+1 = 40007 [19:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 244 30.10.2024 19:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118184 ФПД: 110463385442327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192757&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118184&fm=110463385442327&tin=02508201610067®Number=0000000000091782&sum=40000 [19:27:57]StoreToDocumentArchive [19:27:57]shift 545 fd 118184 [19:27:57]save to /storage/0545/doc_00118184 [19:27:57]save last doc name /storage/0545/doc_00118184 to /storage/kkm_last_doc_name [19:27:57]save OK [19:27:57]Clear old archive folders... [19:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:57]tlvbuf is 00246FB0 [19:27:57]SAM_PROTO_ClearQueue [19:27:57]wFMCommunicate request_size=4 [19:27:57]MH_SAM_APDU [19:27:57]CAPDU: 80 09 00 00 [19:27:57]Write to MH i2c: E2 08 00 47 0C 80 09 00 00 00 00 00 00 C5 [19:27:57]Write i2c OK [19:27:57]MH_I2C_Read... [19:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:57]Read from MH i2c: E2 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 47 0C 00 90 00 C7 [19:27:57]RAPDU: 90 00 [19:27:57]wFMCommunicate OK [19:27:57]SAM_PROTO_ClearQueue done [19:27:57]KKMCreateOFDPacket [19:27:57]OFDProtocolAddRootSTLVToBuf [19:27:57]FM_MakeSignedData [19:27:57]FM_MakeSignedData [19:27:57]SAM_PROTO_SignData [19:27:57]wFMCommunicate request_size=4 [19:27:57]MH_SAM_APDU [19:27:57]CAPDU: 80 0D 01 02 [19:27:57]Write to MH i2c: E2 08 00 48 0C 80 0D 01 02 00 00 00 00 CD [19:27:57]Write i2c OK [19:27:57]MH_I2C_Read... [19:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:57]Read from MH i2c: E2 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [19:27:57]RAPDU: 90 00 [19:27:57]wFMCommunicate OK [19:27:57]wFMCommunicate request_size=255 [19:27:57]MH_SAM_APDU [19:27:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F4 00 00 00 F4 03 04 00 BD 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CD 01 00 35 04 06 00 64 [19:27:57]Write to MH i2c: E2 02 01 49 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 BD 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CD 01 00 35 04 06 00 64 00 00 ED [19:27:57]Write i2c OK [19:27:57]MH_I2C_Read... [19:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:57]Read from MH i2c: E2 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [19:27:57]RAPDU: 90 00 [19:27:57]wFMCommunicate OK [19:27:57]wFMCommunicate request_size=10 [19:27:57]MH_SAM_APDU [19:27:57]CAPDU: 80 0D 02 02 05 77 42 D9 98 17 [19:27:57]Write to MH i2c: E2 0D 00 4A 0C 80 0D 02 02 05 00 77 42 D9 98 17 00 00 1B [19:27:57]Write i2c OK [19:27:57]MH_I2C_Read... [19:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:57]Read from MH i2c: E2 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [19:27:57]RAPDU: 90 00 [19:27:57]wFMCommunicate OK [19:27:57]wFMCommunicate request_size=4 [19:27:57]MH_SAM_APDU [19:27:57]CAPDU: 80 0D 03 02 [19:27:57]Write to MH i2c: E2 08 00 4B 0C 80 0D 03 02 00 00 00 00 D2 [19:27:57]Write i2c OK [19:27:57]MH_I2C_Read... [19:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:57]Read from MH i2c: E2 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 0B 00 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 0B 00 4B 0C 00 2C 62 B3 24 2D C0 25 C2 90 00 0C [19:27:57]RAPDU: 2C 62 B3 24 2D C0 25 C2 90 00 [19:27:57]wFMCommunicate OK [19:27:57]SAM_PROTO_SignData done [19:27:57]FM_MakeSignedData done [19:27:57]CreateOFDProtocolMessage [19:27:57]wFMCommunicate request_size=4 [19:27:57]MH_SAM_APDU [19:27:57]CAPDU: 80 11 00 00 [19:27:57]Write to MH i2c: E2 08 00 4C 0C 80 11 00 00 00 00 00 00 D2 [19:27:57]Write i2c OK [19:27:57]MH_I2C_Read... [19:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:57]Read from MH i2c: E2 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 17 00 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: E2 17 00 4C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 29 [19:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:27:57]wFMCommunicate OK [19:27:57]CreateOFDProtocolMessage done [19:27:57]OFDSenderStorePacket 118184 [19:27:57]StoreOFDPacket docnum=118184 [19:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B6 72 07 01 DA D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F4 00 00 00 F4 03 04 00 BD 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CD 01 00 35 04 06 00 64 77 42 D9 98 17 2C 62 B3 24 2D C0 25 C2 [19:27:57]CheckFolder [19:27:57]dirname=/storage/ofd_packets [19:27:57]CheckFolder done [19:27:57]ProducePacketName [19:27:57]name=ofd_packets/00118184 [19:27:57]NVStorageSaveData ofd_packets/00118184 [19:27:57]File name is /storage/ofd_packets/00118184 [19:27:57]Write 301 bytes [19:27:57]NVStorageSaveData done [19:27:57]OFDSenderStorePacket done [19:27:57]KKMCreateOFDPacket done [19:27:57]NVStorageSaveData kkm_last_timestamp [19:27:57]File name is /storage/kkm_last_timestamp [19:27:57]Write 4 bytes [19:27:57]NVStorageSaveData done [19:27:57]ExternCall_PrintAddStr [19:27:57]wPrintStart [19:27:57]Write to MH i2c: 01 00 00 4D 0C 59 [19:27:57]Write i2c OK [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: 01 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: 01 07 00 [19:27:57]MH_I2C_Read... [19:27:57]Read from MH i2c: 01 07 00 4D 0C 00 00 00 00 00 FF 0F 6E [19:27:57]RasterBufferAndPrint [19:27:57]line Счет N : (1)245985 [19:27:57]line ИНН: 02508201610067 [19:27:57]line Контрольно-Кассовый Чек [19:27:57]line ПРОДАЖА [19:27:57]line ТРК (МРК, ГНК) : 11 [19:27:57]line Товар: 2710124130 [19:27:57]line Аи-92-К-2 [19:27:57]line 5.980 * 66.90 [19:27:57]line = 400.06 [19:27:57]line НДС 12% НСП 1% [19:27:57]line > о реализуемом товаре [19:27:57]line ОКРУГЛЕНИЕ: -0.06 [19:27:57]line ИТОГО: 400.00 [19:27:57]line Внесено: 400.00 [19:27:57]line СДАЧА: 0.00 [19:27:57]line НСП 1% : 3.54 [19:27:57]line НДС 12% : 42.48 [19:27:57]line Наличными: 400.00 [19:27:57]line Безнал.: 0.00 [19:27:57]line Место: АЗС № 173 "Партнер Нефть" [19:27:57]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:27:57]line СНО: Общий режим [19:27:57]line Чек 244 30.10.2024 19:27 [19:27:57]line Смена: 545 ФФД: 1.0 [19:27:57]line ЗНМ: 0300000115 [19:27:57]line РНМ: 0000000000091782 [19:27:57]line Версия ККМ: 001 [19:27:57]line ФМ: 0000000000871767 [19:27:57]line ФД: 118184 [19:27:57]line ФПД: 110463385442327 [19:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192757&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118184&fm=110463385442327&tin=02508201610067®Number=0000000000091782&sum=40000 [19:27:58]written 0, free lines is 4095 [19:27:58]OFD Sender: Processing packet 118184 [packets to send 77, broken 76] [19:27:58]ProducePacketName [19:27:58]name=ofd_packets/00118184 [19:27:58]OFD Sender: To server: pG, [19:27:58]CommunicateWithHost lk.salyk.kg:30040 [19:27:58]ConnectInit lk.salyk.kg [19:27:58]Connected sock=10 [19:27: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 36 37 0F 01 00 00 B6 72 07 01 DA D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F4 00 00 00 F4 03 04 00 BD 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CD 01 00 35 04 06 00 64 77 42 D9 98 17 2C 62 B3 24 2D C0 25 C2 [19: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 36 37 4F 00 00 00 72 98 47 00 7D 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A8 CD 01 00 F4 03 04 00 73 34 22 67 B6 04 01 00 00 6E 6F DE 0A 21 3E 6D 42 [19:27:58]CommunicateWithHost err = 0 [19:27:58]CheckOFDResponse [19:27:58]1017 (14) - 77093643461234 [19:27:58]1041 (16) - 0000000000871767 [19:27:58]1040 (4) - 118184 [19:27:58]1012 (4) - 30.10.2024 13:28 [19:27:58]1206 (1) - 0 [19:27:58]OFD Sender: Remove packet 118184 [19:27:58]ProducePacketName [19:27:58]name=ofd_packets/00118184 [19:27:58]NVStorageDeleteData [19:27:58]Write to MH i2c: 01 00 00 77 0C 83 [19:27:58]Write i2c OK [19:27:58]MH_I2C_Read... [19:27:58]Read from MH i2c: 01 [19:27:58]MH_I2C_Read... [19:27:58]Read from MH i2c: 01 07 00 [19:27:58]MH_I2C_Read... [19:27:58]Read from MH i2c: 01 07 00 77 0C 00 00 00 00 00 C2 0C 58 [19:27:58]RasterBufferAndPrint [19:27:58]line [19:27:58]line [19:27:58]line [19:27:58]line [19:27:58]line [19:27:58]written 0, free lines is 3272 [19:27:58]MH_Cut [19:27:58]Write to MH i2c: D1 01 00 7E 0C 01 5C [19:27:58]Write i2c OK [19:27:58]MH_I2C_Read... [19:27:58]Read from MH i2c: D1 [19:27:58]MH_I2C_Read... [19:27:58]Read from MH i2c: D1 01 00 [19:27:58]MH_I2C_Read... [19:27:58]Read from MH i2c: D1 01 00 7E 0C 00 5B [19:27:58]Write to MH i2c: 01 00 00 7F 0C 8B [19:27:58]Write i2c OK [19:27:58]MH_I2C_Read... [19:27:59]OFD Sender: No OFD packet to send [19:27:59]*** Cut start [19:27:59]*** Purtial cut [19:27:59]*** Stage 1: CUTSNS_PIN = 1 [19:27:59]Read from MH i2c: 01 [19:27:59]MH_I2C_Read... [19:27:59]*** Stop cut motor [19:27:59]*** Cut end [19:27:59]Read from MH i2c: 01 07 00 [19:27:59]MH_I2C_Read... [19:27:59]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 FF 0F A0 [19:27:59]process_action close_receipt done [19:27:59]requested_data is exist [19:27:59]produce_requested_data [19:27:59]requested_item fm.sn is exist - process it [19:27:59]wFMCommunicate request_size=4 [19:27:59]MH_SAM_APDU [19:27:59]CAPDU: 80 11 00 00 [19:27:59]Write to MH i2c: E2 08 00 80 0C 80 11 00 00 00 00 00 00 06 [19:27:59]Write i2c OK [19:27:59]MH_I2C_Read... [19:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:59]Read from MH i2c: E2 [19:27:59]MH_I2C_Read... [19:27:59]Read from MH i2c: E2 17 00 [19:27:59]MH_I2C_Read... [19:27:59]Read from MH i2c: E2 17 00 80 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5D [19:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:27:59]wFMCommunicate OK [19:27:59]requested_item fd.num is exist - process it [19:27:59]SAM_PROTO_GetFieldsCounters [19:27:59]wFMCommunicate request_size=4 [19:27:59]MH_SAM_APDU [19:27:59]CAPDU: 80 13 00 00 [19:27:59]Write to MH i2c: E2 08 00 81 0C 80 13 00 00 00 00 00 00 09 [19:27:59]Write i2c OK [19:27:59]MH_I2C_Read... [19:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:00]Read from MH i2c: E2 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: E2 62 00 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: E2 62 00 81 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A8 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [19:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A8 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:00]wFMCommunicate OK [19:28:00]SAM_PROTO_GetFieldsCounters done [19:28:00]requested_item shift.num is exist - process it [19:28:00]requested_item shift.opened is exist - process it [19:28:00]req_shift_opened [19:28:00]FM_GetShiftState [19:28:00]SAM_PROTO_GetShiftState [19:28:00]wFMCommunicate request_size=4 [19:28:00]MH_SAM_APDU [19:28:00]CAPDU: 80 13 01 00 [19:28:00]Write to MH i2c: E2 08 00 82 0C 80 13 01 00 00 00 00 00 0B [19:28:00]Write i2c OK [19:28:00]MH_I2C_Read... [19:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:00]Read from MH i2c: E2 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: E2 0E 00 [19:28:00]MH_I2C_Read... [19:28:00]Read from MH i2c: E2 0E 00 82 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E3 [19:28:00]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:28:00]wFMCommunicate OK [19:28:00]SAM_PROTO_GetShiftState done [19:28:00]FM_GetShiftState done [19:28:00]req_shift_opened done [19:28:00]requested_item shift.open_date is exist - process it [19:28:00]req_shift_open_date [19:28:00]req_shift_open_date done [19:28:00]produce_requested_data done [19:28:00]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118184,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:28:00]process_action_free close_receipt [19:28:00]json_value_free [19:28:00]json_value_free done [19:28:00]process_json_proto returns [19:28:00]Send response to host [19:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118184,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:28:00]free response buf [19:28:00]execute_script done [19:28:00]execute_script returns [19:28:00]free content buf [19:28:00]Sock 9.Close socket [19:28:00]Sock 9.Thread stoped [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:19]accept exits with 7 [19:28:19]New connection [19:28:19]New thread 3067133284 created [19:28:19]Thread 3067276644 joined [19:28:19]Waiting for new connection... [19:28:19] Sock 7.Parse request [19:28:19]Sock 7.Check first char [19:28:19]Sock 7.First char is OK [19:28:19]request: POST /json_proto HTTP/1.0 [19:28:19]Method: POST [19:28:19]URL: /json_proto [19:28:19]Method is POST - this is cgi request [19:28:19]url: /json_proto [19:28:19]query_string will be loaded in cgi processing [19:28:19]execute_cgi json_proto POST (null) [19:28:19]execute_cgi path=json_proto method=POST [19:28:19]POST find Content-Length [19:28:19]Host: 172.17.96.67:8080 [19:28:19]Content-Length: 677 [19:28:19]Content-Type: application/json [19:28:19] [19:28:19]POST finish read [19:28:19]Found Content-Length = 677 [19:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:28:19]execute_script... [19:28: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)245986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:28:19]POST & json_proto [19:28:19]process_json_proto [19:28:19]json parsed OK: [19:28:19]protocol is kg_v1.0 [19:28:19]action value=close_receipt [19:28:19]process_action close_receipt [19:28:19]cmd_close_receipt [19:28:19]MH_GetDate [19:28:19]Write to MH i2c: F0 00 00 83 0C 7E [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: F0 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: F0 09 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: F0 09 00 83 0C 00 D4 88 22 67 47 6C 1F 67 A5 [19:28:19]GetLastDocTimeStamp 1730316477 [19:28:19]current date 1730316500 [19:28:19]FM_GetShiftState [19:28:19]SAM_PROTO_GetShiftState [19:28:19]wFMCommunicate request_size=4 [19:28:19]MH_SAM_APDU [19:28:19]CAPDU: 80 13 01 00 [19:28:19]Write to MH i2c: E2 08 00 84 0C 80 13 01 00 00 00 00 00 0D [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:19]Read from MH i2c: E2 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 0E 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 0E 00 84 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 E5 [19:28:19]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:28:19]wFMCommunicate OK [19:28:19]SAM_PROTO_GetShiftState done [19:28:19]FM_GetShiftState done [19:28:19]opened in 1730246605 [19:28:19]opened+sec_in_day 1730333005 [19:28:19]quantity*price = 20003 [19:28:19]sum+1 = 20004 [19:28:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 245 30.10.2024 19:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118185 ФПД: 123856746010607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118185&fm=123856746010607&tin=02508201610067®Number=0000000000091782&sum=20000 [19:28:20]StoreToDocumentArchive [19:28:20]shift 545 fd 118185 [19:28:20]save to /storage/0545/doc_00118185 [19:28:20]save last doc name /storage/0545/doc_00118185 to /storage/kkm_last_doc_name [19:28:20]save OK [19:28:20]Clear old archive folders... [19:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:20]tlvbuf is 00227020 [19:28:20]SAM_PROTO_ClearQueue [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 09 00 00 [19:28:20]Write to MH i2c: E2 08 00 91 0C 80 09 00 00 00 00 00 00 0F [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:20]Read from MH i2c: E2 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 03 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 03 00 91 0C 00 90 00 11 [19:28:20]RAPDU: 90 00 [19:28:20]wFMCommunicate OK [19:28:20]SAM_PROTO_ClearQueue done [19:28:20]KKMCreateOFDPacket [19:28:20]OFDProtocolAddRootSTLVToBuf [19:28:20]FM_MakeSignedData [19:28:20]FM_MakeSignedData [19:28:20]SAM_PROTO_SignData [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 0D 01 02 [19:28:20]Write to MH i2c: E2 08 00 92 0C 80 0D 01 02 00 00 00 00 17 [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:20]Read from MH i2c: E2 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 03 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [19:28:20]RAPDU: 90 00 [19:28:20]wFMCommunicate OK [19:28:20]wFMCommunicate request_size=255 [19:28:20]MH_SAM_APDU [19:28: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 32 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 F5 00 00 00 F4 03 04 00 D4 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CD 01 00 35 04 06 00 70 [19:28:20]Write to MH i2c: E2 02 01 93 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F5 00 00 00 F4 03 04 00 D4 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CD 01 00 35 04 06 00 70 00 00 4F [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=10 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 02 02 05 A5 A5 59 57 EF [19:28:21]Write to MH i2c: E2 0D 00 94 0C 80 0D 02 02 05 00 A5 A5 59 57 EF 00 00 0D [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 03 02 [19:28:21]Write to MH i2c: E2 08 00 95 0C 80 0D 03 02 00 00 00 00 1C [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0B 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0B 00 95 0C 00 96 42 D7 DF 36 9B 65 D8 90 00 B9 [19:28:21]RAPDU: 96 42 D7 DF 36 9B 65 D8 90 00 [19:28:21]wFMCommunicate OK [19:28:21]SAM_PROTO_SignData done [19:28:21]FM_MakeSignedData done [19:28:21]CreateOFDProtocolMessage [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 11 00 00 [19:28:21]Write to MH i2c: E2 08 00 96 0C 80 11 00 00 00 00 00 00 1C [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 96 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 73 [19:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:28:21]wFMCommunicate OK [19:28:21]CreateOFDProtocolMessage done [19:28:21]OFDSenderStorePacket 118185 [19:28:21]StoreOFDPacket docnum=118185 [19:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4B 67 07 01 F1 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F5 00 00 00 F4 03 04 00 D4 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CD 01 00 35 04 06 00 70 A5 A5 59 57 EF 96 42 D7 DF 36 9B 65 D8 [19:28:21]CheckFolder [19:28:21]dirname=/storage/ofd_packets [19:28:21]CheckFolder done [19:28:21]ProducePacketName [19:28:21]name=ofd_packets/00118185 [19:28:21]NVStorageSaveData ofd_packets/00118185 [19:28:21]File name is /storage/ofd_packets/00118185 [19:28:21]Write 301 bytes [19:28:21]NVStorageSaveData done [19:28:21]OFDSenderStorePacket done [19:28:21]KKMCreateOFDPacket done [19:28:21]NVStorageSaveData kkm_last_timestamp [19:28:21]File name is /storage/kkm_last_timestamp [19:28:21]Write 4 bytes [19:28:21]NVStorageSaveData done [19:28:21]ExternCall_PrintAddStr [19:28:21]wPrintStart [19:28:21]Write to MH i2c: 01 00 00 97 0C A3 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 07 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 FF 0F B8 [19:28:21]RasterBufferAndPrint [19:28:21]line Счет N : (1)245986 [19:28:21]line ИНН: 02508201610067 [19:28:21]line Контрольно-Кассовый Чек [19:28:21]line ПРОДАЖА [19:28:21]line ТРК (МРК, ГНК) : 21 [19:28:21]line Товар: 2710124130 [19:28:21]line Аи-92-К-2 [19:28:21]line 2.990 * 66.90 [19:28:21]line = 200.03 [19:28:21]line НДС 12% НСП 1% [19:28:21]line > о реализуемом товаре [19:28:21]line ОКРУГЛЕНИЕ: -0.03 [19:28:21]line ИТОГО: 200.00 [19:28:21]line Внесено: 200.00 [19:28:21]line СДАЧА: 0.00 [19:28:21]line НСП 1% : 1.77 [19:28:21]line НДС 12% : 21.24 [19:28:21]line Наличными: 200.00 [19:28:21]line Безнал.: 0.00 [19:28:21]line Место: АЗС № 173 "Партнер Нефть" [19:28:21]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:28:21]line СНО: Общий режим [19:28:21]line Чек 245 30.10.2024 19:28 [19:28:21]line Смена: 545 ФФД: 1.0 [19:28:21]line ЗНМ: 0300000115 [19:28:21]line РНМ: 0000000000091782 [19:28:21]line Версия ККМ: 001 [19:28:21]line ФМ: 0000000000871767 [19:28:21]line ФД: 118185 [19:28:21]line ФПД: 123856746010607 [19:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192820&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118185&fm=123856746010607&tin=02508201610067®Number=0000000000091782&sum=20000 [19:28:21]OFD Sender: Processing packet 118185 [packets to send 77, broken 76] [19:28:21]ProducePacketName [19:28:21]name=ofd_packets/00118185 [19:28:21]OFD Sender: To server: pG, [19:28:21]CommunicateWithHost lk.salyk.kg:30040 [19:28:21]ConnectInit lk.salyk.kg [19:28:21]written 0, free lines is 4095 [19:28:21]Connected sock=10 [19:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4B 67 07 01 F1 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F5 00 00 00 F4 03 04 00 D4 88 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CD 01 00 35 04 06 00 70 A5 A5 59 57 EF 96 42 D7 DF 36 9B 65 D8 [19:28: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 36 37 4F 00 00 00 05 6E 47 00 4D 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 A9 CD 01 00 F4 03 04 00 8B 34 22 67 B6 04 01 00 00 F7 02 A4 12 73 AB 90 3C [19:28:22]CommunicateWithHost err = 0 [19:28:22]CheckOFDResponse [19:28:22]1017 (14) - 77093643461234 [19:28:22]1041 (16) - 0000000000871767 [19:28:22]1040 (4) - 118185 [19:28:22]1012 (4) - 30.10.2024 13:28 [19:28:22]1206 (1) - 0 [19:28:22]OFD Sender: Remove packet 118185 [19:28:22]ProducePacketName [19:28:22]name=ofd_packets/00118185 [19:28:22]NVStorageDeleteData [19:28:22]Write to MH i2c: 01 00 00 C1 0C CD [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 07 00 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 07 00 C1 0C 00 00 00 00 00 C0 0C A0 [19:28:22]RasterBufferAndPrint [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]written 0, free lines is 3270 [19:28:22]MH_Cut [19:28:22]Write to MH i2c: D1 01 00 C8 0C 01 A6 [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 01 00 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 01 00 C8 0C 00 A5 [19:28:22]Write to MH i2c: 01 00 00 C9 0C D5 [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]OFD Sender: No OFD packet to send [19:28:22]*** Cut start [19:28:22]*** Purtial cut [19:28:22]*** Stage 1: CUTSNS_PIN = 1 [19:28:23]Read from MH i2c: 01 [19:28:23]MH_I2C_Read... [19:28:23]*** Stop cut motor [19:28:23]*** Cut end [19:28:23]Read from MH i2c: 01 07 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 FF 0F EA [19:28:23]process_action close_receipt done [19:28:23]requested_data is exist [19:28:23]produce_requested_data [19:28:23]requested_item fm.sn is exist - process it [19:28:23]wFMCommunicate request_size=4 [19:28:23]MH_SAM_APDU [19:28:23]CAPDU: 80 11 00 00 [19:28:23]Write to MH i2c: E2 08 00 CA 0C 80 11 00 00 00 00 00 00 50 [19:28:23]Write i2c OK [19:28:23]MH_I2C_Read... [19:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:23]Read from MH i2c: E2 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 17 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 17 00 CA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A7 [19:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:28:23]wFMCommunicate OK [19:28:23]requested_item fd.num is exist - process it [19:28:23]SAM_PROTO_GetFieldsCounters [19:28:23]wFMCommunicate request_size=4 [19:28:23]MH_SAM_APDU [19:28:23]CAPDU: 80 13 00 00 [19:28:23]Write to MH i2c: E2 08 00 CB 0C 80 13 00 00 00 00 00 00 53 [19:28:23]Write i2c OK [19:28:23]MH_I2C_Read... [19:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:23]Read from MH i2c: E2 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 62 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 62 00 CB 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A9 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [19:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 A9 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:23]wFMCommunicate OK [19:28:23]SAM_PROTO_GetFieldsCounters done [19:28:23]requested_item shift.num is exist - process it [19:28:23]requested_item shift.opened is exist - process it [19:28:23]req_shift_opened [19:28:23]FM_GetShiftState [19:28:23]SAM_PROTO_GetShiftState [19:28:23]wFMCommunicate request_size=4 [19:28:23]MH_SAM_APDU [19:28:23]CAPDU: 80 13 01 00 [19:28:23]Write to MH i2c: E2 08 00 CC 0C 80 13 01 00 00 00 00 00 55 [19:28:23]Write i2c OK [19:28:23]MH_I2C_Read... [19:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:23]Read from MH i2c: E2 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 0E 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 0E 00 CC 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2D [19:28:23]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:28:23]wFMCommunicate OK [19:28:23]SAM_PROTO_GetShiftState done [19:28:23]FM_GetShiftState done [19:28:23]req_shift_opened done [19:28:23]requested_item shift.open_date is exist - process it [19:28:23]req_shift_open_date [19:28:23]req_shift_open_date done [19:28:23]produce_requested_data done [19:28:23]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118185,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:28:23]process_action_free close_receipt [19:28:23]json_value_free [19:28:23]json_value_free done [19:28:23]process_json_proto returns [19:28:23]Send response to host [19:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118185,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:28:23]free response buf [19:28:23]execute_script done [19:28:23]execute_script returns [19:28:23]free content buf [19:28:23]Sock 7.Close socket [19:28:23]Sock 7.Thread stoped [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:51]ConnectInit Can't connect to host [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:38:58]accept exits with 9 [19:38:58]New connection [19:38:58]New thread 3067276644 created [19:38:58]Thread 3067133284 joined [19:38:58]Waiting for new connection... [19:38:58] Sock 9.Parse request [19:38:58]Sock 9.Check first char [19:38:58]Sock 9.First char is OK [19:38:58]request: POST /json_proto HTTP/1.0 [19:38:58]Method: POST [19:38:58]URL: /json_proto [19:38:58]Method is POST - this is cgi request [19:38:58]url: /json_proto [19:38:58]query_string will be loaded in cgi processing [19:38:58]execute_cgi json_proto POST (null) [19:38:58]execute_cgi path=json_proto method=POST [19:38:58]POST find Content-Length [19:38:58]Host: 172.17.96.67:8080 [19:38:58]Content-Length: 682 [19:38:58]Content-Type: application/json [19:38:58] [19:38:58]POST finish read [19:38:58]Found Content-Length = 682 [19:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:58]execute_script... [19:38: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)245987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:58]POST & json_proto [19:38:58]process_json_proto [19:38:58]json parsed OK: [19:38:58]protocol is kg_v1.0 [19:38:58]action value=close_receipt [19:38:58]process_action close_receipt [19:38:58]cmd_close_receipt [19:38:58]MH_GetDate [19:38:58]Write to MH i2c: F0 00 00 CD 0C C8 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: F0 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: F0 09 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: F0 09 00 CD 0C 00 53 8B 22 67 47 6C 1F 67 71 [19:38:58]GetLastDocTimeStamp 1730316500 [19:38:58]current date 1730317139 [19:38:58]FM_GetShiftState [19:38:58]SAM_PROTO_GetShiftState [19:38:58]wFMCommunicate request_size=4 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 13 01 00 [19:38:58]Write to MH i2c: E2 08 00 CE 0C 80 13 01 00 00 00 00 00 57 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 0E 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 0E 00 CE 0C 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 2F [19:38:58]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:38:58]wFMCommunicate OK [19:38:58]SAM_PROTO_GetShiftState done [19:38:58]FM_GetShiftState done [19:38:58]opened in 1730246605 [19:38:58]opened+sec_in_day 1730333005 [19:38:58]quantity*price = 100015 [19:38:58]sum+1 = 100017 [19:38:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 246 30.10.2024 19:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118186 ФПД: 255635019796622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T193859&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118186&fm=255635019796622&tin=02508201610067®Number=0000000000091782&sum=100000 [19:38:59]StoreToDocumentArchive [19:38:59]shift 545 fd 118186 [19:38:59]save to /storage/0545/doc_00118186 [19:38:59]save last doc name /storage/0545/doc_00118186 to /storage/kkm_last_doc_name [19:38:59]save OK [19:38:59]Clear old archive folders... [19:38:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:59]tlvbuf is 00233150 [19:38:59]SAM_PROTO_ClearQueue [19:38:59]wFMCommunicate request_size=4 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 09 00 00 [19:38:59]Write to MH i2c: E2 08 00 DB 0C 80 09 00 00 00 00 00 00 59 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 DB 0C 00 90 00 5B [19:38:59]RAPDU: 90 00 [19:38:59]wFMCommunicate OK [19:38:59]SAM_PROTO_ClearQueue done [19:38:59]KKMCreateOFDPacket [19:38:59]OFDProtocolAddRootSTLVToBuf [19:38:59]FM_MakeSignedData [19:38:59]FM_MakeSignedData [19:38:59]SAM_PROTO_SignData [19:38:59]wFMCommunicate request_size=4 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 0D 01 02 [19:38:59]Write to MH i2c: E2 08 00 DC 0C 80 0D 01 02 00 00 00 00 61 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 DC 0C 00 90 00 5C [19:38:59]RAPDU: 90 00 [19:38:59]wFMCommunicate OK [19:38:59]wFMCommunicate request_size=255 [19:38:59]MH_SAM_APDU [19:38: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 32 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 F6 00 00 00 F4 03 04 00 53 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CD 01 00 35 04 06 00 E8 [19:38:59]Write to MH i2c: E2 02 01 DD 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F6 00 00 00 F4 03 04 00 53 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CD 01 00 35 04 06 00 E8 00 00 CD [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [19:38:59]RAPDU: 90 00 [19:38:59]wFMCommunicate OK [19:38:59]wFMCommunicate request_size=10 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 0D 02 02 05 7F AA 8C 10 8E [19:38:59]Write to MH i2c: E2 0D 00 DE 0C 80 0D 02 02 05 00 7F AA 8C 10 8E 00 00 C1 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [19:38:59]RAPDU: 90 00 [19:38:59]wFMCommunicate OK [19:38:59]wFMCommunicate request_size=4 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 0D 03 02 [19:38:59]Write to MH i2c: E2 08 00 DF 0C 80 0D 03 02 00 00 00 00 66 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 0B 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 0B 00 DF 0C 00 53 AB 83 FD 36 E9 90 20 90 00 B4 [19:38:59]RAPDU: 53 AB 83 FD 36 E9 90 20 90 00 [19:38:59]wFMCommunicate OK [19:38:59]SAM_PROTO_SignData done [19:38:59]FM_MakeSignedData done [19:38:59]CreateOFDProtocolMessage [19:38:59]wFMCommunicate request_size=4 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 11 00 00 [19:38:59]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 17 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 BD [19:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:38:59]wFMCommunicate OK [19:38:59]CreateOFDProtocolMessage done [19:38:59]OFDSenderStorePacket 118186 [19:38:59]StoreOFDPacket docnum=118186 [19:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DC 2D 07 01 82 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F6 00 00 00 F4 03 04 00 53 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CD 01 00 35 04 06 00 E8 7F AA 8C 10 8E 53 AB 83 FD 36 E9 90 20 [19:38:59]CheckFolder [19:38:59]dirname=/storage/ofd_packets [19:38:59]CheckFolder done [19:38:59]ProducePacketName [19:38:59]name=ofd_packets/00118186 [19:38:59]NVStorageSaveData ofd_packets/00118186 [19:38:59]File name is /storage/ofd_packets/00118186 [19:38:59]Write 301 bytes [19:38:59]NVStorageSaveData done [19:38:59]OFDSenderStorePacket done [19:38:59]KKMCreateOFDPacket done [19:38:59]NVStorageSaveData kkm_last_timestamp [19:38:59]File name is /storage/kkm_last_timestamp [19:38:59]Write 4 bytes [19:38:59]NVStorageSaveData done [19:38:59]OFD Sender: Processing packet 118186 [packets to send 77, broken 76] [19:38:59]ProducePacketName [19:38:59]name=ofd_packets/00118186 [19:38:59]OFD Sender: To server: pG, [19:38:59]CommunicateWithHost lk.salyk.kg:30040 [19:38:59]ConnectInit lk.salyk.kg [19:38:59]ExternCall_PrintAddStr [19:38:59]wPrintStart [19:38:59]Write to MH i2c: 01 00 00 E1 0C ED [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: 01 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: 01 07 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: 01 07 00 E1 0C 00 00 00 00 00 FF 0F 02 [19:38:59]RasterBufferAndPrint [19:38:59]line Счет N : (1)245987 [19:38:59]line ИНН: 02508201610067 [19:38:59]line Контрольно-Кассовый Чек [19:38:59]line ПРОДАЖА [19:38:59]line ТРК (МРК, ГНК) : 21 [19:38:59]line Товар: 2710124130 [19:38:59]line Аи-92-К-2 [19:38:59]line 14.950 * 66.90 [19:38:59]line = 1000.16 [19:38:59]line НДС 12% НСП 1% [19:38:59]line > о реализуемом товаре [19:38:59]line ОКРУГЛЕНИЕ: -0.16 [19:38:59]line ИТОГО: 1000.00 [19:38:59]line Внесено: 1000.00 [19:38:59]line СДАЧА: 0.00 [19:38:59]line НСП 1% : 8.85 [19:38:59]line НДС 12% : 106.21 [19:38:59]line Наличными: 1000.00 [19:38:59]line Безнал.: 0.00 [19:38:59]line Место: АЗС № 173 "Партнер Нефть" [19:38:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:38:59]line СНО: Общий режим [19:38:59]line Чек 246 30.10.2024 19:38 [19:38:59]line Смена: 545 ФФД: 1.0 [19:38:59]line ЗНМ: 0300000115 [19:38:59]line РНМ: 0000000000091782 [19:38:59]line Версия ККМ: 001 [19:38:59]line ФМ: 0000000000871767 [19:38:59]line ФД: 118186 [19:38:59]line ФПД: 255635019796622 [19:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T193859&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118186&fm=255635019796622&tin=02508201610067®Number=0000000000091782&sum=100000 [19:39:00]Connected sock=12 [19:39:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 DC 2D 07 01 82 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F6 00 00 00 F4 03 04 00 53 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AA CD 01 00 35 04 06 00 E8 7F AA 8C 10 8E 53 AB 83 FD 36 E9 90 20 [19:39:00]written 0, free lines is 4095 [19:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 02 71 47 00 C8 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 36 37 10 04 04 00 AA CD 01 00 F4 03 04 00 09 37 22 67 B6 04 01 00 00 24 9A A8 17 FD B6 43 2A [19:39:00]CommunicateWithHost err = 0 [19:39:00]CheckOFDResponse [19:39:00]1017 (14) - 77093643461234 [19:39:00]1041 (16) - 0000000000871767 [19:39:00]1040 (4) - 118186 [19:39:00]1012 (4) - 30.10.2024 13:39 [19:39:00]1206 (1) - 0 [19:39:00]OFD Sender: Remove packet 118186 [19:39:00]ProducePacketName [19:39:00]name=ofd_packets/00118186 [19:39:00]NVStorageDeleteData [19:39:00]Write to MH i2c: 01 00 00 0B 0D 18 [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: 01 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: 01 07 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: 01 07 00 0B 0D 00 00 00 00 00 BC 0C E7 [19:39:00]RasterBufferAndPrint [19:39:00]line [19:39:00]line [19:39:00]line [19:39:00]line [19:39:00]line [19:39:00]written 0, free lines is 3268 [19:39:00]MH_Cut [19:39:00]Write to MH i2c: D1 01 00 12 0D 01 F1 [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: D1 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: D1 01 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: D1 01 00 12 0D 00 F0 [19:39:00]Write to MH i2c: 01 00 00 13 0D 20 [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]OFD Sender: No OFD packet to send [19:39:01]*** Cut start [19:39:01]*** Purtial cut [19:39:01]*** Stage 1: CUTSNS_PIN = 1 [19:39:01]Read from MH i2c: 01 [19:39:01]MH_I2C_Read... [19:39:01]*** Stop cut motor [19:39:01]*** Cut end [19:39:01]Read from MH i2c: 01 07 00 [19:39:01]MH_I2C_Read... [19:39:01]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 FF 0F 35 [19:39:01]process_action close_receipt done [19:39:01]requested_data is exist [19:39:01]produce_requested_data [19:39:01]requested_item fm.sn is exist - process it [19:39:01]wFMCommunicate request_size=4 [19:39:01]MH_SAM_APDU [19:39:01]CAPDU: 80 11 00 00 [19:39:01]Write to MH i2c: E2 08 00 14 0D 80 11 00 00 00 00 00 00 9B [19:39:01]Write i2c OK [19:39:01]MH_I2C_Read... [19:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:01]Read from MH i2c: E2 [19:39:01]MH_I2C_Read... [19:39:01]Read from MH i2c: E2 17 00 [19:39:01]MH_I2C_Read... [19:39:01]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F2 [19:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:39:01]wFMCommunicate OK [19:39:01]requested_item fd.num is exist - process it [19:39:01]SAM_PROTO_GetFieldsCounters [19:39:01]wFMCommunicate request_size=4 [19:39:01]MH_SAM_APDU [19:39:01]CAPDU: 80 13 00 00 [19:39:01]Write to MH i2c: E2 08 00 15 0D 80 13 00 00 00 00 00 00 9E [19:39:01]Write i2c OK [19:39:01]MH_I2C_Read... [19:39:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:02]Read from MH i2c: E2 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 62 00 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 62 00 15 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AA CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [19:39: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AA CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:02]wFMCommunicate OK [19:39:02]SAM_PROTO_GetFieldsCounters done [19:39:02]requested_item shift.num is exist - process it [19:39:02]requested_item shift.opened is exist - process it [19:39:02]req_shift_opened [19:39:02]FM_GetShiftState [19:39:02]SAM_PROTO_GetShiftState [19:39:02]wFMCommunicate request_size=4 [19:39:02]MH_SAM_APDU [19:39:02]CAPDU: 80 13 01 00 [19:39:02]Write to MH i2c: E2 08 00 16 0D 80 13 01 00 00 00 00 00 A0 [19:39:02]Write i2c OK [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 [19:39:02]MH_I2C_Read... [19:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:02]Read from MH i2c: E2 0E 00 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 0E 00 16 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 78 [19:39:02]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:39:02]wFMCommunicate OK [19:39:02]SAM_PROTO_GetShiftState done [19:39:02]FM_GetShiftState done [19:39:02]req_shift_opened done [19:39:02]requested_item shift.open_date is exist - process it [19:39:02]req_shift_open_date [19:39:02]req_shift_open_date done [19:39:02]produce_requested_data done [19:39:02]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118186,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:39:02]process_action_free close_receipt [19:39:02]json_value_free [19:39:02]json_value_free done [19:39:02]process_json_proto returns [19:39:02]Send response to host [19:39:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118186,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:39:02]free response buf [19:39:02]execute_script done [19:39:02]execute_script returns [19:39:02]free content buf [19:39:02]Sock 9.Close socket [19:39:02]Sock 9.Thread stoped [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:45]accept exits with 10 [19:40:45]New connection [19:40:45]New thread 3067133284 created [19:40:45]Thread 3067276644 joined [19:40:45]Waiting for new connection... [19:40:45] Sock 10.Parse request [19:40:45]Sock 10.Check first char [19:40:45]Sock 10.First char is OK [19:40:45]request: POST /json_proto HTTP/1.0 [19:40:45]Method: POST [19:40:45]URL: /json_proto [19:40:45]Method is POST - this is cgi request [19:40:45]url: /json_proto [19:40:45]query_string will be loaded in cgi processing [19:40:45]execute_cgi json_proto POST (null) [19:40:45]execute_cgi path=json_proto method=POST [19:40:45]POST find Content-Length [19:40:45]Host: 172.17.96.67:8080 [19:40:45]Content-Length: 677 [19:40:45]Content-Type: application/json [19:40:45] [19:40:45]POST finish read [19:40:45]Found Content-Length = 677 [19:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:40:45]execute_script... [19:40: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)245988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:40:45]POST & json_proto [19:40:45]process_json_proto [19:40:45]json parsed OK: [19:40:45]protocol is kg_v1.0 [19:40:45]action value=close_receipt [19:40:45]process_action close_receipt [19:40:45]cmd_close_receipt [19:40:45]MH_GetDate [19:40:45]Write to MH i2c: F0 00 00 17 0D 13 [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: F0 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: F0 09 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: F0 09 00 17 0D 00 BE 8B 22 67 47 6C 1F 67 27 [19:40:45]GetLastDocTimeStamp 1730317139 [19:40:45]current date 1730317246 [19:40:45]FM_GetShiftState [19:40:45]SAM_PROTO_GetShiftState [19:40:45]wFMCommunicate request_size=4 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 13 01 00 [19:40:45]Write to MH i2c: E2 08 00 18 0D 80 13 01 00 00 00 00 00 A2 [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 0E 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 0E 00 18 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 7A [19:40:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:40:45]wFMCommunicate OK [19:40:45]SAM_PROTO_GetShiftState done [19:40:45]FM_GetShiftState done [19:40:45]opened in 1730246605 [19:40:45]opened+sec_in_day 1730333005 [19:40:45]quantity*price = 50041 [19:40:45]sum+1 = 50042 [19:40: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 247 30.10.2024 19:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118187 ФПД: 124373695105891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194046&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118187&fm=124373695105891&tin=02508201610067®Number=0000000000091782&sum=50000 [19:40:46]StoreToDocumentArchive [19:40:46]shift 545 fd 118187 [19:40:46]save to /storage/0545/doc_00118187 [19:40:46]save last doc name /storage/0545/doc_00118187 to /storage/kkm_last_doc_name [19:40:46]save OK [19:40:46]Clear old archive folders... [19:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:46]tlvbuf is 00263A30 [19:40:46]SAM_PROTO_ClearQueue [19:40:46]wFMCommunicate request_size=4 [19:40:46]MH_SAM_APDU [19:40:46]CAPDU: 80 09 00 00 [19:40:46]Write to MH i2c: E2 08 00 25 0D 80 09 00 00 00 00 00 00 A4 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:46]Read from MH i2c: E2 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 03 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 03 00 25 0D 00 90 00 A6 [19:40:46]RAPDU: 90 00 [19:40:46]wFMCommunicate OK [19:40:46]SAM_PROTO_ClearQueue done [19:40:46]KKMCreateOFDPacket [19:40:46]OFDProtocolAddRootSTLVToBuf [19:40:46]FM_MakeSignedData [19:40:46]FM_MakeSignedData [19:40:46]SAM_PROTO_SignData [19:40:46]wFMCommunicate request_size=4 [19:40:46]MH_SAM_APDU [19:40:46]CAPDU: 80 0D 01 02 [19:40:46]Write to MH i2c: E2 08 00 26 0D 80 0D 01 02 00 00 00 00 AC [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:46]Read from MH i2c: E2 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 03 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 03 00 26 0D 00 90 00 A7 [19:40:46]RAPDU: 90 00 [19:40:46]wFMCommunicate OK [19:40:46]wFMCommunicate request_size=255 [19:40:46]MH_SAM_APDU [19:40: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 32 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 F7 00 00 00 F4 03 04 00 BE 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CD 01 00 35 04 06 00 71 [19:40:46]Write to MH i2c: E2 02 01 27 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F7 00 00 00 F4 03 04 00 BE 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CD 01 00 35 04 06 00 71 00 00 14 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 03 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 03 00 27 0D 00 90 00 A8 [19:40:47]RAPDU: 90 00 [19:40:47]wFMCommunicate OK [19:40:47]wFMCommunicate request_size=10 [19:40:47]MH_SAM_APDU [19:40:47]CAPDU: 80 0D 02 02 05 1E 01 EA 8B 63 [19:40:47]Write to MH i2c: E2 0D 00 28 0D 80 0D 02 02 05 00 1E 01 EA 8B 63 00 00 B0 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 03 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [19:40:47]RAPDU: 90 00 [19:40:47]wFMCommunicate OK [19:40:47]wFMCommunicate request_size=4 [19:40:47]MH_SAM_APDU [19:40:47]CAPDU: 80 0D 03 02 [19:40:47]Write to MH i2c: E2 08 00 29 0D 80 0D 03 02 00 00 00 00 B1 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 0B 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 0B 00 29 0D 00 CF 73 74 D8 83 85 F3 0B 90 00 46 [19:40:47]RAPDU: CF 73 74 D8 83 85 F3 0B 90 00 [19:40:47]wFMCommunicate OK [19:40:47]SAM_PROTO_SignData done [19:40:47]FM_MakeSignedData done [19:40:47]CreateOFDProtocolMessage [19:40:47]wFMCommunicate request_size=4 [19:40:47]MH_SAM_APDU [19:40:47]CAPDU: 80 11 00 00 [19:40:47]Write to MH i2c: E2 08 00 2A 0D 80 11 00 00 00 00 00 00 B1 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 17 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 17 00 2A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 08 [19:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:40:47]wFMCommunicate OK [19:40:47]CreateOFDProtocolMessage done [19:40:47]OFDSenderStorePacket 118187 [19:40:47]StoreOFDPacket docnum=118187 [19:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 55 01 07 01 88 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 32 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 F7 00 00 00 F4 03 04 00 BE 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CD 01 00 35 04 06 00 71 1E 01 EA 8B 63 CF 73 74 D8 83 85 F3 0B [19:40:47]CheckFolder [19:40:47]dirname=/storage/ofd_packets [19:40:47]CheckFolder done [19:40:47]ProducePacketName [19:40:47]name=ofd_packets/00118187 [19:40:47]NVStorageSaveData ofd_packets/00118187 [19:40:47]File name is /storage/ofd_packets/00118187 [19:40:47]Write 301 bytes [19:40:47]NVStorageSaveData done [19:40:47]OFDSenderStorePacket done [19:40:47]KKMCreateOFDPacket done [19:40:47]NVStorageSaveData kkm_last_timestamp [19:40:47]File name is /storage/kkm_last_timestamp [19:40:47]Write 4 bytes [19:40:47]NVStorageSaveData done [19:40:47]ExternCall_PrintAddStr [19:40:47]wPrintStart [19:40:47]Write to MH i2c: 01 00 00 2B 0D 38 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: 01 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: 01 07 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 FF 0F 4D [19:40:47]RasterBufferAndPrint [19:40:47]line Счет N : (1)245988 [19:40:47]line ИНН: 02508201610067 [19:40:47]line Контрольно-Кассовый Чек [19:40:47]line ПРОДАЖА [19:40:47]line ТРК (МРК, ГНК) : 21 [19:40:47]line Товар: 2710124130 [19:40:47]line Аи-92-К-2 [19:40:47]line 7.480 * 66.90 [19:40:47]line = 500.41 [19:40:47]line НДС 12% НСП 1% [19:40:47]line > о реализуемом товаре [19:40:47]line ОКРУГЛЕНИЕ: -0.41 [19:40:47]line ИТОГО: 500.00 [19:40:47]line Внесено: 500.00 [19:40:47]line СДАЧА: 0.00 [19:40:47]line НСП 1% : 4.43 [19:40:47]line НДС 12% : 53.14 [19:40:47]line Наличными: 500.00 [19:40:47]line Безнал.: 0.00 [19:40:47]line Место: АЗС № 173 "Партнер Нефть" [19:40:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:40:47]line СНО: Общий режим [19:40:47]line Чек 247 30.10.2024 19:40 [19:40:47]line Смена: 545 ФФД: 1.0 [19:40:47]line ЗНМ: 0300000115 [19:40:47]line РНМ: 0000000000091782 [19:40:47]line Версия ККМ: 001 [19:40:47]line ФМ: 0000000000871767 [19:40:47]line ФД: 118187 [19:40:47]line ФПД: 124373695105891 [19:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194046&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118187&fm=124373695105891&tin=02508201610067®Number=0000000000091782&sum=50000 [19:40:47]written 0, free lines is 4095 [19:40:47]OFD Sender: Processing packet 118187 [packets to send 77, broken 76] [19:40:47]ProducePacketName [19:40:47]name=ofd_packets/00118187 [19:40:47]OFD Sender: To server: pG, [19:40:47]CommunicateWithHost lk.salyk.kg:30040 [19:40:47]ConnectInit lk.salyk.kg [19:40:47]Connected sock=11 [19:40: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 36 37 0F 01 00 00 55 01 07 01 88 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 32 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 F7 00 00 00 F4 03 04 00 BE 8B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AB CD 01 00 35 04 06 00 71 1E 01 EA 8B 63 CF 73 74 D8 83 85 F3 0B [19:40: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 36 37 4F 00 00 00 0B B7 47 00 CE 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 36 37 10 04 04 00 AB CD 01 00 F4 03 04 00 75 37 22 67 B6 04 01 00 00 A5 06 E9 B7 59 2C B8 E0 [19:40:47]CommunicateWithHost err = 0 [19:40:47]CheckOFDResponse [19:40:47]1017 (14) - 77093643461234 [19:40:47]1041 (16) - 0000000000871767 [19:40:47]1040 (4) - 118187 [19:40:47]1012 (4) - 30.10.2024 13:41 [19:40:47]1206 (1) - 0 [19:40:47]OFD Sender: Remove packet 118187 [19:40:47]ProducePacketName [19:40:47]name=ofd_packets/00118187 [19:40:47]NVStorageDeleteData [19:40:47]Write to MH i2c: 01 00 00 55 0D 62 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: 01 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: 01 07 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: 01 07 00 55 0D 00 00 00 00 00 BB 0C 30 [19:40:47]RasterBufferAndPrint [19:40:47]line [19:40:47]line [19:40:47]line [19:40:47]line [19:40:47]line [19:40:47]written 0, free lines is 3275 [19:40:47]MH_Cut [19:40:47]Write to MH i2c: D1 01 00 5C 0D 01 3B [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: D1 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: D1 01 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: D1 01 00 5C 0D 00 3A [19:40:47]Write to MH i2c: 01 00 00 5D 0D 6A [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:48]OFD Sender: No OFD packet to send [19:40:48]*** Cut start [19:40:48]*** Purtial cut [19:40:48]*** Stage 1: CUTSNS_PIN = 1 [19:40:49]Read from MH i2c: 01 [19:40:49]MH_I2C_Read... [19:40:49]*** Stop cut motor [19:40:49]*** Cut end [19:40:49]Read from MH i2c: 01 07 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: 01 07 00 5D 0D 00 00 00 00 00 FF 0F 7F [19:40:49]process_action close_receipt done [19:40:49]requested_data is exist [19:40:49]produce_requested_data [19:40:49]requested_item fm.sn is exist - process it [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 11 00 00 [19:40:49]Write to MH i2c: E2 08 00 5E 0D 80 11 00 00 00 00 00 00 E5 [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 17 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 17 00 5E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 3C [19:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:40:49]wFMCommunicate OK [19:40:49]requested_item fd.num is exist - process it [19:40:49]SAM_PROTO_GetFieldsCounters [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 13 00 00 [19:40:49]Write to MH i2c: E2 08 00 5F 0D 80 13 00 00 00 00 00 00 E8 [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 62 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 62 00 5F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AB CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:40: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AB CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:49]wFMCommunicate OK [19:40:49]SAM_PROTO_GetFieldsCounters done [19:40:49]requested_item shift.num is exist - process it [19:40:49]requested_item shift.opened is exist - process it [19:40:49]req_shift_opened [19:40:49]FM_GetShiftState [19:40:49]SAM_PROTO_GetShiftState [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 13 01 00 [19:40:49]Write to MH i2c: E2 08 00 60 0D 80 13 01 00 00 00 00 00 EA [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 0E 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 0E 00 60 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C2 [19:40:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:40:49]wFMCommunicate OK [19:40:49]SAM_PROTO_GetShiftState done [19:40:49]FM_GetShiftState done [19:40:49]req_shift_opened done [19:40:49]requested_item shift.open_date is exist - process it [19:40:49]req_shift_open_date [19:40:49]req_shift_open_date done [19:40:49]produce_requested_data done [19:40:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118187,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:40:49]process_action_free close_receipt [19:40:49]json_value_free [19:40:49]json_value_free done [19:40:49]process_json_proto returns [19:40:49]Send response to host [19:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118187,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:40:49]free response buf [19:40:49]execute_script done [19:40:49]execute_script returns [19:40:49]free content buf [19:40:49]Sock 10.Close socket [19:40:49]Sock 10.Thread stoped [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:09]ConnectInit Can't connect to host [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:22]accept exits with 9 [19:46:22]New connection [19:46:22]New thread 3067276644 created [19:46:22]Thread 3067133284 joined [19:46:22]Waiting for new connection... [19:46:22] Sock 9.Parse request [19:46:22]Sock 9.Check first char [19:46:22]Sock 9.First char is OK [19:46:22]request: POST /json_proto HTTP/1.0 [19:46:22]Method: POST [19:46:22]URL: /json_proto [19:46:22]Method is POST - this is cgi request [19:46:22]url: /json_proto [19:46:22]query_string will be loaded in cgi processing [19:46:22]execute_cgi json_proto POST (null) [19:46:22]execute_cgi path=json_proto method=POST [19:46:22]POST find Content-Length [19:46:22]Host: 172.17.96.67:8080 [19:46:22]Content-Length: 674 [19:46:22]Content-Type: application/json [19:46:22] [19:46:22]POST finish read [19:46:22]Found Content-Length = 674 [19:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:22]execute_script... [19:46: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)245989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:22]POST & json_proto [19:46:22]process_json_proto [19:46:22]json parsed OK: [19:46:22]protocol is kg_v1.0 [19:46:22]action value=close_receipt [19:46:22]process_action close_receipt [19:46:22]cmd_close_receipt [19:46:22]MH_GetDate [19:46:22]Write to MH i2c: F0 00 00 61 0D 5D [19:46:22]Write i2c OK [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: F0 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: F0 09 00 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: F0 09 00 61 0D 00 0F 8D 22 67 47 6C 1F 67 C4 [19:46:22]GetLastDocTimeStamp 1730317246 [19:46:22]current date 1730317583 [19:46:22]FM_GetShiftState [19:46:22]SAM_PROTO_GetShiftState [19:46:22]wFMCommunicate request_size=4 [19:46:22]MH_SAM_APDU [19:46:22]CAPDU: 80 13 01 00 [19:46:22]Write to MH i2c: E2 08 00 62 0D 80 13 01 00 00 00 00 00 EC [19:46:22]Write i2c OK [19:46:22]MH_I2C_Read... [19:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:22]Read from MH i2c: E2 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 0E 00 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 0E 00 62 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 C4 [19:46:22]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:46:22]wFMCommunicate OK [19:46:22]SAM_PROTO_GetShiftState done [19:46:22]FM_GetShiftState done [19:46:22]opened in 1730246605 [19:46:22]opened+sec_in_day 1730333005 [19:46:22]quantity*price = 60045 [19:46:22]sum+1 = 60047 [19:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 248 30.10.2024 19:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118188 ФПД: 243214236809798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194623&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118188&fm=243214236809798&tin=02508201610067®Number=0000000000091782&sum=60000 [19:46:23]StoreToDocumentArchive [19:46:23]shift 545 fd 118188 [19:46:23]save to /storage/0545/doc_00118188 [19:46:23]save last doc name /storage/0545/doc_00118188 to /storage/kkm_last_doc_name [19:46:23]save OK [19:46:23]Clear old archive folders... [19:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:46:23]tlvbuf is B6F10B90 [19:46:23]SAM_PROTO_ClearQueue [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 09 00 00 [19:46:23]Write to MH i2c: E2 08 00 6F 0D 80 09 00 00 00 00 00 00 EE [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 6F 0D 00 90 00 F0 [19:46:23]RAPDU: 90 00 [19:46:23]wFMCommunicate OK [19:46:23]SAM_PROTO_ClearQueue done [19:46:23]KKMCreateOFDPacket [19:46:23]OFDProtocolAddRootSTLVToBuf [19:46:23]FM_MakeSignedData [19:46:23]FM_MakeSignedData [19:46:23]SAM_PROTO_SignData [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 0D 01 02 [19:46:23]Write to MH i2c: E2 08 00 70 0D 80 0D 01 02 00 00 00 00 F6 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 70 0D 00 90 00 F1 [19:46:23]RAPDU: 90 00 [19:46:23]wFMCommunicate OK [19:46:23]wFMCommunicate request_size=255 [19:46:23]MH_SAM_APDU [19:46: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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 0F 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CD 01 00 35 04 06 00 DD 33 BA 30 [19:46:23]Write to MH i2c: E2 02 01 71 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 0F 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CD 01 00 35 04 06 00 DD 33 BA 30 00 00 F3 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]OFD Sender: No OFD packet to send [19:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [19:46:23]RAPDU: 90 00 [19:46:23]wFMCommunicate OK [19:46:23]wFMCommunicate request_size=7 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 0D 02 02 02 7A 46 [19:46:23]Write to MH i2c: E2 0A 00 72 0D 80 0D 02 02 02 00 7A 46 00 00 BD [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 03 00 72 0D 00 90 00 F3 [19:46:23]RAPDU: 90 00 [19:46:23]wFMCommunicate OK [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 0D 03 02 [19:46:23]Write to MH i2c: E2 08 00 73 0D 80 0D 03 02 00 00 00 00 FB [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 0B 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 0B 00 73 0D 00 F0 95 CF 49 12 19 BE 92 90 00 14 [19:46:23]RAPDU: F0 95 CF 49 12 19 BE 92 90 00 [19:46:23]wFMCommunicate OK [19:46:23]SAM_PROTO_SignData done [19:46:23]FM_MakeSignedData done [19:46:23]CreateOFDProtocolMessage [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 11 00 00 [19:46:23]Write to MH i2c: E2 08 00 74 0D 80 11 00 00 00 00 00 00 FB [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:24]Read from MH i2c: E2 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: E2 17 00 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: E2 17 00 74 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 52 [19:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:46:24]wFMCommunicate OK [19:46:24]CreateOFDProtocolMessage done [19:46:24]OFDSenderStorePacket 118188 [19:46:24]StoreOFDPacket docnum=118188 [19:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 86 05 04 01 17 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 0F 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CD 01 00 35 04 06 00 DD 33 BA 30 7A 46 F0 95 CF 49 12 19 BE 92 [19:46:24]CheckFolder [19:46:24]dirname=/storage/ofd_packets [19:46:24]CheckFolder done [19:46:24]ProducePacketName [19:46:24]name=ofd_packets/00118188 [19:46:24]NVStorageSaveData ofd_packets/00118188 [19:46:24]File name is /storage/ofd_packets/00118188 [19:46:24]Write 298 bytes [19:46:24]NVStorageSaveData done [19:46:24]OFDSenderStorePacket done [19:46:24]KKMCreateOFDPacket done [19:46:24]NVStorageSaveData kkm_last_timestamp [19:46:24]File name is /storage/kkm_last_timestamp [19:46:24]Write 4 bytes [19:46:24]NVStorageSaveData done [19:46:24]ExternCall_PrintAddStr [19:46:24]wPrintStart [19:46:24]Write to MH i2c: 01 00 00 75 0D 82 [19:46:24]Write i2c OK [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: 01 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: 01 07 00 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: 01 07 00 75 0D 00 00 00 00 00 FF 0F 97 [19:46:24]RasterBufferAndPrint [19:46:24]line Счет N : (1)245989 [19:46:24]line ИНН: 02508201610067 [19:46:24]line Контрольно-Кассовый Чек [19:46:24]line ПРОДАЖА [19:46:24]line ТРК (МРК, ГНК) : 13 [19:46:24]line Товар: 2710194210 [19:46:24]line ДТ-К-2 [19:46:24]line 7.880 * 76.20 [19:46:24]line = 600.46 [19:46:24]line НДС 12% НСП 1% [19:46:24]line > о реализуемом товаре [19:46:24]line ОКРУГЛЕНИЕ: -0.46 [19:46:24]line ИТОГО: 600.00 [19:46:24]line Внесено: 600.00 [19:46:24]line СДАЧА: 0.00 [19:46:24]line НСП 1% : 5.31 [19:46:24]line НДС 12% : 63.77 [19:46:24]line Наличными: 600.00 [19:46:24]line Безнал.: 0.00 [19:46:24]line Место: АЗС № 173 "Партнер Нефть" [19:46:24]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:46:24]line СНО: Общий режим [19:46:24]line Чек 248 30.10.2024 19:46 [19:46:24]line Смена: 545 ФФД: 1.0 [19:46:24]line ЗНМ: 0300000115 [19:46:24]line РНМ: 0000000000091782 [19:46:24]line Версия ККМ: 001 [19:46:24]line ФМ: 0000000000871767 [19:46:24]line ФД: 118188 [19:46:24]line ФПД: 243214236809798 [19:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194623&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118188&fm=243214236809798&tin=02508201610067®Number=0000000000091782&sum=60000 [19:46:24]OFD Sender: Processing packet 118188 [packets to send 77, broken 76] [19:46:24]ProducePacketName [19:46:24]name=ofd_packets/00118188 [19:46:24]OFD Sender: To server: pG, [19:46:24]CommunicateWithHost lk.salyk.kg:30040 [19:46:24]ConnectInit lk.salyk.kg [19:46:24]written 0, free lines is 4095 [19:46:24]Connected sock=10 [19:46: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 36 37 0C 01 00 00 86 05 04 01 17 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 0F 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CD 01 00 35 04 06 00 DD 33 BA 30 7A 46 F0 95 CF 49 12 19 BE 92 [19:46: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 36 37 4F 00 00 00 AD AF 47 00 55 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AC CD 01 00 F4 03 04 00 C6 38 22 67 B6 04 01 00 00 8F 96 91 6D 96 7B 4F C5 [19:46:24]CommunicateWithHost err = 0 [19:46:24]CheckOFDResponse [19:46:24]1017 (14) - 77093643461234 [19:46:24]1041 (16) - 0000000000871767 [19:46:24]1040 (4) - 118188 [19:46:24]1012 (4) - 30.10.2024 13:46 [19:46:24]1206 (1) - 0 [19:46:24]OFD Sender: Remove packet 118188 [19:46:24]ProducePacketName [19:46:24]name=ofd_packets/00118188 [19:46:24]NVStorageDeleteData [19:46:24]Write to MH i2c: 01 00 00 9F 0D AC [19:46:24]Write i2c OK [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: 01 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: 01 07 00 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: 01 07 00 9F 0D 00 00 00 00 00 C0 0C 7F [19:46:24]RasterBufferAndPrint [19:46:24]line [19:46:24]line [19:46:24]line [19:46:24]line [19:46:24]line [19:46:24]written 0, free lines is 3268 [19:46:24]MH_Cut [19:46:24]Write to MH i2c: D1 01 00 A6 0D 01 85 [19:46:24]Write i2c OK [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: D1 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: D1 01 00 [19:46:24]MH_I2C_Read... [19:46:24]Read from MH i2c: D1 01 00 A6 0D 00 84 [19:46:24]Write to MH i2c: 01 00 00 A7 0D B4 [19:46:24]Write i2c OK [19:46:24]MH_I2C_Read... [19:46:25]OFD Sender: No OFD packet to send [19:46:25]*** Cut start [19:46:25]*** Purtial cut [19:46:25]*** Stage 1: CUTSNS_PIN = 1 [19:46:25]Read from MH i2c: 01 [19:46:25]MH_I2C_Read... [19:46:25]*** Stop cut motor [19:46:25]*** Cut end [19:46:25]Read from MH i2c: 01 07 00 [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [19:46:25]process_action close_receipt done [19:46:25]requested_data is exist [19:46:25]produce_requested_data [19:46:25]requested_item fm.sn is exist - process it [19:46:25]wFMCommunicate request_size=4 [19:46:25]MH_SAM_APDU [19:46:25]CAPDU: 80 11 00 00 [19:46:25]Write to MH i2c: E2 08 00 A8 0D 80 11 00 00 00 00 00 00 2F [19:46:25]Write i2c OK [19:46:25]MH_I2C_Read... [19:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:26]Read from MH i2c: E2 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 17 00 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 17 00 A8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 86 [19:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:46:26]wFMCommunicate OK [19:46:26]requested_item fd.num is exist - process it [19:46:26]SAM_PROTO_GetFieldsCounters [19:46:26]wFMCommunicate request_size=4 [19:46:26]MH_SAM_APDU [19:46:26]CAPDU: 80 13 00 00 [19:46:26]Write to MH i2c: E2 08 00 A9 0D 80 13 00 00 00 00 00 00 32 [19:46:26]Write i2c OK [19:46:26]MH_I2C_Read... [19:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:26]Read from MH i2c: E2 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 62 00 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 62 00 A9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AC CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [19:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AC CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:26]wFMCommunicate OK [19:46:26]SAM_PROTO_GetFieldsCounters done [19:46:26]requested_item shift.num is exist - process it [19:46:26]requested_item shift.opened is exist - process it [19:46:26]req_shift_opened [19:46:26]FM_GetShiftState [19:46:26]SAM_PROTO_GetShiftState [19:46:26]wFMCommunicate request_size=4 [19:46:26]MH_SAM_APDU [19:46:26]CAPDU: 80 13 01 00 [19:46:26]Write to MH i2c: E2 08 00 AA 0D 80 13 01 00 00 00 00 00 34 [19:46:26]Write i2c OK [19:46:26]MH_I2C_Read... [19:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:26]Read from MH i2c: E2 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 0E 00 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 0E 00 AA 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0C [19:46:26]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:46:26]wFMCommunicate OK [19:46:26]SAM_PROTO_GetShiftState done [19:46:26]FM_GetShiftState done [19:46:26]req_shift_opened done [19:46:26]requested_item shift.open_date is exist - process it [19:46:26]req_shift_open_date [19:46:26]req_shift_open_date done [19:46:26]produce_requested_data done [19:46:26]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118188,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:46:26]process_action_free close_receipt [19:46:26]json_value_free [19:46:26]json_value_free done [19:46:26]process_json_proto returns [19:46:26]Send response to host [19:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118188,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:46:26]free response buf [19:46:26]execute_script done [19:46:26]execute_script returns [19:46:26]free content buf [19:46:26]Sock 9.Close socket [19:46:26]Sock 9.Thread stoped [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:01]accept exits with 7 [19:47:01]New connection [19:47:01]New thread 3067133284 created [19:47:01]Thread 3067276644 joined [19:47:01]Waiting for new connection... [19:47:01] Sock 7.Parse request [19:47:01]Sock 7.Check first char [19:47:01]Sock 7.First char is OK [19:47:01]request: POST /json_proto HTTP/1.0 [19:47:01]Method: POST [19:47:01]URL: /json_proto [19:47:01]Method is POST - this is cgi request [19:47:01]url: /json_proto [19:47:01]query_string will be loaded in cgi processing [19:47:01]execute_cgi json_proto POST (null) [19:47:01]execute_cgi path=json_proto method=POST [19:47:01]POST find Content-Length [19:47:01]Host: 172.17.96.67:8080 [19:47:01]Content-Length: 677 [19:47:01]Content-Type: application/json [19:47:01] [19:47:01]POST finish read [19:47:01]Found Content-Length = 677 [19:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:47:01]execute_script... [19:47: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)245990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:47:01]POST & json_proto [19:47:01]process_json_proto [19:47:01]json parsed OK: [19:47:01]protocol is kg_v1.0 [19:47:01]action value=close_receipt [19:47:01]process_action close_receipt [19:47:01]cmd_close_receipt [19:47:01]MH_GetDate [19:47:01]Write to MH i2c: F0 00 00 AB 0D A7 [19:47:01]Write i2c OK [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: F0 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: F0 09 00 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: F0 09 00 AB 0D 00 36 8D 22 67 47 6C 1F 67 35 [19:47:01]GetLastDocTimeStamp 1730317583 [19:47:01]current date 1730317622 [19:47:01]FM_GetShiftState [19:47:01]SAM_PROTO_GetShiftState [19:47:01]wFMCommunicate request_size=4 [19:47:01]MH_SAM_APDU [19:47:01]CAPDU: 80 13 01 00 [19:47:01]Write to MH i2c: E2 08 00 AC 0D 80 13 01 00 00 00 00 00 36 [19:47:01]Write i2c OK [19:47:01]MH_I2C_Read... [19:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:01]Read from MH i2c: E2 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: E2 0E 00 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: E2 0E 00 AC 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 0E [19:47:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:47:01]wFMCommunicate OK [19:47:01]SAM_PROTO_GetShiftState done [19:47:01]FM_GetShiftState done [19:47:01]opened in 1730246605 [19:47:01]opened+sec_in_day 1730333005 [19:47:01]quantity*price = 40006 [19:47:01]sum+1 = 40007 [19:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 249 30.10.2024 19:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118189 ФПД: 270982969724522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194702&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118189&fm=270982969724522&tin=02508201610067®Number=0000000000091782&sum=40000 [19:47:03]StoreToDocumentArchive [19:47:03]shift 545 fd 118189 [19:47:03]save to /storage/0545/doc_00118189 [19:47:03]save last doc name /storage/0545/doc_00118189 to /storage/kkm_last_doc_name [19:47:03]save OK [19:47:03]Clear old archive folders... [19:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:03]tlvbuf is 00232FA0 [19:47:03]SAM_PROTO_ClearQueue [19:47:03]wFMCommunicate request_size=4 [19:47:03]MH_SAM_APDU [19:47:03]CAPDU: 80 09 00 00 [19:47:03]Write to MH i2c: E2 08 00 B9 0D 80 09 00 00 00 00 00 00 38 [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:03]Read from MH i2c: E2 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [19:47:03]RAPDU: 90 00 [19:47:03]wFMCommunicate OK [19:47:03]SAM_PROTO_ClearQueue done [19:47:03]KKMCreateOFDPacket [19:47:03]OFDProtocolAddRootSTLVToBuf [19:47:03]FM_MakeSignedData [19:47:03]FM_MakeSignedData [19:47:03]SAM_PROTO_SignData [19:47:03]wFMCommunicate request_size=4 [19:47:03]MH_SAM_APDU [19:47:03]CAPDU: 80 0D 01 02 [19:47:03]Write to MH i2c: E2 08 00 BA 0D 80 0D 01 02 00 00 00 00 40 [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:03]Read from MH i2c: E2 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [19:47:03]RAPDU: 90 00 [19:47:03]wFMCommunicate OK [19:47:03]wFMCommunicate request_size=255 [19:47:03]MH_SAM_APDU [19:47: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 32 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 F9 00 00 00 F4 03 04 00 36 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CD 01 00 35 04 06 00 F6 [19:47:03]Write to MH i2c: E2 02 01 BB 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 36 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CD 01 00 35 04 06 00 F6 00 00 7A [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:03]Read from MH i2c: E2 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [19:47:03]RAPDU: 90 00 [19:47:03]wFMCommunicate OK [19:47:03]wFMCommunicate request_size=10 [19:47:03]MH_SAM_APDU [19:47:03]CAPDU: 80 0D 02 02 05 75 23 A6 8E 6A [19:47:03]Write to MH i2c: E2 0D 00 BC 0D 80 0D 02 02 05 00 75 23 A6 8E 6A 00 00 83 [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:03]Read from MH i2c: E2 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 03 00 BC 0D 00 90 00 3D [19:47:03]RAPDU: 90 00 [19:47:03]wFMCommunicate OK [19:47:03]wFMCommunicate request_size=4 [19:47:03]MH_SAM_APDU [19:47:03]CAPDU: 80 0D 03 02 [19:47:03]Write to MH i2c: E2 08 00 BD 0D 80 0D 03 02 00 00 00 00 45 [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:03]Read from MH i2c: E2 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 0B 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 0B 00 BD 0D 00 0F B0 5B BE 66 C8 67 5C 90 00 0F [19:47:03]RAPDU: 0F B0 5B BE 66 C8 67 5C 90 00 [19:47:03]wFMCommunicate OK [19:47:03]SAM_PROTO_SignData done [19:47:03]FM_MakeSignedData done [19:47:03]CreateOFDProtocolMessage [19:47:03]wFMCommunicate request_size=4 [19:47:03]MH_SAM_APDU [19:47:03]CAPDU: 80 11 00 00 [19:47:03]Write to MH i2c: E2 08 00 BE 0D 80 11 00 00 00 00 00 00 45 [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:03]Read from MH i2c: E2 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 17 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: E2 17 00 BE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9C [19:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:47:03]wFMCommunicate OK [19:47:03]CreateOFDProtocolMessage done [19:47:03]OFDSenderStorePacket 118189 [19:47:03]StoreOFDPacket docnum=118189 [19:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 7B 5E 07 01 B4 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F9 00 00 00 F4 03 04 00 36 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CD 01 00 35 04 06 00 F6 75 23 A6 8E 6A 0F B0 5B BE 66 C8 67 5C [19:47:03]CheckFolder [19:47:03]dirname=/storage/ofd_packets [19:47:03]CheckFolder done [19:47:03]ProducePacketName [19:47:03]name=ofd_packets/00118189 [19:47:03]NVStorageSaveData ofd_packets/00118189 [19:47:03]File name is /storage/ofd_packets/00118189 [19:47:03]Write 301 bytes [19:47:03]NVStorageSaveData done [19:47:03]OFDSenderStorePacket done [19:47:03]KKMCreateOFDPacket done [19:47:03]NVStorageSaveData kkm_last_timestamp [19:47:03]File name is /storage/kkm_last_timestamp [19:47:03]Write 4 bytes [19:47:03]NVStorageSaveData done [19:47:03]ExternCall_PrintAddStr [19:47:03]wPrintStart [19:47:03]Write to MH i2c: 01 00 00 BF 0D CC [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 07 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FF 0F E1 [19:47:03]RasterBufferAndPrint [19:47:03]line Счет N : (1)245990 [19:47:03]line ИНН: 02508201610067 [19:47:03]line Контрольно-Кассовый Чек [19:47:03]line ПРОДАЖА [19:47:03]line ТРК (МРК, ГНК) : 21 [19:47:03]line Товар: 2710124130 [19:47:03]line Аи-92-К-2 [19:47:03]line 5.980 * 66.90 [19:47:03]line = 400.06 [19:47:03]line НДС 12% НСП 1% [19:47:03]line > о реализуемом товаре [19:47:03]line ОКРУГЛЕНИЕ: -0.06 [19:47:03]line ИТОГО: 400.00 [19:47:03]line Внесено: 400.00 [19:47:03]line СДАЧА: 0.00 [19:47:03]line НСП 1% : 3.54 [19:47:03]line НДС 12% : 42.48 [19:47:03]line Наличными: 400.00 [19:47:03]line Безнал.: 0.00 [19:47:03]line Место: АЗС № 173 "Партнер Нефть" [19:47:03]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:47:03]line СНО: Общий режим [19:47:03]line Чек 249 30.10.2024 19:47 [19:47:03]line Смена: 545 ФФД: 1.0 [19:47:03]line ЗНМ: 0300000115 [19:47:03]line РНМ: 0000000000091782 [19:47:03]line Версия ККМ: 001 [19:47:03]line ФМ: 0000000000871767 [19:47:03]line ФД: 118189 [19:47:03]line ФПД: 270982969724522 [19:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194702&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118189&fm=270982969724522&tin=02508201610067®Number=0000000000091782&sum=40000 [19:47:03]written 0, free lines is 4095 [19:47:03]OFD Sender: Processing packet 118189 [packets to send 77, broken 76] [19:47:03]ProducePacketName [19:47:03]name=ofd_packets/00118189 [19:47:03]OFD Sender: To server: pG, [19:47:03]CommunicateWithHost lk.salyk.kg:30040 [19:47:03]ConnectInit lk.salyk.kg [19:47:03]Connected sock=10 [19:47: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 36 37 0F 01 00 00 7B 5E 07 01 B4 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F9 00 00 00 F4 03 04 00 36 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CD 01 00 35 04 06 00 F6 75 23 A6 8E 6A 0F B0 5B BE 66 C8 67 5C [19:47: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 36 37 4F 00 00 00 3E B8 47 00 F6 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AD CD 01 00 F4 03 04 00 ED 38 22 67 B6 04 01 00 00 13 C4 A7 CC 37 9B 0F 38 [19:47:04]CommunicateWithHost err = 0 [19:47:04]CheckOFDResponse [19:47:04]1017 (14) - 77093643461234 [19:47:04]1041 (16) - 0000000000871767 [19:47:04]1040 (4) - 118189 [19:47:04]1012 (4) - 30.10.2024 13:47 [19:47:04]1206 (1) - 0 [19:47:04]OFD Sender: Remove packet 118189 [19:47:04]ProducePacketName [19:47:04]name=ofd_packets/00118189 [19:47:04]NVStorageDeleteData [19:47:04]Write to MH i2c: 01 00 00 E9 0D F6 [19:47:04]Write i2c OK [19:47:04]MH_I2C_Read... [19:47:04]Read from MH i2c: 01 [19:47:04]MH_I2C_Read... [19:47:04]Read from MH i2c: 01 07 00 [19:47:04]MH_I2C_Read... [19:47:04]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 BA 0C C3 [19:47:04]RasterBufferAndPrint [19:47:04]line [19:47:04]line [19:47:04]line [19:47:04]line [19:47:04]line [19:47:04]written 0, free lines is 3267 [19:47:04]MH_Cut [19:47:04]Write to MH i2c: D1 01 00 F0 0D 01 CF [19:47:04]Write i2c OK [19:47:04]MH_I2C_Read... [19:47:04]Read from MH i2c: D1 [19:47:04]MH_I2C_Read... [19:47:04]Read from MH i2c: D1 01 00 [19:47:04]MH_I2C_Read... [19:47:04]Read from MH i2c: D1 01 00 F0 0D 00 CE [19:47:04]Write to MH i2c: 01 00 00 F1 0D FE [19:47:04]Write i2c OK [19:47:04]MH_I2C_Read... [19:47:04]OFD Sender: No OFD packet to send [19:47:05]*** Cut start [19:47:05]*** Purtial cut [19:47:05]*** Stage 1: CUTSNS_PIN = 1 [19:47:05]Read from MH i2c: 01 [19:47:05]MH_I2C_Read... [19:47:05]*** Stop cut motor [19:47:05]*** Cut end [19:47:05]Read from MH i2c: 01 07 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [19:47:05]process_action close_receipt done [19:47:05]requested_data is exist [19:47:05]produce_requested_data [19:47:05]requested_item fm.sn is exist - process it [19:47:05]wFMCommunicate request_size=4 [19:47:05]MH_SAM_APDU [19:47:05]CAPDU: 80 11 00 00 [19:47:05]Write to MH i2c: E2 08 00 F2 0D 80 11 00 00 00 00 00 00 79 [19:47:05]Write i2c OK [19:47:05]MH_I2C_Read... [19:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:05]Read from MH i2c: E2 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 17 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 17 00 F2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D0 [19:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:47:05]wFMCommunicate OK [19:47:05]requested_item fd.num is exist - process it [19:47:05]SAM_PROTO_GetFieldsCounters [19:47:05]wFMCommunicate request_size=4 [19:47:05]MH_SAM_APDU [19:47:05]CAPDU: 80 13 00 00 [19:47:05]Write to MH i2c: E2 08 00 F3 0D 80 13 00 00 00 00 00 00 7C [19:47:05]Write i2c OK [19:47:05]MH_I2C_Read... [19:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:05]Read from MH i2c: E2 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 62 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 62 00 F3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AD CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [19:47: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AD CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:05]wFMCommunicate OK [19:47:05]SAM_PROTO_GetFieldsCounters done [19:47:05]requested_item shift.num is exist - process it [19:47:05]requested_item shift.opened is exist - process it [19:47:05]req_shift_opened [19:47:05]FM_GetShiftState [19:47:05]SAM_PROTO_GetShiftState [19:47:05]wFMCommunicate request_size=4 [19:47:05]MH_SAM_APDU [19:47:05]CAPDU: 80 13 01 00 [19:47:05]Write to MH i2c: E2 08 00 F4 0D 80 13 01 00 00 00 00 00 7E [19:47:05]Write i2c OK [19:47:05]MH_I2C_Read... [19:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:05]Read from MH i2c: E2 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 0E 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 0E 00 F4 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 56 [19:47:05]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:47:05]wFMCommunicate OK [19:47:05]SAM_PROTO_GetShiftState done [19:47:05]FM_GetShiftState done [19:47:05]req_shift_opened done [19:47:05]requested_item shift.open_date is exist - process it [19:47:05]req_shift_open_date [19:47:05]req_shift_open_date done [19:47:05]produce_requested_data done [19:47:05]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118189,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:47:05]process_action_free close_receipt [19:47:05]json_value_free [19:47:05]json_value_free done [19:47:05]process_json_proto returns [19:47:05]Send response to host [19:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118189,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:47:05]free response buf [19:47:05]execute_script done [19:47:05]execute_script returns [19:47:05]free content buf [19:47:05]Sock 7.Close socket [19:47:05]Sock 7.Thread stoped [19:47:09]int [19:47:09]Write to MH i2c: 01 00 00 F5 0D 02 [19:47:09]*** FLAG_PRN_PAP1 set [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 F5 0D 00 01 00 00 00 FF 0F 18 [19:47:09]state=0 [19:47:09]No paper [19:47:09]int [19:47:09]Write to MH i2c: 01 00 00 F6 0D 03 [19:47:09]*** FLAG_PRN_PAP2 set [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 F6 0D 00 03 00 00 00 FF 0F 1B [19:47:09]state=0 [19:47:09]No paper [19:47:09]Cover opened [19:47:09]OFD Sender: No OFD packet to send [19:47:14]Write to MH i2c: 01 00 00 F7 0D 04 [19:47:14]Write i2c OK [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 07 00 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 07 00 F7 0D 00 03 00 00 00 FF 0F 1C [19:47:14]state=3 [19:47:14]No paper [19:47:14]Cover opened [19:47:14]OFD Sender: No OFD packet to send [19:47:14]int [19:47:14]Write to MH i2c: 01 00 00 F8 0D 05 [19:47:14]*** FLAG_PRN_PAP2 reset [19:47:14]Write i2c OK [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 07 00 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 07 00 F8 0D 00 01 00 00 00 FF 0F 1B [19:47:14]state=3 [19:47:14]No paper [19:47:14]Cover closed [19:47:14]int [19:47:14]Write to MH i2c: 01 00 00 F9 0D 06 [19:47:14]*** FLAG_PRN_PAP1 reset [19:47:14]Write i2c OK [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 07 00 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: 01 07 00 F9 0D 00 00 00 00 00 FF 0F 1B [19:47:14]state=0 [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]accept exits with 9 [19:48:44]New connection [19:48:44]New thread 3067276644 created [19:48:44]Thread 3067133284 joined [19:48:44]Waiting for new connection... [19:48:44] Sock 9.Parse request [19:48:44]Sock 9.Check first char [19:48:44]Sock 9.First char is OK [19:48:44]request: POST /json_proto HTTP/1.0 [19:48:44]Method: POST [19:48:44]URL: /json_proto [19:48:44]Method is POST - this is cgi request [19:48:44]url: /json_proto [19:48:44]query_string will be loaded in cgi processing [19:48:44]execute_cgi json_proto POST (null) [19:48:44]execute_cgi path=json_proto method=POST [19:48:44]POST find Content-Length [19:48:44]Host: 172.17.96.67:8080 [19:48:44]Content-Length: 677 [19:48:44]Content-Type: application/json [19:48:44] [19:48:44]POST finish read [19:48:44]Found Content-Length = 677 [19:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:48:44]execute_script... [19:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:48:44]POST & json_proto [19:48:44]process_json_proto [19:48:44]json parsed OK: [19:48:44]protocol is kg_v1.0 [19:48:44]action value=close_receipt [19:48:44]process_action close_receipt [19:48:44]cmd_close_receipt [19:48:44]MH_GetDate [19:48:44]Write to MH i2c: F0 00 00 FA 0D F6 [19:48:44]Write i2c OK [19:48:44]MH_I2C_Read... [19:48:44]Read from MH i2c: F0 [19:48:44]MH_I2C_Read... [19:48:44]Read from MH i2c: F0 09 00 [19:48:44]MH_I2C_Read... [19:48:44]Read from MH i2c: F0 09 00 FA 0D 00 9D 8D 22 67 47 6C 1F 67 EB [19:48:44]GetLastDocTimeStamp 1730317622 [19:48:44]current date 1730317725 [19:48:44]FM_GetShiftState [19:48:44]SAM_PROTO_GetShiftState [19:48:44]wFMCommunicate request_size=4 [19:48:44]MH_SAM_APDU [19:48:44]CAPDU: 80 13 01 00 [19:48:44]Write to MH i2c: E2 08 00 FB 0D 80 13 01 00 00 00 00 00 85 [19:48:44]Write i2c OK [19:48:44]MH_I2C_Read... [19:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:44]Read from MH i2c: E2 [19:48:44]MH_I2C_Read... [19:48:44]Read from MH i2c: E2 0E 00 [19:48:44]MH_I2C_Read... [19:48:44]Read from MH i2c: E2 0E 00 FB 0D 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5D [19:48:44]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:48:44]wFMCommunicate OK [19:48:44]SAM_PROTO_GetShiftState done [19:48:44]FM_GetShiftState done [19:48:44]opened in 1730246605 [19:48:44]opened+sec_in_day 1730333005 [19:48:44]quantity*price = 50041 [19:48:44]sum+1 = 50042 [19:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 250 30.10.2024 19:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118190 ФПД: 200012891357583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194845&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118190&fm=200012891357583&tin=02508201610067®Number=0000000000091782&sum=50000 [19:48:45]StoreToDocumentArchive [19:48:45]shift 545 fd 118190 [19:48:45]save to /storage/0545/doc_00118190 [19:48:45]save last doc name /storage/0545/doc_00118190 to /storage/kkm_last_doc_name [19:48:45]save OK [19:48:45]Clear old archive folders... [19:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:45]tlvbuf is 00277A80 [19:48:45]SAM_PROTO_ClearQueue [19:48:45]wFMCommunicate request_size=4 [19:48:45]MH_SAM_APDU [19:48:45]CAPDU: 80 09 00 00 [19:48:45]Write to MH i2c: E2 08 00 08 0E 80 09 00 00 00 00 00 00 88 [19:48:45]Write i2c OK [19:48:45]MH_I2C_Read... [19:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:45]Read from MH i2c: E2 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [19:48:45]RAPDU: 90 00 [19:48:45]wFMCommunicate OK [19:48:45]SAM_PROTO_ClearQueue done [19:48:45]KKMCreateOFDPacket [19:48:45]OFDProtocolAddRootSTLVToBuf [19:48:45]FM_MakeSignedData [19:48:45]FM_MakeSignedData [19:48:45]SAM_PROTO_SignData [19:48:45]wFMCommunicate request_size=4 [19:48:45]MH_SAM_APDU [19:48:45]CAPDU: 80 0D 01 02 [19:48:45]Write to MH i2c: E2 08 00 09 0E 80 0D 01 02 00 00 00 00 90 [19:48:45]Write i2c OK [19:48:45]MH_I2C_Read... [19:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:45]Read from MH i2c: E2 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [19:48:45]RAPDU: 90 00 [19:48:45]wFMCommunicate OK [19:48:45]wFMCommunicate request_size=255 [19:48:45]MH_SAM_APDU [19:48: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 32 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 FA 00 00 00 F4 03 04 00 9D 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CD 01 00 35 04 06 00 B5 [19:48:45]Write to MH i2c: E2 02 01 0A 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 9D 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CD 01 00 35 04 06 00 B5 00 00 23 [19:48:45]Write i2c OK [19:48:45]MH_I2C_Read... [19:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:45]Read from MH i2c: E2 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [19:48:45]RAPDU: 90 00 [19:48:45]wFMCommunicate OK [19:48:45]wFMCommunicate request_size=10 [19:48:45]MH_SAM_APDU [19:48:45]CAPDU: 80 0D 02 02 05 E9 21 57 01 8F [19:48:45]Write to MH i2c: E2 0D 00 0B 0E 80 0D 02 02 05 00 E9 21 57 01 8F 00 00 8E [19:48:45]Write i2c OK [19:48:45]MH_I2C_Read... [19:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:45]Read from MH i2c: E2 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [19:48:45]RAPDU: 90 00 [19:48:45]wFMCommunicate OK [19:48:45]wFMCommunicate request_size=4 [19:48:45]MH_SAM_APDU [19:48:45]CAPDU: 80 0D 03 02 [19:48:45]Write to MH i2c: E2 08 00 0C 0E 80 0D 03 02 00 00 00 00 95 [19:48:45]Write i2c OK [19:48:45]MH_I2C_Read... [19:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:45]Read from MH i2c: E2 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 0B 00 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 0B 00 0C 0E 00 CC 2A 01 50 BA 8D 6D BD 90 00 4E [19:48:45]RAPDU: CC 2A 01 50 BA 8D 6D BD 90 00 [19:48:45]wFMCommunicate OK [19:48:45]SAM_PROTO_SignData done [19:48:45]FM_MakeSignedData done [19:48:45]CreateOFDProtocolMessage [19:48:45]wFMCommunicate request_size=4 [19:48:45]MH_SAM_APDU [19:48:45]CAPDU: 80 11 00 00 [19:48:45]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [19:48:45]Write i2c OK [19:48:45]MH_I2C_Read... [19:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:45]Read from MH i2c: E2 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 17 00 [19:48:45]MH_I2C_Read... [19:48:45]Read from MH i2c: E2 17 00 0D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EC [19:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:48:46]wFMCommunicate OK [19:48:46]CreateOFDProtocolMessage done [19:48:46]OFDSenderStorePacket 118190 [19:48:46]StoreOFDPacket docnum=118190 [19:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C8 1B 07 01 C0 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 9D 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CD 01 00 35 04 06 00 B5 E9 21 57 01 8F CC 2A 01 50 BA 8D 6D BD [19:48:46]CheckFolder [19:48:46]dirname=/storage/ofd_packets [19:48:46]CheckFolder done [19:48:46]ProducePacketName [19:48:46]name=ofd_packets/00118190 [19:48:46]NVStorageSaveData ofd_packets/00118190 [19:48:46]File name is /storage/ofd_packets/00118190 [19:48:46]Write 301 bytes [19:48:46]NVStorageSaveData done [19:48:46]OFDSenderStorePacket done [19:48:46]KKMCreateOFDPacket done [19:48:46]NVStorageSaveData kkm_last_timestamp [19:48:46]File name is /storage/kkm_last_timestamp [19:48:46]Write 4 bytes [19:48:46]NVStorageSaveData done [19:48:46]ExternCall_PrintAddStr [19:48:46]wPrintStart [19:48:46]Write to MH i2c: 01 00 00 0E 0E 1C [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: 01 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: 01 07 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 FF 0F 31 [19:48:46]RasterBufferAndPrint [19:48:46]line Счет N : (1)245992 [19:48:46]line ИНН: 02508201610067 [19:48:46]line Контрольно-Кассовый Чек [19:48:46]line ПРОДАЖА [19:48:46]line ТРК (МРК, ГНК) : 21 [19:48:46]line Товар: 2710124130 [19:48:46]line Аи-92-К-2 [19:48:46]line 7.480 * 66.90 [19:48:46]line = 500.41 [19:48:46]line НДС 12% НСП 1% [19:48:46]line > о реализуемом товаре [19:48:46]line ОКРУГЛЕНИЕ: -0.41 [19:48:46]line ИТОГО: 500.00 [19:48:46]line Внесено: 500.00 [19:48:46]line СДАЧА: 0.00 [19:48:46]line НСП 1% : 4.43 [19:48:46]line НДС 12% : 53.14 [19:48:46]line Наличными: 500.00 [19:48:46]line Безнал.: 0.00 [19:48:46]line Место: АЗС № 173 "Партнер Нефть" [19:48:46]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:48:46]line СНО: Общий режим [19:48:46]line Чек 250 30.10.2024 19:48 [19:48:46]line Смена: 545 ФФД: 1.0 [19:48:46]line ЗНМ: 0300000115 [19:48:46]line РНМ: 0000000000091782 [19:48:46]line Версия ККМ: 001 [19:48:46]line ФМ: 0000000000871767 [19:48:46]line ФД: 118190 [19:48:46]line ФПД: 200012891357583 [19:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194845&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118190&fm=200012891357583&tin=02508201610067®Number=0000000000091782&sum=50000 [19:48:46]written 0, free lines is 4095 [19:48:46]OFD Sender: Processing packet 118190 [packets to send 77, broken 76] [19:48:46]ProducePacketName [19:48:46]name=ofd_packets/00118190 [19:48:46]OFD Sender: To server: pG, [19:48:46]CommunicateWithHost lk.salyk.kg:30040 [19:48:46]ConnectInit lk.salyk.kg [19:48:46]Connected sock=10 [19:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C8 1B 07 01 C0 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 9D 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AE CD 01 00 35 04 06 00 B5 E9 21 57 01 8F CC 2A 01 50 BA 8D 6D BD [19:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 DF 9A 47 00 A8 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 36 37 10 04 04 00 AE CD 01 00 F4 03 04 00 54 39 22 67 B6 04 01 00 00 94 B1 6E 6A 72 66 C3 E5 [19:48:46]CommunicateWithHost err = 0 [19:48:46]CheckOFDResponse [19:48:46]1017 (14) - 77093643461234 [19:48:46]1041 (16) - 0000000000871767 [19:48:46]1040 (4) - 118190 [19:48:46]1012 (4) - 30.10.2024 13:49 [19:48:46]1206 (1) - 0 [19:48:46]OFD Sender: Remove packet 118190 [19:48:46]ProducePacketName [19:48:46]name=ofd_packets/00118190 [19:48:46]NVStorageDeleteData [19:48:46]Write to MH i2c: 01 00 00 38 0E 46 [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: 01 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: 01 07 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: 01 07 00 38 0E 00 00 00 00 00 B9 0C 12 [19:48:46]RasterBufferAndPrint [19:48:46]line [19:48:46]line [19:48:46]line [19:48:46]line [19:48:46]line [19:48:46]written 0, free lines is 3263 [19:48:46]MH_Cut [19:48:46]Write to MH i2c: D1 01 00 3F 0E 01 1F [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: D1 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: D1 01 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: D1 01 00 3F 0E 00 1E [19:48:46]Write to MH i2c: 01 00 00 40 0E 4E [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:47]OFD Sender: No OFD packet to send [19:48:47]*** Cut start [19:48:47]*** Purtial cut [19:48:47]*** Stage 1: CUTSNS_PIN = 1 [19:48:47]Read from MH i2c: 01 [19:48:47]MH_I2C_Read... [19:48:47]*** Stop cut motor [19:48:47]*** Cut end [19:48:47]Read from MH i2c: 01 07 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [19:48:47]process_action close_receipt done [19:48:47]requested_data is exist [19:48:47]produce_requested_data [19:48:47]requested_item fm.sn is exist - process it [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 11 00 00 [19:48:47]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 17 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 20 [19:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:48:47]wFMCommunicate OK [19:48:47]requested_item fd.num is exist - process it [19:48:47]SAM_PROTO_GetFieldsCounters [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 13 00 00 [19:48:47]Write to MH i2c: E2 08 00 42 0E 80 13 00 00 00 00 00 00 CC [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 62 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 62 00 42 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AE CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [19:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AE CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:48]wFMCommunicate OK [19:48:48]SAM_PROTO_GetFieldsCounters done [19:48:48]requested_item shift.num is exist - process it [19:48:48]requested_item shift.opened is exist - process it [19:48:48]req_shift_opened [19:48:48]FM_GetShiftState [19:48:48]SAM_PROTO_GetShiftState [19:48:48]wFMCommunicate request_size=4 [19:48:48]MH_SAM_APDU [19:48:48]CAPDU: 80 13 01 00 [19:48:48]Write to MH i2c: E2 08 00 43 0E 80 13 01 00 00 00 00 00 CE [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 0E 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 0E 00 43 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A6 [19:48:48]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:48:48]wFMCommunicate OK [19:48:48]SAM_PROTO_GetShiftState done [19:48:48]FM_GetShiftState done [19:48:48]req_shift_opened done [19:48:48]requested_item shift.open_date is exist - process it [19:48:48]req_shift_open_date [19:48:48]req_shift_open_date done [19:48:48]produce_requested_data done [19:48:48]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118190,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:48:48]process_action_free close_receipt [19:48:48]json_value_free [19:48:48]json_value_free done [19:48:48]process_json_proto returns [19:48:48]Send response to host [19:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118190,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:48:48]free response buf [19:48:48]execute_script done [19:48:48]execute_script returns [19:48:48]free content buf [19:48:48]Sock 9.Close socket [19:48:48]Sock 9.Thread stoped [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:51]accept exits with 7 [19:49:51]New connection [19:49:51]New thread 3067133284 created [19:49:51]Thread 3067276644 joined [19:49:51]Waiting for new connection... [19:49:51] Sock 7.Parse request [19:49:51]Sock 7.Check first char [19:49:51]Sock 7.First char is OK [19:49:51]request: POST /json_proto HTTP/1.0 [19:49:51]Method: POST [19:49:51]URL: /json_proto [19:49:51]Method is POST - this is cgi request [19:49:51]url: /json_proto [19:49:51]query_string will be loaded in cgi processing [19:49:51]execute_cgi json_proto POST (null) [19:49:51]execute_cgi path=json_proto method=POST [19:49:51]POST find Content-Length [19:49:51]Host: 172.17.96.67:8080 [19:49:51]Content-Length: 677 [19:49:51]Content-Type: application/json [19:49:51] [19:49:51]POST finish read [19:49:51]Found Content-Length = 677 [19:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:51]execute_script... [19:49: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)245991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:51]POST & json_proto [19:49:51]process_json_proto [19:49:51]json parsed OK: [19:49:51]protocol is kg_v1.0 [19:49:51]action value=close_receipt [19:49:51]process_action close_receipt [19:49:51]cmd_close_receipt [19:49:51]MH_GetDate [19:49:51]Write to MH i2c: F0 00 00 44 0E 41 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: F0 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: F0 09 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: F0 09 00 44 0E 00 DF 8D 22 67 47 6C 1F 67 78 [19:49:51]GetLastDocTimeStamp 1730317725 [19:49:51]current date 1730317791 [19:49:51]FM_GetShiftState [19:49:51]SAM_PROTO_GetShiftState [19:49:51]wFMCommunicate request_size=4 [19:49:51]MH_SAM_APDU [19:49:51]CAPDU: 80 13 01 00 [19:49:51]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:51]Read from MH i2c: E2 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 0E 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A8 [19:49:51]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:49:51]wFMCommunicate OK [19:49:51]SAM_PROTO_GetShiftState done [19:49:51]FM_GetShiftState done [19:49:51]opened in 1730246605 [19:49:51]opened+sec_in_day 1730333005 [19:49:51]quantity*price = 14049 [19:49:51]sum+1 = 14050 [19:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 200.00 СДАЧА: 60.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 251 30.10.2024 19:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118191 ФПД: 16514620874977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194952&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118191&fm=16514620874977&tin=02508201610067®Number=0000000000091782&sum=14000 [19:49:52]StoreToDocumentArchive [19:49:52]shift 545 fd 118191 [19:49:52]save to /storage/0545/doc_00118191 [19:49:52]save last doc name /storage/0545/doc_00118191 to /storage/kkm_last_doc_name [19:49:52]save OK [19:49:52]Clear old archive folders... [19:49:52]OFD Sender: No OFD packet to send [19:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:52]tlvbuf is 0023F380 [19:49:52]SAM_PROTO_ClearQueue [19:49:52]wFMCommunicate request_size=4 [19:49:52]MH_SAM_APDU [19:49:52]CAPDU: 80 09 00 00 [19:49:52]Write to MH i2c: E2 08 00 52 0E 80 09 00 00 00 00 00 00 D2 [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:52]Read from MH i2c: E2 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [19:49:52]RAPDU: 90 00 [19:49:52]wFMCommunicate OK [19:49:52]SAM_PROTO_ClearQueue done [19:49:52]KKMCreateOFDPacket [19:49:52]OFDProtocolAddRootSTLVToBuf [19:49:52]FM_MakeSignedData [19:49:52]FM_MakeSignedData [19:49:52]SAM_PROTO_SignData [19:49:52]wFMCommunicate request_size=4 [19:49:52]MH_SAM_APDU [19:49:52]CAPDU: 80 0D 01 02 [19:49:52]Write to MH i2c: E2 08 00 53 0E 80 0D 01 02 00 00 00 00 DA [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:52]Read from MH i2c: E2 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [19:49:52]RAPDU: 90 00 [19:49:52]wFMCommunicate OK [19:49:52]wFMCommunicate request_size=255 [19:49:52]MH_SAM_APDU [19:49: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 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E0 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CD 01 00 35 04 06 00 0F [19:49:52]Write to MH i2c: E2 02 01 54 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E0 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CD 01 00 35 04 06 00 0F 00 00 37 [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:52]Read from MH i2c: E2 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [19:49:52]RAPDU: 90 00 [19:49:52]wFMCommunicate OK [19:49:52]wFMCommunicate request_size=10 [19:49:52]MH_SAM_APDU [19:49:52]CAPDU: 80 0D 02 02 05 05 1C 1C 60 E1 [19:49:52]Write to MH i2c: E2 0D 00 55 0E 80 0D 02 02 05 00 05 1C 1C 60 E1 00 00 65 [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:52]Read from MH i2c: E2 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [19:49:52]RAPDU: 90 00 [19:49:52]wFMCommunicate OK [19:49:52]wFMCommunicate request_size=4 [19:49:52]MH_SAM_APDU [19:49:52]CAPDU: 80 0D 03 02 [19:49:52]Write to MH i2c: E2 08 00 56 0E 80 0D 03 02 00 00 00 00 DF [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:52]Read from MH i2c: E2 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 0B 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 0B 00 56 0E 00 62 9C 00 82 28 51 1E 96 90 00 8D [19:49:52]RAPDU: 62 9C 00 82 28 51 1E 96 90 00 [19:49:52]wFMCommunicate OK [19:49:52]SAM_PROTO_SignData done [19:49:52]FM_MakeSignedData done [19:49:52]CreateOFDProtocolMessage [19:49:52]wFMCommunicate request_size=4 [19:49:52]MH_SAM_APDU [19:49:52]CAPDU: 80 11 00 00 [19:49:52]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:52]Read from MH i2c: E2 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 17 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: E2 17 00 57 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 36 [19:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:49:52]wFMCommunicate OK [19:49:52]CreateOFDProtocolMessage done [19:49:52]OFDSenderStorePacket 118191 [19:49:52]StoreOFDPacket docnum=118191 [19:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D8 E0 07 01 DA AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E0 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CD 01 00 35 04 06 00 0F 05 1C 1C 60 E1 62 9C 00 82 28 51 1E 96 [19:49:52]CheckFolder [19:49:52]dirname=/storage/ofd_packets [19:49:52]CheckFolder done [19:49:52]ProducePacketName [19:49:52]name=ofd_packets/00118191 [19:49:52]NVStorageSaveData ofd_packets/00118191 [19:49:52]File name is /storage/ofd_packets/00118191 [19:49:52]Write 301 bytes [19:49:52]NVStorageSaveData done [19:49:52]OFDSenderStorePacket done [19:49:52]KKMCreateOFDPacket done [19:49:52]NVStorageSaveData kkm_last_timestamp [19:49:52]File name is /storage/kkm_last_timestamp [19:49:52]Write 4 bytes [19:49:52]NVStorageSaveData done [19:49:52]ExternCall_PrintAddStr [19:49:52]wPrintStart [19:49:52]Write to MH i2c: 01 00 00 58 0E 66 [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: 01 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: 01 07 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [19:49:52]RasterBufferAndPrint [19:49:52]line Счет N : (1)245991 [19:49:52]line ИНН: 02508201610067 [19:49:52]line Контрольно-Кассовый Чек [19:49:52]line ПРОДАЖА [19:49:52]line ТРК (МРК, ГНК) : 11 [19:49:52]line Товар: 2710124130 [19:49:52]line Аи-92-К-2 [19:49:52]line 2.100 * 66.90 [19:49:52]line = 140.49 [19:49:52]line НДС 12% НСП 1% [19:49:52]line > о реализуемом товаре [19:49:52]line ОКРУГЛЕНИЕ: -0.49 [19:49:52]line ИТОГО: 140.00 [19:49:52]line Внесено: 200.00 [19:49:52]line СДАЧА: 60.00 [19:49:52]line НСП 1% : 1.24 [19:49:52]line НДС 12% : 14.92 [19:49:52]line Наличными: 140.00 [19:49:52]line Безнал.: 0.00 [19:49:52]line Место: АЗС № 173 "Партнер Нефть" [19:49:52]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:49:52]line СНО: Общий режим [19:49:52]line Чек 251 30.10.2024 19:49 [19:49:52]line Смена: 545 ФФД: 1.0 [19:49:52]line ЗНМ: 0300000115 [19:49:52]line РНМ: 0000000000091782 [19:49:52]line Версия ККМ: 001 [19:49:52]line ФМ: 0000000000871767 [19:49:52]line ФД: 118191 [19:49:52]line ФПД: 16514620874977 [19:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194952&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118191&fm=16514620874977&tin=02508201610067®Number=0000000000091782&sum=14000 [19:49:53]OFD Sender: Processing packet 118191 [packets to send 77, broken 76] [19:49:53]ProducePacketName [19:49:53]name=ofd_packets/00118191 [19:49:53]OFD Sender: To server: pG, [19:49:53]CommunicateWithHost lk.salyk.kg:30040 [19:49:53]ConnectInit lk.salyk.kg [19:49:53]written 0, free lines is 4095 [19:49:53]Connected sock=10 [19:49: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 36 37 0F 01 00 00 D8 E0 07 01 DA AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E0 8D 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 AF CD 01 00 35 04 06 00 0F 05 1C 1C 60 E1 62 9C 00 82 28 51 1E 96 [19: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 36 37 4F 00 00 00 BB 76 47 00 1C 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 36 37 10 04 04 00 AF CD 01 00 F4 03 04 00 96 39 22 67 B6 04 01 00 00 CF FC 0F F7 D5 17 1F E1 [19:49:53]CommunicateWithHost err = 0 [19:49:53]CheckOFDResponse [19:49:53]1017 (14) - 77093643461234 [19:49:53]1041 (16) - 0000000000871767 [19:49:53]1040 (4) - 118191 [19:49:53]1012 (4) - 30.10.2024 13:50 [19:49:53]1206 (1) - 0 [19:49:53]OFD Sender: Remove packet 118191 [19:49:53]ProducePacketName [19:49:53]name=ofd_packets/00118191 [19:49:53]NVStorageDeleteData [19:49:53]Write to MH i2c: 01 00 00 82 0E 90 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: 01 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: 01 07 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 B6 0C 59 [19:49:53]RasterBufferAndPrint [19:49:53]line [19:49:53]line [19:49:53]line [19:49:53]line [19:49:53]line [19:49:53]written 0, free lines is 3262 [19:49:53]MH_Cut [19:49:53]Write to MH i2c: D1 01 00 89 0E 01 69 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: D1 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: D1 01 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: D1 01 00 89 0E 00 68 [19:49:53]Write to MH i2c: 01 00 00 8A 0E 98 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]OFD Sender: No OFD packet to send [19:49:54]*** Cut start [19:49:54]*** Purtial cut [19:49:54]*** Stage 1: CUTSNS_PIN = 1 [19:49:54]Read from MH i2c: 01 [19:49:54]MH_I2C_Read... [19:49:54]*** Stop cut motor [19:49:54]*** Cut end [19:49:54]Read from MH i2c: 01 07 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: 01 07 00 8A 0E 00 00 00 00 00 FF 0F AD [19:49:54]process_action close_receipt done [19:49:54]requested_data is exist [19:49:54]produce_requested_data [19:49:54]requested_item fm.sn is exist - process it [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 11 00 00 [19:49:54]Write to MH i2c: E2 08 00 8B 0E 80 11 00 00 00 00 00 00 13 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 17 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 17 00 8B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 6A [19:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:49:54]wFMCommunicate OK [19:49:54]requested_item fd.num is exist - process it [19:49:54]SAM_PROTO_GetFieldsCounters [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 13 00 00 [19:49:54]Write to MH i2c: E2 08 00 8C 0E 80 13 00 00 00 00 00 00 16 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 62 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 62 00 8C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AF CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [19: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 AF CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:54]wFMCommunicate OK [19:49:54]SAM_PROTO_GetFieldsCounters done [19:49:54]requested_item shift.num is exist - process it [19:49:54]requested_item shift.opened is exist - process it [19:49:54]req_shift_opened [19:49:54]FM_GetShiftState [19:49:54]SAM_PROTO_GetShiftState [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 13 01 00 [19:49:54]Write to MH i2c: E2 08 00 8D 0E 80 13 01 00 00 00 00 00 18 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 0E 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 0E 00 8D 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F0 [19:49:54]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:49:54]wFMCommunicate OK [19:49:54]SAM_PROTO_GetShiftState done [19:49:54]FM_GetShiftState done [19:49:54]req_shift_opened done [19:49:54]requested_item shift.open_date is exist - process it [19:49:54]req_shift_open_date [19:49:54]req_shift_open_date done [19:49:54]produce_requested_data done [19:49:54]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118191,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:49:54]process_action_free close_receipt [19:49:54]json_value_free [19:49:54]json_value_free done [19:49:54]process_json_proto returns [19:49:54]Send response to host [19:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118191,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:49:54]free response buf [19:49:54]execute_script done [19:49:54]execute_script returns [19:49:54]free content buf [19:49:54]Sock 7.Close socket [19:49:54]Sock 7.Thread stoped [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:38]accept exits with 9 [19:51:38]New connection [19:51:38]New thread 3067276644 created [19:51:38]Thread 3067133284 joined [19:51:38]Waiting for new connection... [19:51:38] Sock 9.Parse request [19:51:38]Sock 9.Check first char [19:51:38]Sock 9.First char is OK [19:51:38]request: POST /json_proto HTTP/1.0 [19:51:38]Method: POST [19:51:38]URL: /json_proto [19:51:38]Method is POST - this is cgi request [19:51:38]url: /json_proto [19:51:38]query_string will be loaded in cgi processing [19:51:38]execute_cgi json_proto POST (null) [19:51:38]execute_cgi path=json_proto method=POST [19:51:38]POST find Content-Length [19:51:38]Host: 172.17.96.67:8080 [19:51:38]Content-Length: 677 [19:51:38]Content-Type: application/json [19:51:38] [19:51:38]POST finish read [19:51:38]Found Content-Length = 677 [19:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:38]execute_script... [19:51: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)245993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:38]POST & json_proto [19:51:38]process_json_proto [19:51:38]json parsed OK: [19:51:38]protocol is kg_v1.0 [19:51:38]action value=close_receipt [19:51:38]process_action close_receipt [19:51:38]cmd_close_receipt [19:51:38]MH_GetDate [19:51:38]Write to MH i2c: F0 00 00 8E 0E 8B [19:51:38]Write i2c OK [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: F0 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: F0 09 00 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: F0 09 00 8E 0E 00 4B 8E 22 67 47 6C 1F 67 2F [19:51:38]GetLastDocTimeStamp 1730317792 [19:51:38]current date 1730317899 [19:51:38]FM_GetShiftState [19:51:38]SAM_PROTO_GetShiftState [19:51:38]wFMCommunicate request_size=4 [19:51:38]MH_SAM_APDU [19:51:38]CAPDU: 80 13 01 00 [19:51:38]Write to MH i2c: E2 08 00 8F 0E 80 13 01 00 00 00 00 00 1A [19:51:38]Write i2c OK [19:51:38]MH_I2C_Read... [19:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:38]Read from MH i2c: E2 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: E2 0E 00 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: E2 0E 00 8F 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 F2 [19:51:38]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:51:38]wFMCommunicate OK [19:51:38]SAM_PROTO_GetShiftState done [19:51:38]FM_GetShiftState done [19:51:38]opened in 1730246605 [19:51:38]opened+sec_in_day 1730333005 [19:51:38]quantity*price = 22010 [19:51:38]sum+1 = 22011 [19:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 252 30.10.2024 19:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118192 ФПД: 103375487340019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T195139&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118192&fm=103375487340019&tin=02508201610067®Number=0000000000091782&sum=22000 [19:51:39]StoreToDocumentArchive [19:51:39]shift 545 fd 118192 [19:51:39]save to /storage/0545/doc_00118192 [19:51:39]save last doc name /storage/0545/doc_00118192 to /storage/kkm_last_doc_name [19:51:39]save OK [19:51:39]Clear old archive folders... [19:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:39]tlvbuf is 001AEAD0 [19:51:39]SAM_PROTO_ClearQueue [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 09 00 00 [19:51:39]Write to MH i2c: E2 08 00 9C 0E 80 09 00 00 00 00 00 00 1C [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 03 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [19:51:39]RAPDU: 90 00 [19:51:39]wFMCommunicate OK [19:51:39]SAM_PROTO_ClearQueue done [19:51:39]KKMCreateOFDPacket [19:51:39]OFDProtocolAddRootSTLVToBuf [19:51:39]FM_MakeSignedData [19:51:39]FM_MakeSignedData [19:51:39]SAM_PROTO_SignData [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 0D 01 02 [19:51:39]Write to MH i2c: E2 08 00 9D 0E 80 0D 01 02 00 00 00 00 24 [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 03 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [19:51:39]RAPDU: 90 00 [19:51:39]wFMCommunicate OK [19:51:39]wFMCommunicate request_size=255 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 4B 8E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CD 01 00 35 04 06 00 5E [19:51:39]Write to MH i2c: E2 02 01 9E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 4B 8E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CD 01 00 35 04 06 00 5E 00 00 76 [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:40]Read from MH i2c: E2 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 03 00 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [19:51:40]RAPDU: 90 00 [19:51:40]wFMCommunicate OK [19:51:40]wFMCommunicate request_size=10 [19:51:40]MH_SAM_APDU [19:51:40]CAPDU: 80 0D 02 02 05 04 FB 33 8D F3 [19:51:40]Write to MH i2c: E2 0D 00 9F 0E 80 0D 02 02 05 00 04 FB 33 8D F3 00 00 E3 [19:51:40]Write i2c OK [19:51:40]MH_I2C_Read... [19:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:40]Read from MH i2c: E2 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 03 00 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [19:51:40]RAPDU: 90 00 [19:51:40]wFMCommunicate OK [19:51:40]wFMCommunicate request_size=4 [19:51:40]MH_SAM_APDU [19:51:40]CAPDU: 80 0D 03 02 [19:51:40]Write to MH i2c: E2 08 00 A0 0E 80 0D 03 02 00 00 00 00 29 [19:51:40]Write i2c OK [19:51:40]MH_I2C_Read... [19:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:40]Read from MH i2c: E2 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 0B 00 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 0B 00 A0 0E 00 67 21 A4 02 1C DE B6 6D 90 00 75 [19:51:40]RAPDU: 67 21 A4 02 1C DE B6 6D 90 00 [19:51:40]wFMCommunicate OK [19:51:40]SAM_PROTO_SignData done [19:51:40]FM_MakeSignedData done [19:51:40]CreateOFDProtocolMessage [19:51:40]wFMCommunicate request_size=4 [19:51:40]MH_SAM_APDU [19:51:40]CAPDU: 80 11 00 00 [19:51:40]Write to MH i2c: E2 08 00 A1 0E 80 11 00 00 00 00 00 00 29 [19:51:40]Write i2c OK [19:51:40]MH_I2C_Read... [19:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:40]Read from MH i2c: E2 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 17 00 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 17 00 A1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 80 [19:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:51:40]wFMCommunicate OK [19:51:40]CreateOFDProtocolMessage done [19:51:40]OFDSenderStorePacket 118192 [19:51:40]StoreOFDPacket docnum=118192 [19:51:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 21 38 07 01 2E 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 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 4B 8E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CD 01 00 35 04 06 00 5E 04 FB 33 8D F3 67 21 A4 02 1C DE B6 6D [19:51:40]CheckFolder [19:51:40]dirname=/storage/ofd_packets [19:51:40]CheckFolder done [19:51:40]ProducePacketName [19:51:40]name=ofd_packets/00118192 [19:51:40]NVStorageSaveData ofd_packets/00118192 [19:51:40]File name is /storage/ofd_packets/00118192 [19:51:40]Write 301 bytes [19:51:40]NVStorageSaveData done [19:51:40]OFDSenderStorePacket done [19:51:40]KKMCreateOFDPacket done [19:51:40]NVStorageSaveData kkm_last_timestamp [19:51:40]File name is /storage/kkm_last_timestamp [19:51:40]Write 4 bytes [19:51:40]NVStorageSaveData done [19:51:40]ExternCall_PrintAddStr [19:51:40]wPrintStart [19:51:40]Write to MH i2c: 01 00 00 A2 0E B0 [19:51:40]Write i2c OK [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: 01 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: 01 07 00 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: 01 07 00 A2 0E 00 00 00 00 00 FF 0F C5 [19:51:40]RasterBufferAndPrint [19:51:40]line Счет N : (1)245993 [19:51:40]line ИНН: 02508201610067 [19:51:40]line Контрольно-Кассовый Чек [19:51:40]line ПРОДАЖА [19:51:40]line ТРК (МРК, ГНК) : 11 [19:51:40]line Товар: 2710124130 [19:51:40]line Аи-92-К-2 [19:51:40]line 3.290 * 66.90 [19:51:40]line = 220.10 [19:51:40]line НДС 12% НСП 1% [19:51:40]line > о реализуемом товаре [19:51:40]line ОКРУГЛЕНИЕ: -0.10 [19:51:40]line ИТОГО: 220.00 [19:51:40]line Внесено: 220.00 [19:51:40]line СДАЧА: 0.00 [19:51:40]line НСП 1% : 1.95 [19:51:40]line НДС 12% : 23.37 [19:51:40]line Наличными: 220.00 [19:51:40]line Безнал.: 0.00 [19:51:40]line Место: АЗС № 173 "Партнер Нефть" [19:51:40]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [19:51:40]line СНО: Общий режим [19:51:40]line Чек 252 30.10.2024 19:51 [19:51:40]line Смена: 545 ФФД: 1.0 [19:51:40]line ЗНМ: 0300000115 [19:51:40]line РНМ: 0000000000091782 [19:51:40]line Версия ККМ: 001 [19:51:40]line ФМ: 0000000000871767 [19:51:40]line ФД: 118192 [19:51:40]line ФПД: 103375487340019 [19:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T195139&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118192&fm=103375487340019&tin=02508201610067®Number=0000000000091782&sum=22000 [19:51:40]written 0, free lines is 4095 [19:51:40]OFD Sender: Processing packet 118192 [packets to send 77, broken 76] [19:51:40]ProducePacketName [19:51:40]name=ofd_packets/00118192 [19:51:40]OFD Sender: To server: pG, [19:51:40]CommunicateWithHost lk.salyk.kg:30040 [19:51:40]ConnectInit lk.salyk.kg [19:51:40]Connected sock=11 [19:51: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 36 37 0F 01 00 00 21 38 07 01 2E 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 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 4B 8E 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B0 CD 01 00 35 04 06 00 5E 04 FB 33 8D F3 67 21 A4 02 1C DE B6 6D [19:51: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 36 37 4F 00 00 00 12 FE 47 00 D3 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 36 37 10 04 04 00 B0 CD 01 00 F4 03 04 00 02 3A 22 67 B6 04 01 00 00 4A EA D7 67 24 0B 46 06 [19:51:40]CommunicateWithHost err = 0 [19:51:40]CheckOFDResponse [19:51:40]1017 (14) - 77093643461234 [19:51:40]1041 (16) - 0000000000871767 [19:51:40]1040 (4) - 118192 [19:51:40]1012 (4) - 30.10.2024 13:52 [19:51:40]1206 (1) - 0 [19:51:40]OFD Sender: Remove packet 118192 [19:51:40]ProducePacketName [19:51:40]name=ofd_packets/00118192 [19:51:40]NVStorageDeleteData [19:51:41]Write to MH i2c: 01 00 00 CC 0E DA [19:51:41]Write i2c OK [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: 01 [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: 01 07 00 [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 BE 0C AB [19:51:41]RasterBufferAndPrint [19:51:41]line [19:51:41]line [19:51:41]line [19:51:41]line [19:51:41]line [19:51:41]written 0, free lines is 3268 [19:51:41]MH_Cut [19:51:41]Write to MH i2c: D1 01 00 D3 0E 01 B3 [19:51:41]Write i2c OK [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: D1 [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: D1 01 00 [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: D1 01 00 D3 0E 00 B2 [19:51:41]Write to MH i2c: 01 00 00 D4 0E E2 [19:51:41]Write i2c OK [19:51:41]MH_I2C_Read... [19:51:41]OFD Sender: No OFD packet to send [19:51:41]*** Cut start [19:51:41]*** Purtial cut [19:51:41]*** Stage 1: CUTSNS_PIN = 1 [19:51:42]Read from MH i2c: 01 [19:51:42]MH_I2C_Read... [19:51:42]*** Stop cut motor [19:51:42]*** Cut end [19:51:42]Read from MH i2c: 01 07 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 FF 0F F7 [19:51:42]process_action close_receipt done [19:51:42]requested_data is exist [19:51:42]produce_requested_data [19:51:42]requested_item fm.sn is exist - process it [19:51:42]wFMCommunicate request_size=4 [19:51:42]MH_SAM_APDU [19:51:42]CAPDU: 80 11 00 00 [19:51:42]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 17 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B4 [19:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [19:51:42]wFMCommunicate OK [19:51:42]requested_item fd.num is exist - process it [19:51:42]SAM_PROTO_GetFieldsCounters [19:51:42]wFMCommunicate request_size=4 [19:51:42]MH_SAM_APDU [19:51:42]CAPDU: 80 13 00 00 [19:51:42]Write to MH i2c: E2 08 00 D6 0E 80 13 00 00 00 00 00 00 60 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 62 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 62 00 D6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B0 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [19:51: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B0 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:42]wFMCommunicate OK [19:51:42]SAM_PROTO_GetFieldsCounters done [19:51:42]requested_item shift.num is exist - process it [19:51:42]requested_item shift.opened is exist - process it [19:51:42]req_shift_opened [19:51:42]FM_GetShiftState [19:51:42]SAM_PROTO_GetShiftState [19:51:42]wFMCommunicate request_size=4 [19:51:42]MH_SAM_APDU [19:51:42]CAPDU: 80 13 01 00 [19:51:42]Write to MH i2c: E2 08 00 D7 0E 80 13 01 00 00 00 00 00 62 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 0E 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 0E 00 D7 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3A [19:51:42]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [19:51:42]wFMCommunicate OK [19:51:42]SAM_PROTO_GetShiftState done [19:51:42]FM_GetShiftState done [19:51:42]req_shift_opened done [19:51:42]requested_item shift.open_date is exist - process it [19:51:42]req_shift_open_date [19:51:42]req_shift_open_date done [19:51:42]produce_requested_data done [19:51:42]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118192,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [19:51:42]process_action_free close_receipt [19:51:42]json_value_free [19:51:42]json_value_free done [19:51:42]process_json_proto returns [19:51:42]Send response to host [19:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118192,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [19:51:42]free response buf [19:51:42]execute_script done [19:51:42]execute_script returns [19:51:42]free content buf [19:51:42]Sock 9.Close socket [19:51:42]Sock 9.Thread stoped [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:02]int [19:53:02]Write to MH i2c: 01 00 00 D8 0E E6 [19:53:02]*** FLAG_PRN_PAP1 set [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: 01 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: 01 07 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: 01 07 00 D8 0E 00 01 00 00 00 FF 0F FC [19:53:02]state=0 [19:53:02]No paper [19:53:03]int [19:53:03]Write to MH i2c: 01 00 00 D9 0E E7 [19:53:03]*** FLAG_PRN_PAP2 set [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 07 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 07 00 D9 0E 00 03 00 00 00 FF 0F FF [19:53:03]state=0 [19:53:03]No paper [19:53:03]Cover opened [19:53:06]OFD Sender: No OFD packet to send [19:53:06]int [19:53:06]Write to MH i2c: 01 00 00 DA 0E E8 [19:53:06]*** FLAG_PRN_PAP2 reset [19:53:06]Write i2c OK [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: 01 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: 01 07 00 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: 01 07 00 DA 0E 00 01 00 00 00 FF 0F FE [19:53:06]state=3 [19:53:06]No paper [19:53:06]Cover closed [19:53:06]int [19:53:06]Write to MH i2c: 01 00 00 DB 0E E9 [19:53:06]*** FLAG_PRN_PAP1 reset [19:53:06]Write i2c OK [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: 01 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: 01 07 00 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 FF 0F FE [19:53:06]state=0 [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]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:26]OFD Sender: No OFD packet to send [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: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:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]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:04]accept exits with 7 [20:10:04]New connection [20:10:04]New thread 3067133284 created [20:10:04]Thread 3067276644 joined [20:10:04]Waiting for new connection... [20:10:04] Sock 7.Parse request [20:10:04]Sock 7.Check first char [20:10:04]Sock 7.First char is OK [20:10:04]request: POST /json_proto HTTP/1.0 [20:10:04]Method: POST [20:10:04]URL: /json_proto [20:10:04]Method is POST - this is cgi request [20:10:04]url: /json_proto [20:10:04]query_string will be loaded in cgi processing [20:10:04]execute_cgi json_proto POST (null) [20:10:04]execute_cgi path=json_proto method=POST [20:10:04]POST find Content-Length [20:10:04]Host: 172.17.96.67:8080 [20:10:04]Content-Length: 677 [20:10:04]Content-Type: application/json [20:10:04] [20:10:04]POST finish read [20:10:04]Found Content-Length = 677 [20:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:04]execute_script... [20:10:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:04]POST & json_proto [20:10:04]process_json_proto [20:10:04]json parsed OK: [20:10:04]protocol is kg_v1.0 [20:10:04]action value=close_receipt [20:10:04]process_action close_receipt [20:10:04]cmd_close_receipt [20:10:04]MH_GetDate [20:10:04]Write to MH i2c: F0 00 00 DC 0E D9 [20:10:04]Write i2c OK [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: F0 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: F0 09 00 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: F0 09 00 DC 0E 00 9D 92 22 67 47 6C 1F 67 D3 [20:10:04]GetLastDocTimeStamp 1730317899 [20:10:04]current date 1730319005 [20:10:04]FM_GetShiftState [20:10:04]SAM_PROTO_GetShiftState [20:10:04]wFMCommunicate request_size=4 [20:10:04]MH_SAM_APDU [20:10:04]CAPDU: 80 13 01 00 [20:10:04]Write to MH i2c: E2 08 00 DD 0E 80 13 01 00 00 00 00 00 68 [20:10:04]Write i2c OK [20:10:04]MH_I2C_Read... [20:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:04]Read from MH i2c: E2 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: E2 0E 00 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: E2 0E 00 DD 0E 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 40 [20:10:04]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:10:04]wFMCommunicate OK [20:10:04]SAM_PROTO_GetShiftState done [20:10:04]FM_GetShiftState done [20:10:04]opened in 1730246605 [20:10:04]opened+sec_in_day 1730333005 [20:10:04]quantity*price = 50041 [20:10:04]sum+1 = 50042 [20:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 253 30.10.2024 20:10 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118193 ФПД: 244389949795312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201005&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118193&fm=244389949795312&tin=02508201610067®Number=0000000000091782&sum=50000 [20:10:05]StoreToDocumentArchive [20:10:05]shift 545 fd 118193 [20:10:05]save to /storage/0545/doc_00118193 [20:10:05]save last doc name /storage/0545/doc_00118193 to /storage/kkm_last_doc_name [20:10:05]save OK [20:10:05]Clear old archive folders... [20:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:05]tlvbuf is 0023F2D0 [20:10:05]SAM_PROTO_ClearQueue [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 09 00 00 [20:10:05]Write to MH i2c: E2 08 00 EA 0E 80 09 00 00 00 00 00 00 6A [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 EA 0E 00 90 00 6C [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]SAM_PROTO_ClearQueue done [20:10:05]KKMCreateOFDPacket [20:10:05]OFDProtocolAddRootSTLVToBuf [20:10:05]FM_MakeSignedData [20:10:05]FM_MakeSignedData [20:10:05]SAM_PROTO_SignData [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 0D 01 02 [20:10:05]Write to MH i2c: E2 08 00 EB 0E 80 0D 01 02 00 00 00 00 72 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 EB 0E 00 90 00 6D [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]wFMCommunicate request_size=255 [20:10:05]MH_SAM_APDU [20:10: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 32 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 FD 00 00 00 F4 03 04 00 9D 92 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CD 01 00 35 04 06 00 DE [20:10:05]Write to MH i2c: E2 02 01 EC 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FD 00 00 00 F4 03 04 00 9D 92 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CD 01 00 35 04 06 00 DE 00 00 39 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 EC 0E 00 90 00 6E [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]wFMCommunicate request_size=10 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 0D 02 02 05 45 78 24 EB F0 [20:10:05]Write to MH i2c: E2 0D 00 ED 0E 80 0D 02 02 05 00 45 78 24 EB F0 00 00 3B [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 ED 0E 00 90 00 6F [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 0D 03 02 [20:10:05]Write to MH i2c: E2 08 00 EE 0E 80 0D 03 02 00 00 00 00 77 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 0B 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 0B 00 EE 0E 00 B3 4A A3 6E 45 3C 90 BB 90 00 52 [20:10:05]RAPDU: B3 4A A3 6E 45 3C 90 BB 90 00 [20:10:05]wFMCommunicate OK [20:10:05]SAM_PROTO_SignData done [20:10:05]FM_MakeSignedData done [20:10:05]CreateOFDProtocolMessage [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 11 00 00 [20:10:05]Write to MH i2c: E2 08 00 EF 0E 80 11 00 00 00 00 00 00 77 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 17 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 17 00 EF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CE [20:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:10:05]wFMCommunicate OK [20:10:05]CreateOFDProtocolMessage done [20:10:05]OFDSenderStorePacket 118193 [20:10:05]StoreOFDPacket docnum=118193 [20:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 B5 96 07 01 1D 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FD 00 00 00 F4 03 04 00 9D 92 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CD 01 00 35 04 06 00 DE 45 78 24 EB F0 B3 4A A3 6E 45 3C 90 BB [20:10:05]CheckFolder [20:10:05]dirname=/storage/ofd_packets [20:10:05]CheckFolder done [20:10:05]ProducePacketName [20:10:05]name=ofd_packets/00118193 [20:10:05]NVStorageSaveData ofd_packets/00118193 [20:10:05]File name is /storage/ofd_packets/00118193 [20:10:05]Write 301 bytes [20:10:05]NVStorageSaveData done [20:10:05]OFDSenderStorePacket done [20:10:05]KKMCreateOFDPacket done [20:10:05]NVStorageSaveData kkm_last_timestamp [20:10:05]File name is /storage/kkm_last_timestamp [20:10:05]Write 4 bytes [20:10:05]NVStorageSaveData done [20:10:05]ExternCall_PrintAddStr [20:10:05]wPrintStart [20:10:05]Write to MH i2c: 01 00 00 F0 0E FE [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 07 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 FF 0F 13 [20:10:05]RasterBufferAndPrint [20:10:05]line Счет N : (1)245994 [20:10:05]line ИНН: 02508201610067 [20:10:05]line Контрольно-Кассовый Чек [20:10:05]line ПРОДАЖА [20:10:05]line ТРК (МРК, ГНК) : 21 [20:10:05]line Товар: 2710124130 [20:10:05]line Аи-92-К-2 [20:10:05]line 7.480 * 66.90 [20:10:05]line = 500.41 [20:10:05]line НДС 12% НСП 1% [20:10:05]line > о реализуемом товаре [20:10:05]line ОКРУГЛЕНИЕ: -0.41 [20:10:05]line ИТОГО: 500.00 [20:10:05]line Внесено: 500.00 [20:10:05]line СДАЧА: 0.00 [20:10:05]line НСП 1% : 4.43 [20:10:05]line НДС 12% : 53.14 [20:10:05]line Наличными: 500.00 [20:10:05]line Безнал.: 0.00 [20:10:05]line Место: АЗС № 173 "Партнер Нефть" [20:10:05]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:10:05]line СНО: Общий режим [20:10:05]line Чек 253 30.10.2024 20:10 [20:10:05]line Смена: 545 ФФД: 1.0 [20:10:05]line ЗНМ: 0300000115 [20:10:05]line РНМ: 0000000000091782 [20:10:05]line Версия ККМ: 001 [20:10:05]line ФМ: 0000000000871767 [20:10:05]line ФД: 118193 [20:10:05]line ФПД: 244389949795312 [20:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201005&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118193&fm=244389949795312&tin=02508201610067®Number=0000000000091782&sum=50000 [20:10:06]written 0, free lines is 4095 [20:10:06]OFD Sender: Processing packet 118193 [packets to send 77, broken 76] [20:10:06]ProducePacketName [20:10:06]name=ofd_packets/00118193 [20:10:06]OFD Sender: To server: pG, [20:10:06]CommunicateWithHost lk.salyk.kg:30040 [20:10:06]ConnectInit lk.salyk.kg [20:10:06]Connected sock=10 [20:10: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 36 37 0F 01 00 00 B5 96 07 01 1D 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FD 00 00 00 F4 03 04 00 9D 92 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CD 01 00 35 04 06 00 DE 45 78 24 EB F0 B3 4A A3 6E 45 3C 90 BB [20:10: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 36 37 4F 00 00 00 F1 E1 47 00 6E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B1 CD 01 00 F4 03 04 00 53 3E 22 67 B6 04 01 00 00 DC FA 51 0B 6E 78 D6 6B [20:10:06]CommunicateWithHost err = 0 [20:10:06]CheckOFDResponse [20:10:06]1017 (14) - 77093643461234 [20:10:06]1041 (16) - 0000000000871767 [20:10:06]1040 (4) - 118193 [20:10:06]1012 (4) - 30.10.2024 14:10 [20:10:06]1206 (1) - 0 [20:10:06]OFD Sender: Remove packet 118193 [20:10:06]ProducePacketName [20:10:06]name=ofd_packets/00118193 [20:10:06]NVStorageDeleteData [20:10:06]Write to MH i2c: 01 00 00 1A 0F 29 [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: 01 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: 01 07 00 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: 01 07 00 1A 0F 00 00 00 00 00 B8 0C F4 [20:10:06]RasterBufferAndPrint [20:10:06]line [20:10:06]line [20:10:06]line [20:10:06]line [20:10:06]line [20:10:06]written 0, free lines is 3262 [20:10:06]MH_Cut [20:10:06]Write to MH i2c: D1 01 00 21 0F 01 02 [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: D1 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: D1 01 00 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: D1 01 00 21 0F 00 01 [20:10:06]Write to MH i2c: 01 00 00 22 0F 31 [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:06]OFD Sender: No OFD packet to send [20:10:07]*** Cut start [20:10:07]*** Purtial cut [20:10:07]*** Stage 1: CUTSNS_PIN = 1 [20:10:07]Read from MH i2c: 01 [20:10:07]MH_I2C_Read... [20:10:07]*** Stop cut motor [20:10:07]*** Cut end [20:10:07]Read from MH i2c: 01 07 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: 01 07 00 22 0F 00 00 00 00 00 FF 0F 46 [20:10:07]process_action close_receipt done [20:10:07]requested_data is exist [20:10:07]produce_requested_data [20:10:07]requested_item fm.sn is exist - process it [20:10:07]wFMCommunicate request_size=4 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 11 00 00 [20:10:07]Write to MH i2c: E2 08 00 23 0F 80 11 00 00 00 00 00 00 AC [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 17 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 17 00 23 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 03 [20:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:10:07]wFMCommunicate OK [20:10:07]requested_item fd.num is exist - process it [20:10:07]SAM_PROTO_GetFieldsCounters [20:10:07]wFMCommunicate request_size=4 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 13 00 00 [20:10:07]Write to MH i2c: E2 08 00 24 0F 80 13 00 00 00 00 00 00 AF [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 62 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 62 00 24 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [20:10: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:07]wFMCommunicate OK [20:10:07]SAM_PROTO_GetFieldsCounters done [20:10:07]requested_item shift.num is exist - process it [20:10:07]requested_item shift.opened is exist - process it [20:10:07]req_shift_opened [20:10:07]FM_GetShiftState [20:10:07]SAM_PROTO_GetShiftState [20:10:07]wFMCommunicate request_size=4 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 13 01 00 [20:10:07]Write to MH i2c: E2 08 00 25 0F 80 13 01 00 00 00 00 00 B1 [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 0E 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 0E 00 25 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 89 [20:10:07]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:10:07]wFMCommunicate OK [20:10:07]SAM_PROTO_GetShiftState done [20:10:07]FM_GetShiftState done [20:10:07]req_shift_opened done [20:10:07]requested_item shift.open_date is exist - process it [20:10:07]req_shift_open_date [20:10:07]req_shift_open_date done [20:10:07]produce_requested_data done [20:10:07]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118193,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [20:10:07]process_action_free close_receipt [20:10:07]json_value_free [20:10:07]json_value_free done [20:10:07]process_json_proto returns [20:10:07]Send response to host [20:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118193,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [20:10:07]free response buf [20:10:07]execute_script done [20:10:07]execute_script returns [20:10:07]free content buf [20:10:07]Sock 7.Close socket [20:10:07]Sock 7.Thread stoped [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]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:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]accept exits with 9 [20:23:27]New connection [20:23:27]New thread 3067276644 created [20:23:27]Thread 3067133284 joined [20:23:27]Waiting for new connection... [20:23:27] Sock 9.Parse request [20:23:27]Sock 9.Check first char [20:23:27]Sock 9.First char is OK [20:23:27]request: POST /json_proto HTTP/1.0 [20:23:27]Method: POST [20:23:27]URL: /json_proto [20:23:27]Method is POST - this is cgi request [20:23:27]url: /json_proto [20:23:27]query_string will be loaded in cgi processing [20:23:27]execute_cgi json_proto POST (null) [20:23:27]execute_cgi path=json_proto method=POST [20:23:27]POST find Content-Length [20:23:27]Host: 172.17.96.67:8080 [20:23:27]Content-Length: 682 [20:23:27]Content-Type: application/json [20:23:27] [20:23:27]POST finish read [20:23:27]Found Content-Length = 682 [20:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:23:27]execute_script... [20:23:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:23:27]POST & json_proto [20:23:27]process_json_proto [20:23:27]json parsed OK: [20:23:27]protocol is kg_v1.0 [20:23:27]action value=close_receipt [20:23:27]process_action close_receipt [20:23:27]cmd_close_receipt [20:23:27]MH_GetDate [20:23:27]Write to MH i2c: F0 00 00 26 0F 24 [20:23:27]Write i2c OK [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: F0 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: F0 09 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: F0 09 00 26 0F 00 C0 95 22 67 47 6C 1F 67 44 [20:23:27]GetLastDocTimeStamp 1730319005 [20:23:27]current date 1730319808 [20:23:27]FM_GetShiftState [20:23:27]SAM_PROTO_GetShiftState [20:23:27]wFMCommunicate request_size=4 [20:23:27]MH_SAM_APDU [20:23:27]CAPDU: 80 13 01 00 [20:23:27]Write to MH i2c: E2 08 00 27 0F 80 13 01 00 00 00 00 00 B3 [20:23:27]Write i2c OK [20:23:27]MH_I2C_Read... [20:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:27]Read from MH i2c: E2 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 0E 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 0E 00 27 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 8B [20:23:27]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:23:27]wFMCommunicate OK [20:23:27]SAM_PROTO_GetShiftState done [20:23:27]FM_GetShiftState done [20:23:27]opened in 1730246605 [20:23:27]opened+sec_in_day 1730333005 [20:23:27]quantity*price = 100015 [20:23:27]sum+1 = 100017 [20:23:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 254 30.10.2024 20:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118194 ФПД: 44696008866945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202328&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118194&fm=44696008866945&tin=02508201610067®Number=0000000000091782&sum=100000 [20:23:28]StoreToDocumentArchive [20:23:28]shift 545 fd 118194 [20:23:28]save to /storage/0545/doc_00118194 [20:23:28]save last doc name /storage/0545/doc_00118194 to /storage/kkm_last_doc_name [20:23:28]save OK [20:23:28]Clear old archive folders... [20:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:28]tlvbuf is 00246FB0 [20:23:28]SAM_PROTO_ClearQueue [20:23:28]wFMCommunicate request_size=4 [20:23:28]MH_SAM_APDU [20:23:28]CAPDU: 80 09 00 00 [20:23:28]Write to MH i2c: E2 08 00 34 0F 80 09 00 00 00 00 00 00 B5 [20:23:28]Write i2c OK [20:23:28]MH_I2C_Read... [20:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:28]Read from MH i2c: E2 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: E2 03 00 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: E2 03 00 34 0F 00 90 00 B7 [20:23:28]RAPDU: 90 00 [20:23:28]wFMCommunicate OK [20:23:28]SAM_PROTO_ClearQueue done [20:23:28]KKMCreateOFDPacket [20:23:28]OFDProtocolAddRootSTLVToBuf [20:23:28]FM_MakeSignedData [20:23:28]FM_MakeSignedData [20:23:28]SAM_PROTO_SignData [20:23:28]wFMCommunicate request_size=4 [20:23:28]MH_SAM_APDU [20:23:28]CAPDU: 80 0D 01 02 [20:23:28]Write to MH i2c: E2 08 00 35 0F 80 0D 01 02 00 00 00 00 BD [20:23:28]Write i2c OK [20:23:28]MH_I2C_Read... [20:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:28]Read from MH i2c: E2 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: E2 03 00 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: E2 03 00 35 0F 00 90 00 B8 [20:23:28]RAPDU: 90 00 [20:23:28]wFMCommunicate OK [20:23:28]wFMCommunicate request_size=255 [20:23:28]MH_SAM_APDU [20:23:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FE 00 00 00 F4 03 04 00 C0 95 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CD 01 00 35 04 06 00 28 [20:23:28]Write to MH i2c: E2 02 01 36 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FE 00 00 00 F4 03 04 00 C0 95 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CD 01 00 35 04 06 00 28 00 00 F0 [20:23:28]Write i2c OK [20:23:28]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 36 0F 00 90 00 B9 [20:23:29]RAPDU: 90 00 [20:23:29]wFMCommunicate OK [20:23:29]wFMCommunicate request_size=10 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 0D 02 02 05 A6 99 BB 3C 81 [20:23:29]Write to MH i2c: E2 0D 00 37 0F 80 0D 02 02 05 00 A6 99 BB 3C 81 00 00 81 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 37 0F 00 90 00 BA [20:23:29]RAPDU: 90 00 [20:23:29]wFMCommunicate OK [20:23:29]wFMCommunicate request_size=4 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 0D 03 02 [20:23:29]Write to MH i2c: E2 08 00 38 0F 80 0D 03 02 00 00 00 00 C2 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 0B 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 0B 00 38 0F 00 CA 36 79 99 6B E3 26 A3 90 00 EC [20:23:29]RAPDU: CA 36 79 99 6B E3 26 A3 90 00 [20:23:29]wFMCommunicate OK [20:23:29]SAM_PROTO_SignData done [20:23:29]FM_MakeSignedData done [20:23:29]CreateOFDProtocolMessage [20:23:29]wFMCommunicate request_size=4 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 11 00 00 [20:23:29]Write to MH i2c: E2 08 00 39 0F 80 11 00 00 00 00 00 00 C2 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 17 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 17 00 39 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 19 [20:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:23:29]wFMCommunicate OK [20:23:29]CreateOFDProtocolMessage done [20:23:29]OFDSenderStorePacket 118194 [20:23:29]StoreOFDPacket docnum=118194 [20:23:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 92 B1 07 01 BC 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FE 00 00 00 F4 03 04 00 C0 95 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CD 01 00 35 04 06 00 28 A6 99 BB 3C 81 CA 36 79 99 6B E3 26 A3 [20:23:29]CheckFolder [20:23:29]dirname=/storage/ofd_packets [20:23:29]CheckFolder done [20:23:29]ProducePacketName [20:23:29]name=ofd_packets/00118194 [20:23:29]NVStorageSaveData ofd_packets/00118194 [20:23:29]File name is /storage/ofd_packets/00118194 [20:23:29]Write 301 bytes [20:23:29]NVStorageSaveData done [20:23:29]OFDSenderStorePacket done [20:23:29]KKMCreateOFDPacket done [20:23:29]NVStorageSaveData kkm_last_timestamp [20:23:29]File name is /storage/kkm_last_timestamp [20:23:29]Write 4 bytes [20:23:29]NVStorageSaveData done [20:23:29]OFD Sender: Processing packet 118194 [packets to send 77, broken 76] [20:23:29]ProducePacketName [20:23:29]name=ofd_packets/00118194 [20:23:29]OFD Sender: To server: pG, [20:23:29]CommunicateWithHost lk.salyk.kg:30040 [20:23:29]ConnectInit lk.salyk.kg [20:23:29]ExternCall_PrintAddStr [20:23:29]wPrintStart [20:23:29]Write to MH i2c: 01 00 00 3A 0F 49 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 07 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 07 00 3A 0F 00 00 00 00 00 FF 0F 5E [20:23:29]RasterBufferAndPrint [20:23:29]line Счет N : (1)245995 [20:23:29]line ИНН: 02508201610067 [20:23:29]line Контрольно-Кассовый Чек [20:23:29]line ПРОДАЖА [20:23:29]line ТРК (МРК, ГНК) : 21 [20:23:29]line Товар: 2710124130 [20:23:29]line Аи-92-К-2 [20:23:29]line 14.950 * 66.90 [20:23:29]line = 1000.16 [20:23:29]line НДС 12% НСП 1% [20:23:29]line > о реализуемом товаре [20:23:29]line ОКРУГЛЕНИЕ: -0.16 [20:23:29]line ИТОГО: 1000.00 [20:23:29]line Внесено: 1000.00 [20:23:29]line СДАЧА: 0.00 [20:23:29]line НСП 1% : 8.85 [20:23:29]line НДС 12% : 106.21 [20:23:29]line Наличными: 1000.00 [20:23:29]line Безнал.: 0.00 [20:23:29]line Место: АЗС № 173 "Партнер Нефть" [20:23:29]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:23:29]line СНО: Общий режим [20:23:29]line Чек 254 30.10.2024 20:23 [20:23:29]line Смена: 545 ФФД: 1.0 [20:23:29]line ЗНМ: 0300000115 [20:23:29]line РНМ: 0000000000091782 [20:23:29]line Версия ККМ: 001 [20:23:29]line ФМ: 0000000000871767 [20:23:29]line ФД: 118194 [20:23:29]line ФПД: 44696008866945 [20:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202328&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118194&fm=44696008866945&tin=02508201610067®Number=0000000000091782&sum=100000 [20:23:29]written 0, free lines is 4095 [20:23:29]Connected sock=11 [20:23: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 36 37 0F 01 00 00 92 B1 07 01 BC 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FE 00 00 00 F4 03 04 00 C0 95 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CD 01 00 35 04 06 00 28 A6 99 BB 3C 81 CA 36 79 99 6B E3 26 A3 [20:23: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 36 37 4F 00 00 00 E9 6C 47 00 8A 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B2 CD 01 00 F4 03 04 00 76 41 22 67 B6 04 01 00 00 D9 E3 67 E6 E1 C3 CA C9 [20:23:29]CommunicateWithHost err = 0 [20:23:29]CheckOFDResponse [20:23:29]1017 (14) - 77093643461234 [20:23:29]1041 (16) - 0000000000871767 [20:23:29]1040 (4) - 118194 [20:23:29]1012 (4) - 30.10.2024 14:23 [20:23:29]1206 (1) - 0 [20:23:29]OFD Sender: Remove packet 118194 [20:23:29]ProducePacketName [20:23:29]name=ofd_packets/00118194 [20:23:29]NVStorageDeleteData [20:23:29]Write to MH i2c: 01 00 00 64 0F 73 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 07 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 D1 0C 57 [20:23:29]RasterBufferAndPrint [20:23:29]line [20:23:29]line [20:23:29]line [20:23:29]line [20:23:29]line [20:23:29]written 0, free lines is 3288 [20:23:29]MH_Cut [20:23:29]Write to MH i2c: D1 01 00 6B 0F 01 4C [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: D1 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: D1 01 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: D1 01 00 6B 0F 00 4B [20:23:29]Write to MH i2c: 01 00 00 6C 0F 7B [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:30]OFD Sender: No OFD packet to send [20:23:30]*** Cut start [20:23:30]*** Purtial cut [20:23:30]*** Stage 1: CUTSNS_PIN = 1 [20:23:30]Read from MH i2c: 01 [20:23:30]MH_I2C_Read... [20:23:30]*** Stop cut motor [20:23:30]*** Cut end [20:23:30]Read from MH i2c: 01 07 00 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [20:23:30]process_action close_receipt done [20:23:30]requested_data is exist [20:23:30]produce_requested_data [20:23:30]requested_item fm.sn is exist - process it [20:23:30]wFMCommunicate request_size=4 [20:23:30]MH_SAM_APDU [20:23:30]CAPDU: 80 11 00 00 [20:23:30]Write to MH i2c: E2 08 00 6D 0F 80 11 00 00 00 00 00 00 F6 [20:23:30]Write i2c OK [20:23:30]MH_I2C_Read... [20:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:30]Read from MH i2c: E2 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: E2 17 00 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: E2 17 00 6D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4D [20:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:23:30]wFMCommunicate OK [20:23:30]requested_item fd.num is exist - process it [20:23:30]SAM_PROTO_GetFieldsCounters [20:23:30]wFMCommunicate request_size=4 [20:23:30]MH_SAM_APDU [20:23:30]CAPDU: 80 13 00 00 [20:23:30]Write to MH i2c: E2 08 00 6E 0F 80 13 00 00 00 00 00 00 F9 [20:23:30]Write i2c OK [20:23:30]MH_I2C_Read... [20:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:30]Read from MH i2c: E2 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: E2 62 00 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: E2 62 00 6E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [20:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:31]wFMCommunicate OK [20:23:31]SAM_PROTO_GetFieldsCounters done [20:23:31]requested_item shift.num is exist - process it [20:23:31]requested_item shift.opened is exist - process it [20:23:31]req_shift_opened [20:23:31]FM_GetShiftState [20:23:31]SAM_PROTO_GetShiftState [20:23:31]wFMCommunicate request_size=4 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 13 01 00 [20:23:31]Write to MH i2c: E2 08 00 6F 0F 80 13 01 00 00 00 00 00 FB [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0E 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0E 00 6F 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D3 [20:23:31]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:23:31]wFMCommunicate OK [20:23:31]SAM_PROTO_GetShiftState done [20:23:31]FM_GetShiftState done [20:23:31]req_shift_opened done [20:23:31]requested_item shift.open_date is exist - process it [20:23:31]req_shift_open_date [20:23:31]req_shift_open_date done [20:23:31]produce_requested_data done [20:23:31]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118194,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [20:23:31]process_action_free close_receipt [20:23:31]json_value_free [20:23:31]json_value_free done [20:23:31]process_json_proto returns [20:23:31]Send response to host [20:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118194,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [20:23:31]free response buf [20:23:31]execute_script done [20:23:31]execute_script returns [20:23:31]free content buf [20:23:31]Sock 9.Close socket [20:23:31]Sock 9.Thread stoped [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:39]accept exits with 7 [20:36:39]New connection [20:36:39]New thread 3067133284 created [20:36:39]Thread 3067276644 joined [20:36:39]Waiting for new connection... [20:36:39] Sock 7.Parse request [20:36:39]Sock 7.Check first char [20:36:39]Sock 7.First char is OK [20:36:39]request: POST /json_proto HTTP/1.0 [20:36:39]Method: POST [20:36:39]URL: /json_proto [20:36:39]Method is POST - this is cgi request [20:36:39]url: /json_proto [20:36:39]query_string will be loaded in cgi processing [20:36:39]execute_cgi json_proto POST (null) [20:36:39]execute_cgi path=json_proto method=POST [20:36:39]POST find Content-Length [20:36:39]Host: 172.17.96.67:8080 [20:36:39]Content-Length: 677 [20:36:39]Content-Type: application/json [20:36:39] [20:36:39]POST finish read [20:36:39]Found Content-Length = 677 [20:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:36:39]execute_script... [20:36: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)245996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:36:39]POST & json_proto [20:36:39]process_json_proto [20:36:39]json parsed OK: [20:36:39]protocol is kg_v1.0 [20:36:39]action value=close_receipt [20:36:39]process_action close_receipt [20:36:39]cmd_close_receipt [20:36:39]MH_GetDate [20:36:39]Write to MH i2c: F0 00 00 70 0F 6E [20:36:39]Write i2c OK [20:36:39]MH_I2C_Read... [20:36:39]Read from MH i2c: F0 [20:36:39]MH_I2C_Read... [20:36:39]Read from MH i2c: F0 09 00 [20:36:39]MH_I2C_Read... [20:36:39]Read from MH i2c: F0 09 00 70 0F 00 D8 98 22 67 47 6C 1F 67 A9 [20:36:39]GetLastDocTimeStamp 1730319808 [20:36:39]current date 1730320600 [20:36:39]FM_GetShiftState [20:36:39]SAM_PROTO_GetShiftState [20:36:39]wFMCommunicate request_size=4 [20:36:39]MH_SAM_APDU [20:36:39]CAPDU: 80 13 01 00 [20:36:39]Write to MH i2c: E2 08 00 71 0F 80 13 01 00 00 00 00 00 FD [20:36:39]Write i2c OK [20:36:39]MH_I2C_Read... [20:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:39]Read from MH i2c: E2 [20:36:39]MH_I2C_Read... [20:36:39]Read from MH i2c: E2 0E 00 [20:36:39]MH_I2C_Read... [20:36:39]Read from MH i2c: E2 0E 00 71 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 D5 [20:36:39]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:36:39]wFMCommunicate OK [20:36:39]SAM_PROTO_GetShiftState done [20:36:39]FM_GetShiftState done [20:36:39]opened in 1730246605 [20:36:39]opened+sec_in_day 1730333005 [20:36:39]quantity*price = 40006 [20:36:39]sum+1 = 40007 [20:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 255 30.10.2024 20:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118195 ФПД: 208183772041811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T203640&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118195&fm=208183772041811&tin=02508201610067®Number=0000000000091782&sum=40000 [20:36:40]StoreToDocumentArchive [20:36:40]shift 545 fd 118195 [20:36:40]save to /storage/0545/doc_00118195 [20:36:40]save last doc name /storage/0545/doc_00118195 to /storage/kkm_last_doc_name [20:36:40]save OK [20:36:40]Clear old archive folders... [20:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:40]tlvbuf is 00288F10 [20:36:40]SAM_PROTO_ClearQueue [20:36:40]wFMCommunicate request_size=4 [20:36:40]MH_SAM_APDU [20:36:40]CAPDU: 80 09 00 00 [20:36:40]Write to MH i2c: E2 08 00 7E 0F 80 09 00 00 00 00 00 00 FF [20:36:40]Write i2c OK [20:36:40]MH_I2C_Read... [20:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:40]Read from MH i2c: E2 [20:36:40]MH_I2C_Read... [20:36:40]Read from MH i2c: E2 03 00 [20:36:40]MH_I2C_Read... [20:36:40]Read from MH i2c: E2 03 00 7E 0F 00 90 00 01 [20:36:40]RAPDU: 90 00 [20:36:40]wFMCommunicate OK [20:36:40]SAM_PROTO_ClearQueue done [20:36:40]KKMCreateOFDPacket [20:36:40]OFDProtocolAddRootSTLVToBuf [20:36:40]FM_MakeSignedData [20:36:40]FM_MakeSignedData [20:36:40]SAM_PROTO_SignData [20:36:40]wFMCommunicate request_size=4 [20:36:40]MH_SAM_APDU [20:36:40]CAPDU: 80 0D 01 02 [20:36:40]Write to MH i2c: E2 08 00 7F 0F 80 0D 01 02 00 00 00 00 07 [20:36:40]Write i2c OK [20:36:40]MH_I2C_Read... [20:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:40]Read from MH i2c: E2 [20:36:40]MH_I2C_Read... [20:36:40]Read from MH i2c: E2 03 00 [20:36:40]MH_I2C_Read... [20:36:40]Read from MH i2c: E2 03 00 7F 0F 00 90 00 02 [20:36:40]RAPDU: 90 00 [20:36:40]wFMCommunicate OK [20:36:40]wFMCommunicate request_size=255 [20:36:40]MH_SAM_APDU [20:36: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 32 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 FF 00 00 00 F4 03 04 00 D8 98 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CD 01 00 35 04 06 00 BD [20:36:40]Write to MH i2c: E2 02 01 80 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 D8 98 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CD 01 00 35 04 06 00 BD 00 00 C1 [20:36:40]Write i2c OK [20:36:40]MH_I2C_Read... [20:36:40]OFD Sender: No OFD packet to send [20:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:41]Read from MH i2c: E2 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 03 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 03 00 80 0F 00 90 00 03 [20:36:41]RAPDU: 90 00 [20:36:41]wFMCommunicate OK [20:36:41]wFMCommunicate request_size=10 [20:36:41]MH_SAM_APDU [20:36:41]CAPDU: 80 0D 02 02 05 57 8F C7 D2 53 [20:36:41]Write to MH i2c: E2 0D 00 81 0F 80 0D 02 02 05 00 57 8F C7 D2 53 00 00 E6 [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:41]Read from MH i2c: E2 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 03 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 03 00 81 0F 00 90 00 04 [20:36:41]RAPDU: 90 00 [20:36:41]wFMCommunicate OK [20:36:41]wFMCommunicate request_size=4 [20:36:41]MH_SAM_APDU [20:36:41]CAPDU: 80 0D 03 02 [20:36:41]Write to MH i2c: E2 08 00 82 0F 80 0D 03 02 00 00 00 00 0C [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:41]Read from MH i2c: E2 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 0B 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 0B 00 82 0F 00 6B EB 4C 85 84 E9 6B 2A 90 00 36 [20:36:41]RAPDU: 6B EB 4C 85 84 E9 6B 2A 90 00 [20:36:41]wFMCommunicate OK [20:36:41]SAM_PROTO_SignData done [20:36:41]FM_MakeSignedData done [20:36:41]CreateOFDProtocolMessage [20:36:41]wFMCommunicate request_size=4 [20:36:41]MH_SAM_APDU [20:36:41]CAPDU: 80 11 00 00 [20:36:41]Write to MH i2c: E2 08 00 83 0F 80 11 00 00 00 00 00 00 0C [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:41]Read from MH i2c: E2 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 17 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 17 00 83 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 63 [20:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:36:41]wFMCommunicate OK [20:36:41]CreateOFDProtocolMessage done [20:36:41]OFDSenderStorePacket 118195 [20:36:41]StoreOFDPacket docnum=118195 [20:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 00 6E 07 01 61 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 D8 98 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CD 01 00 35 04 06 00 BD 57 8F C7 D2 53 6B EB 4C 85 84 E9 6B 2A [20:36:41]CheckFolder [20:36:41]dirname=/storage/ofd_packets [20:36:41]CheckFolder done [20:36:41]ProducePacketName [20:36:41]name=ofd_packets/00118195 [20:36:41]NVStorageSaveData ofd_packets/00118195 [20:36:41]File name is /storage/ofd_packets/00118195 [20:36:41]Write 301 bytes [20:36:41]NVStorageSaveData done [20:36:41]OFDSenderStorePacket done [20:36:41]KKMCreateOFDPacket done [20:36:41]NVStorageSaveData kkm_last_timestamp [20:36:41]File name is /storage/kkm_last_timestamp [20:36:41]Write 4 bytes [20:36:41]NVStorageSaveData done [20:36:41]ExternCall_PrintAddStr [20:36:41]wPrintStart [20:36:41]Write to MH i2c: 01 00 00 84 0F 93 [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 07 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [20:36:41]RasterBufferAndPrint [20:36:41]line Счет N : (1)245996 [20:36:41]line ИНН: 02508201610067 [20:36:41]line Контрольно-Кассовый Чек [20:36:41]line ПРОДАЖА [20:36:41]line ТРК (МРК, ГНК) : 21 [20:36:41]line Товар: 2710124130 [20:36:41]line Аи-92-К-2 [20:36:41]line 5.980 * 66.90 [20:36:41]line = 400.06 [20:36:41]line НДС 12% НСП 1% [20:36:41]line > о реализуемом товаре [20:36:41]line ОКРУГЛЕНИЕ: -0.06 [20:36:41]line ИТОГО: 400.00 [20:36:41]line Внесено: 400.00 [20:36:41]line СДАЧА: 0.00 [20:36:41]line НСП 1% : 3.54 [20:36:41]line НДС 12% : 42.48 [20:36:41]line Наличными: 400.00 [20:36:41]line Безнал.: 0.00 [20:36:41]line Место: АЗС № 173 "Партнер Нефть" [20:36:41]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:36:41]line СНО: Общий режим [20:36:41]line Чек 255 30.10.2024 20:36 [20:36:41]line Смена: 545 ФФД: 1.0 [20:36:41]line ЗНМ: 0300000115 [20:36:41]line РНМ: 0000000000091782 [20:36:41]line Версия ККМ: 001 [20:36:41]line ФМ: 0000000000871767 [20:36:41]line ФД: 118195 [20:36:41]line ФПД: 208183772041811 [20:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T203640&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118195&fm=208183772041811&tin=02508201610067®Number=0000000000091782&sum=40000 [20:36:41]OFD Sender: Processing packet 118195 [packets to send 77, broken 76] [20:36:41]ProducePacketName [20:36:41]name=ofd_packets/00118195 [20:36:41]OFD Sender: To server: pG, [20:36:41]CommunicateWithHost lk.salyk.kg:30040 [20:36:41]ConnectInit lk.salyk.kg [20:36:41]written 0, free lines is 4095 [20:36:41]Connected sock=10 [20:36: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 36 37 0F 01 00 00 00 6E 07 01 61 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 D8 98 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B3 CD 01 00 35 04 06 00 BD 57 8F C7 D2 53 6B EB 4C 85 84 E9 6B 2A [20:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 D9 39 47 00 7C 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 36 37 10 04 04 00 B3 CD 01 00 F4 03 04 00 8F 44 22 67 B6 04 01 00 00 13 F7 45 F5 0B 80 E4 09 [20:36:41]CommunicateWithHost err = 0 [20:36:41]CheckOFDResponse [20:36:41]1017 (14) - 77093643461234 [20:36:41]1041 (16) - 0000000000871767 [20:36:41]1040 (4) - 118195 [20:36:41]1012 (4) - 30.10.2024 14:37 [20:36:41]1206 (1) - 0 [20:36:41]OFD Sender: Remove packet 118195 [20:36:41]ProducePacketName [20:36:41]name=ofd_packets/00118195 [20:36:41]NVStorageDeleteData [20:36:41]Write to MH i2c: 01 00 00 AE 0F BD [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 07 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 07 00 AE 0F 00 00 00 00 00 B6 0C 86 [20:36:41]RasterBufferAndPrint [20:36:41]line [20:36:41]line [20:36:41]line [20:36:41]line [20:36:41]line [20:36:41]written 0, free lines is 3262 [20:36:41]MH_Cut [20:36:41]Write to MH i2c: D1 01 00 B5 0F 01 96 [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: D1 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: D1 01 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: D1 01 00 B5 0F 00 95 [20:36:41]Write to MH i2c: 01 00 00 B6 0F C5 [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:42]OFD Sender: No OFD packet to send [20:36:42]*** Cut start [20:36:42]*** Purtial cut [20:36:42]*** Stage 1: CUTSNS_PIN = 1 [20:36:43]Read from MH i2c: 01 [20:36:43]MH_I2C_Read... [20:36:43]*** Stop cut motor [20:36:43]*** Cut end [20:36:43]Read from MH i2c: 01 07 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: 01 07 00 B6 0F 00 00 00 00 00 FF 0F DA [20:36:43]process_action close_receipt done [20:36:43]requested_data is exist [20:36:43]produce_requested_data [20:36:43]requested_item fm.sn is exist - process it [20:36:43]wFMCommunicate request_size=4 [20:36:43]MH_SAM_APDU [20:36:43]CAPDU: 80 11 00 00 [20:36:43]Write to MH i2c: E2 08 00 B7 0F 80 11 00 00 00 00 00 00 40 [20:36:43]Write i2c OK [20:36:43]MH_I2C_Read... [20:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:43]Read from MH i2c: E2 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 17 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 17 00 B7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 97 [20:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:36:43]wFMCommunicate OK [20:36:43]requested_item fd.num is exist - process it [20:36:43]SAM_PROTO_GetFieldsCounters [20:36:43]wFMCommunicate request_size=4 [20:36:43]MH_SAM_APDU [20:36:43]CAPDU: 80 13 00 00 [20:36:43]Write to MH i2c: E2 08 00 B8 0F 80 13 00 00 00 00 00 00 43 [20:36:43]Write i2c OK [20:36:43]MH_I2C_Read... [20:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:43]Read from MH i2c: E2 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 62 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 62 00 B8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B3 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [20:36: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B3 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:43]wFMCommunicate OK [20:36:43]SAM_PROTO_GetFieldsCounters done [20:36:43]requested_item shift.num is exist - process it [20:36:43]requested_item shift.opened is exist - process it [20:36:43]req_shift_opened [20:36:43]FM_GetShiftState [20:36:43]SAM_PROTO_GetShiftState [20:36:43]wFMCommunicate request_size=4 [20:36:43]MH_SAM_APDU [20:36:43]CAPDU: 80 13 01 00 [20:36:43]Write to MH i2c: E2 08 00 B9 0F 80 13 01 00 00 00 00 00 45 [20:36:43]Write i2c OK [20:36:43]MH_I2C_Read... [20:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:43]Read from MH i2c: E2 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 0E 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 0E 00 B9 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1D [20:36:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:36:43]wFMCommunicate OK [20:36:43]SAM_PROTO_GetShiftState done [20:36:43]FM_GetShiftState done [20:36:43]req_shift_opened done [20:36:43]requested_item shift.open_date is exist - process it [20:36:43]req_shift_open_date [20:36:43]req_shift_open_date done [20:36:43]produce_requested_data done [20:36:43]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118195,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [20:36:43]process_action_free close_receipt [20:36:43]json_value_free [20:36:43]json_value_free done [20:36:43]process_json_proto returns [20:36:43]Send response to host [20:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118195,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [20:36:43]free response buf [20:36:43]execute_script done [20:36:43]execute_script returns [20:36:43]free content buf [20:36:43]Sock 7.Close socket [20:36:43]Sock 7.Thread stoped [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:34]accept exits with 9 [20:39:34]New connection [20:39:34]New thread 3067276644 created [20:39:34]Thread 3067133284 joined [20:39:34]Waiting for new connection... [20:39:34] Sock 9.Parse request [20:39:34]Sock 9.Check first char [20:39:34]Sock 9.First char is OK [20:39:34]request: POST /json_proto HTTP/1.0 [20:39:34]Method: POST [20:39:34]URL: /json_proto [20:39:34]Method is POST - this is cgi request [20:39:34]url: /json_proto [20:39:34]query_string will be loaded in cgi processing [20:39:34]execute_cgi json_proto POST (null) [20:39:34]execute_cgi path=json_proto method=POST [20:39:34]POST find Content-Length [20:39:34]Host: 172.17.96.67:8080 [20:39:34]Content-Length: 677 [20:39:34]Content-Type: application/json [20:39:34] [20:39:34]POST finish read [20:39:34]Found Content-Length = 677 [20:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:39:34]execute_script... [20:39:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:39:34]POST & json_proto [20:39:34]process_json_proto [20:39:34]json parsed OK: [20:39:34]protocol is kg_v1.0 [20:39:34]action value=close_receipt [20:39:34]process_action close_receipt [20:39:34]cmd_close_receipt [20:39:34]MH_GetDate [20:39:34]Write to MH i2c: F0 00 00 BA 0F B8 [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: F0 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: F0 09 00 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: F0 09 00 BA 0F 00 87 99 22 67 47 6C 1F 67 A3 [20:39:34]GetLastDocTimeStamp 1730320600 [20:39:34]current date 1730320775 [20:39:34]FM_GetShiftState [20:39:34]SAM_PROTO_GetShiftState [20:39:34]wFMCommunicate request_size=4 [20:39:34]MH_SAM_APDU [20:39:34]CAPDU: 80 13 01 00 [20:39:34]Write to MH i2c: E2 08 00 BB 0F 80 13 01 00 00 00 00 00 47 [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:34]Read from MH i2c: E2 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: E2 0E 00 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: E2 0E 00 BB 0F 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 1F [20:39:34]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:39:34]wFMCommunicate OK [20:39:34]SAM_PROTO_GetShiftState done [20:39:34]FM_GetShiftState done [20:39:34]opened in 1730246605 [20:39:34]opened+sec_in_day 1730333005 [20:39:34]quantity*price = 50041 [20:39:34]sum+1 = 50042 [20:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 256 30.10.2024 20:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118196 ФПД: 239700158271817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T203935&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118196&fm=239700158271817&tin=02508201610067®Number=0000000000091782&sum=50000 [20:39:35]StoreToDocumentArchive [20:39:35]shift 545 fd 118196 [20:39:35]save to /storage/0545/doc_00118196 [20:39:35]save last doc name /storage/0545/doc_00118196 to /storage/kkm_last_doc_name [20:39:35]save OK [20:39:35]Clear old archive folders... [20:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:35]tlvbuf is 0023F480 [20:39:35]SAM_PROTO_ClearQueue [20:39:35]wFMCommunicate request_size=4 [20:39:35]MH_SAM_APDU [20:39:35]CAPDU: 80 09 00 00 [20:39:35]Write to MH i2c: E2 08 00 C8 0F 80 09 00 00 00 00 00 00 49 [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:35]Read from MH i2c: E2 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 03 00 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 03 00 C8 0F 00 90 00 4B [20:39:35]RAPDU: 90 00 [20:39:35]wFMCommunicate OK [20:39:35]SAM_PROTO_ClearQueue done [20:39:35]KKMCreateOFDPacket [20:39:35]OFDProtocolAddRootSTLVToBuf [20:39:35]FM_MakeSignedData [20:39:35]FM_MakeSignedData [20:39:35]SAM_PROTO_SignData [20:39:35]wFMCommunicate request_size=4 [20:39:35]MH_SAM_APDU [20:39:35]CAPDU: 80 0D 01 02 [20:39:35]Write to MH i2c: E2 08 00 C9 0F 80 0D 01 02 00 00 00 00 51 [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:35]Read from MH i2c: E2 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 03 00 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 03 00 C9 0F 00 90 00 4C [20:39:35]RAPDU: 90 00 [20:39:35]wFMCommunicate OK [20:39:35]wFMCommunicate request_size=255 [20:39:35]MH_SAM_APDU [20:39:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 00 01 00 00 F4 03 04 00 87 99 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CD 01 00 35 04 06 00 DA [20:39:35]Write to MH i2c: E2 02 01 CA 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 00 01 00 00 F4 03 04 00 87 99 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CD 01 00 35 04 06 00 DA 00 00 0C [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:35]Read from MH i2c: E2 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 03 00 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 03 00 CA 0F 00 90 00 4D [20:39:35]RAPDU: 90 00 [20:39:35]wFMCommunicate OK [20:39:35]wFMCommunicate request_size=10 [20:39:35]MH_SAM_APDU [20:39:35]CAPDU: 80 0D 02 02 05 01 8A C9 51 49 [20:39:35]Write to MH i2c: E2 0D 00 CB 0F 80 0D 02 02 05 00 01 8A C9 51 49 00 00 4C [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 03 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 03 00 CB 0F 00 90 00 4E [20:39:36]RAPDU: 90 00 [20:39:36]wFMCommunicate OK [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 0D 03 02 [20:39:36]Write to MH i2c: E2 08 00 CC 0F 80 0D 03 02 00 00 00 00 56 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 0B 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 0B 00 CC 0F 00 22 6B 32 E7 16 27 A1 4B 90 00 26 [20:39:36]RAPDU: 22 6B 32 E7 16 27 A1 4B 90 00 [20:39:36]wFMCommunicate OK [20:39:36]SAM_PROTO_SignData done [20:39:36]FM_MakeSignedData done [20:39:36]CreateOFDProtocolMessage [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 11 00 00 [20:39:36]Write to MH i2c: E2 08 00 CD 0F 80 11 00 00 00 00 00 00 56 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 17 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 17 00 CD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 AD [20:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:39:36]wFMCommunicate OK [20:39:36]CreateOFDProtocolMessage done [20:39:36]OFDSenderStorePacket 118196 [20:39:36]StoreOFDPacket docnum=118196 [20:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4F 3A 07 01 26 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 32 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 00 01 00 00 F4 03 04 00 87 99 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CD 01 00 35 04 06 00 DA 01 8A C9 51 49 22 6B 32 E7 16 27 A1 4B [20:39:36]CheckFolder [20:39:36]dirname=/storage/ofd_packets [20:39:36]CheckFolder done [20:39:36]ProducePacketName [20:39:36]name=ofd_packets/00118196 [20:39:36]NVStorageSaveData ofd_packets/00118196 [20:39:36]File name is /storage/ofd_packets/00118196 [20:39:36]Write 301 bytes [20:39:36]NVStorageSaveData done [20:39:36]OFDSenderStorePacket done [20:39:36]KKMCreateOFDPacket done [20:39:36]NVStorageSaveData kkm_last_timestamp [20:39:36]File name is /storage/kkm_last_timestamp [20:39:36]Write 4 bytes [20:39:36]NVStorageSaveData done [20:39:36]ExternCall_PrintAddStr [20:39:36]wPrintStart [20:39:36]Write to MH i2c: 01 00 00 CE 0F DD [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: 01 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: 01 07 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 FF 0F F2 [20:39:36]RasterBufferAndPrint [20:39:36]line Счет N : (1)245997 [20:39:36]line ИНН: 02508201610067 [20:39:36]line Контрольно-Кассовый Чек [20:39:36]line ПРОДАЖА [20:39:36]line ТРК (МРК, ГНК) : 11 [20:39:36]line Товар: 2710124130 [20:39:36]line Аи-92-К-2 [20:39:36]line 7.480 * 66.90 [20:39:36]line = 500.41 [20:39:36]line НДС 12% НСП 1% [20:39:36]line > о реализуемом товаре [20:39:36]line ОКРУГЛЕНИЕ: -0.41 [20:39:36]line ИТОГО: 500.00 [20:39:36]line Внесено: 500.00 [20:39:36]line СДАЧА: 0.00 [20:39:36]line НСП 1% : 4.43 [20:39:36]line НДС 12% : 53.14 [20:39:36]line Наличными: 500.00 [20:39:36]line Безнал.: 0.00 [20:39:36]line Место: АЗС № 173 "Партнер Нефть" [20:39:36]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:39:36]line СНО: Общий режим [20:39:36]line Чек 256 30.10.2024 20:39 [20:39:36]line Смена: 545 ФФД: 1.0 [20:39:36]line ЗНМ: 0300000115 [20:39:36]line РНМ: 0000000000091782 [20:39:36]line Версия ККМ: 001 [20:39:36]line ФМ: 0000000000871767 [20:39:36]line ФД: 118196 [20:39:36]line ФПД: 239700158271817 [20:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T203935&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118196&fm=239700158271817&tin=02508201610067®Number=0000000000091782&sum=50000 [20:39:36]OFD Sender: Processing packet 118196 [packets to send 77, broken 76] [20:39:36]ProducePacketName [20:39:36]name=ofd_packets/00118196 [20:39:36]OFD Sender: To server: pG, [20:39:36]CommunicateWithHost lk.salyk.kg:30040 [20:39:36]ConnectInit lk.salyk.kg [20:39:36]written 0, free lines is 4095 [20:39:36]Connected sock=7 [20:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 4F 3A 07 01 26 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 32 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 00 01 00 00 F4 03 04 00 87 99 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CD 01 00 35 04 06 00 DA 01 8A C9 51 49 22 6B 32 E7 16 27 A1 4B [20:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 68 A6 47 00 83 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B4 CD 01 00 F4 03 04 00 3E 45 22 67 B6 04 01 00 00 62 FD D9 F6 D5 A6 7F 95 [20:39:36]CommunicateWithHost err = 0 [20:39:36]CheckOFDResponse [20:39:36]1017 (14) - 77093643461234 [20:39:36]1041 (16) - 0000000000871767 [20:39:36]1040 (4) - 118196 [20:39:36]1012 (4) - 30.10.2024 14:39 [20:39:36]1206 (1) - 0 [20:39:36]OFD Sender: Remove packet 118196 [20:39:36]ProducePacketName [20:39:36]name=ofd_packets/00118196 [20:39:36]NVStorageDeleteData [20:39:36]Write to MH i2c: 01 00 00 F8 0F 07 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: 01 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: 01 07 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: 01 07 00 F8 0F 00 00 00 00 00 C7 0C E1 [20:39:36]RasterBufferAndPrint [20:39:36]line [20:39:36]line [20:39:36]line [20:39:36]line [20:39:36]line [20:39:36]written 0, free lines is 3278 [20:39:36]MH_Cut [20:39:36]Write to MH i2c: D1 01 00 FF 0F 01 E0 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: D1 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: D1 01 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: D1 01 00 FF 0F 00 DF [20:39:36]Write to MH i2c: 01 00 00 00 10 10 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:37]OFD Sender: No OFD packet to send [20:39:37]*** Cut start [20:39:37]*** Purtial cut [20:39:37]*** Stage 1: CUTSNS_PIN = 1 [20:39:38]Read from MH i2c: 01 [20:39:38]MH_I2C_Read... [20:39:38]*** Stop cut motor [20:39:38]*** Cut end [20:39:38]Read from MH i2c: 01 07 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 00 10 00 00 00 00 00 FF 0F 25 [20:39:38]process_action close_receipt done [20:39:38]requested_data is exist [20:39:38]produce_requested_data [20:39:38]requested_item fm.sn is exist - process it [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 11 00 00 [20:39:38]Write to MH i2c: E2 08 00 01 10 80 11 00 00 00 00 00 00 8B [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:38]Read from MH i2c: E2 17 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 17 00 01 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E2 [20:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:39:38]wFMCommunicate OK [20:39:38]requested_item fd.num is exist - process it [20:39:38]SAM_PROTO_GetFieldsCounters [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 13 00 00 [20:39:38]Write to MH i2c: E2 08 00 02 10 80 13 00 00 00 00 00 00 8E [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 62 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 62 00 02 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B4 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [20:39:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B4 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:38]wFMCommunicate OK [20:39:38]SAM_PROTO_GetFieldsCounters done [20:39:38]requested_item shift.num is exist - process it [20:39:38]requested_item shift.opened is exist - process it [20:39:38]req_shift_opened [20:39:38]FM_GetShiftState [20:39:38]SAM_PROTO_GetShiftState [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 13 01 00 [20:39:38]Write to MH i2c: E2 08 00 03 10 80 13 01 00 00 00 00 00 90 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 0E 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 0E 00 03 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 68 [20:39:38]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:39:38]wFMCommunicate OK [20:39:38]SAM_PROTO_GetShiftState done [20:39:38]FM_GetShiftState done [20:39:38]req_shift_opened done [20:39:38]requested_item shift.open_date is exist - process it [20:39:38]req_shift_open_date [20:39:38]req_shift_open_date done [20:39:38]produce_requested_data done [20:39:38]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118196,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [20:39:38]process_action_free close_receipt [20:39:38]json_value_free [20:39:38]json_value_free done [20:39:38]process_json_proto returns [20:39:38]Send response to host [20:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118196,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [20:39:38]free response buf [20:39:38]execute_script done [20:39:38]execute_script returns [20:39:38]free content buf [20:39:38]Sock 9.Close socket [20:39:38]Sock 9.Thread stoped [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:33]accept exits with 10 [20:46:33]New connection [20:46:33]New thread 3067133284 created [20:46:33]Thread 3067276644 joined [20:46:33]Waiting for new connection... [20:46:33] Sock 10.Parse request [20:46:33]Sock 10.Check first char [20:46:33]Sock 10.First char is OK [20:46:33]request: POST /json_proto HTTP/1.0 [20:46:33]Method: POST [20:46:33]URL: /json_proto [20:46:33]Method is POST - this is cgi request [20:46:33]url: /json_proto [20:46:33]query_string will be loaded in cgi processing [20:46:33]execute_cgi json_proto POST (null) [20:46:33]execute_cgi path=json_proto method=POST [20:46:33]POST find Content-Length [20:46:33]Host: 172.17.96.67:8080 [20:46:33]Content-Length: 677 [20:46:33]Content-Type: application/json [20:46:33] [20:46:33]POST finish read [20:46:33]Found Content-Length = 677 [20:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:46:33]execute_script... [20:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:46:33]POST & json_proto [20:46:33]process_json_proto [20:46:33]json parsed OK: [20:46:33]protocol is kg_v1.0 [20:46:33]action value=close_receipt [20:46:33]process_action close_receipt [20:46:33]cmd_close_receipt [20:46:33]MH_GetDate [20:46:33]Write to MH i2c: F0 00 00 04 10 03 [20:46:33]Write i2c OK [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: F0 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: F0 09 00 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: F0 09 00 04 10 00 2A 9B 22 67 47 6C 1F 67 93 [20:46:33]GetLastDocTimeStamp 1730320775 [20:46:33]current date 1730321194 [20:46:33]FM_GetShiftState [20:46:33]SAM_PROTO_GetShiftState [20:46:33]wFMCommunicate request_size=4 [20:46:33]MH_SAM_APDU [20:46:33]CAPDU: 80 13 01 00 [20:46:33]Write to MH i2c: E2 08 00 05 10 80 13 01 00 00 00 00 00 92 [20:46:33]Write i2c OK [20:46:33]MH_I2C_Read... [20:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:33]Read from MH i2c: E2 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: E2 0E 00 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: E2 0E 00 05 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 6A [20:46:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:46:33]wFMCommunicate OK [20:46:33]SAM_PROTO_GetShiftState done [20:46:33]FM_GetShiftState done [20:46:33]opened in 1730246605 [20:46:33]opened+sec_in_day 1730333005 [20:46:33]quantity*price = 50041 [20:46:33]sum+1 = 50042 [20:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 257 30.10.2024 20:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118197 ФПД: 8457807033139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118197&fm=8457807033139&tin=02508201610067®Number=0000000000091782&sum=50000 [20:46:34]StoreToDocumentArchive [20:46:34]shift 545 fd 118197 [20:46:34]save to /storage/0545/doc_00118197 [20:46:34]save last doc name /storage/0545/doc_00118197 to /storage/kkm_last_doc_name [20:46:34]save OK [20:46:34]Clear old archive folders... [20:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:34]tlvbuf is 0021D890 [20:46:34]SAM_PROTO_ClearQueue [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 09 00 00 [20:46:34]Write to MH i2c: E2 08 00 12 10 80 09 00 00 00 00 00 00 94 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 12 10 00 90 00 96 [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_ClearQueue done [20:46:34]KKMCreateOFDPacket [20:46:34]OFDProtocolAddRootSTLVToBuf [20:46:34]FM_MakeSignedData [20:46:34]FM_MakeSignedData [20:46:34]SAM_PROTO_SignData [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 01 02 [20:46:34]Write to MH i2c: E2 08 00 13 10 80 0D 01 02 00 00 00 00 9C [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 13 10 00 90 00 97 [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=255 [20:46:34]MH_SAM_APDU [20:46: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 32 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 01 01 00 00 F4 03 04 00 2A 9B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CD 01 00 35 04 06 00 07 [20:46:34]Write to MH i2c: E2 02 01 14 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 2A 9B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CD 01 00 35 04 06 00 07 00 00 2B [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 14 10 00 90 00 98 [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=10 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 02 02 05 B1 3C 95 73 33 [20:46:34]Write to MH i2c: E2 0D 00 15 10 80 0D 02 02 05 00 B1 3C 95 73 33 00 00 D1 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 15 10 00 90 00 99 [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 03 02 [20:46:34]Write to MH i2c: E2 08 00 16 10 80 0D 03 02 00 00 00 00 A1 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0B 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0B 00 16 10 00 5C 88 9E 87 D9 3B 01 71 90 00 31 [20:46:34]RAPDU: 5C 88 9E 87 D9 3B 01 71 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_SignData done [20:46:34]FM_MakeSignedData done [20:46:34]CreateOFDProtocolMessage [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 11 00 00 [20:46:34]Write to MH i2c: E2 08 00 17 10 80 11 00 00 00 00 00 00 A1 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:35]Read from MH i2c: E2 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: E2 17 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: E2 17 00 17 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 F8 [20:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:46:35]wFMCommunicate OK [20:46:35]CreateOFDProtocolMessage done [20:46:35]OFDSenderStorePacket 118197 [20:46:35]StoreOFDPacket docnum=118197 [20:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 42 EF 07 01 AC 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 32 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 01 01 00 00 F4 03 04 00 2A 9B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CD 01 00 35 04 06 00 07 B1 3C 95 73 33 5C 88 9E 87 D9 3B 01 71 [20:46:35]CheckFolder [20:46:35]dirname=/storage/ofd_packets [20:46:35]CheckFolder done [20:46:35]ProducePacketName [20:46:35]name=ofd_packets/00118197 [20:46:35]NVStorageSaveData ofd_packets/00118197 [20:46:35]File name is /storage/ofd_packets/00118197 [20:46:35]Write 301 bytes [20:46:35]NVStorageSaveData done [20:46:35]OFDSenderStorePacket done [20:46:35]KKMCreateOFDPacket done [20:46:35]NVStorageSaveData kkm_last_timestamp [20:46:35]File name is /storage/kkm_last_timestamp [20:46:35]Write 4 bytes [20:46:35]NVStorageSaveData done [20:46:35]ExternCall_PrintAddStr [20:46:35]wPrintStart [20:46:35]Write to MH i2c: 01 00 00 18 10 28 [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 07 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 07 00 18 10 00 00 00 00 00 FF 0F 3D [20:46:35]RasterBufferAndPrint [20:46:35]line Счет N : (1)245998 [20:46:35]line ИНН: 02508201610067 [20:46:35]line Контрольно-Кассовый Чек [20:46:35]line ПРОДАЖА [20:46:35]line ТРК (МРК, ГНК) : 11 [20:46:35]line Товар: 2710124130 [20:46:35]line Аи-92-К-2 [20:46:35]line 7.480 * 66.90 [20:46:35]line = 500.41 [20:46:35]line НДС 12% НСП 1% [20:46:35]line > о реализуемом товаре [20:46:35]line ОКРУГЛЕНИЕ: -0.41 [20:46:35]line ИТОГО: 500.00 [20:46:35]line Внесено: 500.00 [20:46:35]line СДАЧА: 0.00 [20:46:35]line НСП 1% : 4.43 [20:46:35]line НДС 12% : 53.14 [20:46:35]line Наличными: 500.00 [20:46:35]line Безнал.: 0.00 [20:46:35]line Место: АЗС № 173 "Партнер Нефть" [20:46:35]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [20:46:35]line СНО: Общий режим [20:46:35]line Чек 257 30.10.2024 20:46 [20:46:35]line Смена: 545 ФФД: 1.0 [20:46:35]line ЗНМ: 0300000115 [20:46:35]line РНМ: 0000000000091782 [20:46:35]line Версия ККМ: 001 [20:46:35]line ФМ: 0000000000871767 [20:46:35]line ФД: 118197 [20:46:35]line ФПД: 8457807033139 [20:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118197&fm=8457807033139&tin=02508201610067®Number=0000000000091782&sum=50000 [20:46:35]written 0, free lines is 4095 [20:46:35]OFD Sender: Processing packet 118197 [packets to send 77, broken 76] [20:46:35]ProducePacketName [20:46:35]name=ofd_packets/00118197 [20:46:35]OFD Sender: To server: pG, [20:46:35]CommunicateWithHost lk.salyk.kg:30040 [20:46:35]ConnectInit lk.salyk.kg [20:46:35]Connected sock=9 [20:46: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 36 37 0F 01 00 00 42 EF 07 01 AC 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 32 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 01 01 00 00 F4 03 04 00 2A 9B 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CD 01 00 35 04 06 00 07 B1 3C 95 73 33 5C 88 9E 87 D9 3B 01 71 [20:46: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 36 37 4F 00 00 00 5E 95 47 00 0D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B5 CD 01 00 F4 03 04 00 E0 46 22 67 B6 04 01 00 00 62 92 72 AE E0 22 01 B7 [20:46:35]CommunicateWithHost err = 0 [20:46:35]CheckOFDResponse [20:46:35]1017 (14) - 77093643461234 [20:46:35]1041 (16) - 0000000000871767 [20:46:35]1040 (4) - 118197 [20:46:35]1012 (4) - 30.10.2024 14:46 [20:46:35]1206 (1) - 0 [20:46:35]OFD Sender: Remove packet 118197 [20:46:35]ProducePacketName [20:46:35]name=ofd_packets/00118197 [20:46:35]NVStorageDeleteData [20:46:35]Write to MH i2c: 01 00 00 42 10 52 [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 07 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 07 00 42 10 00 00 00 00 00 C7 0C 2C [20:46:35]RasterBufferAndPrint [20:46:35]line [20:46:35]line [20:46:35]line [20:46:35]line [20:46:35]line [20:46:35]written 0, free lines is 3276 [20:46:35]MH_Cut [20:46:35]Write to MH i2c: D1 01 00 49 10 01 2B [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: D1 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: D1 01 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: D1 01 00 49 10 00 2A [20:46:35]Write to MH i2c: 01 00 00 4A 10 5A [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]OFD Sender: No OFD packet to send [20:46:36]*** Cut start [20:46:36]*** Purtial cut [20:46:36]*** Stage 1: CUTSNS_PIN = 1 [20:46:36]Read from MH i2c: 01 [20:46:36]MH_I2C_Read... [20:46:36]*** Stop cut motor [20:46:36]*** Cut end [20:46:36]Read from MH i2c: 01 07 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: 01 07 00 4A 10 00 00 00 00 00 FF 0F 6F [20:46:36]process_action close_receipt done [20:46:36]requested_data is exist [20:46:36]produce_requested_data [20:46:36]requested_item fm.sn is exist - process it [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 11 00 00 [20:46:36]Write to MH i2c: E2 08 00 4B 10 80 11 00 00 00 00 00 00 D5 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 4B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 2C [20:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [20:46:36]wFMCommunicate OK [20:46:36]requested_item fd.num is exist - process it [20:46:36]SAM_PROTO_GetFieldsCounters [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 13 00 00 [20:46:36]Write to MH i2c: E2 08 00 4C 10 80 13 00 00 00 00 00 00 D8 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 62 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 62 00 4C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B5 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [20:46: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B5 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:36]wFMCommunicate OK [20:46:36]SAM_PROTO_GetFieldsCounters done [20:46:36]requested_item shift.num is exist - process it [20:46:36]requested_item shift.opened is exist - process it [20:46:36]req_shift_opened [20:46:36]FM_GetShiftState [20:46:36]SAM_PROTO_GetShiftState [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 13 01 00 [20:46:36]Write to MH i2c: E2 08 00 4D 10 80 13 01 00 00 00 00 00 DA [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:36]Read from MH i2c: E2 0E 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 0E 00 4D 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B2 [20:46:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [20:46:36]wFMCommunicate OK [20:46:36]SAM_PROTO_GetShiftState done [20:46:36]FM_GetShiftState done [20:46:36]req_shift_opened done [20:46:36]requested_item shift.open_date is exist - process it [20:46:36]req_shift_open_date [20:46:36]req_shift_open_date done [20:46:36]produce_requested_data done [20:46:36]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118197,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [20:46:36]process_action_free close_receipt [20:46:36]json_value_free [20:46:36]json_value_free done [20:46:36]process_json_proto returns [20:46:36]Send response to host [20:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118197,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [20:46:36]free response buf [20:46:36]execute_script done [20:46:36]execute_script returns [20:46:36]free content buf [20:46:36]Sock 10.Close socket [20:46:36]Sock 10.Thread stoped [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48: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:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:45]accept exits with 7 [21:12:45]New connection [21:12:45]New thread 3067276644 created [21:12:45]Thread 3067133284 joined [21:12:45]Waiting for new connection... [21:12:45] Sock 7.Parse request [21:12:45]Sock 7.Check first char [21:12:45]Sock 7.First char is OK [21:12:45]request: POST /json_proto HTTP/1.0 [21:12:45]Method: POST [21:12:45]URL: /json_proto [21:12:45]Method is POST - this is cgi request [21:12:45]url: /json_proto [21:12:45]query_string will be loaded in cgi processing [21:12:45]execute_cgi json_proto POST (null) [21:12:45]execute_cgi path=json_proto method=POST [21:12:45]POST find Content-Length [21:12:45]Host: 172.17.96.67:8080 [21:12:45]Content-Length: 675 [21:12:45]Content-Type: application/json [21:12:45] [21:12:45]POST finish read [21:12:45]Found Content-Length = 675 [21:12:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)245999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.950, "sum" : 910.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:45]execute_script... [21:12: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)245999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.950, "sum" : 910.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:45]POST & json_proto [21:12:45]process_json_proto [21:12:45]json parsed OK: [21:12:45]protocol is kg_v1.0 [21:12:45]action value=close_receipt [21:12:45]process_action close_receipt [21:12:45]cmd_close_receipt [21:12:45]MH_GetDate [21:12:45]Write to MH i2c: F0 00 00 4E 10 4D [21:12:45]Write i2c OK [21:12:45]MH_I2C_Read... [21:12:45]Read from MH i2c: F0 [21:12:45]MH_I2C_Read... [21:12:45]Read from MH i2c: F0 09 00 [21:12:45]MH_I2C_Read... [21:12:45]Read from MH i2c: F0 09 00 4E 10 00 4F A1 22 67 47 6C 1F 67 08 [21:12:45]GetLastDocTimeStamp 1730321194 [21:12:45]current date 1730322767 [21:12:45]FM_GetShiftState [21:12:45]SAM_PROTO_GetShiftState [21:12:45]wFMCommunicate request_size=4 [21:12:45]MH_SAM_APDU [21:12:45]CAPDU: 80 13 01 00 [21:12:45]Write to MH i2c: E2 08 00 4F 10 80 13 01 00 00 00 00 00 DC [21:12:45]Write i2c OK [21:12:45]MH_I2C_Read... [21:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:45]Read from MH i2c: E2 [21:12:45]MH_I2C_Read... [21:12:45]Read from MH i2c: E2 0E 00 [21:12:45]MH_I2C_Read... [21:12:45]Read from MH i2c: E2 0E 00 4F 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B4 [21:12:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:12:45]wFMCommunicate OK [21:12:45]SAM_PROTO_GetShiftState done [21:12:45]FM_GetShiftState done [21:12:45]opened in 1730246605 [21:12:45]opened+sec_in_day 1730333005 [21:12:45]quantity*price = 91059 [21:12:45]sum+1 = 91060 [21:12:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 910.00 Внесено: 910.00 СДАЧА: 0.00 НСП 1% : 8.06 НДС 12% : 96.70 Наличными: 910.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 258 30.10.2024 21:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118198 ФПД: 103138544363473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211247&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118198&fm=103138544363473&tin=02508201610067®Number=0000000000091782&sum=91000 [21:12:47]StoreToDocumentArchive [21:12:47]shift 545 fd 118198 [21:12:47]save to /storage/0545/doc_00118198 [21:12:47]save last doc name /storage/0545/doc_00118198 to /storage/kkm_last_doc_name [21:12:47]save OK [21:12:47]Clear old archive folders... [21:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:12:47]tlvbuf is 0023DF50 [21:12:47]SAM_PROTO_ClearQueue [21:12:47]wFMCommunicate request_size=4 [21:12:47]MH_SAM_APDU [21:12:47]CAPDU: 80 09 00 00 [21:12:47]Write to MH i2c: E2 08 00 5C 10 80 09 00 00 00 00 00 00 DE [21:12:47]Write i2c OK [21:12:47]MH_I2C_Read... [21:12:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:47]Read from MH i2c: E2 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 5C 10 00 90 00 E0 [21:12:47]RAPDU: 90 00 [21:12:47]wFMCommunicate OK [21:12:47]SAM_PROTO_ClearQueue done [21:12:47]KKMCreateOFDPacket [21:12:47]OFDProtocolAddRootSTLVToBuf [21:12:47]FM_MakeSignedData [21:12:47]FM_MakeSignedData [21:12:47]SAM_PROTO_SignData [21:12:47]wFMCommunicate request_size=4 [21:12:47]MH_SAM_APDU [21:12:47]CAPDU: 80 0D 01 02 [21:12:47]Write to MH i2c: E2 08 00 5D 10 80 0D 01 02 00 00 00 00 E6 [21:12:47]Write i2c OK [21:12:47]MH_I2C_Read... [21:12:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:47]Read from MH i2c: E2 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [21:12:47]RAPDU: 90 00 [21:12:47]wFMCommunicate OK [21:12:47]wFMCommunicate request_size=255 [21:12:47]MH_SAM_APDU [21:12: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 32 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4F A1 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CD 01 00 35 04 06 00 5D CD D0 4C [21:12:47]Write to MH i2c: E2 02 01 5E 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4F A1 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CD 01 00 35 04 06 00 5D CD D0 4C 00 00 4F [21:12:47]Write i2c OK [21:12:47]MH_I2C_Read... [21:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:47]Read from MH i2c: E2 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [21:12:47]RAPDU: 90 00 [21:12:47]wFMCommunicate OK [21:12:47]wFMCommunicate request_size=7 [21:12:47]MH_SAM_APDU [21:12:47]CAPDU: 80 0D 02 02 02 A7 D1 [21:12:47]Write to MH i2c: E2 0A 00 5F 10 80 0D 02 02 02 00 A7 D1 00 00 65 [21:12:47]Write i2c OK [21:12:47]MH_I2C_Read... [21:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:47]Read from MH i2c: E2 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [21:12:47]RAPDU: 90 00 [21:12:47]wFMCommunicate OK [21:12:47]wFMCommunicate request_size=4 [21:12:47]MH_SAM_APDU [21:12:47]CAPDU: 80 0D 03 02 [21:12:47]Write to MH i2c: E2 08 00 60 10 80 0D 03 02 00 00 00 00 EB [21:12:47]Write i2c OK [21:12:47]MH_I2C_Read... [21:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:47]Read from MH i2c: E2 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 0B 00 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 0B 00 60 10 00 FF B9 78 22 B6 FE C5 10 90 00 C7 [21:12:47]RAPDU: FF B9 78 22 B6 FE C5 10 90 00 [21:12:47]wFMCommunicate OK [21:12:47]SAM_PROTO_SignData done [21:12:47]FM_MakeSignedData done [21:12:47]CreateOFDProtocolMessage [21:12:47]wFMCommunicate request_size=4 [21:12:47]MH_SAM_APDU [21:12:47]CAPDU: 80 11 00 00 [21:12:47]Write to MH i2c: E2 08 00 61 10 80 11 00 00 00 00 00 00 EB [21:12:47]Write i2c OK [21:12:47]MH_I2C_Read... [21:12:47]OFD Sender: No OFD packet to send [21:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:47]Read from MH i2c: E2 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 17 00 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: E2 17 00 61 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 42 [21:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:12:47]wFMCommunicate OK [21:12:47]CreateOFDProtocolMessage done [21:12:47]OFDSenderStorePacket 118198 [21:12:47]StoreOFDPacket docnum=118198 [21:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 F2 F9 04 01 9B 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4F A1 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CD 01 00 35 04 06 00 5D CD D0 4C A7 D1 FF B9 78 22 B6 FE C5 10 [21:12:47]CheckFolder [21:12:47]dirname=/storage/ofd_packets [21:12:47]CheckFolder done [21:12:47]ProducePacketName [21:12:47]name=ofd_packets/00118198 [21:12:47]NVStorageSaveData ofd_packets/00118198 [21:12:47]File name is /storage/ofd_packets/00118198 [21:12:47]Write 298 bytes [21:12:47]NVStorageSaveData done [21:12:47]OFDSenderStorePacket done [21:12:47]KKMCreateOFDPacket done [21:12:47]NVStorageSaveData kkm_last_timestamp [21:12:47]File name is /storage/kkm_last_timestamp [21:12:47]Write 4 bytes [21:12:47]NVStorageSaveData done [21:12:47]ExternCall_PrintAddStr [21:12:47]wPrintStart [21:12:47]Write to MH i2c: 01 00 00 62 10 72 [21:12:47]Write i2c OK [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: 01 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: 01 07 00 [21:12:47]MH_I2C_Read... [21:12:47]Read from MH i2c: 01 07 00 62 10 00 00 00 00 00 FF 0F 87 [21:12:47]RasterBufferAndPrint [21:12:47]line Счет N : (1)245999 [21:12:47]line ИНН: 02508201610067 [21:12:47]line Контрольно-Кассовый Чек [21:12:47]line ПРОДАЖА [21:12:47]line ТРК (МРК, ГНК) : 23 [21:12:47]line Товар: 2710194210 [21:12:47]line ДТ-К-2 [21:12:47]line 11.950 * 76.20 [21:12:47]line = 910.59 [21:12:47]line НДС 12% НСП 1% [21:12:47]line > о реализуемом товаре [21:12:47]line ОКРУГЛЕНИЕ: -0.59 [21:12:47]line ИТОГО: 910.00 [21:12:47]line Внесено: 910.00 [21:12:47]line СДАЧА: 0.00 [21:12:47]line НСП 1% : 8.06 [21:12:47]line НДС 12% : 96.70 [21:12:47]line Наличными: 910.00 [21:12:47]line Безнал.: 0.00 [21:12:47]line Место: АЗС № 173 "Партнер Нефть" [21:12:47]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [21:12:47]line СНО: Общий режим [21:12:47]line Чек 258 30.10.2024 21:12 [21:12:47]line Смена: 545 ФФД: 1.0 [21:12:47]line ЗНМ: 0300000115 [21:12:47]line РНМ: 0000000000091782 [21:12:47]line Версия ККМ: 001 [21:12:47]line ФМ: 0000000000871767 [21:12:47]line ФД: 118198 [21:12:47]line ФПД: 103138544363473 [21:12:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211247&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118198&fm=103138544363473&tin=02508201610067®Number=0000000000091782&sum=91000 [21:12:47]written 0, free lines is 4095 [21:12:47]OFD Sender: Processing packet 118198 [packets to send 77, broken 76] [21:12:47]ProducePacketName [21:12:47]name=ofd_packets/00118198 [21:12:47]OFD Sender: To server: pG, [21:12:47]CommunicateWithHost lk.salyk.kg:30040 [21:12:47]ConnectInit lk.salyk.kg [21:12:47]Connected sock=10 [21:12: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 36 37 0C 01 00 00 F2 F9 04 01 9B 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4F A1 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CD 01 00 35 04 06 00 5D CD D0 4C A7 D1 FF B9 78 22 B6 FE C5 10 [21:12: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 36 37 4F 00 00 00 60 6D 47 00 CB 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B6 CD 01 00 F4 03 04 00 05 4D 22 67 B6 04 01 00 00 43 DC 65 BB 81 3D BC F7 [21:12:48]CommunicateWithHost err = 0 [21:12:48]CheckOFDResponse [21:12:48]1017 (14) - 77093643461234 [21:12:48]1041 (16) - 0000000000871767 [21:12:48]1040 (4) - 118198 [21:12:48]1012 (4) - 30.10.2024 15:13 [21:12:48]1206 (1) - 0 [21:12:48]OFD Sender: Remove packet 118198 [21:12:48]ProducePacketName [21:12:48]name=ofd_packets/00118198 [21:12:48]NVStorageDeleteData [21:12:48]Write to MH i2c: 01 00 00 8C 10 9C [21:12:48]Write i2c OK [21:12:48]MH_I2C_Read... [21:12:48]Read from MH i2c: 01 [21:12:48]MH_I2C_Read... [21:12:48]Read from MH i2c: 01 07 00 [21:12:48]MH_I2C_Read... [21:12:48]Read from MH i2c: 01 07 00 8C 10 00 00 00 00 00 B9 0C 68 [21:12:48]RasterBufferAndPrint [21:12:48]line [21:12:48]line [21:12:48]line [21:12:48]line [21:12:48]line [21:12:48]written 0, free lines is 3263 [21:12:48]MH_Cut [21:12:48]Write to MH i2c: D1 01 00 93 10 01 75 [21:12:48]Write i2c OK [21:12:48]MH_I2C_Read... [21:12:48]Read from MH i2c: D1 [21:12:48]MH_I2C_Read... [21:12:48]Read from MH i2c: D1 01 00 [21:12:48]MH_I2C_Read... [21:12:48]Read from MH i2c: D1 01 00 93 10 00 74 [21:12:48]Write to MH i2c: 01 00 00 94 10 A4 [21:12:48]Write i2c OK [21:12:48]MH_I2C_Read... [21:12:48]OFD Sender: No OFD packet to send [21:12:49]*** Cut start [21:12:49]*** Purtial cut [21:12:49]*** Stage 1: CUTSNS_PIN = 1 [21:12:49]Read from MH i2c: 01 [21:12:49]MH_I2C_Read... [21:12:49]*** Stop cut motor [21:12:49]*** Cut end [21:12:49]Read from MH i2c: 01 07 00 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 FF 0F B9 [21:12:49]process_action close_receipt done [21:12:49]requested_data is exist [21:12:49]produce_requested_data [21:12:49]requested_item fm.sn is exist - process it [21:12:49]wFMCommunicate request_size=4 [21:12:49]MH_SAM_APDU [21:12:49]CAPDU: 80 11 00 00 [21:12:49]Write to MH i2c: E2 08 00 95 10 80 11 00 00 00 00 00 00 1F [21:12:49]Write i2c OK [21:12:49]MH_I2C_Read... [21:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:49]Read from MH i2c: E2 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 17 00 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 17 00 95 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 76 [21:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:12:49]wFMCommunicate OK [21:12:49]requested_item fd.num is exist - process it [21:12:49]SAM_PROTO_GetFieldsCounters [21:12:49]wFMCommunicate request_size=4 [21:12:49]MH_SAM_APDU [21:12:49]CAPDU: 80 13 00 00 [21:12:49]Write to MH i2c: E2 08 00 96 10 80 13 00 00 00 00 00 00 22 [21:12:49]Write i2c OK [21:12:49]MH_I2C_Read... [21:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:49]Read from MH i2c: E2 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 62 00 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 62 00 96 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B6 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [21:12: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B6 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:49]wFMCommunicate OK [21:12:49]SAM_PROTO_GetFieldsCounters done [21:12:49]requested_item shift.num is exist - process it [21:12:49]requested_item shift.opened is exist - process it [21:12:49]req_shift_opened [21:12:49]FM_GetShiftState [21:12:49]SAM_PROTO_GetShiftState [21:12:49]wFMCommunicate request_size=4 [21:12:49]MH_SAM_APDU [21:12:49]CAPDU: 80 13 01 00 [21:12:49]Write to MH i2c: E2 08 00 97 10 80 13 01 00 00 00 00 00 24 [21:12:49]Write i2c OK [21:12:49]MH_I2C_Read... [21:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:49]Read from MH i2c: E2 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 0E 00 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 0E 00 97 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FC [21:12:49]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:12:49]wFMCommunicate OK [21:12:49]SAM_PROTO_GetShiftState done [21:12:49]FM_GetShiftState done [21:12:49]req_shift_opened done [21:12:49]requested_item shift.open_date is exist - process it [21:12:49]req_shift_open_date [21:12:49]req_shift_open_date done [21:12:49]produce_requested_data done [21:12:49]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118198,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [21:12:49]process_action_free close_receipt [21:12:49]json_value_free [21:12:49]json_value_free done [21:12:49]process_json_proto returns [21:12:49]Send response to host [21:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118198,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [21:12:49]free response buf [21:12:49]execute_script done [21:12:49]execute_script returns [21:12:49]free content buf [21:12:49]Sock 7.Close socket [21:12:49]Sock 7.Thread stoped [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]accept exits with 9 [21:15:43]New connection [21:15:43]New thread 3067133284 created [21:15:43]Thread 3067276644 joined [21:15:43]Waiting for new connection... [21:15:43] Sock 9.Parse request [21:15:43]Sock 9.Check first char [21:15:43]Sock 9.First char is OK [21:15:43]request: POST /json_proto HTTP/1.0 [21:15:43]Method: POST [21:15:43]URL: /json_proto [21:15:43]Method is POST - this is cgi request [21:15:43]url: /json_proto [21:15:43]query_string will be loaded in cgi processing [21:15:43]execute_cgi json_proto POST (null) [21:15:43]execute_cgi path=json_proto method=POST [21:15:43]POST find Content-Length [21:15:43]Host: 172.17.96.67:8080 [21:15:43]Content-Length: 682 [21:15:43]Content-Type: application/json [21:15:43] [21:15:43]POST finish read [21:15:43]Found Content-Length = 682 [21:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:15:43]execute_script... [21:15: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)246000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:15:43]POST & json_proto [21:15:43]process_json_proto [21:15:43]json parsed OK: [21:15:43]protocol is kg_v1.0 [21:15:43]action value=close_receipt [21:15:43]process_action close_receipt [21:15:43]cmd_close_receipt [21:15:43]MH_GetDate [21:15:43]Write to MH i2c: F0 00 00 98 10 97 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: F0 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: F0 09 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: F0 09 00 98 10 00 00 A2 22 67 47 6C 1F 67 04 [21:15:43]GetLastDocTimeStamp 1730322767 [21:15:43]current date 1730322944 [21:15:43]FM_GetShiftState [21:15:43]SAM_PROTO_GetShiftState [21:15:43]wFMCommunicate request_size=4 [21:15:43]MH_SAM_APDU [21:15:43]CAPDU: 80 13 01 00 [21:15:43]Write to MH i2c: E2 08 00 99 10 80 13 01 00 00 00 00 00 26 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0E 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0E 00 99 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 FE [21:15:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:15:43]wFMCommunicate OK [21:15:43]SAM_PROTO_GetShiftState done [21:15:43]FM_GetShiftState done [21:15:43]opened in 1730246605 [21:15:43]opened+sec_in_day 1730333005 [21:15:43]quantity*price = 100015 [21:15:43]sum+1 = 100017 [21:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 259 30.10.2024 21:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118199 ФПД: 31259515444674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211544&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118199&fm=31259515444674&tin=02508201610067®Number=0000000000091782&sum=100000 [21:15:44]StoreToDocumentArchive [21:15:44]shift 545 fd 118199 [21:15:44]save to /storage/0545/doc_00118199 [21:15:44]save last doc name /storage/0545/doc_00118199 to /storage/kkm_last_doc_name [21:15:44]save OK [21:15:44]Clear old archive folders... [21:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:44]tlvbuf is B6FA7230 [21:15:44]SAM_PROTO_ClearQueue [21:15:44]wFMCommunicate request_size=4 [21:15:44]MH_SAM_APDU [21:15:44]CAPDU: 80 09 00 00 [21:15:44]Write to MH i2c: E2 08 00 A6 10 80 09 00 00 00 00 00 00 28 [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:44]Read from MH i2c: E2 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: E2 03 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: E2 03 00 A6 10 00 90 00 2A [21:15:44]RAPDU: 90 00 [21:15:44]wFMCommunicate OK [21:15:44]SAM_PROTO_ClearQueue done [21:15:44]KKMCreateOFDPacket [21:15:44]OFDProtocolAddRootSTLVToBuf [21:15:44]FM_MakeSignedData [21:15:44]FM_MakeSignedData [21:15:44]SAM_PROTO_SignData [21:15:44]wFMCommunicate request_size=4 [21:15:44]MH_SAM_APDU [21:15:44]CAPDU: 80 0D 01 02 [21:15:44]Write to MH i2c: E2 08 00 A7 10 80 0D 01 02 00 00 00 00 30 [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:44]Read from MH i2c: E2 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: E2 03 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: E2 03 00 A7 10 00 90 00 2B [21:15:44]RAPDU: 90 00 [21:15:44]wFMCommunicate OK [21:15:44]wFMCommunicate request_size=255 [21:15:44]MH_SAM_APDU [21:15: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 32 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 03 01 00 00 F4 03 04 00 00 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CD 01 00 35 04 06 00 1C [21:15:44]Write to MH i2c: E2 02 01 A8 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 03 01 00 00 F4 03 04 00 00 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CD 01 00 35 04 06 00 1C 00 00 AF [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 A8 10 00 90 00 2C [21:15:45]RAPDU: 90 00 [21:15:45]wFMCommunicate OK [21:15:45]wFMCommunicate request_size=10 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 0D 02 02 05 6E 2C 50 5D C2 [21:15:45]Write to MH i2c: E2 0D 00 A9 10 80 0D 02 02 05 00 6E 2C 50 5D C2 00 00 46 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 A9 10 00 90 00 2D [21:15:45]RAPDU: 90 00 [21:15:45]wFMCommunicate OK [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 0D 03 02 [21:15:45]Write to MH i2c: E2 08 00 AA 10 80 0D 03 02 00 00 00 00 35 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 0B 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 0B 00 AA 10 00 47 23 C6 83 36 D1 DE 79 90 00 47 [21:15:45]RAPDU: 47 23 C6 83 36 D1 DE 79 90 00 [21:15:45]wFMCommunicate OK [21:15:45]SAM_PROTO_SignData done [21:15:45]FM_MakeSignedData done [21:15:45]CreateOFDProtocolMessage [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 11 00 00 [21:15:45]Write to MH i2c: E2 08 00 AB 10 80 11 00 00 00 00 00 00 35 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 17 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 17 00 AB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 8C [21:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:15:45]wFMCommunicate OK [21:15:45]CreateOFDProtocolMessage done [21:15:45]OFDSenderStorePacket 118199 [21:15:45]StoreOFDPacket docnum=118199 [21:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5F F4 07 01 EB DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 03 01 00 00 F4 03 04 00 00 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CD 01 00 35 04 06 00 1C 6E 2C 50 5D C2 47 23 C6 83 36 D1 DE 79 [21:15:45]CheckFolder [21:15:45]dirname=/storage/ofd_packets [21:15:45]CheckFolder done [21:15:45]ProducePacketName [21:15:45]name=ofd_packets/00118199 [21:15:45]NVStorageSaveData ofd_packets/00118199 [21:15:45]File name is /storage/ofd_packets/00118199 [21:15:45]Write 301 bytes [21:15:45]NVStorageSaveData done [21:15:45]OFDSenderStorePacket done [21:15:45]KKMCreateOFDPacket done [21:15:45]NVStorageSaveData kkm_last_timestamp [21:15:45]File name is /storage/kkm_last_timestamp [21:15:45]Write 4 bytes [21:15:45]NVStorageSaveData done [21:15:45]ExternCall_PrintAddStr [21:15:45]wPrintStart [21:15:45]Write to MH i2c: 01 00 00 AC 10 BC [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 AC 10 00 00 00 00 00 FF 0F D1 [21:15:45]RasterBufferAndPrint [21:15:45]line Счет N : (1)246000 [21:15:45]line ИНН: 02508201610067 [21:15:45]line Контрольно-Кассовый Чек [21:15:45]line ПРОДАЖА [21:15:45]line ТРК (МРК, ГНК) : 21 [21:15:45]line Товар: 2710124130 [21:15:45]line Аи-92-К-2 [21:15:45]line 14.950 * 66.90 [21:15:45]line = 1000.16 [21:15:45]line НДС 12% НСП 1% [21:15:45]line > о реализуемом товаре [21:15:45]line ОКРУГЛЕНИЕ: -0.16 [21:15:45]line ИТОГО: 1000.00 [21:15:45]line Внесено: 1000.00 [21:15:45]line СДАЧА: 0.00 [21:15:45]line НСП 1% : 8.85 [21:15:45]line НДС 12% : 106.21 [21:15:45]line Наличными: 1000.00 [21:15:45]line Безнал.: 0.00 [21:15:45]line Место: АЗС № 173 "Партнер Нефть" [21:15:45]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [21:15:45]line СНО: Общий режим [21:15:45]line Чек 259 30.10.2024 21:15 [21:15:45]line Смена: 545 ФФД: 1.0 [21:15:45]line ЗНМ: 0300000115 [21:15:45]line РНМ: 0000000000091782 [21:15:45]line Версия ККМ: 001 [21:15:45]line ФМ: 0000000000871767 [21:15:45]line ФД: 118199 [21:15:45]line ФПД: 31259515444674 [21:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211544&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118199&fm=31259515444674&tin=02508201610067®Number=0000000000091782&sum=100000 [21:15:45]OFD Sender: Processing packet 118199 [packets to send 77, broken 76] [21:15:45]ProducePacketName [21:15:45]name=ofd_packets/00118199 [21:15:45]OFD Sender: To server: pG, [21:15:45]CommunicateWithHost lk.salyk.kg:30040 [21:15:45]ConnectInit lk.salyk.kg [21:15:45]written 0, free lines is 4095 [21:15:45]Connected sock=10 [21:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5F F4 07 01 EB DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 03 01 00 00 F4 03 04 00 00 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CD 01 00 35 04 06 00 1C 6E 2C 50 5D C2 47 23 C6 83 36 D1 DE 79 [21:15: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 36 37 4F 00 00 00 EE E5 47 00 86 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B7 CD 01 00 F4 03 04 00 B7 4D 22 67 B6 04 01 00 00 79 11 6E 07 CB 80 B5 25 [21:15:45]CommunicateWithHost err = 0 [21:15:45]CheckOFDResponse [21:15:45]1017 (14) - 77093643461234 [21:15:45]1041 (16) - 0000000000871767 [21:15:45]1040 (4) - 118199 [21:15:45]1012 (4) - 30.10.2024 15:16 [21:15:45]1206 (1) - 0 [21:15:45]OFD Sender: Remove packet 118199 [21:15:45]ProducePacketName [21:15:45]name=ofd_packets/00118199 [21:15:45]NVStorageDeleteData [21:15:45]Write to MH i2c: 01 00 00 D6 10 E6 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 D6 10 00 00 00 00 00 B6 0C AF [21:15:45]RasterBufferAndPrint [21:15:45]line [21:15:45]line [21:15:45]line [21:15:45]line [21:15:45]line [21:15:45]written 0, free lines is 3259 [21:15:45]MH_Cut [21:15:45]Write to MH i2c: D1 01 00 DD 10 01 BF [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: D1 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: D1 01 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: D1 01 00 DD 10 00 BE [21:15:45]Write to MH i2c: 01 00 00 DE 10 EE [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:46]OFD Sender: No OFD packet to send [21:15:46]*** Cut start [21:15:46]*** Purtial cut [21:15:46]*** Stage 1: CUTSNS_PIN = 1 [21:15:47]Read from MH i2c: 01 [21:15:47]MH_I2C_Read... [21:15:47]*** Stop cut motor [21:15:47]*** Cut end [21:15:47]Read from MH i2c: 01 07 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: 01 07 00 DE 10 00 00 00 00 00 FF 0F 03 [21:15:47]process_action close_receipt done [21:15:47]requested_data is exist [21:15:47]produce_requested_data [21:15:47]requested_item fm.sn is exist - process it [21:15:47]wFMCommunicate request_size=4 [21:15:47]MH_SAM_APDU [21:15:47]CAPDU: 80 11 00 00 [21:15:47]Write to MH i2c: E2 08 00 DF 10 80 11 00 00 00 00 00 00 69 [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:47]Read from MH i2c: E2 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 17 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 17 00 DF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C0 [21:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:15:47]wFMCommunicate OK [21:15:47]requested_item fd.num is exist - process it [21:15:47]SAM_PROTO_GetFieldsCounters [21:15:47]wFMCommunicate request_size=4 [21:15:47]MH_SAM_APDU [21:15:47]CAPDU: 80 13 00 00 [21:15:47]Write to MH i2c: E2 08 00 E0 10 80 13 00 00 00 00 00 00 6C [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:47]Read from MH i2c: E2 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 62 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 62 00 E0 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B7 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [21:15: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B7 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:47]wFMCommunicate OK [21:15:47]SAM_PROTO_GetFieldsCounters done [21:15:47]requested_item shift.num is exist - process it [21:15:47]requested_item shift.opened is exist - process it [21:15:47]req_shift_opened [21:15:47]FM_GetShiftState [21:15:47]SAM_PROTO_GetShiftState [21:15:47]wFMCommunicate request_size=4 [21:15:47]MH_SAM_APDU [21:15:47]CAPDU: 80 13 01 00 [21:15:47]Write to MH i2c: E2 08 00 E1 10 80 13 01 00 00 00 00 00 6E [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:47]Read from MH i2c: E2 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 0E 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 0E 00 E1 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 46 [21:15:47]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:15:47]wFMCommunicate OK [21:15:47]SAM_PROTO_GetShiftState done [21:15:47]FM_GetShiftState done [21:15:47]req_shift_opened done [21:15:47]requested_item shift.open_date is exist - process it [21:15:47]req_shift_open_date [21:15:47]req_shift_open_date done [21:15:47]produce_requested_data done [21:15:47]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118199,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [21:15:47]process_action_free close_receipt [21:15:47]json_value_free [21:15:47]json_value_free done [21:15:47]process_json_proto returns [21:15:47]Send response to host [21:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118199,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [21:15:47]free response buf [21:15:47]execute_script done [21:15:47]execute_script returns [21:15:47]free content buf [21:15:47]Sock 9.Close socket [21:15:47]Sock 9.Thread stoped [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:21]accept exits with 7 [21:17:21]New connection [21:17:21]New thread 3067276644 created [21:17:21]Thread 3067133284 joined [21:17:21]Waiting for new connection... [21:17:21] Sock 7.Parse request [21:17:21]Sock 7.Check first char [21:17:21]Sock 7.First char is OK [21:17:21]request: POST /json_proto HTTP/1.0 [21:17:21]Method: POST [21:17:21]URL: /json_proto [21:17:21]Method is POST - this is cgi request [21:17:21]url: /json_proto [21:17:21]query_string will be loaded in cgi processing [21:17:21]execute_cgi json_proto POST (null) [21:17:21]execute_cgi path=json_proto method=POST [21:17:21]POST find Content-Length [21:17:21]Host: 172.17.96.67:8080 [21:17:21]Content-Length: 677 [21:17:21]Content-Type: application/json [21:17:21] [21:17:21]POST finish read [21:17:21]Found Content-Length = 677 [21:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:17:21]execute_script... [21:17: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)246001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:17:21]POST & json_proto [21:17:21]process_json_proto [21:17:21]json parsed OK: [21:17:21]protocol is kg_v1.0 [21:17:21]action value=close_receipt [21:17:21]process_action close_receipt [21:17:21]cmd_close_receipt [21:17:21]MH_GetDate [21:17:21]Write to MH i2c: F0 00 00 E2 10 E1 [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: F0 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: F0 09 00 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: F0 09 00 E2 10 00 62 A2 22 67 47 6C 1F 67 B0 [21:17:21]GetLastDocTimeStamp 1730322944 [21:17:21]current date 1730323042 [21:17:21]FM_GetShiftState [21:17:21]SAM_PROTO_GetShiftState [21:17:21]wFMCommunicate request_size=4 [21:17:21]MH_SAM_APDU [21:17:21]CAPDU: 80 13 01 00 [21:17:21]Write to MH i2c: E2 08 00 E3 10 80 13 01 00 00 00 00 00 70 [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:21]Read from MH i2c: E2 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: E2 0E 00 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: E2 0E 00 E3 10 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 48 [21:17:21]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:17:21]wFMCommunicate OK [21:17:21]SAM_PROTO_GetShiftState done [21:17:21]FM_GetShiftState done [21:17:21]opened in 1730246605 [21:17:21]opened+sec_in_day 1730333005 [21:17:21]quantity*price = 50041 [21:17:21]sum+1 = 50042 [21:17: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 260 30.10.2024 21:17 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118200 ФПД: 19040590950690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211722&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118200&fm=19040590950690&tin=02508201610067®Number=0000000000091782&sum=50000 [21:17:22]StoreToDocumentArchive [21:17:22]shift 545 fd 118200 [21:17:22]save to /storage/0545/doc_00118200 [21:17:22]save last doc name /storage/0545/doc_00118200 to /storage/kkm_last_doc_name [21:17:22]save OK [21:17:22]Clear old archive folders... [21:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:22]tlvbuf is 001AEA90 [21:17:22]SAM_PROTO_ClearQueue [21:17:22]wFMCommunicate request_size=4 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 09 00 00 [21:17:22]Write to MH i2c: E2 08 00 F0 10 80 09 00 00 00 00 00 00 72 [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:22]Read from MH i2c: E2 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 F0 10 00 90 00 74 [21:17:22]RAPDU: 90 00 [21:17:22]wFMCommunicate OK [21:17:22]SAM_PROTO_ClearQueue done [21:17:22]KKMCreateOFDPacket [21:17:22]OFDProtocolAddRootSTLVToBuf [21:17:22]FM_MakeSignedData [21:17:22]FM_MakeSignedData [21:17:22]SAM_PROTO_SignData [21:17:22]wFMCommunicate request_size=4 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 0D 01 02 [21:17:22]Write to MH i2c: E2 08 00 F1 10 80 0D 01 02 00 00 00 00 7A [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:22]Read from MH i2c: E2 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 F1 10 00 90 00 75 [21:17:22]RAPDU: 90 00 [21:17:22]wFMCommunicate OK [21:17:22]wFMCommunicate request_size=255 [21:17:22]MH_SAM_APDU [21:17: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 62 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CD 01 00 35 04 06 00 11 [21:17:22]Write to MH i2c: E2 02 01 F2 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 62 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CD 01 00 35 04 06 00 11 00 00 58 [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 F2 10 00 90 00 76 [21:17:23]RAPDU: 90 00 [21:17:23]wFMCommunicate OK [21:17:23]wFMCommunicate request_size=10 [21:17:23]MH_SAM_APDU [21:17:23]CAPDU: 80 0D 02 02 05 51 3B A8 F1 22 [21:17:23]Write to MH i2c: E2 0D 00 F3 10 80 0D 02 02 05 00 51 3B A8 F1 22 00 00 CE [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [21:17:23]RAPDU: 90 00 [21:17:23]wFMCommunicate OK [21:17:23]wFMCommunicate request_size=4 [21:17:23]MH_SAM_APDU [21:17:23]CAPDU: 80 0D 03 02 [21:17:23]Write to MH i2c: E2 08 00 F4 10 80 0D 03 02 00 00 00 00 7F [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 0B 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 0B 00 F4 10 00 7F A1 0D E0 AD 98 3B 25 90 00 32 [21:17:23]RAPDU: 7F A1 0D E0 AD 98 3B 25 90 00 [21:17:23]wFMCommunicate OK [21:17:23]SAM_PROTO_SignData done [21:17:23]FM_MakeSignedData done [21:17:23]CreateOFDProtocolMessage [21:17:23]wFMCommunicate request_size=4 [21:17:23]MH_SAM_APDU [21:17:23]CAPDU: 80 11 00 00 [21:17:23]Write to MH i2c: E2 08 00 F5 10 80 11 00 00 00 00 00 00 7F [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 17 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 17 00 F5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D6 [21:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:17:23]wFMCommunicate OK [21:17:23]CreateOFDProtocolMessage done [21:17:23]OFDSenderStorePacket 118200 [21:17:23]StoreOFDPacket docnum=118200 [21:17:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0F 46 07 01 39 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 62 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CD 01 00 35 04 06 00 11 51 3B A8 F1 22 7F A1 0D E0 AD 98 3B 25 [21:17:23]CheckFolder [21:17:23]dirname=/storage/ofd_packets [21:17:23]CheckFolder done [21:17:23]ProducePacketName [21:17:23]name=ofd_packets/00118200 [21:17:23]NVStorageSaveData ofd_packets/00118200 [21:17:23]File name is /storage/ofd_packets/00118200 [21:17:23]Write 301 bytes [21:17:23]NVStorageSaveData done [21:17:23]OFDSenderStorePacket done [21:17:23]KKMCreateOFDPacket done [21:17:23]NVStorageSaveData kkm_last_timestamp [21:17:23]File name is /storage/kkm_last_timestamp [21:17:23]Write 4 bytes [21:17:23]NVStorageSaveData done [21:17:23]ExternCall_PrintAddStr [21:17:23]wPrintStart [21:17:23]Write to MH i2c: 01 00 00 F6 10 06 [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: 01 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: 01 07 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: 01 07 00 F6 10 00 00 00 00 00 FF 0F 1B [21:17:23]RasterBufferAndPrint [21:17:23]line Счет N : (1)246001 [21:17:23]line ИНН: 02508201610067 [21:17:23]line Контрольно-Кассовый Чек [21:17:23]line ПРОДАЖА [21:17:23]line ТРК (МРК, ГНК) : 11 [21:17:23]line Товар: 2710124130 [21:17:23]line Аи-92-К-2 [21:17:23]line 7.480 * 66.90 [21:17:23]line = 500.41 [21:17:23]line НДС 12% НСП 1% [21:17:23]line > о реализуемом товаре [21:17:23]line ОКРУГЛЕНИЕ: -0.41 [21:17:23]line ИТОГО: 500.00 [21:17:23]line Внесено: 500.00 [21:17:23]line СДАЧА: 0.00 [21:17:23]line НСП 1% : 4.43 [21:17:23]line НДС 12% : 53.14 [21:17:23]line Наличными: 500.00 [21:17:23]line Безнал.: 0.00 [21:17:23]line Место: АЗС № 173 "Партнер Нефть" [21:17:23]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [21:17:23]line СНО: Общий режим [21:17:23]line Чек 260 30.10.2024 21:17 [21:17:23]line Смена: 545 ФФД: 1.0 [21:17:23]line ЗНМ: 0300000115 [21:17:23]line РНМ: 0000000000091782 [21:17:23]line Версия ККМ: 001 [21:17:23]line ФМ: 0000000000871767 [21:17:23]line ФД: 118200 [21:17:23]line ФПД: 19040590950690 [21:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211722&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118200&fm=19040590950690&tin=02508201610067®Number=0000000000091782&sum=50000 [21:17:23]written 0, free lines is 4095 [21:17:23]OFD Sender: Processing packet 118200 [packets to send 77, broken 76] [21:17:23]ProducePacketName [21:17:23]name=ofd_packets/00118200 [21:17:23]OFD Sender: To server: pG, [21:17:23]CommunicateWithHost lk.salyk.kg:30040 [21:17:23]ConnectInit lk.salyk.kg [21:17:23]Connected sock=10 [21:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0F 46 07 01 39 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 62 A2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CD 01 00 35 04 06 00 11 51 3B A8 F1 22 7F A1 0D E0 AD 98 3B 25 [21:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 C2 88 47 00 4B F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B8 CD 01 00 F4 03 04 00 19 4E 22 67 B6 04 01 00 00 EE 20 71 EE 22 68 18 25 [21:17:23]CommunicateWithHost err = 0 [21:17:23]CheckOFDResponse [21:17:23]1017 (14) - 77093643461234 [21:17:23]1041 (16) - 0000000000871767 [21:17:23]1040 (4) - 118200 [21:17:23]1012 (4) - 30.10.2024 15:17 [21:17:23]1206 (1) - 0 [21:17:23]OFD Sender: Remove packet 118200 [21:17:23]ProducePacketName [21:17:23]name=ofd_packets/00118200 [21:17:23]NVStorageDeleteData [21:17:24]Write to MH i2c: 01 00 00 20 11 31 [21:17:24]Write i2c OK [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: 01 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: 01 07 00 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: 01 07 00 20 11 00 00 00 00 00 B2 0C F6 [21:17:24]RasterBufferAndPrint [21:17:24]line [21:17:24]line [21:17:24]line [21:17:24]line [21:17:24]line [21:17:24]written 0, free lines is 3256 [21:17:24]MH_Cut [21:17:24]Write to MH i2c: D1 01 00 27 11 01 0A [21:17:24]Write i2c OK [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: D1 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: D1 01 00 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: D1 01 00 27 11 00 09 [21:17:24]Write to MH i2c: 01 00 00 28 11 39 [21:17:24]Write i2c OK [21:17:24]MH_I2C_Read... [21:17:24]OFD Sender: No OFD packet to send [21:17:24]*** Cut start [21:17:24]*** Purtial cut [21:17:24]*** Stage 1: CUTSNS_PIN = 1 [21:17:25]Read from MH i2c: 01 [21:17:25]MH_I2C_Read... [21:17:25]*** Stop cut motor [21:17:25]*** Cut end [21:17:25]Read from MH i2c: 01 07 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: 01 07 00 28 11 00 00 00 00 00 FF 0F 4E [21:17:25]process_action close_receipt done [21:17:25]requested_data is exist [21:17:25]produce_requested_data [21:17:25]requested_item fm.sn is exist - process it [21:17:25]wFMCommunicate request_size=4 [21:17:25]MH_SAM_APDU [21:17:25]CAPDU: 80 11 00 00 [21:17:25]Write to MH i2c: E2 08 00 29 11 80 11 00 00 00 00 00 00 B4 [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:25]Read from MH i2c: E2 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 17 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 17 00 29 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 0B [21:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:17:25]wFMCommunicate OK [21:17:25]requested_item fd.num is exist - process it [21:17:25]SAM_PROTO_GetFieldsCounters [21:17:25]wFMCommunicate request_size=4 [21:17:25]MH_SAM_APDU [21:17:25]CAPDU: 80 13 00 00 [21:17:25]Write to MH i2c: E2 08 00 2A 11 80 13 00 00 00 00 00 00 B7 [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:25]Read from MH i2c: E2 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 62 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 62 00 2A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B8 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [21:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B8 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:25]wFMCommunicate OK [21:17:25]SAM_PROTO_GetFieldsCounters done [21:17:25]requested_item shift.num is exist - process it [21:17:25]requested_item shift.opened is exist - process it [21:17:25]req_shift_opened [21:17:25]FM_GetShiftState [21:17:25]SAM_PROTO_GetShiftState [21:17:25]wFMCommunicate request_size=4 [21:17:25]MH_SAM_APDU [21:17:25]CAPDU: 80 13 01 00 [21:17:25]Write to MH i2c: E2 08 00 2B 11 80 13 01 00 00 00 00 00 B9 [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:25]Read from MH i2c: E2 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 0E 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 0E 00 2B 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 91 [21:17:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:17:25]wFMCommunicate OK [21:17:25]SAM_PROTO_GetShiftState done [21:17:25]FM_GetShiftState done [21:17:25]req_shift_opened done [21:17:25]requested_item shift.open_date is exist - process it [21:17:25]req_shift_open_date [21:17:25]req_shift_open_date done [21:17:25]produce_requested_data done [21:17:25]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118200,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [21:17:25]process_action_free close_receipt [21:17:25]json_value_free [21:17:25]json_value_free done [21:17:25]process_json_proto returns [21:17:25]Send response to host [21:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118200,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [21:17:25]free response buf [21:17:25]execute_script done [21:17:25]execute_script returns [21:17:25]free content buf [21:17:25]Sock 7.Close socket [21:17:25]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:57]accept exits with 9 [21:22:57]New connection [21:22:57]New thread 3067133284 created [21:22:57]Thread 3067276644 joined [21:22:57]Waiting for new connection... [21:22:57] Sock 9.Parse request [21:22:57]Sock 9.Check first char [21:22:57]Sock 9.First char is OK [21:22:57]request: POST /json_proto HTTP/1.0 [21:22:57]Method: POST [21:22:57]URL: /json_proto [21:22:57]Method is POST - this is cgi request [21:22:57]url: /json_proto [21:22:57]query_string will be loaded in cgi processing [21:22:57]execute_cgi json_proto POST (null) [21:22:57]execute_cgi path=json_proto method=POST [21:22:57]POST find Content-Length [21:22:57]Host: 172.17.96.67:8080 [21:22:57]Content-Length: 677 [21:22:57]Content-Type: application/json [21:22:57] [21:22:57]POST finish read [21:22:57]Found Content-Length = 677 [21:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:22:57]execute_script... [21:22: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)246002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:22:57]POST & json_proto [21:22:57]process_json_proto [21:22:57]json parsed OK: [21:22:57]protocol is kg_v1.0 [21:22:57]action value=close_receipt [21:22:57]process_action close_receipt [21:22:57]cmd_close_receipt [21:22:57]MH_GetDate [21:22:57]Write to MH i2c: F0 00 00 2C 11 2C [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: F0 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: F0 09 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: F0 09 00 2C 11 00 B2 A3 22 67 47 6C 1F 67 4C [21:22:57]GetLastDocTimeStamp 1730323042 [21:22:57]current date 1730323378 [21:22:57]FM_GetShiftState [21:22:57]SAM_PROTO_GetShiftState [21:22:57]wFMCommunicate request_size=4 [21:22:57]MH_SAM_APDU [21:22:57]CAPDU: 80 13 01 00 [21:22:57]Write to MH i2c: E2 08 00 2D 11 80 13 01 00 00 00 00 00 BB [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:57]Read from MH i2c: E2 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 0E 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 0E 00 2D 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 93 [21:22:57]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:22:57]wFMCommunicate OK [21:22:57]SAM_PROTO_GetShiftState done [21:22:57]FM_GetShiftState done [21:22:57]opened in 1730246605 [21:22:57]opened+sec_in_day 1730333005 [21:22:57]quantity*price = 20003 [21:22:57]sum+1 = 20004 [21:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 261 30.10.2024 21:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118201 ФПД: 281451933448541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T212258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118201&fm=281451933448541&tin=02508201610067®Number=0000000000091782&sum=20000 [21:22:58]StoreToDocumentArchive [21:22:58]shift 545 fd 118201 [21:22:58]save to /storage/0545/doc_00118201 [21:22:58]save last doc name /storage/0545/doc_00118201 to /storage/kkm_last_doc_name [21:22:58]save OK [21:22:58]Clear old archive folders... [21:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:58]tlvbuf is 00288A60 [21:22:58]SAM_PROTO_ClearQueue [21:22:58]wFMCommunicate request_size=4 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 09 00 00 [21:22:58]Write to MH i2c: E2 08 00 3A 11 80 09 00 00 00 00 00 00 BD [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:58]Read from MH i2c: E2 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 3A 11 00 90 00 BF [21:22:58]RAPDU: 90 00 [21:22:58]wFMCommunicate OK [21:22:58]SAM_PROTO_ClearQueue done [21:22:58]KKMCreateOFDPacket [21:22:58]OFDProtocolAddRootSTLVToBuf [21:22:58]FM_MakeSignedData [21:22:58]FM_MakeSignedData [21:22:58]SAM_PROTO_SignData [21:22:58]wFMCommunicate request_size=4 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 0D 01 02 [21:22:58]Write to MH i2c: E2 08 00 3B 11 80 0D 01 02 00 00 00 00 C5 [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:58]Read from MH i2c: E2 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 3B 11 00 90 00 C0 [21:22:58]RAPDU: 90 00 [21:22:58]wFMCommunicate OK [21:22:58]wFMCommunicate request_size=255 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 01 00 00 F4 03 04 00 B2 A3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CD 01 00 35 04 06 00 FF [21:22:58]Write to MH i2c: E2 02 01 3C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 01 00 00 F4 03 04 00 B2 A3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CD 01 00 35 04 06 00 FF 00 00 A6 [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 3C 11 00 90 00 C1 [21:22:59]RAPDU: 90 00 [21:22:59]wFMCommunicate OK [21:22:59]wFMCommunicate request_size=10 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 0D 02 02 05 FA A2 83 B9 5D [21:22:59]Write to MH i2c: E2 0D 00 3D 11 80 0D 02 02 05 00 FA A2 83 B9 5D 00 00 07 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 3D 11 00 90 00 C2 [21:22:59]RAPDU: 90 00 [21:22:59]wFMCommunicate OK [21:22:59]wFMCommunicate request_size=4 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 0D 03 02 [21:22:59]Write to MH i2c: E2 08 00 3E 11 80 0D 03 02 00 00 00 00 CA [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0B 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0B 00 3E 11 00 49 14 8B 30 42 87 63 1C 90 00 2B [21:22:59]RAPDU: 49 14 8B 30 42 87 63 1C 90 00 [21:22:59]wFMCommunicate OK [21:22:59]SAM_PROTO_SignData done [21:22:59]FM_MakeSignedData done [21:22:59]CreateOFDProtocolMessage [21:22:59]wFMCommunicate request_size=4 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 11 00 00 [21:22:59]Write to MH i2c: E2 08 00 3F 11 80 11 00 00 00 00 00 00 CA [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 17 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 17 00 3F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 21 [21:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:22:59]wFMCommunicate OK [21:22:59]CreateOFDProtocolMessage done [21:22:59]OFDSenderStorePacket 118201 [21:22:59]StoreOFDPacket docnum=118201 [21:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 25 09 07 01 E2 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 32 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 05 01 00 00 F4 03 04 00 B2 A3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CD 01 00 35 04 06 00 FF FA A2 83 B9 5D 49 14 8B 30 42 87 63 1C [21:22:59]CheckFolder [21:22:59]dirname=/storage/ofd_packets [21:22:59]CheckFolder done [21:22:59]ProducePacketName [21:22:59]name=ofd_packets/00118201 [21:22:59]NVStorageSaveData ofd_packets/00118201 [21:22:59]File name is /storage/ofd_packets/00118201 [21:22:59]Write 301 bytes [21:22:59]NVStorageSaveData done [21:22:59]OFDSenderStorePacket done [21:22:59]KKMCreateOFDPacket done [21:22:59]NVStorageSaveData kkm_last_timestamp [21:22:59]File name is /storage/kkm_last_timestamp [21:22:59]Write 4 bytes [21:22:59]NVStorageSaveData done [21:22:59]ExternCall_PrintAddStr [21:22:59]wPrintStart [21:22:59]Write to MH i2c: 01 00 00 40 11 51 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: 01 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: 01 07 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 FF 0F 66 [21:22:59]RasterBufferAndPrint [21:22:59]line Счет N : (1)246002 [21:22:59]line ИНН: 02508201610067 [21:22:59]line Контрольно-Кассовый Чек [21:22:59]line ПРОДАЖА [21:22:59]line ТРК (МРК, ГНК) : 21 [21:22:59]line Товар: 2710124130 [21:22:59]line Аи-92-К-2 [21:22:59]line 2.990 * 66.90 [21:22:59]line = 200.03 [21:22:59]line НДС 12% НСП 1% [21:22:59]line > о реализуемом товаре [21:22:59]line ОКРУГЛЕНИЕ: -0.03 [21:22:59]line ИТОГО: 200.00 [21:22:59]line Внесено: 200.00 [21:22:59]line СДАЧА: 0.00 [21:22:59]line НСП 1% : 1.77 [21:22:59]line НДС 12% : 21.24 [21:22:59]line Наличными: 200.00 [21:22:59]line Безнал.: 0.00 [21:22:59]line Место: АЗС № 173 "Партнер Нефть" [21:22:59]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [21:22:59]line СНО: Общий режим [21:22:59]line Чек 261 30.10.2024 21:22 [21:22:59]line Смена: 545 ФФД: 1.0 [21:22:59]line ЗНМ: 0300000115 [21:22:59]line РНМ: 0000000000091782 [21:22:59]line Версия ККМ: 001 [21:22:59]line ФМ: 0000000000871767 [21:22:59]line ФД: 118201 [21:22:59]line ФПД: 281451933448541 [21:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T212258&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118201&fm=281451933448541&tin=02508201610067®Number=0000000000091782&sum=20000 [21:22:59]OFD Sender: Processing packet 118201 [packets to send 77, broken 76] [21:22:59]ProducePacketName [21:22:59]name=ofd_packets/00118201 [21:22:59]OFD Sender: To server: pG, [21:22:59]CommunicateWithHost lk.salyk.kg:30040 [21:22:59]ConnectInit lk.salyk.kg [21:22:59]written 0, free lines is 4095 [21:22:59]Connected sock=10 [21:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 25 09 07 01 E2 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 32 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 05 01 00 00 F4 03 04 00 B2 A3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 B9 CD 01 00 35 04 06 00 FF FA A2 83 B9 5D 49 14 8B 30 42 87 63 1C [21:23: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 36 37 4F 00 00 00 DA FF 47 00 80 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 36 37 10 04 04 00 B9 CD 01 00 F4 03 04 00 69 4F 22 67 B6 04 01 00 00 EF 8B 5A 53 8C BD 73 D3 [21:23:00]CommunicateWithHost err = 0 [21:23:00]CheckOFDResponse [21:23:00]1017 (14) - 77093643461234 [21:23:00]1041 (16) - 0000000000871767 [21:23:00]1040 (4) - 118201 [21:23:00]1012 (4) - 30.10.2024 15:23 [21:23:00]1206 (1) - 0 [21:23:00]OFD Sender: Remove packet 118201 [21:23:00]ProducePacketName [21:23:00]name=ofd_packets/00118201 [21:23:00]NVStorageDeleteData [21:23:00]Write to MH i2c: 01 00 00 6A 11 7B [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 BE 0C 4C [21:23:00]RasterBufferAndPrint [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]written 0, free lines is 3267 [21:23:00]MH_Cut [21:23:00]Write to MH i2c: D1 01 00 71 11 01 54 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 01 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 01 00 71 11 00 53 [21:23:00]Write to MH i2c: 01 00 00 72 11 83 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]OFD Sender: No OFD packet to send [21:23:00]*** Cut start [21:23:00]*** Purtial cut [21:23:00]*** Stage 1: CUTSNS_PIN = 1 [21:23:01]Read from MH i2c: 01 [21:23:01]MH_I2C_Read... [21:23:01]*** Stop cut motor [21:23:01]*** Cut end [21:23:01]Read from MH i2c: 01 07 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 07 00 72 11 00 00 00 00 00 FF 0F 98 [21:23:01]process_action close_receipt done [21:23:01]requested_data is exist [21:23:01]produce_requested_data [21:23:01]requested_item fm.sn is exist - process it [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 11 00 00 [21:23:01]Write to MH i2c: E2 08 00 73 11 80 11 00 00 00 00 00 00 FE [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 17 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 17 00 73 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 55 [21:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [21:23:01]wFMCommunicate OK [21:23:01]requested_item fd.num is exist - process it [21:23:01]SAM_PROTO_GetFieldsCounters [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 13 00 00 [21:23:01]Write to MH i2c: E2 08 00 74 11 80 13 00 00 00 00 00 00 01 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 62 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 62 00 74 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B9 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [21:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 B9 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_GetFieldsCounters done [21:23:01]requested_item shift.num is exist - process it [21:23:01]requested_item shift.opened is exist - process it [21:23:01]req_shift_opened [21:23:01]FM_GetShiftState [21:23:01]SAM_PROTO_GetShiftState [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 13 01 00 [21:23:01]Write to MH i2c: E2 08 00 75 11 80 13 01 00 00 00 00 00 03 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 0E 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 0E 00 75 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DB [21:23:01]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_GetShiftState done [21:23:01]FM_GetShiftState done [21:23:01]req_shift_opened done [21:23:01]requested_item shift.open_date is exist - process it [21:23:01]req_shift_open_date [21:23:01]req_shift_open_date done [21:23:01]produce_requested_data done [21:23:01]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118201,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [21:23:01]process_action_free close_receipt [21:23:01]json_value_free [21:23:01]json_value_free done [21:23:01]process_json_proto returns [21:23:01]Send response to host [21:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118201,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [21:23:01]free response buf [21:23:01]execute_script done [21:23:01]execute_script returns [21:23:01]free content buf [21:23:01]Sock 9.Close socket [21:23:01]Sock 9.Thread stoped [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:02]accept exits with 7 [22:00:02]New connection [22:00:02]New thread 3067276644 created [22:00:02]Thread 3067133284 joined [22:00:02]Waiting for new connection... [22:00:02] Sock 7.Parse request [22:00:02]Sock 7.Check first char [22:00:02]Sock 7.First char is OK [22:00:02]request: POST /json_proto HTTP/1.0 [22:00:02]Method: POST [22:00:02]URL: /json_proto [22:00:02]Method is POST - this is cgi request [22:00:02]url: /json_proto [22:00:02]query_string will be loaded in cgi processing [22:00:02]execute_cgi json_proto POST (null) [22:00:02]execute_cgi path=json_proto method=POST [22:00:02]POST find Content-Length [22:00:02]Host: 172.17.96.67:8080 [22:00:02]Content-Length: 677 [22:00:02]Content-Type: application/json [22:00:02] [22:00:02]POST finish read [22:00:02]Found Content-Length = 677 [22:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [22:00:02]execute_script... [22:00: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)246003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [22:00:02]POST & json_proto [22:00:02]process_json_proto [22:00:02]json parsed OK: [22:00:02]protocol is kg_v1.0 [22:00:02]action value=close_receipt [22:00:02]process_action close_receipt [22:00:02]cmd_close_receipt [22:00:02]MH_GetDate [22:00:02]Write to MH i2c: F0 00 00 76 11 76 [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 09 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 09 00 76 11 00 64 AC 22 67 47 6C 1F 67 51 [22:00:02]GetLastDocTimeStamp 1730323378 [22:00:02]current date 1730325604 [22:00:02]FM_GetShiftState [22:00:02]SAM_PROTO_GetShiftState [22:00:02]wFMCommunicate request_size=4 [22:00:02]MH_SAM_APDU [22:00:02]CAPDU: 80 13 01 00 [22:00:02]Write to MH i2c: E2 08 00 77 11 80 13 01 00 00 00 00 00 05 [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:02]Read from MH i2c: E2 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 77 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 DD [22:00:02]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:00:02]wFMCommunicate OK [22:00:02]SAM_PROTO_GetShiftState done [22:00:02]FM_GetShiftState done [22:00:02]opened in 1730246605 [22:00:02]opened+sec_in_day 1730333005 [22:00:02]quantity*price = 20003 [22:00:02]sum+1 = 20004 [22:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре [22:00:04]line ОКРУГЛЕНИЕ: -0.03 [22:00:04]line ИТОГО: 200.00 [22:00:04]line Внесено: 200.00 [22:00:04]line СДАЧА: 0.00 [22:00:04]line НСП 1% : 1.77 [22:00:04]line НДС 12% : 21.24 [22:00:04]line Наличными: 200.00 [22:00:04]line Безнал.: 0.00 [22:00:04]line Место: АЗС № 173 "Партнер Нефть" [22:00:04]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:00:04]line СНО: Общий режим [22:00:04]line Чек 262 30.10.2024 22:00 [22:00:04]line Смена: 545 ФФД: 1.0 [22:00:04]line ЗНМ: 0300000115 [22:00:04]line РНМ: 0000000000091782 [22:00:04]line Версия ККМ: 001 [22:00:04]line ФМ: 0000000000871767 [22:00:04]line ФД: 118202 [22:00:04]line ФПД: 93766047200177 [22:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T220004&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118202&fm=93766047200177&tin=02508201610067®Number=0000000000091782&sum=20000 [22:00:04]written 0, free lines is 4095 [22:00:04]OFD Sender: Processing packet 118202 [packets to send 77, broken 76] [22:00:04]ProducePacketName [22:00:04]name=ofd_packets/00118202 [22:00:04]OFD Sender: To server: pG, [22:00:04]CommunicateWithHost lk.salyk.kg:30040 [22:00:04]ConnectInit lk.salyk.kg [22:00:05]Connected sock=11 [22:00: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 36 37 0F 01 00 00 36 AD 07 01 F3 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 64 AC 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BA CD 01 00 35 04 06 00 55 47 9B EF 73 B1 ED 04 24 4E 9C 71 7B C4 [22:00: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 36 37 4F 00 00 00 39 3E 47 00 15 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BA CD 01 00 F4 03 04 00 1A 58 22 67 B6 04 01 00 00 8F 10 B4 1A 43 5B 16 D0 [22:00:05]CommunicateWithHost err = 0 [22:00:05]CheckOFDResponse [22:00:05]1017 (14) - 77093643461234 [22:00:05]1041 (16) - 0000000000871767 [22:00:05]1040 (4) - 118202 [22:00:05]1012 (4) - 30.10.2024 16:00 [22:00:05]1206 (1) - 0 [22:00:05]OFD Sender: Remove packet 118202 [22:00:05]ProducePacketName [22:00:05]name=ofd_packets/00118202 [22:00:05]NVStorageDeleteData [22:00:05]Write to MH i2c: 01 00 00 B4 11 C5 [22:00:05]Write i2c OK [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: 01 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: 01 07 00 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: 01 07 00 B4 11 00 00 00 00 00 B6 0C 8E [22:00:05]RasterBufferAndPrint [22:00:05]line [22:00:05]line [22:00:05]line [22:00:05]line [22:00:05]line [22:00:05]written 0, free lines is 3262 [22:00:05]MH_Cut [22:00:05]Write to MH i2c: D1 01 00 BB 11 01 9E [22:00:05]Write i2c OK [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: D1 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: D1 01 00 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: D1 01 00 BB 11 00 9D [22:00:05]Write to MH i2c: 01 00 00 BC 11 CD [22:00:05]Write i2c OK [22:00:05]MH_I2C_Read... [22:00:05]OFD Sender: No OFD packet to send [22:00:06]*** Cut start [22:00:06]*** Purtial cut [22:00:06]*** Stage 1: CUTSNS_PIN = 1 [22:00:06]Read from MH i2c: 01 [22:00:06]MH_I2C_Read... [22:00:06]*** Stop cut motor [22:00:06]*** Cut end [22:00:06]Read from MH i2c: 01 07 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: 01 07 00 BC 11 00 00 00 00 00 FF 0F E2 [22:00:06]process_action close_receipt done [22:00:06]requested_data is exist [22:00:06]produce_requested_data [22:00:06]requested_item fm.sn is exist - process it [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 11 00 00 [22:00:06]Write to MH i2c: E2 08 00 BD 11 80 11 00 00 00 00 00 00 48 [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 17 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 17 00 BD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 9F [22:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:00:06]wFMCommunicate OK [22:00:06]requested_item fd.num is exist - process it [22:00:06]SAM_PROTO_GetFieldsCounters [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 13 00 00 [22:00:06]Write to MH i2c: E2 08 00 BE 11 80 13 00 00 00 00 00 00 4B [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 62 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 62 00 BE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BA CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [22:00: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BA CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:06]wFMCommunicate OK [22:00:06]SAM_PROTO_GetFieldsCounters done [22:00:06]requested_item shift.num is exist - process it [22:00:06]requested_item shift.opened is exist - process it [22:00:06]req_shift_opened [22:00:06]FM_GetShiftState [22:00:06]SAM_PROTO_GetShiftState [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 13 01 00 [22:00:06]Write to MH i2c: E2 08 00 BF 11 80 13 01 00 00 00 00 00 4D [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 0E 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 0E 00 BF 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 25 [22:00:06]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:00:06]wFMCommunicate OK [22:00:06]SAM_PROTO_GetShiftState done [22:00:06]FM_GetShiftState done [22:00:06]req_shift_opened done [22:00:06]requested_item shift.open_date is exist - process it [22:00:06]req_shift_open_date [22:00:06]req_shift_open_date done [22:00:06]produce_requested_data done [22:00:06]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118202,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [22:00:06]process_action_free close_receipt [22:00:06]json_value_free [22:00:06]json_value_free done [22:00:06]process_json_proto returns [22:00:06]Send response to host [22:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118202,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [22:00:06]free response buf [22:00:06]execute_script done [22:00:06]execute_script returns [22:00:06]free content buf [22:00:06]Sock 7.Close socket [22:00:06]Sock 7.Thread stoped [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:08]ConnectInit Can't connect to host [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]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: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:45]ConnectInit Can't connect to host [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:13]accept exits with 10 [22:18:13]New connection [22:18:13]New thread 3067133284 created [22:18:13]Thread 3067276644 joined [22:18:13]Waiting for new connection... [22:18:13] Sock 10.Parse request [22:18:13]Sock 10.Check first char [22:18:13]Sock 10.First char is OK [22:18:13]request: POST /json_proto HTTP/1.0 [22:18:13]Method: POST [22:18:13]URL: /json_proto [22:18:13]Method is POST - this is cgi request [22:18:13]url: /json_proto [22:18:13]query_string will be loaded in cgi processing [22:18:13]execute_cgi json_proto POST (null) [22:18:13]execute_cgi path=json_proto method=POST [22:18:13]POST find Content-Length [22:18:13]Host: 172.17.96.67:8080 [22:18:13]Content-Length: 682 [22:18:13]Content-Type: application/json [22:18:13] [22:18:13]POST finish read [22:18:13]Found Content-Length = 682 [22:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:13]execute_script... [22:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:13]POST & json_proto [22:18:13]process_json_proto [22:18:13]json parsed OK: [22:18:13]protocol is kg_v1.0 [22:18:13]action value=close_receipt [22:18:13]process_action close_receipt [22:18:13]cmd_close_receipt [22:18:13]MH_GetDate [22:18:13]Write to MH i2c: F0 00 00 C0 11 C0 [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 09 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 09 00 C0 11 00 A7 B0 22 67 47 6C 1F 67 E2 [22:18:13]GetLastDocTimeStamp 1730325604 [22:18:13]current date 1730326695 [22:18:13]FM_GetShiftState [22:18:13]SAM_PROTO_GetShiftState [22:18:13]wFMCommunicate request_size=4 [22:18:13]MH_SAM_APDU [22:18:13]CAPDU: 80 13 01 00 [22:18:13]Write to MH i2c: E2 08 00 C1 11 80 13 01 00 00 00 00 00 4F [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:13]Read from MH i2c: E2 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 C1 11 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 27 [22:18:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:18:13]wFMCommunicate OK [22:18:13]SAM_PROTO_GetShiftState done [22:18:13]FM_GetShiftState done [22:18:13]opened in 1730246605 [22:18:13]opened+sec_in_day 1730333005 [22:18:13]quantity*price = 100015 [22:18:13]sum+1 = 100017 [22:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 263 30.10.2024 22:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118203 ФПД: 104849620410347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T221815&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118203&fm=104849620410347&tin=02508201610067®Number=0000000000091782&sum=100000 [22:18:14]StoreToDocumentArchive [22:18:14]shift 545 fd 118203 [22:18:14]save to /storage/0545/doc_00118203 [22:18:14]save last doc name /storage/0545/doc_00118203 to /storage/kkm_last_doc_name [22:18:14]save OK [22:18:14]Clear old archive folders... [22:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:14]tlvbuf is 001ADE40 [22:18:14]SAM_PROTO_ClearQueue [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 09 00 00 [22:18:14]Write to MH i2c: E2 08 00 CE 11 80 09 00 00 00 00 00 00 51 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 CE 11 00 90 00 53 [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]SAM_PROTO_ClearQueue done [22:18:14]KKMCreateOFDPacket [22:18:14]OFDProtocolAddRootSTLVToBuf [22:18:14]FM_MakeSignedData [22:18:14]FM_MakeSignedData [22:18:14]SAM_PROTO_SignData [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 01 02 [22:18:14]Write to MH i2c: E2 08 00 CF 11 80 0D 01 02 00 00 00 00 59 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 CF 11 00 90 00 54 [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]wFMCommunicate request_size=255 [22:18:14]MH_SAM_APDU [22:18: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 32 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 07 01 00 00 F4 03 04 00 A7 B0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CD 01 00 35 04 06 00 5F [22:18:14]Write to MH i2c: E2 02 01 D0 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 A7 B0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CD 01 00 35 04 06 00 5F 00 00 D8 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:15]Read from MH i2c: E2 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 03 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 03 00 D0 11 00 90 00 55 [22:18:15]RAPDU: 90 00 [22:18:15]wFMCommunicate OK [22:18:15]wFMCommunicate request_size=10 [22:18:15]MH_SAM_APDU [22:18:15]CAPDU: 80 0D 02 02 05 5C 34 61 1F EB [22:18:15]Write to MH i2c: E2 0D 00 D1 11 80 0D 02 02 05 00 5C 34 61 1F EB 00 00 61 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:15]Read from MH i2c: E2 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 03 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 03 00 D1 11 00 90 00 56 [22:18:15]RAPDU: 90 00 [22:18:15]wFMCommunicate OK [22:18:15]wFMCommunicate request_size=4 [22:18:15]MH_SAM_APDU [22:18:15]CAPDU: 80 0D 03 02 [22:18:15]Write to MH i2c: E2 08 00 D2 11 80 0D 03 02 00 00 00 00 5E [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:15]Read from MH i2c: E2 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 0B 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 0B 00 D2 11 00 96 1A 88 BC EC AB 51 4F 90 00 8A [22:18:15]RAPDU: 96 1A 88 BC EC AB 51 4F 90 00 [22:18:15]wFMCommunicate OK [22:18:15]SAM_PROTO_SignData done [22:18:15]FM_MakeSignedData done [22:18:15]CreateOFDProtocolMessage [22:18:15]wFMCommunicate request_size=4 [22:18:15]MH_SAM_APDU [22:18:15]CAPDU: 80 11 00 00 [22:18:15]Write to MH i2c: E2 08 00 D3 11 80 11 00 00 00 00 00 00 5E [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:15]Read from MH i2c: E2 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 17 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: E2 17 00 D3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B5 [22:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:18:15]wFMCommunicate OK [22:18:15]CreateOFDProtocolMessage done [22:18:15]OFDSenderStorePacket 118203 [22:18:15]StoreOFDPacket docnum=118203 [22:18:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 A3 3D 07 01 C2 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 07 01 00 00 F4 03 04 00 A7 B0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CD 01 00 35 04 06 00 5F 5C 34 61 1F EB 96 1A 88 BC EC AB 51 4F [22:18:15]CheckFolder [22:18:15]dirname=/storage/ofd_packets [22:18:15]CheckFolder done [22:18:15]ProducePacketName [22:18:15]name=ofd_packets/00118203 [22:18:15]NVStorageSaveData ofd_packets/00118203 [22:18:15]File name is /storage/ofd_packets/00118203 [22:18:15]Write 301 bytes [22:18:15]NVStorageSaveData done [22:18:15]OFDSenderStorePacket done [22:18:15]KKMCreateOFDPacket done [22:18:15]NVStorageSaveData kkm_last_timestamp [22:18:15]File name is /storage/kkm_last_timestamp [22:18:15]Write 4 bytes [22:18:15]NVStorageSaveData done [22:18:15]ExternCall_PrintAddStr [22:18:15]wPrintStart [22:18:15]Write to MH i2c: 01 00 00 D4 11 E5 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 D4 11 00 00 00 00 00 FF 0F FA [22:18:15]RasterBufferAndPrint [22:18:15]line Счет N : (1)246004 [22:18:15]line ИНН: 02508201610067 [22:18:15]line Контрольно-Кассовый Чек [22:18:15]line ПРОДАЖА [22:18:15]line ТРК (МРК, ГНК) : 21 [22:18:15]line Товар: 2710124130 [22:18:15]line Аи-92-К-2 [22:18:15]line 14.950 * 66.90 [22:18:15]line = 1000.16 [22:18:15]line НДС 12% НСП 1% [22:18:15]line > о реализуемом товаре [22:18:15]line ОКРУГЛЕНИЕ: -0.16 [22:18:15]line ИТОГО: 1000.00 [22:18:15]line Внесено: 1000.00 [22:18:15]line СДАЧА: 0.00 [22:18:15]line НСП 1% : 8.85 [22:18:15]line НДС 12% : 106.21 [22:18:15]line Наличными: 1000.00 [22:18:15]line Безнал.: 0.00 [22:18:15]line Место: АЗС № 173 "Партнер Нефть" [22:18:15]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:18:15]line СНО: Общий режим [22:18:15]line Чек 263 30.10.2024 22:18 [22:18:15]line Смена: 545 ФФД: 1.0 [22:18:15]line ЗНМ: 0300000115 [22:18:15]line РНМ: 0000000000091782 [22:18:15]line Версия ККМ: 001 [22:18:15]line ФМ: 0000000000871767 [22:18:15]line ФД: 118203 [22:18:15]line ФПД: 104849620410347 [22:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T221815&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118203&fm=104849620410347&tin=02508201610067®Number=0000000000091782&sum=100000 [22:18:15]written 0, free lines is 4095 [22:18:15]OFD Sender: Processing packet 118203 [packets to send 77, broken 76] [22:18:15]ProducePacketName [22:18:15]name=ofd_packets/00118203 [22:18:15]OFD Sender: To server: pG, [22:18:15]CommunicateWithHost lk.salyk.kg:30040 [22:18:15]ConnectInit lk.salyk.kg [22:18:15]Connected sock=9 [22:18: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 36 37 0F 01 00 00 A3 3D 07 01 C2 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 07 01 00 00 F4 03 04 00 A7 B0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BB CD 01 00 35 04 06 00 5F 5C 34 61 1F EB 96 1A 88 BC EC AB 51 4F [22:18: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 36 37 4F 00 00 00 9A F1 47 00 6E 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 36 37 10 04 04 00 BB CD 01 00 F4 03 04 00 5D 5C 22 67 B6 04 01 00 00 85 BA 55 65 3F 99 7D 11 [22:18:15]CommunicateWithHost err = 0 [22:18:15]CheckOFDResponse [22:18:15]1017 (14) - 77093643461234 [22:18:15]1041 (16) - 0000000000871767 [22:18:15]1040 (4) - 118203 [22:18:15]1012 (4) - 30.10.2024 16:18 [22:18:15]1206 (1) - 0 [22:18:15]OFD Sender: Remove packet 118203 [22:18:15]ProducePacketName [22:18:15]name=ofd_packets/00118203 [22:18:15]NVStorageDeleteData [22:18:15]Write to MH i2c: 01 00 00 FE 11 0F [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 FE 11 00 00 00 00 00 CB 0C ED [22:18:15]RasterBufferAndPrint [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]written 0, free lines is 3281 [22:18:15]MH_Cut [22:18:15]Write to MH i2c: D1 01 00 05 12 01 E9 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 01 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 01 00 05 12 00 E8 [22:18:15]Write to MH i2c: 01 00 00 06 12 18 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:16]OFD Sender: No OFD packet to send [22:18:16]*** Cut start [22:18:16]*** Purtial cut [22:18:16]*** Stage 1: CUTSNS_PIN = 1 [22:18:16]Read from MH i2c: 01 [22:18:16]MH_I2C_Read... [22:18:16]*** Stop cut motor [22:18:16]*** Cut end [22:18:16]Read from MH i2c: 01 07 00 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: 01 07 00 06 12 00 00 00 00 00 FF 0F 2D [22:18:16]process_action close_receipt done [22:18:16]requested_data is exist [22:18:16]produce_requested_data [22:18:16]requested_item fm.sn is exist - process it [22:18:16]wFMCommunicate request_size=4 [22:18:16]MH_SAM_APDU [22:18:16]CAPDU: 80 11 00 00 [22:18:16]Write to MH i2c: E2 08 00 07 12 80 11 00 00 00 00 00 00 93 [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 17 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 17 00 07 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EA [22:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:18:17]wFMCommunicate OK [22:18:17]requested_item fd.num is exist - process it [22:18:17]SAM_PROTO_GetFieldsCounters [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 13 00 00 [22:18:17]Write to MH i2c: E2 08 00 08 12 80 13 00 00 00 00 00 00 96 [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 62 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 62 00 08 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BB CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BB CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:17]wFMCommunicate OK [22:18:17]SAM_PROTO_GetFieldsCounters done [22:18:17]requested_item shift.num is exist - process it [22:18:17]requested_item shift.opened is exist - process it [22:18:17]req_shift_opened [22:18:17]FM_GetShiftState [22:18:17]SAM_PROTO_GetShiftState [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 13 01 00 [22:18:17]Write to MH i2c: E2 08 00 09 12 80 13 01 00 00 00 00 00 98 [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 0E 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 0E 00 09 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 70 [22:18:17]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:18:17]wFMCommunicate OK [22:18:17]SAM_PROTO_GetShiftState done [22:18:17]FM_GetShiftState done [22:18:17]req_shift_opened done [22:18:17]requested_item shift.open_date is exist - process it [22:18:17]req_shift_open_date [22:18:17]req_shift_open_date done [22:18:17]produce_requested_data done [22:18:17]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118203,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [22:18:17]process_action_free close_receipt [22:18:17]json_value_free [22:18:17]json_value_free done [22:18:17]process_json_proto returns [22:18:17]Send response to host [22:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118203,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [22:18:17]free response buf [22:18:17]execute_script done [22:18:17]execute_script returns [22:18:17]free content buf [22:18:17]Sock 10.Close socket [22:18:17]Sock 10.Thread stoped [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]accept exits with 7 [22:27:31]New connection [22:27:31]New thread 3067276644 created [22:27:31]Thread 3067133284 joined [22:27:31]Waiting for new connection... [22:27:31] Sock 7.Parse request [22:27:31]Sock 7.Check first char [22:27:31]Sock 7.First char is OK [22:27:31]request: POST /json_proto HTTP/1.0 [22:27:31]Method: POST [22:27:31]URL: /json_proto [22:27:31]Method is POST - this is cgi request [22:27:31]url: /json_proto [22:27:31]query_string will be loaded in cgi processing [22:27:31]execute_cgi json_proto POST (null) [22:27:31]execute_cgi path=json_proto method=POST [22:27:31]POST find Content-Length [22:27:31]Host: 172.17.96.67:8080 [22:27:31]Content-Length: 679 [22:27:31]Content-Type: application/json [22:27:31] [22:27:31]POST finish read [22:27:31]Found Content-Length = 679 [22:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [22:27:31]execute_script... [22:27: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)246005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [22:27:31]POST & json_proto [22:27:31]process_json_proto [22:27:31]json parsed OK: [22:27:31]protocol is kg_v1.0 [22:27:31]action value=close_receipt [22:27:31]process_action close_receipt [22:27:31]cmd_close_receipt [22:27:31]MH_GetDate [22:27:31]Write to MH i2c: F0 00 00 0A 12 0B [22:27:31]Write i2c OK [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: F0 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: F0 09 00 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: F0 09 00 0A 12 00 D4 B2 22 67 47 6C 1F 67 5C [22:27:31]GetLastDocTimeStamp 1730326695 [22:27:31]current date 1730327252 [22:27:31]FM_GetShiftState [22:27:31]SAM_PROTO_GetShiftState [22:27:31]wFMCommunicate request_size=4 [22:27:31]MH_SAM_APDU [22:27:31]CAPDU: 80 13 01 00 [22:27:31]Write to MH i2c: E2 08 00 0B 12 80 13 01 00 00 00 00 00 9A [22:27:31]Write i2c OK [22:27:31]MH_I2C_Read... [22:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:31]Read from MH i2c: E2 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 0E 00 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 0E 00 0B 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 72 [22:27:31]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:27:31]wFMCommunicate OK [22:27:31]SAM_PROTO_GetShiftState done [22:27:31]FM_GetShiftState done [22:27:31]opened in 1730246605 [22:27:31]opened+sec_in_day 1730333005 [22:27:31]quantity*price = 200025 [22:27:31]sum+1 = 200026 [22:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 264 30.10.2024 22:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118204 ФПД: 185491451239713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T222732&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118204&fm=185491451239713&tin=02508201610067®Number=0000000000091782&sum=200000 [22:27:32]StoreToDocumentArchive [22:27:32]shift 545 fd 118204 [22:27:32]save to /storage/0545/doc_00118204 [22:27:32]save last doc name /storage/0545/doc_00118204 to /storage/kkm_last_doc_name [22:27:32]save OK [22:27:32]Clear old archive folders... [22:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:27:32]tlvbuf is 001AE400 [22:27:32]SAM_PROTO_ClearQueue [22:27:32]wFMCommunicate request_size=4 [22:27:32]MH_SAM_APDU [22:27:32]CAPDU: 80 09 00 00 [22:27:32]Write to MH i2c: E2 08 00 18 12 80 09 00 00 00 00 00 00 9C [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:32]Read from MH i2c: E2 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 18 12 00 90 00 9E [22:27:32]RAPDU: 90 00 [22:27:32]wFMCommunicate OK [22:27:32]SAM_PROTO_ClearQueue done [22:27:32]KKMCreateOFDPacket [22:27:32]OFDProtocolAddRootSTLVToBuf [22:27:32]FM_MakeSignedData [22:27:32]FM_MakeSignedData [22:27:32]SAM_PROTO_SignData [22:27:32]wFMCommunicate request_size=4 [22:27:32]MH_SAM_APDU [22:27:32]CAPDU: 80 0D 01 02 [22:27:32]Write to MH i2c: E2 08 00 19 12 80 0D 01 02 00 00 00 00 A4 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:32]Read from MH i2c: E2 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 19 12 00 90 00 9F [22:27:32]RAPDU: 90 00 [22:27:32]wFMCommunicate OK [22:27:32]wFMCommunicate request_size=255 [22:27:32]MH_SAM_APDU [22:27: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 32 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 08 01 00 00 F4 03 04 00 D4 B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CD 01 00 35 04 06 00 A8 B4 18 0F [22:27:32]Write to MH i2c: E2 02 01 1A 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 08 01 00 00 F4 03 04 00 D4 B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CD 01 00 35 04 06 00 A8 B4 18 0F 00 00 62 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:32]Read from MH i2c: E2 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 1A 12 00 90 00 A0 [22:27:32]RAPDU: 90 00 [22:27:32]wFMCommunicate OK [22:27:32]wFMCommunicate request_size=7 [22:27:32]MH_SAM_APDU [22:27:32]CAPDU: 80 0D 02 02 02 5D 21 [22:27:32]Write to MH i2c: E2 0A 00 1B 12 80 0D 02 02 02 00 5D 21 00 00 29 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:32]Read from MH i2c: E2 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 03 00 1B 12 00 90 00 A1 [22:27:32]RAPDU: 90 00 [22:27:32]wFMCommunicate OK [22:27:32]wFMCommunicate request_size=4 [22:27:32]MH_SAM_APDU [22:27:32]CAPDU: 80 0D 03 02 [22:27:32]Write to MH i2c: E2 08 00 1C 12 80 0D 03 02 00 00 00 00 A9 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:33]Read from MH i2c: E2 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: E2 0B 00 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: E2 0B 00 1C 12 00 BD 58 4A B0 F4 C6 00 F3 90 00 66 [22:27:33]RAPDU: BD 58 4A B0 F4 C6 00 F3 90 00 [22:27:33]wFMCommunicate OK [22:27:33]SAM_PROTO_SignData done [22:27:33]FM_MakeSignedData done [22:27:33]CreateOFDProtocolMessage [22:27:33]wFMCommunicate request_size=4 [22:27:33]MH_SAM_APDU [22:27:33]CAPDU: 80 11 00 00 [22:27:33]Write to MH i2c: E2 08 00 1D 12 80 11 00 00 00 00 00 00 A9 [22:27:33]Write i2c OK [22:27:33]MH_I2C_Read... [22:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:33]Read from MH i2c: E2 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: E2 17 00 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: E2 17 00 1D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 00 [22:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:27:33]wFMCommunicate OK [22:27:33]CreateOFDProtocolMessage done [22:27:33]OFDSenderStorePacket 118204 [22:27:33]StoreOFDPacket docnum=118204 [22:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 D7 FB 04 01 5C 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 08 01 00 00 F4 03 04 00 D4 B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CD 01 00 35 04 06 00 A8 B4 18 0F 5D 21 BD 58 4A B0 F4 C6 00 F3 [22:27:33]CheckFolder [22:27:33]dirname=/storage/ofd_packets [22:27:33]CheckFolder done [22:27:33]ProducePacketName [22:27:33]name=ofd_packets/00118204 [22:27:33]NVStorageSaveData ofd_packets/00118204 [22:27:33]File name is /storage/ofd_packets/00118204 [22:27:33]Write 298 bytes [22:27:33]NVStorageSaveData done [22:27:33]OFDSenderStorePacket done [22:27:33]KKMCreateOFDPacket done [22:27:33]NVStorageSaveData kkm_last_timestamp [22:27:33]File name is /storage/kkm_last_timestamp [22:27:33]Write 4 bytes [22:27:33]NVStorageSaveData done [22:27:33]ExternCall_PrintAddStr [22:27:33]wPrintStart [22:27:33]Write to MH i2c: 01 00 00 1E 12 30 [22:27:33]Write i2c OK [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: 01 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: 01 07 00 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: 01 07 00 1E 12 00 00 00 00 00 FF 0F 45 [22:27:33]RasterBufferAndPrint [22:27:33]line Счет N : (1)246005 [22:27:33]line ИНН: 02508201610067 [22:27:33]line Контрольно-Кассовый Чек [22:27:33]line ПРОДАЖА [22:27:33]line ТРК (МРК, ГНК) : 13 [22:27:33]line Товар: 2710194210 [22:27:33]line ДТ-К-2 [22:27:33]line 26.250 * 76.20 [22:27:33]line = 2000.25 [22:27:33]line НДС 12% НСП 1% [22:27:33]line > о реализуемом товаре [22:27:33]line ОКРУГЛЕНИЕ: -0.25 [22:27:33]line ИТОГО: 2000.00 [22:27:33]line Внесено: 2000.00 [22:27:33]line СДАЧА: 0.00 [22:27:33]line НСП 1% : 17.70 [22:27:33]line НДС 12% : 212.42 [22:27:33]line Наличными: 2000.00 [22:27:33]line Безнал.: 0.00 [22:27:33]line Место: АЗС № 173 "Партнер Нефть" [22:27:33]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:27:33]line СНО: Общий режим [22:27:33]line Чек 264 30.10.2024 22:27 [22:27:33]line Смена: 545 ФФД: 1.0 [22:27:33]line ЗНМ: 0300000115 [22:27:33]line РНМ: 0000000000091782 [22:27:33]line Версия ККМ: 001 [22:27:33]line ФМ: 0000000000871767 [22:27:33]line ФД: 118204 [22:27:33]line ФПД: 185491451239713 [22:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T222732&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118204&fm=185491451239713&tin=02508201610067®Number=0000000000091782&sum=200000 [22:27:33]OFD Sender: Processing packet 118204 [packets to send 77, broken 76] [22:27:33]ProducePacketName [22:27:33]name=ofd_packets/00118204 [22:27:33]OFD Sender: To server: pG, [22:27:33]CommunicateWithHost lk.salyk.kg:30040 [22:27:33]ConnectInit lk.salyk.kg [22:27:33]written 0, free lines is 4095 [22:27:33]Connected sock=10 [22:27: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 36 37 0C 01 00 00 D7 FB 04 01 5C 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 08 01 00 00 F4 03 04 00 D4 B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BC CD 01 00 35 04 06 00 A8 B4 18 0F 5D 21 BD 58 4A B0 F4 C6 00 F3 [22:27: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 36 37 4F 00 00 00 82 5B 47 00 3F 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 36 37 10 04 04 00 BC CD 01 00 F4 03 04 00 8B 5E 22 67 B6 04 01 00 00 24 0F D1 3F AD F2 E7 58 [22:27:33]CommunicateWithHost err = 0 [22:27:33]CheckOFDResponse [22:27:33]1017 (14) - 77093643461234 [22:27:33]1041 (16) - 0000000000871767 [22:27:33]1040 (4) - 118204 [22:27:33]1012 (4) - 30.10.2024 16:27 [22:27:33]1206 (1) - 0 [22:27:33]OFD Sender: Remove packet 118204 [22:27:33]ProducePacketName [22:27:33]name=ofd_packets/00118204 [22:27:33]NVStorageDeleteData [22:27:33]Write to MH i2c: 01 00 00 48 12 5A [22:27:33]Write i2c OK [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: 01 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: 01 07 00 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: 01 07 00 48 12 00 00 00 00 00 C5 0C 32 [22:27:33]RasterBufferAndPrint [22:27:33]line [22:27:33]line [22:27:33]line [22:27:33]line [22:27:33]line [22:27:33]written 0, free lines is 3275 [22:27:33]MH_Cut [22:27:33]Write to MH i2c: D1 01 00 4F 12 01 33 [22:27:33]Write i2c OK [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: D1 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: D1 01 00 [22:27:33]MH_I2C_Read... [22:27:33]Read from MH i2c: D1 01 00 4F 12 00 32 [22:27:33]Write to MH i2c: 01 00 00 50 12 62 [22:27:33]Write i2c OK [22:27:33]MH_I2C_Read... [22:27:34]OFD Sender: No OFD packet to send [22:27:34]*** Cut start [22:27:34]*** Purtial cut [22:27:34]*** Stage 1: CUTSNS_PIN = 1 [22:27:34]Read from MH i2c: 01 *** Stop cut motor [22:27:34]*** Cut end [22:27:34] [22:27:34]MH_I2C_Read... [22:27:34]Read from MH i2c: 01 07 00 [22:27:34]MH_I2C_Read... [22:27:34]Read from MH i2c: 01 07 00 50 12 00 00 00 00 00 FF 0F 77 [22:27:34]process_action close_receipt done [22:27:34]requested_data is exist [22:27:34]produce_requested_data [22:27:34]requested_item fm.sn is exist - process it [22:27:34]wFMCommunicate request_size=4 [22:27:34]MH_SAM_APDU [22:27:34]CAPDU: 80 11 00 00 [22:27:34]Write to MH i2c: E2 08 00 51 12 80 11 00 00 00 00 00 00 DD [22:27:34]Write i2c OK [22:27:34]MH_I2C_Read... [22:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:35]Read from MH i2c: E2 [22:27:35]MH_I2C_Read... [22:27:35]Read from MH i2c: E2 17 00 [22:27:35]MH_I2C_Read... [22:27:35]Read from MH i2c: E2 17 00 51 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 34 [22:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:27:35]wFMCommunicate OK [22:27:35]requested_item fd.num is exist - process it [22:27:35]SAM_PROTO_GetFieldsCounters [22:27:35]wFMCommunicate request_size=4 [22:27:35]MH_SAM_APDU [22:27:35]CAPDU: 80 13 00 00 [22:27:35]Write to MH i2c: E2 08 00 52 12 80 13 00 00 00 00 00 00 E0 [22:27:35]Write i2c OK [22:27:35]MH_I2C_Read... [22:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:35]Read from MH i2c: E2 [22:27:35]MH_I2C_Read... [22:27:35]Read from MH i2c: E2 62 00 [22:27:35]MH_I2C_Read... [22:27:35]Read from MH i2c: E2 62 00 52 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BC CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [22:27: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BC CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:35]wFMCommunicate OK [22:27:35]SAM_PROTO_GetFieldsCounters done [22:27:35]requested_item shift.num is exist - process it [22:27:35]requested_item shift.opened is exist - process it [22:27:35]req_shift_opened [22:27:35]FM_GetShiftState [22:27:35]SAM_PROTO_GetShiftState [22:27:35]wFMCommunicate request_size=4 [22:27:35]MH_SAM_APDU [22:27:35]CAPDU: 80 13 01 00 [22:27:35]Write to MH i2c: E2 08 00 53 12 80 13 01 00 00 00 00 00 E2 [22:27:35]Write i2c OK [22:27:35]MH_I2C_Read... [22:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:35]Read from MH i2c: E2 [22:27:35]MH_I2C_Read... [22:27:35]Read from MH i2c: E2 0E 00 [22:27:35]MH_I2C_Read... [22:27:35]Read from MH i2c: E2 0E 00 53 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BA [22:27:35]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:27:35]wFMCommunicate OK [22:27:35]SAM_PROTO_GetShiftState done [22:27:35]FM_GetShiftState done [22:27:35]req_shift_opened done [22:27:35]requested_item shift.open_date is exist - process it [22:27:35]req_shift_open_date [22:27:35]req_shift_open_date done [22:27:35]produce_requested_data done [22:27:35]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118204,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [22:27:35]process_action_free close_receipt [22:27:35]json_value_free [22:27:35]json_value_free done [22:27:35]process_json_proto returns [22:27:35]Send response to host [22:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118204,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [22:27:35]free response buf [22:27:35]execute_script done [22:27:35]execute_script returns [22:27:35]free content buf [22:27:35]Sock 7.Close socket [22:27:35]Sock 7.Thread stoped [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:10]accept exits with 9 [22:28:10]New connection [22:28:10]New thread 3067133284 created [22:28:10]Thread 3067276644 joined [22:28:10]Waiting for new connection... [22:28:10] Sock 9.Parse request [22:28:10]Sock 9.Check first char [22:28:10]Sock 9.First char is OK [22:28:10]request: POST /json_proto HTTP/1.0 [22:28:10]Method: POST [22:28:10]URL: /json_proto [22:28:10]Method is POST - this is cgi request [22:28:10]url: /json_proto [22:28:10]query_string will be loaded in cgi processing [22:28:10]execute_cgi json_proto POST (null) [22:28:10]execute_cgi path=json_proto method=POST [22:28:10]POST find Content-Length [22:28:10]Host: 172.17.96.67:8080 [22:28:10]Content-Length: 677 [22:28:10]Content-Type: application/json [22:28:10] [22:28:10]POST finish read [22:28:10]Found Content-Length = 677 [22:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [22:28:10]execute_script... [22:28:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [22:28:10]POST & json_proto [22:28:10]process_json_proto [22:28:10]json parsed OK: [22:28:10]protocol is kg_v1.0 [22:28:10]action value=close_receipt [22:28:10]process_action close_receipt [22:28:10]cmd_close_receipt [22:28:10]MH_GetDate [22:28:10]Write to MH i2c: F0 00 00 54 12 55 [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: F0 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: F0 09 00 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: F0 09 00 54 12 00 FB B2 22 67 47 6C 1F 67 CD [22:28:10]GetLastDocTimeStamp 1730327252 [22:28:10]current date 1730327291 [22:28:10]FM_GetShiftState [22:28:10]SAM_PROTO_GetShiftState [22:28:10]wFMCommunicate request_size=4 [22:28:10]MH_SAM_APDU [22:28:10]CAPDU: 80 13 01 00 [22:28:10]Write to MH i2c: E2 08 00 55 12 80 13 01 00 00 00 00 00 E4 [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:10]Read from MH i2c: E2 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: E2 0E 00 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: E2 0E 00 55 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 BC [22:28:10]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:28:10]wFMCommunicate OK [22:28:10]SAM_PROTO_GetShiftState done [22:28:10]FM_GetShiftState done [22:28:10]opened in 1730246605 [22:28:10]opened+sec_in_day 1730333005 [22:28:10]quantity*price = 50041 [22:28:10]sum+1 = 50042 [22:28: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 265 30.10.2024 22:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118205 ФПД: 77391521351741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T222811&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118205&fm=77391521351741&tin=02508201610067®Number=0000000000091782&sum=50000 [22:28:11]StoreToDocumentArchive [22:28:11]shift 545 fd 118205 [22:28:11]save to /storage/0545/doc_00118205 [22:28:11]save last doc name /storage/0545/doc_00118205 to /storage/kkm_last_doc_name [22:28:11]save OK [22:28:11]Clear old archive folders... [22:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:11]tlvbuf is 0028B0D0 [22:28:11]SAM_PROTO_ClearQueue [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 09 00 00 [22:28:11]Write to MH i2c: E2 08 00 62 12 80 09 00 00 00 00 00 00 E6 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 62 12 00 90 00 E8 [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]SAM_PROTO_ClearQueue done [22:28:11]KKMCreateOFDPacket [22:28:11]OFDProtocolAddRootSTLVToBuf [22:28:11]FM_MakeSignedData [22:28:11]FM_MakeSignedData [22:28:11]SAM_PROTO_SignData [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 0D 01 02 [22:28:11]Write to MH i2c: E2 08 00 63 12 80 0D 01 02 00 00 00 00 EE [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 63 12 00 90 00 E9 [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]wFMCommunicate request_size=255 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 01 00 00 F4 03 04 00 FB B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CD 01 00 35 04 06 00 46 [22:28:11]Write to MH i2c: E2 02 01 64 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 01 00 00 F4 03 04 00 FB B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CD 01 00 35 04 06 00 46 00 00 B4 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 64 12 00 90 00 EA [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]wFMCommunicate request_size=10 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 0D 02 02 05 63 1E 23 88 3D [22:28:11]Write to MH i2c: E2 0D 00 65 12 80 0D 02 02 05 00 63 1E 23 88 3D 00 00 64 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 65 12 00 90 00 EB [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 0D 03 02 [22:28:11]Write to MH i2c: E2 08 00 66 12 80 0D 03 02 00 00 00 00 F3 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 0B 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 0B 00 66 12 00 E2 9B E5 CA A7 F5 E0 3C 90 00 D8 [22:28:11]RAPDU: E2 9B E5 CA A7 F5 E0 3C 90 00 [22:28:11]wFMCommunicate OK [22:28:11]SAM_PROTO_SignData done [22:28:11]FM_MakeSignedData done [22:28:11]CreateOFDProtocolMessage [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 11 00 00 [22:28:11]Write to MH i2c: E2 08 00 67 12 80 11 00 00 00 00 00 00 F3 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 17 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 17 00 67 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 4A [22:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:28:11]wFMCommunicate OK [22:28:11]CreateOFDProtocolMessage done [22:28:11]OFDSenderStorePacket 118205 [22:28:11]StoreOFDPacket docnum=118205 [22:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 5B 5A 07 01 E2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 F4 03 04 00 FB B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CD 01 00 35 04 06 00 46 63 1E 23 88 3D E2 9B E5 CA A7 F5 E0 3C [22:28:11]CheckFolder [22:28:11]dirname=/storage/ofd_packets [22:28:11]CheckFolder done [22:28:11]ProducePacketName [22:28:11]name=ofd_packets/00118205 [22:28:11]NVStorageSaveData ofd_packets/00118205 [22:28:11]File name is /storage/ofd_packets/00118205 [22:28:11]Write 301 bytes [22:28:11]NVStorageSaveData done [22:28:11]OFDSenderStorePacket done [22:28:11]KKMCreateOFDPacket done [22:28:11]NVStorageSaveData kkm_last_timestamp [22:28:11]File name is /storage/kkm_last_timestamp [22:28:11]Write 4 bytes [22:28:11]NVStorageSaveData done [22:28:11]ExternCall_PrintAddStr [22:28:11]wPrintStart [22:28:11]Write to MH i2c: 01 00 00 68 12 7A [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: 01 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: 01 07 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: 01 07 00 68 12 00 00 00 00 00 FF 0F 8F [22:28:11]RasterBufferAndPrint [22:28:11]line Счет N : (1)246006 [22:28:11]line ИНН: 02508201610067 [22:28:11]line Контрольно-Кассовый Чек [22:28:11]line ПРОДАЖА [22:28:11]line ТРК (МРК, ГНК) : 11 [22:28:11]line Товар: 2710124130 [22:28:11]line Аи-92-К-2 [22:28:11]line 7.480 * 66.90 [22:28:11]line = 500.41 [22:28:11]line НДС 12% НСП 1% [22:28:11]line > о реализуемом товаре [22:28:11]line ОКРУГЛЕНИЕ: -0.41 [22:28:11]line ИТОГО: 500.00 [22:28:11]line Внесено: 500.00 [22:28:11]line СДАЧА: 0.00 [22:28:11]line НСП 1% : 4.43 [22:28:11]line НДС 12% : 53.14 [22:28:11]line Наличными: 500.00 [22:28:11]line Безнал.: 0.00 [22:28:11]line Место: АЗС № 173 "Партнер Нефть" [22:28:11]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:28:11]line СНО: Общий режим [22:28:11]line Чек 265 30.10.2024 22:28 [22:28:11]line Смена: 545 ФФД: 1.0 [22:28:11]line ЗНМ: 0300000115 [22:28:11]line РНМ: 0000000000091782 [22:28:11]line Версия ККМ: 001 [22:28:11]line ФМ: 0000000000871767 [22:28:11]line ФД: 118205 [22:28:11]line ФПД: 77391521351741 [22:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T222811&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118205&fm=77391521351741&tin=02508201610067®Number=0000000000091782&sum=50000 [22:28:12]written 0, free lines is 4095 [22:28:12]OFD Sender: Processing packet 118205 [packets to send 77, broken 76] [22:28:12]ProducePacketName [22:28:12]name=ofd_packets/00118205 [22:28:12]OFD Sender: To server: pG, [22:28:12]CommunicateWithHost lk.salyk.kg:30040 [22:28:12]ConnectInit lk.salyk.kg [22:28:12]Connected sock=10 [22:28: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 36 37 0F 01 00 00 5B 5A 07 01 E2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 F4 03 04 00 FB B2 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BD CD 01 00 35 04 06 00 46 63 1E 23 88 3D E2 9B E5 CA A7 F5 E0 3C [22:28: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 36 37 4F 00 00 00 42 54 47 00 AB 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 36 37 10 04 04 00 BD CD 01 00 F4 03 04 00 B2 5E 22 67 B6 04 01 00 00 F4 84 A9 C4 32 86 72 2D [22:28:12]CommunicateWithHost err = 0 [22:28:12]CheckOFDResponse [22:28:12]1017 (14) - 77093643461234 [22:28:12]1041 (16) - 0000000000871767 [22:28:12]1040 (4) - 118205 [22:28:12]1012 (4) - 30.10.2024 16:28 [22:28:12]1206 (1) - 0 [22:28:12]OFD Sender: Remove packet 118205 [22:28:12]ProducePacketName [22:28:12]name=ofd_packets/00118205 [22:28:12]NVStorageDeleteData [22:28:12]Write to MH i2c: 01 00 00 92 12 A4 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 07 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 B9 0C 70 [22:28:12]RasterBufferAndPrint [22:28:12]line [22:28:12]line [22:28:12]line [22:28:12]line [22:28:12]line [22:28:12]written 0, free lines is 3265 [22:28:12]MH_Cut [22:28:12]Write to MH i2c: D1 01 00 99 12 01 7D [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: D1 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: D1 01 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: D1 01 00 99 12 00 7C [22:28:12]Write to MH i2c: 01 00 00 9A 12 AC [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:13]OFD Sender: No OFD packet to send [22:28:13]*** Cut start [22:28:13]*** Purtial cut [22:28:13]*** Stage 1: CUTSNS_PIN = 1 [22:28:13]Read from MH i2c: 01 [22:28:13]MH_I2C_Read... [22:28:13]*** Stop cut motor [22:28:13]*** Cut end [22:28:13]Read from MH i2c: 01 07 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 FF 0F C1 [22:28:13]process_action close_receipt done [22:28:13]requested_data is exist [22:28:13]produce_requested_data [22:28:13]requested_item fm.sn is exist - process it [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 11 00 00 [22:28:13]Write to MH i2c: E2 08 00 9B 12 80 11 00 00 00 00 00 00 27 [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 17 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 17 00 9B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7E [22:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:28:13]wFMCommunicate OK [22:28:13]requested_item fd.num is exist - process it [22:28:13]SAM_PROTO_GetFieldsCounters [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 13 00 00 [22:28:13]Write to MH i2c: E2 08 00 9C 12 80 13 00 00 00 00 00 00 2A [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 62 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 62 00 9C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BD CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [22:28: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BD CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:13]wFMCommunicate OK [22:28:13]SAM_PROTO_GetFieldsCounters done [22:28:13]requested_item shift.num is exist - process it [22:28:13]requested_item shift.opened is exist - process it [22:28:13]req_shift_opened [22:28:13]FM_GetShiftState [22:28:13]SAM_PROTO_GetShiftState [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 13 01 00 [22:28:13]Write to MH i2c: E2 08 00 9D 12 80 13 01 00 00 00 00 00 2C [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 0E 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 0E 00 9D 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 04 [22:28:13]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:28:13]wFMCommunicate OK [22:28:13]SAM_PROTO_GetShiftState done [22:28:13]FM_GetShiftState done [22:28:13]req_shift_opened done [22:28:13]requested_item shift.open_date is exist - process it [22:28:13]req_shift_open_date [22:28:13]req_shift_open_date done [22:28:13]produce_requested_data done [22:28:13]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118205,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [22:28:13]process_action_free close_receipt [22:28:13]json_value_free [22:28:13]json_value_free done [22:28:13]process_json_proto returns [22:28:13]Send response to host [22:28:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118205,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [22:28:13]free response buf [22:28:13]execute_script done [22:28:13]execute_script returns [22:28:13]free content buf [22:28:13]Sock 9.Close socket [22:28:13]Sock 9.Thread stoped [22:28:18]OFD Sender: No OFD packet to send [22:28:20]int [22:28:20]Write to MH i2c: 01 00 00 9E 12 B0 [22:28:20]*** FLAG_PRN_PAP1 set [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: 01 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: 01 07 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: 01 07 00 9E 12 00 01 00 00 00 FF 0F C6 [22:28:20]state=0 [22:28:20]No paper [22:28:21]int [22:28:21]Write to MH i2c: 01 00 00 9F 12 B1 [22:28:21]*** FLAG_PRN_PAP2 set [22:28:21]Write i2c OK [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: 01 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: 01 07 00 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: 01 07 00 9F 12 00 03 00 00 00 FF 0F C9 [22:28:21]state=0 [22:28:21]No paper [22:28:21]Cover opened [22:28:23]OFD Sender: No OFD packet to send [22:28:26]int [22:28:26]Write to MH i2c: 01 00 00 A0 12 B2 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: 01 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: 01 07 00 [22:28:26]MH_I2C_Read... [22:28:26]*** FLAG_PRN_PAP2 reset [22:28:26]*** FLAG_PRN_PAP1 reset [22:28:26]Read from MH i2c: 01 07 00 A0 12 00 00 00 00 00 FF 0F C7 [22:28:26]state=3 [22:28:26]Cover closed [22:28:27]int [22:28:27]Write to MH i2c: 01 00 00 A1 12 B3 [22:28:27]*** FLAG_PRN_PAP1 set [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 A1 12 00 01 00 00 00 FF 0F C9 [22:28:27]state=0 [22:28:27]No paper [22:28:27]int [22:28:27]Write to MH i2c: 01 00 00 A2 12 B4 [22:28:27]*** FLAG_PRN_PAP2 set [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 A2 12 00 03 00 00 00 FF 0F CC [22:28:27]state=0 [22:28:27]No paper [22:28:27]Cover opened [22:28:28]OFD Sender: No OFD packet to send [22:28:30]int [22:28:30]Write to MH i2c: 01 00 00 A3 12 B5 [22:28:30]*** FLAG_PRN_PAP2 reset [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 07 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 07 00 A3 12 00 01 00 00 00 FF 0F CB [22:28:30]state=3 [22:28:30]No paper [22:28:30]Cover closed [22:28:30]int [22:28:30]Write to MH i2c: 01 00 00 A4 12 B6 [22:28:30]*** FLAG_PRN_PAP2 set [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 07 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 07 00 A4 12 00 03 00 00 00 FF 0F CE [22:28:30]state=0 [22:28:30]No paper [22:28:30]Cover opened [22:28:31]int [22:28:31]Write to MH i2c: 01 00 00 A5 12 B7 [22:28:31]*** FLAG_PRN_PAP2 reset [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 A5 12 00 01 00 00 00 FF 0F CD [22:28:31]state=3 [22:28:31]No paper [22:28:31]Cover closed [22:28:31]int [22:28:31]Write to MH i2c: 01 00 00 A6 12 B8 [22:28:31]*** FLAG_PRN_PAP2 set [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 A6 12 00 03 00 00 00 FF 0F D0 [22:28:31]state=0 [22:28:31]No paper [22:28:31]Cover opened [22:28:31]int [22:28:31]Write to MH i2c: 01 00 00 A7 12 B9 [22:28:31]*** FLAG_PRN_PAP2 reset [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 A7 12 00 01 00 00 00 FF 0F CF [22:28:31]state=3 [22:28:31]No paper [22:28:31]Cover closed [22:28:32]int [22:28:32]Write to MH i2c: 01 00 00 A8 12 BA [22:28:32]*** FLAG_PRN_PAP2 set [22:28:32]Write i2c OK [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: 01 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: 01 07 00 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: 01 07 00 A8 12 00 03 00 00 00 FF 0F D2 [22:28:32]state=0 [22:28:32]No paper [22:28:32]Cover opened [22:28:33]OFD Sender: No OFD packet to send [22:28:33]int [22:28:33]Write to MH i2c: 01 00 00 A9 12 BB [22:28:33]*** FLAG_PRN_PAP1 reset [22:28:33]*** FLAG_PRN_PAP2 reset [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: 01 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: 01 07 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 FF 0F D0 [22:28:33]state=3 [22:28:33]Cover closed [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:52]accept exits with 7 [22:30:52]New connection [22:30:52]New thread 3067276644 created [22:30:52]Thread 3067133284 joined [22:30:52]Waiting for new connection... [22:30:52] Sock 7.Parse request [22:30:52]Sock 7.Check first char [22:30:52]Sock 7.First char is OK [22:30:52]request: POST /json_proto HTTP/1.0 [22:30:52]Method: POST [22:30:52]URL: /json_proto [22:30:52]Method is POST - this is cgi request [22:30:52]url: /json_proto [22:30:52]query_string will be loaded in cgi processing [22:30:52]execute_cgi json_proto POST (null) [22:30:52]execute_cgi path=json_proto method=POST [22:30:52]POST find Content-Length [22:30:52]Host: 172.17.96.67:8080 [22:30:52]Content-Length: 677 [22:30:52]Content-Type: application/json [22:30:52] [22:30:52]POST finish read [22:30:52]Found Content-Length = 677 [22:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:30:52]execute_script... [22:30: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)246007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:30:52]POST & json_proto [22:30:52]process_json_proto [22:30:52]json parsed OK: [22:30:52]protocol is kg_v1.0 [22:30:52]action value=close_receipt [22:30:52]process_action close_receipt [22:30:52]cmd_close_receipt [22:30:52]MH_GetDate [22:30:52]Write to MH i2c: F0 00 00 AA 12 AB [22:30:52]Write i2c OK [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: F0 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: F0 09 00 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: F0 09 00 AA 12 00 9E B3 22 67 47 6C 1F 67 C7 [22:30:52]GetLastDocTimeStamp 1730327291 [22:30:52]current date 1730327454 [22:30:52]FM_GetShiftState [22:30:52]SAM_PROTO_GetShiftState [22:30:52]wFMCommunicate request_size=4 [22:30:52]MH_SAM_APDU [22:30:52]CAPDU: 80 13 01 00 [22:30:52]Write to MH i2c: E2 08 00 AB 12 80 13 01 00 00 00 00 00 3A [22:30:52]Write i2c OK [22:30:52]MH_I2C_Read... [22:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:52]Read from MH i2c: E2 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: E2 0E 00 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: E2 0E 00 AB 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 12 [22:30:52]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:30:52]wFMCommunicate OK [22:30:52]SAM_PROTO_GetShiftState done [22:30:52]FM_GetShiftState done [22:30:52]opened in 1730246605 [22:30:52]opened+sec_in_day 1730333005 [22:30:52]quantity*price = 35055 [22:30:52]sum+1 = 35057 [22:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 266 30.10.2024 22:30 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118206 ФПД: 250192500604680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T223054&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118206&fm=250192500604680&tin=02508201610067®Number=0000000000091782&sum=35000 [22:30:53]StoreToDocumentArchive [22:30:53]shift 545 fd 118206 [22:30:53]save to /storage/0545/doc_00118206 [22:30:53]save last doc name /storage/0545/doc_00118206 to /storage/kkm_last_doc_name [22:30:53]save OK [22:30:53]Clear old archive folders... [22:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:53]tlvbuf is 001C8AE0 [22:30:53]SAM_PROTO_ClearQueue [22:30:53]wFMCommunicate request_size=4 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 09 00 00 [22:30:53]Write to MH i2c: E2 08 00 B8 12 80 09 00 00 00 00 00 00 3C [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 B8 12 00 90 00 3E [22:30:53]RAPDU: 90 00 [22:30:53]wFMCommunicate OK [22:30:53]SAM_PROTO_ClearQueue done [22:30:53]KKMCreateOFDPacket [22:30:53]OFDProtocolAddRootSTLVToBuf [22:30:53]FM_MakeSignedData [22:30:53]FM_MakeSignedData [22:30:53]SAM_PROTO_SignData [22:30:53]wFMCommunicate request_size=4 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 0D 01 02 [22:30:53]Write to MH i2c: E2 08 00 B9 12 80 0D 01 02 00 00 00 00 44 [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 B9 12 00 90 00 3F [22:30:53]RAPDU: 90 00 [22:30:53]wFMCommunicate OK [22:30:53]wFMCommunicate request_size=255 [22:30:53]MH_SAM_APDU [22:30: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 32 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 0A 01 00 00 F4 03 04 00 9E B3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CD 01 00 35 04 06 00 E3 [22:30:53]Write to MH i2c: E2 02 01 BA 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0A 01 00 00 F4 03 04 00 9E B3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CD 01 00 35 04 06 00 E3 00 00 58 [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:54]Read from MH i2c: E2 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 03 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 03 00 BA 12 00 90 00 40 [22:30:54]RAPDU: 90 00 [22:30:54]wFMCommunicate OK [22:30:54]wFMCommunicate request_size=10 [22:30:54]MH_SAM_APDU [22:30:54]CAPDU: 80 0D 02 02 05 8C 7B 1F BF 08 [22:30:54]Write to MH i2c: E2 0D 00 BB 12 80 0D 02 02 05 00 8C 7B 1F BF 08 00 00 3E [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:54]Read from MH i2c: E2 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 03 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 03 00 BB 12 00 90 00 41 [22:30:54]RAPDU: 90 00 [22:30:54]wFMCommunicate OK [22:30:54]wFMCommunicate request_size=4 [22:30:54]MH_SAM_APDU [22:30:54]CAPDU: 80 0D 03 02 [22:30:54]Write to MH i2c: E2 08 00 BC 12 80 0D 03 02 00 00 00 00 49 [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:54]Read from MH i2c: E2 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 0B 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 0B 00 BC 12 00 72 6E B7 90 36 B2 75 EA 90 00 B8 [22:30:54]RAPDU: 72 6E B7 90 36 B2 75 EA 90 00 [22:30:54]wFMCommunicate OK [22:30:54]SAM_PROTO_SignData done [22:30:54]FM_MakeSignedData done [22:30:54]CreateOFDProtocolMessage [22:30:54]wFMCommunicate request_size=4 [22:30:54]MH_SAM_APDU [22:30:54]CAPDU: 80 11 00 00 [22:30:54]Write to MH i2c: E2 08 00 BD 12 80 11 00 00 00 00 00 00 49 [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:54]Read from MH i2c: E2 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 17 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 17 00 BD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 A0 [22:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:30:54]wFMCommunicate OK [22:30:54]CreateOFDProtocolMessage done [22:30:54]OFDSenderStorePacket 118206 [22:30:54]StoreOFDPacket docnum=118206 [22:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0A C1 07 01 D0 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0A 01 00 00 F4 03 04 00 9E B3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CD 01 00 35 04 06 00 E3 8C 7B 1F BF 08 72 6E B7 90 36 B2 75 EA [22:30:54]CheckFolder [22:30:54]dirname=/storage/ofd_packets [22:30:54]CheckFolder done [22:30:54]ProducePacketName [22:30:54]name=ofd_packets/00118206 [22:30:54]NVStorageSaveData ofd_packets/00118206 [22:30:54]File name is /storage/ofd_packets/00118206 [22:30:54]Write 301 bytes [22:30:54]NVStorageSaveData done [22:30:54]OFDSenderStorePacket done [22:30:54]KKMCreateOFDPacket done [22:30:54]NVStorageSaveData kkm_last_timestamp [22:30:54]File name is /storage/kkm_last_timestamp [22:30:54]Write 4 bytes [22:30:54]NVStorageSaveData done [22:30:54]ExternCall_PrintAddStr [22:30:54]wPrintStart [22:30:54]Write to MH i2c: 01 00 00 BE 12 D0 [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 07 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 07 00 BE 12 00 00 00 00 00 FF 0F E5 [22:30:54]RasterBufferAndPrint [22:30:54]line Счет N : (1)246007 [22:30:54]line ИНН: 02508201610067 [22:30:54]line Контрольно-Кассовый Чек [22:30:54]line ПРОДАЖА [22:30:54]line ТРК (МРК, ГНК) : 21 [22:30:54]line Товар: 2710124130 [22:30:54]line Аи-92-К-2 [22:30:54]line 5.240 * 66.90 [22:30:54]line = 350.56 [22:30:54]line НДС 12% НСП 1% [22:30:54]line > о реализуемом товаре [22:30:54]line ОКРУГЛЕНИЕ: -0.56 [22:30:54]line ИТОГО: 350.00 [22:30:54]line Внесено: 350.00 [22:30:54]line СДАЧА: 0.00 [22:30:54]line НСП 1% : 3.10 [22:30:54]line НДС 12% : 37.23 [22:30:54]line Наличными: 350.00 [22:30:54]line Безнал.: 0.00 [22:30:54]line Место: АЗС № 173 "Партнер Нефть" [22:30:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [22:30:54]line СНО: Общий режим [22:30:54]line Чек 266 30.10.2024 22:30 [22:30:54]line Смена: 545 ФФД: 1.0 [22:30:54]line ЗНМ: 0300000115 [22:30:54]line РНМ: 0000000000091782 [22:30:54]line Версия ККМ: 001 [22:30:54]line ФМ: 0000000000871767 [22:30:54]line ФД: 118206 [22:30:54]line ФПД: 250192500604680 [22:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T223054&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118206&fm=250192500604680&tin=02508201610067®Number=0000000000091782&sum=35000 [22:30:54]written 0, free lines is 4095 [22:30:54]OFD Sender: Processing packet 118206 [packets to send 77, broken 76] [22:30:54]ProducePacketName [22:30:54]name=ofd_packets/00118206 [22:30:54]OFD Sender: To server: pG, [22:30:54]CommunicateWithHost lk.salyk.kg:30040 [22:30:54]ConnectInit lk.salyk.kg [22:30:54]Connected sock=10 [22:30: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 36 37 0F 01 00 00 0A C1 07 01 D0 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0A 01 00 00 F4 03 04 00 9E B3 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CD 01 00 35 04 06 00 E3 8C 7B 1F BF 08 72 6E B7 90 36 B2 75 EA [22:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 BB 19 47 00 4E 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BE CD 01 00 F4 03 04 00 54 5F 22 67 B6 04 01 00 00 C7 FB 80 31 4C 8C 95 BA [22:30:54]CommunicateWithHost err = 0 [22:30:54]CheckOFDResponse [22:30:54]1017 (14) - 77093643461234 [22:30:54]1041 (16) - 0000000000871767 [22:30:54]1040 (4) - 118206 [22:30:54]1012 (4) - 30.10.2024 16:31 [22:30:54]1206 (1) - 0 [22:30:54]OFD Sender: Remove packet 118206 [22:30:54]ProducePacketName [22:30:54]name=ofd_packets/00118206 [22:30:54]NVStorageDeleteData [22:30:55]Write to MH i2c: 01 00 00 E8 12 FA [22:30:55]Write i2c OK [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: 01 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: 01 07 00 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: 01 07 00 E8 12 00 00 00 00 00 BE 0C CB [22:30:55]RasterBufferAndPrint [22:30:55]line [22:30:55]line [22:30:55]line [22:30:55]line [22:30:55]line [22:30:55]written 0, free lines is 3270 [22:30:55]MH_Cut [22:30:55]Write to MH i2c: D1 01 00 EF 12 01 D3 [22:30:55]Write i2c OK [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: D1 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: D1 01 00 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: D1 01 00 EF 12 00 D2 [22:30:55]Write to MH i2c: 01 00 00 F0 12 02 [22:30:55]Write i2c OK [22:30:55]MH_I2C_Read... [22:30:55]OFD Sender: No OFD packet to send [22:30:55]*** Cut start [22:30:55]*** Purtial cut [22:30:55]*** CUTSNS_PIN = 0 [22:30:56]*** Stage 1: CUTSNS_PIN = 1 [22:30:57]Read from MH i2c: 01 [22:30:57]MH_I2C_Read... [22:30:57]*** Stop cut motor [22:30:57]*** Cut end [22:30:57]Read from MH i2c: 01 07 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: 01 07 00 F0 12 00 00 00 00 00 FF 0F 17 [22:30:57]process_action close_receipt done [22:30:57]requested_data is exist [22:30:57]produce_requested_data [22:30:57]requested_item fm.sn is exist - process it [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 11 00 00 [22:30:57]Write to MH i2c: E2 08 00 F1 12 80 11 00 00 00 00 00 00 7D [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 17 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 17 00 F1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 D4 [22:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [22:30:57]wFMCommunicate OK [22:30:57]requested_item fd.num is exist - process it [22:30:57]SAM_PROTO_GetFieldsCounters [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 13 00 00 [22:30:57]Write to MH i2c: E2 08 00 F2 12 80 13 00 00 00 00 00 00 80 [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:58]Read from MH i2c: E2 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 62 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 62 00 F2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BE CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [22:30: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BE CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:58]wFMCommunicate OK [22:30:58]SAM_PROTO_GetFieldsCounters done [22:30:58]requested_item shift.num is exist - process it [22:30:58]requested_item shift.opened is exist - process it [22:30:58]req_shift_opened [22:30:58]FM_GetShiftState [22:30:58]SAM_PROTO_GetShiftState [22:30:58]wFMCommunicate request_size=4 [22:30:58]MH_SAM_APDU [22:30:58]CAPDU: 80 13 01 00 [22:30:58]Write to MH i2c: E2 08 00 F3 12 80 13 01 00 00 00 00 00 82 [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:58]Read from MH i2c: E2 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 0E 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 0E 00 F3 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5A [22:30:58]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [22:30:58]wFMCommunicate OK [22:30:58]SAM_PROTO_GetShiftState done [22:30:58]FM_GetShiftState done [22:30:58]req_shift_opened done [22:30:58]requested_item shift.open_date is exist - process it [22:30:58]req_shift_open_date [22:30:58]req_shift_open_date done [22:30:58]produce_requested_data done [22:30:58]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118206,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [22:30:58]process_action_free close_receipt [22:30:58]json_value_free [22:30:58]json_value_free done [22:30:58]process_json_proto returns [22:30:58]Send response to host [22:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118206,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [22:30:58]free response buf [22:30:58]execute_script done [22:30:58]execute_script returns [22:30:58]free content buf [22:30:58]Sock 7.Close socket [22:30:58]Sock 7.Thread stoped [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]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:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13: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:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]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:41]accept exits with 9 [23:23:41]New connection [23:23:41]New thread 3067133284 created [23:23:41]Thread 3067276644 joined [23:23:41]Waiting for new connection... [23:23:41] Sock 9.Parse request [23:23:41]Sock 9.Check first char [23:23:41]Sock 9.First char is OK [23:23:41]request: POST /json_proto HTTP/1.0 [23:23:41]Method: POST [23:23:41]URL: /json_proto [23:23:41]Method is POST - this is cgi request [23:23:41]url: /json_proto [23:23:41]query_string will be loaded in cgi processing [23:23:41]execute_cgi json_proto POST (null) [23:23:41]execute_cgi path=json_proto method=POST [23:23:41]POST find Content-Length [23:23:41]Host: 172.17.96.67:8080 [23:23:41]Content-Length: 769 [23:23:41]Content-Type: application/json [23:23:41] [23:23:41]POST finish read [23:23:41]Found Content-Length = 769 [23:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:41]execute_script... [23:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:41]POST & json_proto [23:23:41]process_json_proto [23:23:41]json parsed OK: [23:23:41]protocol is kg_v1.0 [23:23:41]action value=close_receipt [23:23:41]process_action close_receipt [23:23:41]cmd_close_receipt [23:23:41]MH_GetDate [23:23:41]Write to MH i2c: F0 00 00 F4 12 F5 [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: F0 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: F0 09 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: F0 09 00 F4 12 00 FF BF 22 67 47 6C 1F 67 7E [23:23:41]GetLastDocTimeStamp 1730327454 [23:23:41]current date 1730330623 [23:23:41]FM_GetShiftState [23:23:41]SAM_PROTO_GetShiftState [23:23:41]wFMCommunicate request_size=4 [23:23:41]MH_SAM_APDU [23:23:41]CAPDU: 80 13 01 00 [23:23:41]Write to MH i2c: E2 08 00 F5 12 80 13 01 00 00 00 00 00 84 [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:41]Read from MH i2c: E2 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 0E 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 0E 00 F5 12 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 5C [23:23:41]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:23:41]wFMCommunicate OK [23:23:41]SAM_PROTO_GetShiftState done [23:23:41]FM_GetShiftState done [23:23:41]opened in 1730246605 [23:23:41]opened+sec_in_day 1730333005 [23:23:41]quantity*price = 100015 [23:23:41]sum+1 = 100017 [23:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 267 30.10.2024 23:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118207 ФПД: 174926957398897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118207&fm=174926957398897&tin=02508201610067®Number=0000000000091782&sum=100016 [23:23:42]StoreToDocumentArchive [23:23:42]shift 545 fd 118207 [23:23:42]save to /storage/0545/doc_00118207 [23:23:42]save last doc name /storage/0545/doc_00118207 to /storage/kkm_last_doc_name [23:23:42]save OK [23:23:42]Clear old archive folders... [23:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:42]tlvbuf is 00288960 [23:23:42]SAM_PROTO_ClearQueue [23:23:42]wFMCommunicate request_size=4 [23:23:42]MH_SAM_APDU [23:23:42]CAPDU: 80 09 00 00 [23:23:42]Write to MH i2c: E2 08 00 02 13 80 09 00 00 00 00 00 00 87 [23:23:42]Write i2c OK [23:23:42]MH_I2C_Read... [23:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:42]Read from MH i2c: E2 [23:23:42]MH_I2C_Read... [23:23:42]Read from MH i2c: E2 03 00 [23:23:42]MH_I2C_Read... [23:23:42]Read from MH i2c: E2 03 00 02 13 00 90 00 89 [23:23:42]RAPDU: 90 00 [23:23:42]wFMCommunicate OK [23:23:42]SAM_PROTO_ClearQueue done [23:23:42]KKMCreateOFDPacket [23:23:42]OFDProtocolAddRootSTLVToBuf [23:23:42]FM_MakeSignedData [23:23:42]FM_MakeSignedData [23:23:42]SAM_PROTO_SignData [23:23:42]wFMCommunicate request_size=4 [23:23:42]MH_SAM_APDU [23:23:42]CAPDU: 80 0D 01 02 [23:23:42]Write to MH i2c: E2 08 00 03 13 80 0D 01 02 00 00 00 00 8F [23:23:42]Write i2c OK [23:23:42]MH_I2C_Read... [23:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:42]Read from MH i2c: E2 [23:23:42]MH_I2C_Read... [23:23:42]Read from MH i2c: E2 03 00 [23:23:42]MH_I2C_Read... [23:23:42]Read from MH i2c: E2 03 00 03 13 00 90 00 8A [23:23:42]RAPDU: 90 00 [23:23:42]wFMCommunicate OK [23:23:42]wFMCommunicate request_size=255 [23:23:42]MH_SAM_APDU [23:23:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 01 00 00 F4 03 04 00 FF BF 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CD 01 00 35 04 06 00 9F [23:23:42]Write to MH i2c: E2 02 01 04 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 FF BF 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CD 01 00 35 04 06 00 9F 00 00 DD [23:23:42]Write i2c OK [23:23:42]MH_I2C_Read... [23:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:43]Read from MH i2c: E2 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 03 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 03 00 04 13 00 90 00 8B [23:23:43]RAPDU: 90 00 [23:23:43]wFMCommunicate OK [23:23:43]wFMCommunicate request_size=10 [23:23:43]MH_SAM_APDU [23:23:43]CAPDU: 80 0D 02 02 05 18 5B 28 4B 71 [23:23:43]Write to MH i2c: E2 0D 00 05 13 80 0D 02 02 05 00 18 5B 28 4B 71 00 00 F3 [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:43]Read from MH i2c: E2 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 03 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 03 00 05 13 00 90 00 8C [23:23:43]RAPDU: 90 00 [23:23:43]wFMCommunicate OK [23:23:43]wFMCommunicate request_size=4 [23:23:43]MH_SAM_APDU [23:23:43]CAPDU: 80 0D 03 02 [23:23:43]Write to MH i2c: E2 08 00 06 13 80 0D 03 02 00 00 00 00 94 [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:43]Read from MH i2c: E2 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 0B 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 0B 00 06 13 00 AD 68 82 38 2D 9B D3 DD 90 00 DC [23:23:43]RAPDU: AD 68 82 38 2D 9B D3 DD 90 00 [23:23:43]wFMCommunicate OK [23:23:43]SAM_PROTO_SignData done [23:23:43]FM_MakeSignedData done [23:23:43]CreateOFDProtocolMessage [23:23:43]wFMCommunicate request_size=4 [23:23:43]MH_SAM_APDU [23:23:43]CAPDU: 80 11 00 00 [23:23:43]Write to MH i2c: E2 08 00 07 13 80 11 00 00 00 00 00 00 94 [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:43]Read from MH i2c: E2 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 17 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 17 00 07 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 EB [23:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:23:43]wFMCommunicate OK [23:23:43]CreateOFDProtocolMessage done [23:23:43]OFDSenderStorePacket 118207 [23:23:43]StoreOFDPacket docnum=118207 [23:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D7 C7 07 01 C8 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 32 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 0B 01 00 00 F4 03 04 00 FF BF 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CD 01 00 35 04 06 00 9F 18 5B 28 4B 71 AD 68 82 38 2D 9B D3 DD [23:23:43]CheckFolder [23:23:43]dirname=/storage/ofd_packets [23:23:43]CheckFolder done [23:23:43]ProducePacketName [23:23:43]name=ofd_packets/00118207 [23:23:43]NVStorageSaveData ofd_packets/00118207 [23:23:43]File name is /storage/ofd_packets/00118207 [23:23:43]Write 301 bytes [23:23:43]NVStorageSaveData done [23:23:43]OFDSenderStorePacket done [23:23:43]KKMCreateOFDPacket done [23:23:43]NVStorageSaveData kkm_last_timestamp [23:23:43]File name is /storage/kkm_last_timestamp [23:23:43]Write 4 bytes [23:23:43]NVStorageSaveData done [23:23:43]ExternCall_PrintAddStr [23:23:43]wPrintStart [23:23:43]Write to MH i2c: 01 00 00 08 13 1B [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: 01 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: 01 07 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: 01 07 00 08 13 00 00 00 00 00 FF 0F 30 [23:23:43]RasterBufferAndPrint [23:23:43]line Счет N : (1)246008 [23:23:43]line ИНН: 02508201610067 [23:23:43]line Контрольно-Кассовый Чек [23:23:43]line ПРОДАЖА [23:23:43]line ТРК (МРК, ГНК) : 11 [23:23:43]line Товар: 2710124130 [23:23:43]line Аи-92-К-2 [23:23:43]line 14.950 * 66.90 [23:23:43]line = 1000.16 [23:23:43]line НДС 12% НСП 1% [23:23:43]line > о реализуемом товаре [23:23:43]line ИТОГО: 1000.16 [23:23:43]line НСП 1% : 8.85 [23:23:43]line НДС 12% : 106.21 [23:23:43]line Наличными: 0.00 [23:23:43]line Безнал.: 1000.16 [23:23:43]line Место: АЗС № 173 "Партнер Нефть" [23:23:43]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:23:43]line СНО: Общий режим [23:23:43]line Чек 267 30.10.2024 23:23 [23:23:43]line Смена: 545 ФФД: 1.0 [23:23:43]line ЗНМ: 0300000115 [23:23:43]line РНМ: 0000000000091782 [23:23:43]line Версия ККМ: 001 [23:23:43]line Платежная система: Mbank [23:23:43]line ФМ: 0000000000871767 [23:23:43]line ФД: 118207 [23:23:43]line ФПД: 174926957398897 [23:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232343&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118207&fm=174926957398897&tin=02508201610067®Number=0000000000091782&sum=100016 [23:23:43]written 0, free lines is 4095 [23:23:43]OFD Sender: Processing packet 118207 [packets to send 77, broken 76] [23:23:43]ProducePacketName [23:23:43]name=ofd_packets/00118207 [23:23:43]OFD Sender: To server: pG, [23:23:43]CommunicateWithHost lk.salyk.kg:30040 [23:23:43]ConnectInit lk.salyk.kg [23:23:43]Connected sock=10 [23:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 D7 C7 07 01 C8 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 32 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 0B 01 00 00 F4 03 04 00 FF BF 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 BF CD 01 00 35 04 06 00 9F 18 5B 28 4B 71 AD 68 82 38 2D 9B D3 DD [23:23: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 36 37 4F 00 00 00 DB C1 47 00 56 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 36 37 10 04 04 00 BF CD 01 00 F4 03 04 00 B5 6B 22 67 B6 04 01 00 00 25 C8 4A D7 47 F7 5C 95 [23:23:43]CommunicateWithHost err = 0 [23:23:43]CheckOFDResponse [23:23:43]1017 (14) - 77093643461234 [23:23:43]1041 (16) - 0000000000871767 [23:23:43]1040 (4) - 118207 [23:23:43]1012 (4) - 30.10.2024 17:24 [23:23:43]1206 (1) - 0 [23:23:43]OFD Sender: Remove packet 118207 [23:23:43]ProducePacketName [23:23:43]name=ofd_packets/00118207 [23:23:43]NVStorageDeleteData [23:23:43]Write to MH i2c: 01 00 00 30 13 43 [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: 01 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: 01 07 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: 01 07 00 30 13 00 00 00 00 00 E4 0C 3A [23:23:43]RasterBufferAndPrint [23:23:43]line [23:23:43]line [23:23:43]line [23:23:43]line [23:23:43]line [23:23:43]written 0, free lines is 3306 [23:23:43]MH_Cut [23:23:43]Write to MH i2c: D1 01 00 37 13 01 1C [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: D1 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: D1 01 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: D1 01 00 37 13 00 1B [23:23:43]Write to MH i2c: 01 00 00 38 13 4B [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:44]OFD Sender: No OFD packet to send [23:23:44]*** Cut start [23:23:44]*** Purtial cut [23:23:44]*** Stage 1: CUTSNS_PIN = 1 [23:23:44]Read from MH i2c: 01 [23:23:44]MH_I2C_Read... [23:23:44]*** Stop cut motor [23:23:44]*** Cut end [23:23:44]Read from MH i2c: 01 07 00 [23:23:44]MH_I2C_Read... [23:23:44]Read from MH i2c: 01 07 00 38 13 00 00 00 00 00 FF 0F 60 [23:23:44]process_action close_receipt done [23:23:44]requested_data is exist [23:23:44]produce_requested_data [23:23:44]requested_item fm.sn is exist - process it [23:23:44]wFMCommunicate request_size=4 [23:23:44]MH_SAM_APDU [23:23:44]CAPDU: 80 11 00 00 [23:23:44]Write to MH i2c: E2 08 00 39 13 80 11 00 00 00 00 00 00 C6 [23:23:44]Write i2c OK [23:23:44]MH_I2C_Read... [23:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:44]Read from MH i2c: E2 [23:23:44]MH_I2C_Read... [23:23:44]Read from MH i2c: E2 17 00 [23:23:44]MH_I2C_Read... [23:23:44]Read from MH i2c: E2 17 00 39 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 1D [23:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:23:44]wFMCommunicate OK [23:23:44]requested_item fd.num is exist - process it [23:23:44]SAM_PROTO_GetFieldsCounters [23:23:44]wFMCommunicate request_size=4 [23:23:44]MH_SAM_APDU [23:23:44]CAPDU: 80 13 00 00 [23:23:44]Write to MH i2c: E2 08 00 3A 13 80 13 00 00 00 00 00 00 C9 [23:23:44]Write i2c OK [23:23:44]MH_I2C_Read... [23:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:44]Read from MH i2c: E2 [23:23:44]MH_I2C_Read... [23:23:44]Read from MH i2c: E2 62 00 [23:23:44]MH_I2C_Read... [23:23:44]Read from MH i2c: E2 62 00 3A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BF CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [23:23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 BF CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:44]wFMCommunicate OK [23:23:44]SAM_PROTO_GetFieldsCounters done [23:23:44]requested_item shift.num is exist - process it [23:23:44]requested_item shift.opened is exist - process it [23:23:44]req_shift_opened [23:23:44]FM_GetShiftState [23:23:44]SAM_PROTO_GetShiftState [23:23:44]wFMCommunicate request_size=4 [23:23:44]MH_SAM_APDU [23:23:44]CAPDU: 80 13 01 00 [23:23:44]Write to MH i2c: E2 08 00 3B 13 80 13 01 00 00 00 00 00 CB [23:23:44]Write i2c OK [23:23:44]MH_I2C_Read... [23:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:45]Read from MH i2c: E2 [23:23:45]MH_I2C_Read... [23:23:45]Read from MH i2c: E2 0E 00 [23:23:45]MH_I2C_Read... [23:23:45]Read from MH i2c: E2 0E 00 3B 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A3 [23:23:45]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:23:45]wFMCommunicate OK [23:23:45]SAM_PROTO_GetShiftState done [23:23:45]FM_GetShiftState done [23:23:45]req_shift_opened done [23:23:45]requested_item shift.open_date is exist - process it [23:23:45]req_shift_open_date [23:23:45]req_shift_open_date done [23:23:45]produce_requested_data done [23:23:45]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118207,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [23:23:45]process_action_free close_receipt [23:23:45]json_value_free [23:23:45]json_value_free done [23:23:45]process_json_proto returns [23:23:45]Send response to host [23:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118207,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [23:23:45]free response buf [23:23:45]execute_script done [23:23:45]execute_script returns [23:23:45]free content buf [23:23:45]Sock 9.Close socket [23:23:45]Sock 9.Thread stoped [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:32]accept exits with 7 [23:26:32]New connection [23:26:32]New thread 3067276644 created [23:26:32]Thread 3067133284 joined [23:26:32]Waiting for new connection... [23:26:32] Sock 7.Parse request [23:26:32]Sock 7.Check first char [23:26:32]Sock 7.First char is OK [23:26:32]request: POST /json_proto HTTP/1.0 [23:26:32]Method: POST [23:26:32]URL: /json_proto [23:26:32]Method is POST - this is cgi request [23:26:32]url: /json_proto [23:26:32]query_string will be loaded in cgi processing [23:26:32]execute_cgi json_proto POST (null) [23:26:32]execute_cgi path=json_proto method=POST [23:26:32]POST find Content-Length [23:26:32]Host: 172.17.96.67:8080 [23:26:32]Content-Length: 677 [23:26:32]Content-Type: application/json [23:26:32] [23:26:32]POST finish read [23:26:32]Found Content-Length = 677 [23:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:26:32]execute_script... [23:26: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)246009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:26:32]POST & json_proto [23:26:32]process_json_proto [23:26:32]json parsed OK: [23:26:32]protocol is kg_v1.0 [23:26:32]action value=close_receipt [23:26:32]process_action close_receipt [23:26:32]cmd_close_receipt [23:26:32]MH_GetDate [23:26:32]Write to MH i2c: F0 00 00 3C 13 3E [23:26:32]Write i2c OK [23:26:32]MH_I2C_Read... [23:26:32]Read from MH i2c: F0 [23:26:32]MH_I2C_Read... [23:26:32]Read from MH i2c: F0 09 00 [23:26:32]MH_I2C_Read... [23:26:32]Read from MH i2c: F0 09 00 3C 13 00 AA C0 22 67 47 6C 1F 67 73 [23:26:32]GetLastDocTimeStamp 1730330623 [23:26:32]current date 1730330794 [23:26:32]FM_GetShiftState [23:26:32]SAM_PROTO_GetShiftState [23:26:32]wFMCommunicate request_size=4 [23:26:32]MH_SAM_APDU [23:26:32]CAPDU: 80 13 01 00 [23:26:32]Write to MH i2c: E2 08 00 3D 13 80 13 01 00 00 00 00 00 CD [23:26:32]Write i2c OK [23:26:32]MH_I2C_Read... [23:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:32]Read from MH i2c: E2 [23:26:32]MH_I2C_Read... [23:26:32]Read from MH i2c: E2 0E 00 [23:26:32]MH_I2C_Read... [23:26:32]Read from MH i2c: E2 0E 00 3D 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 A5 [23:26:32]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:26:32]wFMCommunicate OK [23:26:32]SAM_PROTO_GetShiftState done [23:26:32]FM_GetShiftState done [23:26:32]opened in 1730246605 [23:26:32]opened+sec_in_day 1730333005 [23:26:32]quantity*price = 50041 [23:26:32]sum+1 = 50042 [23:26: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 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 268 30.10.2024 23:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118208 ФПД: 150882389839401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118208&fm=150882389839401&tin=02508201610067®Number=0000000000091782&sum=50000 [23:26:33]StoreToDocumentArchive [23:26:33]shift 545 fd 118208 [23:26:33]save to /storage/0545/doc_00118208 [23:26:33]save last doc name /storage/0545/doc_00118208 to /storage/kkm_last_doc_name [23:26:33]save OK [23:26:33]Clear old archive folders... [23:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:33]tlvbuf is 00244BE0 [23:26:33]SAM_PROTO_ClearQueue [23:26:33]wFMCommunicate request_size=4 [23:26:33]MH_SAM_APDU [23:26:33]CAPDU: 80 09 00 00 [23:26:33]Write to MH i2c: E2 08 00 4A 13 80 09 00 00 00 00 00 00 CF [23:26:33]Write i2c OK [23:26:33]MH_I2C_Read... [23:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:33]Read from MH i2c: E2 [23:26:33]MH_I2C_Read... [23:26:33]Read from MH i2c: E2 03 00 [23:26:33]MH_I2C_Read... [23:26:33]Read from MH i2c: E2 03 00 4A 13 00 90 00 D1 [23:26:33]RAPDU: 90 00 [23:26:33]wFMCommunicate OK [23:26:33]SAM_PROTO_ClearQueue done [23:26:33]KKMCreateOFDPacket [23:26:33]OFDProtocolAddRootSTLVToBuf [23:26:33]FM_MakeSignedData [23:26:33]FM_MakeSignedData [23:26:33]SAM_PROTO_SignData [23:26:33]wFMCommunicate request_size=4 [23:26:33]MH_SAM_APDU [23:26:33]CAPDU: 80 0D 01 02 [23:26:33]Write to MH i2c: E2 08 00 4B 13 80 0D 01 02 00 00 00 00 D7 [23:26:33]Write i2c OK [23:26:33]MH_I2C_Read... [23:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:33]Read from MH i2c: E2 [23:26:33]MH_I2C_Read... [23:26:33]Read from MH i2c: E2 03 00 [23:26:33]MH_I2C_Read... [23:26:33]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [23:26:33]RAPDU: 90 00 [23:26:33]wFMCommunicate OK [23:26:33]wFMCommunicate request_size=255 [23:26:33]MH_SAM_APDU [23: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 32 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 0C 01 00 00 F4 03 04 00 AA C0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CD 01 00 35 04 06 00 89 [23:26:33]Write to MH i2c: E2 02 01 4C 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0C 01 00 00 F4 03 04 00 AA C0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CD 01 00 35 04 06 00 89 00 00 A3 [23:26:33]Write i2c OK [23:26:33]MH_I2C_Read... [23:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:33]Read from MH i2c: E2 [23:26:33]MH_I2C_Read... [23:26:33]Read from MH i2c: E2 03 00 [23:26:33]MH_I2C_Read... [23:26:33]Read from MH i2c: E2 03 00 4C 13 00 90 00 D3 [23:26:33]RAPDU: 90 00 [23:26:33]wFMCommunicate OK [23:26:33]wFMCommunicate request_size=10 [23:26:33]MH_SAM_APDU [23:26:33]CAPDU: 80 0D 02 02 05 3A 0B 3F CE 29 [23:26:33]Write to MH i2c: E2 0D 00 4D 13 80 0D 02 02 05 00 3A 0B 3F CE 29 00 00 5F [23:26:33]Write i2c OK [23:26:33]MH_I2C_Read... [23:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:34]Read from MH i2c: E2 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 03 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 03 00 4D 13 00 90 00 D4 [23:26:34]RAPDU: 90 00 [23:26:34]wFMCommunicate OK [23:26:34]wFMCommunicate request_size=4 [23:26:34]MH_SAM_APDU [23:26:34]CAPDU: 80 0D 03 02 [23:26:34]Write to MH i2c: E2 08 00 4E 13 80 0D 03 02 00 00 00 00 DC [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:34]Read from MH i2c: E2 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 0B 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 0B 00 4E 13 00 65 72 47 36 85 75 74 A2 90 00 41 [23:26:34]RAPDU: 65 72 47 36 85 75 74 A2 90 00 [23:26:34]wFMCommunicate OK [23:26:34]SAM_PROTO_SignData done [23:26:34]FM_MakeSignedData done [23:26:34]CreateOFDProtocolMessage [23:26:34]wFMCommunicate request_size=4 [23:26:34]MH_SAM_APDU [23:26:34]CAPDU: 80 11 00 00 [23:26:34]Write to MH i2c: E2 08 00 4F 13 80 11 00 00 00 00 00 00 DC [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:34]Read from MH i2c: E2 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 17 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 17 00 4F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 33 [23:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:26:34]wFMCommunicate OK [23:26:34]CreateOFDProtocolMessage done [23:26:34]OFDSenderStorePacket 118208 [23:26:34]StoreOFDPacket docnum=118208 [23:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 0A 2F 07 01 84 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 01 00 00 F4 03 04 00 AA C0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CD 01 00 35 04 06 00 89 3A 0B 3F CE 29 65 72 47 36 85 75 74 A2 [23:26:34]CheckFolder [23:26:34]dirname=/storage/ofd_packets [23:26:34]CheckFolder done [23:26:34]ProducePacketName [23:26:34]name=ofd_packets/00118208 [23:26:34]NVStorageSaveData ofd_packets/00118208 [23:26:34]File name is /storage/ofd_packets/00118208 [23:26:34]Write 301 bytes [23:26:34]NVStorageSaveData done [23:26:34]OFDSenderStorePacket done [23:26:34]KKMCreateOFDPacket done [23:26:34]NVStorageSaveData kkm_last_timestamp [23:26:34]File name is /storage/kkm_last_timestamp [23:26:34]Write 4 bytes [23:26:34]NVStorageSaveData done [23:26:34]ExternCall_PrintAddStr [23:26:34]wPrintStart [23:26:34]Write to MH i2c: 01 00 00 50 13 63 [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: 01 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: 01 07 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: 01 07 00 50 13 00 00 00 00 00 FF 0F 78 [23:26:34]RasterBufferAndPrint [23:26:34]line Счет N : (1)246009 [23:26:34]line ИНН: 02508201610067 [23:26:34]line Контрольно-Кассовый Чек [23:26:34]line ПРОДАЖА [23:26:34]line ТРК (МРК, ГНК) : 21 [23:26:34]line Товар: 2710124130 [23:26:34]line Аи-92-К-2 [23:26:34]line 7.480 * 66.90 [23:26:34]line = 500.41 [23:26:34]line НДС 12% НСП 1% [23:26:34]line > о реализуемом товаре [23:26:34]line ОКРУГЛЕНИЕ: -0.41 [23:26:34]line ИТОГО: 500.00 [23:26:34]line Внесено: 500.00 [23:26:34]line СДАЧА: 0.00 [23:26:34]line НСП 1% : 4.43 [23:26:34]line НДС 12% : 53.14 [23:26:34]line Наличными: 500.00 [23:26:34]line Безнал.: 0.00 [23:26:34]line Место: АЗС № 173 "Партнер Нефть" [23:26:34]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:26:34]line СНО: Общий режим [23:26:34]line Чек 268 30.10.2024 23:26 [23:26:34]line Смена: 545 ФФД: 1.0 [23:26:34]line ЗНМ: 0300000115 [23:26:34]line РНМ: 0000000000091782 [23:26:34]line Версия ККМ: 001 [23:26:34]line ФМ: 0000000000871767 [23:26:34]line ФД: 118208 [23:26:34]line ФПД: 150882389839401 [23:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232634&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118208&fm=150882389839401&tin=02508201610067®Number=0000000000091782&sum=50000 [23:26:34]OFD Sender: Processing packet 118208 [packets to send 77, broken 76] [23:26:34]ProducePacketName [23:26:34]name=ofd_packets/00118208 [23:26:34]OFD Sender: To server: pG, [23:26:34]CommunicateWithHost lk.salyk.kg:30040 [23:26:34]ConnectInit lk.salyk.kg [23:26:34]written 0, free lines is 4095 [23:26:34]Connected sock=10 [23: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 36 37 0F 01 00 00 0A 2F 07 01 84 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 01 00 00 F4 03 04 00 AA C0 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CD 01 00 35 04 06 00 89 3A 0B 3F CE 29 65 72 47 36 85 75 74 A2 [23: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 36 37 4F 00 00 00 FA 16 47 00 F5 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C0 CD 01 00 F4 03 04 00 60 6C 22 67 B6 04 01 00 00 0C 75 3B CF 21 6B 43 1F [23:26:34]CommunicateWithHost err = 0 [23:26:34]CheckOFDResponse [23:26:34]1017 (14) - 77093643461234 [23:26:34]1041 (16) - 0000000000871767 [23:26:34]1040 (4) - 118208 [23:26:34]1012 (4) - 30.10.2024 17:26 [23:26:34]1206 (1) - 0 [23:26:34]OFD Sender: Remove packet 118208 [23:26:34]ProducePacketName [23:26:34]name=ofd_packets/00118208 [23:26:34]NVStorageDeleteData [23:26:34]Write to MH i2c: 01 00 00 7A 13 8D [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: 01 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: 01 07 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: 01 07 00 7A 13 00 00 00 00 00 C0 0C 60 [23:26:34]RasterBufferAndPrint [23:26:34]line [23:26:34]line [23:26:34]line [23:26:34]line [23:26:34]line [23:26:34]written 0, free lines is 3270 [23:26:34]MH_Cut [23:26:34]Write to MH i2c: D1 01 00 81 13 01 66 [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: D1 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: D1 01 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: D1 01 00 81 13 00 65 [23:26:34]Write to MH i2c: 01 00 00 82 13 95 [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:35]OFD Sender: No OFD packet to send [23:26:35]*** Cut start [23:26:35]*** Purtial cut [23:26:35]*** Stage 1: CUTSNS_PIN = 1 [23:26:36]Read from MH i2c: 01 [23:26:36]MH_I2C_Read... [23:26:36]*** Stop cut motor [23:26:36]*** Cut end [23:26:36]Read from MH i2c: 01 07 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: 01 07 00 82 13 00 00 00 00 00 FF 0F AA [23:26:36]process_action close_receipt done [23:26:36]requested_data is exist [23:26:36]produce_requested_data [23:26:36]requested_item fm.sn is exist - process it [23:26:36]wFMCommunicate request_size=4 [23:26:36]MH_SAM_APDU [23:26:36]CAPDU: 80 11 00 00 [23:26:36]Write to MH i2c: E2 08 00 83 13 80 11 00 00 00 00 00 00 10 [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:36]Read from MH i2c: E2 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 17 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 17 00 83 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 67 [23:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:26:36]wFMCommunicate OK [23:26:36]requested_item fd.num is exist - process it [23:26:36]SAM_PROTO_GetFieldsCounters [23:26:36]wFMCommunicate request_size=4 [23:26:36]MH_SAM_APDU [23:26:36]CAPDU: 80 13 00 00 [23:26:36]Write to MH i2c: E2 08 00 84 13 80 13 00 00 00 00 00 00 13 [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:36]Read from MH i2c: E2 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 62 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 62 00 84 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C0 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [23: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C0 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:36]wFMCommunicate OK [23:26:36]SAM_PROTO_GetFieldsCounters done [23:26:36]requested_item shift.num is exist - process it [23:26:36]requested_item shift.opened is exist - process it [23:26:36]req_shift_opened [23:26:36]FM_GetShiftState [23:26:36]SAM_PROTO_GetShiftState [23:26:36]wFMCommunicate request_size=4 [23:26:36]MH_SAM_APDU [23:26:36]CAPDU: 80 13 01 00 [23:26:36]Write to MH i2c: E2 08 00 85 13 80 13 01 00 00 00 00 00 15 [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:36]Read from MH i2c: E2 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 0E 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 0E 00 85 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 ED [23:26:36]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:26:36]wFMCommunicate OK [23:26:36]SAM_PROTO_GetShiftState done [23:26:36]FM_GetShiftState done [23:26:36]req_shift_opened done [23:26:36]requested_item shift.open_date is exist - process it [23:26:36]req_shift_open_date [23:26:36]req_shift_open_date done [23:26:36]produce_requested_data done [23:26:36]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118208,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [23:26:36]process_action_free close_receipt [23:26:36]json_value_free [23:26:36]json_value_free done [23:26:36]process_json_proto returns [23:26:36]Send response to host [23:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118208,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [23:26:36]free response buf [23:26:36]execute_script done [23:26:36]execute_script returns [23:26:36]free content buf [23:26:36]Sock 7.Close socket [23:26:36]Sock 7.Thread stoped [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [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:04]accept exits with 9 [23:50:04]New connection [23:50:04]New thread 3067133284 created [23:50:04]Thread 3067276644 joined [23:50:04]Waiting for new connection... [23:50:04] Sock 9.Parse request [23:50:04]Sock 9.Check first char [23:50:04]Sock 9.First char is OK [23:50:04]request: POST /json_proto HTTP/1.0 [23:50:04]Method: POST [23:50:04]URL: /json_proto [23:50:04]Method is POST - this is cgi request [23:50:04]url: /json_proto [23:50:04]query_string will be loaded in cgi processing [23:50:04]execute_cgi json_proto POST (null) [23:50:04]execute_cgi path=json_proto method=POST [23:50:04]POST find Content-Length [23:50:04]Host: 172.17.96.67:8080 [23:50:04]Content-Length: 677 [23:50:04]Content-Type: application/json [23:50:04] [23:50:04]POST finish read [23:50:04]Found Content-Length = 677 [23:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [23:50:04]execute_script... [23:50: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)246010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [23:50:04]POST & json_proto [23:50:04]process_json_proto [23:50:04]json parsed OK: [23:50:04]protocol is kg_v1.0 [23:50:04]action value=close_receipt [23:50:04]process_action close_receipt [23:50:04]cmd_close_receipt [23:50:04]MH_GetDate [23:50:04]Write to MH i2c: F0 00 00 86 13 88 [23:50:04]Write i2c OK [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: F0 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: F0 09 00 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: F0 09 00 86 13 00 2E C6 22 67 47 6C 1F 67 47 [23:50:04]GetLastDocTimeStamp 1730330794 [23:50:04]current date 1730332206 [23:50:04]FM_GetShiftState [23:50:04]SAM_PROTO_GetShiftState [23:50:04]wFMCommunicate request_size=4 [23:50:04]MH_SAM_APDU [23:50:04]CAPDU: 80 13 01 00 [23:50:04]Write to MH i2c: E2 08 00 87 13 80 13 01 00 00 00 00 00 17 [23:50:04]Write i2c OK [23:50:04]MH_I2C_Read... [23:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:04]Read from MH i2c: E2 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 0E 00 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 0E 00 87 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 EF [23:50:04]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:50:04]wFMCommunicate OK [23:50:04]SAM_PROTO_GetShiftState done [23:50:04]FM_GetShiftState done [23:50:04]opened in 1730246605 [23:50:04]opened+sec_in_day 1730333005 [23:50:04]quantity*price = 30038 [23:50:04]sum+1 = 30039 [23:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 269 30.10.2024 23:50 Смена: 545 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118209 ФПД: 237542720958883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T235006&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118209&fm=237542720958883&tin=02508201610067®Number=0000000000091782&sum=30000 [23:50:05]StoreToDocumentArchive [23:50:05]shift 545 fd 118209 [23:50:05]save to /storage/0545/doc_00118209 [23:50:05]save last doc name /storage/0545/doc_00118209 to /storage/kkm_last_doc_name [23:50:05]save OK [23:50:05]Clear old archive folders... [23:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:05]tlvbuf is 001C87A0 [23:50:05]SAM_PROTO_ClearQueue [23:50:05]wFMCommunicate request_size=4 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 09 00 00 [23:50:05]Write to MH i2c: E2 08 00 94 13 80 09 00 00 00 00 00 00 19 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:05]Read from MH i2c: E2 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [23:50:05]RAPDU: 90 00 [23:50:05]wFMCommunicate OK [23:50:05]SAM_PROTO_ClearQueue done [23:50:05]KKMCreateOFDPacket [23:50:05]OFDProtocolAddRootSTLVToBuf [23:50:05]FM_MakeSignedData [23:50:05]FM_MakeSignedData [23:50:05]SAM_PROTO_SignData [23:50:05]wFMCommunicate request_size=4 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 0D 01 02 [23:50:05]Write to MH i2c: E2 08 00 95 13 80 0D 01 02 00 00 00 00 21 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:05]Read from MH i2c: E2 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [23:50:05]RAPDU: 90 00 [23:50:05]wFMCommunicate OK [23:50:05]wFMCommunicate request_size=255 [23:50:05]MH_SAM_APDU [23:50: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 32 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 0D 01 00 00 F4 03 04 00 2E C6 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CD 01 00 35 04 06 00 D8 [23:50:05]Write to MH i2c: E2 02 01 96 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0D 01 00 00 F4 03 04 00 2E C6 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CD 01 00 35 04 06 00 D8 00 00 BC [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [23:50:06]RAPDU: 90 00 [23:50:06]wFMCommunicate OK [23:50:06]wFMCommunicate request_size=10 [23:50:06]MH_SAM_APDU [23:50:06]CAPDU: 80 0D 02 02 05 0B 39 80 71 A3 [23:50:06]Write to MH i2c: E2 0D 00 97 13 80 0D 02 02 05 00 0B 39 80 71 A3 00 00 06 [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [23:50:06]RAPDU: 90 00 [23:50:06]wFMCommunicate OK [23:50:06]wFMCommunicate request_size=4 [23:50:06]MH_SAM_APDU [23:50:06]CAPDU: 80 0D 03 02 [23:50:06]Write to MH i2c: E2 08 00 98 13 80 0D 03 02 00 00 00 00 26 [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 0B 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 0B 00 98 13 00 DE BA 59 F9 7D 5E C8 E5 90 00 99 [23:50:06]RAPDU: DE BA 59 F9 7D 5E C8 E5 90 00 [23:50:06]wFMCommunicate OK [23:50:06]SAM_PROTO_SignData done [23:50:06]FM_MakeSignedData done [23:50:06]CreateOFDProtocolMessage [23:50:06]wFMCommunicate request_size=4 [23:50:06]MH_SAM_APDU [23:50:06]CAPDU: 80 11 00 00 [23:50:06]Write to MH i2c: E2 08 00 99 13 80 11 00 00 00 00 00 00 26 [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 17 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 17 00 99 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 7D [23:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:50:06]wFMCommunicate OK [23:50:06]CreateOFDProtocolMessage done [23:50:06]OFDSenderStorePacket 118209 [23:50:06]StoreOFDPacket docnum=118209 [23:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 C8 12 07 01 31 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 32 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 0D 01 00 00 F4 03 04 00 2E C6 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CD 01 00 35 04 06 00 D8 0B 39 80 71 A3 DE BA 59 F9 7D 5E C8 E5 [23:50:06]CheckFolder [23:50:06]dirname=/storage/ofd_packets [23:50:06]CheckFolder done [23:50:06]ProducePacketName [23:50:06]name=ofd_packets/00118209 [23:50:06]NVStorageSaveData ofd_packets/00118209 [23:50:06]File name is /storage/ofd_packets/00118209 [23:50:06]Write 301 bytes [23:50:06]NVStorageSaveData done [23:50:06]OFDSenderStorePacket done [23:50:06]KKMCreateOFDPacket done [23:50:06]NVStorageSaveData kkm_last_timestamp [23:50:06]File name is /storage/kkm_last_timestamp [23:50:06]Write 4 bytes [23:50:06]NVStorageSaveData done [23:50:06]ExternCall_PrintAddStr [23:50:06]wPrintStart [23:50:06]Write to MH i2c: 01 00 00 9A 13 AD [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 07 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 07 00 9A 13 00 00 00 00 00 FF 0F C2 [23:50:06]RasterBufferAndPrint [23:50:06]line Счет N : (1)246010 [23:50:06]line ИНН: 02508201610067 [23:50:06]line Контрольно-Кассовый Чек [23:50:06]line ПРОДАЖА [23:50:06]line ТРК (МРК, ГНК) : 11 [23:50:06]line Товар: 2710124130 [23:50:06]line Аи-92-К-2 [23:50:06]line 4.490 * 66.90 [23:50:06]line = 300.38 [23:50:06]line НДС 12% НСП 1% [23:50:06]line > о реализуемом товаре [23:50:06]line ОКРУГЛЕНИЕ: -0.38 [23:50:06]line ИТОГО: 300.00 [23:50:06]line Внесено: 300.00 [23:50:06]line СДАЧА: 0.00 [23:50:06]line НСП 1% : 2.66 [23:50:06]line НДС 12% : 31.90 [23:50:06]line Наличными: 300.00 [23:50:06]line Безнал.: 0.00 [23:50:06]line Место: АЗС № 173 "Партнер Нефть" [23:50:06]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [23:50:06]line СНО: Общий режим [23:50:06]line Чек 269 30.10.2024 23:50 [23:50:06]line Смена: 545 ФФД: 1.0 [23:50:06]line ЗНМ: 0300000115 [23:50:06]line РНМ: 0000000000091782 [23:50:06]line Версия ККМ: 001 [23:50:06]line ФМ: 0000000000871767 [23:50:06]line ФД: 118209 [23:50:06]line ФПД: 237542720958883 [23:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T235006&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118209&fm=237542720958883&tin=02508201610067®Number=0000000000091782&sum=30000 [23:50:06]written 0, free lines is 4095 [23:50:06]OFD Sender: Processing packet 118209 [packets to send 77, broken 76] [23:50:06]ProducePacketName [23:50:06]name=ofd_packets/00118209 [23:50:06]OFD Sender: To server: pG, [23:50:06]CommunicateWithHost lk.salyk.kg:30040 [23:50:06]ConnectInit lk.salyk.kg [23:50:06]Connected sock=10 [23:50: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 36 37 0F 01 00 00 C8 12 07 01 31 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 32 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 0D 01 00 00 F4 03 04 00 2E C6 22 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CD 01 00 35 04 06 00 D8 0B 39 80 71 A3 DE BA 59 F9 7D 5E C8 E5 [23:50: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 36 37 4F 00 00 00 85 6F 47 00 37 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C1 CD 01 00 F4 03 04 00 E4 71 22 67 B6 04 01 00 00 B1 86 F6 43 68 14 4E FB [23:50:06]CommunicateWithHost err = 0 [23:50:06]CheckOFDResponse [23:50:06]1017 (14) - 77093643461234 [23:50:06]1041 (16) - 0000000000871767 [23:50:06]1040 (4) - 118209 [23:50:06]1012 (4) - 30.10.2024 17:50 [23:50:06]1206 (1) - 0 [23:50:06]OFD Sender: Remove packet 118209 [23:50:06]ProducePacketName [23:50:06]name=ofd_packets/00118209 [23:50:06]NVStorageDeleteData [23:50:06]Write to MH i2c: 01 00 00 C4 13 D7 [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 07 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: 01 07 00 C4 13 00 00 00 00 00 BE 0C A8 [23:50:06]RasterBufferAndPrint [23:50:06]line [23:50:06]line [23:50:06]line [23:50:06]line [23:50:06]line [23:50:06]written 0, free lines is 3267 [23:50:07]MH_Cut [23:50:07]Write to MH i2c: D1 01 00 CB 13 01 B0 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: D1 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: D1 01 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: D1 01 00 CB 13 00 AF [23:50:07]Write to MH i2c: 01 00 00 CC 13 DF [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]OFD Sender: No OFD packet to send [23:50:07]*** Cut start [23:50:07]*** Purtial cut [23:50:07]*** Stage 1: CUTSNS_PIN = 1 [23:50:08]Read from MH i2c: 01 [23:50:08]MH_I2C_Read... [23:50:08]*** Stop cut motor [23:50:08]*** Cut end [23:50:08]Read from MH i2c: 01 07 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 FF 0F F4 [23:50:08]process_action close_receipt done [23:50:08]requested_data is exist [23:50:08]produce_requested_data [23:50:08]requested_item fm.sn is exist - process it [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 11 00 00 [23:50:08]Write to MH i2c: E2 08 00 CD 13 80 11 00 00 00 00 00 00 5A [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 17 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 17 00 CD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B1 [23:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:50:08]wFMCommunicate OK [23:50:08]requested_item fd.num is exist - process it [23:50:08]SAM_PROTO_GetFieldsCounters [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 13 00 00 [23:50:08]Write to MH i2c: E2 08 00 CE 13 80 13 00 00 00 00 00 00 5D [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 62 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 62 00 CE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [23:50: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:08]wFMCommunicate OK [23:50:08]SAM_PROTO_GetFieldsCounters done [23:50:08]requested_item shift.num is exist - process it [23:50:08]requested_item shift.opened is exist - process it [23:50:08]req_shift_opened [23:50:08]FM_GetShiftState [23:50:08]SAM_PROTO_GetShiftState [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 13 01 00 [23:50:08]Write to MH i2c: E2 08 00 CF 13 80 13 01 00 00 00 00 00 5F [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 0E 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 0E 00 CF 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 37 [23:50:08]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:50:08]wFMCommunicate OK [23:50:08]SAM_PROTO_GetShiftState done [23:50:08]FM_GetShiftState done [23:50:08]req_shift_opened done [23:50:08]requested_item shift.open_date is exist - process it [23:50:08]req_shift_open_date [23:50:08]req_shift_open_date done [23:50:08]produce_requested_data done [23:50:08]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [23:50:08]process_action_free close_receipt [23:50:08]json_value_free [23:50:08]json_value_free done [23:50:08]process_json_proto returns [23:50:08]Send response to host [23:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [23:50:08]free response buf [23:50:08]execute_script done [23:50:08]execute_script returns [23:50:08]free content buf [23:50:08]Sock 9.Close socket [23:50:08]Sock 9.Thread stoped [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:24]accept exits with 7 [23:59:24]New connection [23:59:24]New thread 3067276644 created [23:59:24]Thread 3067133284 joined [23:59:24]Waiting for new connection... [23:59:24] Sock 7.Parse request [23:59:24]Sock 7.Check first char [23:59:24]Sock 7.First char is OK [23:59:24]request: POST /json_proto HTTP/1.0 [23:59:24]Method: POST [23:59:24]URL: /json_proto [23:59:24]Method is POST - this is cgi request [23:59:24]url: /json_proto [23:59:24]query_string will be loaded in cgi processing [23:59:24]execute_cgi json_proto POST (null) [23:59:24]execute_cgi path=json_proto method=POST [23:59:24]POST find Content-Length [23:59:24]Host: 172.17.96.67:8080 [23:59:24]Content-Length: 215 [23:59:24]Content-Type: application/json [23:59:24] [23:59:24]POST finish read [23:59:24]Found Content-Length = 215 [23:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:24]execute_script... [23:59:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:24]POST & json_proto [23:59:24]process_json_proto [23:59:24]json parsed OK: [23:59:24]protocol is kg_v1.0 [23:59:24]action value=get_value [23:59:24]process_action get_value [23:59:24]cmd_get_value [23:59:24]process_action get_value done [23:59:24]requested_data is exist [23:59:24]produce_requested_data [23:59:24]requested_item kkm.sn is exist - process it [23:59:24]requested_item kkm.ver is exist - process it [23:59:24]requested_item fm.sn is exist - process it [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 11 00 00 [23:59:24]Write to MH i2c: E2 08 00 D0 13 80 11 00 00 00 00 00 00 5D [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 17 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 17 00 D0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B4 [23:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:59:24]wFMCommunicate OK [23:59:24]requested_item fd.num is exist - process it [23:59:24]SAM_PROTO_GetFieldsCounters [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 13 00 00 [23:59:24]Write to MH i2c: E2 08 00 D1 13 80 13 00 00 00 00 00 00 60 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 62 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 62 00 D1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [23:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:25]wFMCommunicate OK [23:59:25]SAM_PROTO_GetFieldsCounters done [23:59:25]requested_item shift.num is exist - process it [23:59:25]requested_item shift.opened is exist - process it [23:59:25]req_shift_opened [23:59:25]FM_GetShiftState [23:59:25]SAM_PROTO_GetShiftState [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 13 01 00 [23:59:25]Write to MH i2c: E2 08 00 D2 13 80 13 01 00 00 00 00 00 62 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 0E 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 0E 00 D2 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 3A [23:59:25]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:59:25]wFMCommunicate OK [23:59:25]SAM_PROTO_GetShiftState done [23:59:25]FM_GetShiftState done [23:59:25]req_shift_opened done [23:59:25]requested_item shift.open_date is exist - process it [23:59:25]req_shift_open_date [23:59:25]req_shift_open_date done [23:59:25]produce_requested_data done [23:59:25]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [23:59:25]process_action_free get_value [23:59:25]json_value_free [23:59:25]json_value_free done [23:59:25]process_json_proto returns [23:59:25]Send response to host [23:59:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [23:59:25]free response buf [23:59:25]execute_script done [23:59:25]execute_script returns [23:59:25]free content buf [23:59:25]Sock 7.Close socket [23:59:25]Sock 7.Thread stoped [23:59:25]accept exits with 9 [23:59:25]New connection [23:59:25]New thread 3067133284 created [23:59:25]Thread 3067276644 joined [23:59:25]Waiting for new connection... [23:59:25] Sock 9.Parse request [23:59:25]Sock 9.Check first char [23:59:25]Sock 9.First char is OK [23:59:25]request: POST /json_proto HTTP/1.0 [23:59:25]Method: POST [23:59:25]URL: /json_proto [23:59:25]Method is POST - this is cgi request [23:59:25]url: /json_proto [23:59:25]query_string will be loaded in cgi processing [23:59:25]execute_cgi json_proto POST (null) [23:59:25]execute_cgi path=json_proto method=POST [23:59:25]POST find Content-Length [23:59:25]Host: 172.17.96.67:8080 [23:59:25]Content-Length: 331 [23:59:25]Content-Type: application/json [23:59:25] [23:59:25]POST finish read [23:59:25]Found Content-Length = 331 [23:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:25]execute_script... [23:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:25]POST & json_proto [23:59:25]process_json_proto [23:59:25]json parsed OK: [23:59:25]protocol is kg_v1.0 [23:59:25]action value=get_value [23:59:25]process_action get_value [23:59:25]cmd_get_value [23:59:25]process_action get_value done [23:59:25]requested_data is exist [23:59:25]produce_requested_data [23:59:25]requested_item fm.sale.total is exist - process it [23:59:25]SAM_PROTO_GetFMData [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 13 03 00 [23:59:25]Write to MH i2c: E2 08 00 D3 13 80 13 03 00 00 00 00 00 65 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 D3 13 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 57 [23:59:25]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:25]wFMCommunicate OK [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 17 00 00 [23:59:25]Write to MH i2c: E2 08 00 D4 13 80 17 00 00 00 00 00 00 67 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 D4 13 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 10 [23:59:26]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 D5 13 80 17 00 00 00 00 00 00 68 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 D5 13 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 94 [23:59:26]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 D6 13 80 17 00 00 00 00 00 00 69 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 D6 13 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 E1 [23:59:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 D7 13 80 17 00 00 00 00 00 00 6A [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 D7 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 D7 00 D7 13 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4D [23:59:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:26]wFMCommunicate OK [23:59:26]SAM_PROTO_GetFMData done [23:59:26]requested_item fm.sale_refund.total is exist - process it [23:59:26]requested_item fm.buy.total is exist - process it [23:59:26]requested_item shift.sale.total is exist - process it [23:59:26]SAM_PROTO_GetShiftData [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 13 02 00 [23:59:26]Write to MH i2c: E2 08 00 D8 13 80 13 02 00 00 00 00 00 69 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 D8 13 00 B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 2D [23:59:27]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=4 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 17 00 00 [23:59:27]Write to MH i2c: E2 08 00 D9 13 80 17 00 00 00 00 00 00 6C [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 D9 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 86 [23:59: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 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=4 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 17 00 00 [23:59:27]Write to MH i2c: E2 08 00 DA 13 80 17 00 00 00 00 00 00 6D [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 [23:59:27]MH_I2C_Read... [23:59:27]OFD Sender: No OFD packet to send [23:59:27]Read from MH i2c: E2 FD 00 DA 13 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 2A [23:59: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 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 DB 13 80 17 00 00 00 00 00 00 6E [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 DB 13 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 E1 [23:59: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 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 DC 13 80 17 00 00 00 00 00 00 6F [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 CD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 CD 00 DC 13 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 53 [23:59:28]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 [23:59:28]wFMCommunicate OK [23:59:28]SAM_PROTO_GetShiftData done [23:59:28]requested_item shift.sale.total_cash is exist - process it [23:59:28]requested_item shift.sale_refund.total is exist - process it [23:59:28]requested_item shift.sale_refund.total_cash is exist - process it [23:59:28]requested_item shift.buy.total is exist - process it [23:59:28]requested_item shift.buy.total_cash is exist - process it [23:59:28]produce_requested_data done [23:59:28]produce_requested_data return {"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:59:28]process_action_free get_value [23:59:28]json_value_free [23:59:28]json_value_free done [23:59:28]process_json_proto returns [23:59:28]Send response to host [23:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:59:28]free response buf [23:59:28]execute_script done [23:59:28]execute_script returns [23:59:28]free content buf [23:59:28]Sock 9.Close socket [23:59:28]Sock 9.Thread stoped [23:59:28]accept exits with 7 [23:59:28]New connection [23:59:28]New thread 3067276644 created [23:59:28]Thread 3067133284 joined [23:59:28]Waiting for new connection... [23:59:28] Sock 7.Parse request [23:59:28]Sock 7.Check first char [23:59:28]Sock 7.First char is OK [23:59:28]request: POST /json_proto HTTP/1.0 [23:59:28]Method: POST [23:59:28]URL: /json_proto [23:59:28]Method is POST - this is cgi request [23:59:28]url: /json_proto [23:59:28]query_string will be loaded in cgi processing [23:59:28]execute_cgi json_proto POST (null) [23:59:28]execute_cgi path=json_proto method=POST [23:59:28]POST find Content-Length [23:59:28]Host: 172.17.96.67:8080 [23:59:28]Content-Length: 331 [23:59:28]Content-Type: application/json [23:59:28] [23:59:28]POST finish read [23:59:28]Found Content-Length = 331 [23:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:28]execute_script... [23:59:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:28]POST & json_proto [23:59:28]process_json_proto [23:59:28]json parsed OK: [23:59:28]protocol is kg_v1.0 [23:59:28]action value=get_value [23:59:28]process_action get_value [23:59:28]cmd_get_value [23:59:28]process_action get_value done [23:59:28]requested_data is exist [23:59:28]produce_requested_data [23:59:28]requested_item fm.sale.total is exist - process it [23:59:28]SAM_PROTO_GetFMData [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 13 03 00 [23:59:28]Write to MH i2c: E2 08 00 DD 13 80 13 03 00 00 00 00 00 6F [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 DD 13 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 61 [23:59:29]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 17 00 00 [23:59:29]Write to MH i2c: E2 08 00 DE 13 80 17 00 00 00 00 00 00 71 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 DE 13 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 1A [23:59:29]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 17 00 00 [23:59:29]Write to MH i2c: E2 08 00 DF 13 80 17 00 00 00 00 00 00 72 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 DF 13 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 9E [23:59:29]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 17 00 00 [23:59:29]Write to MH i2c: E2 08 00 E0 13 80 17 00 00 00 00 00 00 73 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 E0 13 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 EB [23:59:30]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:30]wFMCommunicate OK [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 17 00 00 [23:59:30]Write to MH i2c: E2 08 00 E1 13 80 17 00 00 00 00 00 00 74 [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 D7 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 D7 00 E1 13 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [23:59:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:30]wFMCommunicate OK [23:59:30]SAM_PROTO_GetFMData done [23:59:30]requested_item fm.sale_refund.total is exist - process it [23:59:30]requested_item fm.buy.total is exist - process it [23:59:30]requested_item shift.sale.total is exist - process it [23:59:30]SAM_PROTO_GetShiftData [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 13 02 00 [23:59:30]Write to MH i2c: E2 08 00 E2 13 80 13 02 00 00 00 00 00 73 [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 E2 13 00 B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 37 [23:59:31]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:59:31]wFMCommunicate OK [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 17 00 00 [23:59:31]Write to MH i2c: E2 08 00 E3 13 80 17 00 00 00 00 00 00 76 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 E3 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 [23:59:31]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 [23:59:31]wFMCommunicate OK [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 17 00 00 [23:59:31]Write to MH i2c: E2 08 00 E4 13 80 17 00 00 00 00 00 00 77 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 E4 13 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 34 [23:59:31]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 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 E5 13 80 17 00 00 00 00 00 00 78 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 E5 13 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 EB [23:59:32]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 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 E6 13 80 17 00 00 00 00 00 00 79 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 CD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 CD 00 E6 13 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5D [23:59:32]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 [23:59:32]wFMCommunicate OK [23:59:32]SAM_PROTO_GetShiftData done [23:59:32]requested_item shift.sale.total_cash is exist - process it [23:59:32]requested_item shift.sale_refund.total is exist - process it [23:59:32]requested_item shift.sale_refund.total_cash is exist - process it [23:59:32]requested_item shift.buy.total is exist - process it [23:59:32]requested_item shift.buy.total_cash is exist - process it [23:59:32]produce_requested_data done [23:59:32]produce_requested_data return {"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:59:32]process_action_free get_value [23:59:32]json_value_free [23:59:32]json_value_free done [23:59:32]process_json_proto returns [23:59:32]Send response to host [23:59:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:59:32]free response buf [23:59:32]execute_script done [23:59:32]execute_script returns [23:59:32]free content buf [23:59:32]Sock 7.Close socket [23:59:32]Sock 7.Thread stoped [23:59:32]accept exits with 9 [23:59:32]New connection [23:59:32]New thread 3067133284 created [23:59:32]Thread 3067276644 joined [23:59:32]Waiting for new connection... [23:59:32] Sock 9.Parse request [23:59:32]Sock 9.Check first char [23:59:32]Sock 9.First char is OK [23:59:32]request: POST /json_proto HTTP/1.0 [23:59:32]Method: POST [23:59:32]URL: /json_proto [23:59:32]Method is POST - this is cgi request [23:59:32]url: /json_proto [23:59:32]query_string will be loaded in cgi processing [23:59:32]execute_cgi json_proto POST (null) [23:59:32]execute_cgi path=json_proto method=POST [23:59:32]POST find Content-Length [23:59:32]Host: 172.17.96.67:8080 [23:59:32]Content-Length: 251 [23:59:32]Content-Type: application/json [23:59:32] [23:59:32]POST finish read [23:59:32]Found Content-Length = 251 [23:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:32]execute_script... [23:59:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:32]POST & json_proto [23:59:32]process_json_proto [23:59:32]json parsed OK: [23:59:32]protocol is kg_v1.0 [23:59:32]action value=x_report [23:59:32]process_action x_report [23:59:32]cmd_x_report [23:59:32]MH_GetDate [23:59:32]Write to MH i2c: F0 00 00 E7 13 E9 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: F0 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: F0 09 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: F0 09 00 E7 13 00 66 C8 22 67 47 6C 1F 67 E2 [23:59:32]GetLastDocTimeStamp 1730332206 [23:59:32]current date 1730332774 [23:59:32]FM_GetShiftState [23:59:32]SAM_PROTO_GetShiftState [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 13 01 00 [23:59:32]Write to MH i2c: E2 08 00 E8 13 80 13 01 00 00 00 00 00 78 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 0E 00 [23:59:32]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 0E 00 E8 13 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 50 [23:59:33]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:59:33]wFMCommunicate OK [23:59:33]SAM_PROTO_GetShiftState done [23:59:33]FM_GetShiftState done [23:59:33]KKMCreateXReportDocument [23:59:33]Load OK [23:59:33]Malloc new data [23:59:33]MH_GetDate [23:59:33]Write to MH i2c: F0 00 00 E9 13 EB [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: F0 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: F0 09 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: F0 09 00 E9 13 00 66 C8 22 67 47 6C 1F 67 E4 [23:59:33]Malloc new data [23:59:33]Malloc new data [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 11 00 00 [23:59:33]Write to MH i2c: E2 08 00 EA 13 80 11 00 00 00 00 00 00 77 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]OFD Sender: No OFD packet to send [23:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 17 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 17 00 EA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CE [23:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:59:33]wFMCommunicate OK [23:59:33]SAM_PROTO_GetFieldsCounters [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 13 00 00 [23:59:33]Write to MH i2c: E2 08 00 EB 13 80 13 00 00 00 00 00 00 7A [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 62 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 62 00 EB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [23:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:33]wFMCommunicate OK [23:59:33]SAM_PROTO_GetFieldsCounters done [23:59:33]Malloc new data [23:59:33]Malloc new data [23:59:33]Malloc new data [23:59:33]KKMCreateXReportDocument OK [23:59:33]KKMSetXReportData OK [23:59:33]KKMPrepareXReportFMData [23:59:33]SAM_PROTO_GetShiftData [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 13 02 00 [23:59:33]Write to MH i2c: E2 08 00 EC 13 80 13 02 00 00 00 00 00 7D [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 EC 13 00 B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 41 [23:59:33]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 ED 13 80 17 00 00 00 00 00 00 80 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 ED 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 9A [23:59:34]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 [23:59:34]wFMCommunicate OK [23:59:34]wFMCommunicate request_size=4 [23:59:34]MH_SAM_APDU [23:59:34]CAPDU: 80 17 00 00 [23:59:34]Write to MH i2c: E2 08 00 EE 13 80 17 00 00 00 00 00 00 81 [23:59:34]Write i2c OK [23:59:34]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 EE 13 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 3E [23:59: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 [23:59:34]wFMCommunicate OK [23:59:34]wFMCommunicate request_size=4 [23:59:34]MH_SAM_APDU [23:59:34]CAPDU: 80 17 00 00 [23:59:34]Write to MH i2c: E2 08 00 EF 13 80 17 00 00 00 00 00 00 82 [23:59:34]Write i2c OK [23:59:34]MH_I2C_Read... [23:59:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:35]Read from MH i2c: E2 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 FD 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 FD 00 EF 13 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 F5 [23:59: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 [23:59:35]wFMCommunicate OK [23:59:35]wFMCommunicate request_size=4 [23:59:35]MH_SAM_APDU [23:59:35]CAPDU: 80 17 00 00 [23:59:35]Write to MH i2c: E2 08 00 F0 13 80 17 00 00 00 00 00 00 83 [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [23:59:35]Read from MH i2c: E2 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 CD 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 CD 00 F0 13 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 67 [23:59: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 [23:59:35]wFMCommunicate OK [23:59:35]SAM_PROTO_GetShiftData done [23:59:35]1194 (1196) - счетчики итогов смены [23:59:35] 1134 (4) - 269 - количество чеков со всеми признаками расчетов [23:59:35] 1129 (157) - счетчики операций «приход» [23:59:35] 1135 (4) - 269 - количество чеков по признаку расчетов [23:59:35] 1201 (4) - 175107.94 - общая итоговая сумма в чеках [23:59:35] 1136 (3) - 163492.00 - итоговая сумма в чеках наличными [23:59:35] 1138 (3) - 11615.94 - итоговая сумма в чеках безналичными [23:59:35] 1024 (123) - суммы налогов [23:59:35] 1006 (9) - суммы НДС [23:59:35] 1010 (1) - 0% - код ставки НДС [23:59:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:35] 1006 (12) - суммы НДС [23:59:35] 1010 (1) - 12% - код ставки НДС [23:59:35] 1011 (3) - 18603.07 - сумма НДС по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (12) - суммы НСП [23:59:35] 1014 (1) - 1% - код ставки НСП [23:59:35] 1015 (3) - 1550.33 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 2% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 3% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 5% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 1,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1130 (141) - счетчики операций «возврат прихода» [23:59:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:35] 1024 (117) - суммы налогов [23:59:35] 1006 (9) - суммы НДС [23:59:35] 1010 (1) - 0% - код ставки НДС [23:59:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:35] 1006 (9) - суммы НДС [23:59:35] 1010 (1) - 12% - код ставки НДС [23:59:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 1% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 2% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 3% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 5% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 1,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1131 (141) - счетчики операций «расход» [23:59:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:35] 1024 (117) - суммы налогов [23:59:35] 1006 (9) - суммы НДС [23:59:35] 1010 (1) - 0% - код ставки НДС [23:59:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:35] 1006 (9) - суммы НДС [23:59:35] 1010 (1) - 12% - код ставки НДС [23:59:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 1% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 2% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 3% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 5% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 1,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1132 (141) - счетчики операций «возврат расхода» [23:59:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:35] 1024 (117) - суммы налогов [23:59:35] 1006 (9) - суммы НДС [23:59:35] 1010 (1) - 0% - код ставки НДС [23:59:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:35] 1006 (9) - суммы НДС [23:59:35] 1010 (1) - 12% - код ставки НДС [23:59:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 1% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 2% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 3% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 5% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 0,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1007 (9) - суммы НСП [23:59:35] 1014 (1) - 1,50% - код ставки НСП [23:59:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:35] 1133 (588) - - счетчики коррекции - не используются [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1194 (04AA) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1134 (046E) [23:59:35]Malloc new data [23:59:35]Processing tag 1129 (0469) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1135 (046F) [23:59:35]Malloc new data [23:59:36]Processing tag 1201 (04B1) [23:59:36]Malloc new data [23:59:36]Processing tag 1136 (0470) [23:59:36]Malloc new data [23:59:36]Processing tag 1138 (0472) [23:59:36]Malloc new data [23:59:36]Processing tag 1024 (0400) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1130 (046A) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1135 (046F) [23:59:36]Malloc new data [23:59:36]Processing tag 1201 (04B1) [23:59:36]Malloc new data [23:59:36]Processing tag 1136 (0470) [23:59:36]Malloc new data [23:59:36]Processing tag 1138 (0472) [23:59:36]Malloc new data [23:59:36]Processing tag 1024 (0400) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1131 (046B) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1135 (046F) [23:59:36]Malloc new data [23:59:36]Processing tag 1201 (04B1) [23:59:36]Malloc new data [23:59:36]Processing tag 1136 (0470) [23:59:36]Malloc new data [23:59:36]Processing tag 1138 (0472) [23:59:36]Malloc new data [23:59:36]Processing tag 1024 (0400) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1132 (046C) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1135 (046F) [23:59:36]Malloc new data [23:59:36]Processing tag 1201 (04B1) [23:59:36]Malloc new data [23:59:36]Processing tag 1136 (0470) [23:59:36]Malloc new data [23:59:36]Processing tag 1138 (0472) [23:59:36]Malloc new data [23:59:36]Processing tag 1024 (0400) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1006 (03EE) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1010 (03F2) [23:59:36]Malloc new data [23:59:36]Processing tag 1011 (03F3) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1007 (03EF) [23:59:36]Load OK [23:59:36]SetTLVBufToDocument [23:59:36]Processing tag 1014 (03F6) [23:59:36]Malloc new data [23:59:36]Processing tag 1015 (03F7) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Processing tag 1133 (046D) [23:59:36]Malloc new data [23:59:36]SetTLVBufToDocument err=0 [23:59:36]SetTLVBufToDocument err=0 [23:59:36]Malloc new data [23:59:36]SAM_PROTO_GetFMData [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 13 03 00 [23:59:36]Write to MH i2c: E2 08 00 F1 13 80 13 03 00 00 00 00 00 83 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 F1 13 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 75 [23:59:37]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:37]wFMCommunicate OK [23:59:37]wFMCommunicate request_size=4 [23:59:37]MH_SAM_APDU [23:59:37]CAPDU: 80 17 00 00 [23:59:37]Write to MH i2c: E2 08 00 F2 13 80 17 00 00 00 00 00 00 85 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 F2 13 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 2E [23:59:37]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=4 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 17 00 00 [23:59:38]Write to MH i2c: E2 08 00 F3 13 80 17 00 00 00 00 00 00 86 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]OFD Sender: No OFD packet to send [23:59:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 FD 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 FD 00 F3 13 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 B2 [23:59:38]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=4 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 17 00 00 [23:59:38]Write to MH i2c: E2 08 00 F4 13 80 17 00 00 00 00 00 00 87 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 FD 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 FD 00 F4 13 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 FF [23:59:38]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:59:39]wFMCommunicate OK [23:59:39]wFMCommunicate request_size=4 [23:59:39]MH_SAM_APDU [23:59:39]CAPDU: 80 17 00 00 [23:59:39]Write to MH i2c: E2 08 00 F5 13 80 17 00 00 00 00 00 00 88 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:59:39]Read from MH i2c: E2 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 D7 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 D7 00 F5 13 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6B [23:59:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:39]wFMCommunicate OK [23:59:39]SAM_PROTO_GetFMData done [23:59:39]FM_GetFMData:85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:40]oper:6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 [23:59:40]total:F1 52 39 AA 01 [23:59:40]Malloc new data [23:59:40]oper:6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:40]total:64 [23:59:40]Malloc new data [23:59:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:40]total: [23:59:40]Malloc new data [23:59:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:40]total: [23:59:40]Malloc new data [23:59:40]KKMPrepareXReportFMData err=0 [23:59:40]Х отчет ИНН: 02508201610067 Кассир: Кокчоев А. 30.10.2024 23:59 Смена: 522 РНМ: 0000000000091782 ЗНМ: 0300000115 СНО: Общий режим Всего чеков: 269 ИТОГИ ПРИХОД Чеков: 269 Общий итог: 175107.94 Итого наличными: 163492.00 Итого безнал.: 11615.94 НДС 0% : 0.00 НДС 12% : 18603.07 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1550.33 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 163492.00 НС Приход: 71508508.01 НС Возвр.Прихода: 1.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871767 [23:59:40]StoreToDocumentArchive [23:59:40]MH_GetDate [23:59:40]Write to MH i2c: F0 00 00 F6 13 F8 [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: F0 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: F0 09 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: F0 09 00 F6 13 00 6E C8 22 67 47 6C 1F 67 F9 [23:59:40]shift 522 fd 1730332782 [23:59:40]Create dir for shift 0522 [23:59:40]save to /storage/0522/doc_1730332782 [23:59:40]save last doc name /storage/0522/doc_1730332782 to /storage/kkm_last_doc_name [23:59:40]save OK [23:59:40]Clear old archive folders... [23:59:40]NVStorageSaveData kkm_last_timestamp [23:59:40]File name is /storage/kkm_last_timestamp [23:59:40]Write 4 bytes [23:59:40]NVStorageSaveData done [23:59:40]ExternCall_PrintAddStr [23:59:40]wPrintStart [23:59:40]Write to MH i2c: 01 00 00 F7 13 0A [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: 01 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: 01 07 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: 01 07 00 F7 13 00 00 00 00 00 FF 0F 1F [23:59:40]RasterBufferAndPrint [23:59:40]line Х отчет [23:59:40]line ИНН: 02508201610067 [23:59:40]line Кассир: Кокчоев А. [23:59:40]line 30.10.2024 23:59 [23:59:40]line Смена: 522 [23:59:40]line РНМ: 0000000000091782 [23:59:40]line ЗНМ: 0300000115 [23:59:40]line СНО: Общий режим [23:59:40]line Всего чеков: 269 [23:59:40]line ИТОГИ ПРИХОД [23:59:40]line Чеков: 269 [23:59:40]line Общий итог: 175107.94 [23:59:40]line Итого наличными: 163492.00 [23:59:40]line Итого безнал.: 11615.94 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 18603.07 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 1550.33 [23:59:40]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:59:40]line Чеков: 0 [23:59:40]line Общий итог: 0.00 [23:59:40]line Итого наличными: 0.00 [23:59:40]line Итого безнал.: 0.00 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 0.00 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 0.00 [23:59:40]line ИТОГИ РАСХОД [23:59:40]line Чеков: 0 [23:59:40]line Общий итог: 0.00 [23:59:40]line Итого наличными: 0.00 [23:59:40]line Итого безнал.: 0.00 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 0.00 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 0.00 [23:59:40]line ИТОГИ ВОЗВРАТ РАСХОДА [23:59:40]line Чеков: 0 [23:59:40]line Общий итог: 0.00 [23:59:40]line Итого наличными: 0.00 [23:59:40]line Итого безнал.: 0.00 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 0.00 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 0.00 [23:59:40]line Сумма внесений: 0.00 [23:59:40]line Сумма выплат: 0.00 [23:59:40]line Нал. в кассе: 163492.00 [23:59:40]line НС Приход: 71508508.01 [23:59:40]line НС Возвр.Прихода: 1.00 [23:59:40]line НС Расход: 0.00 [23:59:40]line НС Возвр.Расхода: 0.00 [23:59:40]line ФМ: 0000000000871767 [23:59:40]written 0, free lines is 4095 [23:59:41]Write to MH i2c: 01 00 00 42 14 56 [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: 01 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: 01 07 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 84 0A EB [23:59:41]RasterBufferAndPrint [23:59:41]line [23:59:41]line [23:59:41]line [23:59:41]line [23:59:41]line [23:59:41]written 0, free lines is 2722 [23:59:41]MH_Cut [23:59:41]Write to MH i2c: D1 01 00 49 14 01 2F [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: D1 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: D1 01 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: D1 01 00 49 14 00 2E [23:59:41]Write to MH i2c: 01 00 00 4A 14 5E [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:42]*** Cut start [23:59:42]*** Purtial cut [23:59:42]*** Stage 1: CUTSNS_PIN = 1 [23:59:42]Read from MH i2c: 01 [23:59:42]MH_I2C_Read... [23:59:42]*** Stop cut motor [23:59:42]*** Cut end [23:59:42]Read from MH i2c: 01 07 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 FF 0F 73 [23:59:42]process_action x_report done [23:59:42]requested_data is exist [23:59:42]produce_requested_data [23:59:42]requested_item fd.num is exist - process it [23:59:42]SAM_PROTO_GetFieldsCounters [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 13 00 00 [23:59:42]Write to MH i2c: E2 08 00 4B 14 80 13 00 00 00 00 00 00 DB [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 62 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 62 00 4B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [23:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:43]wFMCommunicate OK [23:59:43]SAM_PROTO_GetFieldsCounters done [23:59:43]requested_item shift.num is exist - process it [23:59:43]requested_item shift.opened is exist - process it [23:59:43]req_shift_opened [23:59:43]FM_GetShiftState [23:59:43]SAM_PROTO_GetShiftState [23:59:43]wFMCommunicate request_size=4 [23:59:43]MH_SAM_APDU [23:59:43]CAPDU: 80 13 01 00 [23:59:43]Write to MH i2c: E2 08 00 4C 14 80 13 01 00 00 00 00 00 DD [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]OFD Sender: No OFD packet to send [23:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:43]Read from MH i2c: E2 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 0E 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 0E 00 4C 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B5 [23:59:43]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:59:43]wFMCommunicate OK [23:59:43]SAM_PROTO_GetShiftState done [23:59:43]FM_GetShiftState done [23:59:43]req_shift_opened done [23:59:43]requested_item shift.open_date is exist - process it [23:59:43]req_shift_open_date [23:59:43]req_shift_open_date done [23:59:43]produce_requested_data done [23:59:43]produce_requested_data return {"fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [23:59:43]process_action_free x_report [23:59:43]json_value_free [23:59:43]json_value_free done [23:59:43]process_json_proto returns [23:59:43]Send response to host [23:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [23:59:43]free response buf [23:59:43]execute_script done [23:59:43]execute_script returns [23:59:43]free content buf [23:59:43]Sock 9.Close socket [23:59:43]Sock 9.Thread stoped [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [23:59:58]accept exits with 7 [23:59:58]New connection [23:59:58]New thread 3067276644 created [23:59:58]Thread 3067133284 joined [23:59:58]Waiting for new connection... [23:59:58] Sock 7.Parse request [23:59:58]Sock 7.Check first char [23:59:58]Sock 7.First char is OK [23:59:58]request: POST /json_proto HTTP/1.0 [23:59:58]Method: POST [23:59:58]URL: /json_proto [23:59:58]Method is POST - this is cgi request [23:59:58]url: /json_proto [23:59:58]query_string will be loaded in cgi processing [23:59:58]execute_cgi json_proto POST (null) [23:59:58]execute_cgi path=json_proto method=POST [23:59:58]POST find Content-Length [23:59:58]Host: 172.17.96.67:8080 [23:59:58]Content-Length: 215 [23:59:58]Content-Type: application/json [23:59:58] [23:59:58]POST finish read [23:59:58]Found Content-Length = 215 [23:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:58]execute_script... [23:59:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:58]POST & json_proto [23:59:58]process_json_proto [23:59:58]json parsed OK: [23:59:58]protocol is kg_v1.0 [23:59:58]action value=get_value [23:59:58]process_action get_value [23:59:58]cmd_get_value [23:59:58]process_action get_value done [23:59:58]requested_data is exist [23:59:58]produce_requested_data [23:59:58]requested_item kkm.sn is exist - process it [23:59:58]requested_item kkm.ver is exist - process it [23:59:58]requested_item fm.sn is exist - process it [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 11 00 00 [23:59:58]Write to MH i2c: E2 08 00 4D 14 80 11 00 00 00 00 00 00 DB [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 17 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 17 00 4D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 32 [23:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [23:59:58]wFMCommunicate OK [23:59:58]requested_item fd.num is exist - process it [23:59:58]SAM_PROTO_GetFieldsCounters [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 13 00 00 [23:59:58]Write to MH i2c: E2 08 00 4E 14 80 13 00 00 00 00 00 00 DE [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 62 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 62 00 4E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [23:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C1 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:59]wFMCommunicate OK [23:59:59]SAM_PROTO_GetFieldsCounters done [23:59:59]requested_item shift.num is exist - process it [23:59:59]requested_item shift.opened is exist - process it [23:59:59]req_shift_opened [23:59:59]FM_GetShiftState [23:59:59]SAM_PROTO_GetShiftState [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 13 01 00 [23:59:59]Write to MH i2c: E2 08 00 4F 14 80 13 01 00 00 00 00 00 E0 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 0E 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 0E 00 4F 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 B8 [23:59:59]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [23:59:59]wFMCommunicate OK [23:59:59]SAM_PROTO_GetShiftState done [23:59:59]FM_GetShiftState done [23:59:59]req_shift_opened done [23:59:59]requested_item shift.open_date is exist - process it [23:59:59]req_shift_open_date [23:59:59]req_shift_open_date done [23:59:59]produce_requested_data done [23:59:59]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605} [23:59:59]process_action_free get_value [23:59:59]json_value_free [23:59:59]json_value_free done [23:59:59]process_json_proto returns [23:59:59]Send response to host [23:59:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":118209,"shift.num":545,"shift.opened":1,"shift.open_date":1730246605}}} [23:59:59]free response buf [23:59:59]execute_script done [23:59:59]execute_script returns [23:59:59]free content buf [23:59:59]Sock 7.Close socket [23:59:59]Sock 7.Thread stoped [23:59:59]accept exits with 9 [23:59:59]New connection [23:59:59]New thread 3067133284 created [23:59:59]Thread 3067276644 joined [23:59:59]Waiting for new connection... [23:59:59] Sock 9.Parse request [23:59:59]Sock 9.Check first char [23:59:59]Sock 9.First char is OK [23:59:59]request: POST /json_proto HTTP/1.0 [23:59:59]Method: POST [23:59:59]URL: /json_proto [23:59:59]Method is POST - this is cgi request [23:59:59]url: /json_proto [23:59:59]query_string will be loaded in cgi processing [23:59:59]execute_cgi json_proto POST (null) [23:59:59]execute_cgi path=json_proto method=POST [23:59:59]POST find Content-Length [23:59:59]Host: 172.17.96.67:8080 [23:59:59]Content-Length: 331 [23:59:59]Content-Type: application/json [23:59:59] [23:59:59]POST finish read [23:59:59]Found Content-Length = 331 [23:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:59]execute_script... [23:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:59]POST & json_proto [23:59:59]process_json_proto [23:59:59]json parsed OK: [23:59:59]protocol is kg_v1.0 [23:59:59]action value=get_value [23:59:59]process_action get_value [23:59:59]cmd_get_value [23:59:59]process_action get_value done [23:59:59]requested_data is exist [23:59:59]produce_requested_data [23:59:59]requested_item fm.sale.total is exist - process it [23:59:59]SAM_PROTO_GetFMData [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 13 03 00 [23:59:59]Write to MH i2c: E2 08 00 50 14 80 13 03 00 00 00 00 00 E3 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 FD 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 FD 00 50 14 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 D5 [23:59:59]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:00:00]wFMCommunicate OK [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 17 00 00 [00:00:00]Write to MH i2c: E2 08 00 51 14 80 17 00 00 00 00 00 00 E5 [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:00]Read from MH i2c: E2 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 51 14 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 8E [00:00:00]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:00:00]wFMCommunicate OK [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 17 00 00 [00:00:00]Write to MH i2c: E2 08 00 52 14 80 17 00 00 00 00 00 00 E6 [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:00]Read from MH i2c: E2 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 52 14 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 12 [00:00:00]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:00:00]wFMCommunicate OK [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 17 00 00 [00:00:00]Write to MH i2c: E2 08 00 53 14 80 17 00 00 00 00 00 00 E7 [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 53 14 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 5F [00:00:01]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:00:01]wFMCommunicate OK [00:00:01]wFMCommunicate request_size=4 [00:00:01]MH_SAM_APDU [00:00:01]CAPDU: 80 17 00 00 [00:00:01]Write to MH i2c: E2 08 00 54 14 80 17 00 00 00 00 00 00 E8 [00:00:01]Write i2c OK [00:00:01]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 D7 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 D7 00 54 14 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CB [00:00:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:01]wFMCommunicate OK [00:00:01]SAM_PROTO_GetFMData done [00:00:01]requested_item fm.sale_refund.total is exist - process it [00:00:01]requested_item fm.buy.total is exist - process it [00:00:01]requested_item shift.sale.total is exist - process it [00:00:01]SAM_PROTO_GetShiftData [00:00:01]wFMCommunicate request_size=4 [00:00:01]MH_SAM_APDU [00:00:01]CAPDU: 80 13 02 00 [00:00:01]Write to MH i2c: E2 08 00 55 14 80 13 02 00 00 00 00 00 E7 [00:00:01]Write i2c OK [00:00:01]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 55 14 00 B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 AB [00:00:02]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 17 00 00 [00:00:02]Write to MH i2c: E2 08 00 56 14 80 17 00 00 00 00 00 00 EA [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 56 14 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 04 [00:00:02]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:00:03]wFMCommunicate OK [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 17 00 00 [00:00:03]Write to MH i2c: E2 08 00 57 14 80 17 00 00 00 00 00 00 EB [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]OFD Sender: No OFD packet to send [00:00:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 57 14 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 A8 [00:00:03]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:00:03]wFMCommunicate OK [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 17 00 00 [00:00:03]Write to MH i2c: E2 08 00 58 14 80 17 00 00 00 00 00 00 EC [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 58 14 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 5F [00:00:03]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:00:04]wFMCommunicate OK [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 17 00 00 [00:00:04]Write to MH i2c: E2 08 00 59 14 80 17 00 00 00 00 00 00 ED [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 CD 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 CD 00 59 14 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D1 [00:00:04]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:00:04]wFMCommunicate OK [00:00:04]SAM_PROTO_GetShiftData done [00:00:04]requested_item shift.sale.total_cash is exist - process it [00:00:04]requested_item shift.sale_refund.total is exist - process it [00:00:04]requested_item shift.sale_refund.total_cash is exist - process it [00:00:04]requested_item shift.buy.total is exist - process it [00:00:04]requested_item shift.buy.total_cash is exist - process it [00:00:04]produce_requested_data done [00:00:04]produce_requested_data return {"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.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:00:04]process_action_free get_value [00:00:04]json_value_free [00:00:04]json_value_free done [00:00:04]process_json_proto returns [00:00:04]Send response to host [00:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.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:00:04]free response buf [00:00:04]execute_script done [00:00:04]execute_script returns [00:00:04]free content buf [00:00:04]Sock 9.Close socket [00:00:04]Sock 9.Thread stoped [00:00:04]accept exits with 7 [00:00:04]New connection [00:00:04]New thread 3067276644 created [00:00:04]Thread 3067133284 joined [00:00:04]Waiting for new connection... [00:00:04] Sock 7.Parse request [00:00:04]Sock 7.Check first char [00:00:04]Sock 7.First char is OK [00:00:04]request: POST /json_proto HTTP/1.0 [00:00:04]Method: POST [00:00:04]URL: /json_proto [00:00:04]Method is POST - this is cgi request [00:00:04]url: /json_proto [00:00:04]query_string will be loaded in cgi processing [00:00:04]execute_cgi json_proto POST (null) [00:00:04]execute_cgi path=json_proto method=POST [00:00:04]POST find Content-Length [00:00:04]Host: 172.17.96.67:8080 [00:00:04]Content-Length: 331 [00:00:04]Content-Type: application/json [00:00:04] [00:00:04]POST finish read [00:00:04]Found Content-Length = 331 [00:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:04]execute_script... [00:00:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:04]POST & json_proto [00:00:04]process_json_proto [00:00:04]json parsed OK: [00:00:04]protocol is kg_v1.0 [00:00:04]action value=get_value [00:00:04]process_action get_value [00:00:04]cmd_get_value [00:00:04]process_action get_value done [00:00:04]requested_data is exist [00:00:04]produce_requested_data [00:00:04]requested_item fm.sale.total is exist - process it [00:00:04]SAM_PROTO_GetFMData [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 13 03 00 [00:00:04]Write to MH i2c: E2 08 00 5A 14 80 13 03 00 00 00 00 00 ED [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:05]Read from MH i2c: E2 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 5A 14 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 DF [00:00:05]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:00:05]wFMCommunicate OK [00:00:05]wFMCommunicate request_size=4 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 17 00 00 [00:00:05]Write to MH i2c: E2 08 00 5B 14 80 17 00 00 00 00 00 00 EF [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:05]Read from MH i2c: E2 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 5B 14 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 98 [00:00:05]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:00:05]wFMCommunicate OK [00:00:05]wFMCommunicate request_size=4 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 17 00 00 [00:00:05]Write to MH i2c: E2 08 00 5C 14 80 17 00 00 00 00 00 00 F0 [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:06]Read from MH i2c: E2 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 5C 14 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 1C [00:00:06]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:00:06]wFMCommunicate OK [00:00:06]wFMCommunicate request_size=4 [00:00:06]MH_SAM_APDU [00:00:06]CAPDU: 80 17 00 00 [00:00:06]Write to MH i2c: E2 08 00 5D 14 80 17 00 00 00 00 00 00 F1 [00:00:06]Write i2c OK [00:00:06]MH_I2C_Read... [00:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:06]Read from MH i2c: E2 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 FD 00 5D 14 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 69 [00:00:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:00:07]wFMCommunicate OK [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 17 00 00 [00:00:07]Write to MH i2c: E2 08 00 5E 14 80 17 00 00 00 00 00 00 F2 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 D7 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 D7 00 5E 14 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [00:00:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetFMData done [00:00:07]requested_item fm.sale_refund.total is exist - process it [00:00:07]requested_item fm.buy.total is exist - process it [00:00:07]requested_item shift.sale.total is exist - process it [00:00:07]SAM_PROTO_GetShiftData [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 02 00 [00:00:07]Write to MH i2c: E2 08 00 5F 14 80 13 02 00 00 00 00 00 F1 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 5F 14 00 B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 B5 [00:00:08]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [00:00:08]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:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 17 00 00 [00:00:08]Write to MH i2c: E2 08 00 60 14 80 17 00 00 00 00 00 00 F4 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 60 14 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 0E [00:00:08]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:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 17 00 00 [00:00:09]Write to MH i2c: E2 08 00 61 14 80 17 00 00 00 00 00 00 F5 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 FD 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 FD 00 61 14 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 B2 [00:00:09]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:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 17 00 00 [00:00:09]Write to MH i2c: E2 08 00 62 14 80 17 00 00 00 00 00 00 F6 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:09]Read from MH i2c: E2 FD 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 FD 00 62 14 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 69 [00:00:10]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:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 17 00 00 [00:00:10]Write to MH i2c: E2 08 00 63 14 80 17 00 00 00 00 00 00 F7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 CD 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 CD 00 63 14 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DB [00:00:10]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:00:10]wFMCommunicate OK [00:00:10]SAM_PROTO_GetShiftData done [00:00:10]requested_item shift.sale.total_cash is exist - process it [00:00:10]requested_item shift.sale_refund.total is exist - process it [00:00:10]requested_item shift.sale_refund.total_cash is exist - process it [00:00:10]requested_item shift.buy.total is exist - process it [00:00:10]requested_item shift.buy.total_cash is exist - process it [00:00:10]produce_requested_data done [00:00:10]produce_requested_data return {"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.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:00:10]process_action_free get_value [00:00:10]json_value_free [00:00:10]json_value_free done [00:00:10]process_json_proto returns [00:00:10]Send response to host [00:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.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:00:10]free response buf [00:00:10]execute_script done [00:00:10]execute_script returns [00:00:10]free content buf [00:00:10]Sock 7.Close socket [00:00:10]Sock 7.Thread stoped [00:00:10]accept exits with 9 [00:00:10]New connection [00:00:10]New thread 3067133284 created [00:00:10]Thread 3067276644 joined [00:00:10]Waiting for new connection... [00:00:10] Sock 9.Parse request [00:00:10]Sock 9.Check first char [00:00:10]Sock 9.First char is OK [00:00:10]request: POST /json_proto HTTP/1.0 [00:00:10]Method: POST [00:00:10]URL: /json_proto [00:00:10]Method is POST - this is cgi request [00:00:10]url: /json_proto [00:00:10]query_string will be loaded in cgi processing [00:00:10]execute_cgi json_proto POST (null) [00:00:10]execute_cgi path=json_proto method=POST [00:00:10]POST find Content-Length [00:00:10]Host: 172.17.96.67:8080 [00:00:10]Content-Length: 254 [00:00:10]Content-Type: application/json [00:00:10] [00:00:10]POST finish read [00:00:10]Found Content-Length = 254 [00:00:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:10]execute_script... [00:00:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u043A\u0447\u043E\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:10]POST & json_proto [00:00:10]process_json_proto [00:00:10]json parsed OK: [00:00:10]protocol is kg_v1.0 [00:00:10]action value=close_shift [00:00:10]process_action close_shift [00:00:10]cmd_close_shift [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 64 14 67 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 64 14 00 8C C8 22 67 47 6C 1F 67 86 [00:00:10]GetLastDocTimeStamp 1730332774 [00:00:10]current date 1730332812 [00:00:10]FM_GetShiftState [00:00:10]SAM_PROTO_GetShiftState [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 13 01 00 [00:00:10]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 0E 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 CD 77 21 67 00 00 00 00 90 00 CE [00:00:11]RAPDU: 09 00 01 CD 77 21 67 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetShiftState done [00:00:11]FM_GetShiftState done [00:00:11]KKMCreateCloseShiftDocument [00:00:11]Load OK [00:00:11]Malloc new data [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 66 14 69 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 66 14 00 8C C8 22 67 47 6C 1F 67 88 [00:00:11]Malloc new data [00:00:11]Malloc new data [00:00:11]Malloc new data [00:00:11]Malloc new data [00:00:11]KKMCreateCloseShiftDocument OK [00:00:11]KKMSetCloseShiftData OK [00:00:11]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:00:11]tlvbuf is 002C7E00 [00:00:11]KKMLoadAndSignCloseShiftData [00:00:11]SAM_PROTO_ProcessDocument [00:00:11]wFMCommunicate request_size=9 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 15 01 00 04 05 00 45 00 [00:00:11]Write to MH i2c: E2 0C 00 67 14 80 15 01 00 04 00 05 00 45 00 00 00 4C [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=23 [00:00:11]MH_SAM_APDU [00:00:11]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:00:11]Write to MH i2c: E2 1A 00 68 14 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 F1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=28 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 [00:00:11]Write to MH i2c: E2 1F 00 69 14 80 15 02 00 17 00 FD 03 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 00 00 7B [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 69 14 00 90 00 F1 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=13 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 15 02 00 08 F4 03 04 00 8C C8 22 67 [00:00:11]Write to MH i2c: E2 10 00 6A 14 80 15 02 00 08 00 F4 03 04 00 8C C8 22 67 00 00 E6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=25 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 [00:00:11]Write to MH i2c: E2 1C 00 6B 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 00 00 63 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 15 03 00 [00:00:11]Write to MH i2c: E2 08 00 6C 14 80 15 03 00 00 00 00 00 01 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 6C 14 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 36 37 10 04 04 00 C2 CD 01 00 0E 04 04 00 21 02 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 31 [00:00:12]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 36 37 10 04 04 00 C2 CD 01 00 0E 04 04 00 21 02 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:00:12]wFMCommunicate OK [00:00:12]SAM_PROTO_ProcessDocument answer len = 1267 [00:00:12]SAM_PROTO_ProcessDocument remain to read = 1019 [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 17 00 00 [00:00:12]Write to MH i2c: E2 08 00 6D 14 80 17 00 00 00 00 00 00 01 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 FD 00 6D 14 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 51 [00:00:12]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:00:13]wFMCommunicate OK [00:00:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:13]SAM_PROTO_ProcessDocument remain to read = 769 [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 6E 14 80 17 00 00 00 00 00 00 02 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 6E 14 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 OFD Sender: No OFD packet to send [00:00:13]00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 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 64 [00:00:13]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:00:14]wFMCommunicate OK [00:00:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:14]SAM_PROTO_ProcessDocument remain to read = 519 [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 6F 14 80 17 00 00 00 00 00 00 03 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 6F 14 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 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 94 [00:00:14]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:00:14]wFMCommunicate OK [00:00:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:14]SAM_PROTO_ProcessDocument remain to read = 269 [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 70 14 80 17 00 00 00 00 00 00 04 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 70 14 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 C5 [00:00:15]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:00:15]wFMCommunicate OK [00:00:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:15]SAM_PROTO_ProcessDocument remain to read = 19 [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 71 14 80 17 00 00 00 00 00 00 05 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 16 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 16 00 71 14 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 75 3F 47 FA 29 64 90 00 C7 [00:00:15]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 75 3F 47 FA 29 64 90 00 [00:00:15]wFMCommunicate OK [00:00:15]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:00:15]SAM_PROTO_ProcessDocument done [00:00:15]1209 (1) - 1.0 - номер версии ФФД [00:00:15]1041 (16) - 0000000000871767 - номер ФМ [00:00:15]1040 (4) - 118210 - номер ФД [00:00:15]1038 (4) - 545 - номер смены [00:00:15]1118 (4) - 269 - количество кассовых чеков за смену [00:00:15]1111 (4) - 271 - общее количество ФД за смену [00:00:15]1194 (1196) - счетчики итогов смены [00:00:15] 1134 (4) - 269 - количество чеков со всеми признаками расчетов [00:00:15] 1129 (157) - счетчики операций «приход» [00:00:15] 1135 (4) - 269 - количество чеков по признаку расчетов [00:00:15] 1201 (4) - 175107.94 - общая итоговая сумма в чеках [00:00:15] 1136 (3) - 163492.00 - итоговая сумма в чеках наличными [00:00:15] 1138 (3) - 11615.94 - итоговая сумма в чеках безналичными [00:00:15] 1024 (123) - суммы налогов [00:00:15] 1006 (9) - суммы НДС [00:00:15] 1010 (1) - 0% - код ставки НДС [00:00:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:15] 1006 (12) - суммы НДС [00:00:15] 1010 (1) - 12% - код ставки НДС [00:00:15] 1011 (3) - 18603.07 - сумма НДС по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 0% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (12) - суммы НСП [00:00:15] 1014 (1) - 1% - код ставки НСП [00:00:15] 1015 (3) - 1550.33 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 2% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 3% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 5% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 0,50% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 1,50% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1130 (141) - счетчики операций «возврат прихода» [00:00:15] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:15] 1024 (117) - суммы налогов [00:00:15] 1006 (9) - суммы НДС [00:00:15] 1010 (1) - 0% - код ставки НДС [00:00:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:15] 1006 (9) - суммы НДС [00:00:15] 1010 (1) - 12% - код ставки НДС [00:00:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 0% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 1% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 2% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 3% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 5% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 0,50% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 1,50% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1131 (141) - счетчики операций «расход» [00:00:15] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:15] 1024 (117) - суммы налогов [00:00:15] 1006 (9) - суммы НДС [00:00:15] 1010 (1) - 0% - код ставки НДС [00:00:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:15] 1006 (9) - суммы НДС [00:00:15] 1010 (1) - 12% - код ставки НДС [00:00:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 0% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 1% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 2% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 3% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 5% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 0,50% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 1,50% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1132 (141) - счетчики операций «возврат расхода» [00:00:15] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:15] 1024 (117) - суммы налогов [00:00:15] 1006 (9) - суммы НДС [00:00:15] 1010 (1) - 0% - код ставки НДС [00:00:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:15] 1006 (9) - суммы НДС [00:00:15] 1010 (1) - 12% - код ставки НДС [00:00:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 0% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 1% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 2% - код ставки НСП [00:00:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:15] 1007 (9) - суммы НСП [00:00:15] 1014 (1) - 3% - код ставки НСП [00:00:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:16] 1007 (9) - суммы НСП [00:00:16] 1014 (1) - 5% - код ставки НСП [00:00:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:16] 1007 (9) - суммы НСП [00:00:16] 1014 (1) - 0,50% - код ставки НСП [00:00:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:16] 1007 (9) - суммы НСП [00:00:16] 1014 (1) - 1,50% - код ставки НСП [00:00:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:16] 1133 (588) - - счетчики коррекции - не используются [00:00:16]1077 (6) - 128914650966372 - ФПД [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1209 (04B9) [00:00:16]Malloc new data [00:00:16]Processing tag 1041 (0411) [00:00:16]Processing tag 1040 (0410) [00:00:16]Malloc new data [00:00:16]Processing tag 1038 (040E) [00:00:16]Malloc new data [00:00:16]Processing tag 1118 (045E) [00:00:16]Malloc new data [00:00:16]Processing tag 1111 (0457) [00:00:16]Malloc new data [00:00:16]Processing tag 1194 (04AA) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1134 (046E) [00:00:16]Malloc new data [00:00:16]Processing tag 1129 (0469) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1135 (046F) [00:00:16]Malloc new data [00:00:16]Processing tag 1201 (04B1) [00:00:16]Malloc new data [00:00:16]Processing tag 1136 (0470) [00:00:16]Malloc new data [00:00:16]Processing tag 1138 (0472) [00:00:16]Malloc new data [00:00:16]Processing tag 1024 (0400) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1130 (046A) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1135 (046F) [00:00:16]Malloc new data [00:00:16]Processing tag 1201 (04B1) [00:00:16]Malloc new data [00:00:16]Processing tag 1136 (0470) [00:00:16]Malloc new data [00:00:16]Processing tag 1138 (0472) [00:00:16]Malloc new data [00:00:16]Processing tag 1024 (0400) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1131 (046B) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1135 (046F) [00:00:16]Malloc new data [00:00:16]Processing tag 1201 (04B1) [00:00:16]Malloc new data [00:00:16]Processing tag 1136 (0470) [00:00:16]Malloc new data [00:00:16]Processing tag 1138 (0472) [00:00:16]Malloc new data [00:00:16]Processing tag 1024 (0400) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1132 (046C) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1135 (046F) [00:00:16]Malloc new data [00:00:16]Processing tag 1201 (04B1) [00:00:16]Malloc new data [00:00:16]Processing tag 1136 (0470) [00:00:16]Malloc new data [00:00:16]Processing tag 1138 (0472) [00:00:16]Malloc new data [00:00:16]Processing tag 1024 (0400) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1006 (03EE) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1010 (03F2) [00:00:16]Malloc new data [00:00:16]Processing tag 1011 (03F3) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1007 (03EF) [00:00:16]Load OK [00:00:16]SetTLVBufToDocument [00:00:16]Processing tag 1014 (03F6) [00:00:16]Malloc new data [00:00:16]Processing tag 1015 (03F7) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1133 (046D) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Processing tag 1077 (0435) [00:00:16]Malloc new data [00:00:16]SetTLVBufToDocument err=0 [00:00:16]Malloc new data [00:00:16]SAM_PROTO_GetFMData [00:00:16]wFMCommunicate request_size=4 [00:00:16]MH_SAM_APDU [00:00:16]CAPDU: 80 13 03 00 [00:00:16]Write to MH i2c: E2 08 00 72 14 80 13 03 00 00 00 00 00 05 [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 FD 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 FD 00 72 14 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F7 [00:00:17]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:00:17]wFMCommunicate OK [00:00:17]wFMCommunicate request_size=4 [00:00:17]MH_SAM_APDU [00:00:17]CAPDU: 80 17 00 00 [00:00:17]Write to MH i2c: E2 08 00 73 14 80 17 00 00 00 00 00 00 07 [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:17]Read from MH i2c: E2 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 FD 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: E2 FD 00 73 14 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 B0 [00:00:18]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:00:18]wFMCommunicate OK [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 17 00 00 [00:00:18]Write to MH i2c: E2 08 00 74 14 80 17 00 00 00 00 00 00 08 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 FD 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 FD 00 74 14 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 34 [00:00:18]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 OFD Sender: No OFD packet to send [00:00:18]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:00:18]wFMCommunicate OK [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 17 00 00 [00:00:18]Write to MH i2c: E2 08 00 75 14 80 17 00 00 00 00 00 00 09 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 75 14 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 81 [00:00:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:00:19]wFMCommunicate OK [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 17 00 00 [00:00:19]Write to MH i2c: E2 08 00 76 14 80 17 00 00 00 00 00 00 0A [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 D7 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 D7 00 76 14 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 ED [00:00:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:20]wFMCommunicate OK [00:00:20]SAM_PROTO_GetFMData done [00:00:20]Malloc new data [00:00:20]Malloc new data [00:00:20]Malloc new data [00:00:20]Malloc new data [00:00:20]KKMLoadAndSignCloseShiftData err=0 [00:00:20]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кокчоев А. 31.10.2024 00:00 Смена: 545 РНМ: 0000000000091782 ЗНМ: 0300000115 СНО: Общий режим Чеков за смену: 269 ФД за смену: 271 Всего чеков: 269 ИТОГИ ПРИХОД Чеков: 269 Общий итог: 175107.94 Итого наличными: 163492.00 Итого безнал.: 11615.94 НДС 0% : 0.00 НДС 12% : 18603.07 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1550.33 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 163492.00 НС Приход: 71508508.01 НС Возвр.Прихода: 1.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 118210 ФМ: 0000000000871767 ФПД: 128914650966372 [00:00:20]StoreToDocumentArchive [00:00:20]shift 545 fd 118210 [00:00:20]save to /storage/0545/doc_00118210 [00:00:20]save last doc name /storage/0545/doc_00118210 to /storage/kkm_last_doc_name [00:00:20]save OK [00:00:20]Clear old archive folders... [00:00:20]Remove dir /storage/0522 [00:00:20]opendir ok [00:00:20]file . [00:00:20]file .. [00:00:20]file doc_1730332782 [00:00:20]remove file /storage/0522/doc_1730332782 [00:00:20]remove dir /storage/0522 [00:00:20]NVStorageSaveData kkm_registers [00:00:20]File name is /storage/kkm_registers [00:00:20]Write 24 bytes [00:00:20]NVStorageSaveData done [00:00:20]NVStorageSaveData kkm_registers [00:00:20]File name is /storage/kkm_registers [00:00:20]Write 24 bytes [00:00:20]NVStorageSaveData done [00:00:20]ProcessDocumentItem done err = 0, tmpTLVsize=1379 [00:00:20]tlvbuf is 00362780 [00:00:20]SAM_PROTO_ClearQueue [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 09 00 00 [00:00:20]Write to MH i2c: E2 08 00 77 14 80 09 00 00 00 00 00 00 FD [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 03 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [00:00:20]RAPDU: 90 00 [00:00:20]wFMCommunicate OK [00:00:20]SAM_PROTO_ClearQueue done [00:00:20]KKMCreateOFDPacket [00:00:20]OFDProtocolAddRootSTLVToBuf [00:00:20]FM_MakeSignedData [00:00:20]FM_MakeSignedData [00:00:20]SAM_PROTO_SignData [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 0D 01 02 [00:00:20]Write to MH i2c: E2 08 00 78 14 80 0D 01 02 00 00 00 00 05 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 03 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 03 00 78 14 00 90 00 00 [00:00:20]RAPDU: 90 00 [00:00:20]wFMCommunicate OK [00:00:20]wFMCommunicate request_size=255 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 0D 02 02 FA 05 00 63 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 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 8C C8 22 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D7 04 6E 04 04 00 0D 01 00 00 69 04 A4 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C 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:20]Write to MH i2c: E2 02 01 79 14 80 0D 02 02 FA 00 05 00 63 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 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 8C C8 22 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D7 04 6E 04 04 00 0D 01 00 00 69 04 A4 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C 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 C4 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [00:00:21]RAPDU: 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=255 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 0D 02 02 FA 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 99 5D 02 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 [00:00:21]Write to MH i2c: E2 02 01 7A 14 80 0D 02 02 FA 00 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 99 5D 02 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 00 00 63 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [00:00:22]RAPDU: 90 00 [00:00:22]wFMCommunicate OK [00:00:22]wFMCommunicate request_size=255 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 0D 02 02 FA 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 [00:00:22]Write to MH i2c: E2 02 01 7B 14 80 0D 02 02 FA 00 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 00 00 D8 [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 03 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 03 00 7B 14 00 90 00 03 [00:00:22]RAPDU: 90 00 [00:00:22]wFMCommunicate OK [00:00:22]wFMCommunicate request_size=255 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 0D 02 02 FA 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 [00:00:22]Write to MH i2c: E2 02 01 7C 14 80 0D 02 02 FA 00 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 00 00 CD [00:00:23]Write i2c OK [00:00:23]MH_I2C_Read... [00:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:23]Read from MH i2c: E2 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: E2 03 00 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [00:00:23]RAPDU: 90 00 [00:00:23]wFMCommunicate OK [00:00:23]wFMCommunicate request_size=255 [00:00:23]MH_SAM_APDU [00:00:23]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 [00:00:23]Write to MH i2c: E2 02 01 7D 14 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 00 00 9E [00:00:23]OFD Sender: No OFD packet to send [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 03 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [00:00:24]RAPDU: 90 00 [00:00:24]wFMCommunicate OK [00:00:24]wFMCommunicate request_size=138 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 0D 02 02 85 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 75 3F 47 FA 29 64 [00:00:24]Write to MH i2c: E2 8D 00 7E 14 80 0D 02 02 85 00 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 75 3F 47 FA 29 64 00 00 5C [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 03 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [00:00:24]RAPDU: 90 00 [00:00:24]wFMCommunicate OK [00:00:24]wFMCommunicate request_size=4 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 0D 03 02 [00:00:24]Write to MH i2c: E2 08 00 7F 14 80 0D 03 02 00 00 00 00 0E [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 0B 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 0B 00 7F 14 00 02 47 DD 06 48 3E 8C 02 90 00 4F [00:00:24]RAPDU: 02 47 DD 06 48 3E 8C 02 90 00 [00:00:24]wFMCommunicate OK [00:00:24]SAM_PROTO_SignData done [00:00:24]FM_MakeSignedData done [00:00:24]CreateOFDProtocolMessage [00:00:24]wFMCommunicate request_size=4 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 11 00 00 [00:00:24]Write to MH i2c: E2 08 00 80 14 80 11 00 00 00 00 00 00 0E [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 17 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 17 00 80 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 65 [00:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:00:24]wFMCommunicate OK [00:00:24]CreateOFDProtocolMessage done [00:00:24]OFDSenderStorePacket 118210 [00:00:24]StoreOFDPacket docnum=118210 [00:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 77 05 00 00 96 21 6F 05 BE A8 5A 05 01 00 05 00 63 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 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 8C C8 22 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D7 04 6E 04 04 00 0D 01 00 00 69 04 A4 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C 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 99 5D 02 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 C2 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 75 3F 47 FA 29 64 02 47 DD 06 48 3E 8C 02 [00:00:25]CheckFolder [00:00:25]dirname=/storage/ofd_packets [00:00:25]CheckFolder done [00:00:25]ProducePacketName [00:00:25]name=ofd_packets/00118210 [00:00:25]NVStorageSaveData ofd_packets/00118210 [00:00:25]File name is /storage/ofd_packets/00118210 [00:00:25]Write 1429 bytes [00:00:25]NVStorageSaveData done [00:00:25]OFDSenderStorePacket done [00:00:25]KKMCreateOFDPacket done [00:00:25]NVStorageSaveData kkm_last_timestamp [00:00:25]File name is /storage/kkm_last_timestamp [00:00:25]Write 4 bytes [00:00:25]NVStorageSaveData done [00:00:25]ExternCall_PrintAddStr [00:00:25]wPrintStart [00:00:25]Write to MH i2c: 01 00 00 81 14 95 [00:00:25]Write i2c OK [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: 01 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: 01 07 00 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: 01 07 00 81 14 00 00 00 00 00 FF 0F AA [00:00:25]RasterBufferAndPrint [00:00:25]line Отчет о закрытии смены [00:00:25]line ФФД: 1.0 [00:00:25]line ИНН: 02508201610067 [00:00:25]line Кассир: Кокчоев А. [00:00:25]line 31.10.2024 00:00 [00:00:25]line Смена: 545 [00:00:25]line РНМ: 0000000000091782 [00:00:25]line ЗНМ: 0300000115 [00:00:25]line СНО: Общий режим [00:00:25]line Чеков за смену: 269 [00:00:25]line ФД за смену: 271 [00:00:25]line Всего чеков: 269 [00:00:25]line ИТОГИ ПРИХОД [00:00:25]line Чеков: 269 [00:00:25]line Общий итог: 175107.94 [00:00:25]line Итого наличными: 163492.00 [00:00:25]line Итого безнал.: 11615.94 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 18603.07 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 1550.33 [00:00:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:00:25]line Чеков: 0 [00:00:25]line Общий итог: 0.00 [00:00:25]line Итого наличными: 0.00 [00:00:25]line Итого безнал.: 0.00 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 0.00 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 0.00 [00:00:25]line ИТОГИ РАСХОД [00:00:25]line Чеков: 0 [00:00:25]line Общий итог: 0.00 [00:00:25]line Итого наличными: 0.00 [00:00:25]line Итого безнал.: 0.00 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 0.00 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 0.00 [00:00:25]line ИТОГИ ВОЗВРАТ РАСХОДА [00:00:25]line Чеков: 0 [00:00:25]line Общий итог: 0.00 [00:00:25]line Итого наличными: 0.00 [00:00:25]line Итого безнал.: 0.00 [00:00:25]line НДС 0% : 0.00 [00:00:25]line НДС 12% : 0.00 [00:00:25]line НСП 0% : 0.00 [00:00:25]line НСП 1,50% : 0.00 [00:00:25]line НСП 0,50% : 0.00 [00:00:25]line НСП 5% : 0.00 [00:00:25]line НСП 3% : 0.00 [00:00:25]line НСП 2% : 0.00 [00:00:25]line НСП 1% : 0.00 [00:00:25]line Сумма внесений: 0.00 [00:00:25]line Сумма выплат: 0.00 [00:00:25]line Нал. в кассе: 163492.00 [00:00:25]line НС Приход: 71508508.01 [00:00:25]line НС Возвр.Прихода: 1.00 [00:00:25]line НС Расход: 0.00 [00:00:25]line НС Возвр.Расхода: 0.00 [00:00:25]line ФД: 118210 [00:00:25]line ФМ: 0000000000871767 [00:00:25]line ФПД: 128914650966372 [00:00:25]OFD Sender: Processing packet 118210 [packets to send 77, broken 76] [00:00:25]ProducePacketName [00:00:25]name=ofd_packets/00118210 [00:00:25]OFD Sender: To server: pG, [00:00:25]CommunicateWithHost lk.salyk.kg:30040 [00:00:25]ConnectInit lk.salyk.kg [00:00:25]written 0, free lines is 4095 [00:00:25]Connected sock=10 [00:00: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 36 37 77 05 00 00 96 21 6F 05 BE A8 5A 05 01 00 05 00 63 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 13 00 D0 9A D0 BE D0 BA D1 87 D0 BE D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 8C C8 22 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D7 04 6E 04 04 00 0D 01 00 00 69 04 A4 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C 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 99 5D 02 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 Write to MH i2c: 03 01 01 00 00 00 00 EF D1 03 0A 00 F6 03 01 00 03 F7 03 01 00 14 00 E5 EF [00:00:26]03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A Write i2c OK [00:00:26]00 MH_I2C_Read... [00:00:26]F6 Read from MH i2c: 03 01 01 [00:00:26]00 MH_I2C_Read... [00:00:26]01 F7 03 01 00 00 6D 04 4C Read from MH i2c: 02 01 78 07 04 00 04 [00:00:26]00 00 00 00 00 79 04 8D 00 6F 04 MH_I2C_Read... [00:00:26]04 00 00 00 00 00 B1 04 00 00 Read from MH i2c: 70 01 04 07 00 00 00 D1 14 72 00 04 00 00 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 70 00 0A F3 66 03 [00:00:26]00 RasterBufferAndPrint [00:00:26]00 line [00:00:26]EE line [00:00:26]03 line [00:00:26]09 line [00:00:26]00 line [00:00:26]F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 written 0, free lines is 2869 [00:00:26]70 04 00 00 72 04 00 00 00 04 75 00 EE MH_Cut [00:00:26]03 Write to MH i2c: 09 D1 00 01 F2 00 03 D8 14 01 01 00 BE 00 F3 03 00 00 EE 03 09 00 F2 03 [00:00:26]01 Write i2c OK [00:00:26]00 MH_I2C_Read... [00:00:26]01 Read from MH i2c: F3 D1 03 [00:00:26]00 MH_I2C_Read... [00:00:26]00 Read from MH i2c: EF D1 03 01 09 00 00 [00:00:26]F6 MH_I2C_Read... [00:00:26]03 01 00 00 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 01 03 00 01 D8 00 14 01 00 F7 BD 03 [00:00:26]00 Write to MH i2c: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 01 00 00 00 00 00 D9 00 14 00 B1 04 00 00 70 04 00 00 72 04 ED 00 [00:00:26]00 Write i2c OK [00:00:26]00 MH_I2C_Read... [00:00:26]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 75 3F 47 FA 29 64 02 47 DD 06 48 3E 8C 02 [00:00:27]*** Cut start [00:00:27]*** Purtial cut [00:00:27]*** Stage 1: CUTSNS_PIN = 1 [00:00: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 36 37 4F 00 00 00 3B AA 47 00 99 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C2 CD 01 00 F4 03 04 00 51 74 22 67 B6 04 01 00 00 85 1D 6A BC 36 4E DD DE [00:00:27]CommunicateWithHost err = 0 [00:00:27]CheckOFDResponse [00:00:27]1017 (14) - 77093643461234 [00:00:27]1041 (16) - 0000000000871767 [00:00:27]1040 (4) - 118210 [00:00:27]1012 (4) - 30.10.2024 18:00 [00:00:27]1206 (1) - 0 [00:00:27]OFD Sender: Remove packet 118210 [00:00:27]ProducePacketName [00:00:27]name=ofd_packets/00118210 [00:00:27]NVStorageDeleteData [00:00:27]Read from MH i2c: 01 [00:00:27]MH_I2C_Read... [00:00:27]*** Stop cut motor [00:00:27]*** Cut end [00:00:27]Read from MH i2c: 01 07 00 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: 01 07 00 D9 14 00 00 00 00 00 FF 0F 02 [00:00:27]process_action close_shift done [00:00:27]requested_data is exist [00:00:27]produce_requested_data [00:00:27]requested_item fd.num is exist - process it [00:00:27]SAM_PROTO_GetFieldsCounters [00:00:27]wFMCommunicate request_size=4 [00:00:27]MH_SAM_APDU [00:00:27]CAPDU: 80 13 00 00 [00:00:27]Write to MH i2c: E2 08 00 DA 14 80 13 00 00 00 00 00 00 6A [00:00:27]Write i2c OK [00:00:27]MH_I2C_Read... [00:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:27]Read from MH i2c: E2 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 62 00 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 62 00 DA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [00:00: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 OFD Sender: No OFD packet to send [00:00:28]0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:28]wFMCommunicate OK [00:00:28]SAM_PROTO_GetFieldsCounters done [00:00:28]requested_item shift.num is exist - process it [00:00:28]requested_item shift.opened is exist - process it [00:00:28]req_shift_opened [00:00:28]FM_GetShiftState [00:00:28]SAM_PROTO_GetShiftState [00:00:28]wFMCommunicate request_size=4 [00:00:28]MH_SAM_APDU [00:00:28]CAPDU: 80 13 01 00 [00:00:28]Write to MH i2c: E2 08 00 DB 14 80 13 01 00 00 00 00 00 6C [00:00:28]Write i2c OK [00:00:28]MH_I2C_Read... [00:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:28]Read from MH i2c: E2 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 0E 00 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 0E 00 DB 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 77 [00:00:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:28]wFMCommunicate OK [00:00:28]SAM_PROTO_GetShiftState done [00:00:28]FM_GetShiftState done [00:00:28]req_shift_opened done [00:00:28]requested_item shift.open_date is exist - process it [00:00:28]req_shift_open_date [00:00:28]FM_GetShiftState [00:00:28]SAM_PROTO_GetShiftState [00:00:28]wFMCommunicate request_size=4 [00:00:28]MH_SAM_APDU [00:00:28]CAPDU: 80 13 01 00 [00:00:28]Write to MH i2c: E2 08 00 DC 14 80 13 01 00 00 00 00 00 6D [00:00:28]Write i2c OK [00:00:28]MH_I2C_Read... [00:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:28]Read from MH i2c: E2 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 0E 00 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 0E 00 DC 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 78 [00:00:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:28]wFMCommunicate OK [00:00:28]SAM_PROTO_GetShiftState done [00:00:28]FM_GetShiftState done [00:00:28]req_shift_open_date done [00:00:28]produce_requested_data done [00:00:28]produce_requested_data return {"fd.num":118210,"shift.num":545,"shift.opened":0,"shift.open_date":0} [00:00:28]process_action_free close_shift [00:00:28]json_value_free [00:00:28]json_value_free done [00:00:28]process_json_proto returns [00:00:28]Send response to host [00:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118210,"shift.num":545,"shift.opened":0,"shift.open_date":0}}} [00:00:28]free response buf [00:00:28]execute_script done [00:00:28]execute_script returns [00:00:28]free content buf [00:00:28]Sock 9.Close socket [00:00:28]Sock 9.Thread stoped [00:00:30]int [00:00:30]Write to MH i2c: 01 00 00 DD 14 F1 [00:00:30]*** FLAG_PRN_PAP1 set [00:00:30]Write i2c OK [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 07 00 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 07 00 DD 14 00 01 00 00 00 FF 0F 07 [00:00:30]state=0 [00:00:30]No paper [00:00:30]int line is 0 - check status [00:00:30]Write to MH i2c: 01 00 00 DE 14 F2 [00:00:30]*** FLAG_PRN_PAP2 set [00:00:30]Write i2c OK [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 07 00 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 07 00 DE 14 00 03 00 00 00 FF 0F 0A [00:00:30]state=0 [00:00:30]No paper [00:00:30]Cover opened [00:00:30]int [00:00:30]Write to MH i2c: 01 00 00 DF 14 F3 [00:00:30]Write i2c OK [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 07 00 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: 01 07 00 DF 14 00 03 00 00 00 FF 0F 0B [00:00:30]state=3 [00:00:30]No paper [00:00:30]Cover opened [00:00:33]OFD Sender: No OFD packet to send [00:00:35]Write to MH i2c: 01 00 00 E0 14 F4 [00:00:35]Write i2c OK [00:00:35]MH_I2C_Read... [00:00:35]Read from MH i2c: 01 [00:00:35]MH_I2C_Read... [00:00:35]Read from MH i2c: 01 07 00 [00:00:35]MH_I2C_Read... [00:00:35]Read from MH i2c: 01 07 00 E0 14 00 03 00 00 00 FF 0F 0C [00:00:35]state=3 [00:00:35]No paper [00:00:35]Cover opened [00:00:38]OFD Sender: No OFD packet to send [00:00:40]Write to MH i2c: 01 00 00 E1 14 F5 [00:00:40]Write i2c OK [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: 01 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: 01 07 00 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: 01 07 00 E1 14 00 03 00 00 00 FF 0F 0D [00:00:40]state=3 [00:00:40]No paper [00:00:40]Cover opened [00:00:41]int [00:00:41]Write to MH i2c: 01 00 00 E2 14 F6 [00:00:41]*** FLAG_PRN_PAP2 reset [00:00:41]*** FLAG_PRN_PAP1 reset [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 07 00 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FF 0F 0B [00:00:41]state=3 [00:00:41]Cover closed [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:10]accept exits with 7 [00:03:10]New connection [00:03:10]New thread 3067276644 created [00:03:10]Thread 3067133284 joined [00:03:10]Waiting for new connection... [00:03:10] Sock 7.Parse request [00:03:10]Sock 7.Check first char [00:03:10]Sock 7.First char is OK [00:03:10]request: POST /json_proto HTTP/1.0 [00:03:10]Method: POST [00:03:10]URL: /json_proto [00:03:10]Method is POST - this is cgi request [00:03:10]url: /json_proto [00:03:10]query_string will be loaded in cgi processing [00:03:10]execute_cgi json_proto POST (null) [00:03:10]execute_cgi path=json_proto method=POST [00:03:10]POST find Content-Length [00:03:10]Host: 172.17.96.67:8080 [00:03:10]Content-Length: 215 [00:03:10]Content-Type: application/json [00:03:10] [00:03:10]POST finish read [00:03:10]Found Content-Length = 215 [00:03:10]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:03:10]execute_script... [00:03:10]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:03:10]POST & json_proto [00:03:10]process_json_proto [00:03:10]json parsed OK: [00:03:10]protocol is kg_v1.0 [00:03:10]action value=get_value [00:03:10]process_action get_value [00:03:10]cmd_get_value [00:03:10]process_action get_value done [00:03:10]requested_data is exist [00:03:10]produce_requested_data [00:03:10]requested_item kkm.sn is exist - process it [00:03:10]requested_item kkm.ver is exist - process it [00:03:10]requested_item fm.sn is exist - process it [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 11 00 00 [00:03:10]Write to MH i2c: E2 08 00 E3 14 80 11 00 00 00 00 00 00 71 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 17 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 17 00 E3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 C8 [00:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:03:10]wFMCommunicate OK [00:03:10]requested_item fd.num is exist - process it [00:03:10]SAM_PROTO_GetFieldsCounters [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 00 00 [00:03:10]Write to MH i2c: E2 08 00 E4 14 80 13 00 00 00 00 00 00 74 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 62 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 62 00 E4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [00:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C2 CD 01 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetFieldsCounters done [00:03:10]requested_item shift.num is exist - process it [00:03:10]requested_item shift.opened is exist - process it [00:03:10]req_shift_opened [00:03:10]FM_GetShiftState [00:03:10]SAM_PROTO_GetShiftState [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 01 00 [00:03:10]Write to MH i2c: E2 08 00 E5 14 80 13 01 00 00 00 00 00 76 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 E5 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 81 [00:03:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetShiftState done [00:03:10]FM_GetShiftState done [00:03:10]req_shift_opened done [00:03:10]requested_item shift.open_date is exist - process it [00:03:10]req_shift_open_date [00:03:10]FM_GetShiftState [00:03:10]SAM_PROTO_GetShiftState [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 01 00 [00:03:10]Write to MH i2c: E2 08 00 E6 14 80 13 01 00 00 00 00 00 77 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 E6 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 82 [00:03:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetShiftState done [00:03:10]FM_GetShiftState done [00:03:10]req_shift_open_date done [00:03:10]produce_requested_data done [00:03:10]produce_requested_data return {"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":118210,"shift.num":545,"shift.opened":0,"shift.open_date":0} [00:03:10]process_action_free get_value [00:03:10]json_value_free [00:03:10]json_value_free done [00:03:10]process_json_proto returns [00:03:10]Send response to host [00:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000115","kkm.ver":"001","fm.sn":"0000000000871767","fd.num":118210,"shift.num":545,"shift.opened":0,"shift.open_date":0}}} [00:03:10]free response buf [00:03:10]execute_script done [00:03:10]execute_script returns [00:03:10]free content buf [00:03:10]Sock 7.Close socket [00:03:10]Sock 7.Thread stoped [00:03:10]accept exits with 9 [00:03:10]New connection [00:03:10]New thread 3067133284 created [00:03:10]Thread 3067276644 joined [00:03:10]Waiting for new connection... [00:03:10] Sock 9.Parse request [00:03:10]Sock 9.Check first char [00:03:10]Sock 9.First char is OK [00:03:10]request: POST /json_proto HTTP/1.0 [00:03:10]Method: POST [00:03:10]URL: /json_proto [00:03:10]Method is POST - this is cgi request [00:03:10]url: /json_proto [00:03:10]query_string will be loaded in cgi processing [00:03:10]execute_cgi json_proto POST (null) [00:03:10]execute_cgi path=json_proto method=POST [00:03:10]POST find Content-Length [00:03:10]Host: 172.17.96.67:8080 [00:03:10]Content-Length: 331 [00:03:10]Content-Type: application/json [00:03:10] [00:03:10]POST finish read [00:03:10]Found Content-Length = 331 [00:03:10]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:03:10]execute_script... [00:03:10]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:03:10]POST & json_proto [00:03:10]process_json_proto [00:03:10]json parsed OK: [00:03:10]protocol is kg_v1.0 [00:03:10]action value=get_value [00:03:10]process_action get_value [00:03:10]cmd_get_value [00:03:10]process_action get_value done [00:03:10]requested_data is exist [00:03:10]produce_requested_data [00:03:10]requested_item fm.sale.total is exist - process it [00:03:10]SAM_PROTO_GetFMData [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 03 00 [00:03:10]Write to MH i2c: E2 08 00 E7 14 80 13 03 00 00 00 00 00 7A [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 E7 14 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6C [00:03:11]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 E8 14 80 17 00 00 00 00 00 00 7C [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 E8 14 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 25 [00:03:11]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 E9 14 80 17 00 00 00 00 00 00 7D [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 E9 14 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 A9 [00:03:11]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 EA 14 80 17 00 00 00 00 00 00 7E [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 EA 14 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 F6 [00:03:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 EB 14 80 17 00 00 00 00 00 00 7F [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 D7 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 D7 00 EB 14 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 62 [00:03:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:12]wFMCommunicate OK [00:03:12]SAM_PROTO_GetFMData done [00:03:12]requested_item fm.sale_refund.total is exist - process it [00:03:12]requested_item fm.buy.total is exist - process it [00:03:12]requested_item shift.sale.total is exist - process it [00:03:12]SAM_PROTO_GetShiftData [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 13 02 00 [00:03:12]Write to MH i2c: E2 08 00 EC 14 80 13 02 00 00 00 00 00 7E [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 EC 14 00 B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 42 [00:03:12]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 0D 01 00 00 69 04 9D 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 8A 31 0B 01 70 04 03 00 10 78 F9 72 04 03 00 7A B9 11 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 D3 62 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 5D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 ED 14 80 17 00 00 00 00 00 00 81 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 ED 14 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 9B [00:03:12]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:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 EE 14 80 17 00 00 00 00 00 00 82 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 EE 14 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 3F [00:03:13]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:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 17 00 00 [00:03:13]Write to MH i2c: E2 08 00 EF 14 80 17 00 00 00 00 00 00 83 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]OFD Sender: No OFD packet to send [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 EF 14 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 F6 [00:03:13]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:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 17 00 00 [00:03:13]Write to MH i2c: E2 08 00 F0 14 80 17 00 00 00 00 00 00 84 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 CD 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 CD 00 F0 14 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 68 [00:03:13]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:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftData done [00:03:13]requested_item shift.sale.total_cash is exist - process it [00:03:13]requested_item shift.sale_refund.total is exist - process it [00:03:13]requested_item shift.sale_refund.total_cash is exist - process it [00:03:13]requested_item shift.buy.total is exist - process it [00:03:13]requested_item shift.buy.total_cash is exist - process it [00:03:13]produce_requested_data done [00:03:13]produce_requested_data return {"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.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:03:13]process_action_free get_value [00:03:13]json_value_free [00:03:13]json_value_free done [00:03:13]process_json_proto returns [00:03:13]Send response to host [00:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71508508.01,"fm.sale_refund.total":1.00,"fm.buy.total":0.00,"shift.sale.total":175107.94,"shift.sale.total_cash":163492.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:03:13]free response buf [00:03:13]execute_script done [00:03:13]execute_script returns [00:03:13]free content buf [00:03:13]Sock 9.Close socket [00:03:13]Sock 9.Thread stoped [00:03:13]accept exits with 7 [00:03:13]New connection [00:03:13]New thread 3067276644 created [00:03:13]Thread 3067133284 joined [00:03:13]Waiting for new connection... [00:03:13] Sock 7.Parse request [00:03:13]Sock 7.Check first char [00:03:13]Sock 7.First char is OK [00:03:13]request: POST /json_proto HTTP/1.0 [00:03:13]Method: POST [00:03:13]URL: /json_proto [00:03:13]Method is POST - this is cgi request [00:03:13]url: /json_proto [00:03:13]query_string will be loaded in cgi processing [00:03:13]execute_cgi json_proto POST (null) [00:03:13]execute_cgi path=json_proto method=POST [00:03:13]POST find Content-Length [00:03:13]Host: 172.17.96.67:8080 [00:03:13]Content-Length: 253 [00:03:13]Content-Type: application/json [00:03:13] [00:03:13]POST finish read [00:03:13]Found Content-Length = 253 [00:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]execute_script... [00:03:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]POST & json_proto [00:03:13]process_json_proto [00:03:13]json parsed OK: [00:03:13]protocol is kg_v1.0 [00:03:13]action value=open_shift [00:03:13]process_action open_shift [00:03:13]cmd_open_shift [00:03:13]MH_GetDate [00:03:13]Write to MH i2c: F0 00 00 F1 14 F4 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 F1 14 00 43 C9 22 67 47 6C 1F 67 CB [00:03:13]GetLastDocTimeStamp 1730332812 [00:03:13]current date 1730332995 [00:03:13]FM_GetShiftState [00:03:13]SAM_PROTO_GetShiftState [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 13 01 00 [00:03:13]Write to MH i2c: E2 08 00 F2 14 80 13 01 00 00 00 00 00 83 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 F2 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8E [00:03:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftState done [00:03:13]FM_GetShiftState done [00:03:13]KKMCreateOpenShiftDocument [00:03:13]Load OK [00:03:13]Malloc new data [00:03:13]MH_GetDate [00:03:13]Write to MH i2c: F0 00 00 F3 14 F6 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 F3 14 00 43 C9 22 67 47 6C 1F 67 CD [00:03:13]Malloc new data [00:03:13]KKMCreateOpenShiftDocument OK [00:03:13]KKMSetOpenShiftData OK [00:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=168 [00:03:13]tlvbuf is 00208700 [00:03:13]KKMLoadAndSignOpenShiftData [00:03:13]SAM_PROTO_ProcessDocument [00:03:13]wFMCommunicate request_size=9 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 01 00 04 02 00 A8 00 [00:03:13]Write to MH i2c: E2 0C 00 F4 14 80 15 01 00 04 00 02 00 A8 00 00 00 39 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=23 [00:03:14]MH_SAM_APDU [00:03:14]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:03:14]Write to MH i2c: E2 1A 00 F5 14 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 7E [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=28 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:03:14]Write to MH i2c: E2 1F 00 F6 14 80 15 02 00 17 00 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 1B [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 F6 14 00 90 00 7E [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=58 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 35 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 [00:03:14]Write to MH i2c: E2 3D 00 F7 14 80 15 02 00 35 00 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 00 00 DB [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 F7 14 00 90 00 7F [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=51 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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:03:14]Write to MH i2c: E2 36 00 F8 14 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 39 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 F8 14 00 90 00 80 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=13 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 08 F4 03 04 00 43 C9 22 67 [00:03:14]Write to MH i2c: E2 10 00 F9 14 80 15 02 00 08 00 F4 03 04 00 43 C9 22 67 00 00 2D [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=25 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 [00:03:14]Write to MH i2c: E2 1C 00 FA 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 00 00 F2 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 FA 14 00 90 00 82 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 03 00 [00:03:14]Write to MH i2c: E2 08 00 FB 14 80 15 03 00 00 00 00 00 90 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 38 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 38 00 FB 14 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 36 37 10 04 04 00 C3 CD 01 00 0E 04 04 00 22 02 00 00 35 04 06 00 A9 40 D4 0A F1 D2 90 00 9F [00:03:14]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 36 37 10 04 04 00 C3 CD 01 00 0E 04 04 00 22 02 00 00 35 04 06 00 A9 40 D4 0A F1 D2 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_ProcessDocument answer len = 51 [00:03:14]SAM_PROTO_ProcessDocument done [00:03:14]SetTLVBufToDocument [00:03:14]Processing tag 1209 (04B9) [00:03:14]Malloc new data [00:03:14]Processing tag 1041 (0411) [00:03:14]Processing tag 1040 (0410) [00:03:14]Malloc new data [00:03:14]Processing tag 1038 (040E) [00:03:14]Malloc new data [00:03:14]Processing tag 1077 (0435) [00:03:14]Malloc new data [00:03:14]SetTLVBufToDocument err=0 [00:03:14]KKMLoadAndSignOpenShiftData store KKM data [00:03:14]KKMLoadAndSignOpenShiftData err=0 [00:03:14]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мамаева Г. Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 Место: АЗС № 173 "Партнер Нефть" 31.10.2024 00:03 Смена: 546 РНМ: 0000000000091782 ЗНМ: 0300000115 ФД: 118211 ФМ: 0000000000871767 ФПД: 186095900488146 [00:03:14]StoreToDocumentArchive [00:03:14]shift 546 fd 118211 [00:03:14]Create dir for shift 0546 [00:03:14]save to /storage/0546/doc_00118211 [00:03:14]save last doc name /storage/0546/doc_00118211 to /storage/kkm_last_doc_name [00:03:14]save OK [00:03:14]Clear old archive folders... [00:03:14]Remove dir /storage/0545 [00:03:14]opendir ok [00:03:14]file . [00:03:14]file .. [00:03:14]file doc_00117940 [00:03:14]remove file /storage/0545/doc_00117940 [00:03:14]file doc_00117941 [00:03:14]remove file /storage/0545/doc_00117941 [00:03:14]file doc_00117942 [00:03:14]remove file /storage/0545/doc_00117942 [00:03:14]file doc_00117943 [00:03:14]remove file /storage/0545/doc_00117943 [00:03:14]file doc_00117944 [00:03:14]remove file /storage/0545/doc_00117944 [00:03:14]file doc_00117945 [00:03:14]remove file /storage/0545/doc_00117945 [00:03:14]file doc_00117946 [00:03:14]remove file /storage/0545/doc_00117946 [00:03:14]file doc_00117947 [00:03:14]remove file /storage/0545/doc_00117947 [00:03:14]file doc_00117948 [00:03:14]remove file /storage/0545/doc_00117948 [00:03:14]file doc_00117949 [00:03:14]remove file /storage/0545/doc_00117949 [00:03:14]file doc_00117950 [00:03:14]remove file /storage/0545/doc_00117950 [00:03:14]file doc_00117951 [00:03:14]remove file /storage/0545/doc_00117951 [00:03:14]file doc_00117952 [00:03:14]remove file /storage/0545/doc_00117952 [00:03:14]file doc_00117953 [00:03:14]remove file /storage/0545/doc_00117953 [00:03:14]file doc_00117954 [00:03:14]remove file /storage/0545/doc_00117954 [00:03:14]file doc_00117955 [00:03:14]remove file /storage/0545/doc_00117955 [00:03:14]file doc_00117956 [00:03:14]remove file /storage/0545/doc_00117956 [00:03:14]file doc_00117957 [00:03:14]remove file /storage/0545/doc_00117957 [00:03:14]file doc_00117958 [00:03:14]remove file /storage/0545/doc_00117958 [00:03:14]file doc_00117959 [00:03:14]remove file /storage/0545/doc_00117959 [00:03:14]file doc_00117960 [00:03:14]remove file /storage/0545/doc_00117960 [00:03:14]file doc_00117961 [00:03:14]remove file /storage/0545/doc_00117961 [00:03:14]file doc_00117962 [00:03:14]remove file /storage/0545/doc_00117962 [00:03:14]file doc_00117963 [00:03:14]remove file /storage/0545/doc_00117963 [00:03:14]file doc_00117964 [00:03:14]remove file /storage/0545/doc_00117964 [00:03:14]file doc_00117965 [00:03:14]remove file /storage/0545/doc_00117965 [00:03:14]file doc_00117966 [00:03:14]remove file /storage/0545/doc_00117966 [00:03:14]file doc_00117968 [00:03:14]remove file /storage/0545/doc_00117968 [00:03:14]file doc_00117969 [00:03:14]remove file /storage/0545/doc_00117969 [00:03:14]file doc_00117970 [00:03:14]remove file /storage/0545/doc_00117970 [00:03:14]file doc_00117971 [00:03:14]remove file /storage/0545/doc_00117971 [00:03:14]file doc_00117972 [00:03:14]remove file /storage/0545/doc_00117972 [00:03:14]file doc_00117973 [00:03:14]remove file /storage/0545/doc_00117973 [00:03:14]file doc_00117974 [00:03:14]remove file /storage/0545/doc_00117974 [00:03:14]file doc_00117975 [00:03:14]remove file /storage/0545/doc_00117975 [00:03:14]file doc_00117976 [00:03:14]remove file /storage/0545/doc_00117976 [00:03:14]file doc_00117977 [00:03:14]remove file /storage/0545/doc_00117977 [00:03:14]file doc_00117978 [00:03:14]remove file /storage/0545/doc_00117978 [00:03:14]file doc_00117979 [00:03:14]remove file /storage/0545/doc_00117979 [00:03:14]file doc_00117980 [00:03:14]remove file /storage/0545/doc_00117980 [00:03:14]file doc_00117981 [00:03:14]remove file /storage/0545/doc_00117981 [00:03:14]file doc_00117982 [00:03:14]remove file /storage/0545/doc_00117982 [00:03:14]file doc_00117983 [00:03:14]remove file /storage/0545/doc_00117983 [00:03:14]file doc_00117984 [00:03:14]remove file /storage/0545/doc_00117984 [00:03:14]file doc_00117985 [00:03:14]remove file /storage/0545/doc_00117985 [00:03:14]file doc_00117986 [00:03:14]remove file /storage/0545/doc_00117986 [00:03:14]file doc_00117987 [00:03:14]remove file /storage/0545/doc_00117987 [00:03:14]file doc_00117988 [00:03:14]remove file /storage/0545/doc_00117988 [00:03:14]file doc_00117989 [00:03:14]remove file /storage/0545/doc_00117989 [00:03:14]file doc_00117990 [00:03:14]remove file /storage/0545/doc_00117990 [00:03:14]file doc_00117991 [00:03:14]remove file /storage/0545/doc_00117991 [00:03:14]file doc_00117992 [00:03:14]remove file /storage/0545/doc_00117992 [00:03:14]file doc_00117993 [00:03:14]remove file /storage/0545/doc_00117993 [00:03:14]file doc_00117994 [00:03:14]remove file /storage/0545/doc_00117994 [00:03:14]file doc_00117995 [00:03:14]remove file /storage/0545/doc_00117995 [00:03:14]file doc_00117996 [00:03:14]remove file /storage/0545/doc_00117996 [00:03:14]file doc_00117997 [00:03:14]remove file /storage/0545/doc_00117997 [00:03:14]file doc_00117998 [00:03:14]remove file /storage/0545/doc_00117998 [00:03:14]file doc_00117999 [00:03:15]remove file /storage/0545/doc_00117999 [00:03:15]file doc_00118000 [00:03:15]remove file /storage/0545/doc_00118000 [00:03:15]file doc_00118001 [00:03:15]remove file /storage/0545/doc_00118001 [00:03:15]file doc_00118002 [00:03:15]remove file /storage/0545/doc_00118002 [00:03:15]file doc_00118003 [00:03:15]remove file /storage/0545/doc_00118003 [00:03:15]file doc_00118004 [00:03:15]remove file /storage/0545/doc_00118004 [00:03:15]file doc_00118005 [00:03:15]remove file /storage/0545/doc_00118005 [00:03:15]file doc_00118006 [00:03:15]remove file /storage/0545/doc_00118006 [00:03:15]file doc_00118007 [00:03:15]remove file /storage/0545/doc_00118007 [00:03:15]file doc_00118008 [00:03:15]remove file /storage/0545/doc_00118008 [00:03:15]file doc_00118009 [00:03:15]remove file /storage/0545/doc_00118009 [00:03:15]file doc_00118010 [00:03:15]remove file /storage/0545/doc_00118010 [00:03:15]file doc_00118011 [00:03:15]remove file /storage/0545/doc_00118011 [00:03:15]file doc_00118012 [00:03:15]remove file /storage/0545/doc_00118012 [00:03:15]file doc_00118013 [00:03:15]remove file /storage/0545/doc_00118013 [00:03:15]file doc_00118014 [00:03:15]remove file /storage/0545/doc_00118014 [00:03:15]file doc_00118015 [00:03:15]remove file /storage/0545/doc_00118015 [00:03:15]file doc_00118016 [00:03:15]remove file /storage/0545/doc_00118016 [00:03:15]file doc_00118017 [00:03:15]remove file /storage/0545/doc_00118017 [00:03:15]file doc_00118018 [00:03:15]remove file /storage/0545/doc_00118018 [00:03:15]file doc_00118019 [00:03:15]remove file /storage/0545/doc_00118019 [00:03:15]file doc_00118020 [00:03:15]remove file /storage/0545/doc_00118020 [00:03:15]file doc_00118021 [00:03:15]remove file /storage/0545/doc_00118021 [00:03:15]file doc_00118022 [00:03:15]remove file /storage/0545/doc_00118022 [00:03:15]file doc_00118023 [00:03:15]remove file /storage/0545/doc_00118023 [00:03:15]file doc_00118024 [00:03:15]remove file /storage/0545/doc_00118024 [00:03:15]file doc_00118025 [00:03:15]remove file /storage/0545/doc_00118025 [00:03:15]file doc_00118026 [00:03:15]remove file /storage/0545/doc_00118026 [00:03:15]file doc_00118027 [00:03:15]remove file /storage/0545/doc_00118027 [00:03:15]file doc_00118028 [00:03:15]remove file /storage/0545/doc_00118028 [00:03:15]file doc_00118029 [00:03:15]remove file /storage/0545/doc_00118029 [00:03:15]file doc_00118030 [00:03:15]remove file /storage/0545/doc_00118030 [00:03:15]file doc_00118031 [00:03:15]remove file /storage/0545/doc_00118031 [00:03:15]file doc_00118032 [00:03:15]remove file /storage/0545/doc_00118032 [00:03:15]file doc_00118033 [00:03:15]remove file /storage/0545/doc_00118033 [00:03:15]file doc_00118034 [00:03:15]remove file /storage/0545/doc_00118034 [00:03:15]file doc_00118035 [00:03:15]remove file /storage/0545/doc_00118035 [00:03:15]file doc_00118036 [00:03:15]remove file /storage/0545/doc_00118036 [00:03:15]file doc_00118037 [00:03:15]remove file /storage/0545/doc_00118037 [00:03:15]file doc_00118038 [00:03:15]remove file /storage/0545/doc_00118038 [00:03:15]file doc_00118039 [00:03:15]remove file /storage/0545/doc_00118039 [00:03:15]file doc_00118040 [00:03:15]remove file /storage/0545/doc_00118040 [00:03:15]file doc_00118041 [00:03:15]remove file /storage/0545/doc_00118041 [00:03:15]file doc_00118042 [00:03:15]remove file /storage/0545/doc_00118042 [00:03:15]file doc_00118043 [00:03:15]remove file /storage/0545/doc_00118043 [00:03:15]file doc_00118044 [00:03:15]remove file /storage/0545/doc_00118044 [00:03:15]file doc_00118045 [00:03:15]remove file /storage/0545/doc_00118045 [00:03:15]file doc_00118046 [00:03:15]remove file /storage/0545/doc_00118046 [00:03:15]file doc_00118047 [00:03:15]remove file /storage/0545/doc_00118047 [00:03:15]file doc_00118048 [00:03:15]remove file /storage/0545/doc_00118048 [00:03:15]file doc_00118049 [00:03:15]remove file /storage/0545/doc_00118049 [00:03:15]file doc_00118050 [00:03:15]remove file /storage/0545/doc_00118050 [00:03:15]file doc_00118051 [00:03:15]remove file /storage/0545/doc_00118051 [00:03:15]file doc_00118052 [00:03:15]remove file /storage/0545/doc_00118052 [00:03:15]file doc_00118053 [00:03:15]remove file /storage/0545/doc_00118053 [00:03:15]file doc_00118054 [00:03:15]remove file /storage/0545/doc_00118054 [00:03:15]file doc_00118055 [00:03:15]remove file /storage/0545/doc_00118055 [00:03:15]file doc_00118056 [00:03:15]remove file /storage/0545/doc_00118056 [00:03:15]file doc_00118057 [00:03:15]remove file /storage/0545/doc_00118057 [00:03:15]file doc_00118058 [00:03:15]remove file /storage/0545/doc_00118058 [00:03:15]file doc_00118059 [00:03:15]remove file /storage/0545/doc_00118059 [00:03:15]file doc_00118060 [00:03:15]remove file /storage/0545/doc_00118060 [00:03:15]file doc_00118061 [00:03:15]remove file /storage/0545/doc_00118061 [00:03:15]file doc_00118062 [00:03:15]remove file /storage/0545/doc_00118062 [00:03:15]file doc_00118063 [00:03:15]remove file /storage/0545/doc_00118063 [00:03:15]file doc_00118064 [00:03:15]remove file /storage/0545/doc_00118064 [00:03:15]file doc_00118065 [00:03:15]remove file /storage/0545/doc_00118065 [00:03:15]file doc_00118066 [00:03:15]remove file /storage/0545/doc_00118066 [00:03:15]file doc_00118067 [00:03:15]remove file /storage/0545/doc_00118067 [00:03:15]file doc_00118068 [00:03:15]remove file /storage/0545/doc_00118068 [00:03:15]file doc_00118069 [00:03:15]remove file /storage/0545/doc_00118069 [00:03:15]file doc_00118070 [00:03:15]remove file /storage/0545/doc_00118070 [00:03:15]file doc_00118071 [00:03:15]remove file /storage/0545/doc_00118071 [00:03:15]file doc_00118072 [00:03:15]remove file /storage/0545/doc_00118072 [00:03:15]file doc_00118073 [00:03:15]remove file /storage/0545/doc_00118073 [00:03:15]file doc_00118074 [00:03:15]remove file /storage/0545/doc_00118074 [00:03:15]file doc_00118075 [00:03:15]remove file /storage/0545/doc_00118075 [00:03:15]file doc_00118076 [00:03:15]remove file /storage/0545/doc_00118076 [00:03:15]file doc_00118077 [00:03:15]remove file /storage/0545/doc_00118077 [00:03:15]file doc_00118078 [00:03:15]remove file /storage/0545/doc_00118078 [00:03:15]file doc_00118079 [00:03:15]remove file /storage/0545/doc_00118079 [00:03:15]file doc_00118080 [00:03:15]remove file /storage/0545/doc_00118080 [00:03:15]file doc_00118081 [00:03:15]remove file /storage/0545/doc_00118081 [00:03:15]file doc_00118082 [00:03:15]remove file /storage/0545/doc_00118082 [00:03:15]file doc_00118083 [00:03:15]remove file /storage/0545/doc_00118083 [00:03:15]file doc_00118084 [00:03:15]remove file /storage/0545/doc_00118084 [00:03:15]file doc_00118085 [00:03:15]remove file /storage/0545/doc_00118085 [00:03:15]file doc_00118086 [00:03:15]remove file /storage/0545/doc_00118086 [00:03:15]file doc_00118087 [00:03:15]remove file /storage/0545/doc_00118087 [00:03:15]file doc_00118088 [00:03:15]remove file /storage/0545/doc_00118088 [00:03:15]file doc_00118089 [00:03:15]remove file /storage/0545/doc_00118089 [00:03:15]file doc_00118090 [00:03:15]remove file /storage/0545/doc_00118090 [00:03:15]file doc_00118091 [00:03:15]remove file /storage/0545/doc_00118091 [00:03:15]file doc_00118092 [00:03:15]remove file /storage/0545/doc_00118092 [00:03:15]file doc_00118093 [00:03:15]remove file /storage/0545/doc_00118093 [00:03:15]file doc_00118094 [00:03:15]remove file /storage/0545/doc_00118094 [00:03:15]file doc_00118095 [00:03:15]remove file /storage/0545/doc_00118095 [00:03:15]file doc_00118096 [00:03:15]remove file /storage/0545/doc_00118096 [00:03:15]file doc_00118097 [00:03:15]remove file /storage/0545/doc_00118097 [00:03:15]file doc_00118098 [00:03:15]remove file /storage/0545/doc_00118098 [00:03:15]file doc_00118099 [00:03:15]remove file /storage/0545/doc_00118099 [00:03:15]file doc_00118100 [00:03:15]remove file /storage/0545/doc_00118100 [00:03:15]file doc_00118101 [00:03:15]remove file /storage/0545/doc_00118101 [00:03:15]file doc_00118102 [00:03:15]remove file /storage/0545/doc_00118102 [00:03:15]file doc_00118103 [00:03:15]remove file /storage/0545/doc_00118103 [00:03:15]file doc_00118104 [00:03:15]remove file /storage/0545/doc_00118104 [00:03:15]file doc_00118105 [00:03:15]remove file /storage/0545/doc_00118105 [00:03:15]file doc_00118106 [00:03:15]remove file /storage/0545/doc_00118106 [00:03:15]file doc_00118107 [00:03:15]remove file /storage/0545/doc_00118107 [00:03:15]file doc_00118108 [00:03:15]remove file /storage/0545/doc_00118108 [00:03:15]file doc_00118109 [00:03:15]remove file /storage/0545/doc_00118109 [00:03:15]file doc_00118110 [00:03:15]remove file /storage/0545/doc_00118110 [00:03:15]file doc_00118111 [00:03:15]remove file /storage/0545/doc_00118111 [00:03:15]file doc_00118112 [00:03:15]remove file /storage/0545/doc_00118112 [00:03:15]file doc_00118113 [00:03:15]remove file /storage/0545/doc_00118113 [00:03:15]file doc_00118114 [00:03:15]remove file /storage/0545/doc_00118114 [00:03:15]file doc_00118115 [00:03:15]remove file /storage/0545/doc_00118115 [00:03:15]file doc_00118116 [00:03:15]remove file /storage/0545/doc_00118116 [00:03:15]file doc_00118117 [00:03:15]remove file /storage/0545/doc_00118117 [00:03:15]file doc_00118118 [00:03:15]remove file /storage/0545/doc_00118118 [00:03:15]file doc_00118119 [00:03:15]remove file /storage/0545/doc_00118119 [00:03:15]file doc_00118120 [00:03:15]remove file /storage/0545/doc_00118120 [00:03:15]file doc_00118121 [00:03:15]remove file /storage/0545/doc_00118121 [00:03:15]file doc_00118122 [00:03:15]remove file /storage/0545/doc_00118122 [00:03:15]file doc_00118123 [00:03:15]remove file /storage/0545/doc_00118123 [00:03:15]file doc_00118124 [00:03:15]remove file /storage/0545/doc_00118124 [00:03:15]file doc_00118125 [00:03:15]remove file /storage/0545/doc_00118125 [00:03:15]file doc_00118126 [00:03:15]remove file /storage/0545/doc_00118126 [00:03:15]file doc_00118127 [00:03:15]remove file /storage/0545/doc_00118127 [00:03:15]file doc_00118128 [00:03:15]remove file /storage/0545/doc_00118128 [00:03:15]file doc_00118129 [00:03:15]remove file /storage/0545/doc_00118129 [00:03:15]file doc_00118130 [00:03:15]remove file /storage/0545/doc_00118130 [00:03:15]file doc_00118131 [00:03:15]remove file /storage/0545/doc_00118131 [00:03:15]file doc_00118132 [00:03:15]remove file /storage/0545/doc_00118132 [00:03:15]file doc_00118133 [00:03:15]remove file /storage/0545/doc_00118133 [00:03:15]file doc_00118134 [00:03:15]remove file /storage/0545/doc_00118134 [00:03:15]file doc_00118135 [00:03:15]remove file /storage/0545/doc_00118135 [00:03:15]file doc_00118136 [00:03:15]remove file /storage/0545/doc_00118136 [00:03:15]file doc_00118137 [00:03:15]remove file /storage/0545/doc_00118137 [00:03:15]file doc_00118138 [00:03:15]remove file /storage/0545/doc_00118138 [00:03:15]file doc_00118139 [00:03:15]remove file /storage/0545/doc_00118139 [00:03:15]file doc_00118140 [00:03:15]remove file /storage/0545/doc_00118140 [00:03:15]file doc_00118141 [00:03:15]remove file /storage/0545/doc_00118141 [00:03:15]file doc_00118142 [00:03:15]remove file /storage/0545/doc_00118142 [00:03:15]file doc_00118143 [00:03:15]remove file /storage/0545/doc_00118143 [00:03:15]file doc_00118144 [00:03:15]remove file /storage/0545/doc_00118144 [00:03:15]file doc_00118145 [00:03:15]remove file /storage/0545/doc_00118145 [00:03:15]file doc_00118146 [00:03:15]remove file /storage/0545/doc_00118146 [00:03:15]file doc_00118147 [00:03:15]remove file /storage/0545/doc_00118147 [00:03:15]file doc_00118148 [00:03:15]remove file /storage/0545/doc_00118148 [00:03:15]file doc_00118149 [00:03:15]remove file /storage/0545/doc_00118149 [00:03:15]file doc_00118150 [00:03:15]remove file /storage/0545/doc_00118150 [00:03:15]file doc_00118151 [00:03:15]remove file /storage/0545/doc_00118151 [00:03:15]file doc_00118152 [00:03:15]remove file /storage/0545/doc_00118152 [00:03:15]file doc_00118153 [00:03:15]remove file /storage/0545/doc_00118153 [00:03:15]file doc_00118154 [00:03:15]remove file /storage/0545/doc_00118154 [00:03:15]file doc_00118155 [00:03:15]remove file /storage/0545/doc_00118155 [00:03:15]file doc_00118156 [00:03:15]remove file /storage/0545/doc_00118156 [00:03:15]file doc_00118157 [00:03:15]remove file /storage/0545/doc_00118157 [00:03:15]file doc_00118158 [00:03:15]remove file /storage/0545/doc_00118158 [00:03:15]file doc_00118159 [00:03:15]remove file /storage/0545/doc_00118159 [00:03:15]file doc_00118160 [00:03:16]remove file /storage/0545/doc_00118160 [00:03:16]file doc_00118161 [00:03:16]remove file /storage/0545/doc_00118161 [00:03:16]file doc_00118162 [00:03:16]remove file /storage/0545/doc_00118162 [00:03:16]file doc_00118163 [00:03:16]remove file /storage/0545/doc_00118163 [00:03:16]file doc_00118164 [00:03:16]remove file /storage/0545/doc_00118164 [00:03:16]file doc_00118165 [00:03:16]remove file /storage/0545/doc_00118165 [00:03:16]file doc_00118166 [00:03:16]remove file /storage/0545/doc_00118166 [00:03:16]file doc_00118167 [00:03:16]remove file /storage/0545/doc_00118167 [00:03:16]file doc_00118168 [00:03:16]remove file /storage/0545/doc_00118168 [00:03:16]file doc_00118169 [00:03:16]remove file /storage/0545/doc_00118169 [00:03:16]file doc_00118170 [00:03:16]remove file /storage/0545/doc_00118170 [00:03:16]file doc_00118171 [00:03:16]remove file /storage/0545/doc_00118171 [00:03:16]file doc_00118172 [00:03:16]remove file /storage/0545/doc_00118172 [00:03:16]file doc_00118173 [00:03:16]remove file /storage/0545/doc_00118173 [00:03:16]file doc_00118174 [00:03:16]remove file /storage/0545/doc_00118174 [00:03:16]file doc_00118175 [00:03:16]remove file /storage/0545/doc_00118175 [00:03:16]file doc_00118176 [00:03:16]remove file /storage/0545/doc_00118176 [00:03:16]file doc_00118177 [00:03:16]remove file /storage/0545/doc_00118177 [00:03:16]file doc_00118178 [00:03:16]remove file /storage/0545/doc_00118178 [00:03:16]file doc_00118179 [00:03:16]remove file /storage/0545/doc_00118179 [00:03:16]file doc_00118180 [00:03:16]remove file /storage/0545/doc_00118180 [00:03:16]file doc_00118181 [00:03:16]remove file /storage/0545/doc_00118181 [00:03:16]file doc_00118182 [00:03:16]remove file /storage/0545/doc_00118182 [00:03:16]file doc_00118183 [00:03:16]remove file /storage/0545/doc_00118183 [00:03:16]file doc_00118184 [00:03:16]remove file /storage/0545/doc_00118184 [00:03:16]file doc_00118185 [00:03:16]remove file /storage/0545/doc_00118185 [00:03:16]file doc_00118186 [00:03:16]remove file /storage/0545/doc_00118186 [00:03:16]file doc_00118187 [00:03:16]remove file /storage/0545/doc_00118187 [00:03:16]file doc_00118188 [00:03:16]remove file /storage/0545/doc_00118188 [00:03:16]file doc_00118189 [00:03:16]remove file /storage/0545/doc_00118189 [00:03:16]file doc_00118190 [00:03:16]remove file /storage/0545/doc_00118190 [00:03:16]file doc_00118191 [00:03:16]remove file /storage/0545/doc_00118191 [00:03:16]file doc_00118192 [00:03:16]remove file /storage/0545/doc_00118192 [00:03:16]file doc_00118193 [00:03:16]remove file /storage/0545/doc_00118193 [00:03:16]file doc_00118194 [00:03:16]remove file /storage/0545/doc_00118194 [00:03:16]file doc_00118195 [00:03:16]remove file /storage/0545/doc_00118195 [00:03:16]file doc_00118196 [00:03:16]remove file /storage/0545/doc_00118196 [00:03:16]file doc_00118197 [00:03:16]remove file /storage/0545/doc_00118197 [00:03:16]file doc_00118198 [00:03:16]remove file /storage/0545/doc_00118198 [00:03:16]file doc_00118199 [00:03:16]remove file /storage/0545/doc_00118199 [00:03:16]file doc_00118200 [00:03:16]remove file /storage/0545/doc_00118200 [00:03:16]file doc_00118201 [00:03:16]remove file /storage/0545/doc_00118201 [00:03:16]file doc_00118202 [00:03:16]remove file /storage/0545/doc_00118202 [00:03:16]file doc_00118203 [00:03:16]remove file /storage/0545/doc_00118203 [00:03:16]file doc_00118204 [00:03:16]remove file /storage/0545/doc_00118204 [00:03:16]file doc_00118205 [00:03:16]remove file /storage/0545/doc_00118205 [00:03:16]file doc_00118206 [00:03:16]remove file /storage/0545/doc_00118206 [00:03:16]file doc_00118207 [00:03:16]remove file /storage/0545/doc_00118207 [00:03:16]file doc_00118208 [00:03:16]remove file /storage/0545/doc_00118208 [00:03:16]file doc_00118209 [00:03:16]remove file /storage/0545/doc_00118209 [00:03:16]file doc_00118210 [00:03:16]remove file /storage/0545/doc_00118210 [00:03:16]remove dir /storage/0545 [00:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=219 [00:03:16]tlvbuf is 002550C0 [00:03:16]SAM_PROTO_ClearQueue [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 09 00 00 [00:03:16]Write to MH i2c: E2 08 00 FC 14 80 09 00 00 00 00 00 00 82 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 FC 14 00 90 00 84 [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]SAM_PROTO_ClearQueue done [00:03:16]KKMCreateOFDPacket [00:03:16]OFDProtocolAddRootSTLVToBuf [00:03:16]FM_MakeSignedData [00:03:16]FM_MakeSignedData [00:03:16]SAM_PROTO_SignData [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 01 02 [00:03:16]Write to MH i2c: E2 08 00 FD 14 80 0D 01 02 00 00 00 00 8A [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 FD 14 00 90 00 85 [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]wFMCommunicate request_size=228 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 02 02 DF 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 43 C9 22 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 A9 40 D4 0A F1 D2 [00:03:16]Write to MH i2c: E2 E7 00 FE 14 80 0D 02 02 DF 00 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 43 C9 22 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 A9 40 D4 0A F1 D2 00 00 12 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 03 02 [00:03:16]Write to MH i2c: E2 08 00 FF 14 80 0D 03 02 00 00 00 00 8E [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 0B 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 0B 00 FF 14 00 C2 A4 91 35 D6 7C E9 AB 90 00 A1 [00:03:16]RAPDU: C2 A4 91 35 D6 7C E9 AB 90 00 [00:03:16]wFMCommunicate OK [00:03:16]SAM_PROTO_SignData done [00:03:16]FM_MakeSignedData done [00:03:16]CreateOFDProtocolMessage [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 11 00 00 [00:03:16]Write to MH i2c: E2 08 00 00 15 80 11 00 00 00 00 00 00 8F [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 17 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 17 00 00 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 E6 [00:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:03:16]wFMCommunicate OK [00:03:16]CreateOFDProtocolMessage done [00:03:16]OFDSenderStorePacket 118211 [00:03:16]StoreOFDPacket docnum=118211 [00:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 EF 00 00 00 1C 8D E7 00 41 F1 5A 02 01 00 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 43 C9 22 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 A9 40 D4 0A F1 D2 C2 A4 91 35 D6 7C E9 AB [00:03:16]CheckFolder [00:03:16]dirname=/storage/ofd_packets [00:03:16]CheckFolder done [00:03:16]ProducePacketName [00:03:16]name=ofd_packets/00118211 [00:03:16]NVStorageSaveData ofd_packets/00118211 [00:03:16]File name is /storage/ofd_packets/00118211 [00:03:16]Write 269 bytes [00:03:16]NVStorageSaveData done [00:03:16]OFDSenderStorePacket done [00:03:16]KKMCreateOFDPacket done [00:03:16]NVStorageSaveData kkm_last_timestamp [00:03:16]File name is /storage/kkm_last_timestamp [00:03:16]Write 4 bytes [00:03:16]NVStorageSaveData done [00:03:16]ExternCall_PrintAddStr [00:03:16]wPrintStart [00:03:16]Write to MH i2c: 01 00 00 01 15 16 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 FF 0F 2B [00:03:16]RasterBufferAndPrint [00:03:16]line Отчет об открытии смены [00:03:16]line ФФД: 1.0 [00:03:16]line ИНН: 02508201610067 [00:03:16]line Кассир: Мамаева Г. [00:03:16]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:03:16]line Место: АЗС № 173 "Партнер Нефть" [00:03:16]line 31.10.2024 00:03 [00:03:16]line Смена: 546 [00:03:16]line РНМ: 0000000000091782 [00:03:16]line ЗНМ: 0300000115 [00:03:16]line ФД: 118211 [00:03:16]line ФМ: 0000000000871767 [00:03:16]line ФПД: 186095900488146 [00:03:16]OFD Sender: Processing packet 118211 [packets to send 77, broken 76] [00:03:16]ProducePacketName [00:03:16]name=ofd_packets/00118211 [00:03:16]OFD Sender: To server: pG, [00:03:16]CommunicateWithHost lk.salyk.kg:30040 [00:03:16]ConnectInit lk.salyk.kg [00:03:16]written 0, free lines is 4095 [00:03:16]Connected sock=11 [00:03: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 36 37 EF 00 00 00 1C 8D E7 00 41 F1 5A 02 01 00 02 00 DB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 31 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D1 88 20 D0 94 D0 BE D0 B1 D0 BE 2C 20 34 31 2E 33 36 39 30 35 31 2C 20 37 31 2E 38 35 30 34 38 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 33 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 43 C9 22 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 35 04 06 00 A9 40 D4 0A F1 D2 C2 A4 91 35 D6 7C E9 AB [00:03:16]Write to MH i2c: 01 00 00 12 15 27 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 12 15 00 00 00 00 00 70 0E AC [00:03:16]RasterBufferAndPrint [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]written 0, free lines is 3704 [00:03:16]MH_Cut [00:03:16]Write to MH i2c: D1 01 00 19 15 01 00 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: D1 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: D1 01 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: D1 01 00 19 15 00 FF [00:03:16]Write to MH i2c: 01 00 00 1A 15 2F [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03: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 36 37 4F 00 00 00 FF AD 47 00 B3 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C3 CD 01 00 F4 03 04 00 FA 74 22 67 B6 04 01 00 00 29 40 7F 3E 0D 7D B5 04 [00:03:17]CommunicateWithHost err = 0 [00:03:17]CheckOFDResponse [00:03:17]1017 (14) - 77093643461234 [00:03:17]1041 (16) - 0000000000871767 [00:03:17]1040 (4) - 118211 [00:03:17]1012 (4) - 30.10.2024 18:03 [00:03:17]1206 (1) - 0 [00:03:17]OFD Sender: Remove packet 118211 [00:03:17]ProducePacketName [00:03:17]name=ofd_packets/00118211 [00:03:17]NVStorageDeleteData [00:03:17]*** Cut start [00:03:17]*** Purtial cut [00:03:17]*** Stage 1: CUTSNS_PIN = 1 [00:03:17]OFD Sender: No OFD packet to send [00:03:17]Read from MH i2c: 01 [00:03:17]MH_I2C_Read... [00:03:17]*** Stop cut motor [00:03:17]*** Cut end [00:03:17]Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 1A 15 00 00 00 00 00 FF 0F 44 [00:03:17]process_action open_shift done [00:03:17]requested_data is exist [00:03:17]produce_requested_data [00:03:17]requested_item fd.num is exist - process it [00:03:17]SAM_PROTO_GetFieldsCounters [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 00 00 [00:03:17]Write to MH i2c: E2 08 00 1B 15 80 13 00 00 00 00 00 00 AC [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 62 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 62 00 1B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [00:03: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C3 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_GetFieldsCounters done [00:03:17]requested_item shift.num is exist - process it [00:03:17]requested_item shift.opened is exist - process it [00:03:17]req_shift_opened [00:03:17]FM_GetShiftState [00:03:17]SAM_PROTO_GetShiftState [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 01 00 [00:03:17]Write to MH i2c: E2 08 00 1C 15 80 13 01 00 00 00 00 00 AE [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0E 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0E 00 1C 15 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 4F [00:03:17]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_GetShiftState done [00:03:17]FM_GetShiftState done [00:03:18]req_shift_opened done [00:03:18]requested_item shift.open_date is exist - process it [00:03:18]req_shift_open_date [00:03:18]req_shift_open_date done [00:03:18]produce_requested_data done [00:03:18]produce_requested_data return {"fd.num":118211,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995} [00:03:18]process_action_free open_shift [00:03:18]json_value_free [00:03:18]json_value_free done [00:03:18]process_json_proto returns [00:03:18]Send response to host [00:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118211,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995}}} [00:03:18]free response buf [00:03:18]execute_script done [00:03:18]execute_script returns [00:03:18]free content buf [00:03:18]Sock 7.Close socket [00:03:18]Sock 7.Thread stoped [00:03:18]accept exits with 9 [00:03:18]New connection [00:03:18]New thread 3067133284 created [00:03:18]Thread 3067276644 joined [00:03:18]Waiting for new connection... [00:03:18] Sock 9.Parse request [00:03:18]Sock 9.Check first char [00:03:18]Sock 9.First char is OK [00:03:18]request: POST /json_proto HTTP/1.0 [00:03:18]Method: POST [00:03:18]URL: /json_proto [00:03:18]Method is POST - this is cgi request [00:03:18]url: /json_proto [00:03:18]query_string will be loaded in cgi processing [00:03:18]execute_cgi json_proto POST (null) [00:03:18]execute_cgi path=json_proto method=POST [00:03:18]POST find Content-Length [00:03:18]Host: 172.17.96.67:8080 [00:03:18]Content-Length: 331 [00:03:18]Content-Type: application/json [00:03:18] [00:03:18]POST finish read [00:03:18]Found Content-Length = 331 [00:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:18]execute_script... [00:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:18]POST & json_proto [00:03:18]process_json_proto [00:03:18]json parsed OK: [00:03:18]protocol is kg_v1.0 [00:03:18]action value=get_value [00:03:18]process_action get_value [00:03:18]cmd_get_value [00:03:18]process_action get_value done [00:03:18]requested_data is exist [00:03:18]produce_requested_data [00:03:18]requested_item fm.sale.total is exist - process it [00:03:18]SAM_PROTO_GetFMData [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 13 03 00 [00:03:18]Write to MH i2c: E2 08 00 1D 15 80 13 03 00 00 00 00 00 B1 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 1D 15 00 BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 A3 [00:03:18]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 7F C9 01 00 69 04 A3 00 6F 04 04 00 7E C9 01 00 B1 04 05 00 F1 52 39 AA 01 70 04 05 00 CC 92 A8 88 01 72 04 04 00 25 C0 90 21 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 DF FA 48 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 00 C6 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 91 00 6F 04 04 00 01 00 00 00 B1 04 01 00 64 70 04 01 00 64 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 17 00 00 [00:03:18]Write to MH i2c: E2 08 00 1E 15 80 17 00 00 00 00 00 00 B3 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 1E 15 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 5C [00:03:18]RAPDU: 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 17 00 00 [00:03:18]Write to MH i2c: E2 08 00 1F 15 80 17 00 00 00 00 00 00 B4 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 1F 15 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 E0 [00:03:19]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 20 15 80 17 00 00 00 00 00 00 B5 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 20 15 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 2D [00:03:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 21 15 80 17 00 00 00 00 00 00 B6 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 D7 00 [00:03:19]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 D7 00 21 15 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [00:03:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:20]wFMCommunicate OK [00:03:20]SAM_PROTO_GetFMData done [00:03:20]requested_item fm.sale_refund.total is exist - process it [00:03:20]requested_item fm.buy.total is exist - process it [00:03:20]requested_item shift.sale.total is exist - process it [00:03:20]SAM_PROTO_GetShiftData [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 13 02 00 [00:03:20]Write to MH i2c: E2 08 00 22 15 80 13 02 00 00 00 00 00 B5 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 22 15 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 28 [00:03:20]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:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 23 15 80 17 00 00 00 00 00 00 B8 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 23 15 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 C0 [00:03:21]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:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 24 15 80 17 00 00 00 00 00 00 B9 [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 24 15 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 8B [00:03:21]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:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 25 15 80 17 00 00 00 00 00 00 BA [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 25 15 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 2C [00:03:22]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:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=4 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 17 00 00 [00:03:22]Write to MH i2c: E2 08 00 26 15 80 17 00 00 00 00 00 00 BB [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 BD 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 BD 00 26 15 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 A1 [00:03:22]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:03:22]wFMCommunicate OK [00:03:22]SAM_PROTO_GetShiftData done [00:03:22]requested_item shift.sale.total_cash is exist - process it [00:03:22]requested_item shift.sale_refund.total is exist - process it [00:03:22]requested_item shift.sale_refund.total_cash is exist - process it [00:03:22]requested_item shift.buy.total is exist - process it [00:03:22]requested_item shift.buy.total_cash is exist - process it [00:03:22]produce_requested_data done [00:03:22]produce_requested_data return {"fm.sale.total":71508508.01,"fm.sale_refund.total":1.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:03:22]process_action_free get_value [00:03:22]json_value_free [00:03:22]json_value_free done [00:03:22]process_json_proto returns [00:03:22]Send response to host [00:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71508508.01,"fm.sale_refund.total":1.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:03:22]free response buf [00:03:22]execute_script done [00:03:22]execute_script returns [00:03:22]free content buf [00:03:22]Sock 9.Close socket [00:03:22]Sock 9.Thread stoped [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00: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:55]ConnectInit Can't connect to host [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40: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:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:07]accept exits with 7 [00:55:07]New connection [00:55:07]New thread 3067276644 created [00:55:07]Thread 3067133284 joined [00:55:07]Waiting for new connection... [00:55:07] Sock 7.Parse request [00:55:07]Sock 7.Check first char [00:55:07]Sock 7.First char is OK [00:55:07]request: POST /json_proto HTTP/1.0 [00:55:07]Method: POST [00:55:07]URL: /json_proto [00:55:07]Method is POST - this is cgi request [00:55:07]url: /json_proto [00:55:07]query_string will be loaded in cgi processing [00:55:07]execute_cgi json_proto POST (null) [00:55:07]execute_cgi path=json_proto method=POST [00:55:07]POST find Content-Length [00:55:07]Host: 172.17.96.67:8080 [00:55:07]Content-Length: 769 [00:55:07]Content-Type: application/json [00:55:07] [00:55:07]POST finish read [00:55:07]Found Content-Length = 769 [00:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:07]execute_script... [00:55: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)246011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:07]POST & json_proto [00:55:07]process_json_proto [00:55:07]json parsed OK: [00:55:07]protocol is kg_v1.0 [00:55:07]action value=close_receipt [00:55:07]process_action close_receipt [00:55:07]cmd_close_receipt [00:55:07]MH_GetDate [00:55:07]Write to MH i2c: F0 00 00 27 15 2B [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: F0 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: F0 09 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: F0 09 00 27 15 00 6D D5 22 67 47 6C 1F 67 38 [00:55:07]GetLastDocTimeStamp 1730332995 [00:55:07]current date 1730336109 [00:55:07]FM_GetShiftState [00:55:07]SAM_PROTO_GetShiftState [00:55:07]wFMCommunicate request_size=4 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 13 01 00 [00:55:07]Write to MH i2c: E2 08 00 28 15 80 13 01 00 00 00 00 00 BA [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 0E 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 0E 00 28 15 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 5B [00:55:07]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [00:55:07]wFMCommunicate OK [00:55:07]SAM_PROTO_GetShiftState done [00:55:07]FM_GetShiftState done [00:55:07]opened in 1730332995 [00:55:07]opened+sec_in_day 1730419395 [00:55:07]quantity*price = 150056 [00:55:07]sum+1 = 150058 [00:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 1 31.10.2024 00:55 Смена: 546 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871767 ФД: 118212 ФПД: 118995931610675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T005509&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118212&fm=118995931610675&tin=02508201610067®Number=0000000000091782&sum=150057 [00:55:08]StoreToDocumentArchive [00:55:08]shift 546 fd 118212 [00:55:08]save to /storage/0546/doc_00118212 [00:55:08]save last doc name /storage/0546/doc_00118212 to /storage/kkm_last_doc_name [00:55:08]save OK [00:55:08]Clear old archive folders... [00:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:08]tlvbuf is 0021E6E0 [00:55:08]SAM_PROTO_ClearQueue [00:55:08]wFMCommunicate request_size=4 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 09 00 00 [00:55:08]Write to MH i2c: E2 08 00 35 15 80 09 00 00 00 00 00 00 BC [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 35 15 00 90 00 BE [00:55:08]RAPDU: 90 00 [00:55:08]wFMCommunicate OK [00:55:08]SAM_PROTO_ClearQueue done [00:55:08]KKMCreateOFDPacket [00:55:08]OFDProtocolAddRootSTLVToBuf [00:55:08]FM_MakeSignedData [00:55:08]FM_MakeSignedData [00:55:08]SAM_PROTO_SignData [00:55:08]wFMCommunicate request_size=4 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 0D 01 02 [00:55:08]Write to MH i2c: E2 08 00 36 15 80 0D 01 02 00 00 00 00 C4 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 36 15 00 90 00 BF [00:55:08]RAPDU: 90 00 [00:55:08]wFMCommunicate OK [00:55:08]wFMCommunicate request_size=255 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D D5 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CD 01 00 35 04 06 00 6C [00:55:08]Write to MH i2c: E2 02 01 37 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D D5 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CD 01 00 35 04 06 00 6C 00 00 01 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 37 15 00 90 00 C0 [00:55:08]RAPDU: 90 00 [00:55:08]wFMCommunicate OK [00:55:08]wFMCommunicate request_size=10 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 0D 02 02 05 39 E6 3B BE 33 [00:55:08]Write to MH i2c: E2 0D 00 38 15 80 0D 02 02 05 00 39 E6 3B BE 33 00 00 1C [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 38 15 00 90 00 C1 [00:55:08]RAPDU: 90 00 [00:55:08]wFMCommunicate OK [00:55:08]wFMCommunicate request_size=4 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 0D 03 02 [00:55:08]Write to MH i2c: E2 08 00 39 15 80 0D 03 02 00 00 00 00 C9 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 0B 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 0B 00 39 15 00 2E EA C6 04 94 D3 55 79 90 00 E1 [00:55:08]RAPDU: 2E EA C6 04 94 D3 55 79 90 00 [00:55:08]wFMCommunicate OK [00:55:08]SAM_PROTO_SignData done [00:55:08]FM_MakeSignedData done [00:55:08]CreateOFDProtocolMessage [00:55:08]wFMCommunicate request_size=4 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 11 00 00 [00:55:08]Write to MH i2c: E2 08 00 3A 15 80 11 00 00 00 00 00 00 C9 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 17 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 17 00 3A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 20 [00:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:55:08]wFMCommunicate OK [00:55:08]CreateOFDProtocolMessage done [00:55:08]OFDSenderStorePacket 118212 [00:55:08]StoreOFDPacket docnum=118212 [00:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 73 69 07 01 BA FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D D5 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CD 01 00 35 04 06 00 6C 39 E6 3B BE 33 2E EA C6 04 94 D3 55 79 [00:55:08]CheckFolder [00:55:08]dirname=/storage/ofd_packets [00:55:08]CheckFolder done [00:55:08]ProducePacketName [00:55:08]name=ofd_packets/00118212 [00:55:08]NVStorageSaveData ofd_packets/00118212 [00:55:08]File name is /storage/ofd_packets/00118212 [00:55:08]Write 301 bytes [00:55:08]NVStorageSaveData done [00:55:08]OFDSenderStorePacket done [00:55:08]KKMCreateOFDPacket done [00:55:08]NVStorageSaveData kkm_last_timestamp [00:55:08]File name is /storage/kkm_last_timestamp [00:55:08]Write 4 bytes [00:55:08]NVStorageSaveData done [00:55:08]ExternCall_PrintAddStr [00:55:08]wPrintStart [00:55:08]Write to MH i2c: 01 00 00 3B 15 50 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 07 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 07 00 3B 15 00 00 00 00 00 FF 0F 65 [00:55:08]RasterBufferAndPrint [00:55:08]line Счет N : (1)246011 [00:55:08]line ИНН: 02508201610067 [00:55:08]line Контрольно-Кассовый Чек [00:55:08]line ПРОДАЖА [00:55:08]line ТРК (МРК, ГНК) : 21 [00:55:08]line Товар: 2710124130 [00:55:08]line Аи-92-К-2 [00:55:08]line 22.430 * 66.90 [00:55:08]line = 1500.57 [00:55:08]line НДС 12% НСП 1% [00:55:08]line > о реализуемом товаре [00:55:08]line ИТОГО: 1500.57 [00:55:08]line НСП 1% : 13.28 [00:55:08]line НДС 12% : 159.35 [00:55:08]line Наличными: 0.00 [00:55:08]line Безнал.: 1500.57 [00:55:08]line Место: АЗС № 173 "Партнер Нефть" [00:55:08]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:55:08]line СНО: Общий режим [00:55:08]line Чек 1 31.10.2024 00:55 [00:55:08]line Смена: 546 ФФД: 1.0 [00:55:08]line ЗНМ: 0300000115 [00:55:08]line РНМ: 0000000000091782 [00:55:08]line Версия ККМ: 001 [00:55:08]line Платежная система: Mbank [00:55:08]line ФМ: 0000000000871767 [00:55:08]line ФД: 118212 [00:55:08]line ФПД: 118995931610675 [00:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T005509&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118212&fm=118995931610675&tin=02508201610067®Number=0000000000091782&sum=150057 [00:55:09]OFD Sender: Processing packet 118212 [packets to send 77, broken 76] [00:55:09]ProducePacketName [00:55:09]name=ofd_packets/00118212 [00:55:09]OFD Sender: To server: pG, [00:55:09]CommunicateWithHost lk.salyk.kg:30040 [00:55:09]ConnectInit lk.salyk.kg [00:55:09]written 0, free lines is 4095 [00:55:09]Connected sock=10 [00:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 73 69 07 01 BA FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D D5 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C4 CD 01 00 35 04 06 00 6C 39 E6 3B BE 33 2E EA C6 04 94 D3 55 79 [00:55: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 36 37 4F 00 00 00 1D 8C 47 00 FB 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 36 37 10 04 04 00 C4 CD 01 00 F4 03 04 00 23 81 22 67 B6 04 01 00 00 0C EF 72 04 90 2F D3 43 [00:55:09]CommunicateWithHost err = 0 [00:55:09]CheckOFDResponse [00:55:09]1017 (14) - 77093643461234 [00:55:09]1041 (16) - 0000000000871767 [00:55:09]1040 (4) - 118212 [00:55:09]1012 (4) - 30.10.2024 18:55 [00:55:09]1206 (1) - 0 [00:55:09]OFD Sender: Remove packet 118212 [00:55:09]ProducePacketName [00:55:09]name=ofd_packets/00118212 [00:55:09]NVStorageDeleteData [00:55:09]Write to MH i2c: 01 00 00 63 15 78 [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: 01 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: 01 07 00 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: 01 07 00 63 15 00 00 00 00 00 DC 0C 67 [00:55:09]RasterBufferAndPrint [00:55:09]line [00:55:09]line [00:55:09]line [00:55:09]line [00:55:09]line [00:55:09]written 0, free lines is 3298 [00:55:09]MH_Cut [00:55:09]Write to MH i2c: D1 01 00 6A 15 01 51 [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: D1 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: D1 01 00 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: D1 01 00 6A 15 00 50 [00:55:09]Write to MH i2c: 01 00 00 6B 15 80 [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:09]OFD Sender: No OFD packet to send [00:55:10]*** Cut start [00:55:10]*** Purtial cut [00:55:10]*** Stage 1: CUTSNS_PIN = 1 [00:55:10]Read from MH i2c: 01 [00:55:10]MH_I2C_Read... [00:55:10]*** Stop cut motor [00:55:10]*** Cut end [00:55:10]Read from MH i2c: 01 07 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: 01 07 00 6B 15 00 00 00 00 00 FF 0F 95 [00:55:10]process_action close_receipt done [00:55:10]requested_data is exist [00:55:10]produce_requested_data [00:55:10]requested_item fm.sn is exist - process it [00:55:10]wFMCommunicate request_size=4 [00:55:10]MH_SAM_APDU [00:55:10]CAPDU: 80 11 00 00 [00:55:10]Write to MH i2c: E2 08 00 6C 15 80 11 00 00 00 00 00 00 FB [00:55:10]Write i2c OK [00:55:10]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 17 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 17 00 6C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 52 [00:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:55:10]wFMCommunicate OK [00:55:10]requested_item fd.num is exist - process it [00:55:10]SAM_PROTO_GetFieldsCounters [00:55:10]wFMCommunicate request_size=4 [00:55:10]MH_SAM_APDU [00:55:10]CAPDU: 80 13 00 00 [00:55:10]Write to MH i2c: E2 08 00 6D 15 80 13 00 00 00 00 00 00 FE [00:55:10]Write i2c OK [00:55:10]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 62 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 62 00 6D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C4 CD 01 00 0E 04 04 00 22 02 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 DE [00:55:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C4 CD 01 00 0E 04 04 00 22 02 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:55:10]wFMCommunicate OK [00:55:10]SAM_PROTO_GetFieldsCounters done [00:55:10]requested_item shift.num is exist - process it [00:55:10]requested_item shift.opened is exist - process it [00:55:10]req_shift_opened [00:55:10]FM_GetShiftState [00:55:10]SAM_PROTO_GetShiftState [00:55:10]wFMCommunicate request_size=4 [00:55:10]MH_SAM_APDU [00:55:10]CAPDU: 80 13 01 00 [00:55:10]Write to MH i2c: E2 08 00 6E 15 80 13 01 00 00 00 00 00 00 [00:55:10]Write i2c OK [00:55:10]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 0E 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 0E 00 6E 15 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 A1 [00:55:10]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [00:55:10]wFMCommunicate OK [00:55:10]SAM_PROTO_GetShiftState done [00:55:10]FM_GetShiftState done [00:55:10]req_shift_opened done [00:55:10]requested_item shift.open_date is exist - process it [00:55:10]req_shift_open_date [00:55:10]req_shift_open_date done [00:55:10]produce_requested_data done [00:55:10]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118212,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995} [00:55:10]process_action_free close_receipt [00:55:10]json_value_free [00:55:10]json_value_free done [00:55:10]process_json_proto returns [00:55:10]Send response to host [00:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118212,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995}}} [00:55:10]free response buf [00:55:10]execute_script done [00:55:10]execute_script returns [00:55:10]free content buf [00:55:10]Sock 7.Close socket [00:55:10]Sock 7.Thread stoped [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:45]int [00:55:45]Write to MH i2c: 01 00 00 6F 15 84 [00:55:45]*** FLAG_PRN_PAP1 set [00:55:45]Write i2c OK [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 07 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 07 00 6F 15 00 01 00 00 00 FF 0F 9A [00:55:45]state=0 [00:55:45]No paper [00:55:45]int [00:55:45]Write to MH i2c: 01 00 00 70 15 85 [00:55:45]*** FLAG_PRN_PAP2 set [00:55:45]Write i2c OK [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 07 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 07 00 70 15 00 03 00 00 00 FF 0F 9D [00:55:45]state=0 [00:55:45]No paper [00:55:45]Cover opened [00:55:49]OFD Sender: No OFD packet to send [00:55:50]Write to MH i2c: 01 00 00 71 15 86 [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: 01 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: 01 07 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: 01 07 00 71 15 00 03 00 00 00 FF 0F 9E [00:55:50]state=3 [00:55:50]No paper [00:55:50]Cover opened [00:55:55]OFD Sender: No OFD packet to send [00:55:55]Write to MH i2c: 01 00 00 72 15 87 [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: 01 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: 01 07 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: 01 07 00 72 15 00 03 00 00 00 FF 0F 9F [00:55:55]state=3 [00:55:55]No paper [00:55:55]Cover opened [00:56:00]OFD Sender: No OFD packet to send [00:56:00]Write to MH i2c: 01 00 00 73 15 88 [00:56:00]Write i2c OK [00:56:00]MH_I2C_Read... [00:56:00]Read from MH i2c: 01 [00:56:00]MH_I2C_Read... [00:56:00]Read from MH i2c: 01 07 00 [00:56:00]MH_I2C_Read... [00:56:00]Read from MH i2c: 01 07 00 73 15 00 03 00 00 00 FF 0F A0 [00:56:00]state=3 [00:56:00]No paper [00:56:00]Cover opened [00:56:05]OFD Sender: No OFD packet to send [00:56:05]Write to MH i2c: 01 00 00 74 15 89 [00:56:05]Write i2c OK [00:56:05]MH_I2C_Read... [00:56:05]Read from MH i2c: 01 [00:56:05]MH_I2C_Read... [00:56:05]Read from MH i2c: 01 07 00 [00:56:05]MH_I2C_Read... [00:56:05]Read from MH i2c: 01 07 00 74 15 00 03 00 00 00 FF 0F A1 [00:56:05]state=3 [00:56:05]No paper [00:56:05]Cover opened [00:56:10]OFD Sender: No OFD packet to send [00:56:10]Write to MH i2c: 01 00 00 75 15 8A [00:56:10]Write i2c OK [00:56:10]MH_I2C_Read... [00:56:10]Read from MH i2c: 01 [00:56:10]MH_I2C_Read... [00:56:10]Read from MH i2c: 01 07 00 [00:56:10]MH_I2C_Read... [00:56:10]Read from MH i2c: 01 07 00 75 15 00 03 00 00 00 FF 0F A2 [00:56:10]state=3 [00:56:10]No paper [00:56:10]Cover opened [00:56:15]OFD Sender: No OFD packet to send [00:56:15]Write to MH i2c: 01 00 00 76 15 8B [00:56:15]Write i2c OK [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: 01 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: 01 07 00 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: 01 07 00 76 15 00 03 00 00 00 FF 0F A3 [00:56:15]state=3 [00:56:15]No paper [00:56:15]Cover opened [00:56:20]OFD Sender: No OFD packet to send [00:56:20]Write to MH i2c: 01 00 00 77 15 8C [00:56:20]Write i2c OK [00:56:20]MH_I2C_Read... [00:56:20]Read from MH i2c: 01 [00:56:20]MH_I2C_Read... [00:56:20]Read from MH i2c: 01 07 00 [00:56:20]MH_I2C_Read... [00:56:20]Read from MH i2c: 01 07 00 77 15 00 03 00 00 00 FF 0F A4 [00:56:20]state=3 [00:56:20]No paper [00:56:20]Cover opened [00:56:25]OFD Sender: No OFD packet to send [00:56:25]Write to MH i2c: 01 00 00 78 15 8D [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: 01 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: 01 07 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: 01 07 00 78 15 00 03 00 00 00 FF 0F A5 [00:56:25]state=3 [00:56:25]No paper [00:56:25]Cover opened [00:56:30]OFD Sender: No OFD packet to send [00:56:30]Write to MH i2c: 01 00 00 79 15 8E [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: 01 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: 01 07 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: 01 07 00 79 15 00 03 00 00 00 FF 0F A6 [00:56:30]state=3 [00:56:30]No paper [00:56:30]Cover opened [00:56:35]OFD Sender: No OFD packet to send [00:56:35]Write to MH i2c: 01 00 00 7A 15 8F [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 07 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 07 00 7A 15 00 03 00 00 00 FF 0F A7 [00:56:35]state=3 [00:56:35]No paper [00:56:35]Cover opened [00:56:40]OFD Sender: No OFD packet to send [00:56:40]Write to MH i2c: 01 00 00 7B 15 90 [00:56:40]Write i2c OK [00:56:40]MH_I2C_Read... [00:56:40]Read from MH i2c: 01 [00:56:40]MH_I2C_Read... [00:56:40]Read from MH i2c: 01 07 00 [00:56:40]MH_I2C_Read... [00:56:40]Read from MH i2c: 01 07 00 7B 15 00 03 00 00 00 FF 0F A8 [00:56:40]state=3 [00:56:40]No paper [00:56:40]Cover opened [00:56:45]OFD Sender: No OFD packet to send [00:56:45]Write to MH i2c: 01 00 00 7C 15 91 [00:56:45]Write i2c OK [00:56:45]MH_I2C_Read... [00:56:45]Read from MH i2c: 01 [00:56:45]MH_I2C_Read... [00:56:45]Read from MH i2c: 01 07 00 [00:56:45]MH_I2C_Read... [00:56:45]Read from MH i2c: 01 07 00 7C 15 00 03 00 00 00 FF 0F A9 [00:56:45]state=3 [00:56:45]No paper [00:56:45]Cover opened [00:56:50]OFD Sender: No OFD packet to send [00:56:50]Write to MH i2c: 01 00 00 7D 15 92 [00:56:50]Write i2c OK [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: 01 [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: 01 07 00 [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: 01 07 00 7D 15 00 03 00 00 00 FF 0F AA [00:56:50]state=3 [00:56:50]No paper [00:56:50]Cover opened [00:56:55]OFD Sender: No OFD packet to send [00:56:55]Write to MH i2c: 01 00 00 7E 15 93 [00:56:55]Write i2c OK [00:56:55]MH_I2C_Read... [00:56:55]Read from MH i2c: 01 [00:56:55]MH_I2C_Read... [00:56:55]Read from MH i2c: 01 07 00 [00:56:55]MH_I2C_Read... [00:56:55]Read from MH i2c: 01 07 00 7E 15 00 03 00 00 00 FF 0F AB [00:56:55]state=3 [00:56:55]No paper [00:56:55]Cover opened [00:57:00]OFD Sender: No OFD packet to send [00:57:00]Write to MH i2c: 01 00 00 7F 15 94 [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 07 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 07 00 7F 15 00 03 00 00 00 FF 0F AC [00:57:00]state=3 [00:57:00]No paper [00:57:00]Cover opened [00:57:05]OFD Sender: No OFD packet to send [00:57:05]Write to MH i2c: 01 00 00 80 15 95 [00:57:05]Write i2c OK [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: 01 [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: 01 07 00 [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: 01 07 00 80 15 00 03 00 00 00 FF 0F AD [00:57:05]state=3 [00:57:05]No paper [00:57:05]Cover opened [00:57:10]OFD Sender: No OFD packet to send [00:57:10]Write to MH i2c: 01 00 00 81 15 96 [00:57:10]Write i2c OK [00:57:10]MH_I2C_Read... [00:57:10]Read from MH i2c: 01 [00:57:10]MH_I2C_Read... [00:57:10]Read from MH i2c: 01 07 00 [00:57:10]MH_I2C_Read... [00:57:10]Read from MH i2c: 01 07 00 81 15 00 03 00 00 00 FF 0F AE [00:57:10]state=3 [00:57:10]No paper [00:57:10]Cover opened [00:57:15]OFD Sender: No OFD packet to send [00:57:15]int [00:57:15]Write to MH i2c: 01 00 00 82 15 97 [00:57:15]Write i2c OK [00:57:15]MH_I2C_Read... [00:57:15]Read from MH i2c: 01 [00:57:15]MH_I2C_Read... [00:57:15]*** FLAG_PRN_PAP2 reset [00:57:15]*** FLAG_PRN_PAP1 reset [00:57:15]Read from MH i2c: 01 07 00 [00:57:15]MH_I2C_Read... [00:57:15]Read from MH i2c: 01 07 00 82 15 00 00 00 00 00 FF 0F AC [00:57:15]state=3 [00:57:15]Cover closed [00:57:17]int [00:57:17]Write to MH i2c: 01 00 00 83 15 98 [00:57:17]*** FLAG_PRN_KEY set [00:57:17]Write i2c OK [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: 01 [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: 01 07 00 [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: 01 07 00 83 15 00 08 00 00 00 FF 0F B5 [00:57:17]state=0 [00:57:17]Key pressed [00:57:17]Feed [00:57:17]Write to MH i2c: D8 00 00 84 15 70 [00:57:17]Write i2c OK [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: D8 [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: D8 01 00 [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: D8 01 00 84 15 00 71 [00:57:17]int [00:57:17]Write to MH i2c: 01 00 00 85 15 9A [00:57:17]Write i2c OK [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: 01 [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: 01 07 00 [00:57:17]MH_I2C_Read... [00:57:17]Read from MH i2c: 01 07 00 85 15 00 48 00 00 00 3C 00 25 [00:57:17]state=2 [00:57:17]Key pressed [00:57:18]int [00:57:18]Write to MH i2c: 01 00 00 86 15 9B [00:57:18]*** FLAG_PRN_KEY reset [00:57:18]Write i2c OK [00:57:18]MH_I2C_Read... [00:57:18]Read from MH i2c: 01 [00:57:18]MH_I2C_Read... [00:57:18]Read from MH i2c: 01 07 00 [00:57:18]MH_I2C_Read... [00:57:18]Read from MH i2c: 01 07 00 86 15 00 00 00 00 00 F7 0F A8 [00:57:18]state=2 [00:57:18]Stop feed [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:17]accept exits with 9 [00:59:17]New connection [00:59:17]New thread 3067133284 created [00:59:17]Thread 3067276644 joined [00:59:17]Waiting for new connection... [00:59:17] Sock 9.Parse request [00:59:17]Sock 9.Check first char [00:59:17]Sock 9.First char is OK [00:59:17]request: POST /json_proto HTTP/1.0 [00:59:17]Method: POST [00:59:17]URL: /json_proto [00:59:17]Method is POST - this is cgi request [00:59:17]url: /json_proto [00:59:17]query_string will be loaded in cgi processing [00:59:17]execute_cgi json_proto POST (null) [00:59:17]execute_cgi path=json_proto method=POST [00:59:17]POST find Content-Length [00:59:17]Host: 172.17.96.67:8080 [00:59:17]Content-Length: 677 [00:59:17]Content-Type: application/json [00:59:17] [00:59:17]POST finish read [00:59:17]Found Content-Length = 677 [00:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:59:17]execute_script... [00:59: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)246012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:59:17]POST & json_proto [00:59:17]process_json_proto [00:59:17]json parsed OK: [00:59:17]protocol is kg_v1.0 [00:59:17]action value=close_receipt [00:59:17]process_action close_receipt [00:59:17]cmd_close_receipt [00:59:17]MH_GetDate [00:59:17]Write to MH i2c: F0 00 00 87 15 8B [00:59:17]Write i2c OK [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: F0 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: F0 09 00 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: F0 09 00 87 15 00 67 D6 22 67 47 6C 1F 67 93 [00:59:17]GetLastDocTimeStamp 1730336109 [00:59:17]current date 1730336359 [00:59:17]FM_GetShiftState [00:59:17]SAM_PROTO_GetShiftState [00:59:17]wFMCommunicate request_size=4 [00:59:17]MH_SAM_APDU [00:59:17]CAPDU: 80 13 01 00 [00:59:17]Write to MH i2c: E2 08 00 88 15 80 13 01 00 00 00 00 00 1A [00:59:17]Write i2c OK [00:59:17]MH_I2C_Read... [00:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:17]Read from MH i2c: E2 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: E2 0E 00 [00:59:17]MH_I2C_Read... [00:59:17]Read from MH i2c: E2 0E 00 88 15 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 BB [00:59:17]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [00:59:17]wFMCommunicate OK [00:59:17]SAM_PROTO_GetShiftState done [00:59:17]FM_GetShiftState done [00:59:17]opened in 1730332995 [00:59:17]opened+sec_in_day 1730419395 [00:59:17]quantity*price = 20003 [00:59:17]sum+1 = 20004 [00:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 2 31.10.2024 00:59 Смена: 546 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118213 ФПД: 114879393615933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T005919&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118213&fm=114879393615933&tin=02508201610067®Number=0000000000091782&sum=20000 [00:59:18]StoreToDocumentArchive [00:59:18]shift 546 fd 118213 [00:59:18]save to /storage/0546/doc_00118213 [00:59:18]save last doc name /storage/0546/doc_00118213 to /storage/kkm_last_doc_name [00:59:18]save OK [00:59:18]Clear old archive folders... [00:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:59:18]tlvbuf is 0021E5D0 [00:59:18]SAM_PROTO_ClearQueue [00:59:18]wFMCommunicate request_size=4 [00:59:18]MH_SAM_APDU [00:59:18]CAPDU: 80 09 00 00 [00:59:18]Write to MH i2c: E2 08 00 95 15 80 09 00 00 00 00 00 00 1C [00:59:18]Write i2c OK [00:59:18]MH_I2C_Read... [00:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:18]Read from MH i2c: E2 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [00:59:18]RAPDU: 90 00 [00:59:18]wFMCommunicate OK [00:59:18]SAM_PROTO_ClearQueue done [00:59:18]KKMCreateOFDPacket [00:59:18]OFDProtocolAddRootSTLVToBuf [00:59:18]FM_MakeSignedData [00:59:18]FM_MakeSignedData [00:59:18]SAM_PROTO_SignData [00:59:18]wFMCommunicate request_size=4 [00:59:18]MH_SAM_APDU [00:59:18]CAPDU: 80 0D 01 02 [00:59:18]Write to MH i2c: E2 08 00 96 15 80 0D 01 02 00 00 00 00 24 [00:59:18]Write i2c OK [00:59:18]MH_I2C_Read... [00:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:18]Read from MH i2c: E2 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [00:59:18]RAPDU: 90 00 [00:59:18]wFMCommunicate OK [00:59:18]wFMCommunicate request_size=255 [00:59:18]MH_SAM_APDU [00:59:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 02 00 00 00 F4 03 04 00 67 D6 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CD 01 00 35 04 06 00 68 [00:59:18]Write to MH i2c: E2 02 01 97 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 67 D6 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CD 01 00 35 04 06 00 68 00 00 5F [00:59:18]Write i2c OK [00:59:18]MH_I2C_Read... [00:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:18]Read from MH i2c: E2 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [00:59:18]RAPDU: 90 00 [00:59:18]wFMCommunicate OK [00:59:18]wFMCommunicate request_size=10 [00:59:18]MH_SAM_APDU [00:59:18]CAPDU: 80 0D 02 02 05 7B 71 72 D0 3D [00:59:18]Write to MH i2c: E2 0D 00 98 15 80 0D 02 02 05 00 7B 71 72 D0 3D 00 00 9C [00:59:18]Write i2c OK [00:59:18]MH_I2C_Read... [00:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:18]Read from MH i2c: E2 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [00:59:18]RAPDU: 90 00 [00:59:18]wFMCommunicate OK [00:59:18]wFMCommunicate request_size=4 [00:59:18]MH_SAM_APDU [00:59:18]CAPDU: 80 0D 03 02 [00:59:18]Write to MH i2c: E2 08 00 99 15 80 0D 03 02 00 00 00 00 29 [00:59:18]Write i2c OK [00:59:18]MH_I2C_Read... [00:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:18]Read from MH i2c: E2 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 0B 00 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 0B 00 99 15 00 25 5A DB DB 2B 49 B7 5B 90 00 E5 [00:59:18]RAPDU: 25 5A DB DB 2B 49 B7 5B 90 00 [00:59:18]wFMCommunicate OK [00:59:18]SAM_PROTO_SignData done [00:59:18]FM_MakeSignedData done [00:59:18]CreateOFDProtocolMessage [00:59:18]wFMCommunicate request_size=4 [00:59:18]MH_SAM_APDU [00:59:18]CAPDU: 80 11 00 00 [00:59:18]Write to MH i2c: E2 08 00 9A 15 80 11 00 00 00 00 00 00 29 [00:59:18]Write i2c OK [00:59:18]MH_I2C_Read... [00:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:18]Read from MH i2c: E2 [00:59:18]MH_I2C_Read... [00:59:18]Read from MH i2c: E2 17 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: E2 17 00 9A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 80 [00:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:59:19]wFMCommunicate OK [00:59:19]CreateOFDProtocolMessage done [00:59:19]OFDSenderStorePacket 118213 [00:59:19]StoreOFDPacket docnum=118213 [00:59:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 BB 67 07 01 65 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 02 00 00 00 F4 03 04 00 67 D6 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CD 01 00 35 04 06 00 68 7B 71 72 D0 3D 25 5A DB DB 2B 49 B7 5B [00:59:19]CheckFolder [00:59:19]dirname=/storage/ofd_packets [00:59:19]CheckFolder done [00:59:19]ProducePacketName [00:59:19]name=ofd_packets/00118213 [00:59:19]NVStorageSaveData ofd_packets/00118213 [00:59:19]File name is /storage/ofd_packets/00118213 [00:59:19]Write 301 bytes [00:59:19]NVStorageSaveData done [00:59:19]OFDSenderStorePacket done [00:59:19]KKMCreateOFDPacket done [00:59:19]NVStorageSaveData kkm_last_timestamp [00:59:19]File name is /storage/kkm_last_timestamp [00:59:19]Write 4 bytes [00:59:19]NVStorageSaveData done [00:59:19]ExternCall_PrintAddStr [00:59:19]wPrintStart [00:59:19]Write to MH i2c: 01 00 00 9B 15 B0 [00:59:19]Write i2c OK [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: 01 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: 01 07 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: 01 07 00 9B 15 00 00 00 00 00 FF 0F C5 [00:59:19]RasterBufferAndPrint [00:59:19]line Счет N : (1)246012 [00:59:19]line ИНН: 02508201610067 [00:59:19]line Контрольно-Кассовый Чек [00:59:19]line ПРОДАЖА [00:59:19]line ТРК (МРК, ГНК) : 11 [00:59:19]line Товар: 2710124130 [00:59:19]line Аи-92-К-2 [00:59:19]line 2.990 * 66.90 [00:59:19]line = 200.03 [00:59:19]line НДС 12% НСП 1% [00:59:19]line > о реализуемом товаре [00:59:19]line ОКРУГЛЕНИЕ: -0.03 [00:59:19]line ИТОГО: 200.00 [00:59:19]line Внесено: 200.00 [00:59:19]line СДАЧА: 0.00 [00:59:19]line НСП 1% : 1.77 [00:59:19]line НДС 12% : 21.24 [00:59:19]line Наличными: 200.00 [00:59:19]line Безнал.: 0.00 [00:59:19]line Место: АЗС № 173 "Партнер Нефть" [00:59:19]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [00:59:19]line СНО: Общий режим [00:59:19]line Чек 2 31.10.2024 00:59 [00:59:19]line Смена: 546 ФФД: 1.0 [00:59:19]line ЗНМ: 0300000115 [00:59:19]line РНМ: 0000000000091782 [00:59:19]line Версия ККМ: 001 [00:59:19]line ФМ: 0000000000871767 [00:59:19]line ФД: 118213 [00:59:19]line ФПД: 114879393615933 [00:59:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T005919&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118213&fm=114879393615933&tin=02508201610067®Number=0000000000091782&sum=20000 [00:59:19]written 0, free lines is 4095 [00:59:19]OFD Sender: Processing packet 118213 [packets to send 77, broken 76] [00:59:19]ProducePacketName [00:59:19]name=ofd_packets/00118213 [00:59:19]OFD Sender: To server: pG, [00:59:19]CommunicateWithHost lk.salyk.kg:30040 [00:59:19]ConnectInit lk.salyk.kg [00:59:19]Connected sock=10 [00:59: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 36 37 0F 01 00 00 BB 67 07 01 65 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 02 00 00 00 F4 03 04 00 67 D6 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C5 CD 01 00 35 04 06 00 68 7B 71 72 D0 3D 25 5A DB DB 2B 49 B7 5B [00:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 4F 00 00 00 4F A5 47 00 F5 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 36 37 10 04 04 00 C5 CD 01 00 F4 03 04 00 1D 82 22 67 B6 04 01 00 00 E6 ED 42 A4 ED 68 ED BE [00:59:19]CommunicateWithHost err = 0 [00:59:19]CheckOFDResponse [00:59:19]1017 (14) - 77093643461234 [00:59:19]1041 (16) - 0000000000871767 [00:59:19]1040 (4) - 118213 [00:59:19]1012 (4) - 30.10.2024 18:59 [00:59:19]1206 (1) - 0 [00:59:19]OFD Sender: Remove packet 118213 [00:59:19]ProducePacketName [00:59:19]name=ofd_packets/00118213 [00:59:19]NVStorageDeleteData [00:59:19]Write to MH i2c: 01 00 00 C5 15 DA [00:59:19]Write i2c OK [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: 01 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: 01 07 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: 01 07 00 C5 15 00 00 00 00 00 B8 0C A5 [00:59:19]RasterBufferAndPrint [00:59:19]line [00:59:19]line [00:59:19]line [00:59:19]line [00:59:19]line [00:59:19]written 0, free lines is 3262 [00:59:19]MH_Cut [00:59:19]Write to MH i2c: D1 01 00 CC 15 01 B3 [00:59:19]Write i2c OK [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: D1 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: D1 01 00 [00:59:19]MH_I2C_Read... [00:59:19]Read from MH i2c: D1 01 00 CC 15 00 B2 [00:59:19]Write to MH i2c: 01 00 00 CD 15 E2 [00:59:19]Write i2c OK [00:59:19]MH_I2C_Read... [00:59:20]OFD Sender: No OFD packet to send [00:59:20]*** Cut start [00:59:20]*** Purtial cut [00:59:20]*** Stage 1: CUTSNS_PIN = 1 [00:59:20]Read from MH i2c: 01 [00:59:20]MH_I2C_Read... [00:59:20]*** Stop cut motor [00:59:20]*** Cut end [00:59:20]Read from MH i2c: 01 07 00 [00:59:20]MH_I2C_Read... [00:59:20]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 FF 0F F7 [00:59:20]process_action close_receipt done [00:59:20]requested_data is exist [00:59:20]produce_requested_data [00:59:20]requested_item fm.sn is exist - process it [00:59:20]wFMCommunicate request_size=4 [00:59:20]MH_SAM_APDU [00:59:20]CAPDU: 80 11 00 00 [00:59:20]Write to MH i2c: E2 08 00 CE 15 80 11 00 00 00 00 00 00 5D [00:59:20]Write i2c OK [00:59:20]MH_I2C_Read... [00:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:20]Read from MH i2c: E2 [00:59:20]MH_I2C_Read... [00:59:20]Read from MH i2c: E2 17 00 [00:59:20]MH_I2C_Read... [00:59:20]Read from MH i2c: E2 17 00 CE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 B4 [00:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [00:59:20]wFMCommunicate OK [00:59:20]requested_item fd.num is exist - process it [00:59:20]SAM_PROTO_GetFieldsCounters [00:59:20]wFMCommunicate request_size=4 [00:59:20]MH_SAM_APDU [00:59:20]CAPDU: 80 13 00 00 [00:59:20]Write to MH i2c: E2 08 00 CF 15 80 13 00 00 00 00 00 00 60 [00:59:20]Write i2c OK [00:59:20]MH_I2C_Read... [00:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:21]Read from MH i2c: E2 [00:59:21]MH_I2C_Read... [00:59:21]Read from MH i2c: E2 62 00 [00:59:21]MH_I2C_Read... [00:59:21]Read from MH i2c: E2 62 00 CF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C5 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [00:59: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C5 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:59:21]wFMCommunicate OK [00:59:21]SAM_PROTO_GetFieldsCounters done [00:59:21]requested_item shift.num is exist - process it [00:59:21]requested_item shift.opened is exist - process it [00:59:21]req_shift_opened [00:59:21]FM_GetShiftState [00:59:21]SAM_PROTO_GetShiftState [00:59:21]wFMCommunicate request_size=4 [00:59:21]MH_SAM_APDU [00:59:21]CAPDU: 80 13 01 00 [00:59:21]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [00:59:21]Write i2c OK [00:59:21]MH_I2C_Read... [00:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:21]Read from MH i2c: E2 [00:59:21]MH_I2C_Read... [00:59:21]Read from MH i2c: E2 0E 00 [00:59:21]MH_I2C_Read... [00:59:21]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 03 [00:59:21]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [00:59:21]wFMCommunicate OK [00:59:21]SAM_PROTO_GetShiftState done [00:59:21]FM_GetShiftState done [00:59:21]req_shift_opened done [00:59:21]requested_item shift.open_date is exist - process it [00:59:21]req_shift_open_date [00:59:21]req_shift_open_date done [00:59:21]produce_requested_data done [00:59:21]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118213,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995} [00:59:21]process_action_free close_receipt [00:59:21]json_value_free [00:59:21]json_value_free done [00:59:21]process_json_proto returns [00:59:21]Send response to host [00:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118213,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995}}} [00:59:21]free response buf [00:59:21]execute_script done [00:59:21]execute_script returns [00:59:21]free content buf [00:59:21]Sock 9.Close socket [00:59:21]Sock 9.Thread stoped [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [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: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:27]ConnectInit Can't connect to host [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:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]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:52]accept exits with 7 [01:17:52]New connection [01:17:52]New thread 3067276644 created [01:17:52]Thread 3067133284 joined [01:17:52]Waiting for new connection... [01:17:52] Sock 7.Parse request [01:17:52]Sock 7.Check first char [01:17:52]Sock 7.First char is OK [01:17:52]request: POST /json_proto HTTP/1.0 [01:17:52]Method: POST [01:17:52]URL: /json_proto [01:17:52]Method is POST - this is cgi request [01:17:52]url: /json_proto [01:17:52]query_string will be loaded in cgi processing [01:17:52]execute_cgi json_proto POST (null) [01:17:52]execute_cgi path=json_proto method=POST [01:17:52]POST find Content-Length [01:17:52]Host: 172.17.96.67:8080 [01:17:52]Content-Length: 674 [01:17:52]Content-Type: application/json [01:17:52] [01:17:52]POST finish read [01:17:52]Found Content-Length = 674 [01:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.550, "sum" : 270.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:52]execute_script... [01:17: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)246013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.550, "sum" : 270.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:52]POST & json_proto [01:17:52]process_json_proto [01:17:52]json parsed OK: [01:17:52]protocol is kg_v1.0 [01:17:52]action value=close_receipt [01:17:52]process_action close_receipt [01:17:52]cmd_close_receipt [01:17:52]MH_GetDate [01:17:52]Write to MH i2c: F0 00 00 D1 15 D5 [01:17:52]Write i2c OK [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: F0 [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: F0 09 00 [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: F0 09 00 D1 15 00 C2 DA 22 67 47 6C 1F 67 3C [01:17:52]GetLastDocTimeStamp 1730336359 [01:17:52]current date 1730337474 [01:17:52]FM_GetShiftState [01:17:52]SAM_PROTO_GetShiftState [01:17:52]wFMCommunicate request_size=4 [01:17:52]MH_SAM_APDU [01:17:52]CAPDU: 80 13 01 00 [01:17:52]Write to MH i2c: E2 08 00 D2 15 80 13 01 00 00 00 00 00 64 [01:17:52]Write i2c OK [01:17:52]MH_I2C_Read... [01:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:52]Read from MH i2c: E2 [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: E2 0E 00 [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: E2 0E 00 D2 15 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 05 [01:17:52]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [01:17:52]wFMCommunicate OK [01:17:52]SAM_PROTO_GetShiftState done [01:17:52]FM_GetShiftState done [01:17:52]opened in 1730332995 [01:17:52]opened+sec_in_day 1730419395 [01:17:52]quantity*price = 27051 [01:17:52]sum+1 = 27052 [01:17:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.73 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 3 31.10.2024 01:17 Смена: 546 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118214 ФПД: 118971505280224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T011754&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118214&fm=118971505280224&tin=02508201610067®Number=0000000000091782&sum=27000 [01:17:53]StoreToDocumentArchive [01:17:53]shift 546 fd 118214 [01:17:53]save to /storage/0546/doc_00118214 [01:17:53]save last doc name /storage/0546/doc_00118214 to /storage/kkm_last_doc_name [01:17:53]save OK [01:17:53]Clear old archive folders... [01:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:17:53]tlvbuf is 00288270 [01:17:53]SAM_PROTO_ClearQueue [01:17:53]wFMCommunicate request_size=4 [01:17:53]MH_SAM_APDU [01:17:53]CAPDU: 80 09 00 00 [01:17:53]Write to MH i2c: E2 08 00 DF 15 80 09 00 00 00 00 00 00 66 [01:17:53]Write i2c OK [01:17:53]MH_I2C_Read... [01:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:17:53]Read from MH i2c: E2 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: E2 03 00 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [01:17:53]RAPDU: 90 00 [01:17:53]wFMCommunicate OK [01:17:53]SAM_PROTO_ClearQueue done [01:17:53]KKMCreateOFDPacket [01:17:53]OFDProtocolAddRootSTLVToBuf [01:17:53]FM_MakeSignedData [01:17:53]FM_MakeSignedData [01:17:53]SAM_PROTO_SignData [01:17:53]wFMCommunicate request_size=4 [01:17:53]MH_SAM_APDU [01:17:53]CAPDU: 80 0D 01 02 [01:17:53]Write to MH i2c: E2 08 00 E0 15 80 0D 01 02 00 00 00 00 6E [01:17:53]Write i2c OK [01:17:53]MH_I2C_Read... [01:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:17:53]Read from MH i2c: E2 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: E2 03 00 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [01:17:53]RAPDU: 90 00 [01:17:53]wFMCommunicate OK [01:17:53]wFMCommunicate request_size=255 [01:17:53]MH_SAM_APDU [01:17:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 0D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C2 DA 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CD 01 00 35 04 06 00 6C 34 36 4F [01:17:53]Write to MH i2c: E2 02 01 E1 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 0D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C2 DA 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CD 01 00 35 04 06 00 6C 34 36 4F 00 00 A8 [01:17:53]Write i2c OK [01:17:53]MH_I2C_Read... [01:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:54]Read from MH i2c: E2 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 03 00 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [01:17:54]RAPDU: 90 00 [01:17:54]wFMCommunicate OK [01:17:54]wFMCommunicate request_size=7 [01:17:54]MH_SAM_APDU [01:17:54]CAPDU: 80 0D 02 02 02 84 E0 [01:17:54]Write to MH i2c: E2 0A 00 E2 15 80 0D 02 02 02 00 84 E0 00 00 D9 [01:17:54]Write i2c OK [01:17:54]MH_I2C_Read... [01:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:54]Read from MH i2c: E2 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 03 00 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 03 00 E2 15 00 90 00 6B [01:17:54]RAPDU: 90 00 [01:17:54]wFMCommunicate OK [01:17:54]wFMCommunicate request_size=4 [01:17:54]MH_SAM_APDU [01:17:54]CAPDU: 80 0D 03 02 [01:17:54]Write to MH i2c: E2 08 00 E3 15 80 0D 03 02 00 00 00 00 73 [01:17:54]Write i2c OK [01:17:54]MH_I2C_Read... [01:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:17:54]Read from MH i2c: E2 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 0B 00 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 0B 00 E3 15 00 0B 87 2C A5 9B 3A 6D 99 90 00 B2 [01:17:54]RAPDU: 0B 87 2C A5 9B 3A 6D 99 90 00 [01:17:54]wFMCommunicate OK [01:17:54]SAM_PROTO_SignData done [01:17:54]FM_MakeSignedData done [01:17:54]CreateOFDProtocolMessage [01:17:54]wFMCommunicate request_size=4 [01:17:54]MH_SAM_APDU [01:17:54]CAPDU: 80 11 00 00 [01:17:54]Write to MH i2c: E2 08 00 E4 15 80 11 00 00 00 00 00 00 73 [01:17:54]Write i2c OK [01:17:54]MH_I2C_Read... [01:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:54]Read from MH i2c: E2 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 17 00 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: E2 17 00 E4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 CA [01:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:17:54]wFMCommunicate OK [01:17:54]CreateOFDProtocolMessage done [01:17:54]OFDSenderStorePacket 118214 [01:17:54]StoreOFDPacket docnum=118214 [01:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0C 01 00 00 A2 AA 04 01 C2 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 0D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C2 DA 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CD 01 00 35 04 06 00 6C 34 36 4F 84 E0 0B 87 2C A5 9B 3A 6D 99 [01:17:54]CheckFolder [01:17:54]dirname=/storage/ofd_packets [01:17:54]CheckFolder done [01:17:54]ProducePacketName [01:17:54]name=ofd_packets/00118214 [01:17:54]NVStorageSaveData ofd_packets/00118214 [01:17:54]File name is /storage/ofd_packets/00118214 [01:17:54]Write 298 bytes [01:17:54]NVStorageSaveData done [01:17:54]OFDSenderStorePacket done [01:17:54]KKMCreateOFDPacket done [01:17:54]NVStorageSaveData kkm_last_timestamp [01:17:54]File name is /storage/kkm_last_timestamp [01:17:54]Write 4 bytes [01:17:54]NVStorageSaveData done [01:17:54]ExternCall_PrintAddStr [01:17:54]wPrintStart [01:17:54]Write to MH i2c: 01 00 00 E5 15 FA [01:17:54]Write i2c OK [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: 01 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: 01 07 00 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: 01 07 00 E5 15 00 00 00 00 00 FF 0F 0F [01:17:54]RasterBufferAndPrint [01:17:54]line Счет N : (1)246013 [01:17:54]line ИНН: 02508201610067 [01:17:54]line Контрольно-Кассовый Чек [01:17:54]line ПРОДАЖА [01:17:54]line ТРК (МРК, ГНК) : 23 [01:17:54]line Товар: 2710194210 [01:17:54]line ДТ-К-2 [01:17:54]line 3.550 * 76.20 [01:17:54]line = 270.51 [01:17:54]line НДС 12% НСП 1% [01:17:54]line > о реализуемом товаре [01:17:54]line ОКРУГЛЕНИЕ: -0.51 [01:17:54]line ИТОГО: 270.00 [01:17:54]line Внесено: 270.00 [01:17:54]line СДАЧА: 0.00 [01:17:54]line НСП 1% : 2.39 [01:17:54]line НДС 12% : 28.73 [01:17:54]line Наличными: 270.00 [01:17:54]line Безнал.: 0.00 [01:17:54]line Место: АЗС № 173 "Партнер Нефть" [01:17:54]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [01:17:54]line СНО: Общий режим [01:17:54]line Чек 3 31.10.2024 01:17 [01:17:54]line Смена: 546 ФФД: 1.0 [01:17:54]line ЗНМ: 0300000115 [01:17:54]line РНМ: 0000000000091782 [01:17:54]line Версия ККМ: 001 [01:17:54]line ФМ: 0000000000871767 [01:17:54]line ФД: 118214 [01:17:54]line ФПД: 118971505280224 [01:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T011754&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118214&fm=118971505280224&tin=02508201610067®Number=0000000000091782&sum=27000 [01:17:54]OFD Sender: Processing packet 118214 [packets to send 77, broken 76] [01:17:54]ProducePacketName [01:17:54]name=ofd_packets/00118214 [01:17:54]OFD Sender: To server: pG, [01:17:54]CommunicateWithHost lk.salyk.kg:30040 [01:17:54]ConnectInit lk.salyk.kg [01:17:54]written 0, free lines is 4095 [01:17:54]Connected sock=10 [01:17: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 36 37 0C 01 00 00 A2 AA 04 01 C2 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 0D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C2 DA 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CD 01 00 35 04 06 00 6C 34 36 4F 84 E0 0B 87 2C A5 9B 3A 6D 99 [01:17: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 36 37 4F 00 00 00 0C 98 47 00 61 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C6 CD 01 00 F4 03 04 00 78 86 22 67 B6 04 01 00 00 63 31 43 14 E5 C5 8D 03 [01:17:54]CommunicateWithHost err = 0 [01:17:54]CheckOFDResponse [01:17:54]1017 (14) - 77093643461234 [01:17:54]1041 (16) - 0000000000871767 [01:17:54]1040 (4) - 118214 [01:17:54]1012 (4) - 30.10.2024 19:18 [01:17:54]1206 (1) - 0 [01:17:54]OFD Sender: Remove packet 118214 [01:17:54]ProducePacketName [01:17:54]name=ofd_packets/00118214 [01:17:54]NVStorageDeleteData [01:17:54]Write to MH i2c: 01 00 00 0F 16 25 [01:17:54]Write i2c OK [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: 01 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: 01 07 00 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: 01 07 00 0F 16 00 00 00 00 00 B3 0C EB [01:17:54]RasterBufferAndPrint [01:17:54]line [01:17:54]line [01:17:54]line [01:17:54]line [01:17:54]line [01:17:54]written 0, free lines is 3257 [01:17:54]MH_Cut [01:17:54]Write to MH i2c: D1 01 00 16 16 01 FE [01:17:54]Write i2c OK [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: D1 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: D1 01 00 [01:17:54]MH_I2C_Read... [01:17:54]Read from MH i2c: D1 01 00 16 16 00 FD [01:17:54]Write to MH i2c: 01 00 00 17 16 2D [01:17:54]Write i2c OK [01:17:54]MH_I2C_Read... [01:17:55]OFD Sender: No OFD packet to send [01:17:55]*** Cut start [01:17:55]*** Purtial cut [01:17:55]*** Stage 1: CUTSNS_PIN = 1 [01:17:56]Read from MH i2c: 01 [01:17:56]MH_I2C_Read... [01:17:56]*** Stop cut motor [01:17:56]*** Cut end [01:17:56]Read from MH i2c: 01 07 00 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 FF 0F 42 [01:17:56]process_action close_receipt done [01:17:56]requested_data is exist [01:17:56]produce_requested_data [01:17:56]requested_item fm.sn is exist - process it [01:17:56]wFMCommunicate request_size=4 [01:17:56]MH_SAM_APDU [01:17:56]CAPDU: 80 11 00 00 [01:17:56]Write to MH i2c: E2 08 00 18 16 80 11 00 00 00 00 00 00 A8 [01:17:56]Write i2c OK [01:17:56]MH_I2C_Read... [01:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:56]Read from MH i2c: E2 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: E2 17 00 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: E2 17 00 18 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 FF [01:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:17:56]wFMCommunicate OK [01:17:56]requested_item fd.num is exist - process it [01:17:56]SAM_PROTO_GetFieldsCounters [01:17:56]wFMCommunicate request_size=4 [01:17:56]MH_SAM_APDU [01:17:56]CAPDU: 80 13 00 00 [01:17:56]Write to MH i2c: E2 08 00 19 16 80 13 00 00 00 00 00 00 AB [01:17:56]Write i2c OK [01:17:56]MH_I2C_Read... [01:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:56]Read from MH i2c: E2 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: E2 62 00 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: E2 62 00 19 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C6 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [01: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C6 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:17:56]wFMCommunicate OK [01:17:56]SAM_PROTO_GetFieldsCounters done [01:17:56]requested_item shift.num is exist - process it [01:17:56]requested_item shift.opened is exist - process it [01:17:56]req_shift_opened [01:17:56]FM_GetShiftState [01:17:56]SAM_PROTO_GetShiftState [01:17:56]wFMCommunicate request_size=4 [01:17:56]MH_SAM_APDU [01:17:56]CAPDU: 80 13 01 00 [01:17:56]Write to MH i2c: E2 08 00 1A 16 80 13 01 00 00 00 00 00 AD [01:17:56]Write i2c OK [01:17:56]MH_I2C_Read... [01:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:56]Read from MH i2c: E2 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: E2 0E 00 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: E2 0E 00 1A 16 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 4E [01:17:56]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [01:17:56]wFMCommunicate OK [01:17:56]SAM_PROTO_GetShiftState done [01:17:56]FM_GetShiftState done [01:17:56]req_shift_opened done [01:17:56]requested_item shift.open_date is exist - process it [01:17:56]req_shift_open_date [01:17:56]req_shift_open_date done [01:17:56]produce_requested_data done [01:17:56]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118214,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995} [01:17:56]process_action_free close_receipt [01:17:56]json_value_free [01:17:56]json_value_free done [01:17:56]process_json_proto returns [01:17:56]Send response to host [01:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118214,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995}}} [01:17:56]free response buf [01:17:56]execute_script done [01:17:56]execute_script returns [01:17:56]free content buf [01:17:56]Sock 7.Close socket [01:17:56]Sock 7.Thread stoped [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:49]accept exits with 9 [01:21:49]New connection [01:21:49]New thread 3067133284 created [01:21:49]Thread 3067276644 joined [01:21:49]Waiting for new connection... [01:21:49] Sock 9.Parse request [01:21:49]Sock 9.Check first char [01:21:49]Sock 9.First char is OK [01:21:49]request: POST /json_proto HTTP/1.0 [01:21:49]Method: POST [01:21:49]URL: /json_proto [01:21:49]Method is POST - this is cgi request [01:21:49]url: /json_proto [01:21:49]query_string will be loaded in cgi processing [01:21:49]execute_cgi json_proto POST (null) [01:21:49]execute_cgi path=json_proto method=POST [01:21:49]POST find Content-Length [01:21:49]Host: 172.17.96.67:8080 [01:21:49]Content-Length: 677 [01:21:49]Content-Type: application/json [01:21:49] [01:21:49]POST finish read [01:21:49]Found Content-Length = 677 [01:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:21:49]execute_script... [01:21:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:21:49]POST & json_proto [01:21:49]process_json_proto [01:21:49]json parsed OK: [01:21:49]protocol is kg_v1.0 [01:21:49]action value=close_receipt [01:21:49]process_action close_receipt [01:21:49]cmd_close_receipt [01:21:49]MH_GetDate [01:21:49]Write to MH i2c: F0 00 00 1B 16 20 [01:21:49]Write i2c OK [01:21:49]MH_I2C_Read... [01:21:49]Read from MH i2c: F0 [01:21:49]MH_I2C_Read... [01:21:49]Read from MH i2c: F0 09 00 [01:21:49]MH_I2C_Read... [01:21:49]Read from MH i2c: F0 09 00 1B 16 00 B0 DB 22 67 47 6C 1F 67 76 [01:21:49]GetLastDocTimeStamp 1730337474 [01:21:49]current date 1730337712 [01:21:49]FM_GetShiftState [01:21:49]SAM_PROTO_GetShiftState [01:21:49]wFMCommunicate request_size=4 [01:21:49]MH_SAM_APDU [01:21:49]CAPDU: 80 13 01 00 [01:21:49]Write to MH i2c: E2 08 00 1C 16 80 13 01 00 00 00 00 00 AF [01:21:49]Write i2c OK [01:21:49]MH_I2C_Read... [01:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:50]Read from MH i2c: E2 [01:21:50]MH_I2C_Read... [01:21:50]Read from MH i2c: E2 0E 00 [01:21:50]MH_I2C_Read... [01:21:50]Read from MH i2c: E2 0E 00 1C 16 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 50 [01:21:50]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [01:21:50]wFMCommunicate OK [01:21:50]SAM_PROTO_GetShiftState done [01:21:50]FM_GetShiftState done [01:21:50]opened in 1730332995 [01:21:50]opened+sec_in_day 1730419395 [01:21:50]quantity*price = 40006 [01:21:50]sum+1 = 40007 [01:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 4 31.10.2024 01:21 Смена: 546 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118215 ФПД: 255721131425124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012152&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118215&fm=255721131425124&tin=02508201610067®Number=0000000000091782&sum=40000 [01:21:51]StoreToDocumentArchive [01:21:51]shift 546 fd 118215 [01:21:51]save to /storage/0546/doc_00118215 [01:21:51]save last doc name /storage/0546/doc_00118215 to /storage/kkm_last_doc_name [01:21:51]save OK [01:21:51]Clear old archive folders... [01:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:21:51]tlvbuf is 00288510 [01:21:51]SAM_PROTO_ClearQueue [01:21:51]wFMCommunicate request_size=4 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 09 00 00 [01:21:51]Write to MH i2c: E2 08 00 29 16 80 09 00 00 00 00 00 00 B1 [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [01:21:51]RAPDU: 90 00 [01:21:51]wFMCommunicate OK [01:21:51]SAM_PROTO_ClearQueue done [01:21:51]KKMCreateOFDPacket [01:21:51]OFDProtocolAddRootSTLVToBuf [01:21:51]FM_MakeSignedData [01:21:51]FM_MakeSignedData [01:21:51]SAM_PROTO_SignData [01:21:51]wFMCommunicate request_size=4 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 0D 01 02 [01:21:51]Write to MH i2c: E2 08 00 2A 16 80 0D 01 02 00 00 00 00 B9 [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [01:21:51]RAPDU: 90 00 [01:21:51]wFMCommunicate OK [01:21:51]wFMCommunicate request_size=255 [01:21:51]MH_SAM_APDU [01:21: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 32 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 04 00 00 00 F4 03 04 00 B0 DB 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CD 01 00 35 04 06 00 E8 [01:21:51]Write to MH i2c: E2 02 01 2B 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 04 00 00 00 F4 03 04 00 B0 DB 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CD 01 00 35 04 06 00 E8 00 00 D3 [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [01:21:51]RAPDU: 90 00 [01:21:51]wFMCommunicate OK [01:21:51]wFMCommunicate request_size=10 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 0D 02 02 05 93 B7 33 3D 64 [01:21:51]Write to MH i2c: E2 0D 00 2C 16 80 0D 02 02 05 00 93 B7 33 3D 64 00 00 E4 [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 2C 16 00 90 00 B6 [01:21:51]RAPDU: 90 00 [01:21:51]wFMCommunicate OK [01:21:51]wFMCommunicate request_size=4 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 0D 03 02 [01:21:51]Write to MH i2c: E2 08 00 2D 16 80 0D 03 02 00 00 00 00 BE [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 0B 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 0B 00 2D 16 00 01 C3 31 40 F2 89 59 0E 90 00 D6 [01:21:51]RAPDU: 01 C3 31 40 F2 89 59 0E 90 00 [01:21:51]wFMCommunicate OK [01:21:51]SAM_PROTO_SignData done [01:21:51]FM_MakeSignedData done [01:21:51]CreateOFDProtocolMessage [01:21:51]wFMCommunicate request_size=4 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 11 00 00 [01:21:51]Write to MH i2c: E2 08 00 2E 16 80 11 00 00 00 00 00 00 BE [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 17 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 17 00 2E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 15 [01:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:21:51]wFMCommunicate OK [01:21:51]CreateOFDProtocolMessage done [01:21:51]OFDSenderStorePacket 118215 [01:21:51]StoreOFDPacket docnum=118215 [01:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 2C 77 07 01 43 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 04 00 00 00 F4 03 04 00 B0 DB 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CD 01 00 35 04 06 00 E8 93 B7 33 3D 64 01 C3 31 40 F2 89 59 0E [01:21:51]CheckFolder [01:21:51]dirname=/storage/ofd_packets [01:21:51]CheckFolder done [01:21:51]ProducePacketName [01:21:51]name=ofd_packets/00118215 [01:21:51]NVStorageSaveData ofd_packets/00118215 [01:21:51]File name is /storage/ofd_packets/00118215 [01:21:51]Write 301 bytes [01:21:51]NVStorageSaveData done [01:21:51]OFDSenderStorePacket done [01:21:51]KKMCreateOFDPacket done [01:21:51]NVStorageSaveData kkm_last_timestamp [01:21:51]File name is /storage/kkm_last_timestamp [01:21:51]Write 4 bytes [01:21:51]NVStorageSaveData done [01:21:51]ExternCall_PrintAddStr [01:21:51]wPrintStart [01:21:51]Write to MH i2c: 01 00 00 2F 16 45 [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: 01 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: 01 07 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: 01 07 00 2F 16 00 00 00 00 00 FF 0F 5A [01:21:51]RasterBufferAndPrint [01:21:51]line Счет N : (1)246014 [01:21:51]line ИНН: 02508201610067 [01:21:51]line Контрольно-Кассовый Чек [01:21:51]line ПРОДАЖА [01:21:51]line ТРК (МРК, ГНК) : 11 [01:21:51]line Товар: 2710124130 [01:21:51]line Аи-92-К-2 [01:21:51]line 5.980 * 66.90 [01:21:51]line = 400.06 [01:21:51]line НДС 12% НСП 1% [01:21:51]line > о реализуемом товаре [01:21:51]line ОКРУГЛЕНИЕ: -0.06 [01:21:51]line ИТОГО: 400.00 [01:21:51]line Внесено: 400.00 [01:21:51]line СДАЧА: 0.00 [01:21:51]line НСП 1% : 3.54 [01:21:51]line НДС 12% : 42.48 [01:21:51]line Наличными: 400.00 [01:21:51]line Безнал.: 0.00 [01:21:51]line Место: АЗС № 173 "Партнер Нефть" [01:21:51]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [01:21:51]line СНО: Общий режим [01:21:51]line Чек 4 31.10.2024 01:21 [01:21:51]line Смена: 546 ФФД: 1.0 [01:21:51]line ЗНМ: 0300000115 [01:21:51]line РНМ: 0000000000091782 [01:21:51]line Версия ККМ: 001 [01:21:51]line ФМ: 0000000000871767 [01:21:51]line ФД: 118215 [01:21:51]line ФПД: 255721131425124 [01:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012152&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118215&fm=255721131425124&tin=02508201610067®Number=0000000000091782&sum=40000 [01:21:52]written 0, free lines is 4095 [01:21:52]OFD Sender: Processing packet 118215 [packets to send 77, broken 76] [01:21:52]ProducePacketName [01:21:52]name=ofd_packets/00118215 [01:21:52]OFD Sender: To server: pG, [01:21:52]CommunicateWithHost lk.salyk.kg:30040 [01:21:52]ConnectInit lk.salyk.kg [01:21:52]Connected sock=7 [01:21: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 36 37 0F 01 00 00 2C 77 07 01 43 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 04 00 00 00 F4 03 04 00 B0 DB 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C7 CD 01 00 35 04 06 00 E8 93 B7 33 3D 64 01 C3 31 40 F2 89 59 0E [01:21: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 36 37 4F 00 00 00 2B 49 47 00 07 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 36 37 10 04 04 00 C7 CD 01 00 F4 03 04 00 66 87 22 67 B6 04 01 00 00 72 F1 58 57 EC 83 5D 1A [01:21:52]CommunicateWithHost err = 0 [01:21:52]CheckOFDResponse [01:21:52]1017 (14) - 77093643461234 [01:21:52]1041 (16) - 0000000000871767 [01:21:52]1040 (4) - 118215 [01:21:52]1012 (4) - 30.10.2024 19:22 [01:21:52]1206 (1) - 0 [01:21:52]OFD Sender: Remove packet 118215 [01:21:52]ProducePacketName [01:21:52]name=ofd_packets/00118215 [01:21:52]NVStorageDeleteData [01:21:52]Write to MH i2c: 01 00 00 59 16 6F [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 07 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 07 00 59 16 00 00 00 00 00 AA 0C 2C [01:21:52]RasterBufferAndPrint [01:21:52]line [01:21:52]line [01:21:52]line [01:21:52]line [01:21:52]line [01:21:52]written 0, free lines is 3249 [01:21:52]MH_Cut [01:21:52]Write to MH i2c: D1 01 00 60 16 01 48 [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: D1 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: D1 01 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: D1 01 00 60 16 00 47 [01:21:52]Write to MH i2c: 01 00 00 61 16 77 [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]OFD Sender: No OFD packet to send [01:21:53]*** Cut start [01:21:53]*** Purtial cut [01:21:53]*** Stage 1: CUTSNS_PIN = 1 [01:21:53]Read from MH i2c: 01 [01:21:53]MH_I2C_Read... [01:21:53]*** Stop cut motor [01:21:53]*** Cut end [01:21:53]Read from MH i2c: 01 07 00 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: 01 07 00 61 16 00 00 00 00 00 FF 0F 8C [01:21:53]process_action close_receipt done [01:21:53]requested_data is exist [01:21:53]produce_requested_data [01:21:53]requested_item fm.sn is exist - process it [01:21:53]wFMCommunicate request_size=4 [01:21:53]MH_SAM_APDU [01:21:53]CAPDU: 80 11 00 00 [01:21:53]Write to MH i2c: E2 08 00 62 16 80 11 00 00 00 00 00 00 F2 [01:21:53]Write i2c OK [01:21:53]MH_I2C_Read... [01:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:53]Read from MH i2c: E2 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: E2 17 00 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: E2 17 00 62 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 49 [01:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [01:21:53]wFMCommunicate OK [01:21:53]requested_item fd.num is exist - process it [01:21:53]SAM_PROTO_GetFieldsCounters [01:21:53]wFMCommunicate request_size=4 [01:21:53]MH_SAM_APDU [01:21:53]CAPDU: 80 13 00 00 [01:21:53]Write to MH i2c: E2 08 00 63 16 80 13 00 00 00 00 00 00 F5 [01:21:53]Write i2c OK [01:21:53]MH_I2C_Read... [01:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:53]Read from MH i2c: E2 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: E2 62 00 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: E2 62 00 63 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [01:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C7 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:21:53]wFMCommunicate OK [01:21:53]SAM_PROTO_GetFieldsCounters done [01:21:53]requested_item shift.num is exist - process it [01:21:53]requested_item shift.opened is exist - process it [01:21:53]req_shift_opened [01:21:53]FM_GetShiftState [01:21:53]SAM_PROTO_GetShiftState [01:21:53]wFMCommunicate request_size=4 [01:21:53]MH_SAM_APDU [01:21:53]CAPDU: 80 13 01 00 [01:21:53]Write to MH i2c: E2 08 00 64 16 80 13 01 00 00 00 00 00 F7 [01:21:53]Write i2c OK [01:21:53]MH_I2C_Read... [01:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:53]Read from MH i2c: E2 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: E2 0E 00 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: E2 0E 00 64 16 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 98 [01:21:53]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [01:21:53]wFMCommunicate OK [01:21:53]SAM_PROTO_GetShiftState done [01:21:53]FM_GetShiftState done [01:21:53]req_shift_opened done [01:21:53]requested_item shift.open_date is exist - process it [01:21:53]req_shift_open_date [01:21:53]req_shift_open_date done [01:21:53]produce_requested_data done [01:21:53]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118215,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995} [01:21:53]process_action_free close_receipt [01:21:53]json_value_free [01:21:53]json_value_free done [01:21:53]process_json_proto returns [01:21:53]Send response to host [01:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118215,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995}}} [01:21:53]free response buf [01:21:53]execute_script done [01:21:53]execute_script returns [01:21:53]free content buf [01:21:53]Sock 9.Close socket [01:21:53]Sock 9.Thread stoped [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:08]recv_with_timeout no data received [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:46]accept exits with 10 [02:45:46]New connection [02:45:46]New thread 3067276644 created [02:45:46]Thread 3067133284 joined [02:45:46]Waiting for new connection... [02:45:46] Sock 10.Parse request [02:45:46]Sock 10.Check first char [02:45:46]Sock 10.First char is OK [02:45:46]request: POST /json_proto HTTP/1.0 [02:45:46]Method: POST [02:45:46]URL: /json_proto [02:45:46]Method is POST - this is cgi request [02:45:46]url: /json_proto [02:45:46]query_string will be loaded in cgi processing [02:45:46]execute_cgi json_proto POST (null) [02:45:46]execute_cgi path=json_proto method=POST [02:45:46]POST find Content-Length [02:45:46]Host: 172.17.96.67:8080 [02:45:46]Content-Length: 677 [02:45:46]Content-Type: application/json [02:45:46] [02:45:46]POST finish read [02:45:46]Found Content-Length = 677 [02:45:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [02:45:46]execute_script... [02:45:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)246015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [02:45:46]POST & json_proto [02:45:46]process_json_proto [02:45:46]json parsed OK: [02:45:46]protocol is kg_v1.0 [02:45:46]action value=close_receipt [02:45:46]process_action close_receipt [02:45:46]cmd_close_receipt [02:45:46]MH_GetDate [02:45:46]Write to MH i2c: F0 00 00 65 16 6A [02:45:46]Write i2c OK [02:45:46]MH_I2C_Read... [02:45:46]Read from MH i2c: F0 [02:45:46]MH_I2C_Read... [02:45:46]Read from MH i2c: F0 09 00 [02:45:46]MH_I2C_Read... [02:45:46]Read from MH i2c: F0 09 00 65 16 00 5C EF 22 67 47 6C 1F 67 80 [02:45:46]GetLastDocTimeStamp 1730337712 [02:45:46]current date 1730342748 [02:45:46]FM_GetShiftState [02:45:46]SAM_PROTO_GetShiftState [02:45:46]wFMCommunicate request_size=4 [02:45:46]MH_SAM_APDU [02:45:46]CAPDU: 80 13 01 00 [02:45:46]Write to MH i2c: E2 08 00 66 16 80 13 01 00 00 00 00 00 F9 [02:45:46]Write i2c OK [02:45:46]MH_I2C_Read... [02:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:46]Read from MH i2c: E2 [02:45:46]MH_I2C_Read... [02:45:46]Read from MH i2c: E2 0E 00 [02:45:46]MH_I2C_Read... [02:45:46]Read from MH i2c: E2 0E 00 66 16 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 9A [02:45:46]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [02:45:46]wFMCommunicate OK [02:45:46]SAM_PROTO_GetShiftState done [02:45:46]FM_GetShiftState done [02:45:46]opened in 1730332995 [02:45:46]opened+sec_in_day 1730419395 [02:45:46]quantity*price = 50041 [02:45:46]sum+1 = 50042 [02:45:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 173 "Партнер Нефть" Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 СНО: Общий режим Чек 5 31.10.2024 02:45 Смена: 546 ФФД: 1.0 ЗНМ: 0300000115 РНМ: 0000000000091782 Версия ККМ: 001 ФМ: 0000000000871767 ФД: 118216 ФПД: 136099101400338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024548&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118216&fm=136099101400338&tin=02508201610067®Number=0000000000091782&sum=50000 [02:45:47]StoreToDocumentArchive [02:45:47]shift 546 fd 118216 [02:45:47]save to /storage/0546/doc_00118216 [02:45:47]save last doc name /storage/0546/doc_00118216 to /storage/kkm_last_doc_name [02:45:47]save OK [02:45:47]Clear old archive folders... [02:45:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:45:47]tlvbuf is 001C89A0 [02:45:47]SAM_PROTO_ClearQueue [02:45:47]wFMCommunicate request_size=4 [02:45:47]MH_SAM_APDU [02:45:47]CAPDU: 80 09 00 00 [02:45:47]Write to MH i2c: E2 08 00 73 16 80 09 00 00 00 00 00 00 FB [02:45:47]Write i2c OK [02:45:47]MH_I2C_Read... [02:45:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:45:47]Read from MH i2c: E2 [02:45:47]MH_I2C_Read... [02:45:47]Read from MH i2c: E2 03 00 [02:45:47]MH_I2C_Read... [02:45:47]Read from MH i2c: E2 03 00 73 16 00 90 00 FD [02:45:47]RAPDU: 90 00 [02:45:47]wFMCommunicate OK [02:45:47]SAM_PROTO_ClearQueue done [02:45:47]KKMCreateOFDPacket [02:45:47]OFDProtocolAddRootSTLVToBuf [02:45:47]FM_MakeSignedData [02:45:47]FM_MakeSignedData [02:45:47]SAM_PROTO_SignData [02:45:47]wFMCommunicate request_size=4 [02:45:47]MH_SAM_APDU [02:45:47]CAPDU: 80 0D 01 02 [02:45:47]Write to MH i2c: E2 08 00 74 16 80 0D 01 02 00 00 00 00 03 [02:45:47]Write i2c OK [02:45:47]MH_I2C_Read... [02:45:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:45:47]Read from MH i2c: E2 [02:45:47]MH_I2C_Read... [02:45:47]Read from MH i2c: E2 03 00 [02:45:47]MH_I2C_Read... [02:45:47]Read from MH i2c: E2 03 00 74 16 00 90 00 FE [02:45:47]RAPDU: 90 00 [02:45:47]wFMCommunicate OK [02:45:47]wFMCommunicate request_size=255 [02:45:47]MH_SAM_APDU [02:45:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 5C EF 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CD 01 00 35 04 06 00 7B [02:45:47]Write to MH i2c: E2 02 01 75 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 5C EF 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CD 01 00 35 04 06 00 7B 00 00 A3 [02:45:47]Write i2c OK [02:45:47]MH_I2C_Read... [02:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:48]Read from MH i2c: E2 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 03 00 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [02:45:48]RAPDU: 90 00 [02:45:48]wFMCommunicate OK [02:45:48]wFMCommunicate request_size=10 [02:45:48]MH_SAM_APDU [02:45:48]CAPDU: 80 0D 02 02 05 C8 0A 97 DD 12 [02:45:48]Write to MH i2c: E2 0D 00 76 16 80 0D 02 02 05 00 C8 0A 97 DD 12 00 00 68 [02:45:48]Write i2c OK [02:45:48]MH_I2C_Read... [02:45:48]OFD Sender: No OFD packet to send [02:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:48]Read from MH i2c: E2 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 03 00 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [02:45:48]RAPDU: 90 00 [02:45:48]wFMCommunicate OK [02:45:48]wFMCommunicate request_size=4 [02:45:48]MH_SAM_APDU [02:45:48]CAPDU: 80 0D 03 02 [02:45:48]Write to MH i2c: E2 08 00 77 16 80 0D 03 02 00 00 00 00 08 [02:45:48]Write i2c OK [02:45:48]MH_I2C_Read... [02:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:45:48]Read from MH i2c: E2 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 0B 00 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 0B 00 77 16 00 86 0D B5 0E 35 95 FE E5 90 00 0C [02:45:48]RAPDU: 86 0D B5 0E 35 95 FE E5 90 00 [02:45:48]wFMCommunicate OK [02:45:48]SAM_PROTO_SignData done [02:45:48]FM_MakeSignedData done [02:45:48]CreateOFDProtocolMessage [02:45:48]wFMCommunicate request_size=4 [02:45:48]MH_SAM_APDU [02:45:48]CAPDU: 80 11 00 00 [02:45:48]Write to MH i2c: E2 08 00 78 16 80 11 00 00 00 00 00 00 08 [02:45:48]Write i2c OK [02:45:48]MH_I2C_Read... [02:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:48]Read from MH i2c: E2 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 17 00 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: E2 17 00 78 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 5F [02:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [02:45:48]wFMCommunicate OK [02:45:48]CreateOFDProtocolMessage done [02:45:48]OFDSenderStorePacket 118216 [02:45:48]StoreOFDPacket docnum=118216 [02:45:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0F 01 00 00 1A 35 07 01 07 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 32 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 05 00 00 00 F4 03 04 00 5C EF 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CD 01 00 35 04 06 00 7B C8 0A 97 DD 12 86 0D B5 0E 35 95 FE E5 [02:45:48]CheckFolder [02:45:48]dirname=/storage/ofd_packets [02:45:48]CheckFolder done [02:45:48]ProducePacketName [02:45:48]name=ofd_packets/00118216 [02:45:48]NVStorageSaveData ofd_packets/00118216 [02:45:48]File name is /storage/ofd_packets/00118216 [02:45:48]Write 301 bytes [02:45:48]NVStorageSaveData done [02:45:48]OFDSenderStorePacket done [02:45:48]KKMCreateOFDPacket done [02:45:48]NVStorageSaveData kkm_last_timestamp [02:45:48]File name is /storage/kkm_last_timestamp [02:45:48]Write 4 bytes [02:45:48]NVStorageSaveData done [02:45:48]ExternCall_PrintAddStr [02:45:48]wPrintStart [02:45:48]Write to MH i2c: 01 00 00 79 16 8F [02:45:48]Write i2c OK [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: 01 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: 01 07 00 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: 01 07 00 79 16 00 00 00 00 00 FF 0F A4 [02:45:48]RasterBufferAndPrint [02:45:48]line Счет N : (1)246015 [02:45:48]line ИНН: 02508201610067 [02:45:48]line Контрольно-Кассовый Чек [02:45:48]line ПРОДАЖА [02:45:48]line ТРК (МРК, ГНК) : 11 [02:45:48]line Товар: 2710124130 [02:45:48]line Аи-92-К-2 [02:45:48]line 7.480 * 66.90 [02:45:48]line = 500.41 [02:45:48]line НДС 12% НСП 1% [02:45:48]line > о реализуемом товаре [02:45:48]line ОКРУГЛЕНИЕ: -0.41 [02:45:48]line ИТОГО: 500.00 [02:45:48]line Внесено: 500.00 [02:45:48]line СДАЧА: 0.00 [02:45:48]line НСП 1% : 4.43 [02:45:48]line НДС 12% : 53.14 [02:45:48]line Наличными: 500.00 [02:45:48]line Безнал.: 0.00 [02:45:48]line Место: АЗС № 173 "Партнер Нефть" [02:45:48]line Адрес: 720001, с. Кош Добо, 41.369051, 71.850487 [02:45:48]line СНО: Общий режим [02:45:48]line Чек 5 31.10.2024 02:45 [02:45:48]line Смена: 546 ФФД: 1.0 [02:45:48]line ЗНМ: 0300000115 [02:45:48]line РНМ: 0000000000091782 [02:45:48]line Версия ККМ: 001 [02:45:48]line ФМ: 0000000000871767 [02:45:48]line ФД: 118216 [02:45:48]line ФПД: 136099101400338 [02:45:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024548&type=1&operation_type=1&fn_number=0000000000871767&fd_number=118216&fm=136099101400338&tin=02508201610067®Number=0000000000091782&sum=50000 [02:45:48]OFD Sender: Processing packet 118216 [packets to send 77, broken 76] [02:45:48]ProducePacketName [02:45:48]name=ofd_packets/00118216 [02:45:48]OFD Sender: To server: pG, [02:45:48]CommunicateWithHost lk.salyk.kg:30040 [02:45:48]ConnectInit lk.salyk.kg [02:45:48]written 0, free lines is 4095 [02:45:48]Connected sock=9 [02:45: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 36 37 0F 01 00 00 1A 35 07 01 07 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 32 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 05 00 00 00 F4 03 04 00 5C EF 22 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CD 01 00 35 04 06 00 7B C8 0A 97 DD 12 86 0D B5 0E 35 95 FE E5 [02:45: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 36 37 4F 00 00 00 71 F4 47 00 39 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 10 04 04 00 C8 CD 01 00 F4 03 04 00 12 9B 22 67 B6 04 01 00 00 66 F2 BE F6 A1 4E E6 26 [02:45:48]CommunicateWithHost err = 0 [02:45:48]CheckOFDResponse [02:45:48]1017 (14) - 77093643461234 [02:45:48]1041 (16) - 0000000000871767 [02:45:48]1040 (4) - 118216 [02:45:48]1012 (4) - 30.10.2024 20:46 [02:45:48]1206 (1) - 0 [02:45:48]OFD Sender: Remove packet 118216 [02:45:48]ProducePacketName [02:45:48]name=ofd_packets/00118216 [02:45:48]NVStorageDeleteData [02:45:48]Write to MH i2c: 01 00 00 A3 16 B9 [02:45:48]Write i2c OK [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: 01 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: 01 07 00 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: 01 07 00 A3 16 00 00 00 00 00 C7 0C 93 [02:45:48]RasterBufferAndPrint [02:45:48]line [02:45:48]line [02:45:48]line [02:45:48]line [02:45:48]line [02:45:48]written 0, free lines is 3278 [02:45:48]MH_Cut [02:45:48]Write to MH i2c: D1 01 00 AA 16 01 92 [02:45:48]Write i2c OK [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: D1 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: D1 01 00 [02:45:48]MH_I2C_Read... [02:45:48]Read from MH i2c: D1 01 00 AA 16 00 91 [02:45:48]Write to MH i2c: 01 00 00 AB 16 C1 [02:45:48]Write i2c OK [02:45:48]MH_I2C_Read... [02:45:49]OFD Sender: No OFD packet to send [02:45:49]*** Cut start [02:45:49]*** Purtial cut [02:45:49]*** Stage 1: CUTSNS_PIN = 1 [02:45:50]Read from MH i2c: 01 [02:45:50]MH_I2C_Read... [02:45:50]*** Stop cut motor [02:45:50]*** Cut end [02:45:50]Read from MH i2c: 01 07 00 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: 01 07 00 AB 16 00 00 00 00 00 FF 0F D6 [02:45:50]process_action close_receipt done [02:45:50]requested_data is exist [02:45:50]produce_requested_data [02:45:50]requested_item fm.sn is exist - process it [02:45:50]wFMCommunicate request_size=4 [02:45:50]MH_SAM_APDU [02:45:50]CAPDU: 80 11 00 00 [02:45:50]Write to MH i2c: E2 08 00 AC 16 80 11 00 00 00 00 00 00 3C [02:45:50]Write i2c OK [02:45:50]MH_I2C_Read... [02:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:50]Read from MH i2c: E2 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 17 00 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 17 00 AC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 93 [02:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 90 00 [02:45:50]wFMCommunicate OK [02:45:50]requested_item fd.num is exist - process it [02:45:50]SAM_PROTO_GetFieldsCounters [02:45:50]wFMCommunicate request_size=4 [02:45:50]MH_SAM_APDU [02:45:50]CAPDU: 80 13 00 00 [02:45:50]Write to MH i2c: E2 08 00 AD 16 80 13 00 00 00 00 00 00 3F [02:45:50]Write i2c OK [02:45:50]MH_I2C_Read... [02:45:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:45:50]Read from MH i2c: E2 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 62 00 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 62 00 AD 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C8 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [02:45: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 36 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 38 32 10 04 04 00 C8 CD 01 00 0E 04 04 00 22 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:45:50]wFMCommunicate OK [02:45:50]SAM_PROTO_GetFieldsCounters done [02:45:50]requested_item shift.num is exist - process it [02:45:50]requested_item shift.opened is exist - process it [02:45:50]req_shift_opened [02:45:50]FM_GetShiftState [02:45:50]SAM_PROTO_GetShiftState [02:45:50]wFMCommunicate request_size=4 [02:45:50]MH_SAM_APDU [02:45:50]CAPDU: 80 13 01 00 [02:45:50]Write to MH i2c: E2 08 00 AE 16 80 13 01 00 00 00 00 00 41 [02:45:50]Write i2c OK [02:45:50]MH_I2C_Read... [02:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:50]Read from MH i2c: E2 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 0E 00 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 0E 00 AE 16 00 09 00 01 43 C9 22 67 00 00 00 00 90 00 E2 [02:45:50]RAPDU: 09 00 01 43 C9 22 67 00 00 00 00 90 00 [02:45:50]wFMCommunicate OK [02:45:50]SAM_PROTO_GetShiftState done [02:45:50]FM_GetShiftState done [02:45:50]req_shift_opened done [02:45:50]requested_item shift.open_date is exist - process it [02:45:50]req_shift_open_date [02:45:50]req_shift_open_date done [02:45:50]produce_requested_data done [02:45:50]produce_requested_data return {"fm.sn":"0000000000871767","fd.num":118216,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995} [02:45:50]process_action_free close_receipt [02:45:50]json_value_free [02:45:50]json_value_free done [02:45:50]process_json_proto returns [02:45:50]Send response to host [02:45:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871767","fd.num":118216,"shift.num":546,"shift.opened":1,"shift.open_date":1730332995}}} [02:45:50]free response buf [02:45:50]execute_script done [02:45:50]execute_script returns [02:45:50]free content buf [02:45:50]Sock 10.Close socket [02:45:50]Sock 10.Thread stoped [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56: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:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send